*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#0b0b0f;color:#f5edda;font-family:Consolas,'Courier New',monospace;display:grid;place-items:center}main{width:min(96vw,calc((100dvh - 100px)*4/3),1000px)}.cabinet{border:1px solid #34343b;background:#050506;padding:10px;box-shadow:0 20px 70px #000}header,footer{display:flex;align-items:center;justify-content:space-between;gap:8px}header{height:32px;font-size:12px;letter-spacing:2px}nav{display:flex;gap:12px}button{font:inherit;color:inherit;background:none;border:0;cursor:pointer}nav button{font-size:10px;padding:6px;letter-spacing:1px}button:focus-visible{outline:2px solid #ffc861;outline-offset:1px}.red{color:#ff3746}#game{width:100%;aspect-ratio:4/3;background:#090a10;position:relative;overflow:hidden;border:3px solid #e5dfcf;container-type:inline-size}.scene{height:60%;position:relative;overflow:hidden;background:#090b19}canvas,#art{width:100%;height:100%;object-fit:contain;image-rendering:pixelated;display:block}#art{position:absolute;inset:0}#art[hidden],[hidden]{display:none!important}.panel{height:40%;border-top:3px solid #e5dfcf;padding:2cqw 3cqw;position:relative;background:#07080c}.eyebrow{display:flex;justify-content:space-between;font-size:1.4cqw;color:#ffbf57;letter-spacing:.2cqw;margin-bottom:1.1cqw}#dialogue{font-size:1.85cqw;line-height:1.4;white-space:pre-line;min-height:6cqw}#choices{display:grid;gap:.45cqw;margin-top:1cqw}#choices button{text-align:left;position:relative;padding:.4cqw 0 .4cqw 3cqw;font-size:1.85cqw;line-height:1.3;min-height:2.8cqw}#choices button.selected{color:#ffca66}#choices button.selected:before{content:'▶';position:absolute;left:0;color:#ff3d4c;animation:blink .85s steps(2,end) infinite}#hint{position:absolute;bottom:1cqw;right:2cqw;font-size:1.2cqw;color:#777b91}#title,#end{position:absolute;inset:0;display:flex;align-items:center;justify-content:center;flex-direction:column;text-align:center;background:linear-gradient(#070817bb,#07081730)}#title small{font-size:1.4cqw;letter-spacing:.4cqw;color:#ffc86b}h1{font-size:8.8cqw;line-height:.94;letter-spacing:-.6cqw;margin:2cqw 0;color:#fff7e5;text-shadow:4px 4px #c8243f,8px 8px #080b1a}h1 span{font-size:13cqw}#title p,#end p{font-size:1.3cqw;letter-spacing:.18cqw}#badge{position:absolute;bottom:1.5cqw;left:2cqw;font-size:1.2cqw;background:#080a13dd;padding:.7cqw 1cqw;color:#ddd}footer{font-size:8px;letter-spacing:.5px;min-height:27px;color:#8e8d96}.note{font-size:10px;color:#777784;text-align:center;margin:10px 0 0}.crt:after{content:'';pointer-events:none;position:absolute;inset:0;background:repeating-linear-gradient(transparent 0px,transparent 3px,#0002 4px);z-index:10}#game.transition .scene{animation:reveal .3s steps(5)}#game.shake .scene{animation:shake .25s steps(3)}@keyframes blink{50%{opacity:0}}@keyframes reveal{from{opacity:0}to{opacity:1}}@keyframes shake{25%{transform:translateX(4px)}75%{transform:translateX(-4px)}}@media(prefers-reduced-motion:reduce){*,*:before{animation:none!important}}@media(max-width:600px){main{width:min(98vw,calc((100dvh - 85px)*4/3))}.cabinet{padding:5px}footer span:last-child{display:none}header{letter-spacing:0}nav{gap:2px}.note{font-size:8px}#choices button{padding-top:.65cqw;padding-bottom:.65cqw}}

/* Full-resolution approved screens with live controls covering printed dialogue. */
#game{border:0;background:#000}.scene{height:100%;background:#000}#canvas,#title,#end,#badge{display:none!important}#art{object-fit:fill}.panel{position:absolute;left:3.3%;right:3.3%;top:73%;height:25%;padding:1cqw 2.8cqw;background:#000;border:3px solid #e5dfcf}.eyebrow{font-size:1.05cqw;margin-bottom:.5cqw}#dialogue{font-size:1.65cqw;line-height:1.25;min-height:0}#choices{gap:.15cqw;margin-top:.6cqw}#choices button{font-size:1.65cqw;line-height:1.2;min-height:2.4cqw;padding:.25cqw 0 .25cqw 2.8cqw}#hint{font-size:.85cqw;bottom:.35cqw;right:1cqw}#game[data-scene="home"] .panel{top:70.4%;left:37.8%;right:37%;height:17.6%;padding:1.2cqw 1cqw;border:0}#game[data-scene="home"] .eyebrow{font-size:1.5cqw;letter-spacing:0;justify-content:center;margin-bottom:.9cqw}#game[data-scene="home"] #dialogue,#game[data-scene="home"] #hint{display:none}#game[data-scene="home"] #choices button{font-size:2.25cqw;font-weight:bold;min-height:3.7cqw;padding-left:5cqw}#game[data-scene="home"] #choices button:before{left:1.5cqw}#game[data-scene="end"] .panel{display:none}#game[data-scene="intro"] .panel{top:81.5%;height:17%;padding:.8cqw 2cqw}#game[data-scene="intro"] .eyebrow{display:none}#game[data-scene="intro"] #dialogue{font-size:1.5cqw}.note{color:#9a919d}@media(max-width:600px){.panel{border-width:2px}#choices button{padding-top:.25cqw;padding-bottom:.25cqw}}
@media(max-width:600px){#game:not([data-scene="home"]):not([data-scene="intro"]):not([data-scene="end"]) .panel{top:70%;height:28%}#game:not([data-scene="home"]):not([data-scene="intro"]) #dialogue{font-size:2cqw}#game:not([data-scene="home"]):not([data-scene="intro"]) #choices button{font-size:2cqw;min-height:2.8cqw}.eyebrow{font-size:1.3cqw}}
#game[data-scene="intro"] .panel{left:1.5%;right:1.5%;top:79.8%;height:18.5%}

.portrait-choice{display:none;position:absolute;top:34%;width:25%;height:56%;padding:0;background:transparent;border:0;z-index:2;touch-action:manipulation}.portrait-zach{left:11.3%}.portrait-kristy{left:65%}#game[data-scene="home"] .portrait-choice{display:block}.portrait-choice:hover,.portrait-choice:focus-visible{outline:3px solid #ffca66;outline-offset:-3px}
/* Readable dialogue and generous mobile touch targets. */
#game:not([data-scene="home"]):not([data-scene="end"]) .panel{top:59%;height:39%;padding:1.2cqw 2cqw}
#game:not([data-scene="home"]) #dialogue{font-size:2.2cqw;line-height:1.3}
#game:not([data-scene="home"]) #choices button{font-size:2.2cqw;line-height:1.25;min-height:3.8cqw;padding:.5cqw 0 .5cqw 3cqw}
.eyebrow{font-size:1.4cqw}
#hint{font-size:1.15cqw}
@media(max-width:600px) and (orientation:portrait){
 main{width:98vw}.cabinet{padding:5px}
 #game:not([data-scene="home"]):not([data-scene="end"]){aspect-ratio:auto}
 #game:not([data-scene="home"]):not([data-scene="end"]) .scene{height: min(53cqw,27dvh)}
 #game:not([data-scene="home"]):not([data-scene="end"]) #art{height:75cqw}
 #game:not([data-scene="home"]):not([data-scene="end"]) .panel{position:relative;top:auto;left:auto;right:auto;height:auto;min-height:240px;padding:12px 12px 22px;border:2px solid #e5dfcf}
 #game:not([data-scene="home"]) #dialogue{font-size:clamp(14px,3.9vw,18px)!important;line-height:1.35}
 #game:not([data-scene="home"]) #choices{gap:4px;margin-top:10px}
 #game:not([data-scene="home"]) #choices button{font-size:clamp(14px,3.9vw,18px)!important;line-height:1.3;min-height:44px!important;padding:7px 0 7px 20px}
 .eyebrow{font-size:10px;margin-bottom:8px}#hint{font-size:9px;bottom:5px;right:8px}
 #game[data-scene="home"] .panel{left:36%;right:35%;top:69%;height:23%;padding:1cqw}
 #game[data-scene="home"] .eyebrow{font-size:2.4cqw}
 #game[data-scene="home"] #choices button{font-size:4cqw;min-height:5.5cqw;padding-left:4cqw}
 #game[data-scene="home"] #choices button:before{left:0}
 footer{font-size:9px}.note{font-size:9px}
}



/* Opening and level menu, independent of the original Level 1 scenes. */
#game[data-scene="opening"] #title,#game[data-scene="levels"] #title{display:flex!important;background:radial-gradient(ellipse at 50% 20%,#4b163e 0%,#10152e 48%,#05050c 85%);padding-bottom:28%}
#game[data-scene="opening"] .panel,#game[data-scene="levels"] .panel{top:62%!important;height:35%!important;left:5%;right:5%;border:2px solid #f3cf72;background:#070810ee}
#game[data-scene="opening"] .eyebrow{display:none}
#game[data-scene="opening"] #choices button{text-align:center;font-size:3cqw;min-height:6cqw}
#game[data-scene="opening"] #choices button.selected:before{position:static;margin-right:1cqw}
#game[data-scene="levels"] #title small,#game[data-scene="levels"] #title p{display:none}
#game[data-scene="levels"] #dialogue{color:#9fa9ce}
#game[data-scene="levels"] #choices button{min-height:4.5cqw}
@media(max-width:600px) and (orientation:portrait){
#game[data-scene="opening"],#game[data-scene="levels"]{aspect-ratio:4/3}
#game[data-scene="opening"] .scene,#game[data-scene="levels"] .scene{height:100%}
#game[data-scene="opening"] .panel,#game[data-scene="levels"] .panel{position:absolute;top:57%!important;left:3%;right:3%;height:41%!important;min-height:0;padding:2cqw}
#game[data-scene="opening"] #dialogue,#game[data-scene="levels"] #dialogue{font-size:2.4cqw!important}
#game[data-scene="opening"] #choices,#game[data-scene="levels"] #choices{gap:0;margin-top:1cqw}
#game[data-scene="opening"] #choices button,#game[data-scene="levels"] #choices button{font-size:2.9cqw!important;min-height:6cqw!important;padding:1cqw 0 1cqw 4cqw}
#game[data-scene="opening"] #hint,#game[data-scene="levels"] #hint{display:none}
}
@media(max-width:600px) and (orientation:portrait){
 #game[data-scene="opening"],#game[data-scene="levels"]{aspect-ratio:auto!important;height:min(620px,calc(100dvh - 130px))!important}
 #game[data-scene="opening"] .scene,#game[data-scene="levels"] .scene{height:100%!important}
 #game[data-scene="opening"] .panel,#game[data-scene="levels"] .panel{position:absolute!important;top:55%!important;left:3%!important;right:3%!important;height:43%!important;min-height:0!important;padding:12px!important}
 #game[data-scene="opening"] #dialogue,#game[data-scene="levels"] #dialogue{font-size:13px!important;line-height:1.4}
 #game[data-scene="opening"] #choices button,#game[data-scene="levels"] #choices button{font-size:14px!important;min-height:44px!important;padding:8px 0 8px 18px!important}
 #game[data-scene="opening"] #title,#game[data-scene="levels"] #title{padding-bottom:70%}
 #game[data-scene="opening"] .eyebrow,#game[data-scene="levels"] .eyebrow{font-size:11px}
}
/* Keep complete artwork above dialogue on every screen size. */
html,body{height:auto;min-height:100%;overflow:auto}
body{display:block}main{margin:12px auto;width:min(96vw,900px)}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]){aspect-ratio:auto!important;overflow:visible}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) .scene{height:auto!important;aspect-ratio:4/3}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) #art{position:absolute;width:100%;height:100%!important;object-fit:contain}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) .panel{position:relative!important;inset:auto!important;width:100%;height:auto!important;min-height:0!important;padding:16px 18px 28px!important;margin-top:8px}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]) #dialogue{font-size:clamp(14px,2.2vw,20px)!important}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]) #choices button{font-size:clamp(14px,2.2vw,20px)!important;min-height:44px!important}

/* Portrait borders follow the full rectangles in the source artwork. */
.portrait-choice{top:33.85%;height:55.9%;width:24.75%}
.portrait-zach{left:11.2%}.portrait-kristy{left:64.8%}
.portrait-choice.selected,.portrait-choice:hover,.portrait-choice:focus-visible{outline:3px solid #ffca66;outline-offset:0;box-shadow:0 0 0 2px #b91f32}

/* Show scene artwork only; dialogue is rendered once in the accessible panel. */
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) .scene{aspect-ratio:var(--scene-ratio,4/3)!important;overflow:hidden}
#game:not([data-scene="home"]):not([data-scene="opening"]):not([data-scene="levels"]):not([data-scene="end"]) #art{height:auto!important;top:0;left:0;object-fit:fill}
