:root{--glow:#7be6e9;--hue:0deg;--wash:#4c9eaa22;--gold:#ffdda7}*{box-sizing:border-box}html,body{margin:0;height:100%;background:#09232a;color:#fff8e8;font-family:Inter,'Segoe UI',sans-serif}button{font:inherit;cursor:pointer;color:inherit}button:focus-visible{outline:3px solid var(--glow);outline-offset:3px}[hidden]{display:none!important}.screen{position:relative;min-height:100dvh;overflow:hidden}#startScreen{display:grid;place-items:center;background:linear-gradient(90deg,#061923ed,#082630a6 62%,#0921246e),url('assets/neighborhood_reference.png') center/cover}.startPanel{position:relative;z-index:2;width:min(850px,94vw);padding:clamp(24px,4vw,48px);border:1px solid #ffffff3c;border-radius:32px;background:#081b2988;backdrop-filter:blur(22px);box-shadow:0 25px 90px #0007}.eyebrow{letter-spacing:.19em;font-size:11px;font-weight:800;color:var(--gold)}h1{font:800 clamp(40px,6vw,85px)/1.03 'Segoe UI',sans-serif;letter-spacing:.09em;margin:12px 0}.tag{font:clamp(18px,2.4vw,28px) Georgia,serif;letter-spacing:.13em;color:#ffdfb5}.startPanel p{font-size:15px;color:#e1f2f1}.themeGrid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:9px;margin:22px 0}.themeTile{min-height:76px;border-radius:20px;border:1px solid #ffffff33;background:#ffffff10;backdrop-filter:blur(12px);display:flex;align-items:center;gap:10px;padding:10px;text-align:left;font-size:12px}.themeTile[aria-pressed=true]{border-color:var(--glow);box-shadow:inset 0 0 0 1px var(--glow),0 0 17px #ffffff15}.orb{width:30px;height:30px;flex:none;border-radius:50%;background:radial-gradient(circle at 30% 22%,#fff,var(--tone) 56%,#131629);box-shadow:0 0 18px var(--tone)}.cta{border:1px solid #fff0d3;border-radius:999px;background:linear-gradient(115deg,#fff2ca,#f3a378);padding:13px 22px;color:#1a2430;font-weight:800;box-shadow:0 8px 27px #0005}.cta:hover{filter:brightness(1.09)}.secondary{background:transparent;border:1px solid #ffffff67;border-radius:999px;padding:13px 18px;margin-left:8px}.small{font-size:12px;color:#d6e5e8;margin-top:14px}#game{height:100dvh}#sceneBackdrop{position:absolute;inset:0;background-position:center;background-size:cover;filter:hue-rotate(var(--hue)) saturate(1.07) brightness(.92);animation:breath 22s ease-in-out infinite alternate}#game:after{content:'';position:absolute;inset:0;pointer-events:none;background:linear-gradient(#041a2599,transparent 25%,transparent 60%,#031722bd),radial-gradient(circle at 65% 20%,var(--wash),transparent 65%);z-index:1}.sceneLight{position:absolute;inset:0;pointer-events:none;background:linear-gradient(105deg,transparent 22%,#fff7df0b 36%,transparent 47%,#fff8d80a 53%,transparent 61%);animation:light 11s ease-in-out infinite alternate;z-index:2}.sceneParticles{position:absolute;inset:0;z-index:3;pointer-events:none}.sceneParticles i{position:absolute;width:3px;height:3px;background:#ffe4b3;border-radius:100%;box-shadow:0 0 10px 2px var(--glow);animation:drift 8s linear infinite}header{position:absolute;z-index:20;top:8px;left:14px;right:14px;display:flex;align-items:center;justify-content:space-between;gap:9px}header button,.roomBar button,.bottomDock>button,.popupHead button{border:1px solid #ffffff60;background:#08232db5;border-radius:999px;padding:10px 14px;backdrop-filter:blur(15px)}.brand{text-align:center;font-weight:800;letter-spacing:.18em;font-size:clamp(14px,1.6vw,24px);text-shadow:0 2px 14px #000}.brand small{display:block;font-size:9px;letter-spacing:.17em;color:var(--gold);margin-top:4px}.headerRight{display:flex;gap:7px}.caseBrief{position:absolute;z-index:12;top:92px;left:22px;max-width:min(410px,37vw);border-radius:23px;background:#061d2e9b;border:1px solid #ffffff2e;backdrop-filter:blur(15px);padding:16px 20px}.caseBrief strong{display:block;font-size:clamp(18px,2vw,27px);margin:6px 0}.caseBrief p{font-size:13px;line-height:1.5;margin:6px 0;color:#e9f2ee}.roomBar{position:absolute;z-index:12;top:90px;left:50%;transform:translateX(-50%);display:flex;gap:12px;align-items:center;justify-content:center;border:1px solid #ffffff44;background:#08242bb4;border-radius:999px;padding:5px 9px;backdrop-filter:blur(18px);min-width:280px;box-shadow:0 10px 34px #0007}.roomBar>div{text-align:center;min-width:150px}.roomBar span{display:block;font-size:13px;font-weight:800}.roomBar small{display:block;color:#d8e8e7;font-size:10px;margin-top:3px;max-width:180px}.roomBar button{font-size:20px;padding:5px 12px}.sceneItems{position:absolute;inset:0;z-index:8;pointer-events:none}.sceneObject{position:absolute;transform:translate(-50%,-50%);pointer-events:auto;border:1px solid #ffffffa3;background:linear-gradient(145deg,#fff8ec59,#0b3a4666);border-radius:24px;padding:8px;min-width:96px;max-width:130px;min-height:86px;display:grid;place-items:center;align-content:center;gap:4px;backdrop-filter:blur(7px);box-shadow:0 0 0 7px #ffffff0a,0 0 23px var(--glow),0 9px 29px #0007;animation:float 3s ease-in-out infinite}.sceneObject:hover,.sceneObject:focus-visible{scale:1.07;box-shadow:0 0 0 9px #ffffff12,0 0 38px var(--glow),0 11px 30px #0009}.objectArtwork{font-size:clamp(30px,3.2vw,53px);line-height:1.1;filter:drop-shadow(0 4px 5px #0007)}.objectTitle{font-weight:700;font-size:11px;line-height:1.2;text-align:center;text-shadow:0 2px 6px #0009}.sceneObject.clue{background:linear-gradient(145deg,#ffedd14e,#16343b7d)}.sceneObject.discovered{opacity:.56;border-color:#d7dbbb55;box-shadow:0 0 14px #ffffff35}.sceneObject.target{border:2px dashed var(--glow);border-radius:40% 50% 45% 55%;background:#0539458f}.pebble{position:absolute;z-index:10;left:7%;bottom:20%;width:105px;height:113px;pointer-events:none;animation:float 3.2s ease-in-out infinite}.shadow{position:absolute;bottom:3px;left:11px;width:85px;height:15px;border-radius:50%;background:#0007;filter:blur(9px)}.ceramic{position:absolute;inset:3px 8px 10px 4px;border-radius:60% 41% 46% 58%;transform:rotate(-17deg);background:radial-gradient(circle at 27% 18%,white 0%,#fff6e4 38%,#b1c1c1 81%,#768993);box-shadow:inset -14px -14px 21px #27383b61,0 10px 19px #0006}.seam{position:absolute;left:39%;top:7%;bottom:9%;width:15px;border-left:7px solid var(--glow);border-radius:50%;filter:drop-shadow(0 0 10px var(--glow));transform:rotate(7deg)}.eye{position:absolute;right:2px;top:35%;width:26px;height:26px;border:6px solid #cf9b47;border-radius:50%;background:#192a32;box-shadow:0 0 3px #fff9}.thought{position:absolute;bottom:111px;left:70%;font-size:11px;min-width:130px;width:190px;padding:10px 12px;background:#061b29c9;border:1px solid #ffffff65;border-radius:18px;backdrop-filter:blur(14px);text-shadow:0 1px 5px #000}.pebble[data-mood=happy]{animation:float 1.5s ease-in-out infinite}.pebble[data-mood=thinking] .seam{filter:drop-shadow(0 0 4px var(--glow))}.pebble[data-mood=excited] .seam{filter:drop-shadow(0 0 22px var(--glow))}.bottomDock{position:absolute;z-index:20;bottom:max(12px,env(safe-area-inset-bottom));left:50%;transform:translateX(-50%);width:min(1020px,calc(100% - 18px));display:flex;gap:10px;align-items:center;padding:10px 15px;border-radius:29px;border:1px solid #ffffff55;background:#061e2caf;box-shadow:0 12px 50px #0006;backdrop-filter:blur(20px)}.inventory{flex:1;display:flex;align-items:center;justify-content:center;gap:7px;min-width:0;overflow-x:auto;scrollbar-width:none}.inventory>span{font-size:12px;color:#e4e6e3}.inventoryItem{flex:none;display:grid;place-items:center;gap:3px;min-width:68px;padding:5px;border-radius:14px;background:#ffffff10;border:1px solid #ffffff48;touch-action:none}.inventoryItem span{font-size:27px}.inventoryItem small{font-size:9px;text-align:center;max-width:80px}.inventoryItem.chosen{border-color:var(--glow);box-shadow:0 0 15px var(--glow)}.bottomDock .cta{white-space:nowrap}.footerCredit{position:absolute;right:12px;bottom:97px;z-index:10;font-size:10px;letter-spacing:.1em;text-shadow:0 1px 8px #000}#narration{position:absolute;z-index:21;bottom:110px;left:50%;transform:translateX(-50%);max-width:min(700px,82vw);border:1px solid #ffffff65;border-radius:16px;background:#061b29c9;padding:12px 17px;text-align:center;line-height:1.4;backdrop-filter:blur(17px);opacity:0;pointer-events:none;transition:.2s}#narration.show{opacity:1}.popup{position:absolute;z-index:30;right:18px;top:20%;width:min(450px,calc(100% - 36px));max-height:65dvh;overflow-y:auto;border-radius:27px;background:#081d2ce9;padding:18px;border:1px solid #ffffff45;box-shadow:0 20px 70px #0009;backdrop-filter:blur(23px)}.popup.center{left:50%;top:50%;right:auto;transform:translate(-50%,-50%);width:min(650px,94vw);max-height:80dvh}.popupHead{display:flex;justify-content:space-between;align-items:center;gap:10px;font-size:21px}.popup p{font-size:13px;line-height:1.55;color:#e0ecec;border-bottom:1px solid #ffffff16;padding-bottom:8px}.popup .themeGrid{grid-template-columns:repeat(2,1fr)}.step{display:flex;gap:11px;align-items:flex-start;margin:10px 0}.step span{display:grid;place-items:center;background:#ffe7c2;color:#14202a;border-radius:50%;width:27px;height:27px;flex:none;font-weight:800}.step p{margin:0;flex:1}#resultAction{margin-top:12px}.dragGhost{position:fixed;z-index:60;font-size:45px;transform:translate(-50%,-50%);pointer-events:none}.chapterPanel{max-width:850px;margin:5vh auto;padding:20px}.chapterPanel>button{background:#103643;border:1px solid #ffffff5a;border-radius:99px;padding:10px 18px}.chapterPanel h2{font-size:clamp(26px,5vw,50px)}#chapters{overflow:auto;background:linear-gradient(#082b35bb,#061a26eb),url('assets/neighborhood_reference.png') center/cover}#caseGrid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:24px}.caseCard{display:grid;gap:10px;text-align:left;border:1px solid #ffffff44;background:#082c3aba;padding:24px;border-radius:23px}.caseCard small{color:#fbdab2;letter-spacing:.12em}.caseCard strong{font-size:23px}.caseCard span{font-size:13px}.caseCard:disabled{opacity:.46;cursor:not-allowed}#game.replaying .sceneObject.target{animation:flash .45s ease-in-out infinite alternate}body[data-theme=amethyst]{--glow:#dd79ff;--hue:55deg;--wash:#a02dfa33}body[data-theme=brass]{--glow:#ffc66b;--hue:-12deg;--wash:#b56b1e34}body[data-theme=coral]{--glow:#ff8e9c;--hue:-35deg;--wash:#ff567233}body[data-theme=teal]{--glow:#71cfff;--hue:23deg;--wash:#1859af2f}body[data-theme=verdant]{--glow:#a8ed87;--hue:98deg;--wash:#39ab6333}body[data-theme=rosewood]{--glow:#ff9abb;--hue:-65deg;--wash:#df4b7640}body[data-theme=frost]{--glow:#c2e8ff;--hue:140deg;--wash:#d7eafc38}@keyframes breath{to{transform:scale(1.04)}}@keyframes light{to{opacity:.35}}@keyframes float{50%{translate:0 -7px}}@keyframes flash{to{box-shadow:0 0 38px var(--glow),0 0 0 12px #ffffff12}}@keyframes drift{to{translate:26px -130px;opacity:0}}@media(max-width:900px){.caseBrief{top:86px;max-width:43vw}.roomBar{top:184px}.sceneObject{min-width:78px;max-width:108px;min-height:75px}.objectArtwork{font-size:32px}.pebble{width:80px;height:90px;left:5%;bottom:19%}.thought{bottom:95px}}@media(max-width:630px){#themes{grid-template-columns:repeat(2,minmax(0,1fr))}.themeGrid{grid-template-columns:repeat(2,minmax(0,1fr))}.startPanel{max-height:96dvh;overflow:auto;padding:19px}.headerRight button{padding:8px;font-size:11px}.brand{font-size:12px;letter-spacing:.08em}.brand small{font-size:7px}.caseBrief{top:65px;left:9px;max-width:65vw;padding:10px 12px}.caseBrief p{display:none}.caseBrief strong{font-size:16px}.roomBar{top:141px}.roomBar small{display:none}.sceneObject{min-width:64px;max-width:85px;min-height:70px;padding:5px}.objectArtwork{font-size:26px}.objectTitle{font-size:9px}.bottomDock{padding:8px;gap:5px}.inventoryItem{min-width:52px}.inventoryItem span{font-size:22px}.inventoryItem small{display:none}.bottomDock .cta{padding:10px 12px}.pebble{left:4%;bottom:17%;width:58px;height:66px}.thought{display:none}.footerCredit{display:none}#narration{bottom:94px;font-size:12px}.roomBar{min-width:210px}.roomBar>div{min-width:100px}.popup{top:16%}#caseGrid{grid-template-columns:1fr}}@media(max-height:600px) and (min-width:700px){.caseBrief{top:60px;padding:9px}.caseBrief p{display:none}.roomBar{top:72px}.sceneObject{min-height:62px}.objectArtwork{font-size:25px}.bottomDock{bottom:5px;padding:5px}.pebble{bottom:15%;width:65px;height:72px}.thought{display:none}}@media(prefers-reduced-motion:reduce){*,*::before,*::after{animation:none!important;transition:none!important}}

/* v1.0: scene controls and original standalone item sprite atlas */
.objectArtwork,.inventoryArt{display:grid;place-items:center;line-height:1;min-height:42px}
.objectArtwork img{width:56px;height:56px;object-fit:contain;filter:drop-shadow(0 4px 7px #0007)}
.inventoryArt img{width:46px;height:46px;object-fit:contain}
.dragGhost img{width:64px;height:64px}
.sceneObject{max-width:132px;min-width:103px;min-height:105px;box-shadow:0 7px 21px #0008,0 0 18px color-mix(in srgb,var(--glow) 46%, transparent);animation:float 4s ease-in-out infinite}
.sceneObject.clue .objectArtwork{filter:drop-shadow(0 1px 7px var(--glow))}
.visibleObjects{position:absolute;z-index:17;right:14px;top:170px;width:min(220px,22vw);max-height:calc(100dvh - 310px);overflow:auto;padding:12px;border-radius:23px;background:linear-gradient(155deg,#061a27a6,#0d2936a1);backdrop-filter:blur(14px);border:1px solid #ffffff55;box-shadow:0 9px 34px #0006}
.visibleObjects>strong{display:block;font-size:10px;letter-spacing:.13em;color:var(--gold);margin-bottom:10px}
#sceneIndex{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:6px}
.sceneIndexItem{border:1px solid #ffffff46;background:#ffffff11;border-radius:14px;padding:5px;display:grid;place-items:center;gap:2px;min-width:0}
.sceneIndexItem .objectArtwork{min-height:34px}.sceneIndexItem img{width:39px;height:39px}
.sceneIndexItem span:last-child{font-size:10px;line-height:1.2;word-break:break-word;text-align:center}
.sceneIndexItem.muted{opacity:.44}.sceneIndexItem:hover{border-color:var(--glow);background:#ffffff2a}
.roomBar{top:88px}.caseBrief{top:90px;max-width:min(335px,30vw)}
#game{isolation:isolate}
@media(max-width:900px){.visibleObjects{top:247px;width:min(180px,24vw);max-height:calc(100dvh - 345px)}.sceneIndexItem img{width:33px;height:33px}.sceneObject{max-width:103px;min-width:86px;min-height:85px}.objectArtwork img{width:42px;height:42px}}
@media(max-width:630px){.visibleObjects{top:185px;right:6px;width:115px;max-height:calc(100dvh - 310px);padding:6px;border-radius:14px}#sceneIndex{grid-template-columns:1fr}.sceneIndexItem{display:flex;align-items:center;padding:3px;gap:3px}.sceneIndexItem img{width:25px;height:25px}.sceneIndexItem span:last-child{font-size:9px;text-align:left}.visibleObjects>strong{font-size:8px}.sceneObject{min-width:70px;max-width:87px;min-height:75px}.objectArtwork img{width:37px;height:37px}}
@media(max-height:650px){.visibleObjects{top:150px;max-height:calc(100dvh - 250px)}}
/* Production preview: separate scenery, accessible interaction stage and tools. */
#startScreen,#chapters{background:linear-gradient(90deg,#061923ed,#082630b3 62%,#09212444),url('assets/environments/courtyard-v2.png') center/cover}
#game{height:auto;min-height:100dvh;display:flex;flex-direction:column;overflow:visible;background:#081f28}
.worldFrame{position:relative;min-height:660px;flex:1;isolation:isolate;overflow:hidden;border-bottom:1px solid #ffffff28}
#sceneBackdrop{animation:none;background-size:100% 100%;filter:none}
#sceneBackdrop:after{content:'';position:absolute;inset:0;background:linear-gradient(180deg,#061d2899,transparent 35%,#061d2833),linear-gradient(100deg,var(--wash),transparent);mix-blend-mode:screen}
#game:after{display:none}header{top:14px}.caseBrief{top:85px;left:24px;max-width:390px;background:#08232dd6}.caseBrief p{font-size:13px}.roomBar{top:90px;left:auto;right:20px;transform:none;min-width:260px}.roomBar small{display:none}
.sceneItems{inset:230px 13% 30px;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:18px;align-content:center;pointer-events:none}
.sceneObject{position:relative;left:auto;top:auto;transform:none;min-width:0;max-width:none;min-height:100px;width:100%;padding:8px;animation:none;background:linear-gradient(155deg,#183e43d9,#0a2631bd);border:1px solid #d9ba7d70;border-radius:22px 12px 22px 12px;box-shadow:0 8px 20px #0005;backdrop-filter:blur(5px)}
.sceneObject .objectArtwork img{width:54px;height:54px}.objectTitle{font-size:12px}.sceneObject.discovered{opacity:1;border-color:#72c6b280;background:#153f40b3}.sceneObject.discovered:after{content:'✓';position:absolute;right:9px;top:6px;font-size:11px;color:#a3efcc}.sceneObject.target{background:#1b3c3ddb;min-height:100px}.sceneObject.control{border-color:#e7b576;background:linear-gradient(155deg,#755a39e6,#2b373ac9)}
.sceneObject:hover{scale:1.025}.pebble{left:2%;bottom:6%;width:78px;height:86px}.thought{display:none}.ceramic{background:radial-gradient(circle at 27% 18%,#fff,var(--pebble-body) 45%,#647d83)}.eye{border-color:var(--pebble-eye)}.seam{border-color:var(--pebble-seam);filter:drop-shadow(0 0 7px var(--pebble-seam))}
.bottomDock{position:relative;left:auto;bottom:auto;transform:none;width:100%;min-height:100px;flex:none;border-radius:0;border:0;padding:12px 20px;box-shadow:none;background:#0a2630;gap:10px}.bottomDock>button{font-size:12px;min-height:44px}.bottomDock button:disabled{opacity:.4;cursor:default}.inventory{justify-content:flex-start}.inventoryItem{min-width:74px;min-height:70px}.inventoryItem small{display:block}.footerCredit{display:none}
#narration{position:fixed;bottom:116px;max-width:min(700px,92vw);background:#08232df5;z-index:25;font-size:13px}.popup{position:fixed}.popup.center{max-height:88dvh}.preferences{display:flex;flex-wrap:wrap;gap:16px}.preferences label{display:flex;gap:8px;align-items:center;font-size:13px}.preferences input[type=color]{width:45px;height:36px;border:0;padding:0;background:none}.preferences input[type=range]{width:100px}.startPanel h1{font-size:clamp(29px,6vw,72px)}.startPanel .secondary{margin:8px 0 0 8px}.brand small{line-height:1.5}
body[data-theme=amethyst]{--wash:#9a39ff66}body[data-theme=brass]{--wash:#e9ab3066}body[data-theme=coral]{--wash:#ed696e66}body[data-theme=teal]{--wash:#197db666}body[data-theme=verdant]{--wash:#6aba4266}body[data-theme=rosewood]{--wash:#b93e6c66}body[data-theme=frost]{--wash:#bde7ff77}
@media(min-height:800px) and (min-width:700px){.worldFrame{min-height:calc(100dvh - 104px)}}
@media(max-width:900px){.sceneItems{inset:210px 10% 30px;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px}.caseBrief{max-width:46vw}.roomBar{top:100px;min-width:220px}.worldFrame{min-height:720px}}
@media(max-width:630px){.worldFrame{min-height:750px}header{left:10px;right:10px;gap:6px}.headerRight{gap:4px}.headerRight button{min-height:44px;padding:6px;font-size:10px}.brand{font-size:11px}.brand small{font-size:6px}.caseBrief{left:12px;right:12px;top:76px;max-width:none;padding:10px 14px}.caseBrief strong{font-size:18px}.caseBrief p{display:block;font-size:12px}.roomBar{top:192px;left:12px;right:12px;min-width:0}.roomBar>div{flex:1}.roomBar button{min-width:44px;min-height:36px}.sceneItems{inset:253px 12px 82px;grid-template-columns:repeat(3,minmax(0,1fr));gap:9px}.sceneObject{min-height:95px;padding:6px;border-radius:16px}.sceneObject .objectArtwork img{width:42px;height:42px}.objectTitle{font-size:10px}.pebble{width:45px;height:52px;bottom:12px;left:20px}.bottomDock{flex-wrap:wrap;padding:8px;gap:6px;min-height:142px}.inventory{order:-1;flex-basis:100%;min-height:72px;gap:6px}.inventoryItem{min-width:64px;padding:3px}.inventoryArt img{width:36px;height:36px}.inventoryItem small{font-size:8px;max-width:60px}.bottomDock .cta{margin-left:auto}.bottomDock>button{padding:8px 12px}#narration{bottom:154px}.popup.center{width:94vw}.startPanel{max-height:none;margin:14px auto}.startPanel .secondary{margin-left:0}.themeTile{min-height:65px}.screen{overflow:visible}}
@media(max-height:600px) and (min-width:631px){.worldFrame{min-height:570px}.caseBrief{top:76px}.roomBar{top:80px}.sceneItems{inset:200px 12% 30px;grid-template-columns:repeat(4,minmax(0,1fr))}.pebble{bottom:20px}.sceneObject{min-height:95px}}
@media(prefers-reduced-motion:reduce){*,*:before,*:after{animation:none!important;transition:none!important}}
.bottomDock>#testBtn{background:linear-gradient(115deg,#fff2ca,#f3a378);color:#172d32;border:1px solid #fff0d3;font-weight:800}
#causalTrace{position:absolute;z-index:24;bottom:14px;left:50%;transform:translateX(-50%);width:min(550px,80%);padding:13px 18px;border:1px solid #f5d49a;border-radius:16px;background:#123a41ed;text-align:center;box-shadow:0 9px 24px #0004;font-size:14px}
.causalActive .objectArtwork img{animation:causalMove .42s ease-in-out infinite!important}.causalActive{border-color:#ffe8b2!important;background:#626240e8!important}
@keyframes causalMove{50%{transform:translate(16px,-5px) rotate(16deg)}}
@media(prefers-reduced-motion:reduce){.causalActive .objectArtwork img{animation:none!important}}

#sceneBackdrop{background-size:cover;background-position:center 55%}
@media(max-width:630px){#sceneBackdrop{background-size:auto 100%;background-position:center}.sceneObject{background:#103139c9}}
/* Chapter release: object silhouettes stay separate from scenery. */
.neighborhood{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;margin:14px 0}.memory{border-bottom:1px solid #ffffff22;font-size:11px;padding:6px;color:#b6c4c4}.memory.found{color:#ffe0a8;border-color:#e4bf7766}.progressText{font-size:12px!important;letter-spacing:.06em}.textButton{border:0;border-bottom:1px solid #ffffff66;background:none;color:#e7eadd;padding:9px;margin:6px 0;font-size:12px}.startPanel{margin:20px auto}.startPanel .themeGrid{margin:14px 0}.startPanel h1{font-size:clamp(28px,5.5vw,70px)}
.sceneObject{background:linear-gradient(180deg,#0b293741,#0b2937b3);border-color:#ffffff20;box-shadow:none;backdrop-filter:blur(2px)}.sceneObject.target{border:1px solid #ccab6f;background:linear-gradient(180deg,#3a554966,#102e36c9);border-radius:20px;box-shadow:0 8px 18px #0004}.sceneObject .objectArtwork img{width:70px;height:70px}.sceneObject .objectArtwork{min-height:70px}.sceneObject.control{background:linear-gradient(155deg,#755a39bb,#2b373a99)}.sceneObject .objectTitle{font-size:11px;line-height:1.4}.sceneObject.discovered:after{right:6px}.objectTitle{padding:0 2px}
.accessibility{display:flex;flex-wrap:wrap;gap:18px;margin:20px 0;font-size:13px}.accessibility input{accent-color:#b5e9db}.saveTools{border-top:1px solid #ffffff30;padding-top:15px;display:flex;flex-wrap:wrap;align-items:center;gap:9px}.saveTools button,.fileButton{padding:10px;border:1px solid #ffffff55;background:#ffffff11;border-radius:12px;font:inherit;font-size:12px;cursor:pointer}.fileButton{position:relative;overflow:hidden}.fileButton input{position:absolute;inset:0;opacity:0;width:100%;cursor:pointer}.fileButton:focus-within{outline:3px solid var(--glow)}#backupStatus{flex-basis:100%;margin:0}#aboutGame{margin:15px 0;font-size:13px}#aboutGame summary{cursor:pointer;padding:8px 0}#aboutGame p{font-size:12px}.popup[role=dialog]{overscroll-behavior:contain}.popup button{min-height:44px}.popupHead strong{font-size:19px}
#ending{background:linear-gradient(#08252fd9,#08252fe8),url('assets/environments/courtyard-v2.png') center/cover fixed;overflow:auto}.endingPanel{max-width:900px;padding:clamp(22px,5vw,60px);margin:auto}.endingPanel h1{font:clamp(32px,7vw,66px) Georgia,serif;letter-spacing:.02em}.endingPanel p{font-size:15px;line-height:1.8}.endingPanel .letter{font:italic 20px/1.7 Georgia,serif;color:#ffe3ad;border-left:2px solid #ccac70;padding-left:22px}#endingMemories{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-top:25px}#endingMemories p{font-size:12px;border-bottom:1px solid #ffffff22;padding:10px;margin:0}#storageNotice{position:fixed;left:8px;right:8px;bottom:8px;z-index:100;background:#ffe7b7;color:#17333b;padding:12px;border-radius:12px;font-size:13px;box-shadow:0 8px 20px #0005}
#consequence{position:absolute;z-index:4;inset:0;pointer-events:none}.giftFlower,.giftLamp{position:absolute;opacity:0;width:90px;height:90px;bottom:18px;right:25px;filter:drop-shadow(0 0 10px #efdb8d)}.giftLamp{bottom:auto;top:165px;right:35px;width:65px;height:65px}body[data-completed]:not([data-completed="0"]) .giftFlower{opacity:1}body:is([data-completed="3"],[data-completed="4"],[data-completed="5"],[data-completed="6"]) .giftLamp{opacity:1}#sceneBackdrop[data-solved=true]{filter:brightness(1.08)}
body[data-motion=off] *,body[data-motion=off] *:before,body[data-motion=off] *:after{animation:none!important;transition:none!important}body[data-sensory=on] .sceneParticles{display:none}.sceneObject:hover{box-shadow:0 4px 20px #0005}.pebble[data-mood=curious] .ceramic{animation:curiousTilt 5s ease-in-out infinite}.pebble[data-mood=excited] .ceramic{animation:curiousTilt 1s ease-in-out infinite}@keyframes curiousTilt{50%{transform:rotate(-8deg)}}
@media(max-width:630px){.neighborhood{grid-template-columns:repeat(2,minmax(0,1fr))}.memory{font-size:10px}.sceneObject .objectArtwork img{width:50px;height:50px}.sceneObject .objectArtwork{min-height:50px}.sceneObject .objectTitle{font-size:10px}.sceneObject{min-height:105px}.sceneItems{gap:7px}.worldFrame{min-height:850px}.giftLamp{top:250px;width:45px;right:20px}.giftFlower{width:60px;right:20px}.startPanel .themeTile{min-height:58px}.endingPanel .letter{font-size:18px}#endingMemories{grid-template-columns:1fr}.endingPanel .secondary{margin:10px 0}.popupHead strong{font-size:16px}}
#mechanismTheatre{position:absolute;z-index:16;left:10%;right:10%;top:225px;padding:20px 15px 12px;border:1px solid #e1c28a77;border-radius:26px;background:linear-gradient(155deg,#173c43f5,#0b2631f5);box-shadow:0 25px 80px #0008;text-align:center}.machineCanvas svg{display:block;width:100%;max-height:340px}.traveller{transition:transform .6s cubic-bezier(.4,0,.6,1)}.mechanismRoute{animation:routeFlow 1.5s linear infinite}.movingPart{filter:drop-shadow(0 0 8px #e8e0a4)}.waterFlow{transition:opacity .4s}.runOutcome{transition:opacity .4s}#skipReplay{border:1px solid #ffffff55;border-radius:99px;background:#ffffff10;padding:8px 15px;font-size:12px;min-height:44px}.replaying .sceneItems{opacity:.12;pointer-events:none}.replaying #causalTrace{z-index:18}#mechanismTheatre[data-reduced=true] *{transition:none!important;animation:none!important}@keyframes routeFlow{to{stroke-dashoffset:-38}}
@media(max-width:630px){#mechanismTheatre{top:310px;left:8px;right:8px;padding:18px 8px}.machineCanvas svg{min-height:150px}#mechanismTheatre .eyebrow{font-size:10px}}
/* Reserve feedback space instead of covering the objects it describes. */
#narration{position:relative;left:auto;bottom:auto;transform:none;width:100%;max-width:none;min-height:54px;margin:0;padding:12px 20px;border:0;border-radius:0;background:#10323b;opacity:1;text-align:center;display:grid;place-items:center;font-size:13px;transition:none;z-index:21}
@media(min-width:901px){.worldFrame{min-height:max(660px,calc(100dvh - 154px))}}
@media(max-width:630px){#narration{bottom:auto;min-height:64px;padding:10px 16px;font-size:12px}.worldFrame{min-height:850px}}
