/* Shared by every page: fonts, reset, a few primitives. Each game page brings its own palette. */

/* Bundled variable fonts from the apps (SIL OFL). */
@font-face {
  font-family: 'Fredoka';
  src: url('../fonts/fredoka.ttf') format('truetype');
  font-weight: 300 700;
  font-display: swap;
}
@font-face {
  font-family: 'Nunito';
  src: url('../fonts/nunito.ttf') format('truetype');
  font-weight: 200 1000;
  font-display: swap;
}
/* Flag emoji for systems that don't draw them (Windows). Twemoji flags, CC BY 4.0; only flag code points. */
@font-face {
  font-family: 'Twemoji Country Flags';
  src: url('../fonts/TwemojiCountryFlags.woff2') format('woff2');
  unicode-range: U+1F1E6-1F1FF, U+1F3F4, U+E0062-E0063, U+E0065, U+E0067, U+E006C, U+E006E, U+E0073-E0074, U+E0077, U+E007F;
  font-display: swap;
}

:root {
  --font-display: 'Twemoji Country Flags', 'Fredoka', ui-rounded, system-ui, sans-serif;
  --font-body: 'Twemoji Country Flags', 'Nunito', ui-rounded, system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font-body); font-weight: 600; line-height: 1.45; }
h1, h2, h3, p { margin: 0; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; }
[hidden] { display: none !important; }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}
