/* ==========================================================================
   icebreaker.games — the shared look: colours, fonts and basics.
   Every page and every game loads this first, so the whole site feels like
   one family. Change a colour here and it changes everywhere.
   ========================================================================== */

/* Fonts are part of the site (in shared/fonts), so nothing loads from other
   companies' servers. */
@font-face {
  font-family: 'Bebas Neue';
  src: url('fonts/bebas-neue.woff2') format('woff2');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: 'Montserrat';
  src: url('fonts/montserrat.woff2') format('woff2');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --accent: #ffc928;
  --brand-blue: #1e7bff;
  --ink: #f4f6ff;
  --ink-dim: #a9b1d6;
  --bg: #050a1f;
  --panel: #0f1630;
  --line: rgba(150, 170, 255, 0.22);
  --good: #22c55e;
  --bad: #ef4444;
  --font-ui: 'Montserrat', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-display: 'Bebas Neue', 'Impact', 'Arial Narrow Bold', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { font-family: var(--font-ui); color: var(--ink); background: var(--bg); }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Respect "reduce motion": keep state changes, drop the movement. */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    animation-delay: 0ms !important;
    transition-duration: 0.01ms !important;
  }
}
