/* Theme "Grafit": neutral graphite, electric blue for actions, tangerine for points. Dark only.
   Every theme defines the same set of custom properties; the default theme also sits on bare :root, other themes on
   :root[data-theme="<name>"] (more specific, so they win). Fonts are in css/fonts.css (files in fonts/).
   The --scene-* colours are read by the renderer (js/ui/theme.js → render/scene.js, atmosphere.js, geodata.js). */

:root,
:root[data-theme="grafit"] {
  color-scheme: dark;

  /* fonts */
  --font-body: "Hanken Grotesk", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-display: "Hanken Grotesk", "Segoe UI", Roboto, system-ui, sans-serif;
  --weight-display: 800;
  --weight-strong: 700;

  /* surfaces and text */
  --surface: rgba(23, 25, 30, .94);           /* cards over the map */
  --surface-solid: #17191e;                   /* the same, opaque: what scrolls under a card's sticky foot */
  --surface-2: rgba(240, 242, 248, .06);      /* tiles, banners, segmented control inside a card */
  --surface-hover: rgba(240, 242, 248, .1);
  --ink: #f1f3f8;
  --ink-inverse: #0c0d10;                     /* text on --ink (selected tab) */
  --muted: #a2a8b5;
  --line: rgba(240, 242, 248, .1);            /* dividers, card edge */
  --line-strong: rgba(240, 242, 248, .18);    /* outlined buttons */

  /* actions */
  --accent: #4f7cff;                          /* main buttons, links in focus, the guess pin */
  --accent-hover: #6a90ff;
  --accent-ink: #ffffff;
  --accent-glow: rgba(79, 124, 255, .35);
  --warn: #ff9f45;                            /* round timer in its last 15 s */
  --highlight: #ff9f45;                       /* points, the score number in the summary */
  --highlight-bg: rgba(255, 159, 69, .14);    /* tint of --highlight: an earned badge without tiers, the streak chip */
  --focus: #9db6ff;
  --danger: #ff6b6b;                          /* error text, destructive links */
  --danger-solid: #e5484d;                    /* destructive button background */
  --info: #8fb0ff;

  /* score tiers (pills, round markers): colour + icon, never colour alone */
  --tier-good: #3ddc97;  --tier-good-bg: rgba(61, 220, 151, .13);
  --tier-mid: #ff9f45;   --tier-mid-bg: rgba(255, 159, 69, .14);
  --tier-bad: #8a909c;   --tier-bad-bg: rgba(138, 144, 156, .16);
  --tier-empty: rgba(240, 242, 248, .14);     /* round marker not played yet */

  /* badges (Odznaky): the tiers bronze, silver and gold also on the map of knowledge, always with the word („Bronz“);
     negative badges ("Smolné") violet and with a tilted medal, so they differ without colour too */
  --medal-bronze: #cf8f5e;  --medal-bronze-bg: rgba(207, 143, 94, .16);
  --medal-silver: #c7cfdb;  --medal-silver-bg: rgba(199, 207, 219, .13);
  --medal-gold: #f4c54a;    --medal-gold-bg: rgba(244, 197, 74, .16);
  --medal-odd: #b59cff;     --medal-odd-bg: rgba(181, 156, 255, .15);

  /* map overlays */
  --pin-guess: #4f7cff;
  --pin-target: #ff5d5d;
  --pin-ring: #ff8080;
  --pin-border: #ffffff;
  --arc-mid: #f1f3f8;
  --overlay-text: rgba(241, 243, 248, .78);   /* data attribution over the map */
  --overlay-bg: rgba(12, 13, 16, .5);         /* its tint, readable over a bright orthophoto */
  --overlay-shadow: 0 1px 2px rgba(0, 0, 0, .7);

  /* fields */
  --field-bg: rgba(0, 0, 0, .28);
  --field-line: rgba(240, 242, 248, .14);

  /* toast */
  --toast-bg: #f1f3f8;
  --toast-ink: var(--ink-inverse);

  /* shapes */
  --radius-card: 16px;
  --radius-control: 12px;     /* buttons, inputs, zoom group */
  --radius-inner: 10px;       /* tiles, banners, thumbnails */
  --radius-pill: 999px;       /* chips, score pills */
  --shadow-card: 0 24px 64px rgba(0, 0, 0, .6);
  --backdrop: rgba(6, 7, 9, .62);             /* behind a modal dialog */
  --shadow-button: inset 0 1px 0 rgba(255, 255, 255, .25), 0 8px 24px var(--accent-glow);
  --blur: blur(16px) saturate(1.2);

  /* page and 3D scene (canvas is transparent over the page background) */
  --page-bg: #0c0d10 linear-gradient(#0a0b0d 0%, #16181d 55%, #24272e 100%) fixed;
  --scene-fog: #15171b;        /* overview fog, close to the middle of the page gradient */
  --scene-ground: #1a1c21;     /* flat plane around Czechia, fades into the page */
  --scene-neighbour: #1e2127;  /* neighbours' box without imagery */
  --scene-haze: #8b94a5;       /* sky band and fog low over a revealed place */
  --scene-haze-line: #c3c9d3;  /* thin line at the horizon */
  --scene-river: #3d7fbb;
}
