/* Colour tokens, Heebo, and the page reset shared by every game. Fonts resolve relative to this file. */

@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../assets/fonts/heebo-hebrew.woff2') format('woff2');
  unicode-range: U+0307-0308, U+0590-05FF, U+200C-2010, U+20AA, U+25CC, U+FB1D-FB4F;
}
@font-face {
  font-family: 'Heebo';
  font-style: normal;
  font-weight: 500 800;
  font-display: swap;
  src: url('../assets/fonts/heebo-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;
}

:root {
  color-scheme: light;
  padding-top: env(safe-area-inset-top, 0px);
  padding-bottom: env(safe-area-inset-bottom, 0px);
}
body { margin: 0; }
img { max-width: 100%; }
[hidden] { display: none !important; }

:root {
  --bg: #fff8f8; --fg: #201a1b; --muted: #75606a;
  --panel: #ffffff; --panel-2: #f8ebec; --line: #e4d7d9;
  --accent: #8d495f; --accent-soft: #e594ac; --accent-ink: #ffffff;
  --good: #2b7a4b; --good-soft: #d9f2e3;
  --mid: #9a5f05; --mid-soft: #fff0c2;
  --bad: #b3261e; --bad-soft: #ffdad6;
  /* Level markers on the canvas and chip edges: a red and an amber that cannot be mistaken for each other. */
  --good-signal: #1f9e55; --mid-signal: #f5a000; --bad-signal: #e3262d;
  --heart: #e5484d; --heart-shine: #ffb3b8; --heart-line: #5c1a2b; --heart-empty: #f1d7de;
  --field-top: #ffe3ec; --field-bottom: #fff7f8; --floor: #f1d7de; --shade: #201a1b;
  --board: #fffafb; --board-line: #f1dde3; --grid: #efd6dd;
  --body: #ff9fbb; --body-dark: #e8608a; --body-shine: #ffe1ea;
  --font-display: 'Heebo', system-ui, sans-serif;
  --font-body: 'Heebo', system-ui, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #1a0c13; --fg: #f7e6ec; --muted: #c9adb8;
    --panel: #2a1520; --panel-2: #3d2331; --line: #4a2d3b;
    --accent: #ffb1c7; --accent-soft: #703248; --accent-ink: #541d32;
    --good: #7fd69c; --good-soft: #15381f;
    --mid: #f5c26b; --mid-soft: #3d2a0c;
    --bad: #ffb4ab; --bad-soft: #4d1a16;
    --good-signal: #4fd27f; --mid-signal: #ffb21a; --bad-signal: #ff4b4b;
    --heart: #ff5d63; --heart-shine: #ffc2c6; --heart-line: #ffd9e2; --heart-empty: #4a2d3b;
    --field-top: #2a1520; --field-bottom: #1a0c13; --floor: #3d2331; --shade: #0b0407;
    --board: #24111b; --board-line: #4a2d3b; --grid: #3a2030;
    --body: #ff8fb0; --body-dark: #c94a74; --body-shine: #ffd1df;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #1a0c13; --fg: #f7e6ec; --muted: #c9adb8;
  --panel: #2a1520; --panel-2: #3d2331; --line: #4a2d3b;
  --accent: #ffb1c7; --accent-soft: #703248; --accent-ink: #541d32;
  --good: #7fd69c; --good-soft: #15381f;
  --mid: #f5c26b; --mid-soft: #3d2a0c;
  --bad: #ffb4ab; --bad-soft: #4d1a16;
  --good-signal: #4fd27f; --mid-signal: #ffb21a; --bad-signal: #ff4b4b;
  --heart: #ff5d63; --heart-shine: #ffc2c6; --heart-line: #ffd9e2; --heart-empty: #4a2d3b;
  --field-top: #2a1520; --field-bottom: #1a0c13; --floor: #3d2331; --shade: #0b0407;
  --board: #24111b; --board-line: #4a2d3b; --grid: #3a2030;
  --body: #ff8fb0; --body-dark: #c94a74; --body-shine: #ffd1df;
  color-scheme: dark;
}

/* No pull-to-refresh: a swipe down in a game must never reload it. */
html, body { height: 100%; overscroll-behavior: none; }
body {
  background: var(--bg); color: var(--fg);
  font-family: var(--font-body); font-size: 15px; line-height: 1.4;
  overflow: hidden; -webkit-text-size-adjust: 100%;
  /* A drag across the field must not select the popup or ticker text under the finger. */
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none;
}
* { box-sizing: border-box; }
button { font: inherit; color: inherit; }
