:root { --bg:#070a07; --fg:#bfe8b4; --dim:#5e7a5e; --ok:#6cff8c; --warn:#ffcf6c; --off:#8a9a8a; --glow:0 0 6px rgba(120,255,140,.35); }
* { box-sizing:border-box }
html,body { margin:0; background:var(--bg); color:var(--fg); font:15px/1.55 "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace; text-shadow:var(--glow); }
body::after { content:""; position:fixed; inset:0; pointer-events:none; background:repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 1px, transparent 1px 3px); }
.term { max-width:72ch; margin:0 auto; padding:clamp(20px,6vh,64px) 20px 40px; }
.readout { margin:0; white-space:pre-wrap; word-break:break-word; }
.key { display:inline-block; width:9ch; color:var(--dim); }
.dim { color:var(--dim) } a { color:var(--fg); text-decoration:underline; text-underline-offset:3px }
.state.online { color:var(--ok) } .state.offline { color:var(--off) } .state.unreachable { color:var(--warn) } .state.loading { color:var(--dim) }
.stale { opacity:.45 }
.notice { color:var(--warn) }
.out { white-space:pre-wrap; margin-top:.4em } .out .err { color:var(--warn) }
.prompt { display:flex; align-items:center; margin-top:.4em }
.prompt label { white-space:pre }   /* keep the trailing space after "%" */
.prompt input { flex:0 0 auto; width:1ch; min-width:1ch; max-width:100%; background:transparent; border:0; outline:0; color:var(--fg); font:inherit; text-shadow:inherit; caret-color:transparent; padding:0 }
.prompt .mirror { position:absolute; visibility:hidden; white-space:pre; font:inherit; pointer-events:none }
.cursor { width:.6em; height:1.1em; background:var(--fg); margin-left:-.05em; animation:blink 1s steps(1) infinite }
.foot { margin-top:2em; font-size:.85em }
#spark { vertical-align:middle; color:var(--ok) }
@keyframes blink { 50% { opacity:0 } }
@media (max-width:480px) { html,body { font-size:14px } .key { width:8ch } #spark { width:200px } }
@media (prefers-reduced-motion: reduce) { body::after { display:none } .cursor { animation:none } html,body { text-shadow:none } }
