:root{color-scheme:dark;--text:#f3eee1;--green:#bad0ba;--line:#dedfd244}*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden}body{background:#111613;color:var(--text);font:14px/1.5 Arial,sans-serif}button{font:inherit;color:inherit;cursor:pointer;background:#141b17df;border:1px solid var(--line);min-height:46px;padding:10px 17px;border-radius:2px}button:hover{background:#304234}button:focus-visible,canvas:focus-visible{outline:2px solid #e5dda6;outline-offset:4px}button[aria-pressed=true]{border-color:#c2d5bf;background:#354938}[hidden]{display:none!important}#experience,#room{position:absolute;inset:0}canvas{display:block;width:100%;height:100%;touch-action:none}#intro{position:absolute;inset:0;display:flex;align-items:center;padding:clamp(26px,6vw,90px);background:linear-gradient(90deg,#0b110eef, #0b110ed9 42%,#0b110e00 100%);overflow:auto}.intro-copy{max-width:580px}.eyebrow{font-size:10px;letter-spacing:.18em;margin:0 0 16px}h1{font-size:clamp(54px,7.5vw,106px);font-weight:400;line-height:.89;letter-spacing:-.035em;margin:28px 0}h1 em{font-family:Georgia,serif;font-weight:400}.lead{font-size:21px;line-height:1.35}.description{max-width:370px;color:#cad0c5}.primary{margin-top:18px;min-width:200px;background:#e1e5d5;color:#17211b;border-color:#e1e5d5;display:flex;justify-content:space-between;align-items:center}.primary:hover{background:#fff8e7}.draft-label{font-size:10px;color:#bec6bb;letter-spacing:.08em;margin:16px 0 0}header{position:absolute;top:0;left:0;right:0;padding:26px 34px;display:flex;justify-content:space-between;align-items:start;background:linear-gradient(#0a0c0bbf,transparent);pointer-events:none}header .eyebrow{font-size:8px;margin:0 0 5px}header h2{font:400 21px Georgia,serif;margin:0}header button{pointer-events:auto}.room-footer{position:absolute;bottom:0;left:0;right:0;text-align:center;padding:26px 20px 18px;background:linear-gradient(transparent,#090e0adb 60%);pointer-events:none}.room-footer p{margin:0 0 12px;font-size:11px;color:#d8ddd2}nav{display:flex;justify-content:center;gap:8px;pointer-events:auto}.room-footer .draft-label{margin-top:12px;margin-bottom:0;font-size:9px;color:#b2b9ad}#look-left,#look-right{font-size:20px;padding:4px 14px}.sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}.no-script{position:fixed;bottom:20px;padding:20px;background:#131b15}#error{color:#ffe0a7;max-width:360px}
@media(max-width:700px){#intro{padding:30px 26px;background:linear-gradient(90deg,#0b110eee,#0b110e88)}h1{font-size:clamp(58px,16vw,85px)}header{padding:22px 20px}header h2{font-size:18px}header button{padding:9px 13px}.room-footer{padding:30px 10px 18px}nav{gap:5px}nav button{font-size:12px;padding:10px 11px}#look-left,#look-right{padding:4px 12px}.description{max-width:310px}#instructions{font-size:10px}.draft-label{font-size:9px}}
@media(max-height:650px){#intro{align-items:start;padding-top:22px}h1{font-size:58px;margin:18px 0}.lead{font-size:18px}.primary{margin-top:8px}}
@media(prefers-reduced-motion:reduce){*{scroll-behavior:auto!important}}

#staging-controls{position:absolute;left:28px;top:114px;max-width:270px;background:#101713e6;padding:18px;border:1px solid #dedfd222}#staging-controls .eyebrow{margin-bottom:12px;font-size:9px}.staging-buttons{display:grid;grid-template-columns:1fr 1fr;gap:6px}.staging-buttons button{font-size:12px;padding:8px 12px}#staging-note{font-size:12px;min-height:54px;color:#d5dbce}button:disabled{opacity:.4;cursor:wait}#about-voices{padding:7px 0;background:none;border:0;border-bottom:1px solid #c4cec499;border-radius:0;font-size:12px;min-height:40px}#voices-panel{position:absolute;inset:0;background:#080e0beb;display:grid;place-items:center;padding:28px;z-index:5}#voices-panel>div{max-width:500px;max-height:85vh;overflow:auto;padding:10px}#voices-panel h2{font:normal 40px/1.1 Georgia,serif;margin:18px 0 25px}#voices-panel p{font-size:17px;color:#d9ddce}.voice-note{font-size:13px!important;color:#aab9a7!important;line-height:1.65}#voices-close{margin-top:18px}
@media(max-width:700px){#staging-controls{top:90px;left:14px;right:14px;padding:12px 14px;max-width:none}.staging-buttons{display:flex;gap:5px}.staging-buttons button{flex:1;padding:8px 6px;font-size:11px}#staging-controls .eyebrow{margin-bottom:8px}#staging-note{min-height:0;font-size:11px;margin:10px 0 2px}#about-voices{font-size:11px;min-height:32px}#voices-panel h2{font-size:34px}}

/* R1: quiet theatre controls. Detail choices stay available without covering the stage. */
#staging-controls{top:auto;bottom:145px;left:34px;max-width:265px;padding:0;border:0;background:transparent;z-index:2}
#staging-details>summary{list-style:none;cursor:pointer;display:flex;align-items:center;justify-content:space-between;gap:40px;min-height:44px;padding:10px 16px;border:1px solid #dedfd244;background:#101713c9;font-size:12px;letter-spacing:.04em}
#staging-details>summary::-webkit-details-marker{display:none}#staging-details>summary:focus-visible{outline:2px solid #e5dda6;outline-offset:4px}
#staging-details[open]{background:#101713ee;border:1px solid #dedfd244}#staging-details[open]>summary{border:0;border-bottom:1px solid #dedfd233}
.staging-options{padding:16px}.stage-links{flex-wrap:wrap;gap:4px 18px}#staging-note{min-height:0}
#atmosphere-toggle{position:absolute;right:34px;bottom:139px;pointer-events:auto;min-height:44px;background:#101713c9;font-size:11px;border-color:#dedfd244;padding:10px 16px}
#atmosphere-toggle:disabled{opacity:.7;cursor:default}
.room-footer{padding-top:55px;background:linear-gradient(transparent,#060b08c9 80%)}
@media(max-width:700px){#staging-controls{bottom:151px;left:18px;right:auto;max-width:calc(100vw - 36px)}#staging-details>summary{min-height:44px;padding:10px 14px;gap:25px}.staging-options{width:calc(100vw - 36px);max-width:330px;padding:14px}#atmosphere-toggle{right:18px;bottom:146px}.room-footer{padding-bottom:20px}#staging-note{margin-top:12px}.room-footer nav{flex-wrap:wrap}}

/* R4: tools stay above wrapping view controls; staging opens upward without covering smoke. */
.room-tools{display:flex;justify-content:space-between;align-items:flex-end;gap:12px;margin:0 14px 12px;pointer-events:auto}
#staging-controls{position:relative;inset:auto;max-width:none;padding:0}
#atmosphere-toggle{position:static;flex-shrink:0}
#staging-details[open]{border:0;background:transparent}
#staging-details[open]>summary{border:1px solid #dedfd244;background:#101713ee}
.staging-options{position:absolute;bottom:calc(100% + 8px);left:0;width:330px;max-width:calc(100vw - 36px);max-height:max(112px,calc(100dvh - 320px));overflow-y:auto;overscroll-behavior:contain;background:#101713f5;border:1px solid #dedfd244;text-align:left}
@media(max-width:700px){.room-tools{margin-left:8px;margin-right:8px}#staging-controls{max-width:none}.staging-options{width:330px}}

@media(orientation:landscape) and (max-height:480px) and (min-width:500px){
 .room-footer{display:grid;grid-template-columns:auto 1fr;align-items:end;gap:8px;padding:26px 10px 10px}
 .room-tools{margin:0;gap:8px}#staging-details>summary{gap:8px;padding:10px 11px}
 #atmosphere-toggle{padding:10px 11px}.room-footer nav{gap:4px;flex-wrap:nowrap;justify-content:flex-end}
 .room-footer nav button{padding:8px;font-size:11px}#look-left,#look-right{padding:4px 10px}
 #instructions{display:none}.room-footer .draft-label{grid-column:1/-1;margin:0}
}
