/* ============================================================
   GUESS IT — design tokens & base type
   "Late-Night Game Show" aesthetic. Midnight-navy stage,
   spotlights, marquee bulbs, neon stage-gel answer colors,
   theatrical condensed display type.
   ============================================================ */

:root {
  /* ─── Type ───
     Display: Anton (free, ultra-condensed theatrical sans)
     Body:    Instrument Sans (geometric, refined)
     Mono:    DM Mono (numerals + codes)
     CJK display fallback: ZCOOL QingKe HuangYou (bold retro Chinese).
     CJK body fallback: Noto Sans SC. */
  --font-display: 'Anton',
                  'Noto Sans SC',
                  'PingFang SC', 'Heiti SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                  'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --font-sans:    'Instrument Sans',
                  'Noto Sans SC', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei',
                  system-ui, -apple-system, sans-serif;
  --font-mono:    'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  /* ─── Stage palette ───
     Midnight navy as the dominant ground; magenta + gold as the
     two stage accents; chrome white as primary text. */
  --stage-deep:   #060926;   /* outermost backdrop */
  --stage:        #0B1033;   /* main canvas */
  --stage-soft:   #141a4a;   /* lifted panel */
  --stage-card:   #1b2261;   /* card surface */
  --stage-hi:     #2a3284;   /* hover/lifted */
  --ink:          #F5F5F7;   /* primary text */
  --ink-soft:     #A6ADD9;   /* secondary text on stage */
  --ink-dim:      #6E76B3;   /* tertiary text */
  --hairline:     rgba(255,255,255,0.12);
  --hairline-2:   rgba(255,255,255,0.22);

  /* Star colors */
  --magenta:      #FF2E88;
  --magenta-hot:  #FF6BAE;
  --gold:         #FFD23F;
  --gold-hot:     #FFE48F;
  --chrome:       #F5F5F7;

  /* Live/urgent (kept as magenta) */
  --accent:       var(--magenta);

  /* ─── Answer palette ─── retuned to neon stage gels.
     Same A/B/C/D semantics as before, dark legible fg. */
  --answer-a-bg: #FFD23F; --answer-a-fg: #2A1A00;   /* gold */
  --answer-b-bg: #3DE7FF; --answer-b-fg: #002A33;   /* cyan */
  --answer-c-bg: #FF2E88; --answer-c-fg: #1A000A;   /* magenta */
  --answer-d-bg: #A8FF60; --answer-d-fg: #0F2A00;   /* lime */

  /* Shape — softer corners for the lit-button look */
  --radius-sm: 4px;
  --radius:    10px;
  --radius-lg: 18px;
  --radius-pill: 999px;

  /* Stage spotlight — radial bloom for hero surfaces */
  --stage-spotlight:
    radial-gradient(120% 80% at 50% -10%, rgba(255, 210, 63, 0.18), transparent 55%),
    radial-gradient(80% 60% at 50% 110%, rgba(255, 46, 136, 0.20), transparent 60%),
    radial-gradient(60% 60% at 0% 100%, rgba(61, 231, 255, 0.10), transparent 70%);

  /* Film grain — subtle SVG noise tuned warm-cool over deep navy */
  --paper-grain: url("data:image/svg+xml,%3Csvg viewBox='0 0 320 320' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0.95  0 0 0 0 0.95  0 0 0 0 1  0 0 0 0.05 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");

  /* Bulb glow — used by marquee dots & active states */
  --glow-gold:    0 0 14px rgba(255, 210, 63, 0.7), 0 0 28px rgba(255, 210, 63, 0.35);
  --glow-magenta: 0 0 16px rgba(255, 46, 136, 0.75), 0 0 36px rgba(255, 46, 136, 0.4);
  --glow-cyan:    0 0 14px rgba(61, 231, 255, 0.6);
  --glow-lime:    0 0 14px rgba(168, 255, 96, 0.6);
}

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

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--stage-deep);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }

.hidden { display: none !important; }

/* ───── Type primitives ───── */

.serif,           /* legacy class — repurposed: now means display type */
.display {
  font-family: var(--font-display);
  font-weight: 400;
  letter-spacing: 0.005em;
  text-transform: uppercase;
}
.mono  { font-family: var(--font-mono); font-feature-settings: "tnum" 1; }

.label,
.eyebrow {
  font-family: var(--font-sans);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--ink-soft);
  margin: 0;
}
.eyebrow strong { color: var(--gold); font-weight: 700; }

.divider {
  border: none;
  border-top: 1px solid var(--hairline);
  margin: 0;
}

/* Tabular numbers wherever scores appear */
.num, .mono { font-variant-numeric: tabular-nums; }

/* ───── Buttons — stage button style ───── */

button {
  font: inherit;
  cursor: pointer;
}

button.primary {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.25rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  background: linear-gradient(180deg, var(--magenta-hot), var(--magenta) 70%, color-mix(in srgb, var(--magenta), #000 22%));
  color: var(--accent-fg, #fff);
  border: none;
  border-radius: var(--radius);
  padding: 16px 30px;
  position: relative;
  transition: transform 0.18s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.22s ease,
              filter 0.2s ease;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 6px 0 color-mix(in srgb, var(--magenta), #000 45%),
    0 12px 28px -8px color-mix(in srgb, var(--magenta) 55%, transparent),
    var(--glow-magenta);
}
button.primary::after {
  content: '›';
  margin-left: 12px;
  display: inline-block;
  transition: transform 0.18s ease;
  font-weight: 400;
  opacity: 0.95;
}
button.primary:hover:not(:disabled) {
  transform: translateY(-2px);
  filter: brightness(1.06);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.5),
    inset 0 -2px 0 rgba(0,0,0,0.18),
    0 8px 0 color-mix(in srgb, var(--magenta), #000 45%),
    0 18px 36px -8px color-mix(in srgb, var(--magenta) 60%, transparent),
    var(--glow-magenta);
}
button.primary:hover:not(:disabled)::after { transform: translateX(4px); }
button.primary:active:not(:disabled) {
  transform: translateY(3px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.4),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 2px 0 color-mix(in srgb, var(--magenta), #000 45%),
    0 4px 12px -2px color-mix(in srgb, var(--magenta) 50%, transparent);
}
button.primary:disabled {
  background: linear-gradient(180deg, #3A4385, #232A6B);
  color: var(--ink-soft);
  cursor: not-allowed;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.1),
    inset 0 -1px 0 rgba(0,0,0,0.2),
    0 4px 0 #161B4D;
  filter: none;
}
button.primary:disabled::after { content: '·'; opacity: 0.4; }

/* ───── Focus ───── */

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}

/* ───── Selection ───── */

::selection {
  background: var(--magenta);
  color: #fff;
}

/* ───── Marquee bulbs ─────
   A row of dots used in the masthead/round header.
   Active = gold + glow; pulsing = magenta. */

.bulbs {
  display: inline-flex;
  gap: 8px;
  align-items: center;
}
.bulb {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  border: 1px solid rgba(255,255,255,0.18);
  transition: background 0.3s ease, box-shadow 0.3s ease, transform 0.3s ease;
}
.bulb.lit {
  background: radial-gradient(circle at 35% 30%, var(--gold-hot), var(--gold) 70%);
  border-color: var(--gold-hot);
  box-shadow: var(--glow-gold);
}
.bulb.live {
  background: radial-gradient(circle at 35% 30%, var(--magenta-hot), var(--magenta) 70%);
  border-color: var(--magenta-hot);
  box-shadow: var(--glow-magenta);
  animation: bulb-throb 1.2s ease-in-out infinite;
}
@keyframes bulb-throb {
  0%, 100% { transform: scale(1); filter: brightness(1); }
  50%      { transform: scale(1.18); filter: brightness(1.25); }
}
