:root{color-scheme:dark;--ink:#10282e;--cream:#f5ecd7;--teal:#92cec0;--gold:#e9bd74;--muted:#b7c7be}*{box-sizing:border-box}html,body{margin:0;min-height:100%;background:#0c2026;color:var(--cream);font-family:ui-sans-serif,system-ui,-apple-system,sans-serif}body{min-height:100dvh;display:flex;flex-direction:column;align-items:center}button,a,input{-webkit-tap-highlight-color:transparent}button{font:inherit;color:inherit;background:#19383e;border:1px solid #718982;padding:10px 17px;cursor:pointer;border-radius:3px;transition:background .15s,transform .15s;min-height:42px}button:hover{background:#31564f}button:active{transform:translateY(1px)}button:focus-visible,a:focus-visible,input:focus-visible{outline:3px solid var(--gold);outline-offset:3px}button:disabled{opacity:.45;cursor:default}a{color:inherit;text-decoration:none}a:hover{text-decoration:underline}.masthead{height:76px;display:flex;align-items:center;justify-content:space-between;width:min(1440px,100%);padding:0 32px;gap:20px}.brand{letter-spacing:.14em;font-weight:750;font-size:18px;white-space:nowrap}.brand-mark{color:var(--teal);font-size:24px;vertical-align:-2px;margin-right:8px}.edition{font-weight:400;font-size:10px;letter-spacing:.16em;border-left:1px solid #536a67;margin-left:18px;padding-left:18px;color:var(--muted)}.top-actions{display:flex;gap:16px;align-items:center;font-size:12px}.top-actions button{padding:5px 12px;min-height:34px;border-color:#405c59;background:transparent}.top-actions a{color:var(--muted)}main{display:flex;justify-content:center;align-items:center;flex:1;width:100%;padding:0 24px}#game{position:relative;width:min(1392px,calc((100dvh - 136px)*16/9));aspect-ratio:16/9;container-type:inline-size;overflow:hidden;background:#203a3d;box-shadow:0 24px 100px #0007;border:1px solid #516560}canvas{width:100%;height:100%;display:block;image-rendering:pixelated}.vignette{position:absolute;inset:0;pointer-events:none;box-shadow:inset 0 0 80px #061d2625}#ui{position:absolute;inset:0;font-size:clamp(14px,1.4cqw,21px)}small,.eyebrow{font-size:.65em;letter-spacing:.2em;font-weight:650;color:var(--gold);display:block}h1,h2,h3,p{margin:0}h1,h2,h3{font-family:Georgia,'Times New Roman',serif;font-weight:400}h1{font-size:5.3cqw;line-height:1.02;letter-spacing:-.045em}h2{font-size:3.1cqw;line-height:1.15}h3{font-size:2cqw}p{line-height:1.55;color:#d4dfd3}.primary{background:var(--cream);color:var(--ink);border-color:var(--cream);font-weight:700}.primary:hover{background:#d5eee0}.ghost{border-color:#738c7f;background:#10282e99}.title-screen{position:absolute;inset:0;background:linear-gradient(90deg,#10282ef5 0%,#10282ec9 34%,#10282e10 74%);display:flex;align-items:center;padding:6%}.title-copy{width:48%}.title-copy h1{margin:5% 0}.title-copy p{max-width:27em;font-size:.9em}.title-actions{display:flex;gap:12px;margin:7% 0 5%;flex-wrap:wrap}.title-note{color:#afc6b8;font-size:.65em;letter-spacing:.05em}.title-stamp{position:absolute;right:4%;bottom:5%;font-size:.65em;letter-spacing:.2em;background:#10282ec9;padding:12px 16px;border-left:2px solid var(--gold)}.chapter{position:absolute;left:3%;top:5%;background:#10282eec;border-left:2px solid var(--gold);padding:1.2% 2%;max-width:60%;box-shadow:0 4px 16px #0003}.chapter b{display:block;margin-top:5px;font-size:.88em;font-weight:500}.dialogue{position:absolute;bottom:4%;left:4%;right:4%;padding:2.2% 2.8%;background:#10282ef5;border:1px solid #87a697;box-shadow:0 8px 32px #0005;display:grid;grid-template-columns:1fr auto;gap:14px;align-items:end}.dialogue p{margin-top:7px;font-size:.97em;max-width:58em}.dialogue button{font-size:.85em}.hotspot{position:absolute;transform:translate(-50%,-50%);border:1px solid #f6e4b7;background:#10282ee8;border-radius:30px;font-size:.75em;box-shadow:0 3px 12px #0004;padding:8px 15px;white-space:nowrap}.hotspot:hover{background:#31564fee;transform:translate(-50%,-50%)}.hotspot::before{content:'◇';color:var(--gold);margin-right:8px}.move-controls{position:absolute;bottom:5%;left:3%;display:flex;gap:8px}.move-controls button{font-size:1em;padding:7px 20px;touch-action:none}.walk-hint{position:absolute;bottom:5%;right:3%;font-size:.65em;color:var(--cream);background:#10282edc;padding:9px 14px}.cinematic{position:absolute;inset:0;background:#0b2029}.cinematic img{position:absolute;top:12%;left:0;width:100%;height:48%;object-fit:cover;image-rendering:pixelated}.cinematic .chapter{top:3%;background:transparent;border:0}.cinematic .dialogue{background:transparent;border:0;bottom:3%}.panel-screen{position:absolute;inset:0;background:#0b222be6;display:flex;align-items:center;justify-content:center;padding:4%}.panel{width:88%;max-height:100%;border:1px solid #6e8c83;background:#15343b;box-shadow:0 12px 40px #0004;padding:3%;overflow:auto}.panel h2{margin:1% 0 2%}.panel p{font-size:.86em}.panel-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:5%;margin-top:3%;align-items:center}.paper{background:#f2ead6;color:#18333b;border:5px solid #dfd4bc;padding:7%;box-shadow:5px 5px 0 #0a2028}.paper small{color:#647c73}.paper h3{font-size:2.4cqw;margin:8px 0}.paper p{color:#3d5a5b}.paper dl{font-size:.85em;display:grid;grid-template-columns:1fr 1fr;gap:10px;margin-bottom:0}.paper dd{font-weight:650;margin:0;text-align:right}.choices{display:flex;flex-direction:column;gap:10px;margin:14px 0}.choices button{text-align:left;font-size:.9em}.choices button span{float:right;color:var(--gold)}.panel-footer{display:flex;justify-content:space-between;align-items:center;gap:18px;margin-top:3%}.panel-footer p{font-size:.7em;color:var(--muted)}.mini-art{width:100%;image-rendering:pixelated;margin:10px 0;max-height:20cqw;object-fit:cover;border:1px solid #6e8c83}.checklist{display:flex;flex-direction:column;gap:8px;margin:14px 0}.checklist label{font-size:.85em;padding:10px 12px;background:#24464a;border:1px solid #5b7a6d;display:flex;align-items:center;gap:10px;cursor:pointer}.checklist input{accent-color:#9dd7c0;width:20px;height:20px}.scanner-hud{position:absolute;left:3%;top:6%;width:26%;bottom:5%;display:flex;flex-direction:column;align-items:flex-start}.scanner-hud h2{font-size:3.6cqw;margin:7% 0}.target-card{background:var(--cream);color:var(--ink);padding:10% 9%;width:100%;border-left:6px solid var(--teal);box-shadow:5px 5px 0 #081f27}.target-card small{color:#476762;font-size:.58em}.target-card strong{display:block;font-size:2.3cqw;margin:5% 0}.target-card .shape{font-size:1.5em;margin-right:10px}.target-card p{color:#34544f;font-size:.7em}.score-line{width:100%;display:flex;justify-content:space-between;margin:10% 0 7%;font-size:.85em}.scanner-hud .instructions{font-size:.75em;line-height:1.65;color:#aec8c0;margin-top:auto}.timer-track{height:4px;width:100%;background:#3d5659;margin:9% 0 5%}.timer-fill{height:100%;background:var(--gold)}.lane-controls{position:absolute;left:32.5%;right:2%;bottom:3%;display:grid;grid-template-columns:repeat(3,1fr);gap:4%}.lane-controls button{font-size:.7em;padding:8px;min-height:38px;background:#21434bdd}.arcade-top{position:absolute;left:34%;right:4%;top:3%;display:flex;justify-content:space-between;font-size:.63em;color:#b7d2c6;letter-spacing:.1em}.results{display:flex;gap:7%;margin:5% 0}.results strong{font:400 4cqw Georgia;color:var(--gold);display:block}.results span{font-size:.72em;color:var(--muted)}#toast{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);max-width:75%;background:#eae4d3;color:#18383b;padding:10px 20px;font-size:clamp(12px,1.3cqw,18px);border-left:4px solid #5db196;box-shadow:0 4px 20px #0004;pointer-events:none;opacity:0;transition:opacity .15s;z-index:8;text-align:center}#toast.visible{opacity:1}dialog{color:var(--cream);background:#15343b;border:1px solid #8aa594;padding:32px;max-width:min(520px,90vw);box-shadow:0 30px 100px #0008}dialog::backdrop{background:#061c26ce}dialog h2{font-size:34px;margin:10px 0}dialog p{font-size:14px}dialog label{display:block;margin:20px 0;font-size:14px}dialog label span{display:block;font-size:12px;color:var(--muted);margin:5px 0 0 23px}dialog button{margin:6px 6px 0 0}#rotate{display:none;position:absolute;inset:0;background:#10282ef5;z-index:20;text-align:center;align-content:center}#rotate span{font-size:70px;color:var(--gold)}#rotate h2{font-size:32px;margin:10px}#rotate p{font-size:16px}[hidden]{display:none!important}
@media(max-height:600px){.masthead{height:42px;padding:0 16px}.brand{font-size:14px}.brand-mark{font-size:18px}.edition{font-size:8px}.top-actions{font-size:10px;gap:10px}.top-actions button{min-height:28px;padding:3px 8px}main{padding:0 8px}#game{width:min(1392px,calc((100dvh - 62px)*16/9))}button{min-height:34px;padding:7px 12px}.dialogue{padding:1.6% 2.5%;bottom:3%;gap:8px}.panel{width:94%;padding:2.2%}.panel-grid{margin-top:2%;gap:3%}.choices{gap:5px;margin:8px 0}.panel-footer{margin-top:2%}.checklist{gap:4px;margin:8px 0}.checklist label{padding:5px 8px}.scanner-hud .instructions{font-size:.72em}.lane-controls button{min-height:30px;padding:5px}.hotspot{min-height:32px;padding:6px 12px}dialog{padding:18px}dialog h2{font-size:25px}dialog label{margin:12px 0}.mini-art{max-height:16cqw}}
@media(orientation:portrait) and (max-width:700px){.edition,.top-actions a,.masthead{height:60px;padding:0 14px}.top-actions{gap:6px}main{padding:0 10px}#game{width:100%;height:calc(100dvh - 85px);aspect-ratio:auto}#rotate{display:block}}
@media(prefers-reduced-motion:reduce){*{transition:none!important}}
@media(max-height:600px){.scanner-hud h2{font-size:3cqw;line-height:1.05;margin:5% 0}.target-card{padding:8px 10px}.target-card strong{font-size:clamp(15px,2.3cqw,23px);margin:4px 0}.target-card small{font-size:8px;letter-spacing:.1em}.target-card p{font-size:10px;line-height:1.4}.score-line{margin:8px 0;font-size:11px}.timer-track{margin:5px 0 8px}.scanner-hud .instructions{font-size:10px;line-height:1.45}.scanner-hud>small{font-size:8px;letter-spacing:.12em}.checklist p{font-size:11px;line-height:1.35}.panel-footer p{max-width:55%;font-size:10px}.panel h2{margin:4px 0 7px}.panel>.panel-grid{margin-top:10px}.panel>.panel-footer{margin-top:10px}.panel .paper{padding:6%}.panel .paper dl{gap:7px}.checklist label{font-size:12px;min-height:33px}.dialogue p{font-size:12px}.dialogue button{font-size:12px}}
@media(max-height:600px){.panel-screen{padding:2%}.panel{width:98%}.checklist{margin:4px 0}.checklist input{margin:0;flex-shrink:0}.panel>.panel-grid{margin-top:8px}.panel>.panel-footer{margin-top:8px}.panel-footer button{white-space:nowrap}}
/* VaxLink Adventures revision */
.entry-form{display:grid;gap:9px}.entry-form label{display:grid;gap:5px;font-size:.8em;color:#dfebdf}.entry-form input,.entry-form select{width:100%;border:1px solid #7d9d91;border-radius:2px;background:#edf0df;color:#18333b;font:inherit;padding:8px 10px;min-height:38px;color-scheme:light}.entry-form p{font-size:.7em;min-height:1.4em}.entry-form button{justify-self:end;font-size:.85em}.visit-status{font-size:.7em;color:#bcdcca;margin-top:8px}.package-paper{padding:5%}.carton-art{image-rendering:pixelated;object-fit:contain;display:block;width:70%;max-height:13cqw;margin:0 auto 12px}.package-paper dl{font-size:.8em;gap:6px}.package-paper dd{overflow-wrap:anywhere}.connection-card{position:absolute;right:5%;bottom:6%;padding:3%;background:#10282ef5;border:1px solid #8aa594;min-width:34%;box-shadow:0 8px 30px #0004}.setup-path{display:flex;align-items:center;gap:10px;font-size:.65em;margin:20px 0}.setup-path i{font-style:normal;color:#728c88}.setup-path span{padding:8px;border:1px solid #637c78}.setup-path .active{color:#baf6ce;border-color:#8fceb2;background:#355d51}.barcode-guide{display:flex;justify-content:space-around;align-items:center;gap:14px;background:#e9e5d4;color:#163139;padding:8%}.barcode-guide>div{display:flex;align-items:center;flex-direction:column;gap:12px;font-size:.8em}.barcode-guide img{width:7cqw;image-rendering:pixelated}.linear-demo{display:inline-block;width:70px;height:28px;background:repeating-linear-gradient(90deg,#173039 0px,#173039 2px,#fff 2px,#fff 4px,#173039 4px,#173039 5px,#fff 5px,#fff 7px);border:4px solid #fff}.visit-plan{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin:4% 0}.visit-plan>div{display:flex;flex-direction:column;align-items:center;gap:8px;font-size:.85em}.visit-plan img{width:75%;height:9cqw;object-fit:contain;image-rendering:pixelated}.visit-plan span{color:var(--muted);font-size:.8em}.scan-tray{display:grid;grid-template-columns:repeat(3,1fr);gap:14px;margin:3% 0}.tray-card{display:flex;flex-direction:column;align-items:center;padding:12px 8px;background:#24454b;border:1px solid #648579;gap:10px;min-width:0}.tray-card>b{font-size:.95em}.tray-card.scanned{border-color:#b5dca4;background:#2b5149}.tray-card .carton-art{height:7cqw;max-width:90%;width:auto;margin:0}.scan-buttons{display:flex;gap:10px;align-items:center;justify-content:center;width:100%}.matrix-button{padding:5px;background:#f9f4e6;border:1px solid #b8cec2}.matrix-button img{width:4.3cqw;height:4.3cqw;image-rendering:pixelated;display:block}.one-d-button{padding:6px;background:#f9f4e6}.one-d-button .linear-demo{width:4.4cqw;height:2cqw;vertical-align:middle}.scan-result{font-size:.7em;min-height:1.2em;color:#d2e6cc}.target-card strong{font-size:2.1cqw}.target-card .match-count{margin-top:8px;font-size:.65em}#source-dialog p{margin:12px 0;line-height:1.5}#source-dialog a{color:var(--teal)}
@media(max-height:600px){.entry-form{gap:6px}.entry-form label{font-size:11px;gap:3px}.entry-form input,.entry-form select{min-height:30px;padding:5px 8px}.entry-form p{font-size:10px}.entry-form button{font-size:11px;min-height:32px}.package-paper{padding:4%}.package-paper .carton-art{max-height:13cqw;width:auto;max-width:80%;margin-bottom:8px}.visit-status{font-size:10px;margin-top:5px}.package-paper dl{font-size:11px}.barcode-guide{padding:12px}.barcode-guide>div{font-size:11px;gap:8px}.barcode-guide img{width:52px}.linear-demo{width:58px;height:25px}.connection-card{padding:16px;right:4%;bottom:5%}.setup-path{margin:12px 0;gap:6px;font-size:9px}.setup-path span{padding:5px}.visit-plan{gap:10px;margin:15px 0}.visit-plan>div{font-size:12px}.visit-plan img{height:13cqw}.scan-tray{gap:8px;margin:12px 0}.tray-card{padding:8px 5px;gap:6px}.tray-card>b{font-size:12px}.tray-card .carton-art{height:9cqw}.scan-buttons{gap:6px}.matrix-button img{width:34px;height:34px}.one-d-button .linear-demo{width:34px;height:17px}.one-d-button{padding:4px}.scan-result{font-size:10px}.scanner-hud .target-card strong{font-size:16px}.target-card .match-count{font-size:10px;margin-top:5px}.top-actions{gap:6px}}
/* Station visits and scanner installation */
.station-caption{position:absolute;bottom:5%;left:25%;right:25%;text-align:center;background:#10282ee8;padding:10px 16px;font-size:.75em;border:1px solid #8ba597}.comfort-choices{display:flex;gap:8px;flex-shrink:0}.comfort-choices button{font-size:.85em}.fridge-tray{position:absolute;bottom:3%;left:29%;right:3%;display:flex;align-items:center;gap:14px;padding:12px;background:#10282ef5;border:1px solid #91b2a0}.fridge-products{display:flex;gap:10px;flex:1}.fridge-products button{flex:1;padding:7px;display:grid;gap:4px;justify-items:center;font-size:.75em}.fridge-products img{height:4.6cqw;width:auto;image-rendering:pixelated}.fridge-products button:disabled{opacity:.8;background:#355c47}.fridge-tray>button{font-size:.8em;white-space:nowrap}.prep-card{position:absolute;bottom:3%;left:30%;right:3%;background:#10282ef5;border:1px solid #91b2a0;padding:12px 16px}.prep-progress{display:flex;justify-content:space-between;gap:8px;font-size:.65em;color:#afc5bc}.prep-progress .done{color:#b9ef9a}.needle-tray{display:flex;gap:12px;padding:10px 0;justify-content:space-around}.needle-tray>div{text-align:center;flex:1;font-size:.65em;display:flex;align-items:center;flex-direction:column;gap:6px}.needle-tray img{height:3.4cqw;image-rendering:pixelated}.needle-tray small{font-size:.8em}.syringe{position:relative;width:65px;height:12px;background:repeating-linear-gradient(90deg,#d5ecec 0 6px,#759d9f 6px 7px);border:2px solid #759d9f;margin:6px 13px}.syringe:before{content:'';position:absolute;left:-13px;top:1px;width:11px;height:6px;border-left:3px solid #d5ecec;background:#90bdb7}.syringe:after{content:'';position:absolute;right:-17px;top:1px;width:16px;height:6px;background:#a5d6de;border-radius:0 3px 3px 0}.prep-action{display:flex;align-items:center;justify-content:space-between;gap:10px}.prep-action p{font-size:.65em}.prep-action button{font-size:.75em;white-space:nowrap}.delivery-box{position:absolute;left:28%;top:36%;width:33%;height:35%;background:#b58a56;color:#17353a;border:6px solid #d3ab74;box-shadow:12px 14px 0 #553e2580;display:flex;align-items:center;justify-content:center;flex-direction:column;gap:12px;transform:rotate(-4deg)}.delivery-box:before{content:'';position:absolute;left:46%;width:8%;height:100%;background:#e7cf9b80;z-index:0}.delivery-box>*{z-index:1}.delivery-box>span{letter-spacing:.25em;font-weight:800}.delivery-box small{color:#274346;letter-spacing:.08em;font-size:.6em}.delivery-box:hover{background:#caa46e}.setup-screen{position:absolute;inset:4%;display:grid;grid-template-columns:30% 1fr;gap:3%;padding:3%;background:#102c34f7;border:1px solid #789e90}.setup-screen h2{font-size:2.7cqw;margin:10px 0}.setup-screen progress{width:100%;height:7px;accent-color:#ade19a}.setup-screen aside>p{font-size:.65em;margin-top:5px}.setup-screen ol{list-style:none;padding:0;margin:14px 0;display:grid;gap:12px}.setup-screen li{font-size:.8em;display:flex;gap:10px;align-items:center;color:#a6bdb5}.setup-screen li span{width:24px;height:24px;border:1px solid #6c8b7d;display:grid;place-items:center;border-radius:50%}.setup-screen li.done{color:#ade19a}.setup-screen li.current{color:#ffe0a0}.setup-screen li.current span{background:#c3a16d;color:#102c34}.setup-workbench{display:flex;flex-direction:column;justify-content:space-between;min-width:0}.setup-action{display:flex;gap:14px;align-items:center;justify-content:space-between}.setup-action p{font-size:.75em}.setup-action button{font-size:.8em;white-space:nowrap}.hardware{flex:1;display:flex;align-items:center;justify-content:space-around;position:relative;gap:20px}.hardware-scanner{position:relative;width:24%;height:30%;border-bottom:12px solid #67857b;transform:rotate(-8deg);opacity:.4;transition:opacity .4s}.hardware.unpacked .hardware-scanner{opacity:1}.hardware-scanner>span{background:#203c47;border:4px solid #789f95;border-radius:5px;position:absolute;width:90%;height:35%;top:0;left:0;font-size:.7em;text-align:right;padding:4px;color:#c4efba}.hardware-scanner>i{position:absolute;left:30%;top:32%;height:65%;width:25%;background:#557b76;transform:rotate(-15deg)}.hardware-scanner>b{position:absolute;bottom:-42px;left:-15%;width:150%;font-size:.7em;white-space:nowrap;font-weight:400}.hardware-computer{width:40%;height:40%;border:8px solid #698f85;background:#385968;display:grid;place-items:center;position:relative;font-size:.6em;text-align:center;box-shadow:0 6px 0 #345448}.hardware-computer:after{content:'';position:absolute;bottom:-30px;width:60%;height:10px;background:#698f85;box-shadow:0 -10px 0 -2px #698f85}.hardware-computer b{font-size:1.3em}.usb-cable{height:4px;position:absolute;top:65%;left:28%;width:23%;background:#c2af77;transform:rotate(-15deg);opacity:.4}.unpacked .usb-cable{opacity:1}.browser-demo{border:1px solid #759d90;background:#e6ebdf;color:#16353c;flex:1;margin-bottom:12px}.browser-chrome{display:flex;justify-content:space-between;padding:9px 12px;background:#284b51;color:#c9d9ce;font-size:.65em;align-items:center}.browser-chrome>span{color:#ccbc89;letter-spacing:3px}.browser-chrome i{font-style:normal;border:1px solid #91ada1;padding:4px;color:#849e93}.browser-chrome i.enabled{background:#b5e8a4;color:#16353c}.extension-pane{padding:5% 7%}.extension-pane small{color:#587365;font-size:.52em}.extension-pane h3{font-size:2.6cqw;margin:6px 0}.extension-pane p{color:#42635d;font-size:.75em}.extension-switch{display:flex;gap:8px;align-items:center;position:absolute;right:10%;top:27%;font-size:.65em}.extension-switch i{width:32px;height:18px;border-radius:9px;background:#8d9e94;position:relative}.extension-switch i:after{content:'';position:absolute;left:3px;top:3px;width:12px;height:12px;border-radius:50%;background:white}.extension-switch.enabled i{background:#3b8669}.extension-switch.enabled i:after{left:17px}.test-record{display:flex;gap:20px;margin-top:12px;align-items:center}.test-record img{width:5.4cqw;image-rendering:pixelated}.test-record dl{display:grid;grid-template-columns:1fr 1.5fr;gap:6px;font-size:.7em;margin:0;flex:1}.test-record dd{margin:0;font-weight:700}.device-status{padding:7px 12px;background:#cad9c9;font-size:.6em;color:#285e45}.zone-ready{background:#b7eaa0!important;color:#14352e!important;border-color:#e4ffd3!important}.target-card{transition:background .1s}.lane-controls button.zone-ready{box-shadow:0 0 14px #b7eaa044}#game[data-phase=arcade] #toast{left:16%;bottom:24%;max-width:28%;font-size:1.2cqw;padding:8px 10px;box-shadow:none}
@media(max-height:600px){.setup-screen{inset:2%;padding:2%;gap:3%}.setup-screen h2{font-size:20px;margin:6px 0}.setup-screen ol{gap:7px;margin:8px 0}.setup-screen li{font-size:10px;gap:7px}.setup-screen li span{width:20px;height:20px}.setup-action{gap:8px}.setup-action p{font-size:10px}.setup-action button{font-size:11px;min-height:30px;padding:6px 8px}.extension-pane{padding:3% 5%}.extension-pane h3{font-size:21px;margin:4px 0}.extension-pane p{font-size:10px}.test-record{margin-top:8px;gap:10px}.test-record dl{font-size:10px;gap:3px}.browser-chrome{font-size:9px;padding:6px 9px}.device-status{font-size:9px;padding:5px 9px}.extension-switch{top:27%;right:9%}.hardware-scanner>b{font-size:10px;bottom:-30px}.hardware-computer{font-size:8px}.station-caption{font-size:10px;padding:8px}.fridge-tray{padding:7px;gap:8px;left:27%}.fridge-products{gap:6px}.fridge-products button{padding:5px;font-size:10px;min-height:30px}.fridge-tray>button{font-size:10px;padding:6px}.prep-card{padding:8px 10px;left:28%}.prep-progress{font-size:9px;gap:4px}.needle-tray{padding:7px 0}.needle-tray>div{font-size:9px}.prep-action p{font-size:9px;line-height:1.3}.prep-action button{font-size:10px;min-height:30px;padding:5px 8px}.comfort-choices{gap:5px}.comfort-choices button{font-size:10px;padding:6px 8px}.dialogue>div:first-child{min-width:0}.delivery-box{gap:7px}.delivery-box b{font-size:13px}.delivery-box small{font-size:8px}.delivery-box>span{font-size:15px}#game[data-phase=arcade] #toast{font-size:9px;bottom:24%;padding:6px}}
.reply-options{display:grid;gap:7px;flex:1.3}.reply-options button{text-align:left;font-size:.8em;padding:9px 13px;min-height:36px;background:#26474b;border-color:#88a594}.reply-options button:hover{background:#416852}.choice-dialogue{align-items:center;gap:24px}.choice-dialogue>div:first-child{flex:.7}.choice-dialogue p{font-size:.88em}.comfort-choices{max-width:44%;flex-direction:column}.comfort-choices button{white-space:normal;text-align:left}
@media(max-height:600px){.choice-dialogue{padding:10px 12px;gap:14px}.choice-dialogue>div:first-child{flex:.65}.reply-options{gap:5px}.reply-options button{font-size:10px;line-height:1.35;min-height:30px;padding:6px 9px}.choice-dialogue p{font-size:11px}.comfort-choices{max-width:40%;gap:4px}.comfort-choices button{min-height:28px;font-size:10px}}
.choice-dialogue{grid-template-columns:.8fr 1.2fr}.comfort-choices{max-width:none;width:clamp(170px,23cqw,320px)}
@media(max-height:600px){.comfort-choices{max-width:none;width:160px}.choice-dialogue{grid-template-columns:.7fr 1.3fr}}
/* Illustrations remain the focus of preparation and installation. */
.needle-tray .prepared-tray{height:7.6cqw;width:auto;max-width:100%;object-fit:contain}.prep-card:has(.prepared-tray){left:32%;right:4%;bottom:3%;padding:12px 18px}.kit-footer{position:absolute;bottom:4%;left:4%;right:4%;display:flex;align-items:center;justify-content:space-between;gap:16px;padding:12px 18px;background:#102c34f2;border:1px solid #87a697}.kit-footer p{font-size:.78em}.kit-footer button{font-size:.85em;white-space:nowrap}.setup-ribbon{position:absolute;left:3%;right:3%;top:3%;padding:10px 16px;background:#102c34f4;border:1px solid #759587}.setup-ribbon ol{display:flex;list-style:none;justify-content:space-between;gap:10px;margin:8px 0 0;padding:0;font-size:.72em;color:#adc2b7}.setup-ribbon li.current{color:#ffe0a0}.setup-ribbon li.done{color:#b0e29d}.kit-hotspots .hotspot{font-size:.65em;padding:6px 10px;min-height:32px}.kit-hotspots .checked{background:#345e49;border-color:#b0e29d;color:#d8ffc1}.monitor-ui{position:absolute;left:66.8%;top:16%;width:23.5%;height:29%;background:#e1ebdf;border:1px solid #9cb8b9;transform:skewY(-2deg);color:#17373b;overflow:hidden;font-size:.64em}.monitor-bar{padding:6px 9px;background:#244b53;color:#d9e5d8;font-size:.8em;display:flex;justify-content:space-between}.monitor-bar b{padding:1px 4px;border:1px solid #83a798}.monitor-bar b.enabled{background:#b5e3a7;color:#17373b}.monitor-content{padding:8px 12px}.monitor-content h3{font-size:2cqw}.monitor-content p{color:#365b53;font-size:.8em;margin:4px 0}.monitor-ui .test-record{gap:7px;margin-top:8px}.monitor-ui .test-record img{width:3.2cqw}.monitor-ui .test-record dl{font-size:.82em;gap:3px;grid-template-columns:1fr 1.3fr}.extension-badge{display:block;margin-top:10px;padding:6px;background:#bfd8c2;font-size:.8em}.scan-detail-summary h3{font-size:2.4cqw;margin:12px 0}.scan-detail-summary dl{display:grid;grid-template-columns:1fr 1.4fr;font-size:.9em;gap:12px}.scan-detail-summary dd{margin:0;font-weight:650}.expiry-option{display:flex;gap:8px;align-items:center;font-size:.7em;margin-top:12px;color:#c7dace}.expiry-option input{accent-color:#9acda8;width:17px;height:17px}.vaccination-card{position:absolute;right:4%;bottom:5%;width:47%;background:#102c34f4;border:1px solid #789f8c;padding:3%}.dose-list{display:flex;flex-wrap:wrap;gap:10px;margin-bottom:18px;font-size:.72em}.dose-list span{padding:5px 8px;border:1px solid #5f8272;color:#adc0b3}.dose-list span.done{color:#d1f3b8;border-color:#91ba79;background:#315741}.vaccination-card h2{font-size:3cqw;margin:9px 0}.vaccination-card p{font-size:.85em;margin-bottom:18px}.vaccination-card button{font-size:.8em}
@media(max-height:600px){.needle-tray .prepared-tray{height:8.5cqw}.prep-card:has(.prepared-tray){padding:8px 10px;left:31%;right:3%}.kit-footer{padding:8px 10px;bottom:3%;gap:8px}.kit-footer p{font-size:10px}.kit-footer button{font-size:10px;min-height:30px;padding:6px 9px}.setup-ribbon{padding:6px 9px;top:2%}.setup-ribbon small{font-size:8px}.setup-ribbon ol{font-size:9px;gap:6px;margin-top:5px}.kit-hotspots .hotspot{font-size:9px;min-height:28px;padding:5px 7px}.monitor-ui{font-size:10px;left:65.5%;width:26%;top:17%;height:34%}.monitor-bar{padding:4px 5px;font-size:8px}.monitor-content{padding:5px 7px}.monitor-content h3{font-size:16px}.monitor-content p{font-size:9px;margin:2px 0}.monitor-ui .test-record{margin-top:5px;gap:5px}.monitor-ui .test-record img{display:none}.monitor-ui .test-record dl{font-size:9px;gap:2px}.extension-badge{font-size:9px;margin-top:5px;padding:4px}.expiry-option{font-size:10px;margin-top:7px}.scan-detail-summary h3{font-size:18px;margin:8px 0}.scan-detail-summary dl{font-size:12px;gap:9px}.vaccination-card{padding:14px;width:48%}.vaccination-card h2{font-size:20px;margin:6px 0}.vaccination-card p{font-size:11px;margin-bottom:10px}.vaccination-card button{font-size:11px;min-height:30px}.dose-list{gap:5px;font-size:9px;margin-bottom:10px}.dose-list span{padding:4px 5px}}
.lane-controls button.zone-decoy{background:#6b5938;color:#ffe2a9;border-color:#d7b674}
/* Native-grid interface: solid fills, square corners, two-game-pixel frames. */
@font-face{font-family:VT323;src:url('fonts/VT323-Regular.ttf') format('truetype');font-display:swap;font-weight:400}
:root{--pixel:clamp(2px,.3125cqw,5px)}
html,body,button,input,select,h1,h2,h3,.results strong{font-family:VT323,monospace;font-weight:400;font-synthesis:none}
#ui{font-size:clamp(18px,1.95cqw,28px)}
h1{font-size:6.7cqw;letter-spacing:0;line-height:.95}h2{font-size:3.7cqw}h3{font-size:2.7cqw}
small{letter-spacing:.09em;font-weight:400;font-size:.72em}p{line-height:1.22}
button{border-width:var(--pixel);border-radius:0;transition:none;box-shadow:0 var(--pixel) 0 #091e26;font-weight:400}
button:disabled{opacity:1;color:#9caaa3;background:#3b5556;border-color:#526a65;box-shadow:none}
button:active{transform:translateY(var(--pixel));box-shadow:none}
.ghost,.hotspot,.chapter,.dialogue,.station-caption,.fridge-tray,.room-action,.kit-footer,.setup-ribbon,.vaccination-card,.connection-card{background:#173a42;border-radius:0;opacity:1}
.dialogue,.panel,.vaccination-card,.kit-footer,.fridge-tray,dialog{border:var(--pixel) solid #adc4ae;box-shadow:var(--pixel) var(--pixel) 0 #09262e}
.dialogue{padding:1.6% 2.3%;bottom:3%;left:3%;right:3%;gap:18px}
.dialogue p{font-size:1em;line-height:1.15;margin-top:5px}.dialogue button{font-size:.95em}.choice-dialogue p{font-size:1em}
.chapter{border:0;box-shadow:none;top:4%;padding:1% 1.5%;max-width:62%}.chapter b{font-size:.95em;margin-top:3px}.station-caption{border:0;box-shadow:none}
.hotspot{border:var(--pixel) solid #f5ecd7;box-shadow:var(--pixel) var(--pixel) 0 #173a42;font-size:.9em}.hotspot:hover{background:#31564f}
.title-screen{background:none}.title-copy{padding:3%;background:#173a42;width:50%;border-left:var(--pixel) solid #b4c5a3}.title-stamp{background:#173a42;border:0}
.panel-screen{background:#10282e}.panel{background:#173a42}.panel p{font-size:.95em;line-height:1.2}.panel-grid p+p{margin-top:12px}
.panel-footer button{font-size:.95em}.reply-options button{border-width:var(--pixel);font-size:.92em;line-height:1.05;min-height:40px}.reply-options{gap:8px}
.room-action{position:absolute;bottom:3%;left:3%;right:3%;padding:1.3% 2%;display:flex;align-items:center;justify-content:space-between;gap:20px;border:0}
.room-action .prep-progress{font-size:.8em;gap:22px}.room-action button{font-size:.9em;min-width:22%}
.setup-ribbon{border:0;box-shadow:none;padding:1% 2%}.setup-ribbon ol{font-size:.8em;margin-top:4px}.kit-footer p{font-size:.92em}.kit-footer button{font-size:1em}.kit-hotspots .hotspot{font-size:.8em}
/* Canvas paints the browser; accessible DOM keeps the same data available. */
.monitor-ui{position:absolute!important;width:1px!important;height:1px!important;overflow:hidden!important;clip-path:inset(50%);white-space:nowrap;transform:none;border:0;padding:0}
.vignette{display:none}.scan-detail-summary dl{font-size:1em}.entry-form label{font-size:.9em}.entry-form input,.entry-form select{border-radius:0;border-width:var(--pixel)}
.scanner-hud .instructions{font-size:.85em;line-height:1.15;margin-top:auto}.scanner-hud h2{font-size:4cqw;margin:4% 0}.scanner-hud #skip-round{font-size:.8em;margin-top:10px;min-height:30px;padding:4px 10px}.lane-controls button{background:#21434b}.target-card{box-shadow:none}.lane-controls button.zone-ready{box-shadow:none}
.top-actions{font-size:16px}.brand{font-size:23px}.edition{font-size:13px}.top-actions button{background:#173a42;border-width:2px}
dialog{font-size:22px}dialog label,dialog p{font-size:20px}#rotate{background:#10282e}.dose-list span{border:0;background:#294b50}
@media(max-height:600px){
 #ui{font-size:18px}.dialogue p,.choice-dialogue p{font-size:16px;line-height:1.04}.dialogue{padding:8px 12px;gap:10px}.dialogue button{font-size:16px;min-height:30px;padding:5px 8px}.dialogue small{font-size:12px}
 .reply-options button{font-size:14px;min-height:28px;padding:4px 7px}.choice-dialogue{grid-template-columns:.6fr 1.4fr}.reply-options{gap:5px}
 .comfort-choices{width:175px}.comfort-choices button{font-size:14px;line-height:1.05}.chapter{top:3%;max-width:70%}.chapter b{font-size:15px}.chapter small{font-size:11px}
 .room-action{padding:8px 10px;gap:10px}.room-action .prep-progress{font-size:12px;gap:10px}.room-action button{font-size:14px;min-height:30px;padding:5px 8px}
 .kit-footer p,.kit-footer button{font-size:14px}.setup-ribbon small{font-size:11px}.setup-ribbon ol{font-size:12px}.kit-hotspots .hotspot{font-size:13px}
 .panel h2{font-size:26px}.panel p{font-size:14px}.panel-footer button{font-size:14px}.panel-grid p+p{margin-top:6px}.barcode-guide>div{font-size:14px}
 .entry-form label,.entry-form input,.entry-form select,.entry-form button{font-size:14px}.entry-form{gap:5px}.entry-form input,.entry-form select{min-height:28px;padding:3px 7px}.entry-form p{font-size:12px}.package-paper dl{font-size:14px}.visit-status{font-size:12px}.scan-detail-summary dl{font-size:15px}
 .vaccination-card h2{font-size:26px}.vaccination-card p{font-size:16px}.vaccination-card button{font-size:14px}.dose-list{font-size:12px;margin-bottom:8px}.vaccination-card{padding:10px}
 .scanner-hud .instructions{font-size:13px}.scanner-hud #skip-round{font-size:13px;margin-top:5px;min-height:26px}.scanner-hud h2{font-size:24px;margin:5px 0}.score-line{margin:7px 0;font-size:14px}.target-card strong{font-size:18px}.target-card p{font-size:12px}.scanner-hud>small{font-size:10px}.timer-track{margin:4px 0}.scanner-hud .target-card strong{font-size:18px}.target-card .match-count{font-size:12px}
 .top-actions{font-size:13px}.brand{font-size:17px}.edition{font-size:10px}.title-copy{width:52%}.title-copy p{font-size:16px}
}

button:disabled:hover{color:#bdc9be;background:#3b5556;border-color:#526a65}
.fridge-shelves{position:absolute;inset:0;pointer-events:none}
.shelf-product{position:absolute;width:15%;height:15%;border:0;background:none;box-shadow:none;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;gap:2px;padding:0;pointer-events:auto;min-height:0}
.shelf-product img{width:80%;height:75%;object-fit:contain;image-rendering:pixelated}
.shelf-product>span:last-child{background:#e2ead4;color:#18333b;padding:2px 5px;font-size:.65em;line-height:1;white-space:nowrap}
.shelf-product.needed>span:last-child{outline:var(--pixel) solid #bde396}
.shelf-product:disabled,.shelf-product:disabled:hover,.shelf-product:hover{background:none;border:0;box-shadow:none}
.shelf-product.stock{filter:saturate(.65)}.shelf-product.stock>span:last-child{background:#b9cbcd}
.shelf-check{height:75%;font-size:2em;color:#dbf8aa;text-shadow:2px 2px #244f52}
.fridge-plan{position:absolute;top:7%;left:73%;right:3%;padding:2%;background:#173a42}
.fridge-plan p{font-size:.8em;line-height:1.3;margin-top:8px}.fridge-close{position:absolute;bottom:5%;left:74%;right:3%}.fridge-close button{width:100%;font-size:.85em}
.benefits{display:grid;grid-template-columns:1fr 1fr;gap:20px 30px;margin-top:22px}.benefits b{font-size:.9em;color:#e4c18e;display:block;margin-bottom:4px}.benefits p{font-size:.78em}.benefits-panel h2{font-size:3cqw}.more-details{display:inline-block;padding:10px 14px;font-size:.85em;border:var(--pixel) solid #f5ecd7}.benefits-panel .panel-footer>div{display:flex;gap:10px}.benefits-panel .panel-footer button{font-size:.75em}
@media(max-height:600px){.shelf-product>span:last-child{font-size:11px}.fridge-plan{padding:8px}.fridge-plan small{font-size:10px}.fridge-plan p{font-size:13px;margin-top:4px}.fridge-close button{font-size:14px;padding:5px;min-height:30px}.benefits-panel{padding:2%}.benefits-panel h2{font-size:23px}.benefits{gap:7px 15px;margin-top:8px}.benefits b{font-size:14px;margin-bottom:2px}.benefits p{font-size:12px;line-height:1.05}.benefits-panel .panel-footer{margin-top:10px;gap:8px}.more-details{font-size:12px;padding:5px}.benefits-panel .panel-footer button{font-size:12px;padding:4px 6px;min-height:28px}.benefits-panel .panel-footer>div{gap:5px}}

@media(max-height:600px){.panel .package-paper{padding:8px;border-width:3px}.package-paper dl{gap:3px;margin-top:4px}.package-paper .carton-art{max-height:52px;margin-bottom:5px}.scan-detail-summary h3{margin:5px 0}.scan-detail-summary dl{gap:7px}}
/* Preparation labels keep their own columns when a number becomes a check. */
.room-action .prep-progress{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));flex:1;gap:20px}
.room-action .prep-progress>span{display:grid;grid-template-columns:1.2em 1fr;align-items:center;gap:.35em;white-space:nowrap}
.room-action .prep-progress i{font-style:normal;display:block;text-align:center;width:1.2em;line-height:1}
.room-action .prep-progress>span>span{line-height:1.15}
.room-action>button{width:25%;flex-shrink:0}
/* Scanner and cartons share a workbench, with the same clickable 2D controls. */
.scanner-bench{display:grid;grid-template-columns:17% 1fr;align-items:end;gap:3%;padding:2% 1% 1%;border-bottom:var(--pixel) solid #ad9265}
.scanner-bench .scan-tray{margin:0;gap:12px}
.scan-device{display:flex;flex-direction:column;align-items:center;justify-content:flex-end;padding:0 3% 10%;gap:8px;min-width:0}
.scan-device img{width:84%;height:12cqw;object-fit:contain;image-rendering:pixelated}
.scan-device b{font-size:.95em}.scan-device small{font-size:.6em;color:#b5d0bc}
.device-led{display:block;width:14px;height:5px;background:#729bb5}.scanning .device-led{background:#cef5a1;box-shadow:4px 0 #cef5a1}
.scanner-bench .tray-card{border:var(--pixel) solid #688d81;padding:10px 5px;gap:10px}.scanner-bench .tray-card.scanned{border-color:#bae79c}
.scan-ray{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:3;image-rendering:pixelated}
.scan-ray path{fill:none;stroke:#c7f99b;stroke-width:2;stroke-dasharray:4 3;stroke-linecap:butt}
.dose-exchange{display:grid;gap:10px;margin:12px 0 18px}.dose-exchange p{margin:0;font-size:.84em}.dose-exchange small{font-size:.68em;margin-bottom:3px;color:#d9bf82}
.panel:has(.manual-fields){position:relative}
.manual-fields{display:grid;grid-template-columns:1fr 1fr;align-content:center;gap:12px}
.manual-fields label{min-width:0}.manual-fields input,.manual-fields select{width:100%;min-width:0}
.manual-fields>p,.manual-fields>button{grid-column:1/-1}

.entry-interruption{position:absolute;left:48%;right:3%;top:27%;bottom:4%;padding:4%;background:#173a42;border:var(--pixel) solid #d9bf82;display:flex;flex-direction:column;justify-content:center;gap:14px}
.entry-interruption p{margin:0}.entry-replies{display:grid;gap:10px}.entry-replies button{font-size:.8em;line-height:1.05}
.scan-conversation{padding:8px 12px;background:#274b50;min-height:3.2em;display:flex;align-items:center;gap:18px}
.scan-conversation p{margin:0;font-size:.78em;flex:1}.scan-conversation small{color:#e2c88e;display:block;margin-bottom:3px}
.scan-chat-options{display:flex;gap:10px;max-width:50%}.scan-chat-options button{font-size:.7em;padding:6px 10px;min-height:32px}
.scanning-panel h2{margin-bottom:12px}.scanning-panel .scanner-bench{padding-top:1%}
@media(max-height:600px){
 .manual-fields{gap:5px}.entry-interruption{gap:7px;padding:3%;top:24%;bottom:3%}.entry-replies{gap:6px}.entry-replies button,.entry-interruption>button{font-size:14px;min-height:28px;padding:4px 6px}
 .scan-conversation{padding:5px 7px;gap:10px;min-height:43px}.scan-conversation p{font-size:12px;line-height:1.05}.scan-conversation small{font-size:10px;margin-bottom:1px}.scan-chat-options{gap:5px}.scan-chat-options button{font-size:12px;padding:3px 5px;min-height:26px}.scanning-panel h2{margin-bottom:6px}
 .room-action .prep-progress{font-size:12px;gap:10px}.room-action>button{width:29%;font-size:13px;padding:5px}
 .scanner-bench{grid-template-columns:15% 1fr;gap:2%;padding:1% 0}.scanner-bench .scan-tray{gap:6px}.scanner-bench .tray-card{gap:5px;padding:6px 3px}.scanner-bench .tray-card>b{font-size:13px}.scanner-bench .tray-card .carton-art{height:8cqw;max-width:85%}.scanner-bench .scan-buttons{gap:5px}.scanner-bench .matrix-button img{width:30px;height:30px}.scanner-bench .one-d-button .linear-demo{width:25px;height:17px}.scanner-bench .scan-result{font-size:11px}
 .scan-device{gap:5px;padding-bottom:13%}.scan-device img{width:95%;height:14cqw}.scan-device b{font-size:15px}.scan-device small{font-size:10px}.device-led{width:9px;height:3px}
 .scanning-panel .panel-footer{margin-top:8px}.scanning-panel .panel-footer p{font-size:12px;max-width:65%}
 .dose-exchange{gap:7px;margin:7px 0 10px}.dose-exchange p{font-size:14px;line-height:1.12}.dose-exchange small{font-size:10px;margin-bottom:2px}.vaccination-card .dose-list{margin-bottom:6px}.vaccination-card{padding:10px 12px}
 .scanning-panel{padding:2%}.scanning-panel .scanner-bench .tray-card{gap:3px;padding:4px 3px}.scanning-panel .tray-card .carton-art{height:6cqw}.scanning-panel .scan-buttons button{min-height:30px;padding:3px}.scanning-panel .matrix-button img{width:26px;height:26px}.scanning-panel .scan-conversation{min-height:38px}.scanning-panel .scan-device img{height:11cqw}
}

.motion-setting{display:flex;align-items:center;gap:6px;font-size:14px}.benefits>div{min-width:0}.benefits{grid-template-columns:repeat(2,minmax(0,1fr))}

/* Reserve status space before a check appears; glyph metrics cannot move names. */
.status-mark{display:inline-block;flex:0 0 1.1em;width:1.1em;height:1em;font-style:normal;line-height:1;text-align:center}
.dose-list>span,.scan-result{display:flex;align-items:center;gap:.3em;line-height:1.2}
.dose-name,.scan-result>b{font:inherit;white-space:nowrap}
.dose-list{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:5px}
.dose-list>span{min-width:0;padding:5px 4px}

.screening-dialogue p+small{display:block;margin-top:10px}.screening-dialogue>div{max-width:85%}
@media(max-height:600px){.screening-dialogue p{font-size:15px;line-height:1.1}.screening-dialogue p+small{margin-top:5px}.screening-dialogue{padding:10px;gap:8px}.screening-dialogue>div{max-width:80%}}

#manual-lot[aria-invalid=true]{border-color:#bd863b}

.review-client{float:right;width:48%;margin-left:2%;margin-bottom:8px}.panel:has(.review-client)>.panel-grid{clear:both}

/* Fit phone and full-screen play to the usable screen, including iPhone insets. */
@media (pointer:coarse) and (max-width:1024px), (display-mode:standalone){
 body{height:100dvh;min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
 .masthead{height:34px;flex:0 0 34px;padding:0 8px;gap:8px;width:100%}.edition{display:none}.brand{font-size:15px}.brand-mark{font-size:16px;margin-right:4px}
 .top-actions{gap:8px;font-size:12px}.top-actions button{min-height:28px;padding:3px 7px;white-space:nowrap}.motion-setting{font-size:12px}
 main{padding:0;min-height:0;width:100%}
 #game{width:min(100%,calc((100dvh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9));border:0;box-shadow:none}
}
.fullscreen-view{height:100dvh;min-height:0;padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);overflow:hidden}
.fullscreen-view .masthead{height:34px;flex:0 0 34px;width:100%;padding:0 8px}
.fullscreen-view main{padding:0;min-height:0}
.fullscreen-view #game{width:min(100%,calc((100dvh - 34px - env(safe-area-inset-top) - env(safe-area-inset-bottom))*16/9));border:0;box-shadow:none}
@media(orientation:portrait) and (max-width:700px){
 .masthead{flex-wrap:wrap;height:auto;min-height:68px;flex-basis:68px;padding:4px 8px;justify-content:center;gap:2px}.top-actions{width:100%;justify-content:center;gap:8px}
 .masthead .brand{height:auto;padding:0}.edition{display:none}main{min-height:0}
 #game,.fullscreen-view #game{width:100%;height:100%;aspect-ratio:auto}
 .fullscreen-view .masthead{height:68px;flex-basis:68px}
}
#fullscreen-help{max-height:calc(100dvh - 32px);overflow:auto}#fullscreen-help p+p{margin-top:12px}

/* A dedicated close-up keeps the client visible without covering the record. */
.record-screen{display:grid;grid-template-columns:21% minmax(0,1fr);gap:2%;padding:3%}
.record-screen>.panel{width:100%;min-width:0;padding:3%;max-height:100%}
.client-closeup{align-self:center;min-width:0;text-align:center}
.client-closeup small{margin-top:12px;font-size:1em}
.client-portrait{display:block;width:100%;height:auto;aspect-ratio:43/51;image-rendering:pixelated;border:var(--pixel) solid #d9bf82;background:#274b50;overflow:hidden}
.portrait-speaking-cue{opacity:0}.speaking .portrait-speaking-cue{opacity:1}
.record-screen .panel-grid{gap:4%}.record-screen .paper{padding:5%}.record-screen .paper dl{column-gap:6px}
.record-screen .scan-chat-options{max-width:48%}
@media(max-height:600px){
 .record-screen{grid-template-columns:19% minmax(0,1fr);padding:2%;gap:2%}
 .record-screen>.panel{padding:2%}.client-closeup small{font-size:14px;margin-top:6px}
 .record-screen .paper{padding:6px}.record-screen .paper dl{font-size:12px;gap:3px}
 .record-screen .entry-interruption{padding:3%;gap:6px}.record-screen .entry-replies button{font-size:13px;padding:4px}
 .record-screen .scan-detail-summary dl{font-size:14px}.record-screen .scan-detail-summary h3{font-size:16px}
 .record-screen .scan-chat-options button{font-size:11px;padding:3px}.record-screen .scan-conversation p{font-size:12px}
 .record-screen .scanner-bench .tray-card>b{font-size:12px}.record-screen .scan-result{font-size:10px}
 .record-screen .review-client{width:50%;margin-bottom:4px}.record-screen .panel-footer{gap:8px}
 .record-screen .panel-footer button{font-size:13px;padding:5px 7px}.record-screen .panel-footer p{font-size:11px}
}

@media(pointer:coarse){.entry-form input,.entry-form select{font-size:16px}}

/* The opaque error covers the printed lot until the player rechecks it. */
.lot-error{position:fixed;margin:0;max-width:none;max-height:none;box-sizing:border-box;padding:clamp(12px,2cqw,28px);background:#173a42;border:var(--pixel) solid #adc4ae;color:var(--cream)}
.lot-error[open]{display:flex;flex-direction:column;justify-content:center;align-items:flex-start;gap:16px}
.lot-error p{font-size:clamp(14px,1.65cqw,24px);line-height:1.15}.lot-error small{font-size:clamp(11px,1.2cqw,17px)}
.lot-error button{margin:0;font-size:clamp(13px,1.45cqw,20px)}
.lot-error::backdrop{background:#061c2626}
@media(max-height:600px){.lot-error{padding:10px}.lot-error[open]{gap:8px}.lot-error button{min-height:28px;padding:4px 6px}}

/* Every client exchange occupies the same stable bottom dock. */
#game{--speech-height:clamp(104px,16cqw,224px)}
#ui .client-speech{position:absolute;inset:auto 3% 3%;height:var(--speech-height);width:auto;max-width:none;margin:0;padding:1.4% 2%;border:var(--pixel) solid #adc4ae;background:#173a42;box-shadow:var(--pixel) var(--pixel) 0 #09262e;overflow:auto}
#ui .entry-interruption.client-speech{display:grid;grid-template-columns:1fr 1.2fr;grid-template-rows:auto 1fr;gap:5px 3%;align-items:center}
.entry-interruption.client-speech>small{grid-column:1}.entry-interruption.client-speech>p{grid-column:1;grid-row:2}.entry-interruption.client-speech>.entry-replies,.entry-interruption.client-speech>button{grid-column:2;grid-row:1/3}
#ui .scan-conversation.client-speech{float:none;display:flex;align-items:center;gap:3%}
#ui .record-screen{bottom:calc(var(--speech-height) + 5%);padding:2% 3% 0}
.record-screen .carton-art{max-height:7cqw;object-fit:contain}.record-screen .panel-grid{margin-top:2%}
#ui .vaccination-card{top:4%;bottom:auto;height:23%;padding:1.5% 2%;overflow:auto}
.vaccination-card .dose-list{margin-bottom:8px}.vaccination-card h2{margin:5px 0;font-size:2.7cqw}
.vaccination-speech .dose-exchange{margin:0;gap:8px}.vaccination-speech .dose-exchange p{margin:0}.vaccination-speech>div>p{margin-bottom:6px}
@media(max-height:600px){
 #ui .client-speech{padding:8px 10px;gap:8px}.client-speech .reply-options{gap:4px}.client-speech .reply-options button{min-height:24px;padding:3px 6px;font-size:13px}
 .record-screen .panel h2{font-size:23px;margin:3px 0}.record-screen .visit-status{font-size:11px;margin-top:4px}
 .record-screen .carton-art{max-height:30px;margin-bottom:2px}.record-screen .package-paper dl{margin-top:2px}
 .record-screen .entry-form{gap:3px}.record-screen .entry-form label{gap:2px;font-size:12px}.record-screen .entry-form input,.record-screen .entry-form select{min-height:25px;padding:2px 5px}
 .record-screen .entry-form p{font-size:11px;line-height:1.05;min-height:1em}.record-screen .entry-form button{min-height:25px;padding:3px 7px;font-size:13px}
 .record-screen .scanning-panel .scanner-bench .carton-art{height:4cqw}.record-screen .scanner-bench .scan-device img{height:7cqw}.record-screen .scan-device{gap:2px;padding-bottom:4%}
 .record-screen .scanner-bench .tray-card{gap:2px;padding:3px}.record-screen .scanning-panel .panel-footer{margin-top:4px}
 #ui .vaccination-card{height:24%;padding:8px 10px}.vaccination-card h2{font-size:23px;margin:2px 0}.vaccination-card .dose-list{margin-bottom:4px;font-size:11px}.vaccination-card>small{font-size:10px}
 .vaccination-speech .dose-exchange{gap:4px}.vaccination-speech .dose-exchange p{font-size:13px;line-height:1.05}.vaccination-speech .dose-exchange small{font-size:10px;margin-bottom:2px}.vaccination-speech>div>p{font-size:12px;margin-bottom:4px}
 .screening-dialogue.client-speech p{font-size:13px;line-height:1.05}.screening-dialogue.client-speech p+small{margin-top:4px}.screening-dialogue.client-speech>div{max-width:100%}
}

.unrevealed{opacity:0}
#ui:not(:has(.client-speech[data-typing=true])) .client-mouth{opacity:0}
.benefits-screen{display:grid;grid-template-columns:20% minmax(0,1fr);gap:3%;padding:3%}
.benefits-screen>.panel{width:100%;min-width:0}.finale-scanner{text-align:center}.finale-scanner img{display:block;width:100%;max-height:32cqw;object-fit:contain;image-rendering:pixelated}.finale-scanner small{font-size:1.25em;margin-top:14px}
@media(max-height:600px){.benefits-screen{padding:2%;gap:2%}.benefits-screen .benefits{gap:7px 12px}.benefits-screen .benefits b{font-size:13px}.benefits-screen .benefits p{font-size:11px}.benefits-screen .panel-footer{flex-wrap:wrap;gap:5px}.finale-scanner small{font-size:16px;margin-top:6px}}

#game:is([data-phase=manual],[data-phase=multi-scan],[data-phase=multi-review]) #ui{background:#10282e}
#ui .dialogue.client-speech{align-items:center}.dialogue.client-speech>button{align-self:end}
@media(max-height:600px){.record-screen .scan-detail-summary h3{margin:2px 0}.record-screen .scan-detail-summary dl{margin:4px 0;gap:4px;line-height:1.05}.record-screen .panel-footer{margin-top:5px}}

.record-screen>.scanning-panel{padding:2%}.record-screen .scanning-panel .panel-footer{margin-top:12px}
.record-screen .scanning-panel .tray-card{gap:6px}.record-screen .scanning-panel .tray-card .carton-art{height:5cqw;max-height:5cqw}
.record-screen .scanning-panel .scan-device img{height:9cqw}
@media(max-height:600px){.record-screen>.scanning-panel{padding:1%}.record-screen .scanning-panel .panel-footer{margin-top:3px}.record-screen .scanning-panel .tray-card{gap:2px}.record-screen .scanning-panel .tray-card .carton-art{height:4cqw;max-height:4cqw}.record-screen .scanning-panel .scan-device img{height:7cqw}}

.record-screen>.panel{padding:2%}.record-screen .panel-grid{margin-top:1%}
.record-screen .package-paper .carton-art{max-height:5cqw}.record-screen .panel-footer{margin-top:10px}
@media(max-height:600px){.record-screen>.panel{padding:1%}.record-screen .panel-footer{margin-top:3px}.record-screen .package-paper .carton-art{max-height:30px}}
@media(max-height:600px){.lot-error{padding:8px}.lot-error>small{display:none}}

/* Chapter controls live outside the changing dialogue and remain keyboardable. */
.chapter-navigation{position:absolute;z-index:12;top:1%;right:1.5%;font-size:clamp(16px,1.6cqw,22px)}
.chapter-navigation[hidden]{display:none}
.chapter-navigation button{min-height:38px;padding:4px 10px;background:#173a42;border-width:2px;white-space:nowrap}
.chapter-navigation span{color:var(--gold)}
.lot-error .chapter-navigation{position:fixed}
.lot-error .chapter-navigation button{font-size:inherit;min-height:38px;padding:4px 10px}
#game:has(.chapter-navigation:not([hidden])) .chapter{max-width:calc(97% - 160px)}
#game:has(.chapter-navigation:not([hidden])) .setup-ribbon{padding-right:160px}
#game:has(.chapter-navigation:not([hidden])) .fridge-plan{top:max(7%,48px)}
#game:has(.chapter-navigation:not([hidden])) .arcade-top{right:max(4%,160px);gap:10px}
.title-actions #play-vax-lanes{border-color:var(--gold)}
@media(max-height:600px){
 .chapter-navigation{font-size:16px}
 .chapter-navigation button,.lot-error .chapter-navigation button{min-height:32px;padding:3px 7px}
 #game:has(.chapter-navigation:not([hidden])) .setup-ribbon{padding-right:135px}
 #game:has(.chapter-navigation:not([hidden])) .arcade-top{right:140px}
 #game:has(.chapter-navigation:not([hidden])) .fridge-plan{top:42px}
 .title-actions{gap:7px}
}
