:root {
  --color-midnight: #081427;
  --color-deep-navy: #02101d;
  --color-aurora: #0bc7c7;
  --color-amber: #ffb54a;
  --color-magenta: #a347ff;
  --color-lilac: #c6b8ff;
  --color-mist: #d9e2f2;
  --color-danger: #ff5a68;
  --color-text: #f3f8ff;
  --color-muted: rgba(255, 255, 255, 0.6);
  --shadow-soft: 0 18px 36px rgba(2, 16, 29, 0.4);
  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 12px;
  font-family: 'Roboto', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: radial-gradient(circle at top, var(--color-midnight), var(--color-deep-navy));
  color: var(--color-text);
}

.app {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  max-width: 420px;
  margin: 0 auto;
  background: linear-gradient(160deg, rgba(8, 20, 39, 0.92), rgba(2, 16, 29, 0.95));
  box-shadow: var(--shadow-soft);
}

.status-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  background: rgba(11, 199, 199, 0.12);
  border-bottom: 1px solid rgba(11, 199, 199, 0.2);
  font-size: 14px;
}

.status-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 8px;
  background: var(--color-muted);
}

.status-dot.connected {
  background: var(--color-aurora);
  box-shadow: 0 0 12px rgba(11, 199, 199, 0.7);
}

.status-bar .status-text {
  flex: 1;
  color: var(--color-muted);
}

.status-action {
  border: none;
  border-radius: 999px;
  padding: 6px 14px;
  background: rgba(163, 71, 255, 0.2);
  color: var(--color-text);
  font-size: 13px;
  cursor: pointer;
}

.content {
  flex: 1;
  padding: 24px 20px 88px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.hero {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 16px;
  padding: 20px;
  border-radius: var(--radius-lg);
  background: linear-gradient(145deg, rgba(255, 181, 74, 0.18), rgba(11, 199, 199, 0.12));
  position: relative;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 80% -20%, rgba(255, 181, 74, 0.32), transparent 60%);
  pointer-events: none;
}

.hero-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.hero-subtitle {
  font-size: 14px;
  color: var(--color-muted);
  margin: 0;
}

.hero-title {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--color-text);
  margin: 0;
}

.hero-countdown {
  display: flex;
  gap: 10px;
}

.countdown-chip {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: rgba(8, 20, 39, 0.65);
  min-width: 56px;
}

.countdown-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
}

.countdown-label {
  font-size: 10px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.hero-prize {
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-end;
  gap: 8px;
}

.hero-prize-label {
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.18em;
}

.hero-prize-value {
  font-size: 24px;
  font-weight: 700;
  color: var(--color-amber);
}

.hero .cta {
  grid-column: 1 / -1;
  justify-self: start;
  border: none;
  border-radius: 999px;
  padding: 10px 24px;
  background: rgba(163, 71, 255, 0.22);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.wallet,
.rooms {
  background: rgba(6, 22, 40, 0.78);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
}

.hero--hidden,
.wallet--hidden,
.rooms--hidden {
  display: none;
}

body[data-view="session"] .hero,
body[data-view="session"] .wallet,
body[data-view="session"] .rooms,
body[data-view="session"] .profile {
  display: none !important;
}

body[data-view="session"] #sessionPanel {
  display: block;
}

body[data-view="profile"] .hero,
body[data-view="profile"] .wallet,
body[data-view="profile"] .rooms,
body[data-view="profile"] .session,
body[data-view="profile"] .leaderboard {
  display: none !important;
}

body[data-view="profile"] #profilePanel {
  display: block;
}

body[data-view="leaderboard"] .hero,
body[data-view="leaderboard"] .wallet,
body[data-view="leaderboard"] .rooms,
body[data-view="leaderboard"] .session,
body[data-view="leaderboard"] .profile {
  display: none !important;
}

body[data-view="leaderboard"] #leaderboardPanel {
  display: block;
}

.session--active {
  display: block;
}

.session {
  background: rgba(6, 22, 40, 0.78);
  border-radius: var(--radius-lg);
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.session[hidden] {
  display: none;
}

.session-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.session-meta__titles h3 {
  margin: 0;
  font-size: 1.4rem;
}

.session-meta__titles p {
  margin: 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.6);
}

.session-room {
  margin: 4px 0 0;
  font-size: 14px;
  color: var(--color-muted);
}

.session-meta__titles {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.session-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
  margin-top: 12px;
}

.session-actions .session-status-pill {
  align-self: flex-start;
}

.session-status-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.session-status-pill.connected {
  background: rgba(11, 199, 199, 0.18);
  color: var(--color-aurora);
}

.session-status-pill.disconnected {
  background: rgba(255, 90, 104, 0.18);
  color: var(--color-danger);
}

.session-status-pill.interactive {
  cursor: pointer;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08);
  transition: background 0.2s ease, color 0.2s ease;
}

.session-status-pill.interactive:hover {
  background: rgba(255, 181, 74, 0.2);
  color: var(--color-amber);
}

.session-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  background: rgba(11, 199, 199, 0.15);
  color: var(--color-text);
  cursor: pointer;
  font-weight: 600;
}

.session-btn.bingo {
  background: linear-gradient(120deg, var(--color-amber), var(--color-magenta));
  color: var(--color-text-dark);
  width: 100%;
  padding: 14px 18px;
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(255, 181, 74, 0.25);
  border-radius: 999px;
}

.session-btn.bingo:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}

@media (min-width: 768px) {
  .session-actions {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }

  .session-actions .session-status-pill {
    margin-right: auto;
  }

  .session-btn.bingo {
    width: auto;
    min-width: 160px;
  }
}

.session-btn[disabled] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-muted);
  cursor: not-allowed;
  opacity: 0.6;
}

.session-body {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.call-feed,
.cartela-preview {
  background: rgba(8, 20, 39, 0.6);
  border-radius: var(--radius-md);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.05);
}

.call-feed h4,
.cartela-preview h4 {
  margin: 0 0 12px;
  font-size: 14px;
  text-transform: uppercase;
  color: var(--color-muted);
}

.latest-call-large {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  padding: 20px;
  background: rgba(8, 20, 39, 0.6);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(11, 199, 199, 0.2);
}

.latest-call-circle {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(11, 199, 199, 0.3), rgba(163, 71, 255, 0.2));
  border: 3px solid var(--color-aurora);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 24px rgba(11, 199, 199, 0.4);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.latest-call-large.pulse .latest-call-circle {
  transform: scale(1.1);
  box-shadow: 0 0 32px rgba(11, 199, 199, 0.6);
}

.latest-call-letter {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 36px;
  font-weight: 700;
  color: var(--color-aurora);
  line-height: 1;
}

.latest-call-number {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--color-text);
  line-height: 1;
  margin-top: 4px;
}

.game-stats {
  display: flex;
  gap: 24px;
  width: 100%;
  justify-content: center;
}

.stat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-label {
  font-size: 12px;
  color: var(--color-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.stat-value {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  font-weight: 700;
  color: var(--color-amber);
}

.call-history {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
}

.call-history .call-order {
  color: var(--color-muted);
  font-size: 12px;
}

.cartela {
  width: 100%;
  border-collapse: collapse;
}

.cartela th,
.cartela td {
  text-align: center;
  padding: 10px;
  border-radius: 12px;
  background: rgba(8, 20, 39, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.05);
  color: var(--color-text);
  transition: background 0.25s ease, box-shadow 0.3s ease, transform 0.2s ease;
}

.cartela td.markable {
  cursor: pointer;
}

.cartela td.marked {
  box-shadow: inset 0 0 0 1px rgba(11, 199, 199, 0.8);
  animation: mark-pop 280ms ease;
}

.cartela td.user-marked {
  box-shadow: inset 0 0 0 2px var(--color-magenta);
  background: rgba(163, 71, 255, 0.2);
  animation: mark-pop 320ms ease;
}

.cartela td.potential,
.cartela td.bingo-complete {
  outline: 2px solid rgba(255, 181, 74, 0.6);
  background: rgba(255, 181, 74, 0.18);
  box-shadow: 0 0 12px rgba(255, 181, 74, 0.35);
}

.cartela td.bingo-near {
  outline: 2px dashed rgba(11, 199, 199, 0.6);
  background: rgba(11, 199, 199, 0.12);
}

.cartela td.bingo-near-missing {
  position: relative;
  animation: pulse-missing 1.4s ease-in-out infinite;
}

.cartela td.bingo-near-missing::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 10px;
  border: 2px solid rgba(255, 90, 104, 0.75);
  box-shadow: 0 0 10px rgba(255, 90, 104, 0.45);
}

.cartela td.last-call {
  animation: call-highlight 1.2s ease;
  box-shadow: 0 0 18px rgba(11, 199, 199, 0.55);
}

@keyframes mark-pop {
  0% {
    transform: scale(0.94);
    filter: brightness(0.8);
  }
  60% {
    transform: scale(1.05);
    filter: brightness(1.15);
  }
  100% {
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes call-highlight {
  0% {
    box-shadow: 0 0 0 rgba(11, 199, 199, 0.0);
  }
  40% {
    box-shadow: 0 0 26px rgba(11, 199, 199, 0.6);
  }
  100% {
    box-shadow: 0 0 12px rgba(11, 199, 199, 0.3);
  }
}

.cartela td.marked {
  background: rgba(11, 199, 199, 0.25);
  border-color: rgba(11, 199, 199, 0.6);
}

.session-footer {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.session-hint {
  font-size: 13px;
  color: var(--color-amber);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.session-hint::before {
  content: '⚡';
  font-size: 14px;
}

.session-btn.bingo.ready {
  box-shadow: 0 0 18px rgba(255, 181, 74, 0.65);
  animation: bingo-ready 1.4s ease-in-out infinite;
  transform-origin: center;
}

@keyframes bingo-ready {
  0% {
    transform: translateY(0);
    filter: brightness(1);
    box-shadow: 0 0 12px rgba(255, 181, 74, 0.45);
  }
  50% {
    transform: translateY(-1px);
    filter: brightness(1.08);
    box-shadow: 0 0 22px rgba(255, 181, 74, 0.75);
  }
  100% {
    transform: translateY(0);
    filter: brightness(1);
    box-shadow: 0 0 12px rgba(255, 181, 74, 0.45);
  }
}

.wallet-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.wallet-header h2 {
  font-size: 18px;
  margin: 0;
}

.wallet-balance {
  font-family: 'Roboto Condensed', sans-serif;
  font-size: 20px;
  color: var(--color-aurora);
}

.wallet-actions {
  display: grid;
  gap: 12px;
}

.wallet-note {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
}

.hero-challenge {
  margin-top: 16px;
  padding: 16px;
  background: rgba(8, 20, 39, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 199, 199, 0.2);
}

.challenge-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.challenge-label {
  font-size: 14px;
  color: var(--color-text);
  font-weight: 500;
}

.challenge-prize {
  font-size: 14px;
  color: var(--color-amber);
  font-weight: 600;
}

.progress-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.progress-bar {
  width: 100%;
  height: 24px;
  background: rgba(8, 20, 39, 0.8);
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--color-aurora), var(--color-amber));
  border-radius: 12px;
  transition: width 0.3s ease;
  box-shadow: 0 0 12px rgba(11, 199, 199, 0.5);
}

.progress-text {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
  font-size: 12px;
  color: var(--color-muted);
}

.progress-text span:first-child {
  color: var(--color-aurora);
  font-weight: 600;
}

.leaderboard {
  background: rgba(6, 22, 40, 0.78);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.leaderboard[hidden] {
  display: none;
}

.leaderboard-header h2 {
  font-size: 20px;
  margin: 0;
  color: var(--color-text);
}

.jackpot-periods {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.jackpot-period-card {
  padding: 16px;
  background: rgba(8, 20, 39, 0.6);
  border-radius: var(--radius-md);
  border: 1px solid rgba(11, 199, 199, 0.2);
}

.period-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
}

.period-header h3 {
  font-size: 16px;
  margin: 0;
  color: var(--color-text);
  text-transform: capitalize;
}

.period-prize {
  font-size: 18px;
  font-weight: 700;
  color: var(--color-amber);
}

.period-progress {
  margin-bottom: 12px;
}

.period-progress .progress-bar {
  height: 20px;
  margin-bottom: 8px;
}

.period-progress .progress-text {
  font-size: 11px;
}

.period-stats {
  display: flex;
  justify-content: space-between;
  font-size: 12px;
  color: var(--color-muted);
}

.jackpot-info {
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.jackpot-info p {
  margin: 0;
  font-size: 12px;
  color: var(--color-muted);
  line-height: 1.4;
  text-align: center;
}

.profile {
  background: rgba(6, 22, 40, 0.78);
  border-radius: var(--radius-lg);
  padding: 20px;
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.03);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile[hidden] {
  display: none;
}

.profile-header h2 {
  font-size: 20px;
  margin: 0;
  color: var(--color-text);
}

.profile-body {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.profile-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.profile-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px;
  background: rgba(8, 20, 39, 0.5);
  border-radius: var(--radius-sm);
}

.profile-label {
  color: var(--color-muted);
  font-size: 14px;
}

.profile-value {
  color: var(--color-text);
  font-size: 14px;
  font-weight: 500;
}

.wallet-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 12px;
  background: rgba(11, 199, 199, 0.12);
  color: var(--color-text);
  font-size: 14px;
  cursor: pointer;
}

.wallet-btn:hover {
  background: rgba(11, 199, 199, 0.2);
}

.section-heading {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.section-heading h3 {
  margin: 0;
  font-size: 18px;
}

.filter {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: transparent;
  color: var(--color-text);
  padding: 8px 16px;
  cursor: pointer;
}

.room-table {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-table__header {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-muted);
}

.room-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.room-card {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  padding: 14px 16px;
  border-radius: var(--radius-md);
  background: rgba(8, 20, 39, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.04);
  box-shadow: 0 12px 24px rgba(2, 16, 29, 0.35);
}

.room-card.room-card--empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  text-align: center;
  padding: 20px;
}

.empty-state p {
  margin: 0;
  color: var(--color-muted);
  font-size: 14px;
}

.retry-btn {
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 18px;
  background: linear-gradient(120deg, var(--color-aurora), var(--color-magenta));
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
}

.retry-btn:hover {
  filter: brightness(1.05);
}

.room-card:nth-child(even) {
  background: rgba(6, 22, 40, 0.82);
}

.room-card .bet {
  font-weight: 600;
  color: var(--color-aurora);
}

.room-card .possible-win {
  color: var(--color-text);
}

.status-chip {
  justify-self: center;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 12px;
  text-transform: capitalize;
}

.status-chip.running {
  background: rgba(11, 199, 199, 0.15);
  color: var(--color-aurora);
}

.status-chip.waiting {
  background: rgba(163, 71, 255, 0.15);
  color: var(--color-magenta);
}

.status-chip.closed {
  background: rgba(255, 90, 104, 0.15);
  color: var(--color-danger);
}

.join-btn {
  justify-self: end;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  background: linear-gradient(120deg, var(--color-aurora), var(--color-magenta));
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
}

.join-btn--blocked {
  background: rgba(255, 181, 74, 0.18);
  border: 1px solid rgba(255, 181, 74, 0.45);
  color: var(--color-amber);
  cursor: pointer;
}

.join-btn[disabled] {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-muted);
  cursor: not-allowed;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  background: rgba(6, 22, 40, 0.92);
  padding: 14px 12px;
  border-radius: 24px 24px 0 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
}

.nav-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  border: none;
  background: transparent;
  color: var(--color-muted);
  cursor: pointer;
  font-size: 12px;
}

.nav-btn .icon {
  font-size: 20px;
}

.nav-btn.active {
  color: var(--color-amber);
}

.nav-btn.active .icon {
  filter: drop-shadow(0 0 12px rgba(255, 181, 74, 0.6));
}

.toast {
  position: fixed;
  bottom: 90px;
  left: 50%;
  transform: translateX(-50%) translateY(20px);
  opacity: 0;
  padding: 12px 18px;
  background: rgba(11, 199, 199, 0.2);
  border: 1px solid rgba(11, 199, 199, 0.6);
  border-radius: var(--radius-md);
  color: var(--color-text);
  transition: 0.3s ease;
  pointer-events: none;
}

.toast.show {
  transform: translateX(-50%) translateY(0);
  opacity: 1;
}

.modal {
  position: fixed;
  inset: 0;
  background: rgba(2, 16, 29, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
}

.modal[hidden] {
  display: none;
}

.modal-content {
  width: 100%;
  max-width: 420px;
  background: rgba(8, 20, 39, 0.95);
  border-radius: var(--radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: var(--shadow-soft);
  display: flex;
  flex-direction: column;
}

.modal-header,
.modal-footer {
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.modal-header h3 {
  margin: 0;
  font-size: 18px;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--color-muted);
  font-size: 18px;
  cursor: pointer;
}

.modal-body {
  padding: 0 20px 20px;
}

.winner-list {
  list-style: none;
  padding: 0;
  margin: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.winner-list li {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border-radius: var(--radius-md);
  background: rgba(11, 199, 199, 0.08);
  border: 1px solid rgba(11, 199, 199, 0.18);
  font-size: 14px;
  color: var(--color-text);
}

.winner-list li strong {
  font-weight: 600;
}

.winner-list li span {
  color: var(--color-aurora);
  font-weight: 600;
}

.modal-footer {
  flex-wrap: wrap;
}

.modal-btn {
  flex: 1;
  border: none;
  border-radius: var(--radius-md);
  padding: 10px 16px;
  font-weight: 600;
  cursor: pointer;
  background: linear-gradient(120deg, var(--color-aurora), var(--color-magenta));
  color: var(--color-text);
}

.modal-btn.secondary {
  background: rgba(255, 255, 255, 0.08);
  color: var(--color-muted);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.cartela-selector {
  display: flex;
  gap: 16px;
}

.wallet-form {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.wallet-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 14px;
  color: var(--color-muted);
}

.wallet-form input,
.wallet-form textarea {
  border-radius: var(--radius-md);
  border: 1px solid rgba(255, 255, 255, 0.12);
  padding: 10px 12px;
  background: rgba(8, 20, 39, 0.7);
  color: var(--color-text);
  font-size: 14px;
  resize: vertical;
}

.wallet-form input:focus,
.wallet-form textarea:focus {
  outline: none;
  border-color: rgba(11, 199, 199, 0.6);
  box-shadow: 0 0 0 1px rgba(11, 199, 199, 0.3);
}

.cartela-grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  max-height: 280px;
  overflow-y: auto;
  padding-right: 6px;
}

.cartela-number {
  border: none;
  border-radius: var(--radius-sm);
  padding: 10px 0;
  background: rgba(11, 199, 199, 0.1);
  color: var(--color-text);
  font-weight: 600;
  cursor: pointer;
}

.cartela-number.selected {
  background: linear-gradient(120deg, var(--color-aurora), var(--color-magenta));
  box-shadow: 0 0 12px rgba(11, 199, 199, 0.4);
}

.cartela-number.unavailable {
  opacity: 0.4;
  cursor: not-allowed;
}

.cartela-preview h4 {
  margin-top: 0;
}

.modal-footer {
  justify-content: flex-end;
  gap: 12px;
}

.call-entry {
  display: flex;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  background: rgba(11, 199, 199, 0.12);
  font-size: 14px;
  font-weight: 500;
  color: var(--color-text);
  transition: color 0.3s ease, background 0.3s ease;
}

.call-entry--recent {
  color: var(--color-amber);
  background: rgba(255, 181, 74, 0.18);
  text-shadow: 0 0 12px rgba(255, 181, 74, 0.7);
}

/* Responsive font sizing for smaller screens */
@media (max-width: 480px) {
  :root {
    font-size: 14px;
  }

  .hero-title {
    font-size: 24px;
  }

  .hero-prize-value {
    font-size: 20px;
  }

  .countdown-value {
    font-size: 18px;
  }

  .countdown-label {
    font-size: 9px;
  }

  .wallet-header h2 {
    font-size: 16px;
  }

  .wallet-balance {
    font-size: 18px;
  }

  .section-heading h3 {
    font-size: 16px;
  }

  .session-header h3 {
    font-size: 18px;
  }

  .profile-header h2 {
    font-size: 18px;
  }

  .profile-label,
  .profile-value {
    font-size: 13px;
  }

  .jackpot-point-item {
    font-size: 12px;
  }

  .call-history li {
    font-size: 13px;
  }

  .cartela td {
    font-size: 12px;
  }
}

@media (max-width: 480px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .hero-prize {
    align-items: center;
  }

  .hero .cta {
    justify-self: center;
  }

  .room-card {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

    .room-card .join-btn {
    grid-column: span 2;
    justify-self: stretch;
  }

  .room-countdown {
    display: inline-block;
    margin-left: 8px;
    padding: 2px 6px;
    background: rgba(11, 199, 199, 0.2);
    border-radius: 4px;
    font-size: 11px;
    color: var(--color-aurora);
    font-weight: 500;
  }

  /* Game Selection Grid */
  .games {
    padding: 0 16px;
  }

  .game-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

  .game-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    aspect-ratio: 1;
    cursor: pointer;
    transition: transform 0.15s ease, box-shadow 0.15s ease;
  }

  .game-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  }

  .game-card:active {
    transform: translateY(0);
  }

  .game-icon {
    font-size: 40px;
    margin-bottom: 8px;
  }

  .game-name {
    font-size: 16px;
    font-weight: 500;
    color: var(--color-text);
    margin-bottom: 8px;
  }

  .game-badge {
    font-size: 11px;
    padding: 4px 8px;
    border-radius: 4px;
    font-weight: 500;
  }

  .game-badge.coming-soon {
    background: rgba(255, 193, 7, 0.2);
    color: #ffc107;
  }

  .games-loading,
  .games-empty,
  .games-error {
    grid-column: span 2;
    text-align: center;
    padding: 24px;
    color: var(--color-muted);
  }

  /* Coming Soon Modal */
  .coming-soon-content {
    text-align: center;
    padding: 24px 0;
  }

  .coming-soon-icon {
    font-size: 64px;
    display: block;
    margin-bottom: 16px;
  }

  .coming-soon-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 8px;
  }

  .coming-soon-message {
    color: var(--color-muted);
  }

  .session-body {
    grid-template-columns: 1fr;
  }

  .cartela-selector {
    flex-direction: column;
  }
}

