:root { color-scheme: dark; font-family: ui-monospace, 'Cascadia Mono', 'DejaVu Sans Mono', monospace; color: #dbe8f2; background: #0b1020; }
* { box-sizing: border-box; }
html, body { margin: 0; width: 100%; height: 100%; overflow: hidden; }
.station { position: fixed; inset: 0; }
header, footer { align-items: center; gap: 16px; }
header { display: grid; grid-template-columns: 1fr auto 1fr; }
footer { display: flex; justify-content: flex-end; }
header { position: absolute; z-index: 2; top: max(12px, env(safe-area-inset-top)); left: 16px; right: 16px; pointer-events: none; }
header a { pointer-events: auto; justify-self: start; }
header h1 { grid-column: 3; grid-row: 1; justify-self: end; max-width: 100%; text-align: right; opacity: .6; }
header h1, #zone-name { font-size: 20px; font-weight: bold; letter-spacing: 2px; }
#zone-name { grid-column: 2; grid-row: 1; justify-self: center; margin: 0; color: #dbe8f2; text-align: center; }
a { color: #8cacc0; text-decoration: none; font-size: 12px; }
h1 { margin: 0; }

h1 small { font-size: 10px; color: #8cacc0; letter-spacing: 2px; }
button { font: inherit; font-size: 12px; font-weight: bold; letter-spacing: 1px; color: #b9d5e5; background: #142438; border: 2px solid #38536c; padding: 10px 12px; cursor: pointer; box-shadow: 3px 3px 0 #050a14; }
button:hover:not(:disabled) { background: #213b50; border-color: #7de1c3; }
button:focus-visible, a:focus-visible, canvas:focus-visible { outline: 2px solid #ffe09c; outline-offset: 4px; }
button:disabled { opacity: .5; cursor: wait; }
.viewport { position: absolute; inset: 0; background: #080e1a; }
canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; touch-action: none; }
canvas:focus-visible { outline: none; }
.overlay { position: absolute; inset: 0; display: grid; place-items: center; background: #080e1ac9; padding: 12px; }
.overlay[hidden] { display: none; }
.panel { max-width: 440px; text-align: center; padding: 24px; border: 2px solid #54718a; background: #101d30; box-shadow: 5px 5px 0 #050a14; }
.eyebrow { font-size: 10px; letter-spacing: 2px; color: #7de1c3; }
h2 { font-size: clamp(18px, 4vw, 30px); letter-spacing: 4px; margin: 16px 0; }
.panel p:not(.eyebrow) { font-size: 12px; line-height: 1.8; color: #a6bece; }
#start { background: #7de1c3; color: #102730; border-color: #b0ffe3; margin-top: 12px; min-width: 150px; }
footer { position: absolute; bottom: max(12px, env(safe-area-inset-bottom)); left: 16px; right: 16px; pointer-events: none; font-size: 12px; letter-spacing: .5px; }
footer p { margin: 0; line-height: 2; }
.stats { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 4px 24px; color: #8cacc0; }
.stats > span { white-space: nowrap; }
#power-status { position: fixed; top: 3.5rem; left: 16px; right: 16px; pointer-events: none; font-size: 12px; color: #7de1c3; }
output { color: #ffe09c; font: inherit; font-variant-numeric: tabular-nums; margin-left: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
@media (max-width: 650px) { header { gap: 8px; grid-template-columns: repeat(3, minmax(0, 1fr)); } header h1, #zone-name { font-size: 16px; letter-spacing: 1px; overflow-wrap: anywhere; } header a { font-size: 10px; } button { padding: 8px; font-size: 10px; } .panel { padding: 12px; } .panel h2 { margin: 8px 0; } .eyebrow { display: none; } .stats { gap: 4px 16px; } }
