:root {
  color-scheme: dark;

  /* Typography */
  --hcc-ff-display: 'Playfair Display', Georgia, serif;
  --hcc-ff-body: 'Space Grotesk', 'Inter', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  --hcc-ff-mono: 'IBM Plex Mono', 'Space Grotesk', ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;

  /* Platform and game accents */
  --hcc-accent: #e8d5a3;
  --hcc-accent-dim: rgba(232, 213, 163, 0.16);
  --hcc-gaslit-primary: #00ffcc;
  --hcc-gaslit-secondary: #ff3366;
  --hcc-redacted-primary: #00ff88;
  --hcc-redacted-secondary: #ffb800;
  --hcc-timelines-primary: #e8d5a3;

  /* Status colors */
  --hcc-green: #4caf50;
  --hcc-amber: #ff9800;
  --hcc-red: #f44336;
  --hcc-blue: #5b8dee;
  --hcc-cyan: #00c8e0;
  --hcc-purple: #c78cff;
  --hcc-gold: #ffd700;

  /* Spacing */
  --hcc-space-2xs: 2px;
  --hcc-space-xs: 4px;
  --hcc-space-sm: 8px;
  --hcc-space-md: 16px;
  --hcc-space-lg: 24px;
  --hcc-space-xl: 40px;
  --hcc-space-2xl: 64px;

  /* Shape */
  --hcc-radius-xs: 3px;
  --hcc-radius-sm: 5px;
  --hcc-radius: 8px;
  --hcc-radius-lg: 12px;
  --hcc-radius-full: 999px;

  /* Motion */
  --hcc-ease: cubic-bezier(0.22, 1, 0.36, 1);
  --hcc-duration-fast: 120ms;
  --hcc-duration: 180ms;
  --hcc-duration-slow: 320ms;

  /* Component constants */
  --hcc-control-height: 40px;
  --hcc-control-height-sm: 32px;
  --hcc-page-max: 1120px;

  /* Typography treatment for game hero headings — title case (none) across all three games */
  --hcc-heading-display-transform: none;
}

:root,
[data-theme="dark"] {
  color-scheme: dark;
  --hcc-bg: #08090b;
  --hcc-bg-soft: #0d0f12;
  --hcc-surface: #121419;
  --hcc-surface-2: #191d23;
  --hcc-surface-3: #202630;
  --hcc-elevated: #161a20;
  --hcc-border: rgba(245, 247, 250, 0.10);
  --hcc-border-strong: rgba(245, 247, 250, 0.20);
  --hcc-text: #f4f2ec;
  --hcc-text-muted: #9ca3ad;
  --hcc-text-dim: #68707a;
  --hcc-faint: #3f4650;
  --hcc-ink: #0a0c0f;
  --hcc-on-accent: #08090b;
  --hcc-grid-color: rgba(255, 255, 255, 0.035);
  --hcc-panel-tint: rgba(255, 255, 255, 0.025);
  --hcc-hover: rgba(255, 255, 255, 0.055);
  --hcc-active: rgba(255, 255, 255, 0.095);
  --hcc-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.32);
  --hcc-shadow: 0 14px 36px rgba(0, 0, 0, 0.42);
  --hcc-shadow-lg: 0 26px 70px rgba(0, 0, 0, 0.52);
  --hcc-nav-bg: rgba(8, 9, 11, 0.90);
  --hcc-nav-text: #f4f2ec;
  --hcc-logo-plate: #08090b;
  --hcc-logo-plate-border: rgba(255, 255, 255, 0.10);
  --hcc-input-bg: #0d1015;
  --hcc-share-bg: #090a0c;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme]) {
    color-scheme: light;
    --hcc-bg: #f4f6f8;
    --hcc-bg-soft: #eef2f6;
    --hcc-surface: #ffffff;
    --hcc-surface-2: #e9eef3;
    --hcc-surface-3: #dce4ec;
    --hcc-elevated: #ffffff;
    --hcc-border: rgba(21, 29, 38, 0.14);
    --hcc-border-strong: rgba(21, 29, 38, 0.24);
    --hcc-text: #14181f;
    --hcc-text-muted: #5f6b78;
    --hcc-text-dim: #8994a1;
    --hcc-faint: #b3bdc8;
    --hcc-ink: #f8fafc;
    --hcc-on-accent: #111418;
    --hcc-grid-color: rgba(20, 24, 31, 0.055);
    --hcc-panel-tint: rgba(20, 24, 31, 0.025);
    --hcc-hover: rgba(20, 24, 31, 0.055);
    --hcc-active: rgba(20, 24, 31, 0.095);
    --hcc-shadow-sm: 0 1px 3px rgba(20, 24, 31, 0.08);
    --hcc-shadow: 0 12px 32px rgba(20, 24, 31, 0.12);
    --hcc-shadow-lg: 0 24px 70px rgba(20, 24, 31, 0.16);
    --hcc-nav-bg: rgba(8, 9, 11, 0.92);
    --hcc-nav-text: #f4f2ec;
    --hcc-logo-plate: #08090b;
    --hcc-logo-plate-border: rgba(255, 255, 255, 0.12);
    --hcc-input-bg: #ffffff;
    --hcc-share-bg: #090a0c;
  }
}

[data-theme="light"] {
  color-scheme: light;
  --hcc-bg: #f4f6f8;
  --hcc-bg-soft: #eef2f6;
  --hcc-surface: #ffffff;
  --hcc-surface-2: #e9eef3;
  --hcc-surface-3: #dce4ec;
  --hcc-elevated: #ffffff;
  --hcc-border: rgba(21, 29, 38, 0.14);
  --hcc-border-strong: rgba(21, 29, 38, 0.24);
  --hcc-text: #14181f;
  --hcc-text-muted: #5f6b78;
  --hcc-text-dim: #8994a1;
  --hcc-faint: #b3bdc8;
  --hcc-ink: #f8fafc;
  --hcc-on-accent: #111418;
  --hcc-grid-color: rgba(20, 24, 31, 0.055);
  --hcc-panel-tint: rgba(20, 24, 31, 0.025);
  --hcc-hover: rgba(20, 24, 31, 0.055);
  --hcc-active: rgba(20, 24, 31, 0.095);
  --hcc-shadow-sm: 0 1px 3px rgba(20, 24, 31, 0.08);
  --hcc-shadow: 0 12px 32px rgba(20, 24, 31, 0.12);
  --hcc-shadow-lg: 0 24px 70px rgba(20, 24, 31, 0.16);
  --hcc-nav-bg: rgba(8, 9, 11, 0.92);
  --hcc-nav-text: #f4f2ec;
  --hcc-logo-plate: #08090b;
  --hcc-logo-plate-border: rgba(255, 255, 255, 0.12);
  --hcc-input-bg: #ffffff;
  --hcc-share-bg: #090a0c;
}

:root {
  /* Legacy aliases while older game CSS is migrated. */
  --hcc-surface2: var(--hcc-surface-2);
  --hcc-border-hard: var(--hcc-border-strong);
  --hcc-muted: var(--hcc-text-muted);
  --hcc-yellow: var(--hcc-gold);
  --hcc-yellow-dim: rgba(255, 215, 0, 0.14);
  --hcc-fact: var(--hcc-gaslit-primary);
  --hcc-gaslit: var(--hcc-gaslit-secondary);
  --hcc-font: var(--hcc-ff-body);
  --hcc-font-mono: var(--hcc-ff-mono);
  --hcc-transition: var(--hcc-duration) var(--hcc-ease);

  --bg: var(--hcc-bg);
  --surface: var(--hcc-surface);
  --surface2: var(--hcc-surface-2);
  --border: var(--hcc-border);
  --text: var(--hcc-text);
  --muted: var(--hcc-text-muted);
  --faint: var(--hcc-text-dim);
  --accent: var(--hcc-accent);
  --ff-display: var(--hcc-ff-display);
  --ff-body: var(--hcc-ff-body);
  --ff-mono: var(--hcc-ff-mono);
}
