/* ==========================================================================
   YSLH (元素轮回) Design Tokens
   Aesthetic: Neo-Monochrome Architectural Fantasy · Stippled Ink & Silver
   ========================================================================== */

:root {
  color-scheme: dark;

  /* --- Core Monochrome Ink & Obsidian Surfaces --- */
  --bg-void: #0d0d10;
  --bg-obsidian: #151519;
  --bg-charcoal: #1d1d22;
  --bg-slate: #26262d;
  --bg-elevated: #2f2f38;
  --bg-glass: rgb(18 18 22 / 0.84);
  --bg-glass-strong: rgb(13 13 16 / 0.94);

  /* --- Foreground & Silver Ink --- */
  --ink-pure: #f6f6f8;
  --ink-primary: #e7e7ec;
  --ink-secondary: #b4b4c0;
  --ink-muted: #848494;
  --ink-disabled: #5c5c6a;

  /* --- Metallic Borders & Hairlines --- */
  --line-subtle: rgb(246 246 248 / 0.12);
  --line-medium: rgb(246 246 248 / 0.24);
  --line-bright: rgb(246 246 248 / 0.62);
  --line-pure: rgb(246 246 248 / 0.92);

  /* --- Gameplay Semantic Accents (Strictly Earned Clarity) --- */
  /* HP: Warm Crimson-Vermilion echoing the hooded mage artwork */
  --hp-fill: #c9463d;
  --hp-bright: #ef6356;
  --hp-trail: #f4b6ae;
  --hp-bg: rgb(201 70 61 / 0.16);

  /* Shield: Glacial Silver-Cyan clearly distinct from HP */
  --shield-fill: #78c3d8;
  --shield-bright: #b6ebfa;
  --shield-bg: rgb(120 195 216 / 0.16);

  /* Action Points & Turn Gold */
  --ap-fill: #e3b868;
  --ap-bright: #f7d996;
  --ap-bg: rgb(227 184 104 / 0.16);

  /* Out-of-Turn Reaction Skill (Special Case: vividly distinct from locked/cooldown) */
  --reaction-accent: #f0a846;
  --reaction-glow: rgb(240 168 70 / 0.34);
  --reaction-bg: rgb(240 168 70 / 0.11);

  /* Cooldown vs Opponent-Turn distinction */
  --cooldown-tint: rgb(18 20 26 / 0.82);
  --cooldown-accent: #98a8be;
  --locked-tint: rgb(14 14 18 / 0.72);

  /* Gestures (枪 / 盾 / 拳) */
  --gesture-gun: #e05a47;
  --gesture-shield: #78c3d8;
  --gesture-fist: #e3b868;

  /* Status Semantics */
  --buff-color: #7cc9a9;
  --debuff-color: #e06158;
  --neutral-color: #c2c2d0;

  /* Countdown Urgency */
  --urgent-amber: #eba849;
  --urgent-red: #e84b42;

  /* Focus Ring */
  --focus-ring: #f6f6f8;

  /* --- Typography --- */
  /* Ceremonial Chinese Serif (faithful to ref-menu-hero.jpg Songti menu) */
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "STSong", "SimSun", Georgia, serif;
  /* Crisp Geometric Display & UI Sans */
  --font-display: "Cinzel", "Chakra Petch", "Bahnschrift", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --font-sans: "PingFang SC", "Microsoft YaHei UI", "Microsoft YaHei", "Noto Sans SC", system-ui, -apple-system, sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Code", "Consolas", ui-monospace, monospace;

  /* --- Radii & Chamfers --- */
  --radius-xs: 2px;
  --radius-sm: 4px;
  --radius-md: 8px;

  /* --- Elevation & Shadows --- */
  --shadow-card: 0 12px 32px rgb(0 0 0 / 0.56);
  --shadow-modal: 0 24px 64px rgb(0 0 0 / 0.8);
  --shadow-glow: 0 0 24px rgb(246 246 248 / 0.24);

  /* --- Motion Timing --- */
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-slam: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 160ms;
  --dur-med: 260ms;
  --dur-slow: 420ms;

  /* --- Stipple Grain Texture (inline SVG noise matching YSLH artwork) --- */
  --stipple-uri: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.88' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix type='saturate' values='0'/%3E%3C/filter%3E%3Crect width='120' height='120' filter='url(%23n)' opacity='0.18'/%3E%3C/svg%3E");
}
