:root{color-scheme:dark;font-family:system-ui,-apple-system,"Segoe UI",sans-serif;--ink:#f9f8f2;--muted:#d6dfd9;--mint:#d2edca;--glass:rgba(19,28,25,.89)}
*{box-sizing:border-box}
body{margin:0;background:#121b19;color:var(--ink);overflow:hidden}
button,input,select{font:inherit}
button{cursor:pointer;color:inherit}
button:focus-visible,canvas:focus-visible,input:focus-visible,select:focus-visible{outline:2px solid #dcffd5;outline-offset:3px}
[hidden]{display:none!important}
#tour,#stage,#panorama,#poster,#hotspots{position:absolute;inset:0;width:100%;height:100%}
#tour{height:100dvh;isolation:isolate;overflow:hidden}
#panorama{display:block;touch-action:none;cursor:grab;outline-offset:-4px}
#panorama.dragging{cursor:grabbing}
#poster{pointer-events:none;background-position:center;background-size:cover;opacity:0;transition:opacity .2s}
#poster.visible{opacity:1}
#poster.interior{filter:brightness(1.10)}
#hotspots{pointer-events:none;overflow:hidden}
#tour::after{content:"";position:absolute;inset:0;pointer-events:none;z-index:1;background:linear-gradient(180deg,rgba(11,17,14,.55),transparent 22%,transparent 74%,rgba(11,17,14,.38));}
.top{position:absolute;z-index:2;top:max(24px,env(safe-area-inset-top));left:clamp(16px,4vw,58px);right:clamp(16px,4vw,58px);display:flex;align-items:flex-start;justify-content:space-between;gap:14px;pointer-events:none}
.heading{text-shadow:0 2px 15px #17201a;min-width:0}
.tour-title{display:flex;align-items:center;gap:9px;color:var(--mint);font-size:.9rem;font-weight:650;letter-spacing:.025em}
.orbit{width:20px;height:12px;border:1.5px solid currentColor;border-radius:50%;transform:rotate(-26deg);position:relative;flex:none}
.orbit::after{content:"";position:absolute;width:6px;height:6px;background:currentColor;border-radius:50%;right:0;top:-3px}
h1{font-size:clamp(1.8rem,4vw,3.55rem);font-weight:650;line-height:1.05;letter-spacing:-.045em;margin:9px 0 6px}
.level{color:var(--muted);font-size:.94rem}
.glass{background:var(--glass);border:1px solid #fff3;box-shadow:0 8px 30px #0003;backdrop-filter:blur(14px)}
.button{display:flex;align-items:center;gap:8px;white-space:nowrap;border-radius:12px;padding:11px 15px;min-height:44px;font-weight:650;pointer-events:auto}
.button:hover,.controls button:hover{background-color:#35463b}
.grid-icon{display:inline-block;width:15px;height:15px;background:conic-gradient(from 90deg at 2px 2px,var(--mint) 25%,transparent 0) 0 0/8px 8px;transform:rotate(180deg)}
.dock{position:absolute;bottom:max(22px,env(safe-area-inset-bottom));left:clamp(16px,4vw,58px);right:clamp(16px,4vw,58px);z-index:2;pointer-events:none}
.dock-bar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin-bottom:10px}
.hint{padding:9px 12px;color:var(--muted);border-radius:10px;font-size:.83rem}
.controls{margin-left:auto;flex:none;display:flex;pointer-events:auto;border-radius:12px;padding:3px;gap:2px}
.controls button{background:transparent;border:0;border-radius:8px;min-width:42px;min-height:40px;font-size:1.26rem}
.rooms{pointer-events:auto;border-radius:16px;padding:10px 12px 12px}
.room-navigation{display:flex;gap:5px;overflow:auto;margin-bottom:9px;padding:2px 2px 3px}
.room-navigation button{border:0;background:transparent;color:var(--muted);border-radius:8px;padding:7px 11px;font-size:.86rem;white-space:nowrap}
.room-navigation button:hover,.room-navigation button[aria-pressed=true]{background:#3c5041;color:white}
.room-list{display:flex;gap:9px;overflow-x:auto;overflow-y:hidden;padding:3px 3px 8px;scrollbar-width:thin;scrollbar-color:#728777 #26362d}
.room-list button{position:relative;flex:0 0 138px;height:81px;background:#35463b center/cover;border:1px solid #ffffff45;border-radius:10px;text-align:left;overflow:hidden}
.room-list button[aria-current=true]{border:2px solid var(--mint);box-shadow:0 0 0 1px var(--mint)}
.room-list button:hover{border-color:white}
.room-list span{position:absolute;inset:auto 0 0;background:linear-gradient(transparent,#0e1714f5 42%);font-weight:630;color:white;font-size:.83rem;padding:12px 8px 6px;line-height:1.15}
.hotspot{pointer-events:auto;position:absolute;transform:translate(-50%,-50%);display:flex;align-items:center;flex-direction:column;gap:5px;background:none;border:0;padding:0 3px 4px;white-space:nowrap}
.hotspot .marker{display:grid;place-items:center;width:43px;height:43px;border-radius:50%;background:#eff8e9;color:#243629;font-weight:750;font-size:1.25rem;border:3px solid #d6eccf;box-shadow:0 4px 20px #0008;transition:scale .16s}
.hotspot:hover .marker,.hotspot:focus-visible .marker{scale:1.13;background:white}
.hotspot .destination{background:#17231eed;border:1px solid #fff4;padding:5px 9px;border-radius:8px;font-size:.78rem;font-weight:680;color:white;text-shadow:0 1px 4px #0009;max-width:175px;overflow:hidden;text-overflow:ellipsis}
#notice{position:absolute;left:50%;top:47%;transform:translate(-50%,-50%);max-width:min(90%,440px);padding:12px 16px;text-align:center;border-radius:12px;background:#16241fef;color:white;pointer-events:none;z-index:2}
#notice:empty{display:none}
@media(max-width:660px){
  .top{top:max(15px,env(safe-area-inset-top))}
  .dock{bottom:max(10px,env(safe-area-inset-bottom))}
  .hint{font-size:.72rem;padding:7px 8px;max-width:155px}
  .rooms{padding:6px 7px 4px}
  .room-navigation{margin-bottom:2px}
  .room-navigation button{font-size:.78rem;padding:6px 8px}
  .room-list button{flex-basis:113px;height:63px}
  .room-list span{font-size:.73rem}
  .hotspot .destination{font-size:.7rem;max-width:140px}
  .hotspot .marker{width:37px;height:37px}
}
@media(max-height:450px){.hint{display:none}.room-list button{height:56px}}
@media(prefers-reduced-motion:reduce){*,*::after{transition:none!important;scroll-behavior:auto!important}}
