:root {
  --bg: #0b0b0c;
  --ink: #f2eee6;
  --muted: #6f6b64;
  --faint: #4a4743;
  --mono: ui-monospace, "SF Mono", "JetBrains Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

* { box-sizing: border-box; margin: 0; }

html, body {
  height: 100%;
  background: var(--bg);
  color: var(--muted);
  font-family: var(--mono);
  overflow: hidden;
}

canvas {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  display: block;
}

header {
  position: fixed;
  top: 12px;
  left: 10px;
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: rgba(11, 11, 12, 0.8);
  padding: 2px 6px;
  border-radius: 4px;
}

footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 0 16px max(20px, env(safe-area-inset-bottom));
  padding-top: 36px;
  text-align: center;
  pointer-events: none;
  background: linear-gradient(to bottom, transparent, var(--bg) 45%);
}

pre {
  font-family: inherit;
  white-space: pre;
  line-height: 1.6;
}

#bar { font-size: 13px; color: var(--ink); }
#stats { font-size: 11px; color: var(--muted); }

@media (max-width: 560px) {
  #bar { font-size: 12px; }
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.noscript {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  color: var(--ink);
}
