/* Design tokens of the player's screen «Район 94» (docs/UI_DESIGN.md). Loaded first by index.html; theme.css maps the
   older names (--accent, --glass, --radius …) onto these, so every panel file follows them. Change a value here only.
   Direction: the San Andreas HUD (heavy outlined type, one colour per meaning) on the street of a Ukrainian district —
   marshrutka yellow route boards, blue enamel street plates, asphalt and panel-block grey. */
:root {
  /* palette: things of the street */
  --c-marsh: #ffc61a;        /* marshrutka route board: the main accent, primary buttons */
  --c-marsh-deep: #d99a00;   /* its pressed / shaded side */
  --c-plate: #1f4f9c;        /* blue enamel street plate: names of places, toggles that are on */
  --c-plate-deep: #163a75;
  --c-asphalt: #16191d;      /* panels */
  --c-asphalt-2: #22262c;    /* raised rows inside panels */
  --c-concrete: #8d949c;     /* panel-block grey: secondary text */
  --c-paper: #f3efe4;        /* worn poster paper: main text */
  --c-outline: #050607;      /* the outline under all HUD type and icons */

  /* one colour per meaning (never only colour: each also has an icon or a word) */
  --c-money: #6fd34a;        /* GTA money green */
  --c-money-down: #ff5a4d;
  --c-health: #e5392d;
  --c-armour: #a9c1d9;
  --c-wanted: #ffc61a;
  --c-ok: #5fcf6a;
  --c-danger: #e5392d;
  --c-voice: #4fd1ff;        /* someone is talking, the mic is open */

  /* type: one narrow heavy family (system faces, nothing downloaded; see UI_DESIGN.md «Шрифт») */
  --f-hud: "Arial Narrow", "Roboto Condensed", "Bahnschrift", "Helvetica Neue", system-ui, -apple-system, "Segoe UI", sans-serif;
  --fs-xs: 11px;   /* phone floor */
  --fs-s: 13px;
  --fs-m: 15px;
  --fs-l: 18px;
  --fs-xl: 24px;
  --fs-2xl: 32px;  /* clock, money */
  --fs-3xl: 46px;  /* speed */
  --fw-body: 600;
  --fw-heavy: 800;
  --tracking-caps: 0.06em;

  /* outlined HUD type: GTA's black edge, drawn under the fill */
  --hud-stroke: 2px;
  --hud-stroke-s: 1.25px;
  --hud-text-shadow: 0 2px 0 rgba(0, 0, 0, 0.7), 0 3px 10px rgba(0, 0, 0, 0.45);

  /* space: 4 px steps */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px; --s-5: 20px; --s-6: 28px;
  --hud-edge: 18px;          /* distance of the HUD from the screen edge on a desktop */

  /* radii: plates are only slightly rounded, like enamel signs; pills only for transient lines */
  --r-plate: 6px;
  --r-panel: 10px;
  --r-btn: 14px;             /* touch buttons: rounded squares */
  --r-pill: 999px;

  /* edges and depth: a hard dark outline first, a short drop shadow second — no blur on the live picture */
  --edge: 0 0 0 2px var(--c-outline);
  --drop: 0 3px 0 rgba(0, 0, 0, 0.45), 0 6px 16px rgba(0, 0, 0, 0.35);
  --panel-bg: rgba(22, 25, 29, 0.9);
  --panel-line: rgba(243, 239, 228, 0.14);

  /* icons (ui/hudIcons.js) */
  --ic-stroke: 2.25;
  --ic-halo: rgba(5, 6, 7, 0.72);
  --ic-halo-w: 4.75;

  /* touch sizes */
  --t-size-s: 44px;
  --t-size-m: 52px;
  --t-size-l: 64px;

  /* motion */
  --dur-press: 90ms;
  --dur-in: 220ms;
  --dur-out: 150ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  /* slots other HUD parts adopt (money counter, GTA bars) */
  --hud-money: var(--c-money);
  --hud-money-outline: var(--c-outline);
  --hud-money-up: #8ef06a;
  --hud-money-down: var(--c-money-down);
  --hud-bar-h: 9px;
  --hud-bar-w: 150px;
}

/* the icon parts (ui/hudIcons.js) */
.ic { display: block; flex: none; overflow: visible; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.ic .ic-halo { stroke: var(--ic-halo); stroke-width: var(--ic-halo-w); }
.ic .ic-line { stroke: currentColor; stroke-width: var(--ic-stroke); }
.ic .ic-fill { fill: currentColor; stroke: var(--ic-halo); stroke-width: 1.5; paint-order: stroke; }

@media (prefers-reduced-motion: reduce) {
  :root { --dur-press: 0ms; --dur-in: 0ms; --dur-out: 0ms; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
