/* ============================================================
   Gaming Guild — Design Tokens
   Single source of truth for color, type, space, motion.
   Dark is the default theme; `body.light` re-maps semantics.
   See DESIGN.md for usage rules.
   ============================================================ */

:root {
  /* ---------- Fonts ---------- */
  --font-display: 'Montserrat', sans-serif;
  --font-body: 'Figtree', system-ui, sans-serif;
  --font-num: 'Orbitron', 'Montserrat', sans-serif;

  /* ---------- Type scale (fluid) ---------- */
  --fs-display: clamp(54px, 8.5vw, 124px);
  --fs-h1: clamp(38px, 6vw, 64px);
  --fs-h2: clamp(30px, 4.6vw, 52px);
  --fs-h3: clamp(20px, 2.4vw, 26px);
  --fs-lead: clamp(16px, 1.7vw, 20px);
  --fs-body: 17px;
  --fs-small: 13.5px;
  --fs-kicker: 11.5px;

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

  /* ---------- Radii ---------- */
  --r-sm: 10px; --r-md: 18px; --r-lg: 26px; --r-xl: 34px; --r-pill: 999px;

  /* ---------- Motion ---------- */
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* ---------- Brand palette (theme-independent) ---------- */
  --accent: #ff2fa6;   /* magenta */
  --cyan: #2fd8f6;
  --blue: #2fd8f6;
  --violet: #a55cff;
  --amber: #ffc23d;

  /* ---------- Category tints ---------- */
  --t-mag: #ff2fa6; --t-purp: #a55cff; --t-cyan: #2fd8f6; --t-amb: #ffc23d;
  --t-teal: #2fe6c8; --t-blue: #5c8cff; --t-rose: #ff5c7a; --t-lime: #9fe65c;

  /* ---------- Semantic tokens — dark theme (default) ---------- */
  --night: #04060f;
  --panel: #0c1124;
  --ink: #eef1ff;
  --muted: #9aa3c7;
  --soft: #c9cfe8;

  --line: #ffffff14;
  --line-strong: #ffffff2c;

  --surface: #05070fc9;                     /* nav / footer / marquee chrome */
  --glass: #0b1022b3;                       /* chips, floating pills */
  --card-bg: linear-gradient(160deg, #111833b3, #0a0e20b3);
  --card-border: #ffffff1e;
  --cd-inner: #04060f80;                    /* countdown digit wells */
  --hover-bg: #ffffff06;

  --shadow-card: 0 18px 50px #00000066;
  --shadow-glow: 0 0 80px #ff2fa614;

  --hero-line-2: linear-gradient(95deg, #ffffff 8%, var(--accent) 46%, var(--cyan) 94%);
  --num-grad: linear-gradient(180deg, #ffffff 15%, #ffc76b 95%);
  --marquee-ink: #ffffff2e;

  color-scheme: dark;
}

/* ============================================================
   Light theme — activated by `body.light` (persisted in
   localStorage key `gg-theme`). Only semantics re-map; brand
   accents stay identical.
   ============================================================ */

body.light {
  --night: #f3f4fa;
  --panel: #ffffff;
  --ink: #131736;
  --muted: #5d6484;
  --soft: #3c4266;
  --amber: #a86e00;                          /* darker for AA on light */

  --line: #10132e17;
  --line-strong: #10132e33;

  --surface: #f3f4fad9;
  --glass: #ffffffd9;
  --card-bg: linear-gradient(160deg, #ffffff, #f5f6fc);
  --card-border: #10132e16;
  --cd-inner: #ffffff;
  --hover-bg: #10132e06;

  --shadow-card: 0 18px 44px #10132e1f;
  --shadow-glow: 0 0 70px #ff2fa610;

  --hero-line-2: linear-gradient(95deg, #131736 8%, var(--accent) 46%, var(--cyan) 94%);
  --num-grad: linear-gradient(180deg, #131736 15%, #c98a00 95%);
  --marquee-ink: #10132e26;

  color-scheme: light;
}
