  :root {
    /* layout: one full-screen TUI frame on a character grid. The world sits above (tokens panel, the name as a
       2×4 dot matrix sampled out of noise, runtime panel), the console below */
    --bg: #05080f;
    --faint: #0c1324;
    --line: #1b2540;
    --dim: #2e3f70;
    --her: #6b8cff;
    --bright: #e8eeff;
    --ink: #8b97ae;
    --accent: #4d6bfe;
    --warn: #ff9466;
    --scan: rgba(0, 0, 0, .2);
    --vignette: rgba(0, 0, 0, .5);
    --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
    --display: "Noto Sans", "Helvetica Neue", Arial, sans-serif;
    color-scheme: dark;
  }
  html { box-sizing: border-box; height: 100%; background: var(--bg); }
  body {
    box-sizing: border-box; margin: 0; height: 100%; height: 100dvh;
    display: grid; grid-template-rows: minmax(0, 1fr) auto;
    padding-top: env(safe-area-inset-top, 0px);
    padding-bottom: env(safe-area-inset-bottom, 0px);
    background: var(--bg); color: var(--ink); font-family: var(--mono); overflow: hidden;
  }
  .screen {
    box-sizing: border-box; min-height: 0;
    padding-left: max(16px, env(safe-area-inset-left, 0px));
    padding-right: max(16px, env(safe-area-inset-right, 0px));
    padding-top: 16px; padding-bottom: 6px;
  }
  .stage { position: relative; height: 100%; cursor: crosshair; touch-action: none; user-select: none; -webkit-user-select: none; }
  .stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
  #bloom { filter: blur(6px) brightness(1.7); mix-blend-mode: screen; opacity: .6; pointer-events: none; }
  .crt {
    position: absolute; inset: 0; pointer-events: none;
    background:
      repeating-linear-gradient(to bottom, transparent 0 2px, var(--scan) 2px 3px),
      radial-gradient(ellipse at center, transparent 58%, var(--vignette) 100%);
  }
  /* the real text field: invisible, the canvas draws what it holds */
  #cmd {
    position: absolute; left: 0; top: 0; margin: 0; padding: 0; border: 0; border-radius: 0;
    background: transparent; color: transparent; caret-color: transparent;
    font: 16px var(--mono); outline: none; cursor: text; user-select: text; -webkit-user-select: text;
  }
  #cmd::selection { background: transparent; }
  .sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nojs { display: grid; place-items: center; height: 100%; margin: 0; font: 900 clamp(48px, 18vw, 160px)/1 var(--display); color: var(--her); }

  /* A quiet, readable footer outside the canvas and its pointer effects. */
  .site-footer {
    display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
    column-gap: 12px; row-gap: 0;
    padding: 0 max(16px, env(safe-area-inset-right, 0px)) 5px max(16px, env(safe-area-inset-left, 0px));
    color: #4b566e; font-size: 10px; line-height: 18px; text-align: center;
    user-select: none; -webkit-user-select: none;
  }
  .filing-link {
    display: inline-flex; align-items: center; justify-content: center;
    min-height: 18px; padding-inline: 2px;
    color: inherit; text-decoration: none; text-underline-offset: 3px;
  }
  .filing-link:hover, .filing-link:focus-visible {
    color: var(--ink); text-decoration: underline;
  }
  .filing-link:focus-visible { outline: 1px solid var(--ink); outline-offset: 2px; border-radius: 2px; }

