#tbt-investigation{position:absolute;inset:0;z-index:auto;pointer-events:none}#tbt-investigation[hidden],#tbt-case-panel[hidden]{display:none!important}#tbt-investigation button{pointer-events:auto;z-index:7}
.case-hotspot{position:absolute;background:transparent;border:0;padding:0}.case-hotspot span{opacity:0}.case-hotspot:hover{box-shadow:inset 0 0 0 2px #f2dc8a;background:#edd49a22}.case-hotspot:hover span{opacity:1;background:#fff1c9;color:#332a20;padding:5px;font:21px 'Nintendo DS',monospace}
.case-npc{position:absolute;border:0;background:none;padding:0;filter:drop-shadow(0 3px 2px #20160966)}.case-npc:hover{background:none;filter:drop-shadow(0 0 5px #ffe7a0)}.case-npc i{display:block;width:100%;height:100%;background:url('tbt-npc-sheet-v1.png') calc(var(--npc-column)*50%) bottom/300% 100% no-repeat}.case-npc span{position:absolute;bottom:3%;left:10%;right:10%;font:20px 'Nintendo DS';color:#fff4ce;text-shadow:0 1px 3px #000;opacity:0}.case-npc:hover span{opacity:1}
.case-return{position:absolute;bottom:9%;width:8%;height:10%;--arrow-angle:-90deg;background:none;border:0;padding:0}
.case-notebook{position:absolute;display:flex;flex-direction:column;align-items:center;background:#8b5b32;color:#fff0c6;border:2px solid #322416;border-radius:7px;padding:3px 8px;font:30px 'Nintendo DS';box-shadow:2px 3px #30201466;min-width:58px}.case-notebook span{font-size:17px}.case-notebook:hover{background:#a27345}
.case-paper-prop{position:absolute;display:grid;place-items:center;border:1px solid #3f3224;background:#ead7a2;color:#4f3e28;box-shadow:1px 3px #1c150d44;padding:2px;transform:rotate(-2deg);font:clamp(7px,1.3cqw,13px) 'Syne Mono',monospace}.case-clock-prop{position:absolute;display:grid;align-content:center;border:3px solid #37281d;border-radius:6px;background:#cfb57c;color:#37281d;padding:3px;font:clamp(12px,2.6cqw,26px) 'Nintendo DS',monospace}.case-clock-prop small{font-size:clamp(5px,1cqw,10px)}
.case-paper-prop{background:repeating-linear-gradient(0deg,#ead7a2 0 7px,#aa8e5738 7px 8px);border-radius:1px;outline:1px solid #b69a66;outline-offset:-3px}.case-paper-prop:hover{background:#fff0c2;box-shadow:0 0 5px #ffe5a5}.case-paper-prop span{font-size:clamp(6px,1cqw,10px);white-space:normal}.case-paper-prop::after{content:'';position:absolute;right:0;bottom:0;border-width:0 0 7px 7px;border-style:solid;border-color:transparent transparent #bba274 transparent}
#tbt-case-panel{position:absolute;inset:3% 4%;z-index:24;background:#e9d6a9;border:3px solid #3b2919;border-radius:10px;box-shadow:0 0 0 100vmax #18120a88,0 5px #251d1455;overflow:auto;scrollbar-width:thin;color:#332a20;font-family:'Nintendo DS',monospace}
.tbt-case-inspecting #akiel-character,.tbt-case-inspecting #ds-dialogue{visibility:hidden}.tbt-case-inspecting .game-tools{pointer-events:none}
.case-sheet{padding:3% 4%}.case-sheet header{display:flex;justify-content:space-between;padding:0 0 10px;border-bottom:2px solid #a88752}.case-sheet h2{margin:0;font:clamp(21px,3.6cqw,35px) 'Nintendo DS',monospace}.case-close{font:30px/1 'Nintendo DS';padding:2px 9px;background:#87542d;color:#fff4ce;border:2px solid #382414}.case-date{font:clamp(9px,1.4cqw,14px) 'Syne Mono',monospace;letter-spacing:.04em;color:#705737}.case-document,.case-notes article{padding:12px 16px;background:#fff4d6;border:1px solid #b69b6b;margin:12px 0}.case-document p,.case-notes p,.case-instructions,.case-feedback{font:clamp(20px,3cqw,29px)/1.25 'Nintendo DS',monospace}.case-notes h3{font:26px 'Nintendo DS';margin:0}.case-notes p{margin:5px 0}.case-footnote{font-size:22px;color:#75613d}.case-paper-button{font:clamp(18px,2.7cqw,28px)/1 'Nintendo DS',monospace;background:#745134;color:#fff1c9;border:2px solid #382414;padding:7px 13px;border-radius:5px}.case-paper-button:hover{background:#936e43}.case-actions{display:flex;justify-content:space-between;gap:10px}.case-table-wrap{overflow:auto}.case-sheet table{border-collapse:collapse;width:100%;font:clamp(18px,2.7cqw,27px) 'Nintendo DS',monospace}.case-sheet th,.case-sheet td{border:1px solid #ad8f5c;padding:7px 5px;background:#f9edca}.case-sheet select{width:100%;min-width:70px;color:#332a20;background:#fff7dc;border:1px solid #9b7a4e;border-radius:3px;font:inherit;padding:5px}.case-feedback{min-height:2.5em;color:#6d4025}
.case-sheet .case-close{width:30px;height:30px;font:24px/1 Arial,sans-serif;padding:0;display:grid;place-items:center;flex-shrink:0}
.case-envelope{position:relative;text-align:center;padding:8px;background:#cbb17f;border:1px solid #937644}.case-envelope>span{display:block;font:22px 'Nintendo DS'}.case-photograph{width:55%;margin:12px auto;transform:rotate(-3deg);background:#fff1d5;padding:8px 8px 18px;box-shadow:2px 5px 8px #3e2b1966}.case-photo-image{position:relative;aspect-ratio:4/3;background:url('tbt-main-studio-2007-v3.png') center/cover;overflow:hidden;filter:sepia(.35) contrast(.9)}.case-photo-image img{position:absolute;height:52%;width:auto;bottom:10%;left:50%;transform:translateX(-50%)}.case-photograph small{font:14px 'Syne Mono'}.case-photo-back{min-height:220px;background:#fff1d5;display:grid;align-content:center;text-align:center;margin:20px 10%;padding:20px;transform:rotate(-2deg);box-shadow:3px 4px #38241455}.case-photo-back p{font:clamp(25px,4cqw,40px)/1.4 'Nintendo DS'}.case-photo-back span{font-size:28px}
@media(max-width:600px){#tbt-case-panel{inset:3% 2%;border-width:2px}.case-sheet{padding:3%}.case-sheet th,.case-sheet td{padding:3px}.case-sheet select{min-width:50px;padding:3px;font-size:17px}.case-date{font-size:8px}.case-notebook{min-width:42px;font-size:23px;padding:2px 4px}.case-notebook span{font-size:14px}.case-photograph{width:75%}.case-photo-back{margin:10px 5%;min-height:150px}.case-document p,.case-notes p,.case-feedback,.case-instructions{font-size:20px}.case-paper-button{padding:5px 8px}}
/* Physical inspection: pages, binding and a wall clock rather than UI props. */
.case-npc i{transform:scaleX(var(--npc-facing,1));transform-origin:center}
.case-hotspot{cursor:pointer;border-radius:12px}
.case-hotspot:hover,.case-hotspot:focus-visible{box-shadow:inset 0 0 0 1px #fce9b985;background:#fff4ca10}
.case-hotspot span{position:absolute;bottom:100%;left:50%;transform:translateX(-50%);width:max-content;max-width:230px;pointer-events:none;border-radius:4px}
#tbt-case-panel[data-view=agenda],#tbt-case-panel[data-view=notebook]{inset:5% 5%;border:7px solid #563922;border-radius:6px 16px 16px 6px;background:linear-gradient(90deg,#bba276 0,#f0e0b7 3%,#fff2cf 7%,#f1dfb4 98%,#c3ac7f);box-shadow:0 0 0 100vmax #130e09b0,9px 12px 20px #100a09b0,inset 0 -4px #ae9366}
#tbt-case-panel[data-view=agenda]::before,#tbt-case-panel[data-view=notebook]::before{content:'';position:absolute;left:1%;top:5%;bottom:5%;width:12px;background:repeating-linear-gradient(0deg,transparent 0 24px,#493a2a 25px 28px,transparent 29px 32px);pointer-events:none}
#tbt-case-panel[data-view=agenda] .case-sheet,#tbt-case-panel[data-view=notebook] .case-sheet{padding:3% 4% 3% 6%}
#tbt-case-panel[data-view=agenda] header{border-bottom:3px double #917448}
#tbt-case-panel[data-view=agenda] th,#tbt-case-panel[data-view=agenda] td{background:transparent;border-color:#b7a079}
#tbt-case-panel[data-view=agenda] select{background:transparent;border:0;border-bottom:1px dashed #927746;border-radius:0;cursor:pointer}
#tbt-case-panel[data-view=agenda] select:hover,#tbt-case-panel[data-view=agenda] select:focus{background:#dbc39466;outline:1px solid #957442}
#tbt-case-panel[data-view=clock]{inset:5% 18%;background:radial-gradient(ellipse at top,#987254,#4d382d);border:0;border-radius:3px;box-shadow:0 0 0 100vmax #100b08b0;color:#fff0ce}
#tbt-case-panel[data-view=clock] .case-document{transform:rotate(-2deg);color:#342a1c;position:relative;box-shadow:2px 5px 8px #160b0866}
#tbt-case-panel[data-view=clock] .case-document::before{content:'';position:absolute;left:38%;top:-9px;width:25%;height:18px;background:#d4c28aba;transform:rotate(3deg)}
#tbt-case-panel[data-view=clock] .case-date{display:none}
#tbt-case-panel[data-view=clock] .case-footnote{color:#e3cfaa}
.case-clock-detail{position:relative;width:clamp(90px,19cqw,185px);aspect-ratio:1;margin:18px auto 24px;border:8px solid #49372a;border-radius:50%;background:radial-gradient(circle,#f8edcc 60%,#c6b68b);box-shadow:2px 5px 5px #1b130d88,inset 0 0 0 2px #9b8866;color:#362d25;font:24px Georgia}
.case-clock-detail span{position:absolute}.case-clock-detail span:nth-child(1){top:3%;left:50%;transform:translateX(-50%)}.case-clock-detail span:nth-child(2){right:6%;top:42%}.case-clock-detail span:nth-child(3){bottom:3%;left:47%}.case-clock-detail span:nth-child(4){left:6%;top:42%}
.case-clock-detail i,.case-clock-detail b{position:absolute;left:48%;bottom:50%;width:4%;height:36%;background:#33281d;border-radius:4px;transform-origin:50% 100%}.case-clock-detail b{height:27%;transform:rotate(240deg)}
@media(max-width:600px){#tbt-case-panel[data-view=agenda],#tbt-case-panel[data-view=notebook]{inset:2%;border-width:4px}#tbt-case-panel[data-view=clock]{inset:2% 5%}.case-clock-detail{border-width:5px;font-size:16px}#tbt-case-panel[data-view=agenda] .case-sheet{padding:3% 3% 3% 7%}}

.tbt-past #walk-floor:focus-visible{outline:none;background:none}

.case-envelopes{display:flex;gap:4%;justify-content:center;padding:8% 0}.case-envelopes button{position:relative;isolation:isolate;width:29%;aspect-ratio:1.5;background:linear-gradient(145deg,#e4c28a,#bc9257);border:2px solid #59432d;border-radius:4px;box-shadow:3px 6px 0 #52372344;cursor:pointer;transition:transform .18s,box-shadow .18s}.case-envelopes button:nth-child(1){transform:rotate(-4deg)}.case-envelopes button:nth-child(3){transform:rotate(4deg)}.case-envelopes button:hover,.case-envelopes button:focus-visible{transform:translateY(-5px);box-shadow:3px 10px 12px #52372366;outline:2px solid #846336;outline-offset:4px}.envelope-flap{position:absolute;inset:0;clip-path:polygon(0 0,100% 0,50% 60%);background:#eed5a8;z-index:-1}.case-envelopes svg{width:40%;height:70%;fill:#c29736;stroke:#73511d;stroke-width:3;filter:drop-shadow(1px 2px 0 #fce2a8)}.case-pick{margin:20px auto;width:40%;max-width:230px;background:radial-gradient(ellipse,#4b443c,#25221f);border:5px solid #695640;border-radius:12px;padding:15px;box-shadow:0 5px 10px #23180d55}.case-pick svg{display:block;width:100%;fill:#d5aa4d;stroke:#856226;stroke-width:2}

/* Same camera proportions for Akiel and the other people in 2007. */
.tbt-past #akiel-character{width:20%}

/* Furniture occupies the rear 68%; leave a safety strip before the walking floor. */
.tbt-main-studio #walk-floor{top:76%;left:10%;right:12%;bottom:6%}

.case-photo-image.case-candid-photo{background:none;filter:sepia(.1) contrast(.98)}
.case-candid-photo img{position:static;display:block;width:100%;height:100%;object-fit:cover;transform:none}

#tbt-case-panel[data-view=guitar]{inset:0;border:0;border-radius:0;background:#211712;box-shadow:none;overflow:hidden}
.case-guitar-art{display:block;width:100%;height:100%;object-fit:cover}
.case-guitar-back{position:absolute;left:3%;bottom:6%;width:8%;height:10%;--arrow-angle:-90deg;background:none;border:0;padding:0}
/* Keep the hit target centred on the artwork's pick, without changing the image. */
.case-guitar-detail{position:absolute;left:57.5%;top:32.5%;transform:translate(-50%,-50%);width:11%;height:13%;min-width:44px;min-height:44px;background:transparent;border:0;outline:none;cursor:pointer;border-radius:40%;touch-action:manipulation;-webkit-tap-highlight-color:transparent}
.case-guitar-detail:focus-visible{outline:none}
 .case-guitar-detail::after{content:'';position:absolute;left:50%;top:50%;width:clamp(24px,5cqw,38px);height:clamp(24px,5cqw,38px);border-radius:50%;background:radial-gradient(circle,transparent 24%,#f6dda388 43%,#e8c87755 57%,transparent 75%);pointer-events:none;animation:pick-glimmer 3.2s ease-in-out infinite;transition:width .2s ease,height .2s ease,filter .2s ease}
@media (pointer:coarse),(hover:none),(max-width:600px){
 .case-guitar-detail{width:18%;height:20%;min-width:48px;min-height:48px}
}
@media (hover:hover) and (pointer:fine){
 .case-guitar-detail:hover::after,.case-guitar-detail:focus-visible::after{width:clamp(27px,5.6cqw,43px);height:clamp(27px,5.6cqw,43px);filter:brightness(1.35)}
}
@keyframes pick-glimmer{0%,100%{opacity:.45;transform:translate(-50%,-50%) scale(.9)}50%{opacity:.85;transform:translate(-50%,-50%) scale(1.12)}}
@media (prefers-reduced-motion:reduce){.case-guitar-detail::after{animation:none;opacity:.55;transform:translate(-50%,-50%)}}

/* Zone of studios: an open corridor passage, not a replacement for a door. */
.case-studios-path{--arrow-angle:0deg;padding:0;border:0;background:none}

/* Inspection takes input exclusively; decorative envelopes have no hit targets. */
.tbt-case-inspecting #tbt-investigation,.tbt-case-inspecting #tbt-controls,.tbt-case-inspecting #walk-floor,.tbt-case-inspecting .game-tools{pointer-events:none!important}
.tbt-case-inspecting #tbt-investigation button{pointer-events:none!important}
.case-envelope-table{display:block;width:100%;max-height:65cqh;margin:3% auto;border-radius:6px;box-shadow:0 4px 10px #24160d55}
#tbt-case-panel[data-view=envelopes-intro]{inset:5% 5%;overflow:auto}
.case-guitar-detail,.case-guitar-detail:hover,.case-guitar-detail:active{background:transparent!important;box-shadow:none;padding:0}

/* The table illustration is reserved for Ramiro's initial reveal. */
.case-envelope-stage{position:relative;margin:3% auto}
.case-envelope-stage .case-envelope-table{margin:0;max-height:none}
#tbt-case-panel[data-view=photo-front]{inset:0;border:0;border-radius:0;background:#493626;overflow:hidden}
#tbt-case-panel[data-view=photo-front] header{border:0}#tbt-case-panel[data-view=photo-front] h2{display:none}
#tbt-case-panel[data-view=photo-front] .case-close{position:absolute;right:3%;top:3%;z-index:2}
.case-photo-stage{position:absolute;inset:5% 5% 38%;display:flex;justify-content:center}
.case-story-photo{margin:0;height:100%;aspect-ratio:4/3;max-width:100%;display:flex;flex-direction:column;background:#fff1d5;padding:2%;box-sizing:border-box;box-shadow:3px 5px 12px #1d120c88;transform:rotate(-2deg)}
.case-story-photo img{display:block;width:100%;flex:1;min-height:0;object-fit:contain}.case-story-photo figcaption{text-align:center;font:clamp(9px,1.4cqw,14px) 'Syne Mono',monospace;padding-top:2%}
.case-photo-turn{position:absolute;left:50%;bottom:9%;transform:translateX(-50%);white-space:nowrap}
.case-photo-talking #ds-dialogue{visibility:visible!important;z-index:26}
.case-photo-talking #tbt-case-panel[data-view=photo-back] .case-photo-back{margin:4% auto;width:80%;min-height:0;padding:4%;box-sizing:border-box}
.case-photo-thought #ds-dialogue,#ds-dialogue.ds-thought{background:linear-gradient(#efe7d8,#d9cbb4)}
.case-photo-thought .ds-message>p:not(.sr-only),#ds-dialogue.ds-thought .ds-message>p:not(.sr-only){font-style:italic}
.case-photo-thought .ds-speaker span::after,#ds-dialogue.ds-thought .ds-speaker span::after{content:' · pensamiento';font-size:.72em}

#tbt-case-panel button[hidden]{display:none!important}

#tbt-case-panel[data-view=photo-front] header{display:contents}
.case-photo-talking #tbt-case-panel[data-view=photo-back] .case-photo-back p{font:clamp(18px,3cqw,28px)/1.25 'Nintendo DS',monospace}
.case-photo-talking #tbt-case-panel[data-view=photo-back] .case-photo-back span{font-size:clamp(18px,2.7cqw,26px)}

#tbt-case-panel[data-view=photo-back] .case-photo-back{margin:3% 5%;min-height:0;padding:5%}
#tbt-case-panel[data-view=photo-back] .case-photo-back p{font:clamp(20px,3.5cqw,32px)/1.25 'Nintendo DS',monospace;margin:0 0 12px}
#tbt-case-panel[data-view=photo-back] .case-photo-back span{font-size:clamp(20px,3cqw,28px)}
#tbt-case-panel[data-view=photo-back] [data-react]{display:block;margin:8px auto}
.case-photo-talking #tbt-case-panel[data-view=photo-back] header{display:none}

/* Hold the choice through the dialogue, then reveal the photograph from inside. */
.case-envelope-selected button{transition:opacity .2s ease;cursor:default;pointer-events:none}
.case-envelope-selected button.case-envelope-muted{opacity:.22}
.case-envelope-selected button:hover,.case-envelope-selected button:focus-visible{transform:none;outline:none;box-shadow:3px 6px 0 #52372344}
.case-envelope-selected button:nth-child(1){transform:rotate(-4deg)}.case-envelope-selected button:nth-child(3){transform:rotate(4deg)}
#tbt-case-panel .case-instructions[hidden],#tbt-case-panel .case-feedback[hidden]{visibility:hidden;display:block}
.case-envelope-reveal{position:absolute;inset:0;z-index:25;background:#493626;pointer-events:none}
.case-envelope-reveal .case-reveal-target{visibility:hidden}
.case-reveal-envelope{position:absolute;z-index:3;perspective:700px;border:2px solid #59432d;border-radius:4px;background:#bc9257;box-shadow:3px 6px 0 #52372344}
.case-reveal-front{position:absolute;inset:0;z-index:3;border-radius:2px;background:linear-gradient(145deg,#e4c28a,#bc9257)}
.case-reveal-envelope .envelope-flap{z-index:4;transform-origin:50% 0;backface-visibility:visible}
.case-reveal-envelope>svg{position:absolute;left:30%;top:15%;width:40%;height:70%;z-index:5;fill:#c29736;stroke:#73511d;stroke-width:3}
.case-envelope-reveal .case-reveal-moving{position:absolute;z-index:2;margin:0;max-width:none;aspect-ratio:auto;transform:rotate(0deg);padding:1.4%;overflow:hidden}

.case-npc i.case-support-npc{background-image:url('tbt-support-npcs-2007-v1.png');background-size:200% 100%;background-position:calc(var(--npc-column)*100%) bottom}
.case-studio-b-ready{position:absolute;left:70.8%;top:9.8%;width:5.6%;height:2.4%;pointer-events:none;z-index:2}
.scene>img.case-shown-photo{position:absolute;left:4%;top:16%;width:30%;height:auto;max-height:35%;aspect-ratio:4/3;object-fit:contain;background:#fff1d5;padding:1%;box-sizing:border-box;box-shadow:2px 4px 8px #1d120c77;transform:rotate(-3deg);z-index:12;pointer-events:none}
.case-hall-ramiro{position:absolute;left:54%;bottom:17%;height:57%;width:auto;max-width:none;z-index:4;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}

.case-npc i.case-support-boy{background-image:url('tbt-support-npcs-2007-v2.png')}

.case-seated-boy-art{position:absolute;inset:0;z-index:3;background:url('tbt-chico-seated-2007-v1.png') 70% 50.7%/44% 44% no-repeat;pointer-events:none}
.case-seated-target{position:absolute;border:0;background:none!important;padding:0;cursor:pointer;box-shadow:none}
#tbt-investigation:has(.case-seated-target:hover) .case-seated-boy-art{filter:drop-shadow(0 0 3px #ffe7a066)}

/* Elías works at floor level; only his transparent silhouette is interactive. */
.case-elias-cleaning-art{position:absolute;left:48.5%;bottom:18%;width:35%;height:56%;object-fit:contain;object-position:center bottom;z-index:3;pointer-events:none;transform:scale(1.12);transform-origin:center bottom}
.case-elias-target{position:absolute;border:0;background:transparent!important;box-shadow:none!important;padding:0;cursor:pointer}
#tbt-investigation:has(.case-elias-target:hover) .case-elias-cleaning-art{filter:drop-shadow(0 0 3px #ffe7a066)}

/* Adult scale calibrated against hallway Ramiro. Full-height Akiel uses 59–60%; seated and bent poses retain their physical proportions. */
.directed-composition #akiel-character,.directed-composition #walk-floor,.directed-composition #walk-marker{display:none!important}
.case-directed-akiel{position:absolute;left:24%;bottom:17%;height:60%;width:auto;max-width:none;z-index:4;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}
.case-directed-nico{position:absolute;display:block;left:59%;bottom:17%;height:50%;aspect-ratio:2/3;padding:0;border:0;border-radius:0;background:transparent!important;box-shadow:none!important;cursor:pointer}
.case-directed-nico img{position:absolute;inset:0;display:block;width:100%;height:100%;object-fit:contain;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}
.case-directed-nico:hover img,.case-directed-nico:focus-visible img{filter:drop-shadow(0 0 3px #ffe7a066)}
.case-directed-nico:focus-visible{outline:0}

/* Control room uses the same directed presentation; dialogue and envelope layers stay above it. */
.case-control-akiel{left:18%;height:60%}
.case-control-ramiro-art{position:absolute;left:48%;bottom:18%;height:57%;width:auto;max-width:none;z-index:4;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}
.case-control-ramiro-target{position:absolute;padding:0;border:0;background:transparent!important;box-shadow:none!important;cursor:pointer}
#tbt-investigation:has(.case-control-ramiro-target:hover) .case-control-ramiro-art,#tbt-investigation:has(.case-control-ramiro-target:focus-visible) .case-control-ramiro-art{filter:drop-shadow(0 0 3px #ffe7a066)}
.case-control-ramiro-target:focus-visible{outline:0}

/* Contextual pairs share the existing directed scene opt-in and interaction layer. */
.case-context-art{position:absolute;width:auto;max-width:none;z-index:4;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}
.case-context-target{position:absolute;padding:0;border:0;background:transparent!important;box-shadow:none!important;cursor:pointer}
.case-context-target:focus-visible{outline:0}
#tbt-investigation:has(.case-context-target:hover) .case-context-art,#tbt-investigation:has(.case-context-target:focus-visible) .case-context-art{filter:drop-shadow(0 0 3px #ffe7a066)}
.case-lobby-akiel{left:34%;bottom:17%;height:59%}
.case-lobby-vera{left:58%;bottom:22%;height:56%}
.case-lobby-chico{left:59%;top:31%;height:43%}
.case-second-akiel{left:24%;bottom:17%;height:60%}
.case-second-musician{left:54%;bottom:18%;height:58%}
.case-bathroom-akiel{left:18%;bottom:17%;height:60%}

/* Quiet transit compositions; the approved room pairs and click areas stay unchanged. */
.case-transit-central{left:34%;bottom:17%;height:60%}
.case-transit-landing{left:35%;bottom:17%;height:60%}
.case-transit-studios{left:33%;bottom:17%;height:59%}
.case-transit-studios.case-transit-toward-b{transform:scaleX(-1)}
.case-akiel-whistle{left:41%;bottom:17%;height:60%}
.case-whistle-line #ds-dialogue .ds-speaker{display:none}
.case-whistle-line #ds-dialogue .ds-message>p:not(.sr-only){font-style:italic}

/* Akiel calls the elevator; the seated boy never changes position. */
.case-akiel-elevator-press{left:39.6%;bottom:14.3%;height:56%;z-index:5;animation:case-elevator-approach .38s ease-out both}
.case-elevator-call-led{position:absolute;left:42.4%;top:37.6%;width:1.4%;height:1.8%;border-radius:50%;pointer-events:none;z-index:5;opacity:0;background:radial-gradient(circle,#fff6c4,#dbb263);box-shadow:0 0 5px #f4d584}
.case-elevator-pressed .case-elevator-call-led{animation:case-elevator-unanswered .48s ease-out both}
@keyframes case-elevator-approach{from{opacity:0;transform:translateX(7cqw)}to{opacity:1;transform:none}}
@keyframes case-elevator-unanswered{0%,85%{opacity:.85}100%{opacity:0}}
@media(prefers-reduced-motion:reduce){.case-akiel-elevator-press{animation:none}}

/* Available Studio B: keep its tooltip inside the door, below the status lamp. */
.case-studio-b-door span{top:16%;bottom:auto;max-width:min(230px,40cqw);white-space:normal;text-align:center}
.case-studio-b-door:focus-visible span{opacity:1;background:#fff1c9;color:#332a20;padding:5px;font:21px 'Nintendo DS',monospace}

/* Initial/restored scenes become visible only with their decoded composition. */
/* Decoding is awaited before travel; never hide the whole scene while rendering. */

/* The photographer is occupied reviewing his camera, opposite Akiel. */
.case-photographer-akiel{left:27%;bottom:17%;height:60%}
.case-photographer-art{left:58%;bottom:17%;height:59%}
.case-cleaning-props{position:absolute;left:59%;bottom:17%;height:29%;width:auto;max-width:none;pointer-events:none;z-index:4}
.case-lens-proof{position:relative;max-width:660px;width:78%;margin:12px auto 0}
.case-lens-proof img{display:block;width:100%;height:auto}
.case-lens-crop{position:absolute;inset:20% 36%;border:2px solid #fff0ca;box-shadow:0 0 0 100vmax #241a1166;clip-path:inset(-80% -129%);pointer-events:none}
#tbt-case-panel[data-view="lens-proof"]{overflow:hidden}
.case-camera-gallery{display:grid;grid-template-rows:minmax(0,1fr) auto auto;gap:8px;min-width:0;min-height:0;height:100%;container-type:size}
#tbt-case-panel[data-view="camera-gallery"] .ui-surface-body{overflow:hidden}
.case-gallery-image{position:relative;line-height:0;margin:0;min-height:0;height:auto;width:min(100cqw,calc((100cqh - 110px)*1.333333));max-width:100%;aspect-ratio:4/3;justify-self:center;align-self:center}
.case-gallery-image>img{display:block;width:100%;height:100%;object-fit:contain}
.case-gallery-controls{display:flex;align-items:center;justify-content:center;gap:22px;font-size:24px}
.case-gallery-controls button{min-width:44px;min-height:44px}
.case-gallery-controls button:disabled{opacity:.35;cursor:default}
.case-gallery-action{display:flex;justify-content:center}
.case-gallery-detail{position:absolute;padding:0;border:0;background:transparent!important;box-shadow:none!important;cursor:pointer;min-width:28px;min-height:44px}
.case-gallery-detail:hover,.case-gallery-detail:focus-visible,.case-gallery-detail.case-gallery-found{outline:2px solid #f7df9299;outline-offset:-2px;border-radius:50%}
.case-photo-talking #tbt-case-panel[data-view="camera-gallery"],.case-photo-talking #tbt-case-panel[data-view="lens-proof"]{bottom:32%}
@media(max-width:900px){
 .mobile-ds #tbt-case-panel[data-view="camera-gallery"][data-ui-kind]:not([hidden]){height:min(500px,82dvh)!important}
 .case-lens-proof{width:100%}
 .case-photo-talking #tbt-case-panel[data-view="camera-gallery"],.case-photo-talking #tbt-case-panel[data-view="lens-proof"]{bottom:3%}
 .case-gallery-controls{gap:18px}
 .case-camera-gallery{gap:4px}
}

body.mobile-ds:has(#tbt-case-panel:not([hidden])) .mobile-ds-idle{visibility:hidden;pointer-events:none}

#tbt-investigation .case-hall-ramiro-target{z-index:8}
.case-route-guide{position:absolute;left:2%;top:9%;max-width:55%;padding:5px 9px;border:1px solid #9b8054;border-radius:4px;background:#fff1d9eb;color:#463624;font:clamp(15px,2.3cqw,21px)/1.15 'Nintendo DS',monospace;box-shadow:0 2px 4px #281b1322;pointer-events:none;z-index:6}
.ds-dialogue-visible .case-route-guide,.tbt-conversation-active .case-route-guide{visibility:hidden}
.mobile-ds .case-route-guide{display:none}
.tbt-ds .scene-navigation[aria-label]::after{content:attr(aria-label);position:absolute;left:50%;bottom:100%;transform:translateX(-50%);width:max-content;max-width:150px;padding:5px 7px;border-radius:4px;background:#fff1d9f5;color:#463624;font:18px/1.05 'Nintendo DS',monospace;white-space:normal;pointer-events:none;opacity:0}
.tbt-ds .scene-navigation[aria-label]:hover::after,.tbt-ds .scene-navigation[aria-label]:focus-visible::after,.tbt-ds.show-points .scene-navigation[aria-label]::after{opacity:1}
.tbt-ds .case-return[aria-label]::after{left:0;transform:none}
.tbt-ds .case-studios-path[aria-label]::after,.tbt-ds .tbt-corridor-back[aria-label]::after{left:auto;right:0;transform:none}

/* Touch-first camera inspection, with persistent discoveries. */
.case-gallery-action{flex-wrap:wrap;gap:6px;align-items:center}
.case-gallery-hint{flex-basis:100%;margin:0;text-align:center;font:16px/1.25 sans-serif}
.case-gallery-progress{font:600 16px/1.2 sans-serif}
.case-gallery-detail{z-index:1}
.case-gallery-detail.case-gallery-found{color:#fff;font:bold 24px sans-serif;background:#315d3999!important;outline:3px solid #f7df92}
.case-gallery-image{width:min(100cqw,calc((100cqh - 155px)*1.333333))}

#tbt-investigation .case-photographer-target{z-index:8}

/* The transparent zoom control must never paint over the photograph. */

.case-arrival-akiel{left:24%;bottom:17%;height:60%;width:auto;transform:none}

/* Vera arrives once the call ends; Akiel settles into the encounter pose. */
.tbt-vera-enter .case-lobby-vera{animation:tbt-vera-arrival .9s cubic-bezier(.2,.7,.3,1) both}
.tbt-vera-enter .case-lobby-akiel{animation:tbt-akiel-settle .6s ease-out both}
.tbt-vera-enter .case-context-target{pointer-events:none!important}
@keyframes tbt-vera-arrival{from{opacity:0;transform:translateX(55%)}to{opacity:1;transform:translateX(0)}}
@keyframes tbt-akiel-settle{from{opacity:0}to{opacity:1}}
@media(prefers-reduced-motion:reduce){.tbt-vera-enter .case-lobby-vera,.tbt-vera-enter .case-lobby-akiel{animation:none}}

/* Show Objects must cover TBT's own targets, not only legacy .hotspot nodes. */
.show-points #tbt-investigation .case-hotspot{outline:1px solid #dfc886aa;outline-offset:-1px}
.show-points #tbt-investigation .case-hotspot>span{opacity:1;visibility:visible;background:#fff1c9;color:#332a20;padding:5px 8px;font:21px/1.15 'Nintendo DS',monospace;border:1px solid #a58a58;box-shadow:0 2px 4px #33231433}
.show-points #tbt-investigation :is(.case-context-target,.case-directed-nico)[aria-label]::after{content:attr(aria-label);position:absolute;left:50%;bottom:2%;transform:translateX(-50%);width:max-content;max-width:180px;box-sizing:border-box;padding:5px 8px;border:1px solid #a58a58;border-radius:4px;background:#fff1c9;color:#332a20;font:21px/1.15 'Nintendo DS',monospace;text-align:center;pointer-events:none;z-index:9}
@media(max-width:900px){
 .show-points #tbt-investigation .case-hotspot>span{max-width:130px;white-space:normal;font-size:19px;line-height:1.1;padding:4px 6px}
 .show-points #tbt-investigation :is(.case-context-target,.case-directed-nico)[aria-label]::after{max-width:130px;font-size:19px;line-height:1.1;padding:4px 6px}
}

.case-backhall-akiel{left:23%;bottom:17%;height:60%}.case-backhall-elias{left:53%;bottom:17%;height:59%;width:auto}

/* Register the lens overlay to the photograph, never to the panel's height. */
#tbt-case-panel[data-view="lens-proof"] .case-lens-proof{aspect-ratio:4/3;overflow:hidden;line-height:0}
#tbt-case-panel[data-view="lens-proof"] .case-lens-proof>img{display:block;width:100%;height:100%;object-fit:contain}
#tbt-case-panel[data-view="lens-proof"] .case-lens-crop{inset:16% 28%;clip-path:none;box-sizing:border-box;box-shadow:0 0 0 100vmax #241a1166}
@media(max-width:900px) and (orientation:portrait), (max-width:1100px) and (max-height:600px) and (orientation:landscape){
 body.mobile-ds .scene>#tbt-case-panel[data-view="lens-proof"][data-ui-kind]:not([hidden]){position:absolute!important;inset:0!important;top:0!important;left:0!important;transform:none!important;width:100%!important;height:100%!important;min-height:0!important;max-height:none!important;max-width:none!important;margin:0!important;padding:0!important;border:0!important;border-radius:0!important;overflow:hidden!important;background:#493626}
 body.mobile-ds #tbt-case-panel[data-view="lens-proof"] .case-sheet{display:flex;flex-direction:column;height:100%;box-sizing:border-box;padding:8px;background:#493626}
 body.mobile-ds #tbt-case-panel[data-view="lens-proof"] .ui-surface-heading{display:none!important}
 body.mobile-ds #tbt-case-panel[data-view="lens-proof"] .ui-surface-body{flex:1;min-height:0;display:flex;align-items:center;justify-content:center;padding:0;overflow:hidden;container-type:size}
 body.mobile-ds #tbt-case-panel[data-view="lens-proof"] .case-lens-proof{flex:none;width:min(100cqw,calc(100cqh * 4 / 3));max-width:100%;margin:0;aspect-ratio:4/3;height:auto}
}

.case-rear-room-akiel{left:40%;bottom:17%;height:60%}
.case-backhall-path{--arrow-angle:-90deg;padding:0;border:0;background:none}.tbt-ds .case-backhall-path[aria-label]::after{left:0;transform:none}

#tbt-investigation .case-plomos-door>span{left:auto;right:0;transform:none;bottom:auto;top:8%}

.case-rear-cleaning-props{position:absolute;right:15%;bottom:25%;height:27%;width:auto;max-width:none;pointer-events:none;z-index:3}
.case-rush-akiel{left:32%;bottom:17%;height:60%}.case-rush-ramiro,.case-rush-nico{left:66%;bottom:17%;height:58%;width:auto}.case-rush-lobby{left:15%;bottom:17%;height:60%;transform:scaleX(-1)}
.case-rushing-out .case-directed-akiel{animation:case-rush-exit .45s ease-in forwards}
@keyframes case-rush-exit{to{translate:70% 0;opacity:0}}
@media(prefers-reduced-motion:reduce){.case-rushing-out .case-directed-akiel{animation:none}}

.case-rushing-out:has(.case-rear-room-akiel) .case-rear-room-akiel{transform:scaleX(-1);animation-name:case-rush-exit-left}
@keyframes case-rush-exit-left{to{translate:-70% 0;opacity:0}}

/* Running silhouette has a larger head/body footprint than the standing art. */
.case-directed-akiel:is(.case-rush-akiel,.case-rush-lobby,.case-rear-room-rushing){height:54%}

/* Face the exit immediately, including while Elías calls from inside. */
.case-rear-room-akiel.case-rear-room-rushing{transform:scaleX(-1)}

/* Scene 14: first person elevator shot; closure advances with dialogue beats. */
.case-elevator-cinematic{position:absolute;inset:0;z-index:10;overflow:hidden;pointer-events:none;--door-progress:0%}
.case-elevator-cinematic>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}
.case-elevator-opening{position:absolute;left:27%;top:7.5%;width:46%;height:80.5%;overflow:hidden}
.case-cinema-door{position:absolute;top:0;bottom:0;width:50%;background:repeating-linear-gradient(0deg,#ffffff08 0 1px,#00000005 1px 3px),linear-gradient(100deg,#747c7c,#b9beb8 24%,#d6d6c8 46%,#9ea5a2 76%,#69716f);border:2px solid #3b3e39;box-sizing:border-box;box-shadow:inset 0 0 12px #2e302944;transition:transform .6s ease-in-out}
.case-cinema-door-left{left:0;transform:translateX(calc(-100% + var(--door-progress)));box-shadow:inset -4px 0 5px #272d2b88}
.case-cinema-door-right{right:0;transform:translateX(calc(100% - var(--door-progress)));box-shadow:inset 4px 0 5px #272d2b88}
.case-elevator-cinematic-active #akiel-character,.case-elevator-cinematic-active .case-route-guide,.case-elevator-cinematic-active .case-notebook{visibility:hidden}
.case-elevator-cinematic-active .tbt-lobby-elevator{left:25%;top:15%;width:50%;height:78%}
.case-elevator-cinematic-active #tbt-investigation{pointer-events:none}
@media(prefers-reduced-motion:reduce){.case-cinema-door{transition:none}}

.tbt-return-drive{position:absolute;left:48%;top:69%;width:12%;height:12%;background:transparent;border:0;cursor:pointer}
.tbt-return-exit{position:absolute;left:4%;bottom:8%;width:8%;height:10%;--arrow-angle:-90deg}
.tbt-master-explorer{display:flex;flex-direction:column}.tbt-master-explorer .monitor-properties{max-height:none;overflow:visible}

.case-recall-indicator{position:absolute;left:44.5%;top:.8%;width:11.5%;height:4.3%;display:grid;place-items:center;background:#080b09;color:#ffbd59;font:bold clamp(12px,2.4cqw,29px)/1 monospace;text-shadow:0 0 6px #ffad36;box-sizing:border-box;pointer-events:none}
.case-elevator-recall-button{position:absolute;left:83.5%;top:38%;width:5%;height:10%;pointer-events:auto}
.case-elevator-enter{position:absolute;left:27%;top:7.5%;width:46%;height:80.5%;pointer-events:auto}
.case-elevator-recall-button>span{left:auto;right:0;transform:none}.case-recall-pending .case-elevator-recall-button{box-shadow:inset 0 0 9px #f8d58a}

.case-temporal-shift::after{content:'';position:absolute;inset:5% 23% 10%;pointer-events:none;background:radial-gradient(ellipse,#a9edf36b,transparent 65%);mix-blend-mode:screen;animation:case-temporal-glow 1.6s ease-in-out both}
.case-temporal-shift .case-recall-indicator{color:#d7fbff;text-shadow:0 0 9px #92eaff;box-shadow:0 0 20px #93e1f16b}
.case-temporal-shift .case-elevator-opening{filter:drop-shadow(0 0 10px #a2e5ee)}
@keyframes case-temporal-glow{0%,100%{opacity:0;scale:1}50%{opacity:1;scale:1.08}}
@media(prefers-reduced-motion:reduce){.case-temporal-shift::after{animation:none;opacity:.3}}

.case-return-studio-akiel{position:absolute;left:24%;bottom:17%;height:60%;width:auto;max-width:none;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}
.tbt-master-explorer,.tbt-master-explorer button,.tbt-master-explorer p{font-family:"Nintendo DS",monospace}

.case-return-route-akiel{position:absolute;left:43%;bottom:17%;height:60%;width:auto;max-width:none;pointer-events:none;filter:drop-shadow(0 2px 1px #20160944)}

/* The monitor is a first person view: hide scene actors and navigation behind it. */
.monitor-view #tbt-controls{visibility:hidden;pointer-events:none}
.monitor-view #tbt-controls button{pointer-events:none}

.tbt-usb-inserting .monitor-connected-usb{animation:tbt-usb-insert .4s ease-out both}
@keyframes tbt-usb-insert{from{translate:0 18%;opacity:0}to{translate:0 0;opacity:1}}
@media(prefers-reduced-motion:reduce){.tbt-usb-inserting .monitor-connected-usb{animation:none}}

/* Keep interaction labels out of character artwork and ongoing conversations. */
.case-directed-nico>span{display:none}
.ds-dialogue-visible #tbt-investigation .case-directed-nico::after{display:none!important}
