html,body{overscroll-behavior:none;height:100dvh}
.brand{top:max(14px,env(safe-area-inset-top));right:max(14px,env(safe-area-inset-right))}
.controls{left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom))}
#move-pad{display:none;position:fixed;z-index:3;right:max(24px,env(safe-area-inset-right));bottom:max(24px,env(safe-area-inset-bottom));width:112px;height:112px;border:1px solid #d7c7a47a;border-radius:50%;background:#1c211e55;touch-action:none;user-select:none;align-items:center;justify-content:center;color:#f7f4ed}
#move-pad span{width:44px;height:44px;border-radius:50%;background:#ded4bc80;border:1px solid #fff9;pointer-events:none}
.touch-mode #move-pad{display:flex}
.intro-active #move-pad{visibility:hidden}
.touch-mode .keys,.touch-mode #walk{display:none}
.touch-mode .controls{right:auto;left:max(18px,env(safe-area-inset-left));bottom:max(24px,env(safe-area-inset-bottom));max-width:calc(100vw - 165px);display:block;padding:10px 12px;pointer-events:none}
.touch-mode .control-copy{min-width:0}
.touch-mode .eyebrow{font-size:8px;letter-spacing:.14em}
.touch-mode .hint{max-width:160px;line-height:1.8}
.touch-mode #status{margin-bottom:0}
.touch-mode #status.is-hidden{display:none}
.touch-mode .brand{width:125px;backdrop-filter:none}
.touch-mode .controls{backdrop-filter:none}
#tour-fallback{position:fixed;inset:0;z-index:1000;background:#f2eee5;color:#292c27;overflow:auto;padding:max(24px,env(safe-area-inset-top)) 24px;text-align:center}
#tour-fallback[hidden]{display:none}
#tour-fallback img{display:block;max-width:100%;max-height:60dvh;margin:20px auto;object-fit:contain}
#tour-fallback button,#tour-fallback a{display:inline-block;margin:8px;padding:14px 18px;background:#30382d;color:#fff;border:0;border-radius:3px;font:inherit}
@media(pointer:coarse) and (max-height:500px){.touch-mode .brand{width:104px}.touch-mode .eyebrow{display:none}#move-pad{width:96px;height:96px}}

/* Live floor-plan position: static SVG geometry, no backdrop-filter or map render pass. */
#tour-minimap{position:fixed;z-index:2;left:max(14px,env(safe-area-inset-left));bottom:max(14px,env(safe-area-inset-bottom));width:150px;height:150px;box-sizing:border-box;border:1px solid #eee9da24;border-radius:7px;background:#17232045;opacity:.72;pointer-events:none;user-select:none;contain:layout style paint}
#tour-minimap[hidden],.intro-active #tour-minimap{visibility:hidden}
#tour-minimap svg{display:block;width:100%;height:100%;overflow:hidden}
.minimap-floor{fill:#edeae126;stroke:#f4f0e448;stroke-width:1}
.minimap-balcony{fill:#171f205c;stroke:#f4f0e438;stroke-width:.9;stroke-dasharray:2 2}
.minimap-furniture{fill:#e5e1d52e;stroke:#eee9db29;stroke-width:.7}
.minimap-walls{fill:#f5f0e3bf;stroke:#f5f0e3a3;stroke-width:.65;stroke-linejoin:round}
.minimap-halo{fill:#171f2080}
.minimap-dot{fill:#f2c777;stroke:#fff7df;stroke-width:1.5}
body.has-minimap:not(.touch-mode) .controls{left:calc(max(14px,env(safe-area-inset-left)) + 166px);max-width:calc(100vw - 208px)}
.touch-mode #tour-minimap{left:max(18px,env(safe-area-inset-left));bottom:calc(168px + env(safe-area-inset-bottom));width:118px;height:118px;opacity:.66}
@media(pointer:coarse) and (max-height:500px){.touch-mode #tour-minimap{bottom:calc(132px + env(safe-area-inset-bottom));width:94px;height:94px}}
@media(pointer:fine) and (max-width:620px){body.has-minimap .controls{left:calc(max(14px,env(safe-area-inset-left)) + 128px);max-width:calc(100vw - 166px)}#tour-minimap{width:114px;height:114px}}

/* Review-only mobile walking layout. */
.touch-mode #move-pad{left:max(22px,env(safe-area-inset-left));right:auto}
.touch-mode .controls{left:156px;right:max(18px,env(safe-area-inset-right));max-width:none}
.touch-mode .hint{max-width:210px}
