/* ── ONE% Game Show — Refreshed Theme ──────────────────────────── */

:root {
  --lime:           #c3fc02;
  --lime-dark:      #9acc00;
  --bg-dark:        #1d1f1c;
  --bg-dark-2:      #272922;
  --bg-card:        rgba(255,255,255,0.04);
  --bg-card-hover:  rgba(195,252,2,0.08);
  --accent:         #c3fc02;
  --accent-dim:     rgba(195,252,2,0.20);
  --eliminated-dim: #3a3d36;
  --correct-green:  #32CD32;
  --wrong-red:      #DC143C;
  --orange:         #FF8C00;
  --white:          #FFFFFF;
  --muted:          #9a9c96;
  --font:           'Rajdhani', system-ui, -apple-system, sans-serif;
  --font-display:   'Orbitron', 'Rajdhani', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html, body, #root {
  height: 100%;
  font-family: var(--font);
  font-weight: 500;
  color: var(--white);
  background: var(--bg-dark);
  overflow: hidden;
}

.app-container {
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, var(--bg-dark) 0%, var(--bg-dark-2) 100%);
  overflow: hidden;
}

/* ── Screens ─────────────────────────────────────────────── */
.screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.6rem 1rem;
  gap: 0.5rem;
  flex: 1;
  max-height: 100vh;
  overflow-y: auto;
  overflow-x: hidden;
}

/* ── Animations ──────────────────────────────────────────── */
.fade-in { animation: fadeIn 0.5s ease-out; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }

.scale-in { animation: scaleIn 0.4s ease-out; }
@keyframes scaleIn { from { transform: scale(0.8); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.slide-up { animation: slideUp 0.6s ease-out; }
@keyframes slideUp { from { transform: translateY(30px); opacity: 0; } to { transform: translateY(0); opacity: 1; } }

.stagger-0 { animation: fadeUp 0.35s 0.05s ease-out both; }
.stagger-1 { animation: fadeUp 0.35s 0.15s ease-out both; }
.stagger-2 { animation: fadeUp 0.35s 0.25s ease-out both; }
.stagger-3 { animation: fadeUp 0.35s 0.35s ease-out both; }
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.pulse { animation: pulse 0.8s ease-in-out infinite alternate; }
@keyframes pulse { from { transform: scale(1); } to { transform: scale(1.15); } }

/* ── Intro Screen ────────────────────────────────────────── */
.intro-screen { justify-content: center; gap: 1.2rem; }

.intro-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.2rem;
}

.intro-logo {
  max-width: 360px;
  width: 75%;
  height: auto;
}

.game-subtitle {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: 8px;
  color: var(--muted);
  text-transform: uppercase;
}

.separator {
  width: min(400px, 70%);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--lime), transparent);
  opacity: 0.6;
}

.intro-message { text-align: center; }
.host-text     { font-size: 1.2rem; font-weight: 600; margin-bottom: 0.3rem; }
.contestant-count { font-size: 1rem; color: var(--muted); font-weight: 500; }

/* ── How-to-Play Button ───────────────────────────────────── */
.btn-how-to {
  background: transparent;
  color: var(--muted);
  border: 1px solid rgba(195,252,2,0.25);
  font-size: 0.7rem;
  padding: 0.4rem 1.6rem;
  border-radius: 20px;
  letter-spacing: 2px;
  margin-top: 0.1rem;
  transition: all 0.25s ease;
}
.btn-how-to:hover {
  color: var(--lime);
  border-color: var(--lime);
  background: rgba(195,252,2,0.06);
}

/* ── Overlay / Modal ──────────────────────────────────────── */
.overlay {
  position: fixed;
  inset: 0;
  z-index: 900;
  background: rgba(0,0,0,0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  backdrop-filter: blur(4px);
}
.overlay-card {
  position: relative;
  background: var(--bg-dark);
  border: 1px solid rgba(195,252,2,0.2);
  border-radius: 12px;
  padding: 1.8rem 1.6rem 1.4rem;
  max-width: 420px;
  width: 100%;
  max-height: 85vh;
  overflow-y: auto;
  box-shadow: 0 8px 40px rgba(0,0,0,0.6);
}
.overlay-close {
  position: absolute;
  top: 0.5rem;
  right: 0.7rem;
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s;
}
.overlay-close:hover { color: var(--white); }
.overlay-title {
  font-family: var(--font-display);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: var(--lime);
  text-align: center;
  margin-bottom: 1rem;
}
.overlay-body {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}
.htp-rule {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
}
.htp-num {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--lime);
  color: var(--bg-dark);
  font-family: var(--font-display);
  font-size: 0.65rem;
  font-weight: 700;
}
.htp-rule p {
  font-size: 0.85rem;
  color: var(--white);
  line-height: 1.45;
  margin: 0;
}

/* ── Inline SVG Icons ─────────────────────────────────────── */
.icon {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}
.icon-inline {
  display: inline-flex;
  align-items: center;
  width: 1.1em;
  height: 1.1em;
  vertical-align: -0.15em;
}
.icon-inline .icon,
.icon-inline svg {
  width: 100%;
  height: 100%;
}
.icon-pin { color: var(--muted); }
.btn-icon-text {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}
.cat-icon {
  display: inline-flex;
  width: 1.2em;
  height: 1.2em;
  color: var(--lime);
}
.cat-icon svg { width: 100%; height: 100%; }

/* ── Mini Logo (in-game) ──────────────────────────────────── */
.mini-logo-bar {
  display: flex;
  justify-content: center;
  padding: 0.1rem 5px 5px;
}
.mini-logo {
  width: 48px;
  height: auto;
  opacity: 0.8;
  filter: drop-shadow(0 0 4px rgba(195,252,2,0.25));
}

/* ── Buttons ─────────────────────────────────────────────── */
.btn {
  border: none;
  cursor: pointer;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.85rem;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 6px;
  transition: all 0.2s ease;
}

.btn:hover { transform: scale(1.03); }

.btn-gold {
  background: linear-gradient(180deg, var(--lime), var(--lime-dark));
  color: var(--bg-dark);
  box-shadow: 0 2px 12px rgba(195,252,2,0.25);
}
.btn-gold:hover { box-shadow: 0 4px 20px rgba(195,252,2,0.4); }

.btn-large {
  font-size: 0.9rem;
  padding: 0.6rem 2rem;
  margin-top: 0.35rem;
  border-radius: 20px;
}

.btn-orange {
  background: linear-gradient(180deg, var(--orange), #FF6600);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.5rem 1.4rem;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(255,140,0,0.25);
}
.btn-orange:hover { box-shadow: 0 4px 16px rgba(255,140,0,0.4); }

/* ── Question Screen ─────────────────────────────────────── */
.q-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: min(720px, 100%);
  background: var(--bg-card);
  border-radius: 8px;
  padding: 0.4rem 1rem;
  gap: 1rem;
  border: 1px solid rgba(255,255,255,0.06);
}

.q-header-left, .q-header-center, .q-header-right {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.2rem;
}

.round-label {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  color: var(--lime);
  letter-spacing: 2px;
  text-shadow: 0 0 6px rgba(195,252,2,0.3);
}

.category-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.25rem 0.9rem;
  border-radius: 14px;
  background: var(--accent-dim);
  border: 1px solid var(--lime);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.7rem;
  letter-spacing: 1.5px;
  text-transform: uppercase;
}
.players-count {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  text-shadow: 0 0 4px rgba(255,255,255,0.2);
}
.players-label { font-size: 0.65rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }

.diff-label { font-size: 0.65rem; font-weight: 600; color: var(--muted); letter-spacing: 1px; text-transform: uppercase; }
.diff-dots  { display: flex; gap: 3px; }
.dot        { width: 8px; height: 8px; border-radius: 50%; background: #50504a; }
.dot-active { background: var(--lime); }

.question-box {
  max-width: 680px;
  width: 100%;
  padding: 0.7rem 1.4rem;
  border-radius: 8px;
  background: var(--bg-card);
  border: 1px solid var(--lime);
  text-align: center;
}
.question-text { font-size: 1.15rem; font-weight: 600; line-height: 1.45; }

/* ── Options ─────────────────────────────────────────────── */
.options-container {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: min(680px, 100%);
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  background: var(--bg-card);
  border: 1px solid rgba(154,156,150,0.3);
  cursor: pointer;
  transition: all 0.2s ease;
  min-height: 40px;
}
.option-btn:hover {
  background: var(--bg-card-hover);
  border-color: var(--lime);
  transform: scale(1.01);
  box-shadow: 0 0 12px rgba(195,252,2,0.15);
}

.option-btn.selected {
  background: rgba(195,252,2,0.10);
  border-color: var(--lime);
  box-shadow: 0 0 16px rgba(195,252,2,0.25);
  transform: scale(1.01);
}
.option-btn.selected .option-letter {
  background: var(--lime);
  color: var(--bg-dark);
  border-color: var(--lime);
}

.option-letter {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--accent-dim);
  border: 1px solid rgba(255,255,255,0.4);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.8rem;
  flex-shrink: 0;
  color: var(--bg-dark);
}
.option-btn:hover .option-letter { background: var(--lime); }

.option-text { font-size: 1.05rem; font-weight: 600; }

/* Spectator / eliminated — options are non-interactive */
.options-spectator {
  pointer-events: none;
  opacity: 0.4;
}

.pass-container { margin-top: 0.5rem; }

.status-eliminated {
  font-size: 0.95rem;
  font-weight: 600;
  color: #FF9696;
  margin-top: 0.3rem;
}

.status-confirmed {
  font-size: 1rem;
  font-weight: 600;
  color: var(--lime);
  margin-top: 0.3rem;
  text-shadow: 0 0 6px rgba(195,252,2,0.3);
}

/* ── Countdown Ring Timer ────────────────────────────────── */
.countdown-container {
  display: flex;
  justify-content: center;
  margin: 0;
}
.countdown-ring {
  width: 64px;
  height: 64px;
  filter: drop-shadow(0 0 6px rgba(195,252,2,0.2));
}
.countdown-bg {
  fill: none;
  stroke: rgba(60,60,50,0.3);
  stroke-width: 5;
}
.countdown-fg {
  fill: none;
  stroke-width: 5;
  stroke-linecap: round;
  transform: rotate(-90deg);
  transform-origin: center;
  transition: stroke-dashoffset 0.4s ease, stroke 0.4s ease;
}
.countdown-text {
  fill: white;
}
.countdown-critical .countdown-ring {
  animation: ringPulse 0.6s ease-in-out infinite alternate;
}
@keyframes ringPulse {
  from { filter: drop-shadow(0 0 8px rgba(220,20,60,0.4)); }
  to   { filter: drop-shadow(0 0 20px rgba(220,20,60,0.8)); }
}

/* ── Action Buttons ──────────────────────────────────────── */
.action-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  justify-content: center;
  margin-top: 0.3rem;
}

.spectator-actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.3rem;
}

.btn-confirm {
  background: linear-gradient(180deg, var(--lime), var(--lime-dark));
  color: var(--bg-dark);
  font-size: 0.9rem;
  padding: 0.55rem 2rem;
  border-radius: 20px;
  box-shadow: 0 2px 14px rgba(195,252,2,0.3);
}
.btn-confirm:hover {
  box-shadow: 0 4px 20px rgba(195,252,2,0.5);
}

.btn-skip {
  background: linear-gradient(180deg, #555, #444);
  color: var(--white);
  font-size: 0.85rem;
  padding: 0.45rem 1.8rem;
  border-radius: 20px;
  box-shadow: 0 2px 8px rgba(255,255,255,0.06);
}
.btn-skip:hover {
  background: linear-gradient(180deg, #666, #555);
  box-shadow: 0 4px 14px rgba(255,255,255,0.12);
}

/* ── Progress Bar ────────────────────────────────────────── */
.progress-bar {
  display: flex;
  gap: 3px;
  width: 100%;
  max-width: 680px;
  justify-content: center;
  padding: 0.25rem 0;
}

.prog-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  flex: 1 1 0;
  min-width: 0;
}
.prog-pip {
  width: 100%;
  height: 5px;
  border-radius: 3px;
}
.prog-label { font-family: var(--font-display); font-size: 0.45rem; font-weight: 600; letter-spacing: 0.5px; white-space: nowrap; }

.prog-done  .prog-pip  { background: var(--lime); }
.prog-done  .prog-label { color: var(--lime); }
.prog-active .prog-pip  { background: var(--white); }
.prog-active .prog-label { color: var(--white); }
.prog-future .prog-pip  { background: rgba(60,60,60,0.5); }
.prog-future .prog-label { color: #6a6c66; }

/* ── Crowd Grid (SVG Stickmen) ───────────────────────────── */
.crowd-grid {
  display: grid;
  grid-template-columns: repeat(20, 1fr);
  gap: 1px;
  padding: 0.2rem;
  background: rgba(0,0,0,0.2);
  border-radius: 6px;
  max-width: 500px;
  width: 100%;
}

.stickman-cell {
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.4s ease;
}

.stickman {
  width: 100%;
  height: auto;
  max-width: 14px;
}

.stickman-cell.empty     { opacity: 0.2; }
.stickman-cell.eliminated {
  opacity: 0.25;
  transform: scale(0.8);
  transition: opacity 2s ease, transform 2s ease;
}
.stickman-cell.active    {
  opacity: 1;
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.stickman-cell.you       {
  opacity: 1;
}
/* No box-shadow border — glow comes from SVG inline filter */

/* ── Results Screen ──────────────────────────────────────── */
.results-screen { gap: 0.6rem; }

.gold-text { font-family: var(--font-display); font-size: 0.85rem; color: var(--lime); font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }

.correct-answer-box {
  max-width: 500px;
  width: 100%;
  padding: 0.5rem 1.2rem;
  border-radius: 6px;
  background: rgba(195,252,2,0.06);
  border: 1px solid var(--lime);
  text-align: center;
  font-size: 1.05rem;
  font-weight: 600;
}

.result-message  { font-size: 1.05rem; font-weight: 700; }
.result-correct  { color: #64FF64; }
.result-wrong    { color: #FF6464; }
.result-pass     { color: var(--orange); }
.result-watch    { color: var(--white); }

.null-round-box {
  text-align: center;
  padding: 0.8rem 1.2rem;
  border-radius: 8px;
  background: rgba(255,140,0,0.12);
}
.null-round-box h3 { font-family: var(--font-display); font-size: 1.1rem; color: var(--orange); margin-bottom: 0.3rem; letter-spacing: 1px; }
.null-round-box p  { font-size: 0.95rem; }
.sub-text          { color: var(--muted); }

.elimination-section {
  text-align: center;
  padding: 0.3rem 0.8rem;
  border-radius: 8px;
  max-width: 500px;
  width: 100%;
}

/* User still playing — neutral tint */
.elim-user-safe {
  background: rgba(255,255,255,0.05);
}
.elim-user-safe .elim-heading { color: var(--muted); }
.elim-user-safe .elim-pct { color: var(--muted); }
.elim-user-safe .elim-bar-fill { background: var(--muted); box-shadow: none; }
.elim-user-safe .elim-list { border-color: rgba(150,150,140,0.3); background: rgba(100,100,90,0.12); }
.elim-user-safe .elim-list::-webkit-scrollbar-thumb { background: rgba(150,150,140,0.4); }

/* User eliminated — red warning */
.elim-user-out {
  background: rgba(255,50,50,0.12);
}
.elim-user-out .elim-heading { color: #FF6464; }
.elim-user-out .elim-pct { color: var(--wrong-red); }
.elim-user-out .elim-bar-fill { background: var(--wrong-red); box-shadow: 0 0 10px rgba(220,20,60,0.5); }
.elim-user-out .elim-list { border-color: #C86464; background: rgba(100,50,50,0.2); }
.elim-user-out .elim-list::-webkit-scrollbar-thumb { background: #C86464; }

.elim-heading { font-family: var(--font-display); font-size: 0.8rem; margin-bottom: 0.3rem; letter-spacing: 1px; text-transform: uppercase; }

.elim-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  margin-bottom: 0.3rem;
  font-size: 0.8rem;
}
.elim-pct { font-family: var(--font-display); font-size: 1.2rem; font-weight: 800; }

.elim-bar-bg {
  width: 100%;
  max-width: 420px;
  height: 4px;
  border-radius: 2px;
  background: rgba(40,40,60,0.8);
  border: none;
  margin: 0 auto 0.3rem;
  overflow: hidden;
}
.elim-bar-fill {
  height: 100%;
  border-radius: 2px;
  background: var(--wrong-red);
  box-shadow: 0 0 6px rgba(220,20,60,0.4);
  transition: width 0.6s ease;
}

.elim-list {
  list-style: none;
  max-height: 320px;
  overflow-y: auto;
  padding: 0.2rem;
  border-radius: 4px;
  scroll-behavior: smooth;
}
.elim-list::-webkit-scrollbar { width: 3px; }
.elim-list::-webkit-scrollbar-track { background: transparent; }

.elim-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.15rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s ease;
  line-height: 1;
}
.elim-item:hover { background: rgba(255,100,100,0.12); }

.elim-item-you {
  background: rgba(195,252,2,0.10);
  border-left: 2px solid var(--lime);
  border-radius: 4px;
}
.elim-item-you .elim-name { color: var(--lime); }
.elim-item-you:hover { background: rgba(195,252,2,0.18); }

.elim-item + .elim-item {
  border-top: 1px solid rgba(200,100,100,0.15);
}

.elim-avatar-wrap {
  width: 16px;
  height: 20px;
  flex-shrink: 0;
  display: flex;
  align-items: center;
}
.elim-avatar {
  width: 16px;
  height: 20px;
  display: block;
}

.elim-info {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex: 1;
  min-width: 0;
  gap: 0.5rem;
}

.elim-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--white);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.elim-location {
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  text-align: right;
  flex-shrink: 0;
}

.no-elim { font-size: 1.05rem; font-weight: 600; color: #64FF64; }

.remaining-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.25rem 1rem;
  margin-top: 0.3rem;
  border-radius: 8px;
  background: rgba(100,255,100,0.06);
  border: 1px solid #64FF64;
}
.remaining-count { font-family: var(--font-display); font-size: 1.5rem; font-weight: 800; color: #64FF64; }
.remaining-label { font-family: var(--font-display); font-size: 0.65rem; font-weight: 600; color: var(--muted); letter-spacing: 1.5px; text-transform: uppercase; }

/* ── Winner Screen ───────────────────────────────────────── */
.winner-screen {
  justify-content: center;
  position: relative;
  overflow: hidden;
}

.winners-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  max-width: 360px;
  max-height: 200px;
  overflow-y: auto;
  padding: 0.2rem;
}
.winners-list::-webkit-scrollbar { width: 3px; }
.winners-list::-webkit-scrollbar-thumb { background: var(--lime); border-radius: 3px; }
.winners-list::-webkit-scrollbar-track { background: transparent; }

.winner-card-you {
  border-color: var(--lime) !important;
  box-shadow: 0 0 12px rgba(195,252,2,0.2);
}

/* ── Final Choice Screen ─────────────────────────────────── */
.final-choice-screen {
  justify-content: center;
}

.final-choice-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
}

.final-choice-title {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 900;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(195,252,2,0.4);
  letter-spacing: 4px;
}

.final-choice-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.8rem;
  max-width: 420px;
  text-align: center;
}

.final-choice-msg {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--lime);
}

.final-choice-desc {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.5;
}

.final-choice-buttons {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  align-items: center;
  margin-top: 0.3rem;
}

.winner-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.6rem;
  z-index: 2;
  position: relative;
}

.trophy-icon {
  color: var(--lime);
  filter: drop-shadow(0 0 8px rgba(195,252,2,0.4));
}
.icon-trophy-lg {
  width: 44px;
  height: 44px;
}

.winner-title {
  font-family: var(--font-display);
  font-size: 2.4rem;
  font-weight: 900;
  color: var(--lime);
  text-shadow: 0 0 16px rgba(195,252,2,0.4);
  letter-spacing: 4px;
}

.winner-subtitle {
  font-family: var(--font-display);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 8px;
  text-transform: uppercase;
}

.winner-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 0.8rem 1.5rem;
  border-radius: 12px;
  background: radial-gradient(ellipse at center, rgba(195,252,2,0.08), rgba(195,252,2,0.02));
  border: 1px solid var(--lime);
  max-width: 360px;
  width: 100%;
}

.winner-avatar-wrap {
  flex-shrink: 0;
}
.winner-avatar {
  width: 50px;
  height: 66px;
}

.winner-details {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  text-align: left;
}

.winner-tag {
  font-family: var(--font-display);
  font-size: 0.55rem;
  color: var(--muted);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.25rem;
  letter-spacing: 2px;
  text-transform: uppercase;
}
.winner-tag .icon-inline { color: var(--lime); }

.winner-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--lime);
  text-shadow: 0 0 10px rgba(195,252,2,0.4);
  line-height: 1.1;
}

.winner-location {
  font-size: 0.9rem;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 0.2rem;
}

.congrats-text {
  font-size: 1rem;
  font-weight: 600;
  color: var(--orange);
  text-align: center;
  max-width: 420px;
}
.congrats-text.you-win { color: var(--correct-green); text-shadow: 0 0 6px rgba(50,205,50,0.3); }
.congrats-text .icon-inline { color: var(--correct-green); }

/* ── Confetti ────────────────────────────────────────────── */
.confetti-container {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}

.confetti-piece {
  position: absolute;
  top: -20px;
  border-radius: 3px;
  animation: confettiFall linear forwards;
}

@keyframes confettiFall {
  0%   { transform: translateY(0) rotate(0deg);   opacity: 1; }
  90%  { opacity: 1; }
  100% { transform: translateY(110vh) rotate(720deg); opacity: 0; }
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 768px) {
  .screen        { padding: 0.4rem 0.8rem; gap: 0.25rem; }
  .game-title    { font-size: 2rem; }
  .q-header      { flex-direction: column; gap: 0.4rem; padding: 0.3rem 0.6rem; }
  .crowd-grid    { gap: 1px; padding: 0.15rem; }
  .stickman      { max-width: 10px; }
  .option-btn    { padding: 0.35rem 0.7rem; min-height: 32px; }
  .option-letter { width: 24px; height: 24px; font-size: 0.65rem; }
  .question-box  { padding: 0.4rem 0.8rem; }
  .question-text { font-size: 0.85rem; }
  .countdown-ring { width: 50px; height: 50px; }
  .winner-title  { font-size: 1.6rem; }
  .winner-name   { font-size: 1.1rem; }
  .winner-card   { padding: 0.6rem 1rem; gap: 0.8rem; }
  .winner-avatar { width: 38px; height: 50px; }
  .icon-trophy-lg { width: 32px; height: 32px; }
  .congrats-text { font-size: 0.8rem; }
  .elim-list     { max-height: 260px; }
  .mini-logo     { width: 42px; }
  .btn-large     { font-size: 0.75rem; padding: 0.5rem 1.6rem; }
  .intro-logo    { max-width: 240px; }
}

@media (max-height: 700px) {
  .screen          { padding: 0.2rem 0.6rem; gap: 0.15rem; }
  .crowd-grid      { gap: 1px; padding: 0.1rem; max-width: 400px; }
  .stickman        { max-width: 9px; }
  .countdown-ring  { width: 44px; height: 44px; }
  .mini-logo       { width: 38px; }
  .q-header        { padding: 0.2rem 0.6rem; gap: 0.4rem; }
  .question-box    { padding: 0.3rem 0.6rem; }
  .question-text   { font-size: 0.8rem; }
  .option-btn      { padding: 0.25rem 0.6rem; min-height: 28px; gap: 0.4rem; }
  .option-letter   { width: 22px; height: 22px; font-size: 0.6rem; }
  .option-text     { font-size: 0.75rem; }
  .elim-list       { max-height: 220px; }
  .gold-text       { font-size: 0.6rem; }
  .result-message  { font-size: 0.75rem; }
  .remaining-box   { padding: 0.2rem 0.6rem; }
  .remaining-count { font-size: 1rem; }
  .remaining-label { font-size: 0.45rem; }
  .correct-answer-box { padding: 0.3rem 0.6rem; font-size: 0.75rem; }
  .btn-large       { font-size: 0.7rem; padding: 0.4rem 1.4rem; }
  .round-label     { font-size: 0.7rem; }
  .players-count   { font-size: 1rem; }
  .category-badge  { font-size: 0.5rem; padding: 0.15rem 0.5rem; }
  .elimination-section { padding: 0.2rem 0.4rem; }
  .elim-heading    { font-size: 0.55rem; }
  .elim-pct        { font-size: 0.85rem; }
  .elim-bar-bg     { height: 3px; margin: 0 auto 0.2rem; }
  .winner-title    { font-size: 1.5rem; }
  .winner-name     { font-size: 1rem; }
  .winner-card     { padding: 0.5rem 0.8rem; gap: 0.6rem; }
  .winner-avatar   { width: 32px; height: 42px; }
  .icon-trophy-lg  { width: 28px; height: 28px; }
  .winner-subtitle { font-size: 0.55rem; letter-spacing: 5px; }
  .congrats-text   { font-size: 0.75rem; }
  .progress-bar    { gap: 2px; padding: 0.15rem 0; }
  .prog-pip        { height: 4px; }
  .prog-label      { font-size: 0.4rem; }
  .btn-confirm     { font-size: 0.7rem; padding: 0.4rem 1.4rem; }
  .btn-skip        { font-size: 0.65rem; padding: 0.35rem 1.2rem; }
  .btn-orange      { font-size: 0.65rem; padding: 0.35rem 1rem; }
}

@media (max-height: 580px) {
  .screen          { padding: 0.15rem 0.5rem; gap: 0.1rem; }
  .crowd-grid      { max-width: 340px; }
  .stickman        { max-width: 7px; }
  .mini-logo-bar   { padding: 0; }
  .mini-logo       { width: 34px; }
  .countdown-ring  { width: 36px; height: 36px; }
  .separator       { margin: 0; height: 1px; }
  .q-header        { padding: 0.15rem 0.5rem; gap: 0.3rem; }
  .option-btn      { min-height: 24px; padding: 0.2rem 0.5rem; }
  .option-letter   { width: 18px; height: 18px; font-size: 0.5rem; }
  .elim-list       { max-height: 180px; }
  .winner-content  { gap: 0.3rem; }
  .winner-title    { font-size: 1.2rem; }
}
