/* Design tokens. Warm paper/noir surfaces, one verdigris accent that means «вы» and drives
   links, focus, active controls and primary buttons; better is a muted blue and
   worse a muted brick, so «better» never merges with the accent and the pair reads
   without colour vision. Words in Golos Text, headings and large figures in Sofia
   Sans Semi Condensed, JetBrains Mono for IDs and key hints only. Every component
   reads these; restyling the portal starts here. */
:root {
  --focal-bg: #1a1816;
  --focal-surface-2: #272420;
  --focal-rule: #36312c;
  --focal-ink: #f0ece1;
  --focal-ink-2: #d6cfc2;
  --focal-muted: #bbb3a5;
  --focal-signal: #67c7c4;
  --focal-on-signal: #0e1717;
  --focal-up: #8bbbe6;
  --focal-down: #f09f82;
  --focal-warn: #e6b763;

  /* Rank emblems, Initiate through Eternus. */
  --rank-1: oklch(0.57 0.045 70);
  --rank-2: oklch(0.57 0.070 150);
  --rank-3: oklch(0.52 0.105 160);
  --rank-4: oklch(0.55 0.095 211);
  --rank-5: oklch(0.58 0.102 251);
  --rank-6: oklch(0.53 0.112 282);
  --rank-7: oklch(0.55 0.120 316);
  --rank-8: oklch(0.54 0.109 352);
  --rank-9: oklch(0.57 0.132 31);
  --rank-10: oklch(0.57 0.118 56);
  --rank-11: oklch(0.60 0.119 86);
  color-scheme: light;
  --steam-bg: #171a21;
  --steam-ink: #fff;
  --steam-rule: #454953;
  --steam-hover: #242b36;
  --steam-hover-rule: #77808e;
  --band-fill: color-mix(in oklab, var(--up) 22%, var(--surface));
  --band-stroke: var(--up);
  --backdrop: rgba(25, 23, 20, .52);

  /* Ground, surfaces, ink and rules */
  --bg: #f6f4ef;
  --surface: #fcfbf8;
  --surface-2: #efece4;
  --ink: #191714;
  --ink-2: #3d3934;
  --muted: #6e685f;
  --footer-ink: #3d3934;
  --rule: #e2ddd2;
  --rule-strong: #c8c1b4;
  --grid: rgba(25, 23, 20, 0.045);

  /* The accent («вы», links, focus, active) and the better / worse pair. The
     old names stay: signal is the accent, up is better, down is worse. */
  --signal: #165e5b;
  --signal-soft: #e2efee;
  --on-signal: #fcfbf8;
  --up: #22598a;
  --up-soft: #e4eef7;
  --down: #a8462a;
  --down-soft: #f6e6e0;
  --even: #6e685f;
  --warn: #8a5a19;
  --warn-soft: #f6ecd6;

  /* Categories (gold sources, teams): distinct, quiet, readable on both grounds */
  --cat-1: #22598a;
  --cat-2: #1d5e4b;
  --cat-3: #a8462a;
  --cat-4: #6b4a9a;
  --cat-5: #9a6a12;
  --cat-6: #6c7570;

  --slot-weapon: #b85616;
  --slot-weapon-soft: #faece1;
  --slot-vitality: #3b7631;
  --slot-vitality-soft: #e7f3e4;
  --slot-spirit: #6c42a8;
  --slot-spirit-soft: #efe9f8;

  /* Type */
  --font-sans: "Golos Text", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-display: "Sofia Sans Semi Condensed", "Golos Text", -apple-system, "Segoe UI", system-ui, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --step--2: 0.75rem;
  --step--1: 0.8125rem;
  --step-0: 0.9375rem;
  --step-1: 1.0625rem;
  --step-2: 1.5rem;
  --step-3: 2.25rem;
  --step-4: 3.25rem;

  /* Space on an 8px grid; compact radii for data and controls */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 48px;
  --space-8: 80px;
  --radius-s: 6px;
  --radius-m: 10px;
  --radius-l: 14px;
  --shadow-pop: 0 1px 2px rgba(18, 22, 20, 0.06), 0 16px 40px -16px rgba(18, 22, 20, 0.22);
  --ease: cubic-bezier(0.2, 0.7, 0.1, 1);
  --fast: 150ms;
  --slow: 560ms;
  --page: 1160px;
}

:root[data-theme="dark"] {
  --focal-bg: #e8e2d5;
  --focal-surface-2: #dcd5c6;
  --focal-rule: #c7bfb0;
  --focal-ink: #191714;
  --focal-ink-2: #38342f;
  --focal-muted: #57524a;
  --focal-signal: #114f4c;
  --focal-on-signal: #fcfbf8;
  --focal-up: #1d4f7d;
  --focal-down: #8f361c;
  --focal-warn: #75480f;

  /* Rank emblems, Initiate through Eternus. */
  --rank-1: oklch(0.69 0.045 70);
  --rank-2: oklch(0.69 0.070 150);
  --rank-3: oklch(0.64 0.105 160);
  --rank-4: oklch(0.67 0.095 211);
  --rank-5: oklch(0.70 0.102 251);
  --rank-6: oklch(0.65 0.112 282);
  --rank-7: oklch(0.67 0.120 316);
  --rank-8: oklch(0.66 0.109 352);
  --rank-9: oklch(0.69 0.132 31);
  --rank-10: oklch(0.69 0.118 56);
  --rank-11: oklch(0.72 0.119 86);
  color-scheme: dark;
  --backdrop: rgba(18, 17, 16, .72);
  --bg: #121110;
  --surface: #1a1816;
  --surface-2: #23201d;
  --ink: #f0ece1;
  --ink-2: #c9c2b5;
  --muted: #8f877b;
  --footer-ink: #d3cdbf;
  --rule: #2e2a26;
  --rule-strong: #423c36;
  --grid: rgba(240, 236, 225, 0.035);
  --signal: #56b3b0;
  --signal-soft: #162626;
  --on-signal: #0e1717;
  --up: #78a9d6;
  --up-soft: #172430;
  --down: #df896b;
  --down-soft: #2c1c17;
  --even: #8f877b;
  --warn: #e0ad58;
  --warn-soft: #2e2512;
  --cat-1: #7aa7d1;
  --cat-2: #6fb59c;
  --cat-3: #d98a6c;
  --cat-4: #ad92d6;
  --cat-5: #d9a84e;
  --cat-6: #8b958f;
  --slot-weapon: #e08244;
  --slot-weapon-soft: #2c1e15;
  --slot-vitality: #6eb561;
  --slot-vitality-soft: #192617;
  --slot-spirit: #a87be8;
  --slot-spirit-soft: #231b2e;
  --shadow-pop: 0 1px 0 rgba(0, 0, 0, 0.4), 0 20px 48px -18px rgba(0, 0, 0, 0.8);
}
