.prepaid-play {
  max-width: 720px;
  margin: 0 auto 2rem;
  padding: 0 1.25rem 1rem;
}

.prepaid-card {
  background: var(--bg-card, #1e1e1e);
  border-radius: 12px;
  padding: 1rem 1.25rem;
  margin-bottom: 1rem;
}

.prepaid-resume[hidden] {
  display: none !important;
}

.prepaid-resume {
  margin-bottom: 1rem;
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.prepaid-resume-title {
  margin: 0 0 0.35rem;
  font-size: 1rem;
}

.prepaid-resume-note {
  margin: 0 0 0.25rem;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.9rem;
}

.prepaid-resume-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.75rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.prepaid-resume-facts {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.prepaid-resume-facts span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.85rem;
}

.prepaid-resume-continue {
  flex: 0 0 auto;
  border: 0;
  border-radius: 10px;
  padding: 0.65rem 0.9rem;
  font-weight: 700;
  color: #fff;
  background: #4c6ef5;
  cursor: pointer;
}

@media (max-width: 640px) {
  .prepaid-resume-row {
    flex-direction: column;
    align-items: stretch;
  }
}

#prepaid-session[hidden] {
  display: none !important;
}

.prepaid-play-btn,
.prepaid-verify-btn {
  border: 0;
  border-radius: 10px;
  padding: 0.75rem 1rem;
  cursor: pointer;
  font-weight: 700;
}

.prepaid-play-btn {
  width: 100%;
  color: #fff;
  background: #4c6ef5;
}

.prepaid-play-btn:disabled,
.prepaid-pay-btn:disabled,
.prepaid-verify-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.prepaid-session-bar[hidden] {
  display: none !important;
}

.prepaid-session-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.prepaid-verify-btn {
  background: transparent;
  color: inherit;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

#prepaid-board {
  min-height: 8rem;
  margin-bottom: 0.75rem;
}

.prepaid-verify-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 40000;
  padding: 1rem;
}

.prepaid-verify-modal[hidden] {
  display: none;
}

.prepaid-verify-card {
  background: #1a1d29;
  border-radius: 12px;
  padding: 1.5rem;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  border: 1px solid #333;
}

.prepaid-verify-card h3 {
  margin: 0 0 1rem;
  color: #fff;
  font-size: 1.1rem;
}

.prepaid-verify-formula {
  background: rgba(76, 110, 245, 0.08);
  border: 1px solid rgba(76, 110, 245, 0.25);
  border-radius: 8px;
  padding: 0.75rem 1rem;
  margin-bottom: 1.25rem;
}

.prepaid-verify-formula-title {
  font-size: 0.72rem;
  font-weight: 600;
  color: #4c6ef5;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}

.prepaid-verify-formula-row {
  display: flex;
  align-items: baseline;
  gap: 0.6rem;
  margin-bottom: 0.3rem;
}

.prepaid-verify-formula-row:last-child {
  margin-bottom: 0;
}

.prepaid-verify-formula-label {
  flex: 0 0 46px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #4c6ef5;
  white-space: nowrap;
}

.prepaid-verify-formula-row code {
  font-family: monospace;
  font-size: 0.75rem;
  color: #ccc;
  word-break: break-all;
}

.prepaid-verify-sources {
  margin-bottom: 1.25rem;
  padding: 1rem;
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
}

.prepaid-verify-source-row {
  margin: 0.5rem 0;
  font-size: 0.85rem;
}

.prepaid-verify-source-row span {
  color: #888;
  margin-right: 0.5rem;
}

.prepaid-verify-source-row code {
  font-size: 0.8rem;
  color: #8b5cf6;
  word-break: break-all;
}

.prepaid-verify-step {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.prepaid-verify-step-num {
  flex: 0 0 28px;
  width: 28px;
  height: 28px;
  background: linear-gradient(135deg, #4c6ef5, #364fc7);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.9rem;
  color: #fff;
}

.prepaid-verify-step-body {
  flex: 1;
  min-width: 0;
}

.prepaid-verify-step-title {
  font-size: 0.9rem;
  color: #aaa;
  margin-bottom: 0.5rem;
}

.prepaid-verify-expand {
  margin-left: 0.5rem;
  background: none;
  border: none;
  color: #4c6ef5;
  cursor: pointer;
  font-size: 0.8rem;
}

.prepaid-verify-hash {
  background: #0d0e14;
  padding: 0.75rem;
  border-radius: 8px;
  font-family: monospace;
  font-size: 0.78rem;
  word-break: break-all;
  color: #ccc;
  margin-bottom: 0.25rem;
}

.prepaid-verify-hash b {
  color: #8b5cf6;
  font-weight: 600;
}

.prepaid-verify-round {
  margin-bottom: 0.75rem;
  padding: 0.55rem 0.65rem;
  background: rgba(255, 255, 255, 0.04);
  border-radius: 6px;
  font-size: 0.78rem;
}

.prepaid-verify-round-title {
  color: #aaa;
  margin-bottom: 0.35rem;
}

.prepaid-verify-result {
  margin-top: 1rem;
  padding: 1rem;
  background: linear-gradient(135deg, rgba(76, 110, 245, 0.2), rgba(54, 79, 199, 0.2));
  border-radius: 10px;
  text-align: center;
}

.prepaid-verify-result-label {
  font-size: 0.85rem;
  color: #aaa;
}

.prepaid-verify-result-value {
  display: block;
  font-size: 1.6rem;
  font-weight: 700;
  color: #8b5cf6;
}

.prepaid-verify-close {
  display: block;
  width: 100%;
  margin-top: 1rem;
  padding: 0.75rem;
  background: #333;
  border: none;
  border-radius: 8px;
  color: #fff;
  cursor: pointer;
  font-weight: 500;
}

.prepaid-recent {
  margin-top: 0.5rem;
}

.prepaid-recent h2 {
  margin: 0 0 0.6rem;
  font-size: 1.05rem;
}

.prepaid-recent-scroll {
  overflow-x: auto;
}

.prepaid-recent-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.85rem;
}

.prepaid-recent-table th,
.prepaid-recent-table td {
  padding: 0.6rem 0.5rem;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid #333;
}

.prepaid-recent-table th {
  color: #888;
  font-weight: 500;
}

.prepaid-recent-table .player-cell {
  font-family: 'JetBrains Mono', monospace;
  font-size: 0.78rem;
}

.prepaid-recent-table .time-cell {
  color: #888;
  font-size: 0.78rem;
}

.prepaid-recent-empty td {
  text-align: center;
  color: #666;
  font-style: italic;
  padding: 1.5rem 0.5rem;
}

.prepaid-recent-table .num {
  text-align: right;
}

.prepaid-recent-table .won { color: #3dd68c; }
.prepaid-recent-table .lost { color: #ff6b6b; }

.prepaid-recent-verify {
  background: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #aaa;
  cursor: pointer;
  padding: 0.25rem 0.5rem;
  border-radius: 6px;
  font-size: 0.75rem;
}

.prepaid-recent-verify:hover {
  background: rgba(76, 110, 245, 0.15);
  border-color: rgba(76, 110, 245, 0.45);
  color: #fff;
}

.prepaid-toast {
  position: fixed;
  top: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 10px 16px;
  border-radius: 10px;
  z-index: 9999;
  background: rgba(8, 13, 22, 0.92);
  color: #fff;
}
