/* =====================================================================================================
   SLINGSHOT COURIER — THEME TOKENS
   This file is the single place to restyle the game. Every colour, font and size used by the interface
   AND by the game renderer (canvas) is defined here; js/render.js reads the canvas values at start-up.
   Design language "Flight Deck": graphite surfaces, hairline rules, uppercase stencil labels, monospace
   telemetry, and a small set of signal colours taken from real spaceflight practice.
   ===================================================================================================== */
:root {
  /* ---- Surfaces: near-black graphite, cool and slightly blue-grey ---- */
  --void: #050608;        /* deepest background, deep space */
  --bg: #0A0C0F;          /* page */
  --panel: #0F1216;       /* panels */
  --panel-2: #151920;     /* raised rows, inputs */
  --panel-3: #1C2129;     /* hover */
  --line: #222830;        /* hairline rules */
  --line-2: #2F363F;      /* stronger rules, control borders */
  --line-3: #48505B;      /* corner ticks, focus rings */

  /* ---- Text ---- */
  --text: #E6E8EB;
  --text-2: #A3AAB4;
  --text-3: #6B737E;

  /* ---- Signal colours ----
     International Orange: the aerospace safety orange on pressure suits and launch hardware. Primary accent.
     Insignia Red / Insignia Blue: the two colours of the NASA insignia. Red = abort/danger, blue = deep fills.
     Kapton Gold: the amber foil on spacecraft. Rewards and caches.
     Caution Amber / GO Green: mission-control annunciator lamps. */
  --accent: #FF4F00;
  --accent-2: #FF7A3D;     /* lighter orange for small text on dark */
  --accent-ink: #160800;   /* text on orange buttons */
  --accent-dim: rgba(255, 79, 0, .14);
  --red: #FC3D21;
  --blue: #0B3D91;
  --gold: #C9962B;
  --amber: #F5B700;
  --go: #4CC38A;
  --steel: #9FB7CF;        /* "pale blue dot": info, and player two */

  --p1: var(--accent);
  --p2: var(--steel);

  /* ---- Type ---- */
  --font-ui: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Roboto, sans-serif;
  --font-display: "Inter", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", sans-serif;
  --font-mono: "JetBrains Mono", "Cascadia Mono", "SF Mono", ui-monospace, Menlo, Consolas, monospace;
  --track-label: .16em;    /* letter spacing on uppercase labels */
  --track-display: .08em;

  /* ---- Shape and size ---- */
  --radius: 2px;
  --radius-lg: 4px;
  --ui-scale: 1;           /* changed by Settings > Accessibility > Interface scale */
  --topbar-h: 56px;

  /* ---- Canvas palette (read by js/render.js) ---- */
  --c-space: #050608;
  --c-starlight: 214, 220, 228;            /* r, g, b of background stars */
  --c-grid: rgba(163, 170, 180, .045);
  --c-contour: rgba(163, 170, 180, .10);  /* gravity contour rings */
  /* Planet surfaces, muted and realistic: basalt, rust, ochre, ice, sand, slate, verdigris, cream */
  --c-planet-0: #5D6168;
  --c-planet-1: #9A5236;
  --c-planet-2: #B89A5B;
  --c-planet-3: #6E959B;
  --c-planet-4: #A88B6A;
  --c-planet-5: #44597A;
  --c-planet-6: #6F7D62;
  --c-planet-7: #CBC2AC;
  --c-moon: #B9BDC3;
  --c-singularity: #FF4F00;   /* accretion glow */
  --c-deflector: #F5B700;     /* deflector buoy field */
  --c-fold: #C9D3DE;          /* fold mouths */
  --c-drift: 138, 117, 96;    /* r, g, b of dust drifts */
  --c-receiver: #4CC38A;
  --c-locked: #6B737E;
  --c-cache: #C9962B;
  --c-rail: #A3AAB4;
  --c-aim: #E6E8EB;
  --c-ghost: #C9962B;
}

/* Accessibility variants (Settings > Accessibility) */
:root.colorsafe { --go: #4C9BE8; --c-receiver: #4C9BE8; --red: #E8A33D; }
:root.contrast { --text-2: #D3D7DC; --text-3: #A3AAB4; --line: #343B44; --line-2: #4A525D; --panel: #0B0D10; --panel-2: #12161B; }
