/* ==========================================================================
   Throne Room Sports — Design Tokens (single source of truth)
   Phase 1: Design System Foundation. Nothing should use raw hex values;
   reference these custom properties instead.
   ========================================================================== */

:root {
  /* ---- Core surfaces ---- */
  --bg: #0c0a12;
  --surface: #13111c;
  --card: #1a1728;
  --card-hover: #211e30;
  --border: #2a2540;
  --border-light: #352f50;

  /* ---- Text ---- */
  --text: #f5f5f5;
  --text-dim: #9890a8;
  --text-muted: #6b6480;

  /* ---- Brand: royal purple ---- */
  --purple: #6b35a8;
  --purple-light: #8b52cc;
  --purple-soft: rgba(107, 53, 168, 0.15);

  /* ---- Brand: crown gold ---- */
  --gold: #c9a227;
  --gold-light: #e0be4a;
  --gold-soft: rgba(201, 162, 39, 0.12);

  /* ---- YouTube red (primary action) ---- */
  --yt-red: #ff0000;
  --yt-red-soft: rgba(255, 0, 0, 0.15);

  /* ---- Game tier accents (used by game cards / 82-0 result tiers) ---- */
  --tier-common: #9890a8;
  --tier-rare: #5b8dd9;
  --tier-elite: #8b52cc;
  --tier-allstar: #f4923b;
  --tier-throne: #e0be4a;

  /* ---- Editorial clip-tag accents ---- */
  --tag-viral: #ff4d6d;
  --tag-throwback: #c9a227;
  --tag-debate: #8b52cc;
  --tag-disrespect: #ff7a45;

  /* ---- Gradients ---- */
  --grad-crown: linear-gradient(135deg, var(--gold-light), var(--gold));
  --grad-purple: linear-gradient(145deg, var(--card-hover) 0%, var(--card) 100%);
  --grad-gold-card: linear-gradient(145deg, rgba(201, 162, 39, 0.08) 0%, var(--card) 100%);
  --grad-purple-card: linear-gradient(145deg, rgba(107, 53, 168, 0.1) 0%, var(--card) 100%);

  /* ---- Spacing scale ---- */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 64px;
  --space-9: 96px;

  /* ---- Radius ---- */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius: 16px;
  --radius-lg: 24px;
  --radius-pill: 100px;

  /* ---- Typography ---- */
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --text-xs: 0.72rem;
  --text-sm: 0.82rem;
  --text-base: 0.9rem;
  --text-md: 1rem;
  --text-lg: 1.15rem;
  --text-xl: 1.4rem;
  --text-2xl: 1.8rem;
  --text-3xl: clamp(2.2rem, 5vw, 3.2rem);
  --text-hero: clamp(2.4rem, 6vw, 3.6rem);
  --weight-normal: 400;
  --weight-medium: 500;
  --weight-semibold: 600;
  --weight-bold: 700;
  --weight-black: 800;
  --leading-tight: 1.1;
  --leading-snug: 1.35;
  --leading-normal: 1.6;

  /* ---- Shadows & glows ---- */
  --shadow-card: 0 12px 32px rgba(0, 0, 0, 0.4);
  --shadow-pop: 0 6px 24px rgba(0, 0, 0, 0.5);
  --glow-purple: 0 4px 24px var(--purple-soft);
  --glow-gold: 0 4px 24px var(--gold-soft);
  --glow-red: 0 6px 24px var(--yt-red-soft);

  /* ---- Motion ---- */
  --t-fast: 0.15s ease;
  --t: 0.2s ease;
  --t-slow: 0.35s ease;

  /* ---- Layout ---- */
  --container: 1140px;
  --container-pad: 20px;
  --nav-h: 60px;
  --tap: 44px; /* minimum touch target */

  /* ---- Z-index scale ---- */
  --z-nav: 100;
  --z-menu: 200;
  --z-modal: 300;
}
