/* ═══════════════════════════════════════════════════════
   THEME: retro80s (default)
   Deep purple · Neon cyan/pink/green · Orbitron
   ═══════════════════════════════════════════════════════ */
body.retro80s {
  font-family: 'Rajdhani', sans-serif;
  background: #0d0020;
  color: #fff;
  position: relative;
}

/* Animated grid floor */
body.retro80s::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    linear-gradient(rgba(0,229,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,229,255,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%;
  z-index: 0;
  pointer-events: none;
}

/* Gradient sky */
body.retro80s::after {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,45,120,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(0,229,255,0.15) 0%, transparent 60%),
    linear-gradient(180deg, #0d0020 0%, #1a0040 50%, #0d0020 100%);
  z-index: -1;
  pointer-events: none;
}

body.retro80s .page-wrap {
  position: relative;
  z-index: 10;
}

/* Retro sun */
body.retro80s .retro-sun {
  position: fixed;
  bottom: -60px;
  left: 50%;
  transform: translateX(-50%);
  width: 280px;
  height: 140px;
  border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #ffe600 0%, #ff2d78 100%);
  opacity: 0.08;
  z-index: 1;
  pointer-events: none;
  overflow: hidden;
}
body.retro80s .retro-sun::before {
  content: '';
  position: absolute;
  inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #0d0020 12px, #0d0020 16px);
}

/* Stars */
body.retro80s .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.retro80s .star {
  position: absolute;
  width: 2px; height: 2px;
  background: white;
  border-radius: 50%;
  opacity: 0.6;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}
@keyframes twinkle {
  0%,100% { opacity: 0.6; transform: scale(1); }
  50%      { opacity: 0.1; transform: scale(0.5); }
}

/* Typography */
body.retro80s h1, body.retro80s .display-font {
  font-family: 'Orbitron', sans-serif;
  font-weight: 900;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: #00e5ff;
  text-shadow: 0 0 8px #00e5ff, 0 0 30px rgba(0,229,255,0.5);
}

body.retro80s .neon-pink  { color: #ff2d78; text-shadow: 0 0 8px #ff2d78; }
body.retro80s .neon-cyan  { color: #00e5ff; text-shadow: 0 0 8px #00e5ff; }
body.retro80s .neon-green { color: #39ff14; text-shadow: 0 0 8px #39ff14; }
body.retro80s .neon-yellow{ color: #ffe600; text-shadow: 0 0 8px #ffe600; }

/* Cards */
body.retro80s .card {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px;
  backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(255,45,120,0.08), 0 20px 60px rgba(0,0,0,0.5);
  position: relative;
  overflow: hidden;
}
body.retro80s .card::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 20px;
  padding: 1px;
  background: linear-gradient(135deg, #ff2d78, transparent 40%, transparent 60%, #00e5ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

/* Buttons */
body.retro80s .btn-primary {
  background: linear-gradient(135deg, #ff2d78, #c400a8);
  color: #fff;
  box-shadow: 0 0 20px rgba(255,45,120,0.5);
  font-family: 'Orbitron', sans-serif;
}
body.retro80s .btn-secondary {
  background: linear-gradient(135deg, #00e5ff, #0080ff);
  color: #000;
  box-shadow: 0 0 20px rgba(0,229,255,0.4);
  font-family: 'Orbitron', sans-serif;
}
body.retro80s .btn-danger {
  background: linear-gradient(135deg, #ff6b00, #ff2d78);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}
body.retro80s .btn-neutral {
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-family: 'Orbitron', sans-serif;
}

/* Category badge */
body.retro80s .category-badge {
  display: inline-block;
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
  background: rgba(255,230,0,0.1);
  border: 1px solid rgba(255,230,0,0.3);
  color: #ffe600;
  font-weight: 700;
  font-family: 'Orbitron', sans-serif;
}

/* Progress bar */
body.retro80s .progress-bar {
  height: 6px;
  background: rgba(255,255,255,0.1);
  border-radius: 99px;
  overflow: hidden;
}
body.retro80s .progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #ff2d78, #00e5ff);
  border-radius: 99px;
  box-shadow: 0 0 8px #ff2d78;
  transition: width 0.5s ease;
}

/* Choice buttons */
body.retro80s .choice-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
  border-radius: 12px;
  background: rgba(255,255,255,0.04);
  border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85);
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
  text-align: left;
  font-family: 'Rajdhani', sans-serif;
}
body.retro80s .choice-btn:hover:not(:disabled) {
  border-color: #00e5ff;
  background: rgba(0,229,255,0.08);
  transform: translateX(4px);
}
body.retro80s .choice-btn .letter {
  font-family: 'Orbitron', sans-serif;
  font-size: 14px;
  font-weight: 700;
  width: 40px; height: 40px;
  border-radius: 8px;
  background: rgba(255,255,255,0.08);
  border: 1.5px solid rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
body.retro80s .choice-btn.correct {
  background: rgba(57,255,20,0.12);
  border-color: #39ff14;
  box-shadow: 0 0 16px rgba(57,255,20,0.25);
}
body.retro80s .choice-btn.correct .letter {
  background: #39ff14; border-color: #39ff14; color: #000;
}
body.retro80s .choice-btn.selected {
  border-color: #ff2d78;
  background: rgba(255,45,120,0.1);
}

/* Scoreboard */
body.retro80s .scoreboard-row {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
body.retro80s .scoreboard-row:first-child {
  background: rgba(255,230,0,0.1);
  border-color: rgba(255,230,0,0.3);
  color: #ffe600;
}

/* ═══════════════════════════════════════════════════════
   THEME: corporate
   White · Microsoft blue · Inter
   ═══════════════════════════════════════════════════════ */
body.corporate {
  font-family: 'Inter', sans-serif;
  background: #f3f3f3;
  color: #201f1e;
}

body.corporate h1, body.corporate .display-font {
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  color: #0078d4;
  letter-spacing: -0.5px;
}

body.corporate .page-wrap { position: relative; }
body.corporate .retro-sun, body.corporate .stars, body.corporate .star { display: none; }

body.corporate .card {
  background: #fff;
  border: 1px solid #edebe9;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

body.corporate .btn-primary {
  background: #0078d4;
  color: #fff;
  box-shadow: 0 2px 6px rgba(0,120,212,0.3);
}
body.corporate .btn-primary:hover { background: #106ebe; }
body.corporate .btn-secondary {
  background: #fff;
  color: #0078d4;
  border: 2px solid #0078d4;
}
body.corporate .btn-danger {
  background: #d13438;
  color: #fff;
}
body.corporate .btn-neutral {
  background: #edebe9;
  color: #201f1e;
}

body.corporate .category-badge {
  display: inline-block;
  font-size: 11px;
  padding: 3px 10px;
  border-radius: 4px;
  background: #deecf9;
  color: #0078d4;
  font-weight: 600;
}

body.corporate .progress-bar {
  height: 6px; background: #edebe9; border-radius: 99px; overflow: hidden;
}
body.corporate .progress-fill {
  height: 100%; background: #0078d4; border-radius: 99px; transition: width 0.5s ease;
}

body.corporate .choice-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 8px;
  background: #faf9f8; border: 1.5px solid #edebe9;
  color: #201f1e; font-size: 16px; font-weight: 600;
  cursor: pointer; transition: all 0.15s ease;
  width: 100%; text-align: left;
}
body.corporate .choice-btn:hover:not(:disabled) {
  border-color: #0078d4; background: #deecf9;
}
body.corporate .choice-btn .letter {
  font-weight: 700; font-size: 13px;
  width: 36px; height: 36px; border-radius: 6px;
  background: #edebe9; border: none;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.corporate .choice-btn.correct { background: #dff6dd; border-color: #107c10; }
body.corporate .choice-btn.correct .letter { background: #107c10; color: #fff; }
body.corporate .choice-btn.selected { border-color: #0078d4; background: #deecf9; }

body.corporate .neon-pink  { color: #d13438; }
body.corporate .neon-cyan  { color: #0078d4; }
body.corporate .neon-green { color: #107c10; }
body.corporate .neon-yellow{ color: #797673; }

body.corporate .scoreboard-row { background: #faf9f8; border: 1px solid #edebe9; }
body.corporate .scoreboard-row:first-child { background: #deecf9; border-color: #0078d4; color: #0078d4; }

/* ═══════════════════════════════════════════════════════
   THEME: halloween
   Black · Orange · Purple · Spooky
   ═══════════════════════════════════════════════════════ */
body.halloween {
  font-family: 'Rajdhani', sans-serif;
  background: #0a0a0a;
  color: #fff;
  position: relative;
}

body.halloween::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255,100,0,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 20% 100%, rgba(120,0,180,0.2) 0%, transparent 50%),
    linear-gradient(180deg, #0a0a0a 0%, #1a0a00 50%, #0a0010 100%);
  z-index: -1; pointer-events: none;
}

/* Spooky grid */
body.halloween::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(255,100,0,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,100,0,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%; z-index: 0; pointer-events: none;
}

body.halloween .page-wrap { position: relative; z-index: 10; }
body.halloween .retro-sun {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #ff6400 0%, #7800b4 100%);
  opacity: 0.12; z-index: 1; pointer-events: none; overflow: hidden;
}
body.halloween .retro-sun::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #0a0a0a 12px, #0a0a0a 16px);
}
body.halloween .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.halloween .star {
  position: absolute; width: 2px; height: 2px; background: #ff6400;
  border-radius: 50%; opacity: 0.5;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

body.halloween h1, body.halloween .display-font {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: #ff6400; text-shadow: 0 0 10px #ff6400, 0 0 30px rgba(255,100,0,0.5);
  text-transform: uppercase; letter-spacing: 3px;
}
body.halloween .neon-pink   { color: #ff6400; text-shadow: 0 0 8px #ff6400; }
body.halloween .neon-cyan   { color: #c800ff; text-shadow: 0 0 8px #c800ff; }
body.halloween .neon-green  { color: #00e676; text-shadow: 0 0 8px #00e676; }
body.halloween .neon-yellow { color: #ff6400; text-shadow: 0 0 8px #ff6400; }

body.halloween .card {
  background: rgba(255,100,0,0.05); border: 1px solid rgba(255,100,0,0.2);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(255,100,0,0.06), 0 20px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
body.halloween .card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, #ff6400, transparent 40%, transparent 60%, #c800ff);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
body.halloween .btn-primary  { background: linear-gradient(135deg, #ff6400, #c00); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(255,100,0,0.5); }
body.halloween .btn-secondary{ background: linear-gradient(135deg, #c800ff, #6000b0); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(200,0,255,0.4); }
body.halloween .btn-danger   { background: linear-gradient(135deg, #900, #ff6400); color: #fff; font-family: 'Orbitron', sans-serif; }
body.halloween .btn-neutral  { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: 'Orbitron', sans-serif; }

body.halloween .category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-family: 'Orbitron', sans-serif;
  background: rgba(200,0,255,0.1); border: 1px solid rgba(200,0,255,0.4); color: #c800ff; font-weight: 700;
}
body.halloween .progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
body.halloween .progress-fill { height: 100%; background: linear-gradient(90deg, #ff6400, #c800ff); border-radius: 99px; box-shadow: 0 0 8px #ff6400; transition: width 0.5s ease; }

body.halloween .choice-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255,100,0,0.04); border: 1.5px solid rgba(255,100,0,0.15);
  color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; width: 100%; text-align: left;
  font-family: 'Rajdhani', sans-serif;
}
body.halloween .choice-btn:hover:not(:disabled) { border-color: #ff6400; background: rgba(255,100,0,0.08); transform: translateX(4px); }
body.halloween .choice-btn .letter {
  font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,100,0,0.1); border: 1.5px solid rgba(255,100,0,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.halloween .choice-btn.correct { background: rgba(0,230,118,0.1); border-color: #00e676; }
body.halloween .choice-btn.correct .letter { background: #00e676; border-color: #00e676; color: #000; }
body.halloween .choice-btn.selected { border-color: #ff6400; background: rgba(255,100,0,0.1); }
body.halloween .scoreboard-row { background: rgba(255,100,0,0.05); border: 1px solid rgba(255,100,0,0.1); color: #fff; }
body.halloween .scoreboard-row:first-child { background: rgba(255,100,0,0.15); border-color: rgba(255,100,0,0.4); color: #ff6400; }

/* ═══════════════════════════════════════════════════════
   THEME: winter
   Deep blue · Silver · Gold · Festive
   ═══════════════════════════════════════════════════════ */
body.winter {
  font-family: 'Rajdhani', sans-serif;
  background: #020b18;
  color: #fff;
  position: relative;
}

body.winter::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(100,180,255,0.2) 0%, transparent 60%),
    radial-gradient(ellipse at 30% 80%, rgba(200,160,0,0.12) 0%, transparent 50%),
    linear-gradient(180deg, #020b18 0%, #071428 50%, #020b18 100%);
  z-index: -1; pointer-events: none;
}

body.winter::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(100,180,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(100,180,255,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%; z-index: 0; pointer-events: none;
}

body.winter .page-wrap { position: relative; z-index: 10; }
body.winter .retro-sun {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #c8a000 0%, #64b4ff 100%);
  opacity: 0.1; z-index: 1; pointer-events: none; overflow: hidden;
}
body.winter .retro-sun::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #020b18 12px, #020b18 16px);
}
body.winter .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.winter .star {
  position: absolute; width: 2px; height: 2px; background: white;
  border-radius: 50%; opacity: 0.7;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

body.winter h1, body.winter .display-font {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: #64b4ff; text-shadow: 0 0 10px #64b4ff, 0 0 30px rgba(100,180,255,0.5);
  text-transform: uppercase; letter-spacing: 3px;
}
body.winter .neon-pink   { color: #ff6eb4; text-shadow: 0 0 8px #ff6eb4; }
body.winter .neon-cyan   { color: #64b4ff; text-shadow: 0 0 8px #64b4ff; }
body.winter .neon-green  { color: #00e676; text-shadow: 0 0 8px #00e676; }
body.winter .neon-yellow { color: #c8a000; text-shadow: 0 0 8px #c8a000; }

body.winter .card {
  background: rgba(100,180,255,0.05); border: 1px solid rgba(100,180,255,0.15);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(100,180,255,0.06), 0 20px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
body.winter .card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, #64b4ff, transparent 40%, transparent 60%, #c8a000);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
body.winter .btn-primary  { background: linear-gradient(135deg, #1a6ab4, #0040a0); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(100,180,255,0.4); }
body.winter .btn-secondary{ background: linear-gradient(135deg, #c8a000, #a07800); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(200,160,0,0.4); }
body.winter .btn-danger   { background: linear-gradient(135deg, #900, #c00); color: #fff; font-family: 'Orbitron', sans-serif; }
body.winter .btn-neutral  { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: 'Orbitron', sans-serif; }

body.winter .category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-family: 'Orbitron', sans-serif;
  background: rgba(200,160,0,0.12); border: 1px solid rgba(200,160,0,0.4); color: #c8a000; font-weight: 700;
}
body.winter .progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
body.winter .progress-fill { height: 100%; background: linear-gradient(90deg, #64b4ff, #c8a000); border-radius: 99px; box-shadow: 0 0 8px #64b4ff; transition: width 0.5s ease; }

body.winter .choice-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: rgba(100,180,255,0.04); border: 1.5px solid rgba(100,180,255,0.12);
  color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; width: 100%; text-align: left;
  font-family: 'Rajdhani', sans-serif;
}
body.winter .choice-btn:hover:not(:disabled) { border-color: #64b4ff; background: rgba(100,180,255,0.08); transform: translateX(4px); }
body.winter .choice-btn .letter {
  font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(100,180,255,0.1); border: 1.5px solid rgba(100,180,255,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.winter .choice-btn.correct { background: rgba(0,230,118,0.1); border-color: #00e676; }
body.winter .choice-btn.correct .letter { background: #00e676; border-color: #00e676; color: #000; }
body.winter .choice-btn.selected { border-color: #64b4ff; background: rgba(100,180,255,0.1); }
body.winter .scoreboard-row { background: rgba(100,180,255,0.05); border: 1px solid rgba(100,180,255,0.1); color: #fff; }
body.winter .scoreboard-row:first-child { background: rgba(200,160,0,0.15); border-color: rgba(200,160,0,0.4); color: #c8a000; }

/* ═══════════════════════════════════════════════════════
   THEME: fourthofjuly
   Red · White · Blue · Stars & Stripes
   ═══════════════════════════════════════════════════════ */
body.fourthofjuly {
  font-family: 'Rajdhani', sans-serif;
  background: #00042a;
  color: #fff;
  position: relative;
}

body.fourthofjuly::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 30% 0%, rgba(220,0,0,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 70% 0%, rgba(0,60,200,0.2) 0%, transparent 55%),
    linear-gradient(180deg, #00042a 0%, #00083a 50%, #00042a 100%);
  z-index: -1; pointer-events: none;
}

body.fourthofjuly::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%; z-index: 0; pointer-events: none;
}

body.fourthofjuly .page-wrap { position: relative; z-index: 10; }
body.fourthofjuly .retro-sun {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #fff 0%, #cc0000 50%, #002080 100%);
  opacity: 0.1; z-index: 1; pointer-events: none; overflow: hidden;
}
body.fourthofjuly .retro-sun::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #00042a 12px, #00042a 16px);
}
body.fourthofjuly .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.fourthofjuly .star {
  position: absolute; width: 2px; height: 2px; background: white;
  border-radius: 50%; opacity: 0.7;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

body.fourthofjuly h1, body.fourthofjuly .display-font {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: #fff; text-shadow: 0 0 10px rgba(255,255,255,0.8), 0 0 30px rgba(255,255,255,0.3);
  text-transform: uppercase; letter-spacing: 3px;
}
body.fourthofjuly .neon-pink   { color: #ff3333; text-shadow: 0 0 8px #ff3333; }
body.fourthofjuly .neon-cyan   { color: #4488ff; text-shadow: 0 0 8px #4488ff; }
body.fourthofjuly .neon-green  { color: #00e676; text-shadow: 0 0 8px #00e676; }
body.fourthofjuly .neon-yellow { color: #fff; text-shadow: 0 0 8px rgba(255,255,255,0.8); }

body.fourthofjuly .card {
  background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.12);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(200,0,0,0.06), 0 20px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
body.fourthofjuly .card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, #cc0000, transparent 40%, transparent 60%, #002080);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
body.fourthofjuly .btn-primary  { background: linear-gradient(135deg, #cc0000, #900000); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(200,0,0,0.5); }
body.fourthofjuly .btn-secondary{ background: linear-gradient(135deg, #002080, #001060); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(0,32,128,0.5); }
body.fourthofjuly .btn-danger   { background: linear-gradient(135deg, #800, #cc0000); color: #fff; font-family: 'Orbitron', sans-serif; }
body.fourthofjuly .btn-neutral  { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.2); color: #fff; font-family: 'Orbitron', sans-serif; }

body.fourthofjuly .category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-family: 'Orbitron', sans-serif;
  background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: #fff; font-weight: 700;
}
body.fourthofjuly .progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
body.fourthofjuly .progress-fill { height: 100%; background: linear-gradient(90deg, #cc0000, #4488ff); border-radius: 99px; box-shadow: 0 0 8px #cc0000; transition: width 0.5s ease; }

body.fourthofjuly .choice-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: rgba(255,255,255,0.04); border: 1.5px solid rgba(255,255,255,0.1);
  color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; width: 100%; text-align: left;
  font-family: 'Rajdhani', sans-serif;
}
body.fourthofjuly .choice-btn:hover:not(:disabled) { border-color: #fff; background: rgba(255,255,255,0.08); transform: translateX(4px); }
body.fourthofjuly .choice-btn .letter {
  font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(255,255,255,0.08); border: 1.5px solid rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.fourthofjuly .choice-btn.correct { background: rgba(0,230,118,0.1); border-color: #00e676; }
body.fourthofjuly .choice-btn.correct .letter { background: #00e676; border-color: #00e676; color: #000; }
body.fourthofjuly .choice-btn.selected { border-color: #cc0000; background: rgba(204,0,0,0.1); }
body.fourthofjuly .scoreboard-row { background: rgba(255,255,255,0.04); border: 1px solid rgba(255,255,255,0.08); color: #fff; }
body.fourthofjuly .scoreboard-row:first-child { background: rgba(204,0,0,0.15); border-color: rgba(204,0,0,0.4); color: #ff6666; }

/* ═══════════════════════════════════════════════════════
   THEME: thanksgiving
   Warm amber · Brown · Harvest gold
   ═══════════════════════════════════════════════════════ */
body.thanksgiving {
  font-family: 'Rajdhani', sans-serif;
  background: #120800;
  color: #fff;
  position: relative;
}

body.thanksgiving::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(200,120,0,0.25) 0%, transparent 60%),
    radial-gradient(ellipse at 50% 100%, rgba(140,60,0,0.2) 0%, transparent 60%),
    linear-gradient(180deg, #120800 0%, #1e0e00 50%, #120800 100%);
  z-index: -1; pointer-events: none;
}

body.thanksgiving::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(200,120,0,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(200,120,0,0.06) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%; z-index: 0; pointer-events: none;
}

body.thanksgiving .page-wrap { position: relative; z-index: 10; }
body.thanksgiving .retro-sun {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #c87800 0%, #6e3000 100%);
  opacity: 0.15; z-index: 1; pointer-events: none; overflow: hidden;
}
body.thanksgiving .retro-sun::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #120800 12px, #120800 16px);
}
body.thanksgiving .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.thanksgiving .star {
  position: absolute; width: 2px; height: 2px; background: #c87800;
  border-radius: 50%; opacity: 0.4;
  animation: twinkle var(--d, 3s) ease-in-out infinite var(--delay, 0s);
}

body.thanksgiving h1, body.thanksgiving .display-font {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: #c87800; text-shadow: 0 0 10px #c87800, 0 0 30px rgba(200,120,0,0.5);
  text-transform: uppercase; letter-spacing: 3px;
}
body.thanksgiving .neon-pink   { color: #c87800; text-shadow: 0 0 8px #c87800; }
body.thanksgiving .neon-cyan   { color: #e8a840; text-shadow: 0 0 8px #e8a840; }
body.thanksgiving .neon-green  { color: #00e676; text-shadow: 0 0 8px #00e676; }
body.thanksgiving .neon-yellow { color: #e8a840; text-shadow: 0 0 8px #e8a840; }

body.thanksgiving .card {
  background: rgba(200,120,0,0.06); border: 1px solid rgba(200,120,0,0.2);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(200,120,0,0.06), 0 20px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
body.thanksgiving .card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, #c87800, transparent 40%, transparent 60%, #6e3000);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
body.thanksgiving .btn-primary  { background: linear-gradient(135deg, #c87800, #8a5000); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(200,120,0,0.5); }
body.thanksgiving .btn-secondary{ background: linear-gradient(135deg, #e8a840, #b07820); color: #000; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(232,168,64,0.4); }
body.thanksgiving .btn-danger   { background: linear-gradient(135deg, #800, #c87800); color: #fff; font-family: 'Orbitron', sans-serif; }
body.thanksgiving .btn-neutral  { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: 'Orbitron', sans-serif; }
body.thanksgiving .category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-family: 'Orbitron', sans-serif;
  background: rgba(232,168,64,0.12); border: 1px solid rgba(232,168,64,0.4); color: #e8a840; font-weight: 700;
}
body.thanksgiving .progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
body.thanksgiving .progress-fill { height: 100%; background: linear-gradient(90deg, #c87800, #e8a840); border-radius: 99px; box-shadow: 0 0 8px #c87800; transition: width 0.5s ease; }
body.thanksgiving .choice-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: rgba(200,120,0,0.04); border: 1.5px solid rgba(200,120,0,0.15);
  color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; width: 100%; text-align: left; font-family: 'Rajdhani', sans-serif;
}
body.thanksgiving .choice-btn:hover:not(:disabled) { border-color: #c87800; background: rgba(200,120,0,0.08); transform: translateX(4px); }
body.thanksgiving .choice-btn .letter {
  font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(200,120,0,0.1); border: 1.5px solid rgba(200,120,0,0.3);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.thanksgiving .choice-btn.correct { background: rgba(0,230,118,0.1); border-color: #00e676; }
body.thanksgiving .choice-btn.correct .letter { background: #00e676; border-color: #00e676; color: #000; }
body.thanksgiving .choice-btn.selected { border-color: #c87800; background: rgba(200,120,0,0.1); }
body.thanksgiving .scoreboard-row { background: rgba(200,120,0,0.05); border: 1px solid rgba(200,120,0,0.1); color: #fff; }
body.thanksgiving .scoreboard-row:first-child { background: rgba(200,120,0,0.18); border-color: rgba(200,120,0,0.5); color: #e8a840; }

body.partymode {
  font-family: 'Fredoka One', 'Rajdhani', sans-serif;
  background: linear-gradient(135deg, #ff6b35 0%, #f7c948 50%, #ff2d78 100%);
  background-attachment: fixed;
  color: #1a1a2e;
}

body.partymode .page-wrap { position: relative; }
body.partymode .retro-sun, body.partymode .stars, body.partymode .star { display: none; }

body.partymode h1, body.partymode .display-font {
  font-family: 'Fredoka One', sans-serif;
  color: #1a1a2e;
  text-shadow: 3px 3px 0 rgba(255,255,255,0.5);
  letter-spacing: 1px;
}

body.partymode .card {
  background: rgba(255,255,255,0.85);
  border: 3px solid rgba(255,255,255,0.9);
  border-radius: 20px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.15);
  backdrop-filter: blur(8px);
}

body.partymode .btn-primary {
  background: #ff2d78;
  color: #fff;
  box-shadow: 4px 4px 0 #c40060;
  font-family: 'Fredoka One', sans-serif;
  font-size: 16px;
  letter-spacing: 1px;
}
body.partymode .btn-primary:hover { transform: translate(-2px,-2px); box-shadow: 6px 6px 0 #c40060; }
body.partymode .btn-secondary {
  background: #1a1a2e;
  color: #f7c948;
  box-shadow: 4px 4px 0 #000;
  font-family: 'Fredoka One', sans-serif;
}
body.partymode .btn-danger {
  background: #ff6b35;
  color: #fff;
  box-shadow: 4px 4px 0 #c04000;
  font-family: 'Fredoka One', sans-serif;
}
body.partymode .btn-neutral {
  background: rgba(255,255,255,0.6);
  color: #1a1a2e;
  border: 2px solid rgba(0,0,0,0.1);
  font-family: 'Fredoka One', sans-serif;
}

body.partymode .category-badge {
  display: inline-block;
  font-size: 12px;
  padding: 4px 12px;
  border-radius: 99px;
  background: #f7c948;
  color: #1a1a2e;
  font-weight: 700;
  font-family: 'Fredoka One', sans-serif;
}

body.partymode .progress-bar { height: 10px; background: rgba(0,0,0,0.1); border-radius: 99px; overflow: hidden; }
body.partymode .progress-fill { height: 100%; background: linear-gradient(90deg, #ff2d78, #f7c948); border-radius: 99px; transition: width 0.5s ease; }

body.partymode .choice-btn {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; border-radius: 14px;
  background: rgba(255,255,255,0.7); border: 3px solid rgba(0,0,0,0.1);
  color: #1a1a2e; font-size: 18px; font-weight: 700;
  cursor: pointer; transition: all 0.15s ease;
  width: 100%; text-align: left;
  font-family: 'Fredoka One', sans-serif;
}
body.partymode .choice-btn:hover:not(:disabled) {
  transform: scale(1.02);
  border-color: #ff2d78;
  background: rgba(255,255,255,0.9);
}
body.partymode .choice-btn .letter {
  font-size: 16px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 10px;
  background: #ff6b35; color: #fff; border: none;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.partymode .choice-btn.correct { background: rgba(255,255,255,0.9); border-color: #2ecc71; }
body.partymode .choice-btn.correct .letter { background: #2ecc71; }
body.partymode .choice-btn.selected { border-color: #ff2d78; background: rgba(255,45,120,0.1); }

body.partymode .neon-pink  { color: #ff2d78; }
body.partymode .neon-cyan  { color: #3498db; }
body.partymode .neon-green { color: #2ecc71; }
body.partymode .neon-yellow{ color: #e67e22; }

body.partymode .scoreboard-row { background: rgba(255,255,255,0.6); border: 2px solid rgba(0,0,0,0.08); }
body.partymode .scoreboard-row:first-child { background: #f7c948; border-color: #e67e22; }

/* ═══════════════════════════════════════════════════════
   THEME: sport
   Green · White · Stadium lights
   ═══════════════════════════════════════════════════════ */
body.sport {
  font-family: 'Rajdhani', sans-serif;
  background: #020f02;
  color: #fff;
  position: relative;
}

body.sport::after {
  content: '';
  position: fixed; inset: 0;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(0,200,80,0.2) 0%, transparent 55%),
    radial-gradient(ellipse at 80% 0%, rgba(0,200,80,0.15) 0%, transparent 55%),
    radial-gradient(ellipse at 50% 100%, rgba(255,255,255,0.04) 0%, transparent 50%),
    linear-gradient(180deg, #020f02 0%, #041a04 50%, #020f02 100%);
  z-index: -1; pointer-events: none;
}

/* Field lines */
body.sport::before {
  content: '';
  position: fixed; inset: 0;
  background:
    linear-gradient(rgba(0,200,80,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(0,200,80,0.07) 1px, transparent 1px);
  background-size: 60px 60px;
  transform: perspective(600px) rotateX(55deg) scaleX(1.6);
  transform-origin: bottom center;
  top: 40%; z-index: 0; pointer-events: none;
}

body.sport .page-wrap { position: relative; z-index: 10; }
body.sport .retro-sun {
  position: fixed; bottom: -60px; left: 50%; transform: translateX(-50%);
  width: 280px; height: 140px; border-radius: 140px 140px 0 0;
  background: linear-gradient(180deg, #fff 0%, #00c850 100%);
  opacity: 0.07; z-index: 1; pointer-events: none; overflow: hidden;
}
body.sport .retro-sun::before {
  content: ''; position: absolute; inset: 0;
  background: repeating-linear-gradient(180deg, transparent 0px, transparent 12px, #020f02 12px, #020f02 16px);
}
body.sport .stars { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body.sport .star {
  position: absolute; width: 3px; height: 3px; background: #fff;
  border-radius: 50%; opacity: 0.9;
  animation: twinkle var(--d, 2s) ease-in-out infinite var(--delay, 0s);
}

body.sport h1, body.sport .display-font {
  font-family: 'Orbitron', sans-serif; font-weight: 900;
  color: #00c850; text-shadow: 0 0 10px #00c850, 0 0 30px rgba(0,200,80,0.5);
  text-transform: uppercase; letter-spacing: 3px;
}
body.sport .neon-pink   { color: #ff3333; text-shadow: 0 0 8px #ff3333; }
body.sport .neon-cyan   { color: #00c850; text-shadow: 0 0 8px #00c850; }
body.sport .neon-green  { color: #00c850; text-shadow: 0 0 8px #00c850; }
body.sport .neon-yellow { color: #f5c400; text-shadow: 0 0 8px #f5c400; }

body.sport .card {
  background: rgba(0,200,80,0.04); border: 1px solid rgba(0,200,80,0.18);
  border-radius: 20px; backdrop-filter: blur(14px);
  box-shadow: 0 0 40px rgba(0,200,80,0.05), 0 20px 60px rgba(0,0,0,0.6);
  position: relative; overflow: hidden;
}
body.sport .card::before {
  content: ''; position: absolute; inset: 0; border-radius: 20px; padding: 1px;
  background: linear-gradient(135deg, #00c850, transparent 40%, transparent 60%, #f5c400);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
body.sport .btn-primary  { background: linear-gradient(135deg, #00c850, #008a38); color: #fff; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(0,200,80,0.5); }
body.sport .btn-secondary{ background: linear-gradient(135deg, #f5c400, #b89200); color: #000; font-family: 'Orbitron', sans-serif; box-shadow: 0 0 20px rgba(245,196,0,0.4); }
body.sport .btn-danger   { background: linear-gradient(135deg, #900, #cc0000); color: #fff; font-family: 'Orbitron', sans-serif; }
body.sport .btn-neutral  { background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15); color: #fff; font-family: 'Orbitron', sans-serif; }

body.sport .category-badge {
  display: inline-block; font-size: 10px; letter-spacing: 2px; text-transform: uppercase;
  padding: 4px 10px; border-radius: 99px; font-family: 'Orbitron', sans-serif;
  background: rgba(245,196,0,0.1); border: 1px solid rgba(245,196,0,0.4); color: #f5c400; font-weight: 700;
}
body.sport .progress-bar { height: 6px; background: rgba(255,255,255,0.08); border-radius: 99px; overflow: hidden; }
body.sport .progress-fill { height: 100%; background: linear-gradient(90deg, #00c850, #f5c400); border-radius: 99px; box-shadow: 0 0 8px #00c850; transition: width 0.5s ease; }

body.sport .choice-btn {
  display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 12px;
  background: rgba(0,200,80,0.04); border: 1.5px solid rgba(0,200,80,0.12);
  color: rgba(255,255,255,0.85); font-size: 18px; font-weight: 600;
  cursor: pointer; transition: all 0.2s ease; width: 100%; text-align: left; font-family: 'Rajdhani', sans-serif;
}
body.sport .choice-btn:hover:not(:disabled) { border-color: #00c850; background: rgba(0,200,80,0.08); transform: translateX(4px); }
body.sport .choice-btn .letter {
  font-family: 'Orbitron', sans-serif; font-size: 14px; font-weight: 700;
  width: 40px; height: 40px; border-radius: 8px;
  background: rgba(0,200,80,0.1); border: 1.5px solid rgba(0,200,80,0.25);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
body.sport .choice-btn.correct { background: rgba(0,200,80,0.15); border-color: #00c850; }
body.sport .choice-btn.correct .letter { background: #00c850; border-color: #00c850; color: #000; }
body.sport .choice-btn.selected { border-color: #f5c400; background: rgba(245,196,0,0.08); }
body.sport .scoreboard-row { background: rgba(0,200,80,0.04); border: 1px solid rgba(0,200,80,0.1); color: #fff; }
body.sport .scoreboard-row:first-child { background: rgba(245,196,0,0.15); border-color: rgba(245,196,0,0.4); color: #f5c400; }
