/* Hallmark · shape: app screen · genre: atmospheric · theme: custom Wuxia Ink & Crimson Gold · posture: committed · hero: full-viewport canvas · nav: none · footer: none */
/* Hallmark · pre-emit critique: P5 H5 E5 S5 R5 V5 · weakest: none; trimmed ornamental chrome so the 1280x720 Wuxia combat canvas and tactile HUD dominate the stage */

:root {
  /* Fonts */
  --font-display: "Cormorant Garamond", "Palatino Linotype", "Book Antiqua", Georgia, serif;
  --font-body: "Be Vietnam Pro", "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", Consolas, monospace;

  /* Core Ink & Void Palette (OKLCH with tinted chroma >= 0.005) */
  --color-void: oklch(0.11 0.016 260);
  --color-ink-bg: oklch(0.14 0.015 260);
  --color-surface: oklch(0.18 0.018 260);
  --color-surface-elevated: oklch(0.22 0.02 255);
  --color-surface-glass: oklch(0.15 0.016 260 / 0.86);
  --color-surface-glass-strong: oklch(0.13 0.016 260 / 0.94);
  --color-overlay-backdrop: oklch(0.08 0.015 260 / 0.84);

  /* Typography Ink */
  --color-ink: oklch(0.95 0.012 82);
  --color-ink-soft: oklch(0.82 0.016 80);
  --color-ink-muted: oklch(0.68 0.018 75);

  /* Wuxia Accents */
  --color-crimson: oklch(0.58 0.23 16);
  --color-crimson-deep: oklch(0.42 0.19 16);
  --color-crimson-bright: oklch(0.69 0.21 15);
  --color-crimson-glow: oklch(0.58 0.23 16 / 0.36);

  --color-gold: oklch(0.77 0.165 76);
  --color-gold-bright: oklch(0.86 0.155 85);
  --color-gold-deep: oklch(0.58 0.14 70);
  --color-gold-glow: oklch(0.77 0.165 76 / 0.35);

  --color-jade: oklch(0.69 0.16 160);
  --color-jade-deep: oklch(0.48 0.13 160);

  --color-azure: oklch(0.72 0.145 215);
  --color-azure-deep: oklch(0.50 0.125 215);

  --color-accent-ink: oklch(0.98 0.008 82);
  --color-gold-ink: oklch(0.14 0.018 65);

  /* Borders & Hairlines */
  --border-subtle: oklch(0.35 0.02 75 / 0.42);
  --border-gold: oklch(0.77 0.165 76 / 0.52);
  --border-crimson: oklch(0.58 0.23 16 / 0.62);
  --border-azure: oklch(0.72 0.145 215 / 0.55);

  /* Gradients & Shadows (kept in token block per Floor Rule 48) */
  --grad-stage-vignette: radial-gradient(circle at 50% 44%, oklch(0.18 0.025 260 / 0.45), oklch(0.09 0.016 260 / 0.96) 82%);
  --grad-crimson-cta: linear-gradient(135deg, oklch(0.58 0.23 16), oklch(0.45 0.20 14));
  --grad-hp-fill: linear-gradient(90deg, oklch(0.52 0.22 15), oklch(0.64 0.23 18));
  --grad-hp-trail: linear-gradient(90deg, oklch(0.86 0.155 85), oklch(0.95 0.03 85));
  --grad-qi-fill: linear-gradient(90deg, oklch(0.54 0.14 220), oklch(0.74 0.145 205));
  --grad-boss-fill: linear-gradient(90deg, oklch(0.48 0.22 12), oklch(0.62 0.24 22), oklch(0.77 0.165 76));
  --grad-cutin-bar: linear-gradient(90deg, oklch(0.09 0.015 260 / 0), oklch(0.48 0.21 15 / 0.92) 22%, oklch(0.16 0.03 260 / 0.96) 65%, oklch(0.09 0.015 260 / 0));
  --grad-card-selected: linear-gradient(160deg, oklch(0.24 0.035 18 / 0.92), oklch(0.16 0.018 260 / 0.96));
  --grad-cooldown-veil: oklch(0.08 0.015 260 / 0.78);

  --shadow-panel: 0 12px 32px oklch(0.04 0.015 260 / 0.65);
  --shadow-modal: 0 24px 64px oklch(0.03 0.015 260 / 0.85);
  --shadow-cta: 0 8px 24px oklch(0.52 0.22 16 / 0.42);
  --shadow-text: 0 2px 6px oklch(0.05 0.015 260 / 0.9);

  /* Type Scale */
  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.375rem;
  --text-2xl: 1.875rem;
  --text-display: clamp(1.75rem, 3.2vw, 2.75rem);

  /* Spacing Scale */
  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-5: 1.25rem;
  --space-6: 1.5rem;
  --space-8: 2rem;

  /* Radii */
  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-full: 9999px;

  /* Z-index Stack */
  --z-canvas: 1;
  --z-hud: 10;
  --z-touch: 15;
  --z-banner: 25;
  --z-modal: 40;
  --z-loading: 60;
}
