:root{color-scheme:dark;--bg:#10140f;--panel:#181f18;--panel2:#202a20;--ink:#d8e4d3;--soft:#9db69a;--muted:#718471;--edge:#344337;--amber:#d79a3b;--danger:#bb685d}
*{box-sizing:border-box}html{background:var(--bg)}body{margin:0;background:var(--bg);color:var(--ink);font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;-webkit-font-smoothing:antialiased}.app{max-width:640px;padding:20px 20px max(28px,env(safe-area-inset-bottom));margin:auto}.topline,.section-heading{display:flex;align-items:center;justify-content:space-between;gap:10px}.topline{padding-bottom:16px;border-bottom:1px solid var(--edge);font-size:11px;letter-spacing:.045em}.brand{font-weight:800;letter-spacing:.07em}.brand-symbol{color:var(--amber);font-size:14px}.version,.muted,.eyebrow,.number{color:var(--muted)}.intro{margin:28px 0 22px}.eyebrow{font-size:10px;letter-spacing:.16em;margin:0 0 12px;color:var(--amber)}h1{font-weight:600;line-height:1.15;letter-spacing:-.07em;font-size:clamp(30px,7vw,45px);margin:0}h1 em{font-style:normal;color:var(--soft)}.subhead{max-width:480px;font-size:12px;line-height:1.8;color:var(--soft);margin:14px 0 0}.viewer-shell{width:100%;display:flex;justify-content:center}.viewer{aspect-ratio:4/5;background:#0c0d0c;width:100%;max-height:65svh;position:relative;overflow:hidden;border:1px solid #3c4b3d;box-shadow:0 15px 38px #0007}#render{display:block;width:100%;height:100%;object-fit:contain;background:#080b08}.view-top,.view-bottom{z-index:2;position:absolute;left:12px;right:12px;display:flex;align-items:center;justify-content:space-between;color:#e0e8df;font-size:10px;letter-spacing:.09em;text-shadow:0 1px 3px #000}.view-top{top:12px}.view-bottom{bottom:12px}.view-top strong{color:#e15a4a}.empty{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:10px;background:radial-gradient(ellipse,#1f291e,#0b0d0b);color:var(--soft);text-align:center;padding:25px;z-index:1}.empty .reticle{font-size:54px;font-weight:200;color:var(--amber);line-height:1}.empty strong{font-size:12px}.empty small{font-size:11px;color:var(--muted);line-height:1.6}#video{position:absolute;width:1px;height:1px;opacity:0;pointer-events:none}.focus-marker{position:absolute;z-index:2;width:54px;height:54px;border:1px solid rgba(255,200,108,.9);transform:translate(-50%,-50%);box-shadow:0 0 0 1px #0006;pointer-events:none;display:none}.focus-marker:before,.focus-marker:after{content:"";position:absolute;background:#efbb77}.focus-marker:before{left:calc(50% - 5px);top:50%;width:10px;height:1px}.focus-marker:after{left:50%;top:calc(50% - 5px);width:1px;height:10px}.camera-bar{display:flex;gap:8px;align-items:center;margin:12px 0 26px}.camera-bar button,.capture-actions button,.capture-actions a{font-family:inherit;cursor:pointer}.soft-button{flex:1;border:1px solid var(--edge);background:var(--panel);color:var(--ink);border-radius:4px;min-height:44px;padding:8px;font-size:11px}.soft-button:hover,.icon-button:hover{background:var(--panel2)}.icon-button{border:1px solid var(--edge);min-width:42px;height:44px;border-radius:4px;background:var(--panel);color:var(--soft);font-size:21px}.shutter{margin-left:5px;width:57px;height:57px;flex:none;border:2px solid var(--soft);border-radius:50%;background:transparent;display:grid;place-items:center;padding:5px}.shutter span{display:block;background:#dee9d9;width:100%;height:100%;border-radius:50%}.shutter:active span{background:var(--amber)}button:disabled{opacity:.3;cursor:not-allowed}.section-heading{font-size:11px;font-weight:700;letter-spacing:.08em;margin:0 0 12px}.mode-group{display:grid;grid-template-columns:repeat(3,1fr);gap:5px}.mode{font:inherit;font-size:10px;letter-spacing:.015em;min-height:54px;border:1px solid var(--edge);background:var(--panel);color:#9ab194;text-align:center;border-radius:3px;cursor:pointer}.mode span{display:block;font-size:9px;color:var(--muted);margin-bottom:4px}.mode.is-active{border-color:var(--amber);color:#f0dcb5;background:#2c291d}.mode.is-active span{color:var(--amber)}.mode-description{font-size:11px;color:var(--soft);line-height:1.8;min-height:42px;margin:13px 0 20px}.slider-line{display:flex;justify-content:space-between;font-size:11px;gap:10px}.slider-line output{color:var(--amber)}input[type=range]{width:100%;accent-color:var(--amber);margin:12px 0 20px}.toggle-line{display:flex;align-items:center;justify-content:space-between;border-top:1px solid var(--edge);padding:14px 0;gap:20px;font-size:11px}.toggle-line small{display:block;font-size:10px;color:var(--muted);margin-top:7px;line-height:1.5}input[type=checkbox]{accent-color:var(--amber);width:18px;height:18px}.notice{background:#1d271d;border-left:2px solid var(--amber);color:var(--soft);font-size:11px;line-height:1.7;padding:14px 14px;margin:6px 0 24px}.notice.error{border-left-color:var(--danger);color:#edaaa0}.capture-panel{margin:28px 0 18px;border-top:1px solid var(--edge);padding-top:20px}.capture-panel[hidden]{display:none}.capture-panel img{display:block;width:100%;height:auto;max-height:450px;object-fit:contain;background:#0b0b0b}.capture-actions{display:flex;flex-wrap:wrap;gap:10px;margin:12px 0}.capture-actions a,.capture-actions button{border-radius:3px;border:1px solid var(--edge);text-decoration:none;padding:12px;background:var(--panel);color:var(--ink);font-size:11px}.fineprint{color:var(--muted);font-size:10px;line-height:1.7}footer{margin-top:28px;border-top:1px solid var(--edge);padding-top:14px;display:flex;justify-content:space-between;flex-wrap:wrap;gap:9px;font-size:9px;color:var(--muted);letter-spacing:.07em}footer p{width:100%;font-size:10px;line-height:1.65;letter-spacing:0}@media(max-width:380px){.app{padding:14px 12px 22px}.mode{font-size:9px}.version{font-size:9px}.camera-bar{gap:5px}.soft-button{font-size:10px}.shutter{width:50px;height:50px}}

/* Attention coordinates match the displayed canvas, including letterboxing. */
.focus-marker{box-sizing:border-box;transition:opacity .2s,border-color .2s}
.focus-marker[data-phase="LOCK"]{border-style:dashed;border-color:#e0e8df;opacity:.55;box-shadow:none}
.focus-marker[data-phase="RELEASE"]{opacity:.3}
.focus-marker[data-phase="INTERPRET"],.focus-marker[data-phase="HOLD"]{border-color:#efbb77;opacity:.8;box-shadow:none}
.attention-debug{position:absolute;z-index:3;top:32px;left:12px;right:12px;font:9px/1.5 ui-monospace,monospace;color:#f0dcb5;text-shadow:0 1px 3px #000;pointer-events:none}
.attention-debug[hidden]{display:none}
