/* RKT ACADEMY - design tokens (v3 "Flight Log").
   Concept: a training academy with a flight-recorder look. Graphite surfaces, hairline rules, a ruler/slot-tick motif,
   one ignition-orange action colour and a strict semantic palette for evidence:
     fact (sky) · inference (amber) · unsupported/unknown (lavender) · gain/correct (green) · loss/wrong (red).
   Fonts are self-hosted (SIL OFL): Space Grotesk (display), Inter (text), JetBrains Mono (numbers, labels). */
@font-face { font-family: "Space Grotesk"; src: url("../../assets/fonts/space-grotesk-latin-wght-normal.woff2") format("woff2"); font-weight: 300 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Inter"; src: url("../../assets/fonts/inter-latin-wght-normal.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("../../assets/fonts/jetbrains-mono-latin-wght-normal.woff2") format("woff2"); font-weight: 100 800; font-style: normal; font-display: swap; }
/* Pixelify Sans Bold (SIL OFL 1.1, The Pixelify Sans Project Authors), ASCII subset: pixel display face for the Academy header only. */
@font-face { font-family: "Pixelify Sans"; src: url("../../assets/fonts/PixelifySans-Bold-subset.woff") format("woff"); font-weight: 700; font-style: normal; font-display: swap; }

:root {
  /* surfaces (dark, cool graphite) */
  --bg: #0b0e12; --bg2: #10151b; --panel: #151b23; --panel2: #1b232d; --raise: #212b37; --inset: #080b0f;
  --line: #243040; --line2: #33435a;
  /* text. All on --bg/--panel at >= 4.5:1 (checked in tests/design.test.mjs) */
  --text: #eef1f5; --text2: #c3ccd8; --dim: #97a4b6;
  /* brand action: ignition orange, dark ink on top */
  --accent: #ff7a3d; --accent-d: #d9561c; --accent-ink: #160d07; --accent-soft: rgba(255,122,61,.14);
  /* semantic */
  --good: #4cd69a; --bad: #ff5470; --warn: #e5b445; --fact: #6fa8ff; --infer: #e5b445; --unk: #a99cf5;
  --good-soft: rgba(76,214,154,.12); --bad-soft: rgba(255,84,112,.12); --warn-soft: rgba(229,180,69,.12); --fact-soft: rgba(111,168,255,.12); --unk-soft: rgba(169,156,245,.12);
  /* game hues (one per cabinet, same chroma family) */
  --g-rug: #ff6b63; --g-bot: #6fa8ff; --g-launch: #c792ff; --g-detective: #4fd1c5; --g-candle: #4cd69a; --g-risk: #e5b445; --g-slippage: #ff9a4d; --g-narrative: #e879a6;
  /* legacy names still used by game screens */
  --brand: var(--accent); --brand-d: var(--accent-d); --brand2: var(--accent); --brand2-d: var(--accent-d); --lav: var(--unk); --violet: var(--unk); --purple: var(--unk);
  --red: var(--bad); --gold: var(--warn); --cyan: var(--fact);
  /* type */
  --f-display: "Space Grotesk", "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --f-body: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --f-mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  /* shape + space */
  --r: 12px; --r-sm: 8px; --r-lg: 18px; --notch: 0px;
  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px;
  --safe-t: env(safe-area-inset-top, 0px); --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --tab-h: 60px; --top-h: 56px;
  --shadow: 0 1px 0 rgba(255,255,255,.04) inset, 0 8px 24px -12px rgba(0,0,0,.7);
  --ease: cubic-bezier(.2,.7,.2,1);
  /* the slot ruler: a hairline tick pattern used on dividers and card media */
  --ruler: repeating-linear-gradient(90deg, var(--line2) 0 1px, transparent 1px 8px);
}
