@font-face { font-family: Oxanium; src: url(assets/fonts/Oxanium-wght.woff2) format('woff2'); font-weight: 200 800; font-display: swap; }
:root { color-scheme: dark; --ink: #e8f6ff; --cyan: #5fd8ff; --bg: #02050a; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--bg); overflow: hidden; touch-action: none; overscroll-behavior: none; }
body { font-family: Oxanium, system-ui, sans-serif; color: var(--ink); -webkit-user-select: none; user-select: none; }
canvas { position: fixed; inset: 0; width: 100vw; height: 100vh; height: 100dvh; display: block; }
#hud { pointer-events: auto; }
#pop { pointer-events: none; }
/* title screen: darken the bottom of the frame so the controls/credits footer reads over the bright globe */
#footfade { position: fixed; left: 0; right: 0; bottom: 0; height: 26vh; pointer-events: none; opacity: 0; transition: opacity .6s;
  background: linear-gradient(to top, rgba(2,5,10,.88) 0%, rgba(2,5,10,.6) 45%, rgba(2,5,10,0) 100%); }
#footfade.on { opacity: 1; }
/* hosting credit: a real link above the HUD canvas, so taps open the site instead of the menu */
#hostlink { position: fixed; left: 50%; bottom: max(6px, env(safe-area-inset-bottom)); transform: translateX(-50%); z-index: 5;
  padding: 8px 14px; font: 500 10px/1 Oxanium, sans-serif; letter-spacing: .28em; text-transform: uppercase; white-space: nowrap;
  color: rgba(232,246,255,.72); text-decoration: none; opacity: 0; pointer-events: none; transition: opacity .6s, color .2s; }
#hostlink.on { opacity: 1; pointer-events: auto; }
#hostlink:hover, #hostlink:focus-visible { color: #6fd2ff; text-decoration: underline; text-underline-offset: 4px; }
#boot { position: fixed; inset: 0; display: grid; place-content: center; gap: 18px; text-align: center; background: radial-gradient(ellipse at 50% 60%, #0b2233 0%, #02050a 70%); transition: opacity .8s ease; z-index: 5; }
#boot.done { opacity: 0; pointer-events: none; }
.boot-mark { font-weight: 300; letter-spacing: .5em; font-size: clamp(14px, 2.4vw, 26px); padding-left: .5em; }
.boot-bar { width: min(320px, 60vw); height: 2px; background: #0e2a3a; margin: 0 auto; overflow: hidden; }
.boot-bar i { display: block; height: 100%; width: 0; background: var(--cyan); box-shadow: 0 0 12px var(--cyan); transition: width .3s ease; }
.boot-note { font-size: 11px; letter-spacing: .35em; color: #6f9fb5; text-transform: uppercase; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
