/* World Cricket 3D - base layer. Owner: foundation, then the integrator.
   Tokens, reset and the stage/UI stacking only. Everything the interface
   draws lives in ui.css (system E, UI direction C). No gradients on purple, no glass blur. */
:root {
  --ink: #0e1114;          /* graphite: the page behind the canvas (ui.css calls it --g0) */
  --paper: #ffffff;
  --turf-dark: #1d4423;
  font-family: "Archivo SC", "Arial Narrow", Arial, sans-serif;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--ink); color: var(--paper); overflow: hidden; }
/* no pull-to-refresh or rubber band under a game that is played with thumbs */
html, body { overscroll-behavior: none; }
body { -webkit-font-smoothing: antialiased; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
button { font: inherit; }
/* The game root. It is what goes full screen (canvas and HUD together, src/ui/fullscreen.js).
   Dynamic viewport height where there is one, so nothing sits under a phone's browser bars. */
#app { position: fixed; inset: 0; }
@supports (height: 100dvh) { #app { bottom: auto; height: 100dvh; } }
#stage { position: absolute; inset: 0; width: 100%; height: 100%; display: block; background: var(--turf-dark); touch-action: none; }
/* The UI root covers the stage but lets clicks through; panels inside opt back in. */
#ui { position: absolute; inset: 0; pointer-events: none; }
#ui > * { pointer-events: auto; }
.visually-hidden { position: absolute; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.noscript { padding: 16px; }
[hidden] { display: none !important; }
