@font-face{font-family:Pixel;src:url('../assets/fonts/fusion-pixel-12px-monospaced-zh_hans.woff2?v=atlas-64') format('woff2');font-display:block}
:root{font-family:Pixel,monospace;font-synthesis:none;color:#435644;--paper:#e4d7aa;--ink:#435644;--line:#9ba17b;--leaf:#aab186;--clay:#b98b78;--deep:#607b65}
*{box-sizing:border-box}html,body{margin:0;width:100%;height:100%;overflow:hidden;overscroll-behavior:none}body{position:fixed;inset:0;background:#556b58}#surface{position:fixed;inset:0;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}.app-shell{position:relative;width:100%;max-width:560px;height:100dvh;margin:auto;display:flex;flex-direction:column;padding:env(safe-area-inset-top) 0 env(safe-area-inset-bottom);overflow:hidden;background:var(--paper)}html:not(.font-ready) .app-shell{visibility:hidden}#app{flex:1;min-height:0;overflow:hidden;outline:none}.topbar{display:none}.footer{position:absolute;bottom:0;left:0;right:0;z-index:15;background:var(--paper);font-size:10px;padding:6px}.footer:has(#save-status:empty){display:none}h1,h2,h3,p{margin:0;font-weight:400}b,strong{font-weight:400}button,a{font:inherit;color:inherit;touch-action:manipulation;-webkit-tap-highlight-color:transparent}button{cursor:pointer;border:0;border-radius:0}button:disabled{opacity:.48;cursor:default}[hidden]{display:none!important}button:focus-visible,a:focus-visible{outline:2px solid #b98b78;outline-offset:3px}a{text-decoration:none}canvas{image-rendering:pixelated}button:active{translate:1px 1px}
/* The atlas fills the portrait stage. Its sheet can be moved directly. */
.desk{position:relative;height:100%;overflow:hidden;background:#7c9f89}.desk>.map-paper{height:100%;width:100%;position:relative;overflow:hidden}.map-view{position:absolute;top:0;left:50%;height:100%;width:calc(100dvh * 1.8);transform:translateX(calc(-55% + var(--pan-x,0px)));touch-action:none;cursor:grab}.map-view.dragging{cursor:grabbing}.map-view>canvas{width:100%;height:100%;display:block}.map-hit{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.map-hit a{pointer-events:all;cursor:pointer}.map-hit path{fill:transparent}.map-hit text{fill:#435644;font:12px Pixel;paint-order:stroke;stroke:#d6cca1;stroke-width:3px}.map-hit a:hover path,.map-hit a:focus-visible path{fill:#ebdba02b;stroke:#ad7c70;stroke-width:1.5}.map-hit a:hover text{fill:#a36160}.paper-title{position:absolute;z-index:5;top:22px;left:22px;font-size:24px;line-height:1.1;color:#435644;background:#e4d7aa;padding:10px 12px;box-shadow:2px 3px #6e886e}.paper-title small{display:block;font-size:9px;letter-spacing:2px;margin-top:8px}.paper-title:hover{background:#eee3bb}.atlas-rose{position:absolute;bottom:31px;right:24px;width:96px;height:96px;pointer-events:none;z-index:4}.atlas-hint{position:absolute;left:22px;bottom:134px;z-index:5;font-size:10px;color:#435644;background:#d7d0a2;padding:4px 6px;pointer-events:none}
.desk-phone{position:absolute;left:23px;bottom:25px;z-index:6;width:64px;height:100px;padding:11px 6px 13px;background:#435644;border:2px solid #c6b48c;box-shadow:3px 4px #617c65}.mini-screen{height:70px;display:flex;flex-direction:column;align-items:center;gap:14px;padding-top:8px;background:#b9c095;font-size:10px}.mini-speaker{position:absolute;left:23px;top:4px;width:15px;height:2px;background:#a8ab85}.mini-home{position:absolute;left:24px;bottom:4px;width:13px;height:3px;background:#cbbd93}.tiny-apps{width:8px;height:8px;background:#e8dcad;box-shadow:12px 0 #e8dcad,0 12px #e8dcad,12px 12px #e8dcad;margin-right:12px}.desk-phone:after{content:'手机';position:absolute;top:calc(100% + 5px);left:0;width:100%;font-size:10px;color:#e8dcad;text-align:center}.desk-phone:hover,.pocket-phone:hover{outline:2px solid #e8dcad;outline-offset:3px;background:#7a6654}
.route-map-screen{height:100%;padding:12px;display:flex;align-items:center;background:#7c9f89}.route-paper{flex:1;height:100%;min-height:0;container-type:size;display:flex;align-items:center;justify-content:center}.route-map-view{position:relative;width:min(100cqw,calc(100cqh * .9142857));aspect-ratio:384/420}.route-map-view>canvas{display:block;width:100%;height:100%}.route-map-view .paper-title{font-size:16px;top:9px;left:9px;padding:7px 9px;box-shadow:none}.route-map-view .paper-title small{font-size:7px;margin-top:5px;letter-spacing:1px}.route-pin{position:absolute;z-index:3;transform:translate(-50%,-50%);width:30px;height:30px;background:none;padding:0}.route-pin:disabled{opacity:1}.route-pin:active{translate:0 0}.route-pin i{position:absolute;left:10px;top:10px;width:10px;height:10px;background:#e4d7aa;border:2px solid #a8ad87}.route-pin.visited i{background:#94a17c;border-color:#435644}.route-pin.ready i{background:#b77e78;border-color:#435644;box-shadow:0 0 0 2px #eee0b4}.route-pin:enabled:hover i,.route-pin:focus-visible i{outline:2px solid #b77e78;outline-offset:4px}.route-pin:focus-visible{outline:0}.pin-label{display:none;position:absolute;left:50%;bottom:28px;transform:translateX(-50%);font-size:10px;white-space:nowrap;background:#e4d7aa;padding:5px 7px;pointer-events:none}.route-pin.ready .pin-label,.route-pin:enabled:hover .pin-label,.route-pin:focus-visible .pin-label{display:block}
/* The illustration and narrative form one page, with the choices in their own scroll area. */
.play-screen{height:100%;padding:12px;display:grid;grid-template-rows:minmax(0,46%) auto minmax(0,1fr);gap:12px;overflow:hidden}.scene-panel{min-height:0;position:relative;overflow:hidden;background:#b9c095;box-shadow:0 3px #b7ac83}.scene-view{position:absolute;inset:0;overflow:hidden}.scene-view>canvas{display:block;width:100%;height:100%;object-fit:cover;object-position:center bottom;pointer-events:none}.scene-dock{position:absolute;inset:auto 0 0;z-index:5;height:60px;display:flex;align-items:center;justify-content:space-between;padding:4px 8px;pointer-events:none}.scene-dock button{pointer-events:auto}.pocket-phone{position:relative;width:35px;height:48px;background:#435644;padding:5px 3px;display:flex;flex-direction:column;align-items:center;justify-content:space-between;border:1px solid #b9c095;box-shadow:2px 2px #82916d}.pocket-phone span{font-size:8px;background:#b9c095;padding:4px 1px}.pocket-phone i{width:10px;height:2px;background:#e4d7aa}.pocket-map{width:55px;height:55px;background:none;padding:0}.pocket-map canvas{display:block;width:100%;height:100%}.pocket-map:hover{outline:2px solid #b98b78;outline-offset:2px}.location-whisper{position:absolute;right:69px;bottom:13px;max-width:calc(100% - 112px);font-size:10px;line-height:1.6;text-align:right;padding:6px;background:#e4d7aa}.case-hotspot{position:absolute;left:56%;top:73%;width:17%;height:26%;background:none}.case-hotspot:hover,.case-hotspot:focus-visible{outline:2px dashed #e8dcad;background:#e8dcad33}.story-copy{padding:0 3px;max-height:190px;overflow:auto;overscroll-behavior:contain;scrollbar-width:thin}.story-copy h1{font-size:18px;line-height:1.5;margin-bottom:7px}.prose{font-size:12px;line-height:1.85;white-space:pre-line}.micro,.receipt-cost,.mini-clock{font-size:10px;line-height:1.5;margin-top:5px}.mini-clock:empty{display:none}.choice-scroll{min-height:0;overflow:auto;overscroll-behavior:contain;padding:0 3px 3px;display:flex;flex-direction:column;gap:8px;scrollbar-width:thin;scrollbar-color:#a1a580 #e4d7aa}
.btn,.choice,.item,.outfit-btn,.tabs button,.item-actions button,.contact{background:#d4c797;border:1px solid #b2a77e;box-shadow:0 2px #b4a77b;min-height:44px;padding:9px 11px;font-size:12px;text-align:left;flex-shrink:0}.btn{display:flex;align-items:center;justify-content:space-between;gap:8px;width:100%;line-height:1.5}.btn:hover,.choice:hover,.item:hover,.contact:hover,.tabs button:hover,.outfit-btn:hover{background:#f0e4bc;border-color:#899373}.btn:active,.choice:active{background:#aab186;box-shadow:none}.choice{display:grid;grid-template-columns:18px minmax(0,1fr) auto;gap:8px;line-height:1.5;width:100%}.choice b{display:block}.choice small{display:block;font-size:10px;line-height:1.5;margin-top:4px;color:#6c7e61}.choice-number,.price{font-size:10px}.choice-number{color:#7e8767}.px-arrow{display:inline-block;width:9px;height:7px;background:currentColor;clip-path:polygon(0 3px,5px 3px,5px 0,7px 0,7px 2px,9px 2px,9px 5px,7px 5px,7px 7px,5px 7px,5px 4px,0 4px)}.back-arrow{transform:rotate(180deg)}.tabs{display:flex;gap:5px;margin:3px 0}.tabs button{flex:1}.item-grid{display:grid;grid-template-columns:1fr 1fr;gap:7px}.item{display:block;min-height:80px;padding:9px}.item b{display:block}.item small{display:block;font-size:10px;line-height:1.7;margin-top:7px}.item.selected,.tabs button[aria-pressed=true],.outfit-btn.active{background:#abb58d;border-color:#768367}.case-items{display:grid;grid-template-columns:1fr 1fr;gap:6px;padding:8px;margin:5px 0;background:#bcc29b}.case-items .px-arrow{display:none}.inventory-row{padding:9px 0;border-bottom:1px solid #b2ad84;flex-shrink:0}.inventory-row small{display:block;font-size:10px}.item-actions{display:flex;gap:6px;margin-top:5px}.item-actions button{flex:1}.outfit-list{display:flex;gap:7px;flex-wrap:wrap;margin:14px 0}.avatar-row{display:flex;align-items:center;gap:16px}.avatar-row canvas{width:80px;height:100px}.avatar-row p{font-size:12px;line-height:1.8}
/* The functional pages live inside the same physical phone. */
.phone-scene{height:100%;padding:12px 20px 15px;display:flex;flex-direction:column;overflow:hidden}.back-link{flex:0 0 40px;font-size:12px;text-align:left;background:none}.back-link:hover{color:#a36160}.pixel-phone{position:relative;flex:1;min-height:0;display:flex;flex-direction:column;background:#67785b;border:3px solid #435644;padding:24px 10px 28px;box-shadow:3px 4px #b7ac83}.pixel-phone:before{content:'';position:absolute;left:calc(50% - 21px);top:9px;width:42px;height:3px;background:#435644;box-shadow:0 1px #97a17b}.phone-screen{flex:1;min-height:0;display:flex;flex-direction:column;overflow:hidden;background:#e4d7aa;border:2px solid #435644}.phone-hardware{height:0}.phone-status{height:27px;min-height:27px;display:flex;align-items:center;justify-content:space-between;padding:6px 10px;font-size:10px;background:#bcc29b}.battery-icon{width:14px;height:6px;border:1px solid #435644;background:#8a9a72;box-shadow:2px 0 #435644}.chat-bar{height:42px;min-height:42px;display:flex;gap:10px;align-items:center;padding:0 6px;border-bottom:1px solid #b2ad84}.chat-bar button{width:36px;height:36px;background:none}.chat-bar h1{font-size:14px}.chat-bar:has(h1:empty){display:none}.chat-bar button:hover{background:#f0e4bc}.phone-scroll{flex:1;min-height:0;overflow:auto;overscroll-behavior:contain;padding:14px;scrollbar-width:thin}.phone-home{position:absolute;bottom:8px;left:calc(50% - 16px);width:32px;height:11px;background:#b4bd94;border:2px solid #435644}.phone-home:hover{background:#e4d7aa}.phone-apps{display:grid;grid-template-columns:1fr 1fr;gap:26px 20px;align-content:start;overflow:auto;padding:38px 24px}.phone-apps button{background:none;display:flex;flex-direction:column;align-items:center;gap:13px;font-size:12px;min-height:93px}.app-icon{width:52px;height:52px;background:#b7c098;border:2px solid #83936c;position:relative;box-shadow:2px 3px #bab186}.app-icon:before,.app-icon:after{content:'';position:absolute}.icon-chat:before{inset:11px 8px 16px;background:#e8dcad;box-shadow:0 2px #657b60}.icon-chat:after{left:11px;bottom:10px;width:6px;height:7px;background:#e8dcad}.icon-notes{background:#c6a486;border-color:#a88b70}.icon-notes:before{inset:7px 10px;background:#f0e4bc}.icon-notes:after{left:15px;top:16px;width:19px;height:2px;background:#a89973;box-shadow:0 6px #a89973,0 12px #a89973,0 18px #a89973}.icon-bag{background:#a2b39b}.icon-bag:before{inset:17px 8px 8px;background:#c7af79;border:2px solid #657b60;box-shadow:inset 3px 0 #e4d7aa,inset -3px 0 #9d8e65}.icon-bag:after{left:18px;top:10px;width:13px;height:9px;border:2px solid #657b60}.icon-settings{background:#b4bba0}.icon-settings:before{inset:13px;background:#657b60;box-shadow:0 -5px #657b60,0 5px #657b60,5px 0 #657b60,-5px 0 #657b60}.icon-settings:after{left:20px;top:20px;width:8px;height:8px;background:#e4d7aa}.phone-apps button:hover .app-icon{outline:2px solid #b98b78;outline-offset:4px;translate:0 -2px}.phone-apps button:hover{color:#a36160}.lock-screen{position:relative;flex:1;min-height:0;display:flex;align-items:center;justify-content:space-around;flex-direction:column;overflow:hidden}.lock-screen canvas{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.lock-time,.unlock{z-index:1}.lock-time{font-size:42px;background:#e4d7aa;padding:7px 12px;box-shadow:2px 3px #83936c}.unlock{font-size:12px;padding:10px 16px;background:#e4d7aa;min-height:44px;border:1px solid #899373}.unlock:hover{background:#f0e4bc}.settings-app{display:flex;flex-direction:column;gap:10px}.phone-note{padding:14px 0;border-bottom:1px dashed #a1a580}.phone-note small{font-size:10px;color:#6c7e61}.phone-note p{font-size:12px;line-height:1.9;margin:8px 0;white-space:pre-line}.phone-note h2{font-size:14px;margin:8px 0}.empty-notes{font-size:12px;line-height:1.9;padding:18px 0}.contact-list{display:grid;gap:8px}.contact{display:flex;align-items:center;gap:10px;width:100%;min-height:64px}.contact-avatar{width:34px;height:34px;flex-shrink:0;display:grid;place-items:center;background:#bcc29b;border:1px solid #83936c}.contact b{display:block}.contact small{display:block;font-size:10px;max-width:190px;line-height:1.5;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.social-quote{font-size:12px;line-height:1.9;margin-bottom:14px}.chat-thread{display:flex;flex-direction:column;gap:14px}.bubble{font-size:12px;line-height:1.85;padding:10px 12px;background:#f0e4bc;border:1px solid #c7bf93;max-width:90%;align-self:flex-start}.bubble.mi{background:#bbc69c;border-color:#94a17c;align-self:flex-end}.chat-speaker{display:block;font-size:10px;color:#6c7e61;margin-bottom:3px}.phone-screen>.btn{width:calc(100% - 12px);margin:6px}
.mini-stage{position:absolute;inset:0;pointer-events:none}.mini-stage i{position:absolute}.escaping-glasses{left:var(--escape,0%);top:45%;width:30px;height:10px;background:#435644;clip-path:polygon(0 0,10px 0,10px 3px,20px 3px,20px 0,30px 0,30px 10px,20px 10px,20px 5px,10px 5px,10px 10px,0 10px)}.mini-game:not(.glasses) .escaping-glasses{display:none}.waiting-person{display:none;right:25%;bottom:18%;width:7px;height:17px;background:#657b60;box-shadow:0 -5px #c7af79}.npc-here .waiting-person{display:block}.arriving-bus{display:none;left:9%;bottom:15%;width:72px;height:27px;background:#929c68;box-shadow:5px 5px #435644,-5px 5px #435644}.arriving-bus:before{content:'';position:absolute;inset:4px 6px auto;height:9px;background:#b7c7ac}.bus-here .arriving-bus{display:block}.pixel-rain{position:absolute;inset:0;display:none;opacity:var(--wet,0);background:repeating-linear-gradient(90deg,transparent 0 25px,#e4d7aa 25px 26px,transparent 26px 45px);animation:rain .5s steps(3) infinite}.falls .pixel-rain{display:block}@keyframes rain{to{background-position:0 15px}}.mini-controls{display:grid;gap:8px}.mini-done{align-self:flex-start}
dialog{width:min(420px,calc(100% - 24px));max-height:calc(100dvh - 40px);background:#e4d7aa;color:#435644;border:2px solid #657b60;padding:16px;box-shadow:4px 4px #83936c;display:flex;flex-direction:column;overflow:hidden}dialog:not([open]){display:none}dialog::backdrop{background:#43564499}.modal-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:12px}.modal-head h2{font-size:16px}.close-btn{width:40px;height:40px;background:#bcc29b}.close-btn:hover{background:#f0e4bc}.modal-body{overflow:auto;min-height:0;font-size:12px;line-height:1.9}.modal-body>.btn{margin:6px 0}.modal-actions{margin-top:12px}.modal-actions:empty{display:none}#toast{position:fixed;bottom:14px;left:50%;transform:translateX(-50%);max-width:90%;background:#e4d7aa;border:1px solid #657b60;padding:10px 14px;font-size:12px;visibility:hidden;z-index:20}#toast.show{visibility:visible}
@media(max-height:680px){.play-screen{padding:8px;grid-template-rows:minmax(0,41%) auto minmax(0,1fr);gap:7px}.story-copy{max-height:148px}.story-copy h1{font-size:14px;margin-bottom:4px}.prose{line-height:1.65}.scene-dock{height:49px}.pocket-map{width:45px;height:45px}.pocket-phone{width:30px;height:40px}.phone-apps{padding-top:22px;gap:18px}.lock-time{font-size:30px}.paper-title{font-size:20px;top:16px;left:16px}.desk-phone{width:56px;height:90px;left:17px}.mini-screen{height:61px}.atlas-rose{width:80px;height:80px;bottom:26px;right:17px}.atlas-hint{left:17px;bottom:121px}}
@media(max-width:350px){.phone-scene{padding-left:12px;padding-right:12px}.phone-apps{padding-left:16px;padding-right:16px}.contact small{max-width:145px}.choice{padding:7px 8px}.phone-note small{font-size:9px}}
@media(prefers-reduced-motion:reduce){.pixel-rain{animation:none}}
.route-map-view{width:100%;height:100%;aspect-ratio:auto}.route-map-view .paper-title{top:10px;left:10px;font-size:22px;padding:10px 12px;box-shadow:2px 3px #6e886e}.route-map-view .paper-title small{font-size:9px}
.desk .map-view{user-select:none;-webkit-user-select:none}.desk .map-hit a{-webkit-user-drag:none}

/* All visible small objects are now pixel drawings rather than CSS tiles. */
.desk-phone{width:72px;height:120px;background:none;border:0;box-shadow:none;padding:0;overflow:visible}.desk-phone>canvas,.pocket-phone>canvas{display:block;width:100%;height:100%;pointer-events:none}.mini-clock-face{position:absolute;top:24px;left:0;width:100%;font-size:10px;line-height:12px;text-align:center;color:#65714f;pointer-events:none}.desk-phone:hover,.pocket-phone:hover{background:none;outline:0;translate:0 -2px}.desk-phone:focus-visible{outline:2px dashed #eddfb1;outline-offset:3px}.pocket-phone{width:34px;height:56px;background:none;border:0;box-shadow:none;padding:0}.phone-casing{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.pixel-phone{isolation:isolate;background:none;border:0;box-shadow:none;padding:24px 14px 30px}.pixel-phone:before{display:none}.phone-screen{position:relative;z-index:1;border:0;background:#e2d5a4}.phone-home{z-index:2;background:none;border:0;bottom:8px;width:32px;height:13px}.phone-home:hover{background:#e2d5a444}.phone-status{background:#c5c69a;box-shadow:inset 0 -2px #adb388}.phone-apps{position:relative;isolation:isolate;gap:28px 22px;padding:36px 20px;flex:1;align-content:start}.ui-paper{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.phone-apps button{min-height:112px;gap:12px;padding:0}.app-icon{width:68px;height:68px;background:none;border:0;box-shadow:none;image-rendering:pixelated}.phone-apps button:hover .app-icon{outline:none;translate:0 -3px}.phone-apps button:focus-visible{outline:2px dashed #ad8490;outline-offset:3px}.unlock{position:relative;isolation:isolate;min-width:140px;min-height:48px;padding:12px 18px;background:none;border:0;box-shadow:none}.unlock>canvas{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.unlock:hover{background:none;translate:0 -2px}.lock-time{background:none;box-shadow:none;color:#eddfb1;text-shadow:2px 2px #65714f;font-size:42px}.lock-screen>canvas{image-rendering:pixelated}.desk-phone:after{color:#eddfb1;bottom:auto}.phone-screen .btn,.contact,.bubble{border-color:#adb388;box-shadow:0 2px #c5c69a}.chat-bar{background:#d9d1a3}.battery-icon{border-color:#78805a;background:#93996c}
@media(max-height:680px){.desk-phone{width:60px;height:100px}.mini-clock-face{top:20px;font-size:8px}.pocket-phone{width:28px;height:46px}.phone-apps{padding-top:24px;gap:16px}.phone-apps button{min-height:93px}.app-icon{width:60px;height:60px}.lock-time{font-size:32px}}

/* Travel cards have the same drawn paper edges as the atlas objects. */
.choice,.mini-controls .btn,.paper-title,.pin-label{position:relative;isolation:isolate;border:0;background:none;box-shadow:none}.control-paper{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1}.choice:hover,.mini-controls .btn:hover{background:none;translate:0 -2px;color:#9b7066}.choice:active,.mini-controls .btn:active{translate:1px 1px}.choice-number{border-right:1px dashed #b2b58b;padding-right:12px}.paper-title{position:absolute}.pin-label{position:absolute}.pocket-map{border:0;box-shadow:none;padding:4px;background:#d6cca1}.pocket-map:hover,.pocket-map:focus-visible{outline:2px dashed #ad8490;outline-offset:2px}.scene-panel{box-shadow:none;border-bottom:2px solid #aab186}.route-pin.ready .pin-label{padding:8px 11px}.route-pin.ready i{box-shadow:0 0 0 2px #eddfb1,2px 3px #78805a}

.pocket-map:before,.pocket-map:after{content:"";position:absolute;pointer-events:none;width:4px;height:4px;background:#78805a}.pocket-map:before{top:1px;left:1px}.pocket-map:after{right:1px;bottom:1px}.pocket-map{position:relative;background:#d6cca1;outline:1px solid #9da780;outline-offset:-1px}

/* Rebuilt from the worn black-glass and copper reference. All art is integer-grid code. */
.phone-scene{padding:18px 20px;align-items:center;justify-content:center;background:#0b0e0b}.pixel-phone{flex:1;width:100%;max-width:370px;max-height:780px;padding:72px 18px 80px;isolation:isolate;background:none;border:0;box-shadow:none}.phone-casing,.phone-patina{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}.phone-casing{z-index:0}.phone-patina{z-index:3}.pixel-phone:before{display:none}.phone-screen{position:relative;isolation:isolate;background:#211f1b;border:0;box-shadow:none;color:#eee3cf;clip-path:none}.phone-glass{position:absolute;inset:0;width:100%;height:100%;z-index:-2;pointer-events:none}.phone-screen:after{content:"";position:absolute;inset:0;background:#12160f33;z-index:-1;pointer-events:none}.phone-status{height:24px;min-height:24px;color:#eee7d7;background:none;box-shadow:none;padding:5px 8px;font-size:10px}.chat-bar{height:48px;min-height:48px;padding:0 6px;gap:8px;border:0;background:none}.chat-bar h1{color:#f4e9d3;font-size:14px}.chat-bar button{width:32px;height:36px;background:none;color:#e3d6c1}.chat-bar button:hover{background:#ffffff16}.phone-app-mark{width:30px;height:30px}.phone-scroll{padding:10px 10px 14px;scrollbar-color:#9e8c75 #25291f66}.phone-apps{padding:38px 14px;gap:30px 22px;align-content:center;flex:1;background:#181c14a6}.phone-apps .ui-paper{display:none}.phone-apps button{min-height:106px;gap:12px;color:#eee2c9;text-shadow:1px 2px #11140e;font-size:12px}.phone-apps button:hover{color:#fff4d4}.app-icon{width:68px;height:68px;border:0;box-shadow:none;background:none}.phone-apps button:hover .app-icon{translate:0 -2px;outline:1px solid #c0a783;outline-offset:3px}.crystal-surface{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.phone-screen .btn,.phone-screen .contact,.phone-screen .bubble,.phone-screen .outfit-btn,.phone-screen .phone-note,.phone-screen .contact-avatar,.phone-screen .chat-bar,.phone-screen .phone-status,.phone-screen .avatar-row{position:relative;isolation:isolate;background:none;border:0;box-shadow:none}.phone-screen .btn:hover,.phone-screen .contact:hover,.phone-screen .outfit-btn:hover{background:#dbc7a622;color:#fff3d9;translate:none}.phone-screen .btn:active,.phone-screen .contact:active{translate:none;background:#ffffff20}.phone-screen .btn{color:#e9ddc6;min-height:48px}.contact-list{gap:0}.phone-screen .contact{min-height:76px;padding:12px 2px;gap:12px;color:#eee2cb}.phone-screen .contact-avatar{width:40px;height:40px;color:#e9d7b6;font-size:14px}.contact>span:last-child{min-width:0;flex:1}.contact b{color:#f2e4ca;margin-bottom:6px}.contact small{color:#cbbfa9;font-size:10px;max-width:100%}.chat-thread{gap:16px;padding:8px 0}.phone-screen .bubble{max-width:90%;padding:12px 14px;line-height:1.9;color:#f0e5d0}.chat-speaker{color:#bfb6a1;font-size:10px;margin-bottom:6px}.phone-note{padding:14px 12px;margin-bottom:12px;color:#e8dcc6}.phone-note small{color:#c3b49d}.avatar-row{padding:12px;color:#e8dcc6}.case-items{background:none;padding:0;gap:8px}.phone-screen .outfit-btn{padding:12px;color:#dfd6c0}.outfit-btn.active{color:#fff0c7}.phone-screen>.btn{width:calc(100% - 20px);margin:8px 10px}.settings-app{gap:12px;padding-top:18px}.settings-app .btn{padding:12px 14px}.empty-notes{color:#e0d3bf}.battery-icon{border-color:#c5a17a;background:#a48058;box-shadow:2px 0 #c5a17a;outline:none}.phone-home{position:absolute;bottom:12px;left:calc(50% - 36px);width:72px;height:64px;min-height:44px;padding:0;border:0;box-shadow:none;background:none;z-index:4}.phone-home canvas{display:block;width:100%;height:100%;pointer-events:none}.phone-home:hover{background:none;translate:none}.phone-home:hover canvas{opacity:.85}.phone-home:active{translate:0 1px}.phone-home:focus-visible{outline:1px dashed #d7b286;outline-offset:1px}.desk-phone{width:60px;height:125px}.desk-phone:after{content:none}.mini-clock-face{color:#eee3cf;top:19px;font-size:9px;text-shadow:1px 1px #252019}.pocket-phone{width:30px;height:62px}.atlas-hint{display:none}.lock-screen{justify-content:space-between;align-items:center;padding:0 12px 18px;background:none}.lock-clock{position:relative;z-index:1;width:calc(100% + 24px);text-align:center;padding:6px 0 9px;background:#29252066;border-bottom:2px solid #d2c0aa55}.lock-time{padding:0;background:none;box-shadow:none;text-shadow:1px 2px #5d544b;font-size:52px;line-height:1.2;color:#fff6e7}.lock-date{font-size:12px;color:#f1e2ce;margin-top:4px;line-height:1.6}.unlock{display:flex;align-items:center;justify-content:flex-start;gap:14px;width:100%;min-height:48px;padding:6px 10px;background:none;border:0;box-shadow:none;color:#ede0ca}.unlock>canvas{z-index:-1}.unlock-arrow{font-style:normal;width:34px;height:32px;display:grid;place-items:center;background:#e5d8c5;color:#70614e;font-size:20px}.unlock:hover{background:none;translate:none;color:#fff4dc}.phone-modal{isolation:isolate;background:none;border:0;box-shadow:none;width:min(330px,calc(100% - 80px));padding:20px;overflow:visible;color:#ebdfc7}.phone-modal .modal-body{max-height:55dvh}.phone-modal .btn,.phone-modal .close-btn{position:relative;isolation:isolate;background:none;border:0;box-shadow:none;color:#eee0c6}.phone-modal::backdrop{background:#0009}
@media(max-height:680px){.phone-scene{padding:8px 14px}.pixel-phone{padding-top:54px;padding-bottom:64px}.phone-home{bottom:6px;height:54px}.phone-status{height:22px;min-height:22px}.chat-bar{height:40px;min-height:40px}.phone-apps{padding:20px 12px;gap:14px}.phone-apps button{min-height:88px}.phone-screen .contact{min-height:60px;padding:8px 2px}.phone-screen .contact-avatar{width:32px;height:32px}.lock-time{font-size:40px}.lock-date{font-size:10px}.desk-phone{width:52px;height:108px}.mini-clock-face{top:16px;font-size:8px}.pocket-phone{width:26px;height:54px}}

.phone-scroll{background:#161b1555}.phone-scroll.notes-app{background:#161b1577}.lock-screen{background:#f0dfce0a}

body:has(.phone-scene){background:#0b0e0b}body:has(.phone-scene) #surface{visibility:hidden}

/* Olive glass, ivory enamel and muted clay share the four authored object icons' palette. */
.phone-scene{background:#444b3b}.phone-screen{background:#d8cba0;color:#65714f}.phone-screen:after{background:#e2d5a410}.phone-status,.chat-bar h1,.chat-bar button{color:#65714f}.phone-apps{background:#e2d5a4cc}.phone-apps button{color:#65714f;text-shadow:none}.phone-apps button:hover{color:#9b7066}.phone-scroll,.phone-scroll.notes-app{background:#e2d5a4dd}.phone-screen .btn,.phone-screen .contact,.phone-screen .bubble,.phone-screen .outfit-btn,.phone-screen .phone-note,.phone-screen .avatar-row,.empty-notes{color:#65714f}.contact b{color:#65714f}.contact small,.chat-speaker,.phone-note small{color:#78805a}.phone-screen .contact-avatar{color:#65714f}.phone-screen .btn:hover,.phone-screen .contact:hover,.phone-screen .outfit-btn:hover{background:#eddfb144;color:#9b7066}.outfit-btn.active{color:#9b7066}.battery-icon{border-color:#78805a;background:#adb388;box-shadow:2px 0 #78805a}.lock-clock{background:#78805a55;border-bottom-color:#b4a57888}.lock-time{color:#eddfb1;text-shadow:1px 2px #78805a}.lock-date{color:#eddfb1}.unlock{color:#65714f}.unlock-arrow{background:#c5c69a;color:#65714f}.unlock:hover{color:#9b7066}.phone-modal,.phone-modal .btn,.phone-modal .close-btn{color:#65714f}.phone-modal::backdrop{background:#444b3bcc}.mini-clock-face{color:#65714f;text-shadow:none;top:26px}.desk-phone{width:70px;height:148px}.pocket-phone{width:34px;height:72px}.phone-home:focus-visible{outline-color:#eddfb1}.phone-apps button:hover .app-icon{outline-color:#ad8490}body:has(.phone-scene){background:#444b3b}
@media(max-height:680px){.desk-phone{width:60px;height:127px}.mini-clock-face{top:22px}.pocket-phone{width:28px;height:59px}}

/* Fixed device, scrolling Apps, and a persistent launcher dock. */
.phone-scene{touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}.phone-scene *{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.phone-scroll{touch-action:pan-y;overscroll-behavior:contain}.phone-apps{display:flex;flex-direction:column;padding:22px 8px 0;gap:0;overflow:hidden;background:#d5c99baa}.phone-launch-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:5px;flex:1;align-content:start}.phone-apps button{min-height:86px;gap:7px;font-size:11px}.phone-launch-grid .app-icon{width:58px;height:58px;max-width:100%}.phone-dock{flex:0 0 108px;display:flex;justify-content:space-evenly;align-items:center;background:#93996c88;border-top:2px solid #eddfb177;margin:0 -8px;padding:8px 12px 4px}.phone-dock button{width:76px}.phone-dock .app-icon{width:64px;height:64px}.phone-status{position:relative;justify-content:center;padding:5px 6px;height:24px;min-height:24px}.phone-status>[data-clock]{position:absolute;left:50%;transform:translateX(-50%)}.phone-signal{display:flex;gap:2px;align-items:flex-end;margin-right:auto;height:10px}.phone-signal i{width:2px;background:#65714f;height:3px}.phone-signal i:nth-child(2){height:5px}.phone-signal i:nth-child(3){height:7px}.phone-signal i:nth-child(4){height:9px}.phone-power{display:flex;gap:4px;align-items:center;margin-left:auto;font-size:8px}.battery-icon{position:relative;width:17px;height:8px;border:1px solid #65714f;background:#93996c;box-shadow:none}.battery-icon:after{content:'';position:absolute;right:-3px;top:1px;width:2px;height:4px;background:#65714f}.desk-phone{width:48px;height:96px}.mini-clock-face{display:none}.pocket-phone{width:24px;height:48px}.phone-screen:after{background:#78805a18}.phone-glass{opacity:.9}.pixel-phone{background:none}.unlock{position:relative;touch-action:none;overflow:hidden;padding:6px 10px;min-height:48px}.unlock-arrow{position:relative;z-index:2;flex:0 0 34px;padding:0;touch-action:none;border:1px solid #93996c;background:#c5c69a;color:#65714f;min-height:32px}.unlock>span{opacity:calc(1 - var(--slide-progress,0));pointer-events:none}.unlock-arrow:active{translate:none}.lock-clock{background:#65714f77}.phone-dock button:hover{color:#9b7066}.phone-apps .chat-bar{display:none}
@media(max-height:680px){.desk-phone{width:40px;height:80px}.pocket-phone{width:24px;height:48px}.phone-apps{padding-top:14px}.phone-launch-grid .app-icon{width:50px;height:50px}.phone-dock{flex-basis:92px}.phone-dock .app-icon{width:54px;height:54px}.phone-apps button{min-height:76px}}

html,body{-webkit-user-select:none;user-select:none;-webkit-touch-callout:none}.pocket-phone{width:44px;height:56px;align-items:center;justify-content:center}.pocket-phone>canvas{width:24px;height:48px}

/* One App scale, and a broader independently authored locked miniature. */
.phone-launch-grid .app-icon,.phone-dock .app-icon{width:58px;height:58px;max-width:100%}.desk-phone{width:48px;height:78px}.pocket-phone{width:44px;height:56px}.pocket-phone>canvas{width:32px;height:52px}
@media(max-height:680px){.phone-launch-grid .app-icon,.phone-dock .app-icon{width:50px;height:50px}.desk-phone{width:48px;height:78px}.pocket-phone{width:44px;height:56px}}

.lock-clock{background:none;border:0}.lock-time{text-shadow:1px 2px #65714f55,0 1px #78805a44}.lock-date{text-shadow:1px 1px #65714f55}.tap-unlock{flex:0 0 48px;min-width:150px;padding:12px 20px;margin-bottom:8px;background:none;border:0;box-shadow:none;font-size:12px;color:#65714f;opacity:.7}.tap-unlock:hover{opacity:1}.tap-unlock:active{translate:none;opacity:1}.battery-icon{background:linear-gradient(to right,#93996c 0 35%,transparent 35% 100%)}

.lock-clock{padding-top:24px}.lock-time{font-size:58px;text-shadow:2px 3px #65714f88,1px 1px #78805a66}.lock-date{text-shadow:1px 2px #65714f88}.phone-home{bottom:21px;height:56px}.battery-pixel{width:18px;height:10px;display:block;image-rendering:pixelated}.phone-dock{position:relative;isolation:isolate;background:none;border-top:0}.dock-paper{position:absolute;inset:0;width:100%;height:100%;z-index:-1;pointer-events:none}.phone-screen:after{background:#65714f2b}.phone-apps{background:#c8be9388}.phone-scroll,.phone-scroll.notes-app{background:#d3c79bcc}.phone-glass{opacity:1}
@media(max-height:680px){.lock-time{font-size:46px}.lock-clock{padding-top:16px}.phone-home{bottom:15px;height:46px}}

/* A clearer lock clock and restrained physical material contrast. */
.lock-clock{padding-top:38px}.lock-time{font-size:64px;line-height:1.25;color:#f4e4be;text-shadow:2px 3px #4f5e4699,1px 2px #6b765866}.lock-date{margin-top:7px;color:#f4e4be;text-shadow:1px 2px #4f5e4699}.phone-home{bottom:24px;height:50px}.phone-apps{background:#b4b08688}.phone-screen:after{background:#56634418}.phone-scroll,.phone-scroll.notes-app{background:#c9bd94dd}.tap-unlock{color:#4d5f43;opacity:.75}
@media(max-height:680px){.lock-clock{padding-top:25px}.lock-time{font-size:48px}.phone-home{bottom:19px;height:44px}}

.phone-home{bottom:18px;height:64px}.lock-time{color:#f0dfb1;text-shadow:2px 3px #59664b88}.phone-apps{background:#c3bd9488}.phone-dock{flex-basis:100px}.phone-home:hover canvas{opacity:1}
@media(max-height:680px){.phone-home{bottom:18px;height:54px}.phone-dock{flex-basis:90px}}

.phone-home{bottom:10px;height:64px}
@media(max-height:680px){.phone-home{bottom:8px;height:54px}}

/* Center the physical key within the usable lower bezel, excluding the 10px rim. */
.phone-home{top:calc(100% - 45px);bottom:auto;transform:translateY(-50%);height:64px}
@media(max-height:680px){.phone-home{top:calc(100% - 37px);bottom:auto;height:54px}}

.pixel-phone{padding-bottom:88px}.phone-home{top:calc(100% - 49px)}
@media(max-height:680px){.pixel-phone{padding-bottom:72px}.phone-home{top:calc(100% - 41px)}}

.phone-status{font-size:12px;color:#e6d9ae;height:28px;min-height:28px}.phone-status>.crystal-surface{opacity:.62}.phone-network{display:flex;align-items:center;gap:5px;margin-right:auto;font-size:11px}.phone-network .phone-signal{margin-right:0}.phone-signal i{background:#e6d9ae}.phone-power{font-size:10px}.phone-status>[data-clock]{font-size:11px}

/* A one-pixel inset glass lip: shaded above/left, reflected light below/right. */
.phone-screen{box-shadow:-1px -1px #4e5e43,1px 1px #c7c49c,0 2px #899364;outline:1px solid #7b875e;outline-offset:1px}

.dock-paper{opacity:.62}.phone-dock button{color:#e6d9ae}.phone-dock button:hover{color:#f2e5ba}

.phone-screen{border-radius:4px}

.phone-status>.crystal-surface,.dock-paper{opacity:.4}.phone-apps button:hover .app-icon{outline:none}

.phone-screen .px-arrow,.phone-modal .px-arrow{display:none}.chat-bar button{width:40px;font-size:10px}.phone-screen .bubble,.phone-screen .btn,.phone-screen .outfit-btn{padding:12px 14px}.phone-screen .contact-avatar{padding:4px}

.phone-screen .contact-avatar{padding:0;background:none}.contact-avatar>canvas{display:block;width:100%;height:100%;image-rendering:pixelated}

.phone-screen .contact-avatar{width:48px;height:48px}.phone-screen .contact{min-height:82px}
@media(max-height:680px){.phone-screen .contact-avatar{width:40px;height:40px}.phone-screen .contact{min-height:68px}}

.phone-screen{border-radius:8px}

/* Keep the map or travel scene behind the raised phone. */
body:has(.phone-scene) #surface{visibility:visible}
.phone-scene{position:relative;z-index:1;background:transparent}
.phone-backdrop{position:absolute;inset:0;z-index:0;overflow:hidden;pointer-events:none}
.phone-backdrop .desk-phone,.phone-backdrop .pocket-phone{visibility:hidden}

/* Paper labels and restrained cartographic markers. */
.paper-title,.route-map-view .paper-title{background:none;box-shadow:none;padding:9px 14px 10px;font-size:22px}
.paper-title:hover{background:none}.paper-title small{font-size:9px;margin-top:6px}
.pin-label{background:none!important;border:0;box-shadow:none;padding:0;text-shadow:1px 1px #ecebdf,2px 2px #676f6555}
.pin-label>.control-paper{display:none}
.route-pin i,.route-pin:disabled i{width:6px;height:6px;left:12px;top:12px;border:0;background:#69736b;box-shadow:2px 3px #3c494466}
.route-pin.ready i{background:#a86d5e;box-shadow:2px 3px #3c494466}
.route-pin.visited i{background:#43594d;box-shadow:2px 3px #3c494466}
.route-pin:hover i,.route-pin:focus-visible i{outline:1px solid #f0eee1;outline-offset:2px}
.route-map-screen{background:#969c98}
.map-hit text{text-shadow:1px 1px #e6dbb3;stroke:none}
.map-hit a:hover path,.map-hit a:focus-visible path{fill:#eddda017;stroke:#8e685e;stroke-width:1;stroke-linejoin:round}
.desk-phone{width:54px;height:88px;isolation:isolate}
.desk-phone:before{content:'';position:absolute;inset:5px -3px -3px 5px;background:#354b4666;z-index:-1;clip-path:polygon(8% 0,90% 0,100% 8%,100% 91%,90% 100%,8% 100%,0 90%,0 8%)}
@media(max-height:680px){.desk-phone{width:54px;height:88px}}

.route-map-screen{position:relative;padding:0;background:#969b97}
.route-paper{width:100%;height:100%;display:flex;align-items:center;justify-content:center;padding:90px 12px 40px}
.route-map-view{flex:none;width:min(100cqw,100cqh);height:auto;aspect-ratio:1}
.desk .paper-title,.route-map-screen>.paper-title{top:22px;left:22px;font-size:22px;padding:9px 14px 10px}
.route-pin i,.route-pin:disabled i,.route-pin.ready i,.route-pin.visited i{width:5px;height:5px;left:12px;top:12px;background:#b16c89;border:0;box-shadow:none;outline:none}
.route-pin:hover i,.route-pin:focus-visible i{outline:none;box-shadow:none}

@keyframes phone-buzz{0%,100%{transform:translateX(0) rotate(0)}12%,32%,52%,72%{transform:translateX(-2px) rotate(-3deg)}22%,42%,62%,82%{transform:translateX(2px) rotate(3deg)}}
.desk-phone.phone-buzz{animation:phone-buzz .55s 3;transform-origin:50% 80%}
@media(prefers-reduced-motion:reduce){.desk-phone.phone-buzz{animation-duration:1s;animation-iteration-count:1}}
.navigation-app{flex:1;min-height:0;display:flex;flex-direction:column;justify-content:center;background:#ebe9d9;color:#526b62;padding:10px 6px;overflow:hidden}
.navigation-heading{padding:0 8px 12px;font-size:18px}.navigation-heading small{display:block;font-size:10px;margin-top:7px;color:#7d887d}
.navigation-square{position:relative;width:100%;aspect-ratio:1;flex-shrink:0}.navigation-square>canvas{display:block;width:100%;height:100%}
.navigation-footnote{padding:10px 8px 0;font-size:11px;color:#6c7d70}
.navigation-app .route-pin{width:32px;height:32px}.navigation-app .route-pin i{width:6px;height:6px;background:#b16c89}
.navigation-app .route-pin:disabled i{background:#b16c89}.navigation-app .route-pin.ready i{width:6px;height:6px;left:12px;top:12px}
.navigation-app .pin-label{font-size:10px;color:#526b62;text-shadow:1px 1px #f8f5e9}
.navigation-app .route-pin.ready .pin-label{display:block;white-space:nowrap}
.phone-launch-grid{grid-template-columns:repeat(3,minmax(0,1fr));row-gap:8px}
@media(max-height:680px){.navigation-heading{font-size:14px;padding-bottom:5px}.navigation-heading small{font-size:9px;margin-top:4px}.navigation-footnote{font-size:10px;padding-top:5px}.navigation-app{padding:5px}.phone-launch-grid{row-gap:0}}

.phone-map-open .chat-bar{display:none}
.phone-map-open .phone-screen{background:#b4ccd0}.phone-map-open .phone-screen:after{display:none}
.navigation-app{position:relative;display:block;flex:1;min-height:0;padding:0;background:#b4ccd0;container-type:size;overflow:hidden}
.navigation-square{position:absolute;inset:0;width:100%;height:100%;aspect-ratio:auto;transform:scale(var(--map-zoom,1));transform-origin:center;transition:transform .2s ease}
.navigation-square>canvas{width:100%;height:100%}
.map-search-area{position:absolute;top:12px;left:10px;right:10px;z-index:8}
.map-search-bar{display:flex;align-items:center;gap:8px;background:#f4f0df;padding:4px 8px;min-height:42px;border-radius:5px;box-shadow:0 2px #708b8155;color:#627369}
.map-back,.map-clear{background:none;flex:0 0 26px;height:32px;padding:0;font-size:22px;color:#627369}
.map-search-input{min-width:0;width:100%;flex:1;background:none;border:0;outline:none;font:16px Pixel,monospace;color:#526b62;padding:7px 0;user-select:text;-webkit-user-select:text}
.map-search-input::placeholder{color:#8a9386}.map-search-input::-webkit-search-cancel-button{display:none}
.map-search-symbol{width:10px;height:10px;border:2px solid #7d8f80;position:relative;flex-shrink:0}.map-search-symbol:after{content:'';position:absolute;right:-5px;bottom:-4px;width:5px;height:2px;background:#7d8f80;transform:rotate(45deg)}
.map-search-results{margin-top:4px;background:#f4f0df;max-height:160px;overflow:auto;box-shadow:0 2px #708b8155;border-radius:3px}
.map-search-results button{display:flex;align-items:center;gap:10px;width:100%;background:none;padding:13px 10px;font-size:11px;text-align:left;border-bottom:1px solid #dadbcc;color:#526b62}.map-search-results i{width:5px;height:5px;background:#b16c89}.map-search-results p{padding:12px;font-size:11px}
.map-controls{position:absolute;z-index:5;right:10px;bottom:62px;display:flex;flex-direction:column;gap:6px}.map-controls button{width:32px;height:32px;padding:0;background:#f4f0df;color:#627369;font-size:20px;border-radius:3px;box-shadow:0 2px #708b8155}
.map-bottom-bar{position:absolute;bottom:0;left:0;right:0;z-index:5;height:44px;display:flex;align-items:center;gap:7px;padding:0 18px;background:#f4f0df;color:#617e70;font-size:11px;border-top:1px solid #d1d8c7}.map-bottom-bar button{margin-left:auto;background:none;font-size:11px;color:#7a8578}.map-tab-icon{font-size:19px}
@keyframes destination-hop{0%,55%,100%{transform:translateY(0)}8%{transform:translateY(-3px)}16%{transform:translateY(-7px)}24%{transform:translateY(-11px)}32%{transform:translateY(-7px)}40%{transform:translateY(-3px)}48%{transform:translateY(0)}}
.navigation-app .route-pin:not(:disabled) i{animation:destination-hop 1.5s steps(1,end) infinite}.navigation-app .route-pin:nth-of-type(2n) i{animation-delay:.2s}
.navigation-app .route-pin.ready .pin-label{display:none}.navigation-app .route-pin.search-match .pin-label,.navigation-app .route-pin:hover .pin-label,.navigation-app .route-pin:focus-visible .pin-label{display:block}
@media(prefers-reduced-motion:reduce){.navigation-square{transition:none}.navigation-app .route-pin:not(:disabled) i{animation:destination-hop 2.4s steps(1,end) infinite}}
@media(max-height:680px){.navigation-app{padding:0}.map-search-area{top:8px;left:8px;right:8px}.map-search-bar{min-height:38px}.map-bottom-bar{height:38px}.map-controls{bottom:50px}}

.phone-map-open .phone-screen,.navigation-app{background:#929d78}
.map-search-bar,.map-search-results,.map-controls button,.map-bottom-bar{background:#e2d5a4;color:#65714f}
.map-search-input,.map-back,.map-clear,.map-search-results button{color:#65714f}.map-search-input::placeholder{color:#93996c}
.map-search-bar,.map-controls button,.map-search-results{box-shadow:0 2px #65714f55}
.map-bottom-bar{border-top-color:#b4a578}.navigation-app .pin-label{color:#65714f;text-shadow:1px 1px #eddfb1}
.pixel-phone:after{content:'';position:absolute;inset:9px -6px -6px 9px;background:#35452e55;z-index:-1;pointer-events:none;clip-path:polygon(10% 0,90% 0,95% 2%,98% 5%,100% 9%,100% 91%,98% 95%,95% 98%,90% 100%,10% 100%,5% 98%,2% 95%,0 91%,0 9%,2% 5%,5% 2%)}

.map-controls{bottom:14px}
@media(max-height:680px){.map-controls{bottom:12px}}

/* Code-drawn instant sheet with a separately scrolling paper pile. */
.play-screen{--paper-reserve:238px;display:flex;flex-direction:column;align-items:center;height:100%;padding:16px 14px 8px;gap:0;background:#8a9070;overflow:hidden;container-type:size}
.play-screen .scene-panel{position:relative;isolation:isolate;overflow:visible;flex:none;width:min(100%,calc((100cqh - var(--paper-reserve)) * .82279));height:auto;min-height:0;aspect-ratio:88.47/107.52;background:none;border:0;box-shadow:none;margin:0}
.paper-surface{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;z-index:-1;image-rendering:pixelated}
.play-screen .scene-view{inset:22px 22px 64px;background:#78805a}
.play-screen .scene-dock{inset:0;height:auto;padding:0;pointer-events:none}
.play-screen .pocket-phone{position:absolute;left:-1%;bottom:-1%;width:27.5%;height:auto;aspect-ratio:64/82;min-height:44px;display:block;z-index:6}
.play-screen .pocket-phone>canvas{width:100%;height:100%}
.play-screen .pocket-map{position:absolute;right:-3%;bottom:14%;width:34%;height:auto;aspect-ratio:96/72;min-height:44px;padding:0;background:none;outline:0;z-index:6}
.play-screen .pocket-map>canvas{width:100%;height:100%}
.play-screen .pocket-map:before,.play-screen .pocket-map:after{display:none}
.play-screen .pocket-phone:hover,.play-screen .pocket-map:hover{translate:0 -2px;background:none}
.play-screen .location-whisper{right:10%;bottom:12.5%;max-width:65%;z-index:7;padding:0;background:none;color:#435644;font-size:9px;line-height:1.5;opacity:.7;text-shadow:0 -1px #65714f66,0 1px #fff0cd}
.play-screen .paper-stack{flex:1;width:min(95%,calc((100cqh - var(--paper-reserve)) * .78165));min-height:0;margin-top:0;padding:0 0 6px;overflow-x:hidden;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin;scrollbar-color:#65714f transparent}
.play-screen .story-copy{position:relative;isolation:isolate;z-index:1;padding:8px 22px 10px;max-height:none;overflow:visible;margin:0 5px 0 0}
.play-screen .story-writing{max-height:none;overflow:visible}
.play-screen .story-copy h1{font-size:18px;line-height:1.4;margin-bottom:4px}
.play-screen .prose{line-height:1.7}
.play-screen .choice-scroll{overflow:visible;min-height:0;padding:0 5px 7px;gap:0;margin-top:-8px;isolation:isolate;z-index:2;flex:none}
.play-screen .paper-option{position:relative;isolation:isolate;background:none;border:0;box-shadow:none;min-height:42px;padding:10px 22px 14px;margin-top:-7px;color:#435644;flex:none}
.play-screen .paper-option:first-child{margin-top:0}
.play-screen .paper-option:nth-child(4n+2){margin-left:14px;width:calc(100% - 30px)}
.play-screen .paper-option:nth-child(4n+3){margin-left:3px;width:calc(100% - 8px);padding-right:38px}
.play-screen .paper-option:nth-child(4n){margin-left:19px;width:calc(100% - 24px);padding-right:34px}
.play-screen .paper-option:hover{background:none;color:#895f58;translate:0 -1px}
.play-screen .paper-option:active{background:none;translate:1px 1px}
.play-screen .paper-option:focus-visible{outline:none}.play-screen .paper-option:focus-visible .paper-surface{filter:drop-shadow(0 0 1.5px #f6efd866)}
.play-screen .mini-controls{gap:0}
@media(max-height:680px){
 .play-screen{--paper-reserve:224px;padding:10px 9px 6px}
 .play-screen .story-copy{padding:8px 20px 10px}
 .play-screen .story-copy h1{font-size:14px;margin-bottom:3px}
 .play-screen .prose{line-height:1.65}
 .play-screen .paper-option{min-height:40px;padding-top:9px;padding-bottom:13px}
}

/* One device scale in both settings; rotation only changes its footprint. */
.desk-phone,.play-screen .pocket-phone{width:clamp(84px,min(calc(min(100vw,560px) * .245),calc(100dvh * .17)),136px);height:auto;aspect-ratio:128/164;min-height:0}
.desk-phone:before{display:none}

/* Homepage objects follow the reviewed upper-right/lower-left placement. */
.desk .desk-phone{left:18px;bottom:60px}
.desk .folded-title{left:auto;right:-2px;top:20px;width:min(172px,54%);height:auto;aspect-ratio:96/72;padding:0;font-size:0;background:none;box-shadow:none;z-index:6}
.desk .folded-title>canvas{display:block;width:100%;height:100%;image-rendering:pixelated;pointer-events:none}

/* The opened device is slightly elongated and floats centrally. */
.phone-scene{padding:18px;align-items:center;justify-content:center;container-type:size}
.phone-scene .pixel-phone{flex:none;width:min(92cqw,calc(89cqh * .5128205),350px);height:auto;aspect-ratio:20/39;max-width:none;max-height:none}
.phone-launch-grid{min-height:0;overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}

/* Open the atlas with the Safari marker at the viewport centre. */
.desk{container-type:size}
.desk .map-view{top:50%;height:102%;width:183.6cqh;transform:translate(calc(-1 * var(--focus-x,59.75%) + var(--pan-x,0px)),calc(-1 * var(--focus-y,50.725%)))}

/* One page colour, including the margins and phone safe-area space. */
:root{--page-background:#8a9070}
html,body,body:has(.phone-scene),.app-shell,.play-screen,.desk,.route-map-screen,.footer{background:var(--page-background)}
/* On phones the photograph follows the screen width; the paper pile scrolls below it. */
@media(max-width:560px){
 .play-screen{padding:10px 6px 6px}
 .play-screen .scene-panel{width:100%}
 .play-screen .paper-stack{width:95%}
}
/* Loose papers scroll across the entire photograph, above the phone and map. */
.play-screen{position:relative}
.play-screen .scene-panel{z-index:0}
.play-screen .paper-stack{position:absolute;inset:0 auto 0 50%;transform:translateX(-50%);z-index:10;flex:none;margin:0;pointer-events:auto;touch-action:pan-y;user-select:none;-webkit-user-select:none;-webkit-touch-callout:none;clip-path:inset(var(--paper-hit-top,var(--photo-space,460px)) 0 0);padding:0;scrollbar-width:none;-ms-overflow-style:none;overscroll-behavior-y:none}
.play-screen .paper-stack::before{content:'';display:block;height:var(--photo-space,460px)}
.play-screen .paper-stack::after{content:'';display:block;height:8px}
.play-screen .paper-stack::-webkit-scrollbar{display:none;width:0;height:0}
.play-screen .paper-pile{display:flow-root;pointer-events:auto}
.play-screen .story-copy,.play-screen .choice-scroll{pointer-events:auto;touch-action:pan-y;overscroll-behavior:auto}

/* A large physical suitcase is viewed through a horizontal camera, above the inventory. */
.app-shell:has(.packing-screen){max-width:none}
.packing-screen{container-type:size;--case-width:min(100cqw,calc(62cqh * 200 / 286));height:100%;display:flex;flex-direction:column;align-items:center;padding:0;gap:0;overflow:hidden;background:var(--page-background);user-select:none;-webkit-user-select:none;-webkit-touch-callout:none}
.packing-viewbox{position:relative;width:100%;height:calc(var(--case-width) * 286 / 200);margin-top:12px;flex:none}.packing-panorama{position:absolute;inset:0;overflow-x:auto;overflow-y:hidden;touch-action:pan-x;overscroll-behavior-x:contain;scrollbar-width:none;cursor:grab;outline:none}.packing-panorama::-webkit-scrollbar{display:none}
.packing-stage{position:relative;width:calc(var(--case-width) * 2);height:100%;margin:0 auto;isolation:isolate}.suitcase-art{display:block;width:100%;height:100%;pointer-events:none}
.packing-lid{position:absolute;left:0;top:0;width:50%;height:100%;pointer-events:none}.suitcase-lid-art{position:absolute;inset:0;width:100%;height:100%;pointer-events:none}
.packing-lid-objects{position:absolute;inset:0;pointer-events:none;z-index:2}.packing-phone,.packing-map{position:absolute;background:none;padding:0;pointer-events:auto;display:block}.packing-phone{left:29%;top:14%;width:28%;aspect-ratio:128/164}.packing-map{left:27%;top:53%;width:44%;aspect-ratio:96/72}.packing-phone canvas,.packing-map canvas{display:block;width:100%;height:100%;pointer-events:none}
.suitcase-zipper{position:absolute;left:93%;top:35%;width:7%;height:21%;min-width:28px;min-height:32px;background:none;padding:0;z-index:1000;touch-action:none}.case-closed .suitcase-zipper{left:67.5%}
.packing-bay{position:absolute;top:11%;width:36.75%;height:67%;z-index:1}.packing-bay-left{left:6.75%}.packing-bay-right{left:55.75%}.packing-free-objects{position:absolute;inset:0;pointer-events:none;z-index:3}.packing-free-object{position:absolute;width:9%;aspect-ratio:1;transform:translate(-50%,-50%);pointer-events:auto}.packing-free-object .packing-object{touch-action:none}
.packing-shelf{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));align-content:start;gap:4px}.packing-slot{position:relative;min-width:0;aspect-ratio:1;background:#818c68;border:0;box-shadow:inset 3px 3px #65714f,inset -2px -2px #a2aa80}.packing-slot>.packing-object{position:absolute;inset:0}
.packing-object{width:100%;height:100%;display:grid;place-items:center;padding:0;background:none;touch-action:pan-y;min-width:0}.packing-object canvas{display:block;width:88%;height:auto;aspect-ratio:1;pointer-events:auto;touch-action:none}.packing-object:active{translate:none}
.packing-floor{position:relative;z-index:5;width:min(571px,calc(100% - 24px));margin:0 12px 12px;flex:1;min-height:0;background:#93996c;padding:5px 6px 5px 5px;border:0;box-shadow:3px 4px #6e795a;display:flex}.packing-shelf{flex:1;min-height:0;max-width:560px;margin:0 auto;overflow-x:hidden;overflow-y:auto;scrollbar-width:none;touch-action:pan-y;overscroll-behavior:contain;outline:none;padding:0 2px 2px 0}
.packing-scale{position:absolute;right:8px;bottom:4px;width:calc(var(--case-width) * .29);aspect-ratio:78/42;pointer-events:none;z-index:4}.packing-scale>canvas{display:block;width:100%;height:100%}.packing-scale output{position:absolute;left:14%;top:25%;width:65%;height:34%;display:flex;align-items:center;justify-content:center;gap:3px;font-size:clamp(14px,4vw,22px);font-variant-numeric:tabular-nums;line-height:1;color:#435644}.packing-scale output small{font-size:10px}.packing-scale.warning output{color:#705c29}.packing-scale.danger output{color:#6e322b}
.packing-carry{position:absolute;left:0;bottom:2%;height:12%;display:flex;gap:3px;background:#adb388;box-shadow:2px 3px #78805a;padding:1px;z-index:4}.packing-carry .packing-object{aspect-ratio:1;width:auto;height:100%;touch-action:none}.packing-carry canvas{height:100%;width:auto}
.case-closed .packing-panorama{overflow:visible;touch-action:none;cursor:default}.case-closed .packing-stage{position:absolute;left:50%;margin:0;transform:translateX(-50%)}.case-closed .packing-floor{opacity:.45}.case-closed .packing-object{touch-action:pan-y}.case-closed .packing-carry{display:none}.packing-held{opacity:.18}.packing-ghost{position:fixed;z-index:1000;width:52px;height:52px;transform:translate(-50%,-50%);pointer-events:none;image-rendering:pixelated}
.packing-screen button:focus-visible{outline:none}.case-sliding{cursor:grabbing}
@media(max-height:650px){.packing-screen{padding:0;gap:0}.packing-scale output{font-size:16px}}

/* Pulling the trolley gives the closed suitcase room beneath the top margin. */
.case-closed .packing-viewbox{height:calc(var(--case-width) * 286 / 200 + var(--case-width) * .32 * var(--handle-extension,0))}
.case-closed .suitcase-zipper{top:var(--lock-top,35%);height:var(--lock-height,21%)}

.packing-info{position:absolute;left:0;bottom:calc(100% + 8px);width:min(240px,100%);padding:5px 8px;background:rgba(226,213,164,.62);color:#435644;box-shadow:2px 3px rgba(101,113,79,.25);z-index:5;pointer-events:none}.packing-info-name{font-size:12px;line-height:16px}.packing-info p{font-size:11px;line-height:16px;margin-top:2px}.packing-object[aria-pressed=true]{filter:brightness(1.1)}
.packing-screen:has(.packing-info:not([hidden])) .packing-carry{bottom:calc(2% + 62px)}

.suitcase-handle{position:absolute;left:43%;top:0;width:18%;height:32px;min-height:28px;z-index:6;background:none;padding:0;touch-action:none;cursor:ns-resize}

/* Weigh after closing; the inventory recedes behind the result. */
.packing-review .packing-viewbox{margin-top:36px}
.packing-review .packing-floor{pointer-events:none}
.packing-weighing{position:absolute;right:max(12px,calc(50% - var(--case-width) * .65));bottom:-48px;z-index:8}
.packing-weighing .packing-scale{position:relative;right:auto;bottom:auto;width:min(220px,60cqw);aspect-ratio:128/94;pointer-events:auto}
.packing-weighing .packing-scale output{left:14%;top:23%;width:72%;height:24%;font-size:26px;transform:rotate(-4deg);pointer-events:none}
.packing-weighing .packing-scale output small{font-size:12px}
.packing-decisions{position:absolute;inset:0;transform:rotate(-4deg);white-space:nowrap;pointer-events:none}
.packing-decisions button{position:absolute;left:10.15625%;top:60.6383%;width:35.9375%;height:17.0213%;display:flex;align-items:center;justify-content:center;min-width:0;padding:0;background:none;border:0;box-shadow:none;color:#435644;font-size:clamp(10px,3cqw,12px);line-height:1;text-align:center;pointer-events:auto}
.packing-decisions button+button{left:53.90625%}

.packing-decisions button:active{translate:0 1px}
.packing-decisions button:disabled{opacity:.45;cursor:default}
.packing-ready{--case-width:min(92cqw,calc(78cqh * 200 / 350));justify-content:center}
.packing-ready .packing-viewbox{margin:0}
@media(max-height:650px){.packing-review .packing-viewbox{margin-top:28px}}

/* The description floats above the tray without changing its layout. */
.packing-floor{flex-direction:column}
.packing-shelf{width:100%}

/* Both open halves share the screen center when the viewport can contain them. */
@container (min-aspect-ratio:87/100){
 .packing-screen:not(.case-closed) .packing-panorama{cursor:default}
 .packing-info{left:50%;transform:translateX(-50%)}
}

.packing-shelf::-webkit-scrollbar{display:none;width:0;height:0}

/* Interaction light follows the alpha edge of the pixel object. */
.packing-control-glow{position:absolute;inset:0;width:100%;height:100%;pointer-events:none;opacity:0;z-index:5;filter:drop-shadow(0 0 1.5px #eddfb166)}
.packing-stage:has(.suitcase-zipper:focus-visible) .lock-glow,.packing-stage:has(.suitcase-handle:focus-visible) .handle-glow,.packing-scale:has([data-action=packing-confirm]:enabled:focus-visible) .confirm-glow,.packing-scale:has([data-action=packing-edit]:focus-visible) .edit-glow{opacity:1}
.packing-object:focus-visible canvas,.packing-phone:focus-visible canvas,.packing-map:focus-visible canvas{filter:drop-shadow(0 0 2px #eddfb188)}
@media(hover:hover){
 .packing-stage:has(.suitcase-zipper:hover) .lock-glow,.packing-stage:has(.suitcase-handle:hover) .handle-glow,.packing-scale:has([data-action=packing-confirm]:enabled:hover) .confirm-glow,.packing-scale:has([data-action=packing-edit]:hover) .edit-glow{opacity:1}
 .packing-object:hover canvas,.packing-phone:hover canvas,.packing-map:hover canvas{filter:drop-shadow(0 0 2px #eddfb188)}
}
