/* /screens: the box's own HUD designs, drawn by jarvis_web.py frame by frame. */
@font-face { font-family: "B612"; src: url(/fonts/b612.otf) format("opentype"); font-weight: 400; font-display: swap; }
@font-face { font-family: "B612"; src: url(/fonts/b612-bold.otf) format("opentype"); font-weight: 700; font-display: swap; }
:root { --cyan: 56 209 255; --ice: 209 245 255; --dim: 64 148 194; color-scheme: dark; }
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: #01040a; color: rgb(var(--ice)); font: 400 13px/1.3 "B612", "Segoe UI", system-ui, sans-serif;
       display: flex; flex-direction: column; -webkit-font-smoothing: antialiased; }
header { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 22px; padding: 12px 16px;
         border-bottom: 1px solid rgb(var(--cyan) / .28); }
.brand { font-weight: 700; font-size: 20px; letter-spacing: 5px; color: rgb(var(--cyan)); text-decoration: none;
         text-shadow: 0 0 12px rgb(var(--cyan) / .3); }
.brand span { font-size: 11px; letter-spacing: 2.5px; color: rgb(var(--dim)); margin-left: 12px; }
nav { display: flex; flex-wrap: wrap; gap: 4px; }
nav a, nav button, .opts button, .opts select {
  font: 700 12px "B612", system-ui, sans-serif; letter-spacing: 1.5px; color: rgb(var(--dim)); background: none;
  border: 1px solid rgb(var(--cyan) / .22); padding: 6px 10px; cursor: pointer; text-decoration: none; }
nav a:hover, nav button:hover, .opts button:hover, nav a:focus-visible, nav button:focus-visible {
  color: rgb(var(--ice)); border-color: rgb(var(--cyan) / .6); outline: none; }
nav button.on { color: #01040a; background: rgb(var(--cyan)); border-color: rgb(var(--cyan)); }
.opts { display: flex; gap: 6px; margin-left: auto; }
.opts select { background: #01040a; }
main { flex: 1; min-height: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 12px 16px; }
#frame { position: relative; max-width: 100%; max-height: 100%; aspect-ratio: 16 / 9; width: min(100%, calc((100vh - 230px) * 16 / 9));
         background: #000; outline: none; border: 1px solid rgb(var(--cyan) / .18); }
#frame:focus { border-color: rgb(var(--cyan) / .6); }
#frame.r43 { aspect-ratio: 4 / 3; width: min(100%, calc((100vh - 230px) * 4 / 3)); }
#img { display: block; width: 100%; height: 100%; object-fit: contain; pointer-events: none;
       user-select: none; -webkit-user-select: none; -webkit-user-drag: none; }
#frame { touch-action: none; user-select: none; -webkit-user-select: none; cursor: grab; }
#frame:active { cursor: grabbing; }
#msg { position: absolute; inset: 0; display: grid; place-items: center; letter-spacing: 3px; color: rgb(var(--dim)); pointer-events: none; }
#msg:empty { display: none; }
#hint { margin: 10px 0 0; max-width: 980px; text-align: center; color: rgb(var(--dim)); }
#hint b { color: rgb(var(--cyan)); }
:fullscreen #frame, #frame:fullscreen { width: 100vw; height: 100vh; max-height: none; border: 0; }
@media (max-width: 700px) { .opts { margin-left: 0; } .brand span { display: none; } }
#line { display: flex; align-items: center; gap: 8px; width: min(100%, 980px); margin-top: 10px; }
#line span { font: 700 20px monospace; color: rgb(var(--cyan)); }
#line input { flex: 1; min-width: 0; background: rgb(var(--cyan) / .05); border: 1px solid rgb(var(--cyan) / .25); color: rgb(var(--ice));
              font: 400 15px "JetBrains Mono", Consolas, monospace; padding: 8px 10px; outline: none; }
#line input:focus { border-color: rgb(var(--cyan) / .7); }
#line button { font: 700 12px "B612", system-ui, sans-serif; letter-spacing: 1.5px; color: rgb(var(--dim)); background: none;
               border: 1px solid rgb(var(--cyan) / .22); padding: 8px 12px; cursor: pointer; }
#line button:hover { color: rgb(var(--ice)); border-color: rgb(var(--cyan) / .6); }
