*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; background: var(--bg); color: var(--t-80); overflow: hidden; overscroll-behavior: none; }
body { font: 400 var(--fs-body)/1.55 var(--f-sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }
::selection { background: var(--cream); color: #000; }
:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: fixed; left: 8px; top: -40px; z-index: 999; background: var(--cream); color: #000; padding: 6px 10px; font: 500 12px var(--f-mono); }
.skip:focus { top: 8px; }
.muted { color: var(--t-40); }
.lime { color: var(--lime); }

#app { position: fixed; inset: 0; height: 100dvh; }
#gl { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: var(--z-canvas); display: block; }
#gl-hit { position: fixed; inset: 0; z-index: 2; touch-action: none; cursor: grab; }
#app.is-dragging #gl-hit { cursor: grabbing; }
#grain { position: fixed; inset: 0; width: 100vw; height: 100dvh; z-index: var(--z-grain); pointer-events: none; mix-blend-mode: screen; image-rendering: pixelated; }
#flash { position: fixed; inset: 0; background: var(--cream); opacity: 0; pointer-events: none; z-index: var(--z-flash); }

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