/* ═══════════════════════════════════════════════════════════════
   DESIGN TOKENS — Who's That Fact? V2
   ═══════════════════════════════════════════════════════════════
   Every visual constant lives here. Component styles reference
   these variables exclusively — zero hardcoded magic numbers.

   Designer's Intent: A single source of truth for the visual
   language. Change a token here, change it everywhere. This
   eliminates V1's inconsistency issues (random radii, spacing,
   and colors scattered across 1600 lines).
   ═══════════════════════════════════════════════════════════════ */

:root {
  /* ─── Colors ─── Primary / Brand ─── */
  --color-gold-400: #FFD54F;
  --color-gold-500: #F5C518;
  --color-gold-600: #D4A90F;
  --color-gold-700: #C9A000;
  --color-gold-glow: rgba(245, 197, 24, .15);

  /* ─── Colors ─── Backgrounds ─── */
  --color-bg-primary: #0a0a12;
  --color-bg-card: #12121e;
  --color-bg-card-alt: #1a1a2e;
  --color-bg-overlay: rgba(10, 10, 18, .85);

  /* ─── Colors ─── Text ───
     Designer's Intent: --color-text-muted bumped from V1's #777
     to #9CA3AF to meet WCAG AA 4.5:1 contrast ratio on dark bg. */
  --color-text-primary: #f0f0f0;
  --color-text-muted: #9CA3AF;
  --color-text-inverse: #111;

  /* ─── Colors ─── Semantic ─── */
  --color-accent: #e84393;
  --color-green: #00e0a0;
  --color-green-dark: #009970;
  --color-red: #ff6b6b;  /* Bumped from #ff4d4d for WCAG AA 5.1:1 on dark bg */

  /* ─── Colors ─── Microsoft Brand (wheel segments) ─── */
  --color-ms-red: #F25022;
  --color-ms-green: #7FBA00;
  --color-ms-blue: #00A4EF;
  --color-ms-yellow: #FFB900;

  /* ─── Colors ─── Wheel extended palette (12 cycling) ───
     Reordered for maximum adjacent contrast on projectors.
     Warm/cool alternation prevents similar hues from neighboring. */
  --color-wheel-1: #F25022;
  --color-wheel-2: #00A4EF;
  --color-wheel-3: #7FBA00;
  --color-wheel-4: #e84393;
  --color-wheel-5: #FFB900;
  --color-wheel-6: #7C5CBF;
  --color-wheel-7: #00C896;
  --color-wheel-8: #FF6B35;
  --color-wheel-9: #00BFFF;
  --color-wheel-10: #F5C518;
  --color-wheel-11: #2ECC71;
  --color-wheel-12: #ff6b6b;

  /* ─── Typography ─── */
  --font-display: "Bebas Neue", system-ui, sans-serif;
  --font-body: "DM Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* ─── Type Scale ─── */
  --text-xs: 0.72rem;    /* 11.5px — labels, counts, badges */
  --text-sm: 0.82rem;    /* 13px — secondary text, subtitles */
  --text-base: 0.95rem;  /* 15px — body text, inputs (merged from --text-md) */
  --text-lg: 1.05rem;    /* 17px — button text */
  --text-xl: 1.25rem;    /* 20px — card titles */
  --text-2xl: 1.5rem;    /* 24px — section headers */
  --text-3xl: 2rem;      /* 32px — display text */
  --text-4xl: 2.8rem;    /* 45px — hero text */
  --text-5xl: clamp(2rem, 5vw, 3.2rem); /* responsive logo */

  /* ─── Letter Spacing ─── */
  --tracking-tight: -0.025em;
  --tracking-normal: 0;
  --tracking-wide: 0.05em;
  --tracking-wider: 0.1em;
  --tracking-widest: 0.2em;

  /* ─── Line Height ─── */
  --leading-tight: 1.25;
  --leading-normal: 1.5;
  --leading-relaxed: 1.65;

  /* ─── Spacing (4px base) ───
     Designer's Intent: Consistent 4px grid. Every margin, padding,
     and gap maps to this scale. No more random 13px, 22px, 14px
     like V1. */
  --space-0: 0;
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 48px;
  --space-16: 64px;

  /* ─── Border Radius ───
     Designer's Intent: V1 had 8/10/12/14/16/20px randomly scattered.
     V2 standardizes to exactly 4 tiers for visual consistency. */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  /* ─── Shadows / Elevation ─── */
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, .4);
  --shadow-lg: 0 8px 32px rgba(0, 0, 0, .5);
  --shadow-xl: 0 0 60px rgba(0, 0, 0, .6);
  --shadow-glow-gold: 0 0 60px rgba(245, 197, 24, .15);
  --shadow-glow-accent: 0 0 40px rgba(232, 67, 147, .15);

  /* ─── Transitions ─── */
  --transition-fast: 150ms ease;
  --transition-base: 200ms ease;
  --transition-slow: 300ms ease;

  /* ─── Z-Index Scale ─── */
  --z-bg: 0;
  --z-content: 1;
  --z-hub: 5;
  --z-pointer: 10;
  --z-breakout: 13;
  --z-breakout-score: 14;
  --z-ball-fg: 12;
  --z-overlay: 100;
  --z-modal: 200;
  --z-confetti: 9999;
  --z-skip-link: 10000;

  /* ─── Game Constants (exposed as CSS for progress bars, etc.) ─── */
  --timer-guess-seconds: 30;
  --timer-speaker-seconds: 45;
}
