@font-face{font-family:Vazir;src:url('assets/vazirmatn.ttf');font-display:swap}:root{color-scheme:dark;--gold:#d5bc85;--ink:#f2e7cc}*{box-sizing:border-box}body{margin:0;background:#080e11;color:var(--ink);font-family:Vazir,Tahoma,sans-serif;overflow:hidden}button,a{font:inherit;color:inherit;touch-action:manipulation}button{cursor:pointer;border:0}button:disabled{opacity:.4;cursor:default}button:focus-visible,a:focus-visible{outline:3px solid #ffe2a2;outline-offset:3px}.shell{height:100dvh;display:flex;direction:ltr;align-items:center;justify-content:center;background:radial-gradient(ellipse,#23322e,#070e11)}.stage{position:relative;width:calc(100vw - 96px);max-width:calc(100dvh * 16 / 9);aspect-ratio:16/9;isolation:isolate;overflow:hidden;direction:rtl;box-shadow:0 0 70px #000}.shell.intro .stage{width:100vw}.world-plane{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;direction:ltr;scrollbar-width:thin;scrollbar-color:#c6b382 #1a2927}.scene{position:relative;width:100%;height:100%;isolation:isolate}.scene-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-2;pointer-events:none;user-select:none}.scene-shadow{position:absolute;inset:0;box-shadow:inset 0 0 50px #0003;pointer-events:none}.hud{position:absolute;left:10px;top:10px;display:flex;gap:7px;z-index:7;direction:ltr}.round{width:38px;height:38px;border-radius:50%;background:linear-gradient(#44534add,#152421ed);border:1px solid #bca675;box-shadow:0 2px 7px #0008;display:grid;place-items:center;font-size:20px;text-decoration:none;transition:transform .16s,filter .16s}.round:hover{transform:scale(1.07);filter:brightness(1.2)}.brand{position:absolute;top:14px;right:16px;font-size:18px;letter-spacing:3px;text-shadow:0 2px 5px #000;color:#ecd7a9;pointer-events:none}.room-name{position:absolute;left:12px;bottom:8px;font-size:12px;text-shadow:0 2px 5px #000;pointer-events:none}.inventory{width:96px;height:min(100dvh,900px);direction:rtl;display:flex;flex-direction:column;background:linear-gradient(90deg,#132123,#2a3935,#112023);border-inline:3px ridge #9c865a;padding:5px;z-index:20}.inv-head{text-align:center;font-size:11px;padding:8px 0;color:#ddcba3;border-bottom:1px solid #8d805d}.slots{overflow-y:auto;overflow-x:hidden;flex:1;scrollbar-width:thin;scrollbar-color:#9f875c #172727}.slot{width:100%;min-height:76px;aspect-ratio:1;position:relative;background:radial-gradient(ellipse,#46574d66,#132324);border-bottom:1px solid #5b6654;display:block;padding:5px;transition:box-shadow .18s,background .18s,transform .18s}.slot:hover,.slot.holding{background:#49573f;box-shadow:inset 0 0 20px #d9c38655;transform:scale(.97)}.slot.selected{box-shadow:inset 0 0 0 2px #ffe19b,inset 0 0 25px #c9ac5266}.slot .prop{width:100%;height:100%;transition:transform .18s}.slot:hover .prop{transform:translateY(-3px) scale(1.04)}.slot.selected .prop{filter:drop-shadow(0 0 6px #ffe39a)}.slot-label{position:absolute;bottom:0;left:0;right:0;font-size:9px;text-align:center;background:#10201bd9;line-height:1.5;text-shadow:0 1px 3px #000}.empty-slot{height:76px;border-bottom:1px solid #53605255}.inv-footer button{background:none;width:100%;padding:8px;font-size:19px;color:var(--gold)}.prop{display:block;background-image:url('assets/low/props.webp');background-size:400% 400%;background-repeat:no-repeat;filter:drop-shadow(0 4px 3px #0007)}.prop.rag{background-image:url('assets/low/rag-v3.webp');background-size:contain;background-position:center!important}.world-prop{position:absolute;transform:translate(-50%,-50%);pointer-events:none;z-index:2}.world-prop>.prop{width:100%;height:100%}.hotspot{position:absolute;transform:translate(-50%,-50%);border:0;background:transparent;color:transparent;z-index:3;min-width:24px;min-height:24px;cursor:pointer;border-radius:6px}.hotspot:hover{background:#fff1}.hotspot:focus-visible{outline:2px dashed #ffe0a2;outline-offset:-3px}.trolley{position:absolute;top:37%;left:29%;width:48%;height:49%;object-fit:contain;pointer-events:none;z-index:2;filter:drop-shadow(0 8px 5px #0005)}.trolley.moved{left:61%}.bridge-prop{position:absolute;left:67%;top:78%;width:13%;aspect-ratio:1;transform:rotate(-7deg) scaleY(.36);pointer-events:none;z-index:1}.bridge-prop .prop{width:100%;height:100%}.selected-name{position:absolute;bottom:8px;left:50%;transform:translateX(-50%);background:#132520db;border:1px solid #af9766;padding:4px 12px;border-radius:18px;font-size:11px;z-index:6;display:flex;gap:9px}.selected-name button{background:none;color:#e4ca96;font-size:17px}.companion{position:absolute;left:10px;bottom:40px;width:66px;padding:4px;background:#12221eaa;border:1px solid #b19a6a;border-radius:8px;z-index:6;transition:transform .2s}.companion:hover{transform:translateY(-4px)}.companion.active{box-shadow:0 0 12px #ffdc87;border-color:#ffe5a5}.companion .person{height:82px;width:100%}.companion span{display:block;font-size:10px;text-align:center}.person{background-image:url('assets/low/characters.webp');background-size:400% 100%;background-repeat:no-repeat;aspect-ratio:.708;filter:drop-shadow(0 8px 7px #0007)}.person.expert{background-position:33.333% 0}.layer{position:absolute;inset:0;background:#040c10b8;z-index:10;display:flex;align-items:center;justify-content:center;direction:rtl}.back{position:absolute;left:10px;top:10px;z-index:12}.near{position:relative;width:87%;height:86%;border:2px solid #c9ac73;background:#172822;box-shadow:0 12px 60px #000a;overflow:hidden;isolation:isolate}.detail-art{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;z-index:-1}.near-title{position:absolute;top:8px;right:12px;font-size:12px;text-shadow:0 2px 6px #000;z-index:3;pointer-events:none}.room-crop{position:absolute;inset:0;background-repeat:no-repeat;z-index:-1}.object-layer{background:#030b0fa8}.object-foreground{width:58%;height:80%;display:flex;flex-direction:column;justify-content:center;align-items:center;position:relative}.object-foreground>.prop{width:60%;aspect-ratio:1;flex-shrink:0}.object-name{font-size:15px;text-shadow:0 2px 5px #000;margin:12px 0}.paper-card{width:min(58vw,580px);aspect-ratio:1.25;position:relative;transform:rotate(-4deg);background:#d7c49a;box-shadow:0 15px 45px #0008,inset 0 0 65px #8b694b44;border-radius:3px;clip-path:polygon(1% 2%,23% 0,48% 2%,71% 0,99% 2%,100% 98%,75% 100%,48% 98%,20% 100%,0 97%);color:#392f23;overflow:hidden}.paper-card:before{content:'';position:absolute;inset:0;background:repeating-linear-gradient(7deg,transparent 0 4px,#876b4210 4px 5px),linear-gradient(0deg,transparent 48%,#9c805750 50%,transparent 52%);pointer-events:none}.paper-content{position:absolute;inset:13% 12%;text-align:center;display:flex;flex-direction:column;justify-content:center;align-items:center;font-size:clamp(12px,1.65vw,20px);line-height:1.9}.paper-content b{font-size:1.2em}.paper-content .seal{font-size:42px;color:#7b3b26;opacity:.8}.paper-content small{font-size:.75em}.label-big{font-family:Georgia,serif;font-size:68px;color:#453a28}.cloth-code{position:absolute;left:39%;top:52%;font-family:Georgia,serif;font-size:clamp(22px,4vw,48px);color:#d1c49d;text-shadow:1px 2px 2px #1d3028;letter-spacing:8px;transform:rotate(-4deg);pointer-events:none}.photo-dust{position:absolute;inset:5%;background:radial-gradient(ellipse,#71634df9,#8a7a62f5);opacity:.97;mix-blend-mode:normal;box-shadow:inset 0 0 55px #231f16;border-radius:4px;touch-action:none;cursor:grab;transition:opacity .18s;z-index:2}.photo-dust:after{content:'';position:absolute;inset:0;background:repeating-radial-gradient(ellipse at 15% 20%,#c2af8866 0 2px,#342e2422 3px 5px);opacity:.5}.photo-dust.cleaning{opacity:var(--dust,.6)}.photo-dirt-small{position:absolute;left:55.5%;top:13.5%;width:16%;height:23%;background:#77674beb;box-shadow:inset 0 0 10px #312a20;border-radius:3px;pointer-events:none;z-index:1}.cabinet-battery{position:absolute;left:56%;top:80%;width:5%;aspect-ratio:1.4;background:none;padding:0;z-index:3;min-width:24px;min-height:24px;transform:rotate(-12deg)}.cabinet-battery .prop{width:100%;height:100%}.lock-body{position:absolute;left:50%;top:52%;transform:translate(-50%,-50%);padding:18px 24px;border:5px ridge #bd9a5e;background:linear-gradient(120deg,#765122,#d3b16b 35%,#8d6e38 80%,#5c421c);box-shadow:0 10px 30px #0009;direction:ltr;border-radius:12px}.wheels{display:flex;gap:8px}.wheel{width:64px;height:90px;border:3px ridge #ba9b61;border-radius:5px;background:linear-gradient(#292013,#dcc283 38%,#c9ac6a 62%,#302718);font-size:38px;font-family:Georgia,serif;color:#3e311d;text-shadow:0 1px 2px #ecd8a8}.wheel svg{height:70%;width:78%;stroke:currentColor;fill:none;stroke-width:3}.lock-latch{display:block;width:60%;height:32px;margin:17px auto 0;background:linear-gradient(#3c3020,#9b824f,#43351f);border:2px ridge #d8bb79;border-radius:6px;font-size:19px}.clock-hint{font-size:26px;text-align:center;color:#3e311f;margin-bottom:8px}.height-clue{display:flex;gap:4px;align-items:end;justify-content:center;height:24px;margin-bottom:8px}.height-clue i{width:8px;background:#725628;border:1px solid #4e3d24}.door-enter{position:absolute;inset:20% 25%;background:linear-gradient(90deg,#02090aea,#18302d44);border:10px ridge #64472e;display:grid;place-items:center}.door-enter button{background:#102521d9;border:1px solid #d2ba82;padding:12px 22px;border-radius:4px;font-size:17px}.scene-inspection{position:absolute;inset:0;overflow:hidden;background:#101a1e;isolation:isolate}.stage:has(.scene-inspection)>.world-plane{visibility:hidden}.window-handle{position:absolute;left:15%;top:43%;width:7%;height:11%;border:0;background:transparent;color:transparent;z-index:4}.window-handle.fixed{transform:rotate(75deg)}.dark-overlay{position:absolute;inset:0;background:radial-gradient(ellipse,#000b,#000f);z-index:3;pointer-events:none}.light-overlay{background:radial-gradient(ellipse at 55% 65%,transparent 15%,#0006 50%,#000d 80%)}.dark-click{position:absolute;inset:0;background:none;z-index:4}.cloth-pick{position:absolute;left:48%;top:55%;width:16%;aspect-ratio:1;border:0;background:none;padding:0;z-index:5}.cloth-pick .prop{height:100%;width:100%}.crate-one{position:absolute;inset:0;overflow:hidden;perspective:1000px;background:#263528}.crate-photo{position:absolute;inset:0;width:100%;height:100%;object-fit:fill;pointer-events:none}.crate-screw{position:absolute;left:8.5%;top:12%;width:5%;height:9%;border:0;background:transparent;min-width:28px;min-height:28px;z-index:5}.crate-screw.second{left:87%;top:79%}.crate-screw .screw-head{position:absolute;inset:15%;border-radius:50%;background:linear-gradient(45deg,#53432b,#c3a56a,#4f4029);border:2px ridge #baa16a;color:#48381f;font-size:24px;display:grid;place-items:center;line-height:1}.crate-screw.removed{pointer-events:none}.crate-screw.removed .screw-head{opacity:0}.driver-motion{position:absolute;left:24%;top:30%;width:28%;aspect-ratio:1;z-index:12;pointer-events:none;transform-origin:15% 90%}.driver-motion .prop{width:100%;height:100%}.crate-painting{position:absolute;left:30%;top:15%;width:40%;height:68%;z-index:3;transform:rotate(-2deg)}.crate-painting .prop{width:100%;height:100%}.moving-note{position:absolute;left:7%;top:37%;width:25%;aspect-ratio:1.25;z-index:12;pointer-events:none}.moving-note .paper-card{width:100%;height:100%}.moving-note .paper-content{font-size:10px}.dialogue{position:absolute;inset:0;z-index:30;background:linear-gradient(90deg,#000f 0%,#000d 30%,#0008 65%,#0005);direction:rtl}.dialogue.right{background:linear-gradient(270deg,#000f,#000c 35%,#0007 70%,#0005)}.dialogue-character{position:absolute;left:0;bottom:-7%;height:107%;width:48%;background-repeat:no-repeat;pointer-events:none;filter:drop-shadow(0 8px 20px #0008)}.dialogue.right .dialogue-character{left:auto;right:0;transform:scaleX(-1)}.dialogue-character.men{background-image:url('assets/low/men-v3.webp');background-size:300% 100%;aspect-ratio:1;}.dialogue-character.woman{background-image:url('assets/low/characters.webp');background-size:400% 100%;background-position:33.333% 0}.speech{position:absolute;left:44%;right:5%;bottom:12%;border-top:1px solid #bea473;background:linear-gradient(#18241df2,#0b1917f5);padding:17px 22px 25px;box-shadow:0 12px 50px #0008;border-radius:3px;line-height:1.9}.dialogue.right .speech{right:44%;left:5%}.speech b{font-size:16px;color:#f0d29b}.speech p{font-size:clamp(13px,1.7vw,21px);margin:8px 0 0}.speech button{position:absolute;bottom:0;left:8px;font-size:28px;background:none;color:#ebcb8d}.dialogue.no-character .speech{left:16%;right:16%;bottom:15%}.dialogue.no-character{background:#000b}.shell.talking .inventory{pointer-events:none;filter:brightness(.35)}.intro-layer{position:absolute;inset:0;background:#060e1166;z-index:12;display:flex;align-items:end;direction:rtl}.intro-title{position:absolute;right:6%;top:15%;font-size:clamp(25px,4.3vw,64px);font-weight:bold;line-height:1.5;text-shadow:0 2px 20px #000;pointer-events:none}.intro-title small{display:block;font-size:14px;color:#dfc492}.intro-footer{position:relative;z-index:3;background:linear-gradient(transparent,#071210f5);padding:12% 5% 4%;width:100%;display:flex;align-items:end;justify-content:space-between;gap:24px}.intro-footer p{max-width:650px;font-size:16px;line-height:2;margin:0;text-shadow:0 2px 5px #000}.gold-button{border:2px ridge #d6b97c;background:linear-gradient(#e4c991,#a88a50);color:#2b3023;padding:9px 23px;border-radius:5px;font-weight:bold;white-space:nowrap;font-size:15px;text-decoration:none}.intro-figure{position:absolute;width:28%;aspect-ratio:1;left:36%;top:20%;pointer-events:none}.intro-figure .prop{width:100%;height:100%}.panel{width:min(600px,90%);max-height:88%;overflow:auto;background:#142720f2;border:1px solid #b49d6b;border-radius:8px;padding:24px;line-height:2}.panel h2{font-size:22px}.panel p,.panel li{font-size:14px}.panel .fine{font-size:11px;color:#b5c2ac}.panel button{margin:5px}.soft-button{border:1px solid #b49c66;border-radius:4px;background:linear-gradient(#42513f,#21372b);padding:7px 15px;font-size:14px}.map-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:12px;width:88%;max-height:90%;overflow:auto;padding:25px}.map-card{background:#152b23;border:1px solid #b49b64;padding:0;border-radius:5px;overflow:hidden}.map-card img{display:block;width:100%;aspect-ratio:16/9;object-fit:cover}.map-card span{font-size:12px;display:block;padding:8px}.hint-text{padding:15px;border-right:2px solid #b69b62;background:#314233}.cargo-grid{position:absolute;left:50%;top:48%;transform:translate(-50%,-50%);width:min(65%,420px);aspect-ratio:1;background:url('assets/low/courtyard.webp') center/cover;border:10px ridge #a08555;direction:ltr}.cargo-block{position:absolute;border:4px ridge #b8965c;background:linear-gradient(#9b785044,#785d3544),url('assets/low/courtyard.webp') 80% 75%/450%;box-shadow:0 4px 10px #0007;color:#f4ddb0;font-family:Georgia,serif;font-size:28px;text-shadow:0 2px 2px #000;transition:left .22s,top .22s}.cargo-block.active{outline:3px solid #f7d88e;outline-offset:-5px}.cargo-out{position:absolute;right:-32px;top:24%;width:24px;height:28%;border:2px solid #b9a572;border-left:0;display:grid;place-items:center;font-size:28px}.cargo-controls{position:absolute;bottom:4%;left:50%;transform:translateX(-50%);display:flex;gap:8px;direction:ltr}.cargo-controls button{border:1px solid #c2aa72;border-radius:4px;background:#263e2e;padding:3px 16px;font-size:22px}.finish{position:absolute;inset:0;z-index:15;display:flex;align-items:center;justify-content:center;flex-direction:column;background:#05120eea;text-align:center;padding:25px}.finish>.prop{width:24%;aspect-ratio:1}.finish h1{font-size:clamp(24px,3.7vw,45px);margin:12px}.finish p{font-size:15px;line-height:2;max-width:650px}.finish-actions{display:flex;gap:12px;margin-top:14px}#message{position:fixed;bottom:18px;left:50%;transform:translateX(-50%);max-width:85vw;padding:8px 18px;background:#112920f2;border:1px solid #c9ad71;border-radius:5px;color:#f1dfb9;z-index:60;opacity:0;pointer-events:none;font-size:14px;box-shadow:0 5px 25px #0008}#message.visible{opacity:1}.muted{opacity:.6}.save-warning{position:absolute;top:56px;left:10px;font-size:11px;background:#713627;padding:5px;z-index:6}.detail-zoom{position:absolute;inset:0;overflow:hidden;isolation:isolate}.dust-wipe-cursor{cursor:crosshair}.moving-plank{position:absolute;inset:0;pointer-events:none;z-index:12}.motion-plane{position:absolute;inset:0;overflow:hidden;isolation:isolate;z-index:12}.shelf-tools{position:absolute;bottom:10%;left:50%;width:12%;aspect-ratio:1}.shelf-tools .prop{width:100%;height:100%}.sound-control{font-size:17px}.window-fixed-glint{position:absolute;left:16%;top:45%;width:3%;height:5%;box-shadow:0 0 15px #efd29666;pointer-events:none}.photo-rag{position:absolute;width:15%;aspect-ratio:1;pointer-events:none;z-index:8}.photo-rag .prop{height:100%;width:100%}
@media(max-width:850px) and (orientation:landscape){.inventory{width:74px;height:100dvh;padding:3px}.stage{width:calc(100vw - 74px)}.slot{min-height:56px}.inv-head{font-size:9px;padding:3px}.round{width:29px;height:29px;font-size:16px}.hud{left:6px;top:6px;gap:4px}.brand{font-size:13px;top:8px}.speech{padding:9px 14px 17px;bottom:8%;left:40%}.speech b{font-size:12px}.speech p{font-size:12px;margin:4px 0}.dialogue.right .speech{right:40%}.dialogue-character{width:47%;height:105%;bottom:-4%}.wheel{width:45px;height:65px;font-size:28px}.lock-body{padding:12px 15px}.lock-latch{margin-top:8px}.companion{width:48px;bottom:28px}.companion .person{height:55px}.companion span{font-size:8px}.intro-footer p{font-size:12px}.intro-title small{font-size:11px}.gold-button{font-size:12px;padding:6px 14px}.panel{padding:16px}.panel p,.panel li{font-size:12px}.paper-content{font-size:13px}.object-name{font-size:12px}.room-name{font-size:10px}.finish p{font-size:12px}.finish>.prop{width:18%}.cargo-controls button{font-size:17px;padding:3px 10px}}
@media(orientation:portrait){.stage{height:100dvh;width:calc(100vw - 68px);max-width:none;aspect-ratio:auto}.inventory{height:100dvh;width:68px}.shell.intro .stage{width:100vw}.scene{width:auto;min-width:100%;height:100%;aspect-ratio:16/9}.slot{min-height:57px}.slot-label{font-size:8px}.inv-head{font-size:9px}.hud{top:5px;left:5px;gap:4px}.round{width:30px;height:30px;font-size:17px}.brand{display:none}.room-name{font-size:10px}.near{width:94%;height:65%}.object-foreground{width:95%}.object-foreground>.prop{width:85%}.paper-card{width:85%;aspect-ratio:1.25}.paper-content{font-size:12px}.paper-content .seal{font-size:28px}.object-name{font-size:12px}.lock-body{padding:13px 10px}.wheel{width:41px;height:62px;font-size:27px}.wheels{gap:4px}.photo-dust{inset:6%}.companion{width:50px;left:5px;bottom:45px}.companion .person{height:58px}.companion span{font-size:8px}.selected-name{font-size:9px;bottom:22px;max-width:90%}.dialogue-character{height:78%;width:90%;left:-13%;bottom:18%}.dialogue.right .dialogue-character{right:-13%}.speech,.dialogue.right .speech{left:5%;right:5%;bottom:5%;padding:12px 15px 24px}.speech b{font-size:13px}.speech p{font-size:13px}.dialogue.no-character .speech{left:6%;right:6%;bottom:20%}.intro-title{font-size:31px;top:17%}.intro-title small{font-size:11px}.intro-footer{display:block;padding:20px 18px}.intro-footer p{font-size:13px;margin-bottom:13px}.gold-button{font-size:13px;padding:8px 16px}.intro-figure{width:54%;left:23%;top:27%}.panel{padding:18px}.panel p,.panel li{font-size:12px}.map-grid{grid-template-columns:1fr 1fr;gap:8px;padding:15px 0}.map-card span{font-size:10px}.cargo-grid{width:82%}.cargo-controls{gap:4px;bottom:10%}.cargo-controls button{font-size:17px;padding:4px 9px}.crate-screw{min-height:28px;min-width:28px}.crate-screw .screw-head{font-size:17px}.finish>.prop{width:60%}.finish p{font-size:12px}.finish-actions{flex-direction:column}.world-plane:after{content:'برای دیدن بقیهٔ اتاق، تصویر رو بکش';position:fixed;bottom:3px;left:8px;font-size:9px;text-shadow:0 2px 5px #000;pointer-events:none;color:#ddcaa3;z-index:5}}
@media(prefers-reduced-motion:reduce){*{transition:none!important;animation:none!important}}

.bridge-prop{left:74%;top:82%;transform:translate(-50%,-50%) rotate(-7deg) scaleY(.36)}.under-trolley{left:-25%;top:-40%;width:150%;height:130%}.crate-screw.removed .screw-head{opacity:1;background:#332718;border:0;color:transparent;inset:30%}.driver-motion{width:18%;transform-origin:8% 90%}.photo-dust{user-select:none;-webkit-user-select:none}

#overlays{position:absolute;inset:0;z-index:10;pointer-events:none}#overlays>*{pointer-events:auto}.scene-inspection{position:absolute;inset:0;overflow:hidden;isolation:isolate;background:#14201e;z-index:10}.scene-inspection>.scene-art{z-index:-1}.stage:has(.scene-inspection)>.world-plane{visibility:hidden}

.cart-registered,.gap-registered{position:absolute;inset:0;isolation:isolate}.cart-registered{transform-origin:70% 70%;transform:translate(-5%,-7%) scale(1.2)}.gap-registered{transform-origin:74% 82%;transform:translate(-24%,-32%) scale(2)}.slot{-webkit-touch-callout:none;user-select:none;-webkit-user-select:none}

.dialogue-character.men{width:auto;aspect-ratio:.5}.dialogue-character.woman{width:auto;aspect-ratio:.708}.cloth-pick{width:12%;top:61%;transform:rotate(-17deg) skewX(-10deg) scaleY(.65)}.near>.detail-art{z-index:0}.near>.room-crop{z-index:-1}.near-title{z-index:6}.cabinet-battery{z-index:4}

/* Review round four: scene interactions and isolated artwork. */
.intro-title{max-width:63%;font-size:clamp(23px,3.6vw,54px)}.intro-figure{left:4%;top:25%;width:25%}
.photo-dust,.photo-dirt-small{background:radial-gradient(ellipse at 28% 65%,#897453da 0%,#89745399 10%,transparent 28%),radial-gradient(ellipse at 66% 65%,#756449ed 0%,#9d8965b0 11%,transparent 27%),radial-gradient(ellipse at 84% 19%,#99866888,transparent 20%);box-shadow:none;mix-blend-mode:multiply}.photo-dust:after{display:none}.photo-dust{inset:5%;opacity:1}.photo-dust.cleaning{opacity:var(--dust,1)}
.prop.plank-art{background-image:url('assets/low/plank-v4.webp');background-size:contain;background-position:center!important}.leaning-plank{position:absolute;left:33%;top:49%;width:7%;height:28%;z-index:1;pointer-events:none;filter:drop-shadow(3px 6px 2px #0009)}.leaning-plank .prop{width:100%;height:100%}.bridge-prop{width:15%;transform:translate(-50%,-50%) rotate(67deg) scaleX(.24)}
.cloth-in-scene{position:absolute;width:5%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(12deg);z-index:2;pointer-events:none;filter:brightness(.65);clip-path:inset(20% 10% 0 5%)}.cloth-in-scene>.prop{height:100%;width:100%}.cloth-in-scene.illuminated{filter:brightness(1.35);width:7%;clip-path:none}.torch-pool{position:absolute;left:75%;top:67%;width:18%;height:20%;border-radius:50%;background:radial-gradient(ellipse,#ffe9b333,transparent 70%);mix-blend-mode:screen;pointer-events:none;z-index:3}
.dialogue.right .dialogue-character{transform:none}.dialogue.right .dialogue-character.face-left{transform:scaleX(-1)}.dialogue-character.woman{background-image:url('assets/low/leila-v4.webp');background-size:contain;background-position:center bottom!important;aspect-ratio:.48}.person.expert{background-image:url('assets/low/leila-v4.webp');background-size:contain;background-position:center!important}
.book-spread{position:absolute;inset:0;overflow:auto;background:#30251b}.book-spread>img{position:absolute;inset:0;width:100%;height:100%;object-fit:fill}.book-writing{position:absolute;inset:12% 10% 13%;display:grid;grid-template-columns:1fr 1fr;gap:8%;direction:ltr;color:#3b3025}.book-page{direction:rtl;position:relative;padding:5% 3%;font-size:clamp(10px,1.15vw,17px);line-height:1.8}.book-page h2{font-size:1.2em;margin:0 0 3%;font-weight:600}.book-page small{font-size:.7em;opacity:.7}.book-page table{border-collapse:collapse;width:100%;margin-top:5%;font-size:.85em}.book-page td{border-bottom:1px solid #624f3633;padding:5% 2%;font-weight:400}.book-page tr:nth-child(even){color:#40372ef0}.book-signature{font-style:italic;transform:rotate(-3deg);margin-top:6%;font-size:.8em}.book-stamp{position:absolute;bottom:4%;left:8%;border:2px double #7a302277;border-radius:50%;padding:3% 5%;font-size:.7em;color:#7a302299;transform:rotate(-14deg)}
@media(orientation:portrait){.intro-title{max-width:90%;top:10%;font-size:27px}.intro-figure{left:27%;width:46%;top:38%}.book-spread{min-width:650px}.stage:has(.book-spread) .near{overflow:auto}.book-page{font-size:14px}.book-writing{bottom:12%}}
[data-hot="plank"]{z-index:4}.cloth-in-scene:not(.illuminated){clip-path:inset(65% 10% 0 30%);filter:brightness(.6)}

.dialogue-character.woman{aspect-ratio:420/720}

.object-foreground>.prop{background-image:url('assets/props.webp')}.object-foreground>.prop.rag{background-image:url('assets/rag-v3.webp')}.object-foreground>.prop.plank-art{background-image:url('assets/plank-v4.webp')}
.dialogue-character.cast-portrait{object-fit:contain;object-position:center bottom;width:44%;height:105%;bottom:-5%;left:0;aspect-ratio:auto;transform:none!important}.dialogue.right .cast-portrait{right:0;left:auto}.person.expert{background-image:url('assets/cast/selected-expert.webp');background-position:center!important;background-size:contain}
.speech{border-top:2px solid #d8a356;border-radius:12px 3px 12px 3px;background:linear-gradient(135deg,#142a2af5,#101c22f5);box-shadow:0 12px 45px #0009}.speech b{color:#f4c078;font-size:15px;letter-spacing:-.3px}.speech p{line-height:1.95}.slot.selected{box-shadow:inset 0 0 0 2px #83d9c8,inset 0 0 25px #83d9c833}.round{border-color:#b69562}
.lab-tools{position:fixed;top:5px;right:8px;z-index:80;display:flex;gap:9px;align-items:center;direction:rtl;font-size:10px;color:#a5bcba;background:#101c22df;border:1px solid #445d5b;border-radius:20px;padding:4px 10px}.lab-tools button{background:none;color:#f2c17c;font-size:11px;padding:2px 6px}.lab-cast{position:fixed;inset:0;background:radial-gradient(ellipse at 50% 30%,#25423e,#09151b 80%);z-index:100;padding:24px;overflow:auto;direction:rtl}.lab-cast[hidden]{display:none}.lab-cast h1{font-size:24px;margin:5px 0}.lab-cast>p{color:#b2c9c1;font-size:13px}.cast-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:15px}.cast-card{position:relative;border:1px solid #46615d;border-radius:16px;background:linear-gradient(#25453d66,#0a1721);padding:12px;overflow:hidden}.cast-card img{height:55dvh;width:100%;object-fit:contain;filter:drop-shadow(0 8px 12px #0006)}.cast-card h2{font-size:18px;color:#f0c58b;margin:6px 0}.cast-card p{font-size:13px;line-height:1.9;color:#d3ded5;margin:5px 0}.lab-close{float:left;background:#29443d;border:1px solid #7b9b8e;border-radius:6px;padding:6px 15px}.cast-card small{color:#79bdb0;font-size:11px}@media(orientation:portrait){.cast-grid{grid-template-columns:1fr 1fr}.cast-card img{height:33dvh}.lab-tools{top:auto;bottom:3px;right:74px;font-size:8px}.dialogue-character.cast-portrait{height:74%;width:90%;bottom:23%;left:-12%}.dialogue.right .cast-portrait{right:-12%}.lab-cast{padding:15px}.cast-card{padding:8px}.cast-card p{font-size:11px}.cast-card h2{font-size:15px}}.dialogue.right .cast-portrait[src$="young.webp"]{transform:scaleX(-1)!important}

/* R2: small slotted fasteners with a stable tool tip. */
.crate-screw{left:11.4%;top:17%;width:5%;height:9%;transform:translate(-50%,-50%);min-width:26px;min-height:26px;display:grid;place-items:center}.crate-screw.second{left:89.8%;top:83.5%}.crate-screw .screw-head{position:relative;inset:auto;width:55%;aspect-ratio:1;height:auto;min-width:16px;border:1px solid #655335;border-radius:50%;background:radial-gradient(circle at 35% 30%,#c6b78a,#86724c 45%,#4c412e 90%);box-shadow:0 1px 2px #0007,inset 0 0 2px #d0bb7c;color:transparent;font-size:0}.crate-screw .screw-head:after{content:'';position:absolute;left:13%;right:13%;height:2px;top:48%;background:#211b13;box-shadow:0 1px 0 #d4bd7b66;transform:rotate(-25deg)}.crate-screw.removed .screw-head{opacity:1!important;background:#30291d;inset:auto;width:14%;min-width:4px;box-shadow:inset 0 1px 2px #0008}.crate-screw.removed .screw-head:after{display:none}.natural-driver{position:absolute;width:7%;height:34%;transform:translate(-50%,-97%);transform-origin:50% 97%;pointer-events:none;z-index:12}.natural-driver img{width:100%;height:100%;object-fit:fill;display:block;filter:drop-shadow(2px 3px 2px #0006)}.recovery-next{position:absolute;bottom:5%;left:50%;transform:translateX(-50%);padding:10px 22px;background:#132b26ed;border:1px solid #d5bc85;border-radius:5px;color:#ffe1a8;font-size:17px;box-shadow:0 4px 20px #0007;z-index:8;white-space:nowrap}.recovery-next span{font-size:12px;margin-right:12px;color:#c2d8ca}.recovered-proof{width:min(75%,650px);max-height:43%;object-fit:contain;border:1px solid #9d8858;border-radius:5px}.person.expert{background-image:url('assets/cast/selected-expert.webp')}.dialogue.right .cast-portrait[src$='anime-young.webp']{transform:none!important}@media(orientation:portrait){.natural-driver{width:9%;height:30%}.recovery-next{font-size:13px;padding:8px 12px}.recovered-proof{width:96%}}

.natural-driver{width:0;height:0;transform-origin:0 0;overflow:visible}.tool-shaft{position:absolute;display:block;transform-origin:50% 99%;pointer-events:none}

/* R3: complete pickup transitions, opaque dust and direct undercarriage lighting. */
.slot.receiving .prop,.slot.receiving .slot-label{visibility:hidden}.object-foreground{will-change:transform,opacity}.object-layer{pointer-events:none!important}.photo-dust{inset:5%;background:radial-gradient(ellipse at 35% 30%,#99886c,#6c5d47 70%);mix-blend-mode:normal;opacity:1;box-shadow:inset 0 0 45px #332a1e99;cursor:pointer}.photo-dust:after{display:block;background:repeating-radial-gradient(ellipse at 20% 30%,#baa68833 0 2px,#51463555 3px 5px);opacity:.6}.photo-dirt-small{background:#807057;mix-blend-mode:normal;opacity:1}.wiping-rag{position:absolute;width:17%;aspect-ratio:1;transform:translate(-50%,-50%);z-index:8;pointer-events:none}.wiping-rag .prop{width:100%;height:100%}.under-cart-shadow{position:absolute;top:70%;width:24%;height:14%;transform:translateX(-50%);z-index:1;background:radial-gradient(ellipse,#010301 0%,#010301 45%,#000c 65%,transparent 80%);pointer-events:none}.under-cart-shadow.lit{background:radial-gradient(ellipse,#e3d7a62b,transparent 72%)}.cloth-in-scene:not(.illuminated){visibility:hidden}.cloth-in-scene.illuminated{filter:brightness(1.1);z-index:2}.scene-clock{position:absolute;left:42.5%;top:1.8%;width:7%;aspect-ratio:1;pointer-events:none;z-index:2;filter:drop-shadow(1px 2px 2px #0008)}.scene-clock svg{width:100%;height:100%}.clock-close{position:absolute;inset:0;background:radial-gradient(ellipse,#35413a,#111e1c);display:grid;place-items:center}.clock-close svg{width:auto;height:85%;max-width:85%}

.tool-shaft{--tip-x:50%;--tip-y:98.48484848484848%}

.tool-contact{position:absolute;left:var(--tip-x);top:var(--tip-y);width:0;height:0;pointer-events:none}

.tool-contact{position:absolute;left:var(--tip-x);top:var(--tip-y);width:0;height:0;pointer-events:none}

.tool-contact{position:absolute;left:var(--tip-x);top:var(--tip-y);width:0;height:0;pointer-events:none}

@property --wipe{syntax:'<percentage>';inherits:false;initial-value:0%}.photo-dust{mask-image:linear-gradient(to bottom,transparent calc(var(--wipe) - 7%),#000 var(--wipe));clip-path:none}.wiping-rag{opacity:1}.wiping-rag .rag{background-image:url('assets/low/rag-v3.webp');background-size:contain;background-position:center}

/* Approved character designs and presentation refinements for this preview. */
.cast-grid{grid-template-columns:repeat(5,minmax(0,1fr))}
.dialogue.right .cast-portrait{transform:scaleX(-1)!important}
.person.expert{background-image:url('assets/cast/selected-expert.webp');background-size:contain;background-position:center!important;background-repeat:no-repeat}
.intro-protagonist{position:absolute;left:2%;bottom:15%;height:76%;max-width:38%;width:auto;object-fit:contain;z-index:2;filter:drop-shadow(0 8px 20px #0009)}
.object-layer{pointer-events:none!important}
.object-layer .object-back{pointer-events:auto!important;left:14px;top:14px}
.seal-detail{position:absolute;left:50%;top:51%;width:43%;height:72%;transform:translate(-50%,-50%) rotate(-14deg);object-fit:contain;z-index:2;filter:drop-shadow(0 10px 12px #08080799);pointer-events:none}
.photo-dust{inset:5%;opacity:.72;mix-blend-mode:multiply;box-shadow:none;background:radial-gradient(ellipse at 3% 7%,#76654b75 0%,#76654b26 3%,transparent 12%),radial-gradient(ellipse at 96% 91%,#6d604b68 0%,#6d604b22 4%,transparent 13%),radial-gradient(ellipse at 59% 3%,#74654d50 0%,transparent 9%),radial-gradient(ellipse at 4% 58%,#77694e48 0%,transparent 8%),radial-gradient(ellipse at 94% 34%,#786b5555 0%,transparent 8%),radial-gradient(circle at 13% 26%,#453d3055 0 1px,transparent 1.8px),radial-gradient(circle at 31% 9%,#453d3050 0 1px,transparent 1.8px),radial-gradient(circle at 80% 16%,#453d3055 0 1px,transparent 1.8px),radial-gradient(circle at 88% 62%,#453d3055 0 1.2px,transparent 2px),radial-gradient(circle at 23% 88%,#453d3050 0 1px,transparent 1.8px),radial-gradient(circle at 72% 94%,#453d3055 0 1px,transparent 1.8px)}
.photo-dust:after{display:none}
.photo-dirt-small{opacity:.62;mix-blend-mode:multiply;background:radial-gradient(ellipse at 3% 8%,#76654b70 0%,#76654b26 3%,transparent 12%),radial-gradient(ellipse at 96% 91%,#6d604b60 0%,#6d604b20 4%,transparent 13%),radial-gradient(ellipse at 59% 3%,#74654d48 0%,transparent 9%),radial-gradient(ellipse at 4% 58%,#77694e42 0%,transparent 8%),radial-gradient(ellipse at 94% 34%,#786b5548 0%,transparent 8%),radial-gradient(circle at 13% 26%,#453d3055 0 1px,transparent 1.8px),radial-gradient(circle at 31% 9%,#453d3050 0 1px,transparent 1.8px),radial-gradient(circle at 80% 16%,#453d3050 0 1px,transparent 1.8px)}
.scene-clock{top:3.6%;filter:drop-shadow(0 2px 3px #0009)}
@media(orientation:portrait){.cast-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.intro-protagonist{height:52%;max-width:42%;left:1%;bottom:21%}.seal-detail{width:58%;height:64%}}


.antique-clock-face{width:100%;height:100%;object-fit:contain}.clock-close .antique-clock-face{width:auto;height:85%;max-width:85%}.photo-dust{inset:0;background:url("assets/photo-dusty.png") center/100% 100% no-repeat;opacity:1;mix-blend-mode:normal;box-shadow:none}.photo-dirt-small{background:url("assets/photo-dusty.png") center/100% 100% no-repeat;opacity:1;mix-blend-mode:normal}

/* Keep the replacement clock above the door and fully contained in close-up. */
.scene-clock{left:42.5%;top:.3%;width:7%;height:12.7%;aspect-ratio:auto}.clock-close{overflow:hidden}.clock-close .antique-clock-face{position:absolute;inset:7%;width:86%;height:86%;max-width:none;max-height:none;object-fit:contain;display:block}


/* The placement animation and resting board share identical geometry. */
.bridge-prop{left:74%;top:82%;width:15%;aspect-ratio:1;transform:translate(-50%,-50%) rotate(-7deg) scaleY(.28)}


.intro-slate{display:flex!important;flex-direction:column;gap:8px;min-height:62px;letter-spacing:1px;line-height:1.8}.intro-slate span{display:block;min-height:1.8em}.intro-slate span:last-child{font-size:.8em;color:#d7c49f}

