:root {
  --bg-dark: #090d16;
  --card-bg: #131b2e;
  --border-color: rgba(255, 255, 255, 0.1);
  --accent-cyan: #00f2fe;
  --accent-green: #10b981;
  --accent-gold: #f59e0b;
  --accent-purple: #8b5cf6;
  --text-white: #ffffff;
  --text-dim: #94a3b8;
}

* { box-sizing: border-box; margin: 0; padding: 0; -webkit-tap-highlight-color: transparent; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  overflow: hidden;
}

body {
  font-family: 'Plus Jakarta Sans', sans-serif;
  background-color: var(--bg-dark);
  color: var(--text-white);
  height: 100vh;
  height: 100dvh;
  display: flex;
  justify-content: center;
}

.mobile-wrapper {
  position: fixed;
  inset: 0;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  height: 100%;
  height: 100dvh;
  display: flex;
  flex-direction: column;
  gap: clamp(6px, 1.2vh, 12px);
  padding: clamp(8px, 1.5vh, 14px);
  background: var(--bg-dark);
  box-sizing: border-box;
  overflow: hidden;
  overflow-x: hidden;
}

/* TOP BRANDING */
.brand-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 2px 0 2px;
  flex-shrink: 0;
}

.brand-title-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.brand-trivia-icon,
.brand-bolt {
  display: inline-block;
  vertical-align: middle;
  flex-shrink: 0;
}

.brand-title {
  font-family: 'Outfit', 'Montserrat', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  line-height: 1.15;
  margin: 0;
}

.brand-title .text-white {
  color: #ffffff;
}

.brand-title .text-cyan {
  color: #00f2fe;
}

.brand-subtitle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--text-dim);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 1px;
}

.by-text {
  font-size: 0.62rem;
  font-weight: 700;
  color: #64748b;
  letter-spacing: 0.1em;
}

.vcharge-brand {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  font-family: 'Segoe UI', Roboto, 'Inter', sans-serif;
  font-weight: 900;
  text-transform: uppercase;
}

.vcharge-text {
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.05em;
  line-height: 1;
}

.vcharge-bolt {
  display: inline-block;
  vertical-align: middle;
}

.vcharge-gold {
  color: #f59e0b;
}

.vcharge-white {
  color: #f8fafc;
}

/* TEAM STATUS BAR (APP HEADER) */
.app-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 12px;
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 12px;
  flex-shrink: 0;
}

.team-identity {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.team-icon {
  font-size: 1.25rem;
  color: var(--accent-cyan);
  flex-shrink: 0;
}

.team-name {
  font-family: 'Outfit', sans-serif;
  font-weight: 800;
  font-size: 1.05rem;
  color: var(--text-white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 175px;
}

.header-actions {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.score-badge-wrapper {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.score-badge {
  background: rgba(0, 242, 254, 0.15);
  border: 1px solid rgba(0, 242, 254, 0.35);
  padding: 6px 14px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  color: var(--accent-cyan);
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 98px;
  gap: 5px;
  text-align: center;
  font-variant-numeric: tabular-nums;
  box-sizing: border-box;
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.18);
}

.score-badge small {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 800;
  letter-spacing: 0.05em;
}

/* FLOATING SCORE DELTA BADGES */
.floating-delta {
  position: absolute;
  top: -12px;
  right: -6px;
  padding: 3px 8px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  pointer-events: none;
  z-index: 100;
  white-space: nowrap;
  box-shadow: 0 4px 14px rgba(0,0,0,0.5);
}

.floating-delta.gain {
  background: #10b981;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(16, 185, 129, 0.6);
  animation: floatUpGain 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

.floating-delta.loss {
  background: #ef4444;
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 0 16px rgba(239, 68, 68, 0.6);
  animation: floatDownLoss 1.8s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes floatUpGain {
  0% {
    opacity: 0;
    transform: translateY(6px) scale(0.85);
  }
  15% {
    opacity: 1;
    transform: translateY(-4px) scale(1.15);
  }
  30% {
    transform: translateY(-8px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(-24px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(-38px) scale(0.9);
  }
}

@keyframes floatDownLoss {
  0% {
    opacity: 0;
    transform: translateY(-6px) scale(0.85);
  }
  15% {
    opacity: 1;
    transform: translateY(4px) scale(1.15);
  }
  30% {
    transform: translateY(8px) scale(1);
  }
  75% {
    opacity: 1;
    transform: translateY(22px) scale(1);
  }
  100% {
    opacity: 0;
    transform: translateY(34px) scale(0.9);
  }
}

/* RESULT SCREEN DELTA BADGE */
.result-delta-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  margin-top: 12px;
  animation: popIn 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.result-delta-badge.gain {
  background: rgba(16, 185, 129, 0.2);
  border: 1.5px solid #10b981;
  color: #10b981;
  box-shadow: 0 0 20px rgba(16, 185, 129, 0.35);
}

.result-delta-badge.loss {
  background: rgba(239, 68, 68, 0.2);
  border: 1.5px solid #ef4444;
  color: #ef4444;
  box-shadow: 0 0 20px rgba(239, 68, 68, 0.35);
}

/* APP MAIN - EXTENDED CENTER SECTION (Fills full height without scrolling) */
.app-main {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.view-card {
  display: none;
  flex-direction: column;
  flex: 1;
  height: 100%;
  min-height: 0;
  width: 100%;
  overflow: hidden;
  animation: fadeIn 0.2s ease-out;
}

.view-card.active {
  display: flex;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* 1. JOIN SCREEN */
.join-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(14px, 2.5vh, 24px) 18px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-sizing: border-box;
  overflow: hidden;
}

.join-icon {
  font-size: 3rem;
  margin-bottom: 12px;
}

.join-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.join-box p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-bottom: 24px;
}

.input-group {
  text-align: left;
  margin-bottom: 16px;
}

.input-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--text-dim);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.input-group input {
  width: 100%;
  padding: 14px 16px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: #090d16;
  color: #fff;
  font-size: 1.1rem;
  font-weight: 700;
  font-family: inherit;
}

.input-group input:focus {
  outline: none;
  border-color: var(--accent-cyan);
}

.primary-btn {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #051429;
  border: none;
  font-size: 1.1rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  margin-top: 8px;
}

/* 2. LOBBY WAITING SCREEN */
.waiting-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(16px, 2.5vh, 28px) 18px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-sizing: border-box;
  overflow: hidden;
}

.waiting-spinner {
  width: 50px;
  height: 50px;
  border: 4px solid rgba(255,255,255,0.1);
  border-top-color: var(--accent-cyan);
  border-radius: 50%;
  animation: spin 1s infinite linear;
  margin: 0 auto 20px;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.waiting-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.waiting-box p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 20px;
}

/* LOBBY TEAM CARD & EDIT CONTROLS */
.lobby-team-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border-color);
  border-radius: 16px;
  padding: 14px 16px;
  margin: 0 auto 20px;
  max-width: 320px;
}

.lobby-team-label {
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--text-dim);
  margin-bottom: 6px;
}

.team-display-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.lobby-team-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--accent-cyan);
  word-break: break-word;
}

.btn-edit-badge {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--accent-cyan);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.btn-edit-badge:hover, .btn-edit-badge:active {
  background: rgba(0, 242, 254, 0.25);
  transform: scale(1.05);
}

.team-edit-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
}

.team-edit-row input {
  flex: 1;
  background: #090d16;
  border: 1px solid var(--accent-cyan);
  border-radius: 8px;
  padding: 8px 10px;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 700;
  outline: none;
}

.btn-action-save {
  background: #10b981;
  color: #000;
  font-weight: 800;
  font-size: 0.85rem;
  padding: 8px 12px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.btn-action-cancel {
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 0.85rem;
  padding: 8px 10px;
  border: none;
  border-radius: 8px;
  cursor: pointer;
}

.room-tag {
  background: rgba(255,255,255,0.06);
  padding: 8px 16px;
  border-radius: 12px;
  display: inline-block;
  color: var(--text-dim);
}

.room-tag strong {
  color: var(--accent-cyan);
}

/* 3. WAGER SECTION */
.wager-card {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(12px, 2vh, 20px) 16px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
}

.badge-gold {
  display: inline-block;
  background: var(--accent-gold);
  color: #000;
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
  font-size: 0.85rem;
  padding: 4px 12px;
  border-radius: 999px;
  margin-bottom: 12px;
}

.wager-card h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.category-name {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--accent-cyan);
  margin-bottom: 12px;
}

.wager-bank-pill {
  display: inline-block;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.3);
  color: var(--text-white);
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.wager-bank-pill strong {
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
}

.wager-desc {
  color: var(--text-dim);
  font-size: 0.9rem;
  margin-bottom: 18px;
}

.quick-wager-row {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
  justify-content: center;
}

.btn-quick-pct {
  flex: 1;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: #fff;
  font-weight: 700;
  font-size: 0.85rem;
  cursor: pointer;
}

.btn-quick-pct:active {
  background: rgba(255, 255, 255, 0.2);
}

.btn-quick-pct.btn-all-in {
  background: rgba(239, 68, 68, 0.2);
  border-color: #ef4444;
  color: #fca5a5;
  font-weight: 800;
}

.wager-input-box input {
  width: 100%;
  padding: 16px;
  border-radius: 14px;
  border: 2px solid var(--border-color);
  background: #090d16;
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 16px;
  transition: all 0.2s ease;
}

.wager-input-box input:disabled {
  opacity: 0.6;
  border-color: rgba(255, 255, 255, 0.1);
  background: #060910;
  color: var(--accent-cyan);
  cursor: not-allowed;
}

.btn-quick-pct:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  pointer-events: none;
}

/* BROKE CARD */
.broke-card {
  background: linear-gradient(180deg, rgba(239, 68, 68, 0.1) 0%, var(--card-bg) 100%);
  border-color: rgba(239, 68, 68, 0.3);
}

.broke-icon {
  font-size: 3.5rem;
  margin-bottom: 10px;
  animation: bounce 1.5s infinite;
}

.broke-quote {
  font-style: italic;
  color: #fca5a5;
  font-size: 1rem;
  line-height: 1.5;
  margin: 14px 0 18px;
  padding: 12px;
  border-radius: 12px;
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid rgba(239, 68, 68, 0.2);
}

.broke-subtext {
  font-size: 0.85rem;
  color: var(--text-dim);
  margin-bottom: 20px;
}

/* 3D. SUDDEN DEATH TIE-BREAKER MOBILE STYLES */
.tb-player-card {
  border-color: #ef4444 !important;
  background: radial-gradient(circle at 50% 20%, rgba(239, 68, 68, 0.2) 0%, #111827 80%) !important;
  box-shadow: 0 0 35px rgba(239, 68, 68, 0.35);
  justify-content: space-evenly !important;
}

.tb-player-flame {
  font-size: 2.8rem;
  animation: pulse 1s infinite;
  filter: drop-shadow(0 0 16px rgba(245, 158, 11, 0.7));
}

.tb-badge-danger {
  background: linear-gradient(135deg, #ef4444 0%, #f59e0b 100%) !important;
  color: #fff !important;
  box-shadow: 0 0 15px rgba(239, 68, 68, 0.5);
  letter-spacing: 0.08em;
  font-size: 0.8rem !important;
}

.tb-player-title {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem !important;
  font-weight: 900;
  color: #fff !important;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.5);
  margin-bottom: 4px;
}

.tb-player-desc {
  color: #e2e8f0 !important;
  font-size: 0.95rem !important;
  line-height: 1.45;
  margin: 0 auto;
  max-width: 320px;
}

.tb-player-desc strong {
  color: var(--accent-gold);
  text-shadow: 0 0 8px rgba(245, 158, 11, 0.6);
}

.tb-speed-callout {
  padding: 8px 14px;
  border-radius: 12px;
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid var(--accent-cyan);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: 0.85rem;
  letter-spacing: 0.04em;
  margin: 6px auto;
  animation: pulse 1.5s infinite;
}

/* ALL IN MODAL OVERLAY */
.confirm-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.85);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 20px;
}

.confirm-modal-box {
  background: #141c2e;
  border: 2px solid #ef4444;
  border-radius: 20px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 0 40px rgba(239, 68, 68, 0.4);
  max-width: 360px;
  width: 100%;
}

.warning-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.confirm-modal-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.5rem;
  font-weight: 900;
  color: #ef4444;
  margin-bottom: 10px;
}

.confirm-modal-box p {
  font-size: 1.05rem;
  margin-bottom: 8px;
}

.warning-sub {
  color: #fca5a5;
  font-size: 0.85rem !important;
  margin-bottom: 20px !important;
}

.confirm-btns {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.btn-danger-allin {
  padding: 14px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
  color: #fff;
  font-family: 'Outfit', sans-serif;
  font-size: 1.1rem;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 4px 15px rgba(239, 68, 68, 0.4);
}

.btn-cancel-allin {
  padding: 12px;
  border-radius: 12px;
  border: 1px solid var(--border-color);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  font-weight: 700;
  cursor: pointer;
}

/* 4. QUESTION BUTTONS */
#questionSection {
  height: 100%;
  flex: 1;
  display: none;
  flex-direction: column;
  justify-content: flex-start;
  min-height: 0;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

#questionSection.active {
  display: flex;
}

.question-pill {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px;
  gap: 10px;
  flex-shrink: 0;
  width: 100%;
}

.q-meta-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.player-round-tag {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 100%;
  line-height: 1.25;
}

.player-round-tag .round-prefix {
  color: #f59e0b; /* V-Charge gold/amber/orange */
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  text-shadow: 0 0 12px rgba(245, 158, 11, 0.35);
  flex-shrink: 0;
}

.player-round-tag .round-desc {
  color: #e2e8f0;
  font-family: 'Outfit', sans-serif;
  font-size: 0.86rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.player-q-counter {
  background: linear-gradient(135deg, rgba(0, 242, 254, 0.2) 0%, rgba(59, 130, 246, 0.2) 100%);
  color: var(--accent-cyan);
  border: 1px solid rgba(0, 242, 254, 0.4);
  padding: 2.5px 9px;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.74rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  display: inline-block;
  line-height: 1.25;
}

.q-meta-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-shrink: 0;
}

.player-timer {
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 1.95rem;
  font-weight: 900;
  line-height: 1;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 6px 14px;
  border-radius: 14px;
  background: rgba(0, 242, 254, 0.08);
  border: 1.5px solid rgba(0, 242, 254, 0.3);
  min-width: 76px;
  text-align: center;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.18);
}

.player-timer.urgent {
  color: #f59e0b;
  border-color: rgba(245, 158, 11, 0.8);
  background: rgba(245, 158, 11, 0.22);
  box-shadow: 0 0 22px rgba(245, 158, 11, 0.6);
  animation: timerBlink 0.6s infinite alternate ease-in-out;
}

.player-timer.expired {
  color: #ef4444;
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.22);
  box-shadow: 0 0 22px rgba(239, 68, 68, 0.6);
  animation: none;
}

@keyframes timerBlink {
  0% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 10px rgba(245, 158, 11, 0.4);
  }
  100% {
    transform: scale(1.08);
    opacity: 0.88;
    box-shadow: 0 0 24px rgba(245, 158, 11, 0.95);
  }
}

.player-q-prompt {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  padding: 12px 16px;
  font-size: clamp(0.92rem, 2.3vw, 1.05rem);
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
  text-align: center;
  flex: 1;
  min-height: 72px;
  max-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(0, 242, 254, 0.3) transparent;
  box-sizing: border-box;
}

.player-q-prompt::-webkit-scrollbar {
  width: 4px;
}

.player-q-prompt::-webkit-scrollbar-thumb {
  background: rgba(0, 242, 254, 0.3);
  border-radius: 4px;
}

.mobile-choices {
  display: flex;
  flex-direction: column;
  gap: 7px;
  width: 100%;
  flex-shrink: 0;
  margin-bottom: 6px;
  box-sizing: border-box;
}

.choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 9px 14px;
  min-height: 46px;
  height: auto;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  border-radius: 12px;
  border: 2px solid transparent;
  background: var(--card-bg);
  color: #fff;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(0,0,0,0.25);
  text-align: left;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
  overflow: hidden;
}

.choice-btn:active {
  transform: scale(0.98);
}

/* Selected state (pending lock-in) */
.choice-btn.selected {
  border-color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.12);
  box-shadow: 0 0 16px rgba(0, 242, 254, 0.35), inset 0 0 8px rgba(0, 242, 254, 0.1);
  transform: translateY(-1px);
}

.choice-btn.selected::after {
  content: '✓ Selected';
  position: absolute;
  right: 10px;
  font-size: 0.68rem;
  font-weight: 800;
  color: var(--accent-cyan);
  background: rgba(0, 242, 254, 0.18);
  padding: 3px 6px;
  border-radius: 5px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Dim other buttons when one is selected */
.mobile-choices.has-selection .choice-btn:not(.selected) {
  opacity: 0.55;
}

.choice-letter {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  flex-shrink: 0;
}

.btn-a .choice-letter { background: #e11d48; }
.btn-b .choice-letter { background: #2563eb; }
.btn-c .choice-letter { background: #d97706; }
.btn-d .choice-letter { background: #059669; }

.choice-label {
  flex: 1;
  min-width: 0;
  font-size: 0.95rem;
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 60px;
}

/* LOCK-IN ACTION BAR */
.lock-in-container {
  margin-top: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  flex-shrink: 0;
}

.btn-lock-in {
  width: 100%;
  padding: 11px 16px;
  min-height: 44px;
  border-radius: 12px;
  border: none;
  font-family: 'Outfit', sans-serif;
  font-size: 1.05rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: 0 4px 15px rgba(0,0,0,0.3);
}

.btn-lock-in:disabled {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text-dim);
  border: 1px dashed rgba(255, 255, 255, 0.15);
  box-shadow: none;
  cursor: not-allowed;
}

.btn-lock-in:not(:disabled) {
  background: linear-gradient(135deg, #00f2fe 0%, #4facfe 100%);
  color: #031024;
  box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4);
  animation: lockInPulse 2s infinite;
}

.btn-lock-in:not(:disabled):active {
  transform: scale(0.97);
}

@keyframes lockInPulse {
  0%, 100% { box-shadow: 0 6px 25px rgba(0, 242, 254, 0.4); }
  50% { box-shadow: 0 8px 32px rgba(0, 242, 254, 0.7); }
}

.lock-in-subtext {
  font-size: 0.7rem;
  color: var(--text-dim);
  text-align: center;
  line-height: 1.15;
}

/* LOCKED IN STATE */
.locked-box {
  background: var(--card-bg);
  border: 2px solid var(--accent-green);
  border-radius: 20px;
  padding: 36px 20px;
  text-align: center;
  margin: auto 0;
  box-shadow: 0 0 30px rgba(16, 185, 129, 0.2);
}

.check-icon {
  width: 60px;
  height: 60px;
  background: var(--accent-green);
  color: #000;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  font-weight: 900;
  margin: 0 auto 16px;
}

.locked-box h3 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.locked-box p {
  font-size: 1.2rem;
  color: var(--text-dim);
  margin-bottom: 12px;
}

.locked-box strong {
  color: #fff;
}

.sub-hint {
  font-size: 0.95rem;
  color: var(--accent-cyan);
  font-weight: 700;
}

/* 5. RESULT SECTION */
.result-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(16px, 3vh, 28px) 18px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-evenly;
  box-sizing: border-box;
  overflow: hidden;
}

.result-status-icon {
  font-size: 3rem;
  margin-bottom: 8px;
}

.result-box h2 {
  font-family: 'Outfit', sans-serif;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 8px;
}

.result-box p {
  color: var(--text-dim);
  font-size: 1rem;
  margin-bottom: 16px;
}

.current-total {
  background: rgba(255,255,255,0.06);
  padding: 12px;
  border-radius: 12px;
  font-size: 1.1rem;
}

.current-total strong {
  color: var(--accent-cyan);
}

/* 6. GAME OVER / FINALE VIEW */
.game-over-box {
  background: var(--card-bg);
  border: 1px solid var(--border-color);
  border-radius: 20px;
  padding: clamp(12px, 2vh, 18px) 16px;
  text-align: center;
  height: 100%;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-sizing: border-box;
  overflow: hidden;
  gap: 10px;
}

.game-over-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.game-over-icon {
  font-size: 2.8rem;
  line-height: 1;
  animation: bounce 1.8s infinite;
}

.game-over-headline {
  font-family: 'Outfit', sans-serif;
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--text-white);
  margin: 0;
}

.team-rank-hero {
  display: inline-block;
  padding: 6px 18px;
  border-radius: 999px;
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.team-rank-hero.rank-1 {
  background: linear-gradient(135deg, #f59e0b 0%, #fbbf24 100%);
  color: #000;
  box-shadow: 0 0 25px rgba(245, 158, 11, 0.4);
}

.team-rank-hero.rank-2 {
  background: linear-gradient(135deg, #94a3b8 0%, #e2e8f0 100%);
  color: #090d16;
  box-shadow: 0 0 25px rgba(148, 163, 184, 0.35);
}

.team-rank-hero.rank-3 {
  background: linear-gradient(135deg, #b45309 0%, #d97706 100%);
  color: #fff;
  box-shadow: 0 0 25px rgba(180, 83, 9, 0.35);
}

.team-rank-hero.rank-other {
  background: rgba(0, 242, 254, 0.15);
  border: 1.5px solid var(--accent-cyan);
  color: var(--accent-cyan);
}

.final-score-pill {
  font-size: 0.95rem;
  color: var(--text-dim);
  font-weight: 700;
}

.final-score-pill strong {
  color: var(--accent-cyan);
  font-family: 'Outfit', sans-serif;
  font-size: 1.15rem;
}

/* STANDINGS TOGGLE AREA */
.standings-toggle-area {
  flex: 1;
  min-height: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.btn-toggle-standings {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid var(--border-color);
  color: var(--text-white);
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.95rem;
  font-weight: 800;
  font-family: 'Outfit', sans-serif;
  cursor: pointer;
  transition: all 0.2s ease;
}

.btn-toggle-standings:hover, .btn-toggle-standings:active {
  background: rgba(0, 242, 254, 0.15);
  border-color: var(--accent-cyan);
  color: var(--accent-cyan);
}

.player-standings-drawer {
  width: 100%;
  max-height: 180px;
  overflow-y: auto;
  background: rgba(9, 13, 22, 0.85);
  border: 1px solid var(--border-color);
  border-radius: 14px;
  margin-top: 8px;
  padding: 6px;
  box-sizing: border-box;
}

.player-standings-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--text-white);
  margin-bottom: 4px;
  background: rgba(255, 255, 255, 0.03);
}

.player-standings-row.is-my-team {
  background: rgba(0, 242, 254, 0.15);
  border: 1.5px solid var(--accent-cyan);
  box-shadow: 0 0 14px rgba(0, 242, 254, 0.25);
  color: var(--accent-cyan);
}

.player-standings-rank {
  width: 28px;
  font-weight: 900;
  font-family: 'Outfit', sans-serif;
}

.player-standings-name {
  flex: 1;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding: 0 8px;
}

.player-standings-pts {
  font-family: 'Outfit', sans-serif;
  font-weight: 900;
}

/* VENUE SPECIALS PROMO CARD */
.venue-specials-card {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.12) 0%, rgba(217, 119, 6, 0.08) 100%);
  border: 1px solid rgba(245, 158, 11, 0.35);
  border-radius: 14px;
  padding: 10px 14px;
  text-align: center;
  flex-shrink: 0;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.specials-header {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-bottom: 4px;
}

.specials-icon {
  font-size: 1.15rem;
}

.specials-title {
  font-family: 'Outfit', sans-serif;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--accent-gold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.specials-desc {
  font-size: 0.86rem;
  color: var(--text-white);
  font-weight: 700;
  line-height: 1.35;
  white-space: pre-wrap;
  margin-bottom: 4px;
}

.specials-footer {
  font-size: 0.72rem;
  color: var(--text-dim);
  font-weight: 600;
}

/* FOOTER KIOSK BANNER */
.app-footer {
  margin-top: 8px;
  flex-shrink: 0;
}

.kiosk-banner {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.kiosk-banner-text {
  display: flex;
  flex-direction: column;
  gap: 3px;
  min-width: 0;
  flex: 1;
}

.kiosk-banner-text span {
  font-weight: 700;
  color: var(--text-white);
  font-size: clamp(0.72rem, 3vw, 0.8rem);
  line-height: 1.25;
  white-space: nowrap;
}

.kiosk-banner-text small {
  color: var(--text-dim);
  font-size: clamp(0.58rem, 2.55vw, 0.69rem);
  line-height: 1.25;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.kiosk-link {
  background: rgba(0, 242, 254, 0.12);
  border: 1px solid rgba(0, 242, 254, 0.35);
  color: var(--accent-cyan);
  font-weight: 800;
  font-size: clamp(0.68rem, 2.4vw, 0.74rem);
  padding: 5px 9px;
  border-radius: 7px;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.kiosk-link:hover {
  background: var(--accent-cyan);
  color: #000;
}

/* PLAYER FOOTER MICRO-CREDIT & LEGAL */
.player-footer-credit {
  margin-top: 5px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: clamp(0.58rem, 2.3vw, 0.65rem);
  color: rgba(148, 163, 184, 0.45);
  letter-spacing: 0.01em;
}

.player-footer-credit strong {
  color: rgba(226, 232, 240, 0.65);
}

.player-legal-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  font-size: clamp(0.55rem, 2.1vw, 0.62rem);
}

.player-legal-links a {
  color: rgba(0, 242, 254, 0.6);
  text-decoration: none;
  transition: color 0.2s ease;
}

.player-legal-links a:hover {
  color: var(--accent-cyan);
  text-decoration: underline;
}

.legal-dot {
  color: rgba(100, 116, 139, 0.4);
}

/* RESPONSIVE SCALING FOR COMPACT SCREENS (iPhone 12 Pro, SE, etc.) */
@media (max-height: 700px) {
  .mobile-wrapper {
    padding: 6px 10px;
  }
  .app-header {
    padding: 6px 10px;
    margin-bottom: 6px;
  }
  .player-timer {
    font-size: 1.65rem;
    padding: 4px 11px;
    min-width: 66px;
  }
  .player-round-tag .round-prefix {
    font-size: 0.88rem;
  }
  .player-round-tag .round-desc {
    font-size: 0.8rem;
  }
  .player-q-prompt {
    font-size: 0.88rem;
    padding: 8px 12px;
    margin-bottom: 5px;
    min-height: 60px;
    max-height: 120px;
  }
  .mobile-choices {
    gap: 5px;
    margin-bottom: 5px;
  }
  .choice-btn {
    padding: 6px 10px;
    min-height: 38px;
    height: auto;
  }
  .choice-letter {
    width: 26px;
    height: 26px;
    font-size: 0.95rem;
  }
  .choice-label {
    font-size: 0.86rem;
  }
  .btn-lock-in {
    padding: 8px 12px;
    min-height: 38px;
    font-size: 0.92rem;
  }
  .app-footer {
    margin-top: 5px;
  }
  .kiosk-banner {
    padding: 5px 8px;
  }
  .player-footer-credit {
    margin-top: 3px;
    gap: 1px;
    font-size: 0.56rem;
  }
  .player-legal-links {
    font-size: 0.54rem;
  }
}
