:root {
  color-scheme: dark;
  --paper: #080b0a;
  --surface: #0e1411;
  --ink: #e8f5eb;
  --muted: #b2c3b8;
  --line: #415349;
  --accent: #72fa64;
  --button-ink: #0b180c;
  font: 16px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    color-scheme: light;
    --paper: #f7f5ed; --surface: #fffdf6; --ink: #18231b;
    --muted: #48594c; --line: #87978b; --accent: #285d36; --button-ink: #fff;
  }
}
:root[data-theme="light"] {
  color-scheme: light;
  --paper: #f7f5ed; --surface: #fffdf6; --ink: #18231b;
  --muted: #48594c; --line: #87978b; --accent: #285d36; --button-ink: #fff;
}
* { box-sizing: border-box; }
body { margin: 0 auto; padding: 0 clamp(1rem, 4vw, 3rem) 3rem; max-width: 64rem; background: var(--paper); color: var(--ink); }
a { color: var(--accent); text-underline-offset: .24em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }
.skip { position: absolute; top: -10rem; background: var(--paper); padding: .5rem; }
.skip:focus { top: .5rem; }
.mast { min-height: 4rem; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid var(--line); font-size: .88rem; }
.brand { font-size: 1.15rem; font-weight: 750; text-decoration: none; }
main { padding-top: clamp(1.6rem, 4vw, 3rem); }
h1 { font-size: clamp(2.1rem, 5vw, 3.8rem); letter-spacing: -.075em; line-height: 1.05; margin: 0; }
.intro { max-width: 65ch; margin: .9rem 0 1.6rem; color: var(--muted); }
.console { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); border: 1px solid var(--line); background: var(--surface); }
figure { margin: 0; padding: clamp(.75rem, 2.5vw, 1.5rem); border-right: 1px solid var(--line); }
figcaption { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .8rem; font-size: .82rem; color: var(--muted); }
figcaption span:first-child { font-weight: 700; color: var(--ink); }
canvas { width: 100%; height: auto; aspect-ratio: 1; display: block; background: #000; image-rendering: pixelated; }
.panel { padding: clamp(1.2rem, 3vw, 2.2rem); align-self: center; }
label { display: block; margin-bottom: .35rem; font-weight: 700; }
select, button { font: inherit; color: var(--ink); background: var(--surface); border: 1px solid var(--line); min-height: 2.75rem; padding: .4rem .75rem; border-radius: 0; }
select { width: 100%; }
button:not(:disabled), select:not(:disabled) { cursor: pointer; }
button:not(:disabled):hover { border-color: var(--accent); }
.buttons { display: flex; gap: .5rem; flex-wrap: wrap; margin: .8rem 0 1.3rem; }
#play { flex: 1; background: var(--accent); color: var(--button-ink); font-weight: bold; }
button:disabled { opacity: .55; }
.telemetry { border-block: 1px solid var(--line); padding: .85rem 0; }
#status { margin: 0 0 .45rem; color: var(--accent); font-weight: 700; }
dl { margin: 0; }
dl div { display: flex; gap: 1rem; justify-content: space-between; }
dt, .detail { color: var(--muted); }
dd { margin: 0; text-align: right; }
.detail, .read { font-size: .86rem; }
.detail { margin: 1.2rem 0 .7rem; }
@media (max-width: 640px) {
  .console { grid-template-columns: 1fr; }
  figure { border-right: none; border-bottom: 1px solid var(--line); }
  .panel { padding: 1rem; }
}
