/* GameMind brand tokens: black and #FFCC00 yellow, crimson for critical actions.
   Dark is the default; html[data-theme="light"] swaps the surface and text roles only. */
:root {
  color-scheme: dark;

  /* Brand */
  --brand: #ffcc00;
  --brand-hover: #ffd83d;
  --brand-deep: #e0b000;
  --on-brand: #0d0d0d;
  --critical: #e11d48;
  --critical-hover: #be123c;
  --on-critical: #ffffff;

  /* Surfaces (warm near-black) */
  --bg: #09090a;
  --panel: #131315;
  --panel-raised: #1b1b1e;
  --surface-low: #0f0f11;
  --surface-hover: #232327;
  --line: #36363c;
  --line-soft: #242428;

  /* Text */
  --text: #f5f5f0;
  --text-secondary: #b6b5ae;
  --muted: #b6b5ae;
  --quiet: #8b8a84;

  /* Roles used across the app. --blue is the accent role (links, chips, highlights). */
  --blue: #ffcc00;
  --primary: var(--brand);
  --primary-hover: var(--brand-hover);
  --on-primary: var(--on-brand);
  --danger: var(--critical);
  --danger-hover: var(--critical-hover);
  --on-danger: var(--on-critical);
  --red: #ff5f73;
  --green: #34d399;
  --yellow: #ffa94d;
  --blue-soft: #2a2306;
  --green-soft: #0e2a1f;
  --red-soft: #2f1117;
  --yellow-soft: #2e1f0b;
  --side-blue: #5aa9ff;
  --success: #34d399;
  --success-glow: 0 0 0 1px rgb(52 211 153 / .5), 0 0 18px rgb(52 211 153 / .38);
  --focus: #ffcc00;

  /* Header stays black in both themes */
  --topbar-bg: rgb(9 9 10 / .92);
  --topbar-text: #f5f5f0;
  --topbar-muted: #a9a8a1;
  --topbar-line: #2a2a2e;
  --topbar-hover: #1f1f22;

  --glow: radial-gradient(1200px 420px at 50% -180px, rgb(255 204 0 / .10), transparent 70%);
  --shadow-sm: 0 1px 2px rgb(0 0 0 / .45);
  --shadow: 0 18px 44px rgb(0 0 0 / .55);
  --backdrop: rgb(0 0 0 / .72);

  /* Type */
  --font: Barlow, "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --display: var(--font);
  --fs-2xs: 11px;
  --fs-xs: 12px;
  --fs-sm: 13px;
  --fs-md: 14px;
  --fs-lg: 16px;
  --fs-xl: 20px;
  --fs-2xl: 24px;
  --fs-3xl: 30px;

  /* Spacing (4px base) */
  --sp-1: 4px;
  --sp-2: 8px;
  --sp-3: 12px;
  --sp-4: 16px;
  --sp-5: 20px;
  --sp-6: 24px;
  --sp-8: 32px;
  --sp-10: 40px;

  /* Shape and sizing */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 12px;
  --r-pill: 999px;
  --control-h: 40px;
  --control-h-sm: 32px;
  --page-width: 1280px;
  --ease: 150ms ease;
}

html[data-theme="light"] {
  color-scheme: light;
  --bg: #f6f5f1;
  --panel: #ffffff;
  --panel-raised: #f1efe8;
  --surface-low: #faf9f6;
  --surface-hover: #f6efd6;
  --line: #cfcbbf;
  --line-soft: #e6e3da;
  --text: #121212;
  --text-secondary: #4d4b45;
  --muted: #4d4b45;
  --quiet: #6b6860;
  --blue: #8a6400;
  --red: #c4203b;
  --green: #0f7a4a;
  --yellow: #9a5600;
  --blue-soft: #fff4c7;
  --green-soft: #e1f5ea;
  --red-soft: #ffe8ec;
  --yellow-soft: #ffeedd;
  --side-blue: #1d5fd0;
  --success: #0f7a4a;
  --success-glow: 0 0 0 1px rgb(15 122 74 / .35), 0 0 12px rgb(16 185 129 / .22);
  --focus: #b38600;
  --glow: radial-gradient(1200px 420px at 50% -180px, rgb(255 204 0 / .22), transparent 70%);
  --shadow-sm: 0 1px 2px rgb(18 18 18 / .06);
  --shadow: 0 18px 44px rgb(18 18 18 / .14);
  --backdrop: rgb(18 18 18 / .5);
}
