html, body { margin: 0; height: 100%; background: #090a0b; color: #c9ccd3; font: 13px/1.4 system-ui, sans-serif; overflow: hidden; }
#bevy { display: block; width: 100%; height: 100%; outline: none; }
/* The help line sits on a dark rounded backing at 70% so it reads over bright scenery too.
   The element itself fades in to full opacity; only the backing is translucent. */
#help { position: fixed; left: 8px; bottom: 14px; opacity: 0; transition: opacity .6s; pointer-events: none;
  padding: 4px 10px; border-radius: 8px; background: rgba(9, 10, 11, 0.7); color: #c9ccd3; }
#help.on { opacity: 1; }
#help b { color: #fff; font-weight: 600; }
/* Perf readout (` toggles): backend, fps, frame time, mesh entities, visible after culling. */
#stats { position: fixed; right: 10px; top: 8px; color: #d5ff40; opacity: .8; pointer-events: none;
  font: 11px/1.4 ui-monospace, "SF Mono", Menlo, monospace; text-align: right; white-space: pre; }

/* Loading overlay — cipehr.dev sigil style: dot-matrix cells, acid lime on near-black. */
/* Walk progress grid (walkbar.ts): a thin pixel bar under the help line while walk data
   loads; gone once walking is ready. It sets no display, so the hidden attribute hides it. */
#walkbar { position: fixed; left: 0; right: 0; bottom: 0; width: 100%; height: 14px; z-index: 5;
  pointer-events: none; }
/* Walk status at the end of the help line: the pixel figure, then the label in the loader's
   type. Clickable only when walking is ready (#help itself ignores the pointer). */
#walkmode { white-space: nowrap; }
#walkmode.ready { pointer-events: auto; cursor: pointer; }
#walkfig { width: 14px; height: 16px; vertical-align: -3px; margin: 0 6px 0 2px; }
#walklabel { font: 11px ui-monospace, "SF Mono", Menlo, monospace; color: #d5ff40; }
#walklabel .dim { opacity: .55; }
#walklabel .accent { opacity: 1; }
#loader { position: fixed; inset: 0; pointer-events: none; z-index: 10; }
#loader canvas { width: 100%; height: 100%; display: block; }
#status { position: absolute; left: 0; right: 0; text-align: center; color: #d5ff40;
  font: 11px/1.2 ui-monospace, "SF Mono", Menlo, monospace; letter-spacing: .18em; text-transform: uppercase; }
#status .dim { color: #d5ff40; opacity: .4; }
/* Why the page can't run (no WebGPU): plain readable prose under the status line. */
#note { margin: 1.6em auto 0; padding: 0 16px; max-width: 34em; color: #c9ccd3;
  font: 13px/1.55 system-ui, sans-serif; letter-spacing: normal; text-transform: none; }

/* "Still alive" cue: a CSS opacity animation, which browsers run on the compositor
   thread — it keeps blinking while the wasm blocks the main thread (the parse frame),
   when the canvas can't redraw. */
#status .cursor { display: inline-block; width: .6em; height: 1em; margin-left: .4em; vertical-align: -.15em;
  background: #d5ff40; animation: blink .9s steps(1) infinite; will-change: opacity; }
@keyframes blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { #status .cursor { animation: none; } }
