@import url('https://fonts.googleapis.com/css2?family=Anton&family=Bebas+Neue&family=Orbitron:wght@400;600;700;800;900&family=Inter:wght@400;500;600;700;800;900&display=swap');

/* ─── CAAC DESIGN TOKENS ───────────────────────────────────── */
:root {
  --bg:          #020618;
  --bg2:         #030d19;
  --bg3:         #041224;
  --primary:     #00d294;
  --primary-dim: #00d29480;
  --electric:    #20e5ef;
  --electric-dim:#20e5ef1a;
  --gold:        #f8cf70;
  --gold-bright: #ffd236;
  --gold-dim:    #f8cf701c;
  --text:        #cad5e2;
  --text-bright: #e2e8f0;
  --text-dim:    #90a1b9;
  --card:        rgba(3,13,25,0.85);
  --card-border: rgba(0,210,148,0.18);
  --card-glow:   rgba(0,210,148,0.06);
  --sponsor-h:   90px;

  --opt-a: #e74c3c;
  --opt-b: #0e7fa5;
  --opt-c: #b8820d;
  --opt-d: #00a875;
}

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

html, body {
  width: 100%; height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: 'Inter', sans-serif;
  overflow: hidden;
  -webkit-font-smoothing: antialiased;
}

/* ─── GLOBAL GRID BACKGROUND (matches CAAC website) ───────── */
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    linear-gradient(rgba(32,229,239,0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(32,229,239,0.055) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
}

/* ambient glow blobs */
body::after {
  content: '';
  position: fixed; inset: 0; z-index: 0;
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(0,80,200,0.22) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%,  rgba(0,120,255,0.12) 0%, transparent 40%),
    radial-gradient(circle at 12% 20%,   rgba(0,210,148,0.10), transparent 35%),
    radial-gradient(circle at 88% 60%,   rgba(248,207,112,0.07), transparent 30%),
    radial-gradient(circle at 50% 0%,    rgba(32,229,239,0.06), transparent 45%);
  pointer-events: none;
}

/* ─── TROPHY BACKGROUND ────────────────────────────────────── */
.trophy-bg-layer {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.trophy-bg-layer::before {
  content: '🏆';
  font-size: min(70vh, 70vw);
  line-height: 1;
  opacity: 0.035;
  filter: grayscale(1) drop-shadow(0 0 60px rgba(0,100,255,0.6));
  transform: translateY(6%) scaleX(0.85);
  animation: trophy-breathe 8s ease-in-out infinite;
}

@keyframes trophy-breathe {
  0%, 100% { opacity: 0.035; filter: grayscale(1) drop-shadow(0 0 60px rgba(0,100,255,0.5)); }
  50%       { opacity: 0.05;  filter: grayscale(1) drop-shadow(0 0 80px rgba(0,150,255,0.7)); }
}

/* ─── FLASH OVERLAY ────────────────────────────────────────── */
#flashOverlay {
  position: fixed; inset: 0; z-index: 400;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.12s ease;
}

/* ─── PARTICLE CANVAS ──────────────────────────────────────── */
#particleCanvas {
  position: fixed; inset: 0; z-index: 350;
  pointer-events: none;
}

/* ─── SPONSOR BANNER ────────────────────────────────────────  */
.sponsor-bar {
  position: fixed; bottom: 0; left: 0; right: 0;
  height: var(--sponsor-h);
  background: rgba(2,6,24,0.97);
  border-top: 1px solid rgba(0,210,148,0.3);
  display: flex;
  align-items: center;
  z-index: 200;
  overflow: hidden;
  box-shadow: 0 -3px 20px rgba(0,210,148,0.15), 0 -1px 0 rgba(32,229,239,0.3);
}

.sponsor-label {
  flex-shrink: 0;
  background: linear-gradient(135deg, var(--primary), var(--electric));
  color: #020618;
  font-family: 'Orbitron', sans-serif;
  font-weight: 800;
  font-size: 13px;
  letter-spacing: 2.5px;
  padding: 0 20px;
  height: 100%;
  display: flex;
  align-items: center;
  text-transform: uppercase;
}

.sponsor-track-wrapper {
  flex: 1; overflow: hidden; height: 100%;
  display: flex; align-items: center;
}

.sponsor-track {
  display: flex;
  align-items: center;
  animation: sponsor-scroll 30s linear infinite;
  white-space: nowrap;
}

@keyframes sponsor-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.sponsor-item {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
  font-size: 20px;
  letter-spacing: 2px;
  color: var(--gold);
  margin: 0 60px;
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(248,207,112,0.45);
}

/* ─── APP CONTAINER ────────────────────────────────────────── */
#app {
  position: relative; z-index: 1;
  height: calc(100vh - var(--sponsor-h));
  overflow: hidden;
}

#app.shake { animation: screen-shake 0.42s ease; }

@keyframes screen-shake {
  0%,100% { transform: translateX(0) rotate(0); }
  15%     { transform: translateX(-9px) rotate(-0.4deg); }
  30%     { transform: translateX(9px)  rotate(0.4deg); }
  45%     { transform: translateX(-6px) rotate(-0.3deg); }
  60%     { transform: translateX(6px)  rotate(0.3deg); }
  75%     { transform: translateX(-3px); }
  90%     { transform: translateX(3px); }
}

/* ─── SCREENS ──────────────────────────────────────────────── */
.screen {
  position: absolute; inset: 0;
  display: none; flex-direction: column;
  align-items: center; justify-content: center;
  padding: 20px;
  animation: screenIn 0.4s cubic-bezier(0.16,1,0.3,1);
}

.screen.active { display: flex; }

@keyframes screenIn {
  from { opacity: 0; transform: scale(0.97) translateY(12px); }
  to   { opacity: 1; transform: scale(1) translateY(0); }
}

/* ===========================================================
   WELCOME SCREEN
=========================================================== */
#screen-welcome {
  justify-content: space-between;
  padding: 28px 44px;
}

.welcome-logo { text-align: center; padding-top: 6px; }

.logo-campeonato {
  display: flex; flex-direction: column;
  align-items: center; gap: 6px;
}

.logo-top {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px; font-weight: 600;
  letter-spacing: 5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.logo-main {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(26px, 4vw, 50px);
  font-weight: 900;
  letter-spacing: 4px;
  text-transform: uppercase;
  background: linear-gradient(90deg, var(--electric) 0%, #fff 40%, var(--primary) 70%, var(--gold) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 0 20px rgba(0,210,148,0.3));
  animation: logo-shimmer 4s ease-in-out infinite;
}

@keyframes logo-shimmer {
  0%,100% { filter: drop-shadow(0 0 16px rgba(0,210,148,0.3)); }
  50%     { filter: drop-shadow(0 0 32px rgba(32,229,239,0.5)); }
}

.logo-url {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 500;
  color: var(--primary);
  letter-spacing: 2px;
  text-shadow: 0 0 10px rgba(0,210,148,0.5);
}

.welcome-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
}

.welcome-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 12px; font-weight: 700;
  letter-spacing: 5px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 12px rgba(248,207,112,0.4);
}

.player-entry {
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 26px 36px;
  min-width: 380px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 40px var(--card-glow), inset 0 1px 0 rgba(255,255,255,0.04);
}

.player-entry label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.player-entry input[type="text"] {
  width: 100%;
  background: rgba(0,0,0,0.4);
  border: 1px solid rgba(0,210,148,0.25);
  border-radius: 10px;
  color: var(--text-bright);
  font-family: 'Inter', sans-serif;
  font-size: 20px; font-weight: 700;
  padding: 14px 18px;
  text-align: center;
  outline: none;
  transition: border-color 0.25s, box-shadow 0.25s;
}

.player-entry input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(0,210,148,0.15), 0 0 20px rgba(0,210,148,0.1);
}

.player-entry input.shake {
  animation: input-shake 0.4s ease;
  border-color: var(--opt-a);
}

@keyframes input-shake {
  0%,100% { transform: translateX(0); }
  20%     { transform: translateX(-8px); }
  40%     { transform: translateX(8px); }
  60%     { transform: translateX(-5px); }
  80%     { transform: translateX(5px); }
}

/* ─── BUTTONS ──────────────────────────────────────────────── */
.btn-primary {
  background: linear-gradient(135deg, var(--primary), #009e6e);
  border: none;
  border-radius: 12px;
  color: #020618;
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 800;
  letter-spacing: 3px;
  padding: 16px 40px;
  text-transform: uppercase;
  transition: transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 24px rgba(0,210,148,0.35), 0 0 0 1px rgba(0,210,148,0.2);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 36px rgba(0,210,148,0.55), 0 0 0 1px rgba(0,210,148,0.3);
}

.btn-primary:active { transform: translateY(1px); }

.btn-secondary {
  background: transparent;
  border: 1px solid var(--card-border);
  border-radius: 12px;
  color: var(--text);
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2px;
  padding: 14px 28px;
  text-transform: uppercase;
  transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}

.btn-secondary:hover {
  border-color: var(--primary);
  background: rgba(0,210,148,0.07);
  box-shadow: 0 0 16px rgba(0,210,148,0.15);
}

/* ─── LEADERBOARD PREVIEW ──────────────────────────────────── */
.welcome-leaderboard {
  width: 100%; max-width: 600px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 16px 22px;
  backdrop-filter: blur(8px);
}

.welcome-leaderboard h3 {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--gold);
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 12px;
  text-shadow: 0 0 10px rgba(248,207,112,0.4);
}

.lb-row {
  display: flex; align-items: center; gap: 12px;
  padding: 7px 8px; border-radius: 8px; margin-bottom: 3px;
}

.lb-row.lb-first { background: rgba(248,207,112,0.08); }

.lb-pos {
  width: 22px; font-size: 12px; font-weight: 800;
  color: var(--text-dim); text-align: center;
  font-family: 'Orbitron', sans-serif;
}

.lb-name { flex: 1; font-weight: 700; font-size: 15px; }

.lb-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 17px; font-weight: 900;
  color: var(--primary); min-width: 50px; text-align: right;
}

.lb-empty {
  text-align: center; color: var(--text-dim); font-size: 13px; padding: 8px;
}

/* ===========================================================
   COUNTDOWN SCREEN
=========================================================== */
#screen-countdown {
  background: radial-gradient(ellipse at center, #041427 0%, var(--bg) 70%);
}

.countdown-container {
  text-align: center;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}

.countdown-player {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,210,148,0.5);
}

.countdown-number {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(120px, 22vw, 220px);
  font-weight: 900; line-height: 1;
  color: var(--gold);
  text-shadow: 0 0 80px rgba(248,207,112,0.45);
}

.countdown-number.pop { animation: pop 0.38s cubic-bezier(0.16,1,0.3,1); }

.countdown-number.go {
  color: var(--primary);
  text-shadow: 0 0 80px rgba(0,210,148,0.6);
}

@keyframes pop {
  0%   { transform: scale(0.4); opacity: 0; }
  70%  { transform: scale(1.12); }
  100% { transform: scale(1);   opacity: 1; }
}

.countdown-text {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px; font-weight: 700;
  letter-spacing: 6px;
  color: var(--text-dim);
  text-transform: uppercase;
}

/* ===========================================================
   GAME SCREEN
=========================================================== */
#screen-game {
  justify-content: flex-start;
  padding: 14px 22px 18px;
  gap: 11px;
}

/* Header bar */
.game-header {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px;
  padding: 11px 20px;
  backdrop-filter: blur(10px);
  box-shadow: 0 0 30px var(--card-glow);
}

.game-player-info {
  display: flex; flex-direction: column; gap: 4px;
}

.player-name-display {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(13px, 1.8vw, 20px);
  font-weight: 800;
  color: var(--primary);
  text-transform: uppercase;
  letter-spacing: 1px;
  text-shadow: 0 0 12px rgba(0,210,148,0.35);
}

.stats-row { display: flex; gap: 14px; }

.stat { font-size: 14px; font-weight: 700; font-family: 'Orbitron', sans-serif; }

.stat.correct-count { color: var(--primary); }
.stat.wrong-count   { color: var(--opt-a); }

/* Timer circle */
.timer-area {
  position: relative;
  width: 96px; height: 96px;
}

.timer-svg {
  width: 100%; height: 100%;
  transform: rotate(-90deg);
}

.timer-track {
  fill: none;
  stroke: rgba(255,255,255,0.06);
  stroke-width: 7;
}

.timer-fill {
  fill: none;
  stroke: var(--primary);
  stroke-width: 7;
  stroke-linecap: round;
  transition: stroke-dashoffset 1s linear, stroke 0.5s ease;
  filter: drop-shadow(0 0 6px rgba(0,210,148,0.6));
}

.timer-text {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px; font-weight: 900;
  color: var(--text-bright);
}

.timer-text.pulse { animation: timer-pulse 1s ease infinite; }

@keyframes timer-pulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.18); }
}

/* Score area */
.score-area {
  text-align: right;
  display: flex; flex-direction: column;
  align-items: flex-end; gap: 2px;
}

.score-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase;
}

.score-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 3.8vw, 44px);
  font-weight: 900; line-height: 1;
  transition: color 0.3s;
  text-shadow: 0 0 20px currentColor;
}

.score-value.score-up {
  animation: score-bounce 0.38s cubic-bezier(0.16,1,0.3,1);
}

.score-value.score-down {
  animation: score-shake 0.38s ease;
}

@keyframes score-bounce {
  0%   { transform: scale(1); }
  50%  { transform: scale(1.35); }
  100% { transform: scale(1); }
}

@keyframes score-shake {
  0%,100% { transform: translateX(0); }
  25%     { transform: translateX(-7px); }
  75%     { transform: translateX(7px); }
}

.q-count {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; color: var(--text-dim); font-weight: 600;
  letter-spacing: 1px;
}

/* ─── MUTE BUTTON ────────────────────────────────────────── */
.mute-btn {
  position: fixed;
  bottom: calc(var(--sponsor-h) + 12px);
  right: 14px;
  background: rgba(3,13,25,0.9);
  border: 1px solid var(--card-border);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-size: 18px;
  width: 38px; height: 38px;
  display: flex; align-items: center; justify-content: center;
  transition: color 0.2s, border-color 0.2s, box-shadow 0.2s;
  z-index: 300;
  backdrop-filter: blur(8px);
}

.mute-btn:hover {
  color: var(--primary);
  border-color: var(--primary);
  box-shadow: 0 0 12px rgba(0,210,148,0.2);
}

/* Question card */
.question-container {
  width: 100%;
  background: linear-gradient(180deg, rgba(4,18,40,0.95) 0%, rgba(2,8,22,0.98) 100%);
  border: 1px solid rgba(32,229,239,0.2);
  border-top: 2px solid rgba(32,229,239,0.55);
  border-radius: 14px;
  padding: 18px 28px;
  min-height: 92px;
  display: flex; align-items: center; justify-content: center;
  backdrop-filter: blur(12px);
  box-shadow:
    0 0 30px rgba(32,229,239,0.08),
    0 0 60px rgba(0,210,148,0.05),
    inset 0 1px 0 rgba(32,229,239,0.12),
    inset 0 -1px 0 rgba(0,0,0,0.4);
  position: relative; overflow: hidden;
}

/* Scan-line LED panel overlay */
.question-container::after {
  content: '';
  position: absolute; inset: 0;
  background: repeating-linear-gradient(
    0deg,
    transparent,
    transparent 3px,
    rgba(0,0,0,0.06) 3px,
    rgba(0,0,0,0.06) 4px
  );
  pointer-events: none; border-radius: 14px;
}

/* Moving scan line */
.question-container::before {
  content: '';
  position: absolute;
  left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent, rgba(32,229,239,0.4), transparent);
  animation: scan-sweep 3s linear infinite;
  pointer-events: none;
}

@keyframes scan-sweep {
  0%   { top: 0%;   opacity: 0; }
  5%   { opacity: 1; }
  95%  { opacity: 1; }
  100% { top: 100%; opacity: 0; }
}

.question-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(16px, 2.3vw, 25px);
  font-weight: 700;
  text-align: center;
  line-height: 1.45;
  color: var(--text-bright);
  text-shadow: 0 0 20px rgba(32,229,239,0.15);
  position: relative; z-index: 1;
}

.question-text.slide-in { animation: slideInQ 0.28s cubic-bezier(0.16,1,0.3,1); }
.question-text.slide-out { animation: slideOut 0.18s ease-in forwards; }

@keyframes slideInQ {
  0%   { opacity: 0; transform: translateY(-24px); filter: blur(1px); }
  60%  { opacity: 1; transform: translateY(4px);   filter: blur(0); }
  80%  { transform: translateY(-2px); }
  100% { transform: translateY(0); }
}

/* ─── OPTIONS GRID ─────────────────────────────────────────── */
.options-grid {
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  flex: 1;
}

.options-grid.slide-in .option { animation: slideInOpt 0.28s cubic-bezier(0.16,1,0.3,1) both; }
.options-grid.slide-in .option:nth-child(1) { animation-delay: 0.03s; }
.options-grid.slide-in .option:nth-child(2) { animation-delay: 0.07s; }
.options-grid.slide-in .option:nth-child(3) { animation-delay: 0.11s; }
.options-grid.slide-in .option:nth-child(4) { animation-delay: 0.15s; }

.options-grid.slide-out .option { animation: slideOut 0.16s ease-in forwards; }
.options-grid.slide-out .option:nth-child(2) { animation-delay: 0.02s; }
.options-grid.slide-out .option:nth-child(3) { animation-delay: 0.04s; }
.options-grid.slide-out .option:nth-child(4) { animation-delay: 0.06s; }

@keyframes slideOut {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to   { opacity: 0; transform: translateY(16px) scale(0.97); }
}

@keyframes slideInOpt {
  0%   { opacity: 0; transform: translateY(-30px) scaleY(0.85); filter: blur(2px); }
  55%  { opacity: 1; transform: translateY(5px) scaleY(1.03);   filter: blur(0); }
  80%  { transform: translateY(-2px) scaleY(0.99); }
  100% { transform: translateY(0) scaleY(1); }
}

.option {
  border: 1px solid rgba(120,160,200,0.25);
  border-radius: 13px;
  cursor: pointer;
  display: flex; align-items: center; gap: 13px;
  font-family: 'Inter', sans-serif;
  font-size: clamp(13px, 1.7vw, 19px);
  font-weight: 700;
  color: #fff;
  padding: 16px 20px;
  text-align: left;
  transition: transform 0.1s, box-shadow 0.1s, filter 0.1s, brightness 0.1s;
  position: relative; overflow: hidden;
  text-shadow: 0 1px 4px rgba(0,0,0,0.6);
}

/* Shine layer */
.option::before {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.12) 0%, transparent 60%);
  border-radius: 14px;
}

/* Ripple on hover */
.option::after {
  content: '';
  position: absolute; inset: 0;
  background: rgba(255,255,255,0);
  transition: background 0.18s;
  border-radius: 14px;
}

.option:hover:not(:disabled)::after { background: rgba(255,255,255,0.1); }
.option:hover:not(:disabled) { transform: translateY(1px) scale(0.995); filter: brightness(1.2); }
.option:active:not(:disabled) { transform: translateY(3px) scale(0.99); filter: brightness(1.4); }

.option-letter {
  flex-shrink: 0;
  width: 36px; height: 36px;
  background: rgba(0,0,0,0.5);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: 15px; font-weight: 900;
  border: 1px solid rgba(255,255,255,0.15);
}

.option-text { line-height: 1.3; }

/* Option colors — aligned with CAAC palette */
.option-a {
  background: linear-gradient(180deg, rgba(90,15,15,0.85) 0%, rgba(35,8,8,0.96) 45%, rgba(14,4,4,0.99) 100%);
  border: 1px solid rgba(231,76,60,0.4);
  border-top: 3px solid #e74c3c;
  box-shadow: 0 0 24px rgba(231,76,60,0.3), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,120,100,0.15), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.option-a .option-letter { background: rgba(231,76,60,0.3); border-color: rgba(231,76,60,0.6); color: #ff9a8a; }
.option-b {
  background: linear-gradient(180deg, rgba(10,40,60,0.85) 0%, rgba(5,18,28,0.96) 45%, rgba(3,10,16,0.99) 100%);
  border: 1px solid rgba(14,143,176,0.4);
  border-top: 3px solid #20c5ef;
  box-shadow: 0 0 24px rgba(14,143,176,0.3), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(100,200,255,0.12), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.option-b .option-letter { background: rgba(14,143,176,0.3); border-color: rgba(14,143,176,0.6); color: #70d8f0; }
.option-c {
  background: linear-gradient(180deg, rgba(60,35,5,0.85) 0%, rgba(28,16,2,0.96) 45%, rgba(12,8,1,0.99) 100%);
  border: 1px solid rgba(201,140,0,0.4);
  border-top: 3px solid #f8a800;
  box-shadow: 0 0 24px rgba(201,140,0,0.28), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(255,200,80,0.12), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.option-c .option-letter { background: rgba(201,140,0,0.3); border-color: rgba(201,140,0,0.6); color: #ffd060; }
.option-d {
  background: linear-gradient(180deg, rgba(5,40,25,0.85) 0%, rgba(3,20,12,0.96) 45%, rgba(1,10,6,0.99) 100%);
  border: 1px solid rgba(0,168,117,0.4);
  border-top: 3px solid #00d294;
  box-shadow: 0 0 24px rgba(0,168,117,0.28), 0 4px 20px rgba(0,0,0,0.5), inset 0 1px 0 rgba(0,210,148,0.12), inset 0 -1px 0 rgba(0,0,0,0.6);
}
.option-d .option-letter { background: rgba(0,168,117,0.3); border-color: rgba(0,168,117,0.6); color: #60e8b8; }

/* ─── ANSWER FEEDBACK STATES ──────────────────────────────── */
.option.correct {
  background: linear-gradient(180deg, rgba(0,60,30,0.95) 0%, rgba(0,40,20,0.98) 100%) !important;
  border: 1px solid rgba(0,210,148,0.8) !important;
  border-top: 3px solid #00d294 !important;
  box-shadow: 0 0 0 2px rgba(0,210,148,0.5), 0 0 40px rgba(0,210,148,0.6), inset 0 0 20px rgba(0,210,148,0.1) !important;
  transform: scale(1.03) !important;
  animation: correct-glow 0.45s ease;
}

.option.correct .option-letter {
  background: rgba(0,210,148,0.4) !important;
  border-color: #00d294 !important;
  color: #00ffb8 !important;
  box-shadow: 0 0 12px rgba(0,210,148,0.6) !important;
}

@keyframes correct-glow {
  0%   { transform: scale(1);    filter: brightness(1); }
  35%  { transform: scale(1.06); filter: brightness(1.4); }
  100% { transform: scale(1.03); filter: brightness(1); }
}

.option.wrong {
  background: linear-gradient(180deg, rgba(60,5,5,0.9) 0%, rgba(30,2,2,0.97) 100%) !important;
  border: 1px solid rgba(231,76,60,0.7) !important;
  opacity: 0.6;
  box-shadow: 0 0 0 2px rgba(231,76,60,0.4), 0 0 24px rgba(231,76,60,0.35) !important;
}

.option.dimmed {
  opacity: 0.18;
  filter: grayscale(0.6) brightness(0.55);
  transform: scale(0.985);
}

.option:disabled { cursor: default; }

/* ===========================================================
   GAME OVER SCREEN
=========================================================== */
#screen-gameover {
  background: radial-gradient(ellipse at center, #041427 0%, var(--bg) 70%);
}

.gameover-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 20px; text-align: center;
}

.gameover-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(50px, 8vw, 84px);
  font-weight: 900; letter-spacing: 6px;
  color: var(--gold);
  text-shadow: 0 0 50px rgba(248,207,112,0.5);
  animation: pop 0.5s cubic-bezier(0.16,1,0.3,1);
}

.gameover-player {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,210,148,0.45);
}

.gameover-score {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 24px 52px;
  backdrop-filter: blur(12px);
  box-shadow: 0 0 50px var(--card-glow);
}

.score-final-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--text-dim); text-transform: uppercase;
}

.score-final-value {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(56px, 9vw, 100px);
  font-weight: 900; line-height: 1;
  text-shadow: 0 0 40px currentColor;
  animation: pop 0.5s 0.2s both cubic-bezier(0.16,1,0.3,1);
}

.gameover-stats { display: flex; gap: 16px; }

.go-stat {
  display: flex; flex-direction: column;
  align-items: center; gap: 4px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 12px;
  padding: 14px 22px; min-width: 86px;
}

.go-stat-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 8px; font-weight: 700;
  letter-spacing: 2px;
  color: var(--text-dim); text-transform: uppercase;
}

.go-stat-val {
  font-family: 'Orbitron', sans-serif;
  font-size: 26px; font-weight: 900;
}

.go-stat.correct .go-stat-val { color: var(--primary); text-shadow: 0 0 12px rgba(0,210,148,0.4); }
.go-stat.wrong   .go-stat-val { color: var(--opt-a);   text-shadow: 0 0 12px rgba(231,76,60,0.4); }

.gameover-buttons { display: flex; gap: 14px; margin-top: 4px; }

/* ===========================================================
   LEADERBOARD SCREEN
=========================================================== */
#screen-leaderboard {
  justify-content: flex-start;
  padding: 24px 32px; gap: 14px;
  overflow-y: auto;
}

.leaderboard-content {
  width: 100%; max-width: 820px;
  display: flex; flex-direction: column; gap: 14px;
}

.leaderboard-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(26px, 3.8vw, 44px);
  font-weight: 900; letter-spacing: 4px;
  text-align: center;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(248,207,112,0.4);
}

.leaderboard-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px;
  text-align: center;
  color: var(--text-dim); text-transform: uppercase;
}

.leaderboard-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 14px; overflow: hidden;
  backdrop-filter: blur(8px);
}

.leaderboard-table thead { background: rgba(0,210,148,0.07); }

.leaderboard-table th {
  padding: 12px 16px;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px; font-weight: 700;
  letter-spacing: 2px; text-transform: uppercase;
  color: var(--primary); text-align: left;
}

.leaderboard-table td {
  padding: 14px 16px;
  font-size: 16px; font-weight: 700;
  border-top: 1px solid rgba(255,255,255,0.03);
  color: var(--text-bright);
}

.leaderboard-table tr.lb-champion td { background: rgba(248,207,112,0.05); }

.lb-empty-cell {
  text-align: center; color: var(--text-dim);
  padding: 32px !important;
}

.leaderboard-buttons {
  display: flex; justify-content: center; gap: 14px;
  padding-bottom: 8px;
}

/* ===========================================================
   FEATURE 1 — STREAK BANNER
=========================================================== */
.streak-banner {
  display: none;
  position: absolute;
  top: 0; left: 0; right: 0;
  z-index: 260;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 8px 20px;
  background: linear-gradient(90deg, rgba(248,207,112,0.15) 0%, rgba(255,210,54,0.22) 50%, rgba(248,207,112,0.15) 100%);
  border-bottom: 1px solid rgba(248,207,112,0.4);
  animation: streak-pulse 1.5s ease-in-out infinite;
}

.streak-banner.visible { display: flex; }

@keyframes streak-pulse {
  0%,100% { box-shadow: 0 0 18px rgba(248,207,112,0.3), inset 0 0 30px rgba(248,207,112,0.06); }
  50%     { box-shadow: 0 0 40px rgba(248,207,112,0.6), inset 0 0 50px rgba(248,207,112,0.12); }
}

.streak-fire {
  font-size: 22px;
  animation: streak-fire-bob 0.7s ease-in-out infinite alternate;
}

@keyframes streak-fire-bob {
  from { transform: translateY(0) scale(1); }
  to   { transform: translateY(-3px) scale(1.1); }
}

.streak-text {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(14px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--gold);
  text-shadow: 0 0 18px rgba(248,207,112,0.8);
  text-transform: uppercase;
}

.streak-multiplier {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(13px, 1.8vw, 18px);
  font-weight: 900;
  letter-spacing: 2px;
  color: #020618;
  background: var(--gold);
  border-radius: 8px;
  padding: 3px 10px;
  text-shadow: none;
  box-shadow: 0 0 14px rgba(248,207,112,0.7);
}

/* ===========================================================
   FEATURE 2 — VIGNETTE OVERLAY
=========================================================== */
#vignetteOverlay {
  position: fixed; inset: 0;
  z-index: 250;
  pointer-events: none;
  transition: box-shadow 0.8s ease;
}

#vignetteOverlay.vignette-yellow {
  box-shadow: inset 0 0 80px 20px rgba(248,207,112,0.18);
}

#vignetteOverlay.vignette-red-1 {
  box-shadow: inset 0 0 90px 30px rgba(231,76,60,0.28);
}

#vignetteOverlay.vignette-red-2 {
  box-shadow: inset 0 0 100px 40px rgba(231,76,60,0.40);
}

#vignetteOverlay.vignette-red-3 {
  box-shadow: inset 0 0 110px 50px rgba(231,76,60,0.55);
}

#vignetteOverlay.vignette-red-4 {
  box-shadow: inset 0 0 120px 60px rgba(231,76,60,0.70);
}

#vignetteOverlay.vignette-red-5 {
  box-shadow: inset 0 0 130px 70px rgba(231,76,60,0.85);
}

/* ===========================================================
   FEATURE 3 — FLOATING +1 / -1 ANIMATION
=========================================================== */
.float-delta {
  position: fixed;
  font-family: 'Orbitron', sans-serif;
  font-size: 26px;
  font-weight: 900;
  pointer-events: none;
  z-index: 500;
  transform: translateX(-50%);
  animation: float-up 0.9s ease-out forwards;
  text-shadow: 0 0 14px currentColor;
}

.float-delta.positive { color: var(--electric); }
.float-delta.negative { color: var(--opt-a); }

@keyframes float-up {
  0%   { opacity: 1;   transform: translateX(-50%) translateY(0); }
  100% { opacity: 0;   transform: translateX(-50%) translateY(-80px); }
}

/* ===========================================================
   FEATURE 4 — TRANSITION SCREEN
=========================================================== */
#screen-transition {
  background: radial-gradient(ellipse at center, #041427 0%, var(--bg) 70%);
}

.transition-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 32px;
  text-align: center;
}

.transition-logo .logo-main {
  font-size: clamp(20px, 3vw, 38px);
}

.transition-label {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 3vw, 34px);
  font-weight: 900;
  letter-spacing: 6px;
  color: var(--text-bright);
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(32,229,239,0.35);
  animation: transition-label-blink 2s ease-in-out infinite;
}

@keyframes transition-label-blink {
  0%,100% { opacity: 1; }
  50%     { opacity: 0.65; }
}

.transition-btn {
  font-size: 16px;
  letter-spacing: 4px;
  padding: 18px 52px;
}

/* ===========================================================
   FEATURE 5 — NUEVO RECORD SCREEN
=========================================================== */
#screen-record {
  background: radial-gradient(ellipse at center, #1a100a 0%, var(--bg) 65%);
}

.record-content {
  display: flex; flex-direction: column;
  align-items: center; gap: 18px;
  text-align: center;
}

.record-crown {
  font-size: 72px;
  animation: record-crown-pop 0.6s cubic-bezier(0.16,1,0.3,1);
}

@keyframes record-crown-pop {
  0%  { transform: scale(0.2) rotate(-20deg); opacity: 0; }
  70% { transform: scale(1.2) rotate(4deg); }
  100%{ transform: scale(1) rotate(0deg); opacity: 1; }
}

.record-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(36px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: 5px;
  color: var(--gold);
  text-shadow: 0 0 60px rgba(248,207,112,0.7);
  animation: pop 0.5s 0.1s both cubic-bezier(0.16,1,0.3,1);
  text-transform: uppercase;
}

.record-player {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(18px, 2.8vw, 30px);
  font-weight: 800;
  color: var(--primary);
  letter-spacing: 3px;
  text-transform: uppercase;
  text-shadow: 0 0 20px rgba(0,210,148,0.5);
}

.record-scores {
  display: flex; align-items: center; gap: 22px;
  background: var(--card);
  border: 1px solid var(--card-border);
  border-radius: 18px;
  padding: 22px 44px;
  backdrop-filter: blur(12px);
  animation: pop 0.5s 0.25s both cubic-bezier(0.16,1,0.3,1);
}

.record-old {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(32px, 5vw, 56px);
  font-weight: 900;
  color: var(--text-dim);
  text-decoration: line-through;
}

.record-arrow {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(24px, 3vw, 36px);
  font-weight: 700;
  color: var(--text-dim);
}

.record-new {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 900;
  color: var(--electric);
  text-shadow: 0 0 30px rgba(32,229,239,0.7);
}

.record-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px; font-weight: 700;
  letter-spacing: 4px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 10px rgba(248,207,112,0.4);
}

.record-btn {
  margin-top: 8px;
}

/* ===========================================================
   FEATURE 6 — PODIUM SCREEN
=========================================================== */
#screen-podium {
  background: radial-gradient(ellipse at center, #041427 0%, var(--bg) 70%);
  justify-content: flex-start;
  padding: 24px 32px;
  gap: 10px;
}

.podium-content {
  width: 100%; max-width: 700px;
  display: flex; flex-direction: column;
  align-items: center; gap: 14px;
}

.podium-title {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 4.5vw, 52px);
  font-weight: 900; letter-spacing: 8px;
  color: var(--gold);
  text-transform: uppercase;
  text-shadow: 0 0 40px rgba(248,207,112,0.5);
}

.podium-subtitle {
  font-family: 'Orbitron', sans-serif;
  font-size: 10px; font-weight: 600;
  letter-spacing: 3px;
  color: var(--text-dim); text-transform: uppercase;
}

/* Podium stage: flex row with three columns in visual order 2nd | 1st | 3rd */
.podium-stage {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 8px;
  width: 100%;
  margin-top: 8px;
}

.podium-entry {
  display: flex; flex-direction: column;
  align-items: center; gap: 8px;
  width: 180px;
}

.podium-name-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 800;
  letter-spacing: 1px;
  text-align: center;
  color: var(--text-bright);
  text-transform: uppercase;
  word-break: break-word;
  max-width: 160px;
}

.podium-medal { font-size: 28px; }

.podium-score-badge {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(0,210,148,0.5);
}

.podium-block {
  width: 100%;
  border-radius: 10px 10px 0 0;
  display: flex; align-items: center; justify-content: center;
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(20px, 3vw, 30px);
  font-weight: 900;
  color: rgba(0,0,0,0.5);
}

/* Heights per position */
.podium-entry.pos-1 .podium-block {
  height: 140px;
  background: linear-gradient(180deg, var(--gold-bright), var(--gold));
  box-shadow: 0 0 40px rgba(248,207,112,0.5);
}

.podium-entry.pos-2 .podium-block {
  height: 110px;
  background: linear-gradient(180deg, #c0c0c0, #a8a8a8);
  box-shadow: 0 0 24px rgba(192,192,192,0.4);
}

.podium-entry.pos-3 .podium-block {
  height: 80px;
  background: linear-gradient(180deg, #cd7f32, #a0632a);
  box-shadow: 0 0 20px rgba(205,127,50,0.4);
}

/* Slide/drop animations — triggered by .animate class */
.podium-entry { opacity: 0; }

.podium-entry.pos-3.animate {
  animation: podium-slide-right 0.5s 0.3s cubic-bezier(0.16,1,0.3,1) forwards;
}

.podium-entry.pos-2.animate {
  animation: podium-slide-left 0.5s 0.9s cubic-bezier(0.16,1,0.3,1) forwards;
}

.podium-entry.pos-1.animate {
  animation: podium-drop 0.6s 1.6s cubic-bezier(0.16,1,0.3,1) forwards;
}

@keyframes podium-slide-right {
  from { opacity: 0; transform: translateX(80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes podium-slide-left {
  from { opacity: 0; transform: translateX(-80px); }
  to   { opacity: 1; transform: translateX(0); }
}

@keyframes podium-drop {
  from { opacity: 0; transform: translateY(-80px); }
  to   { opacity: 1; transform: translateY(0); }
}

.podium-buttons {
  margin-top: 16px;
}

/* ===========================================================
   FEATURE 7 — PRESENTER MODE
=========================================================== */
.presenter-btn {
  background: transparent;
  border: 1px solid rgba(32,229,239,0.25);
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 2px;
  padding: 5px 10px;
  text-transform: uppercase;
  transition: color 0.2s, border-color 0.2s, background 0.2s;
  margin-bottom: 4px;
}

.presenter-btn:hover {
  color: var(--electric);
  border-color: var(--electric);
  background: rgba(32,229,239,0.07);
}

.presenter-btn.active {
  color: var(--electric);
  border-color: var(--electric);
  background: rgba(32,229,239,0.12);
  box-shadow: 0 0 12px rgba(32,229,239,0.25);
}

/* Hide option text but keep button structure visible in presenter mode */
.presenter-mode .option-text {
  visibility: hidden;
}

/* ===========================================================
   FEATURE 8 — PAUSE OVERLAY
=========================================================== */
#pauseOverlay {
  position: fixed; inset: 0;
  z-index: 280;
  background: rgba(2,6,24,0.82);
  backdrop-filter: blur(6px);
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}

#pauseOverlay.visible { display: flex; }

.pause-icon {
  font-size: 80px;
  animation: pause-pulse 2s ease-in-out infinite;
}

@keyframes pause-pulse {
  0%,100% { opacity: 1;   transform: scale(1); }
  50%     { opacity: 0.6; transform: scale(0.92); }
}

.pause-label {
  font-family: 'Orbitron', sans-serif;
  font-size: clamp(28px, 5vw, 60px);
  font-weight: 900;
  letter-spacing: 10px;
  color: var(--text-bright);
  text-transform: uppercase;
  text-shadow: 0 0 30px rgba(255,255,255,0.3);
}

/* ================================================================
   EXTENSIONES — Campeonato Argentino de Aire Acondicionado
   - Selector de provincia
   - Badge "MODO FINAL"
   - Hint de reglas (+1/-1)
   - Sub-línea de provincia en leaderboard preview
   - Variantes visuales según modo
   ================================================================ */

/* Selector de provincia: mismo estilo que el input de nombre */
.province-select {
  width: 100%;
  padding: 14px 16px;
  margin-top: 6px;
  background: rgba(2, 6, 24, 0.7);
  border: 1px solid var(--card-border);
  border-radius: 10px;
  color: var(--text-bright);
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  appearance: none;
  -webkit-appearance: none;
  background-image:
    linear-gradient(45deg, transparent 50%, var(--primary) 50%),
    linear-gradient(135deg, var(--primary) 50%, transparent 50%);
  background-position:
    calc(100% - 18px) 50%,
    calc(100% - 12px) 50%;
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
  cursor: pointer;
}

.province-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px var(--primary-dim);
}

.province-select option {
  background: var(--bg2);
  color: var(--text-bright);
}

.province-select.shake {
  animation: shake 0.4s ease;
  border-color: var(--opt-a);
}

/* Hint de reglas debajo del botón principal */
.rules-hint {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-dim);
  text-align: center;
  letter-spacing: 0.4px;
}

/* Badge de modo FINAL (solo aparece cuando ?modo=final) */
.mode-badge {
  display: inline-block;
  margin: 14px auto 4px;
  padding: 8px 18px;
  background: linear-gradient(135deg, var(--gold), var(--gold-bright));
  color: #1a1404;
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  font-size: 13px;
  letter-spacing: 3px;
  border-radius: 4px;
  text-transform: uppercase;
  box-shadow:
    0 0 24px rgba(248, 207, 112, 0.5),
    0 0 60px rgba(248, 207, 112, 0.25);
  animation: mode-badge-pulse 2.4s ease-in-out infinite;
}

@keyframes mode-badge-pulse {
  0%, 100% { transform: scale(1);    box-shadow: 0 0 24px rgba(248,207,112,0.5),  0 0 60px rgba(248,207,112,0.25); }
  50%      { transform: scale(1.03); box-shadow: 0 0 32px rgba(248,207,112,0.75), 0 0 80px rgba(248,207,112,0.4);  }
}

/* Sub-etiqueta de provincia en el leaderboard preview */
.lb-prov {
  display: inline-block;
  margin-left: 6px;
  padding: 2px 6px;
  background: rgba(32, 229, 239, 0.08);
  border: 1px solid rgba(32, 229, 239, 0.25);
  border-radius: 3px;
  font-size: 10px;
  font-weight: 600;
  color: var(--electric);
  letter-spacing: 0.6px;
  vertical-align: middle;
}

/* Sutil acento visual cuando estamos en modo FINAL */
body.mode-final::after {
  background-image:
    radial-gradient(ellipse at 50% 100%, rgba(248,207,112,0.18) 0%, transparent 50%),
    radial-gradient(ellipse at 50% 85%,  rgba(0,120,255,0.10)  0%, transparent 40%),
    radial-gradient(circle at 12% 20%,   rgba(248,207,112,0.10), transparent 35%),
    radial-gradient(circle at 88% 60%,   rgba(0,210,148,0.08),   transparent 30%),
    radial-gradient(circle at 50% 0%,    rgba(32,229,239,0.06),  transparent 45%);
}

body.mode-final .logo-main {
  text-shadow:
    0 0 24px rgba(248,207,112,0.45),
    0 0 60px rgba(248,207,112,0.25);
}

/* ================================================================
   GAME SCREEN — Rediseño limpio (estilo "refrigeración técnica")
   - PREGUNTA X arriba con copo verde
   - Opciones monocromas (sin colores diferenciados)
   - Letra A/B/C/D en círculo verde menta
   - Footer con "DESAFÍO 1 MINUTO" + timer digital + copo
   - Sin trofeo ni sponsors durante el juego (más foco)
   ================================================================ */

/* Cuando estamos jugando, escondemos solo el trofeo de fondo
   (el sponsor bar sigue visible, pero compacto — los sponsors
   tienen que estar presentes durante toda la partida). */
body.in-game .trophy-bg-layer { display: none !important; }

/* Sponsor bar compacto durante el juego */
body.in-game .sponsor-bar {
  height: 52px;
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.96), rgba(2, 6, 24, 0.99));
  border-top: 1px solid rgba(58, 134, 255, 0.45);
  box-shadow:
    0 -2px 24px rgba(58, 134, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}
body.in-game .sponsor-label { font-size: 11px; padding: 0 16px; }
body.in-game .sponsor-item  { font-size: 12px; }

/* Reservamos espacio inferior del game para que el sponsor no tape */
body.in-game #screen-game.active {
  padding-bottom: calc(52px + 12px);
}

/* Reestructuramos el #screen-game como flex column */
#screen-game.active {
  display: flex;
  flex-direction: column;
  padding: 14px 18px 18px;
  gap: 16px;
  z-index: 10;
}

/* ─── TOP BAR ───────────────────────────────────────────────── */
.game-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 0 10px;
  border-bottom: 1px solid rgba(32, 229, 239, 0.12);
}

.q-counter {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
}

.q-counter-icon {
  font-size: 22px;
  color: var(--primary);
  text-shadow: 0 0 12px rgba(0, 210, 148, 0.6);
  animation: snowflake-spin 8s linear infinite;
}

@keyframes snowflake-spin {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.q-counter-label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 3px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.q-counter-num {
  font-size: 24px;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 1px;
}

.game-top-right {
  display: flex;
  align-items: center;
  gap: 10px;
}

.score-pill {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  padding: 6px 12px;
  background: rgba(2, 6, 24, 0.6);
  border: 1px solid rgba(0, 210, 148, 0.25);
  border-radius: 6px;
  line-height: 1;
}

.score-pill-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2px;
  color: var(--text-dim);
  margin-bottom: 4px;
}

.score-pill-value {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 900;
  color: var(--primary);
  transition: color 0.2s ease;
}

.score-pill-value.score-up   { color: var(--primary); }
.score-pill-value.score-down { color: var(--opt-a); }

/* Re-estilo del presenter button como icono compacto */
#screen-game .presenter-btn {
  position: static;
  width: 36px;
  height: 36px;
  padding: 0;
  font-size: 16px;
  border-radius: 6px;
  background: rgba(2, 6, 24, 0.6);
  border: 1px solid rgba(32, 229, 239, 0.2);
  color: var(--text-dim);
}

#screen-game .presenter-btn.active {
  background: rgba(32, 229, 239, 0.15);
  color: var(--electric);
  border-color: rgba(32, 229, 239, 0.5);
}

/* ─── PREGUNTA centrada (override del wrapper original) ─────── */
#screen-game .question-container {
  flex: 0 0 auto;
  padding: 18px 8px;
  text-align: center;
  background: none;
  border: none;
}

#screen-game .question-container::before,
#screen-game .question-container::after {
  display: none;
}

#screen-game .question-text {
  font-family: 'Inter', sans-serif;
  font-size: clamp(17px, 4.2vw, 26px);
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-bright);
  text-shadow: 0 0 16px rgba(0, 210, 148, 0.15);
  letter-spacing: -0.2px;
}

/* ─── OPCIONES monocromas (override del look colorido) ──────── */
#screen-game .options-grid {
  flex: 1 1 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin: 0;
  padding: 0;
}

#screen-game .option {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 14px;
  background: linear-gradient(135deg, rgba(8, 18, 36, 0.85), rgba(3, 13, 25, 0.95));
  border: 1.5px solid rgba(0, 210, 148, 0.22);
  border-radius: 10px;
  color: var(--text-bright);
  text-align: left;
  font-family: 'Inter', sans-serif;
  font-size: 14px;
  font-weight: 500;
  line-height: 1.35;
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

#screen-game .option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(0, 210, 148, 0.55);
  box-shadow: 0 6px 22px rgba(0, 210, 148, 0.18);
}

/* Reset de los colores per-letra del look antiguo */
#screen-game .option.option-a,
#screen-game .option.option-b,
#screen-game .option.option-c,
#screen-game .option.option-d {
  background: linear-gradient(135deg, rgba(8, 18, 36, 0.85), rgba(3, 13, 25, 0.95));
  border-color: rgba(0, 210, 148, 0.22);
}

/* Todas las letras: círculo verde menta sólido */
#screen-game .option .option-letter {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), #00a875);
  border: 1.5px solid rgba(255, 255, 255, 0.12);
  color: #052015;
  font-family: 'Orbitron', sans-serif;
  font-size: 16px;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow:
    0 0 14px rgba(0, 210, 148, 0.4),
    inset 0 1px 1px rgba(255, 255, 255, 0.25);
}

#screen-game .option .option-text {
  flex: 1 1 auto;
}

/* Estados de feedback (correct/wrong) — preservar pero limpios */
#screen-game .option.correct {
  border-color: var(--primary);
  background: linear-gradient(135deg, rgba(0, 210, 148, 0.25), rgba(0, 168, 117, 0.15));
  box-shadow: 0 0 24px rgba(0, 210, 148, 0.5);
}

#screen-game .option.wrong {
  border-color: var(--opt-a);
  background: linear-gradient(135deg, rgba(231, 76, 60, 0.25), rgba(180, 50, 40, 0.15));
}

#screen-game .option.wrong .option-letter {
  background: linear-gradient(135deg, var(--opt-a), #b03020);
  color: #fff;
  box-shadow: 0 0 14px rgba(231, 76, 60, 0.6);
}

#screen-game .option.dimmed {
  opacity: 0.32;
}

/* ─── BOTTOM BAR ────────────────────────────────────────────── */
.game-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 0 4px;
  border-top: 1px solid rgba(32, 229, 239, 0.12);
}

.game-bottom-left {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.player-name-display {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 1.4px;
  color: var(--text-bright);
  text-transform: uppercase;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 140px;
}

.stats-row {
  display: flex;
  gap: 10px;
  font-family: 'Orbitron', sans-serif;
  font-size: 12px;
  font-weight: 700;
}

.stats-row .stat.correct-count { color: var(--primary); }
.stats-row .stat.wrong-count   { color: var(--opt-a); }

.game-bottom-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.challenge-label {
  font-family: 'Orbitron', sans-serif;
  font-size: 9px;
  letter-spacing: 2.5px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.challenge-label .challenge-time {
  color: var(--electric);
  font-weight: 900;
}

.timer-digital {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  background: rgba(2, 6, 24, 0.7);
  border: 1px solid rgba(32, 229, 239, 0.3);
  border-radius: 6px;
  box-shadow: inset 0 0 16px rgba(32, 229, 239, 0.08);
}

.timer-snowflake {
  font-size: 16px;
  color: var(--electric);
  text-shadow: 0 0 8px rgba(32, 229, 239, 0.7);
}

.timer-digital-text {
  font-family: 'Orbitron', sans-serif;
  font-variant-numeric: tabular-nums;
  font-size: 22px;
  font-weight: 900;
  color: var(--text-bright);
  letter-spacing: 1px;
  min-width: 56px;
  text-align: right;
}

.timer-digital-text.pulse {
  animation: timer-digital-pulse 0.6s ease infinite;
}

@keyframes timer-digital-pulse {
  0%, 100% { color: #ff5847; text-shadow: 0 0 12px rgba(231, 76, 60, 0.8); }
  50%      { color: #ff8a78; text-shadow: 0 0 22px rgba(231, 76, 60, 1);   }
}

/* SVG del timer original: lo escondemos en el nuevo layout pero
   el JS sigue actualizándolo (sirve si después querés re-mostrarlo).
   !important porque el selector específico viejo .timer-area .timer-svg
   tiene specificity más alta y le ganaría. */
#screen-game .timer-svg {
  display: none !important;
}

/* En modo presentador, ocultamos las cosas chicas y agrandamos pregunta */
#screen-game.presenter-mode .game-top,
#screen-game.presenter-mode .game-bottom,
#screen-game.presenter-mode #streakBanner { display: none !important; }

#screen-game.presenter-mode .question-text {
  font-size: clamp(28px, 6vw, 56px);
}

#screen-game.presenter-mode .option {
  padding: 28px 22px;
  font-size: clamp(18px, 3.2vw, 28px);
}

#screen-game.presenter-mode .option .option-letter {
  width: 56px;
  height: 56px;
  font-size: 22px;
}

/* Override de la regla vieja que ocultaba el texto en presenter mode.
   El quiz original lo escondía para que el host leyera; nosotros usamos
   presenter mode con tablet espejada al proyector y necesitamos verlo. */
#screen-game.presenter-mode .option-text {
  visibility: visible !important;
}

/* ════════════════════════════════════════════════════════════════
   MODAL: "¿sobreescribir tu puntaje anterior?"
   Aparece antes de iniciar la partida si Sheets reporta un score
   previo con el mismo nombre + provincia + modo.
   ════════════════════════════════════════════════════════════════ */

.overwrite-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(2, 6, 24, 0.82);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.overwrite-modal.visible {
  display: flex;
  animation: overwrite-fade-in 0.2s ease;
}

@keyframes overwrite-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

.overwrite-modal-card {
  width: 100%;
  max-width: 460px;
  padding: 32px 28px 24px;
  background:
    linear-gradient(180deg, rgba(14, 28, 56, 0.98), rgba(3, 13, 25, 0.99));
  border: 1.5px solid rgba(58, 134, 255, 0.4);
  border-radius: 16px;
  box-shadow:
    0 24px 80px rgba(0, 0, 0, 0.7),
    0 0 60px rgba(58, 134, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  text-align: center;
  animation: overwrite-pop 0.28s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes overwrite-pop {
  from { transform: scale(0.92); opacity: 0; }
  to   { transform: scale(1);    opacity: 1; }
}

.overwrite-modal-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 16px;
  background: linear-gradient(135deg, var(--gold-bright), var(--gold));
  border-radius: 50%;
  font-size: 32px;
  color: #1a1404;
  box-shadow:
    0 0 24px rgba(248, 207, 112, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.4);
}

.overwrite-modal-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--text-bright);
  text-transform: uppercase;
  margin-bottom: 10px;
}

.overwrite-modal-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.5;
  margin-bottom: 14px;
}

.overwrite-modal-prev {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 16px;
  margin: 0 0 18px;
  background: rgba(2, 6, 24, 0.65);
  border: 1px solid rgba(58, 134, 255, 0.32);
  border-radius: 10px;
}

.overwrite-modal-prev-score {
  font-family: 'Orbitron', sans-serif;
  font-size: 38px;
  font-weight: 900;
  background: linear-gradient(180deg, var(--chrome-bright), var(--ice-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 12px rgba(94, 155, 255, 0.4));
}

.overwrite-modal-prev-details {
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  letter-spacing: 1.4px;
  color: var(--text-dim);
  text-transform: uppercase;
}

.overwrite-modal-warn {
  font-size: 13px;
  color: var(--gold);
  line-height: 1.45;
  margin-bottom: 22px;
}

.overwrite-modal-warn strong { color: var(--gold-bright); }

.overwrite-modal-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.overwrite-modal-actions > button {
  flex: 1 1 140px;
  padding: 14px 18px;
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.4px;
  border-radius: 8px;
  text-transform: uppercase;
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.overwrite-modal-actions .btn-secondary {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.overwrite-modal-actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-bright);
}

.overwrite-modal-actions .btn-primary {
  /* el .btn-primary global ya trae gradient; acá solo ajustamos tamaño */
  padding: 14px 18px !important;
}

/* ════════════════════════════════════════════════════════════════
   MODO TABS + FORM EXTENDIDO + MODALES NUEVOS (v2)
   ════════════════════════════════════════════════════════════════ */

/* ─── Tabs Práctica / Clasificatoria ──────────────────────────── */
.mode-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 14px 0 18px;
  padding: 4px;
  background: rgba(2, 6, 24, 0.7);
  border: 1px solid rgba(58, 134, 255, 0.25);
  border-radius: 12px;
}

.mode-tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 12px 10px;
  background: transparent;
  border: none;
  border-radius: 8px;
  color: var(--text-dim);
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
  font-family: 'Inter', sans-serif;
}

.mode-tab-title {
  font-family: 'Orbitron', sans-serif;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 2px;
}

.mode-tab-sub {
  font-size: 10px;
  letter-spacing: 0.5px;
  opacity: 0.85;
  text-align: center;
}

.mode-tab:hover { color: var(--text); }

.mode-tab.active {
  background: linear-gradient(180deg, rgba(58, 134, 255, 0.25), rgba(30, 79, 199, 0.15));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.15),
    0 0 16px rgba(58, 134, 255, 0.4),
    0 0 0 1px rgba(94, 155, 255, 0.45);
}

.mode-tab.active .mode-tab-title {
  background: linear-gradient(180deg, var(--chrome-bright), var(--ice-cyan));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 8px rgba(94, 155, 255, 0.5));
}

/* ─── Form: row con dos columnas (Nombre + Apellido) ─────────── */
.form-row.form-row-half {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.form-row.form-row-half label {
  display: block;
  margin-top: 0;
}

.form-row.form-row-half input {
  width: 100%;
}

.extra-fields {
  /* visible u oculto según modo */
  display: block;
}

.field-hint {
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-dim);
  letter-spacing: 0.4px;
}

/* ─── Link "tengo un problema" ──────────────────────────────── */
.btn-link {
  display: inline-block;
  margin-top: 10px;
  padding: 8px 12px;
  background: transparent;
  border: none;
  color: var(--ice-cyan);
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  text-decoration: underline;
  text-decoration-color: rgba(142, 203, 255, 0.4);
  text-underline-offset: 3px;
  transition: color 0.2s ease;
}

.btn-link:hover {
  color: var(--ice-blue-bright);
  text-decoration-color: var(--ice-blue-bright);
}

.btn-link-modal {
  display: block;
  width: 100%;
  text-align: center;
  margin-top: 14px;
  padding: 10px;
  font-size: 12px;
}

/* ─── Input de código (modal) ───────────────────────────────── */
.code-input {
  width: 100%;
  padding: 18px 16px;
  margin: 0 0 8px;
  background: rgba(2, 6, 24, 0.85);
  border: 2px solid rgba(58, 134, 255, 0.4);
  border-radius: 10px;
  color: var(--text-bright);
  font-family: 'Courier New', monospace;
  font-size: 32px;
  font-weight: 900;
  letter-spacing: 12px;
  text-align: center;
  outline: none;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
}

.code-input:focus {
  border-color: var(--ice-blue-bright);
  box-shadow: 0 0 0 4px rgba(58, 134, 255, 0.22);
}

.code-input.shake {
  animation: shake 0.4s ease;
  border-color: var(--opt-a);
}

.code-error {
  margin: 6px 0 14px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.12);
  border: 1px solid rgba(231, 76, 60, 0.4);
  border-radius: 6px;
  color: #ff9a8a;
  font-size: 13px;
  text-align: center;
}

.code-success {
  margin: 6px 0 14px;
  padding: 10px 14px;
  background: rgba(0, 210, 148, 0.12);
  border: 1px solid rgba(0, 210, 148, 0.4);
  border-radius: 6px;
  color: #6cf2c5;
  font-size: 13px;
  text-align: center;
  line-height: 1.4;
}

@keyframes shake {
  0%, 100% { transform: translateX(0); }
  20%, 60% { transform: translateX(-8px); }
  40%, 80% { transform: translateX(8px); }
}

/* En el modal de código, el input grande no necesita padding extra
   del icon del modal */
#codeModal .overwrite-modal-card,
#resetModal .overwrite-modal-card,
#codeSentModal .overwrite-modal-card {
  max-width: 480px;
}

/* ════════════════════════════════════════════════════════════════
   INPUTS DEL WELCOME — más grandes, mejor look
   ════════════════════════════════════════════════════════════════ */

.player-entry label {
  display: block;
  margin-top: 12px;
  margin-bottom: 6px;
  font-family: 'Orbitron', sans-serif;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 2.5px;
  color: var(--ice-cyan);
  text-transform: uppercase;
}

.player-entry input[type="text"],
.player-entry input[type="email"],
.player-entry .province-select {
  width: 100%;
  padding: 16px 16px;
  background: rgba(2, 6, 24, 0.85);
  color: var(--text-bright);
  border: 1.5px solid rgba(58, 134, 255, 0.32);
  border-radius: 10px;
  font-family: 'Inter', sans-serif;
  font-size: 16px;
  font-weight: 500;
  letter-spacing: 0.3px;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, background 0.18s ease;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.04),
    inset 0 0 18px rgba(58, 134, 255, 0.06);
}

.player-entry input[type="text"]::placeholder,
.player-entry input[type="email"]::placeholder {
  color: rgba(202, 213, 226, 0.45);
  font-weight: 400;
}

.player-entry input[type="text"]:hover,
.player-entry input[type="email"]:hover,
.player-entry .province-select:hover {
  border-color: rgba(94, 155, 255, 0.55);
}

.player-entry input[type="text"]:focus,
.player-entry input[type="email"]:focus,
.player-entry .province-select:focus {
  border-color: var(--ice-blue-bright, #5e9bff);
  background: rgba(8, 24, 48, 0.95);
  box-shadow:
    0 0 0 4px rgba(58, 134, 255, 0.18),
    inset 0 0 22px rgba(58, 134, 255, 0.12);
}

.player-entry input.shake,
.player-entry .province-select.shake {
  animation: shake 0.4s ease;
  border-color: var(--opt-a) !important;
  box-shadow: 0 0 0 4px rgba(231, 76, 60, 0.2) !important;
}

/* ─── Email input con validación visual ──────────────────────── */
.email-input-wrapper {
  position: relative;
}

.email-input-wrapper input[type="email"] {
  padding-right: 48px; /* lugar para el ícono ✓/✗ */
}

.email-status {
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  font-weight: 900;
  opacity: 0;
  transition: opacity 0.2s ease, transform 0.2s ease;
  pointer-events: none;
}

.email-input-wrapper.valid .email-status {
  opacity: 1;
  color: var(--primary, #00d294);
  text-shadow: 0 0 10px rgba(0, 210, 148, 0.6);
}

.email-input-wrapper.valid .email-status::before {
  content: '✓';
}

.email-input-wrapper.invalid .email-status {
  opacity: 1;
  color: var(--opt-a, #e74c3c);
  text-shadow: 0 0 10px rgba(231, 76, 60, 0.6);
}

.email-input-wrapper.invalid .email-status::before {
  content: '✗';
}

.email-input-wrapper.valid input[type="email"] {
  border-color: var(--primary, #00d294);
  box-shadow:
    0 0 0 3px rgba(0, 210, 148, 0.15),
    inset 0 0 18px rgba(0, 210, 148, 0.06);
}

.email-input-wrapper.invalid input[type="email"] {
  border-color: rgba(231, 76, 60, 0.6);
}

.email-error-msg {
  margin-top: 6px;
  padding: 8px 12px;
  background: rgba(231, 76, 60, 0.1);
  border: 1px solid rgba(231, 76, 60, 0.35);
  border-radius: 6px;
  color: #ff9a8a;
  font-size: 12px;
  letter-spacing: 0.2px;
  animation: fade-in 0.2s ease;
}

@keyframes fade-in {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Tabs del leaderboard (Clasificatoria / Práctica) ──────── */
.lb-tabs {
  display: flex;
  gap: 4px;
  margin: 8px 0 12px;
  padding: 3px;
  background: rgba(2, 6, 24, 0.7);
  border: 1px solid rgba(58, 134, 255, 0.2);
  border-radius: 8px;
}

.lb-tab {
  flex: 1;
  padding: 8px 12px;
  background: transparent;
  border: none;
  border-radius: 5px;
  color: var(--text-dim, #90a1b9);
  cursor: pointer;
  font-family: 'Orbitron', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  transition: background 0.18s ease, color 0.18s ease;
}

.lb-tab:hover { color: var(--text-bright, #e8eef6); }

.lb-tab.active {
  background: linear-gradient(180deg, rgba(58, 134, 255, 0.25), rgba(30, 79, 199, 0.15));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 0 12px rgba(58, 134, 255, 0.3);
}

/* Field hint debajo del input */
.field-hint {
  margin-top: 8px;
  padding: 6px 10px;
  font-size: 12px;
  color: rgba(142, 203, 255, 0.75);
  letter-spacing: 0.2px;
  line-height: 1.4;
  background: rgba(58, 134, 255, 0.06);
  border-radius: 4px;
  border-left: 3px solid rgba(94, 155, 255, 0.4);
}

/* ================================================================
   ICE THEME — Campeonato Argentino del Aire Acondicionado 2026
   Acero cromado + azul eléctrico Bluestar + cristal/hielo + glow
   ================================================================ */

:root {
  /* Tokens nuevos del look "ice" */
  --ice-blue:        #3a86ff;
  --ice-blue-bright: #5e9bff;
  --ice-blue-deep:   #1e4fc7;
  --ice-cyan:        #8ecbff;
  --chrome:          #c8d6e5;
  --chrome-bright:   #e8eef6;
  --chrome-dark:     #6e7d92;
}

/* Marco "cristal helado" para las opciones */
#screen-game .option {
  background:
    linear-gradient(135deg, rgba(8, 24, 48, 0.88), rgba(2, 8, 22, 0.96)),
    radial-gradient(circle at top left, rgba(142, 203, 255, 0.10), transparent 50%);
  background-blend-mode: normal;
  border: 1.5px solid rgba(58, 134, 255, 0.32);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    inset 0 0 0 1px rgba(94, 155, 255, 0.05),
    0 4px 14px rgba(0, 0, 0, 0.4);
  position: relative;
  overflow: hidden;
}

/* Acento de cristal cracked en la esquina superior derecha (sutil) */
#screen-game .option::before {
  content: '';
  position: absolute;
  top: -1px; right: -1px;
  width: 60px; height: 60px;
  background:
    linear-gradient(135deg, transparent 40%, rgba(94, 155, 255, 0.18) 50%, transparent 60%),
    linear-gradient(160deg, transparent 50%, rgba(142, 203, 255, 0.10) 55%, transparent 65%);
  pointer-events: none;
  opacity: 0.7;
}

#screen-game .option:hover:not(:disabled) {
  transform: translateY(-2px);
  border-color: rgba(94, 155, 255, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.1),
    0 8px 28px rgba(58, 134, 255, 0.25),
    0 0 0 1px rgba(94, 155, 255, 0.3);
}

/* Letras A/B/C/D: cromo + azul eléctrico + glow */
#screen-game .option .option-letter {
  background:
    linear-gradient(135deg, var(--ice-blue-bright) 0%, var(--ice-blue) 45%, var(--ice-blue-deep) 100%);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  color: #ffffff;
  text-shadow: 0 1px 2px rgba(0, 24, 64, 0.6);
  box-shadow:
    0 0 18px rgba(58, 134, 255, 0.55),
    0 2px 6px rgba(0, 24, 64, 0.5),
    inset 0 1px 2px rgba(255, 255, 255, 0.45),
    inset 0 -1px 2px rgba(0, 24, 64, 0.4);
}

/* Estados correct/wrong en el nuevo tema */
#screen-game .option.correct {
  border-color: var(--primary);
  background:
    linear-gradient(135deg, rgba(0, 210, 148, 0.22), rgba(8, 24, 48, 0.95));
  box-shadow:
    0 0 28px rgba(0, 210, 148, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

#screen-game .option.wrong {
  border-color: var(--opt-a);
  background:
    linear-gradient(135deg, rgba(231, 76, 60, 0.22), rgba(8, 24, 48, 0.95));
  box-shadow:
    0 0 28px rgba(231, 76, 60, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

/* ─── HEADER (PREGUNTA + PUNTAJE) con acento ice ───────────── */
.game-top {
  border-bottom: 1px solid rgba(58, 134, 255, 0.25);
  box-shadow: 0 1px 0 rgba(94, 155, 255, 0.06);
}

.q-counter-icon {
  color: var(--ice-blue-bright);
  text-shadow:
    0 0 14px rgba(94, 155, 255, 0.85),
    0 0 28px rgba(58, 134, 255, 0.5);
}

.q-counter-num {
  background: linear-gradient(180deg, var(--chrome-bright), var(--chrome));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow: 0 2px 6px rgba(58, 134, 255, 0.4);
  filter: drop-shadow(0 0 8px rgba(94, 155, 255, 0.3));
}

.score-pill {
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.85), rgba(2, 8, 22, 0.95));
  border: 1px solid rgba(58, 134, 255, 0.4);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 12px rgba(58, 134, 255, 0.15);
}

.score-pill-value {
  background: linear-gradient(180deg, var(--chrome-bright), var(--chrome));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-pill-value.score-up {
  background: linear-gradient(180deg, #6cf2c5, #00d294);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

.score-pill-value.score-down {
  background: linear-gradient(180deg, #ff9a8a, var(--opt-a));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* ─── FOOTER (timer digital ice) ────────────────────────────── */
.game-bottom {
  border-top: 1px solid rgba(58, 134, 255, 0.25);
}

.timer-digital {
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.85), rgba(2, 8, 22, 0.95));
  border: 1px solid rgba(58, 134, 255, 0.45);
  box-shadow:
    inset 0 0 20px rgba(58, 134, 255, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06),
    0 0 16px rgba(58, 134, 255, 0.18);
}

.timer-snowflake {
  color: var(--ice-blue-bright);
  text-shadow:
    0 0 10px rgba(94, 155, 255, 0.9),
    0 0 20px rgba(58, 134, 255, 0.55);
}

.timer-digital-text {
  background: linear-gradient(180deg, var(--chrome-bright), var(--chrome));
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 0 6px rgba(58, 134, 255, 0.4));
}

/* ─── WELCOME LOGO con tipografía Bluestar-style ────────────── */
.logo-campeonato .logo-main {
  /* Anton: condensed sans-serif bold tipo deportivo, igual al "CAMPEONATO ARGENTINO" del trofeo Bluestar */
  font-family: 'Anton', 'Bebas Neue', 'Orbitron', sans-serif !important;
  font-weight: 400 !important;
  letter-spacing: 4px !important;
  background: linear-gradient(180deg, var(--chrome-bright) 0%, var(--ice-cyan) 45%, var(--ice-blue) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-shadow:
    0 0 24px rgba(94, 155, 255, 0.45),
    0 0 60px rgba(58, 134, 255, 0.25);
  filter: drop-shadow(0 4px 8px rgba(0, 24, 64, 0.5));
  position: relative;
}

.logo-campeonato .logo-top {
  font-family: 'Bebas Neue', 'Anton', sans-serif !important;
  font-weight: 400 !important;
  color: var(--ice-cyan);
  letter-spacing: 6px;
  text-shadow: 0 0 8px rgba(142, 203, 255, 0.4);
}

.logo-campeonato .logo-url {
  color: var(--ice-blue-bright);
  text-shadow: 0 0 8px rgba(94, 155, 255, 0.5);
}

/* ─── BACKGROUNDS del WELCOME ─────────────────────────────────
   Mobile: imagen vertical con "BIENVENIDO" + copa Bluestar.
   Desktop/tablet: imagen horizontal con la copa al costado.
   El trofeo viejo (copa-bluestar.jpg + emoji) queda como fallback
   si las imágenes nuevas no cargan. */
#screen-welcome.active::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/welcome-bg-mobile.jpg');
  background-position: center top;
  background-repeat: no-repeat;
  background-size: cover;
  pointer-events: none;
}

@media (min-aspect-ratio: 1/1), (min-width: 900px) {
  #screen-welcome.active::before {
    background-image: url('../assets/welcome-bg-desktop.jpg');
  }
}

/* Cuando el welcome bg está activo, escondemos el logo de texto
   (la imagen ya trae "BIENVENIDO / CAMPEONATO"). Mantenemos el form. */
#screen-welcome.active .welcome-logo { display: none; }
#screen-welcome.active .welcome-subtitle {
  margin-top: 30vh; /* empuja el form hacia abajo para que la copa quede visible */
  background: rgba(2, 6, 24, 0.55);
  padding: 10px 16px;
  border-radius: 8px;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

@media (min-aspect-ratio: 1/1), (min-width: 900px) {
  #screen-welcome.active .welcome-subtitle {
    margin-top: 12vh; /* en desktop la copa está al costado, así que menos espacio */
  }
}

/* El trofeo viejo (.trophy-bg-layer) lo escondemos cuando hay bg nuevo */
.trophy-bg-layer { display: none; }

/* ─── BACKGROUND del GAME SCREEN ────────────────────────────────
   Pista de hielo + estadio para mobile (vertical),
   pista con pilares cristal para desktop (horizontal).
   El bg va detrás de todo el contenido del game. */
#screen-game.active::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image: url('../assets/game-bg-mobile.jpg');
  background-position: center bottom;
  background-repeat: no-repeat;
  background-size: cover;
  opacity: 0.85;
  pointer-events: none;
}

@media (min-aspect-ratio: 1/1), (min-width: 900px) {
  #screen-game.active::before {
    background-image: url('../assets/game-bg-desktop.jpg');
  }
}

/* Overlay para que el contenido sea legible sobre el bg */
#screen-game.active::after {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  background: radial-gradient(ellipse at center,
    rgba(2, 6, 24, 0.35) 0%,
    rgba(2, 6, 24, 0.7) 80%);
  pointer-events: none;
}

/* Ocultar el emoji 🏆 cuando la imagen real está disponible.
   El emoji estaba como ::before del .trophy-bg-layer. Lo dejamos
   pero lo hacemos invisible para no superponer. */
.trophy-bg-layer::before {
  opacity: 0 !important;
}

/* Si la imagen falla en cargar, mostramos el emoji como fallback.
   Para activar este modo, ejecutá document.body.classList.add('no-cup-img'). */
body.no-cup-img .trophy-bg-layer {
  background-image: none;
}
body.no-cup-img .trophy-bg-layer::before { opacity: 0.035 !important; }

/* ─── Sponsor LOGOS (imagen) ─────────────────────────────────
   Cada sponsor puede mostrar un logo PNG. La altura está limitada
   al banner. Si la imagen falla, el JS le pone .sponsor-fallback
   al item, que muestra el nombre como texto fallback. */
.sponsor-item {
  display: inline-flex !important;
  align-items: center;
  gap: 10px;
  height: 100%;
}

.sponsor-logo {
  height: calc(var(--sponsor-h, 90px) - 28px);
  max-height: 56px;
  width: auto;
  object-fit: contain;
  filter: drop-shadow(0 1px 6px rgba(94, 155, 255, 0.3));
}

body.in-game .sponsor-logo {
  height: calc(52px - 16px);
  max-height: 36px;
}

.sponsor-name {
  font-family: 'Orbitron', sans-serif;
  font-weight: 700;
}

/* Si hay logo, escondemos el nombre. Si la imagen falla en cargar,
   el JS agrega .sponsor-fallback al item, que vuelve a mostrar el nombre. */
.sponsor-item .sponsor-logo + .sponsor-name { display: none; }
.sponsor-item.sponsor-fallback .sponsor-name { display: inline !important; }

.sponsor-link {
  text-decoration: none;
  color: inherit;
}

/* Banner sponsors con estilo cromado/hielo */
.sponsor-bar {
  background:
    linear-gradient(180deg, rgba(8, 24, 48, 0.97), rgba(2, 6, 24, 0.98)) !important;
  border-top: 1px solid rgba(58, 134, 255, 0.45) !important;
  box-shadow:
    0 -2px 32px rgba(58, 134, 255, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.sponsor-label {
  background: linear-gradient(135deg, var(--ice-blue-bright), var(--ice-blue-deep)) !important;
  color: #ffffff !important;
  box-shadow:
    0 0 18px rgba(58, 134, 255, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.sponsor-item {
  color: var(--chrome-bright);
  text-shadow: 0 0 8px rgba(94, 155, 255, 0.3);
}

/* Sutil acento de cristal en el body global */
body::before {
  background-image:
    linear-gradient(rgba(58, 134, 255, 0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(58, 134, 255, 0.06) 1px, transparent 1px);
}

/* Tabla de posiciones del welcome con detalles ice */
.welcome-leaderboard {
  border: 1px solid rgba(58, 134, 255, 0.25);
  box-shadow: 0 0 24px rgba(58, 134, 255, 0.08);
}

.lb-prov {
  background: rgba(58, 134, 255, 0.12) !important;
  border-color: rgba(94, 155, 255, 0.35) !important;
  color: var(--ice-blue-bright) !important;
}

/* ─── BOTÓN INICIAR TURNO (imagen Bluestar ice) ─────────────── */
.player-entry .btn-primary {
  /* Reemplazo del gradient por la imagen del botón ice */
  background: transparent url('../assets/btn-iniciar.png') no-repeat center / contain !important;
  border: none !important;
  box-shadow: none !important;
  width: 240px;
  height: 240px;
  max-width: 80vw;
  max-height: 240px;
  padding: 0 !important;
  margin: 12px auto 0;
  font-size: 0 !important;
  color: transparent !important;
  cursor: pointer;
  transition: transform 0.18s ease, filter 0.18s ease;
}

.player-entry .btn-primary:hover {
  transform: translateY(-3px) scale(1.02);
  filter: drop-shadow(0 8px 28px rgba(94, 155, 255, 0.65));
}

.player-entry .btn-primary:active {
  transform: translateY(0) scale(0.98);
}

/* Otros .btn-primary (en gameover, leaderboard, etc.) mantienen su look antes */
.btn-primary:not(.player-entry .btn-primary) {
  background: linear-gradient(180deg, #00f5a8 0%, var(--primary) 100%) !important;
  box-shadow:
    0 6px 24px rgba(0, 210, 148, 0.4),
    inset 0 1px 0 rgba(255, 255, 255, 0.3),
    inset 0 -2px 4px rgba(0, 100, 70, 0.3) !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
}

.btn-primary:not(.player-entry .btn-primary):hover {
  transform: translateY(-2px);
  box-shadow:
    0 10px 32px rgba(0, 210, 148, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ─── COPO CRISTAL en el header (PREGUNTA) ──────────────────── */
.q-counter-icon {
  display: inline-block;
  width: 28px;
  height: 28px;
  background: url('../assets/copo-cristal.png') no-repeat center / contain;
  text-indent: -9999px;
  vertical-align: middle;
  filter: drop-shadow(0 0 12px rgba(94, 155, 255, 0.65));
}

/* ─── PODIO con medallas reales (imágenes) ──────────────────── */
.podium-medal {
  width: 90px !important;
  height: 90px !important;
  font-size: 0 !important;
  background-repeat: no-repeat;
  background-position: center;
  background-size: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.5));
}
.podium-entry.pos-1 .podium-medal { background-image: url('../assets/medalla-1.png'); }
.podium-entry.pos-2 .podium-medal { background-image: url('../assets/medalla-2.png'); }
.podium-entry.pos-3 .podium-medal { background-image: url('../assets/medalla-3.png'); }

/* ─── NUEVO RÉCORD: imagen hero en lugar del texto plano ────── */
#screen-record .record-title {
  background: url('../assets/nuevo-record.png') no-repeat center / contain;
  width: min(85vw, 600px);
  height: min(60vw, 400px);
  margin: 20px auto;
  font-size: 0 !important;
  color: transparent !important;
  text-indent: -9999px;
}

#screen-record .record-crown {
  display: none; /* ya viene en la imagen del NUEVO RÉCORD */
}

/* Confetti burst overlay detrás del título del récord */
#screen-record::before {
  content: '';
  position: absolute;
  inset: 0;
  background: url('../assets/confetti-burst.png') no-repeat center 30% / 90% auto;
  pointer-events: none;
  z-index: 0;
  animation: confetti-pulse 1.6s ease-out;
}

#screen-record .record-content {
  position: relative;
  z-index: 1;
}

@keyframes confetti-pulse {
  0%   { opacity: 0;   transform: scale(0.7); }
  30%  { opacity: 1;   transform: scale(1.05); }
  100% { opacity: 0.85; transform: scale(1); }
}

/* ─── BANNER "EN RACHA" como imagen real ───────────────────────
   Reemplaza el contenido del div #streakBanner con la imagen PNG. */
#streakBanner {
  background: url('../assets/banner-racha.png') no-repeat center / contain;
  width: min(85vw, 500px);
  height: 100px;
  margin: 0 auto;
}

/* Escondemos los hijos del banner (fire/text/multiplier) — la imagen ya
   trae todo. El multiplier flotante puede mantenerse como badge encima. */
#streakBanner .streak-fire,
#streakBanner .streak-text {
  display: none;
}

#streakBanner .streak-multiplier {
  position: absolute;
  top: 50%;
  right: 12%;
  transform: translateY(-50%);
  font-family: 'Orbitron', sans-serif;
  font-size: 28px;
  font-weight: 900;
  color: var(--gold-bright);
  text-shadow:
    0 0 14px rgba(248, 207, 112, 0.8),
    0 2px 4px rgba(0, 0, 0, 0.6);
}

/* ─── Floating icon correct/wrong (reemplaza el +1/-1 viejo) ──── */
.float-delta {
  /* override del estilo viejo: ahora es un icono imagen */
  width: 70px !important;
  height: 70px !important;
  background-repeat: no-repeat !important;
  background-position: center !important;
  background-size: contain !important;
  font-size: 0 !important;
  color: transparent !important;
  filter: drop-shadow(0 0 18px rgba(94, 155, 255, 0.7));
}

.float-delta.positive {
  background-image: url('../assets/icon-correct.png') !important;
}

.float-delta.negative {
  background-image: url('../assets/icon-wrong.png') !important;
  filter: drop-shadow(0 0 18px rgba(231, 76, 60, 0.8));
}



