/* Design tokens: fonts, colours, motion, spacing. Dark theme only. */

@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../assets/fonts/roboto-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../assets/fonts/oswald-normal-cyrillic.woff2') format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
@font-face {
  font-family: 'Oswald';
  font-style: normal;
  font-weight: 200 700;
  font-display: swap;
  src: url('../assets/fonts/oswald-normal-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Monplesir';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('../assets/fonts/monplesir-script.ttf') format('truetype');
}

:root {
  /* Colour */
  --bg-0: #050806;
  --bg-1: #0a120c;
  --bg-2: #0f1a12;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-2: rgba(255, 255, 255, 0.075);
  --panel-solid: rgba(9, 18, 12, 0.82);
  --border: rgba(122, 230, 90, 0.18);
  --border-strong: rgba(122, 230, 90, 0.34);
  --brand: #31a900;
  --brand-2: #5dd13a;
  --brand-3: #7ee65a;
  --brand-deep: #1d6b00;
  --alert: #ff3b30;
  --alert-2: #e72621;
  --gold: #f3b131;
  --tomato: #e7422c;
  --cucumber: #4caf50;
  --tulip: #ff4d8d;
  --soil: #5b3a29;
  --text: #eaf5e6;
  --text-dim: #9fb3a3;
  --text-mute: #6b7f70;
  --glow-brand: 0 0 44px rgba(49, 169, 0, 0.28);
  --glow-alert: 0 0 44px rgba(255, 59, 48, 0.3);

  /* Neon design language (2026-11 third overhaul). Magenta-led (see neon-text.mp4);
     green is the brand secondary (gauge/progress, green CTAs). The whole scheme can be
     flipped by editing --neon-primary. */
  --neon-magenta: #ff2bd6;
  --neon-magenta-2: #ff8ae8;
  --neon-green: #76ff03;
  --neon-green-2: #b6ff4d;
  --neon-red: #ff2d2d;
  --neon-gold: #ffcf40;
  --glow-neon-magenta: 0 0 6px rgba(255, 43, 214, 0.9), 0 0 18px rgba(255, 43, 214, 0.6), 0 0 46px rgba(255, 43, 214, 0.35);
  --glow-neon-green: 0 0 6px rgba(118, 255, 3, 0.85), 0 0 18px rgba(118, 255, 3, 0.55), 0 0 44px rgba(118, 255, 3, 0.3);
  --glow-neon-red: 0 0 6px rgba(255, 45, 45, 0.85), 0 0 18px rgba(255, 45, 45, 0.55), 0 0 44px rgba(255, 45, 45, 0.3);
  --text-neon: #fff0fb;
  /* Single switch for the whole neon scheme (titles/accents/bubble border). */
  --neon-primary: var(--neon-magenta);
  /* Question speech bubble border + tail (magenta per the resolved user answer).
     The fill is deliberately OPAQUE and uniform: the tail is a rotated square whose fill
     overlaps the bubble, erasing the border segment at the mouth so the interior reads as
     one space. Any translucency (alpha stacking) or non-uniform interior (inset glow) would
     be visible as a patch where the tail overlaps — see AGENTS.md. */
  --question-bubble-edge: var(--neon-magenta);
  --question-bubble-fill: #09120c;

  /* Type */
  --font-body: 'Roboto', 'Helvetica Neue', Arial, sans-serif;
  --font-display: 'Oswald', 'Roboto', sans-serif;
  --font-script: 'Monplesir', cursive;

  /* Motion */
  --dur-fast: 180ms;
  --dur-base: 320ms;
  --dur-enter: 620ms;
  --dur-exit: 460ms;
  --dur-transition: 760ms;
  --stagger: 90ms;
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.4, 0.14, 0.3, 1);
  --ease-back: cubic-bezier(0.2, 0.9, 0.25, 1.25);

  /* Space / shape */
  --radius: 18px;
  --radius-lg: 26px;
  --gutter: clamp(16px, 4vw, 32px);
  --hud-h: 102px;
  --hud-item-h: 40px;
}
