body.house-phone{position:fixed;inset:0;overflow:hidden}
body.house-phone #phoneShell{position:fixed;top:var(--house-top,0px);left:var(--house-left,0px);width:var(--house-width,100vw);height:var(--house-height,100dvh);padding:env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);display:grid;grid-template-rows:auto auto minmax(70px,1fr) auto auto auto;grid-template-areas:'hud' 'objective' 'scene' 'captions' 'controls' 'status';gap:3px;background:#091217}
body.house-phone #hud{grid-area:hud;position:static;display:flex;align-items:center;gap:8px;padding:4px 9px;min-height:48px;min-width:0}
body.house-phone #hud>div{min-width:0;flex:1}
body.house-phone #chapterTag{font-size:10px;letter-spacing:1px}
body.house-phone #location{font-size:18px;margin:2px 0;line-height:1.2;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
body.house-phone #pauseButton{min-width:44px;min-height:44px;padding:6px}
body.house-phone #objective{grid-area:objective;position:static;max-width:none;max-height:54px;overflow:auto;touch-action:pan-y;margin:0 8px;padding:4px 8px;font-size:14px;line-height:1.35;background:#142429;color:#f0e5cc}
body.house-phone #phoneScene{grid-area:scene;position:relative;min-width:0;min-height:0;overflow:hidden;isolation:isolate}
body.house-phone #world{position:absolute;inset:0;display:block;width:100%;height:100%;touch-action:none}
body.house-phone #vignette,body.house-phone #shade{position:absolute;inset:0}
body.house-phone #crosshair{position:absolute;top:50%;left:50%;font-size:24px;pointer-events:none}
body.house-phone #phoneMarkers{position:absolute;inset:0;pointer-events:none;overflow:hidden}
body.house-phone .objectMarker{position:absolute;transform:translate(-50%,-50%);max-width:145px;text-align:center;background:#071116e8;color:#fff0d0;padding:3px 5px;border:1px solid #e8ca8e;font-size:12px;line-height:1.2}
body.house-phone .objectMarker:before{content:'◇ ';}
body.house-phone .objectMarker.focused{border:2px solid #fff;background:#402e17}
body.house-phone #phoneCaptions{grid-area:captions;min-height:0;max-height:76px;overflow:auto;touch-action:pan-y;overscroll-behavior:contain}
body.house-phone #subtitle,body.house-phone #toast,body.house-phone #memoryNotice{position:static;transform:none;max-width:none;width:auto;margin:0 8px;padding:6px 9px;font-size:clamp(15px,var(--subsize),22px);line-height:1.3;box-shadow:none}
body.house-phone #memoryNotice{display:none;font-size:13px}
body.house-phone #memoryNotice.visible{display:block}
body.house-phone #toast{font-size:13px}
body.house-phone #phoneCaptions:has(#subtitle[style*="block"]) #toast,body.house-phone #phoneCaptions:has(#subtitle[style*="block"]) #memoryNotice{display:none}
body.house-phone #phoneControls{grid-area:controls;padding:2px 8px;min-width:0}
body.house-phone #phoneTarget{font-size:13px;line-height:1.25;color:#ffdfa5;min-height:20px;max-height:36px;overflow:auto;touch-action:pan-y;margin:0 0 4px}
body.house-phone #phoneDock{display:grid;grid-template-columns:108px minmax(0,1fr);gap:9px;align-items:center}
body.house-phone #stick{position:relative;left:auto;bottom:auto;width:104px;height:104px;flex:none;background:#14282f;border:2px solid #7b9696}
body.house-phone #nub{left:28px;top:28px;width:44px;height:44px;background:#c4d0b0}
body.house-phone #touchActions{position:static;width:auto;display:grid;grid-template-columns:1fr 1fr;gap:4px;pointer-events:auto}
body.house-phone #touchActions button,body.house-phone #wayfinder{position:static;min-height:44px;height:auto;font-size:14px;padding:6px 3px;line-height:1.2}
body.house-phone button,body.house-phone summary,body.house-phone a{touch-action:manipulation}
body.house-phone button,body.house-phone summary,body.house-phone input,body.house-phone select{min-height:44px}
body.house-phone #status{grid-area:status;position:static;display:flex;justify-content:space-between;gap:5px;padding:2px 9px;font-size:10px;letter-spacing:.5px}
body.house-phone #status span:last-child{display:none}
body.house-phone #desktopHelp,body.house-phone #prompt{display:none!important}
body.house-phone.menu #phoneShell{visibility:hidden}
body.house-phone #overlay{position:fixed;inset:auto;top:var(--house-top,0px);left:var(--house-left,0px);width:var(--house-width,100vw);height:var(--house-height,100dvh);display:flex;flex-direction:column;align-items:stretch;justify-content:center;gap:5px;padding:8px;overflow:hidden;background:#081216f5}
body.house-phone.playing #overlay{display:none}
body.house-phone #panel,body.house-phone #panel.home,body.house-phone #panel.inspection,body.house-phone #panel.journal{width:100%;max-width:none;max-height:100%;min-height:0;flex:0 1 auto;margin:0;padding:15px;overflow:auto;overscroll-behavior:contain;scrollbar-gutter:stable;background:#0d1b20;touch-action:pan-y}
body.house-phone #phonePanelBack{flex:none;width:100%;min-height:44px;background:#e5c58d;color:#161c20;font-weight:700}
body.house-phone #phonePanelBack[hidden]{display:none}
body.house-phone #panel h1{font-size:clamp(30px,8vw,46px);margin:12px 0;letter-spacing:-.5px}
body.house-phone #panel h3{font-size:25px;margin:10px 0}
body.house-phone #panel p{line-height:1.5;margin:12px 0}
body.house-phone #panel button{font-size:var(--textsize);padding:8px 10px;max-width:100%}
body.house-phone #panel .buttons{gap:7px;margin:12px 0}
body.house-phone #panel .grid{grid-template-columns:1fr}
body.house-phone #panel .paper{padding:12px 15px;font-size:var(--textsize)}
body.house-phone .belongingCloseup,body.house-phone .evidencePhoto{max-height:45vh;max-height:calc(var(--house-height,100dvh)*.45);object-fit:contain}
body.house-phone .readout{font-size:18px;letter-spacing:0;overflow-wrap:anywhere}
body.house-phone .comparison{flex-wrap:wrap}
body.house-phone .comparison>div{min-width:90px}
body.house-phone .landmarkList{grid-template-columns:1fr}
@media(orientation:landscape){
 body.house-phone #phoneShell{grid-template-columns:minmax(0,1fr) 196px;grid-template-rows:auto minmax(55px,1fr) auto auto;grid-template-areas:'hud hud' 'scene controls' 'captions controls' 'status status';gap:3px}
 body.house-phone #hud{padding:1px 8px;min-height:46px}
 body.house-phone #hud>div{flex:1}
 body.house-phone #location{font-size:16px}
 body.house-phone #objective{position:absolute;top:49px;left:auto;right:4px;width:188px;max-height:54px;margin:0;font-size:12px;z-index:2}
 body.house-phone #phoneControls{padding:61px 5px 0;display:flex;flex-direction:column;min-height:0}
 body.house-phone #phoneTarget{font-size:12px;min-height:17px;max-height:30px}
 body.house-phone #phoneDock{grid-template-columns:64px minmax(0,1fr);gap:4px;flex:1;min-height:0}
 body.house-phone #stick{width:64px;height:64px}
 body.house-phone #nub{width:30px;height:30px;left:15px;top:15px}
 body.house-phone #touchActions{gap:3px;grid-template-columns:1fr 1fr;align-content:center}
 body.house-phone #touchActions button,body.house-phone #wayfinder{font-size:12px;padding:4px 1px;min-height:44px}
 body.house-phone #phoneCaptions{max-height:65px}
 body.house-phone #subtitle{font-size:16px}
 body.house-phone #status{font-size:9px}
 body.house-phone #panel .grid{grid-template-columns:1fr 1fr}
 body.house-phone .landmarkList{grid-template-columns:1fr 1fr}
}
/* The decorative crosshair must not swallow a mouse drag on desktop either. */
#crosshair{pointer-events:none}
body.house-phone #phoneCaptions:has(#subtitle[style*="block"]) #toast,body.house-phone #phoneCaptions:has(#subtitle[style*="block"]) #memoryNotice{display:none!important}
