@font-face { font-family: 'Manrope'; font-weight: 400; font-display: swap; src: url('../fonts/manrope-400.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 600; font-display: swap; src: url('../fonts/manrope-600.woff2') format('woff2'); }
@font-face { font-family: 'Manrope'; font-weight: 800; font-display: swap; src: url('../fonts/manrope-800.woff2') format('woff2'); }

/* Light, warm "morning tea" palette: ivory paper, cocoa ink instead of black, honey + mint
   feedback, a coral call-to-action and soft warm shadows. Every text pair is WCAG AA. */
:root {
  color-scheme: light;
  --bg: #fffaf4;
  --surface: #ffffff;
  --surface-2: #f7f0e6;
  --surface-3: #ede4d7;
  --ink: #2e2722;
  --ink-2: #5e554b;
  --ink-3: #766c60;
  --line: #efe7dc;
  --tile: #ffffff;
  --tile-edge: #e7ddce;
  --tile-ink: #2e2722;
  --good: #29a365;
  --good-soft: #dcf5e6;
  --near: #f6c344;
  --near-soft: #fdf1cc;
  --bad: #e5484d;
  --gold: #f2a91e;
  --scrim: rgba(46, 39, 34, .36);
  --shadow-1: 0 1px 2px rgba(110, 72, 36, .06), 0 4px 12px -6px rgba(110, 72, 36, .18);
  --shadow-2: 0 2px 4px rgba(110, 72, 36, .05), 0 16px 34px -18px rgba(110, 72, 36, .36);

  /* The shell's own colour (calls to action, focus) — coral, readable with white text. */
  --brand: #f1604c;
  --on-brand: #ffffff;

  /* One accent per game; the shell sets --accent to the active one. */
  --c-selgee: #e8742a;
  --c-darkhan: #8a6cff;
  --c-evluuleg: #16a079;
  --c-talbai: #3d8bf2;
  --c-helhee: #f0558a;
  --accent: var(--brand);
  --accent-ink: var(--on-accent);
  --on-accent: #ffffff;
  /* Accent as small text = accent mixed toward ink by this much (AA on light paper);
     soft accent backgrounds = this much accent over the surface. */
  --text-mix: 66%;
  --tint-mix: 15%;

  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-pill: 999px;

  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);

  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bottom: env(safe-area-inset-bottom, 0px);
  --gutter: 16px;
  --tap: 44px;

  --font: 'Manrope', system-ui, -apple-system, 'Segoe UI', Roboto, 'Noto Sans', sans-serif;
}

:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #17161b;
  --surface: #201f25;
  --surface-2: #29282f;
  --surface-3: #34323a;
  --ink: #f6f2ec;
  --ink-2: #cdc6bc;
  --ink-3: #9a9388;
  --line: #34323a;
  --tile: #2a2930;
  --tile-edge: #3e3c45;
  --tile-ink: #f6f2ec;
  --good: #35b871;
  --good-soft: #173a28;
  --near: #f0bd45;
  --near-soft: #3d3116;
  --bad: #ef6262;
  --gold: #ffc53d;
  --scrim: rgba(0, 0, 0, .55);
  --shadow-1: 0 1px 0 rgba(0, 0, 0, .25), 0 2px 8px -2px rgba(0, 0, 0, .45);
  --shadow-2: 0 2px 0 rgba(0, 0, 0, .25), 0 18px 36px -18px rgba(0, 0, 0, .7);
  --c-selgee: #ff9a52;
  --c-darkhan: #a48fff;
  --c-evluuleg: #33c79a;
  --c-talbai: #66a3ff;
  --c-helhee: #ff79a3;
  --on-accent: #17161b; /* white fails AA on the lighter dark-mode accents */
  --text-mix: 100%;
  --tint-mix: 22%;
}
