/* The Bungalows explorer. Max Estates' own look: paper, olive ink, sage, Gill Sans (DBOX's page + Film 2 cards). */
:root {
  --paper: #EAE8E0; --paper-hi: #FAF9F7; --ink: #333A06; --ink-2: rgba(51, 58, 6, .86); --ink-3: rgba(51, 58, 6, .74);
  --sage: #949A77; --wall: #86906F; --rule: rgba(51, 58, 6, .18);
  --stage-1: #15170F; --stage-2: #0E0F0A;
  --cream: #F3F1EA; --cream-2: rgba(243, 241, 234, .82); --cream-3: rgba(243, 241, 234, .66); --cream-rule: rgba(243, 241, 234, .2);
  --f: "Gill Sans", "Gill Sans MT", "Gill Sans Nova", Lato, "Segoe UI", system-ui, sans-serif;
  --ease: cubic-bezier(.65, 0, .35, 1); --out: cubic-bezier(.16, 1, .3, 1);
  --sat: env(safe-area-inset-top, 0px); --sab: env(safe-area-inset-bottom, 0px); --sal: env(safe-area-inset-left, 0px); --sar: env(safe-area-inset-right, 0px);
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; background: var(--stage-2); color: var(--cream); font-family: var(--f); overflow: hidden; -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
button { font: inherit; cursor: pointer; color: inherit; }
img, canvas, video { user-select: none; -webkit-user-drag: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--sage); outline-offset: 3px; }
#app { position: fixed; inset: 0; overflow: hidden; overflow: clip; }
section { position: absolute; inset: 0; overflow: hidden; overflow: clip; }
.caps { text-transform: uppercase; letter-spacing: .2em; }

/* header */
#top { position: absolute; left: 0; right: 0; top: 0; z-index: 50; display: flex; align-items: center; gap: 20px;
  padding: calc(16px + var(--sat)) calc(28px + var(--sar)) 16px calc(28px + var(--sal)); pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 15, 10, .5), rgba(14, 15, 10, 0)); }
#top > * { pointer-events: auto; }
.brand img { height: 52px; display: block; filter: drop-shadow(0 1px 8px rgba(0, 0, 0, .3)); }
.loc { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--cream-2); padding-left: 20px; border-left: 1px solid var(--cream-rule); }
.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav a { color: var(--cream); text-decoration: none; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; }
.nav a:hover { color: var(--paper-hi); text-decoration: underline; text-underline-offset: 6px; text-decoration-color: var(--sage); }
.paper { background: var(--paper); color: var(--ink); border: 0; padding: 11px 18px; font-size: 11.5px; letter-spacing: .2em; text-transform: uppercase; border-radius: 1px; }
.paper:hover { background: var(--paper-hi); }
#app[data-view="floor"] .nav, #app[data-view="entering"] .nav, #app[data-view="leaving"] .nav, #app[data-view="dive"] .nav, #app[data-view="dive-out"] .nav { opacity: 0; pointer-events: none; }
.nav { transition: opacity .25s; }
#app[data-view="room"] #top, #app[data-view="dive"] #top { background: linear-gradient(to bottom, rgba(14, 15, 10, .55), rgba(14, 15, 10, 0)); }

/* 1. towers */
#tower { z-index: 10; background: radial-gradient(ellipse at 50% 40%, var(--stage-1), var(--stage-2) 75%); }
#stage { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
#stage > img { position: absolute; display: block; pointer-events: none; }
#heroImg { left: 0; top: 0; width: 100%; height: 100%; }
#facadeImg { opacity: 0; }
#bands { position: absolute; left: 0; top: 0; overflow: visible; touch-action: none; }
#bands polygon { fill: rgba(250, 249, 247, 0); stroke: none; cursor: pointer; }
#bands polygon.on { fill: rgba(250, 249, 247, .3); }
#bands polyline { fill: none; stroke: var(--paper-hi); stroke-width: 1; vector-effect: non-scaling-stroke; opacity: 0; pointer-events: none; }
#bands polyline.on { opacity: 1; }
#bands .pin { opacity: 0; pointer-events: none; fill: var(--sage); stroke: var(--paper-hi); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
#bands .pin.on { opacity: 1; }
#heroBase { position: absolute; left: 0; right: 0; bottom: 0; height: 0; pointer-events: none;
  background: linear-gradient(to bottom, rgba(14, 15, 10, 0), var(--stage-2) 70%); }
#towerTags { position: absolute; inset: 0; pointer-events: none; }
#towerTags span { position: absolute; transform: translate(-50%, 0); font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--paper-hi);
  padding: 6px 10px 5px; background: rgba(14, 15, 10, .42); border-top: 1px solid rgba(250, 249, 247, .55); white-space: nowrap; transition: opacity .3s; }
#towerTags span.on { background: var(--paper); color: var(--ink); border-top-color: var(--ink); }
#app:not([data-view="hero"]) #towerTags, #app:not([data-view="hero"]) #rail, #app:not([data-view="hero"]) #hint, #app:not([data-view="hero"]) #infoBtn { opacity: 0; pointer-events: none; }
#towerTags, #rail, #hint, #infoBtn { transition: opacity .25s; }

#floorCard { position: absolute; z-index: 30; width: 300px; background: rgba(234, 232, 224, .97); color: var(--ink); padding: 16px 18px 16px; border-radius: 1px;
  box-shadow: 0 18px 50px rgba(0, 0, 0, .28); transform: translateY(-50%); }
#floorCard::before { content: ""; position: absolute; left: -46px; top: 50%; width: 46px; height: 1px; background: var(--paper-hi); }
#floorCard.flip::before { left: auto; right: -46px; }
.fc-head { display: flex; gap: 14px; align-items: center; }
.fc-no { display: flex; flex-direction: column; align-items: center; padding-right: 14px; border-right: 1px solid var(--rule); min-width: 58px; }
.fc-no .lbl { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.fc-no .num { font-size: 44px; font-weight: 300; line-height: 1; letter-spacing: .02em; }
.fc-title { flex: 1; min-width: 0; }
.fc-title .tower { font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); }
.fc-title .name { font-size: 19px; font-weight: 300; line-height: 1.15; margin-top: 3px; letter-spacing: .02em; }
.fc-title .meta { font-size: 12px; color: var(--ink-2); margin-top: 3px; }
.fc-step { display: flex; flex-direction: column; gap: 4px; }
.fc-step button { width: 30px; height: 26px; border: 1px solid var(--rule); background: transparent; color: var(--ink); font-size: 13px; line-height: 1; border-radius: 1px; }
.fc-step button:hover { border-color: var(--ink); }
.fc-note { font-size: 12.5px; line-height: 1.5; color: var(--ink-2); margin-top: 11px; }
.fc-note:empty { display: none; }
.fc-go { margin-top: 13px; width: 100%; background: var(--ink); border: 0; color: var(--paper); padding: 11px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; border-radius: 1px; }
.fc-go:hover { background: #454d0c; }
.fc-go[disabled] { background: transparent; border: 1px solid var(--rule); color: var(--ink-3); cursor: default; }

#rail { position: absolute; right: calc(18px + var(--sar)); top: 50%; transform: translateY(-46%); z-index: 25; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; outline-offset: 6px;
  padding: 10px 10px 14px; background: rgba(14, 15, 10, .42); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.r-switch { display: flex; background: rgba(14, 15, 10, .45); border: 1px solid var(--cream-rule); }
.r-switch button { background: transparent; border: 0; padding: 7px 10px; font-size: 11px; letter-spacing: .16em; color: var(--cream-2); }
.r-switch button.on { background: var(--paper); color: var(--ink); }
.r-ticks { position: relative; width: 44px; }
.r-ticks i { position: absolute; right: 0; height: 1px; width: 12px; background: rgba(250, 249, 247, .55); }
.r-ticks i.five { width: 18px; background: rgba(250, 249, 247, .85); }
.r-ticks i.ref { background: var(--sage); }
.r-ticks b { position: absolute; right: 24px; font-weight: 400; font-size: 11px; color: var(--cream); transform: translateY(-50%); letter-spacing: .06em; }
.r-ticks .sel { position: absolute; right: -4px; transform: translateY(-50%); background: var(--paper); color: var(--ink); font-size: 12px; padding: 3px 7px; letter-spacing: .06em; transition: top .12s; pointer-events: none; }
.r-ticks .sel[hidden] { display: none; }

#hint { position: absolute; left: calc(28px + var(--sal)); bottom: calc(24px + var(--sab)); z-index: 20; display: flex; align-items: center; gap: 10px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase;
  background: rgba(14, 15, 10, .5); padding: 10px 16px 10px 12px; border-radius: 30px; color: var(--cream); }
#hint.off { opacity: 0; }
#hint .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 0 rgba(234, 232, 224, .7); animation: pulse 2s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(234, 232, 224, .7); } 70% { box-shadow: 0 0 0 10px rgba(234, 232, 224, 0); } 100% { box-shadow: 0 0 0 0 rgba(234, 232, 224, 0); } }
#infoBtn { position: absolute; right: calc(22px + var(--sar)); bottom: calc(24px + var(--sab)); z-index: 20; width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--cream-rule);
  background: rgba(14, 15, 10, .5); color: var(--cream); font-size: 14px; font-style: italic; }
#infoPop { position: absolute; right: calc(22px + var(--sar)); bottom: calc(62px + var(--sab)); z-index: 20; max-width: 300px; background: var(--paper); color: var(--ink); font-size: 12.5px; line-height: 1.5; padding: 12px 14px; }

/* the split + stage colour */
#veil { position: absolute; inset: 0; z-index: 15; background: radial-gradient(ellipse at 40% 50%, #1c1f14 0%, var(--stage-1) 45%, var(--stage-2) 100%); opacity: 0; pointer-events: none; }
#split { position: absolute; inset: 0; z-index: 16; pointer-events: none; }
#split canvas { position: absolute; left: 0; top: 0; width: 100%; height: 100%; opacity: 0; will-change: transform, opacity, filter; }

/* 2. floor */
#floor { z-index: 20; opacity: 0; visibility: hidden; pointer-events: none; }
#app[data-view="floor"] #floor { pointer-events: auto; }
#skyline { position: absolute; left: 0; top: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; will-change: transform, opacity; }
#isoWrap { position: absolute; will-change: transform, opacity, filter; }
#isoImg { display: block; width: 100%; height: 100%; }
#isoWrap.mirror #isoImg { transform: scaleX(-1); }
#glow { position: absolute; width: 260px; height: 260px; margin: -130px 0 0 -130px; border-radius: 50%; pointer-events: none; opacity: 0; transition: opacity .25s;
  background: radial-gradient(circle, rgba(255, 236, 196, .55) 0%, rgba(255, 236, 196, 0) 65%); mix-blend-mode: screen; }
#glow.on { opacity: 1; }
#hotspots { position: absolute; inset: 0; }
.hs { position: absolute; width: 0; height: 0; transition: opacity .15s; }
#app:not([data-view="floor"]) .hs { opacity: 0; visibility: hidden; }
.hs button { position: absolute; left: -22px; top: -22px; width: 44px; height: 44px; border-radius: 50%; border: 0; padding: 0; background: transparent; }
.hs .dot { position: absolute; left: 13px; top: 13px; width: 18px; height: 18px; border-radius: 50%; background: var(--paper); box-shadow: 0 0 0 3px rgba(148, 154, 119, .9), 0 2px 10px rgba(0, 0, 0, .5);
  transition: transform .2s; display: grid; place-items: center; font-size: 10px; font-weight: 600; color: var(--ink); line-height: 1; }
.hs .tag { position: absolute; left: 16px; top: -12px; white-space: nowrap; background: rgba(234, 232, 224, .94); color: var(--ink); padding: 5px 9px 4px;
  font-size: 10.5px; letter-spacing: .16em; text-transform: uppercase; border-radius: 1px; pointer-events: none; transition: transform .2s, background .2s; box-shadow: 0 2px 10px rgba(0, 0, 0, .25); }
.hs.flip .tag { left: auto; right: 16px; }
.hs.on .dot, .hs:hover .dot { transform: scale(1.25); }
.hs.on .tag, .hs:hover .tag { background: var(--paper-hi); transform: translateY(-3px); }
.hs .enter { display: none; }

#panel { position: absolute; right: 0; top: 0; bottom: 0; width: 380px; background: var(--paper); color: var(--ink); display: flex; flex-direction: column;
  transform: translateX(24px); opacity: 0; transition: transform .45s var(--out), opacity .35s; box-shadow: -20px 0 60px rgba(0, 0, 0, .25); }
#app[data-view="floor"] #panel { transform: none; opacity: 1; }
#app[data-view="dive"] #panel, #app[data-view="leaving"] #panel { transition-duration: .15s; }
.p-scroll { flex: 1; overflow-y: auto; padding: calc(96px + var(--sat)) 30px 8px 30px; }
.p-eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); }
.p-title { font-weight: 300; font-size: 32px; line-height: 1.08; margin: 8px 0 6px; letter-spacing: .01em; }
.p-sub { font-size: 12.5px; color: var(--ink-2); }
.p-area { position: relative; margin: 18px 0 16px; padding: 12px 0 10px; border-top: 1px solid var(--ink); border-bottom: 1px solid var(--rule); }
.p-label { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 8px; }
.p-stats { margin: 0; width: calc(100% - 96px); }
.p-stats div { display: grid; grid-template-columns: 1fr auto; grid-template-rows: auto auto; column-gap: 8px; padding: 4px 0; border-bottom: 1px solid var(--rule); }
.p-stats div:last-child { border-bottom: 0; }
.p-stats dt { font-size: 12px; letter-spacing: .08em; color: var(--ink-2); grid-row: 1 / span 2; align-self: center; }
.p-stats dd { margin: 0; font-size: 17px; font-weight: 300; text-align: right; letter-spacing: .02em; }
.p-stats dd.m { font-size: 11px; color: var(--ink-3); font-weight: 400; }
.p-stats small { font-size: 11px; color: var(--ink-3); }
#keyPlan { position: absolute; right: 0; bottom: 10px; width: 84px; height: 104px; overflow: visible; }
#keyPlan .tw { fill: none; stroke: var(--wall); stroke-width: 1; }
#keyPlan .tw.on { stroke: var(--ink); }
#keyPlan .fl { stroke: var(--ink); stroke-width: 2.4; }
#keyPlan text { font-family: var(--f); font-size: 7px; letter-spacing: .14em; fill: var(--ink-3); text-anchor: middle; }
#roomList { list-style: none; margin: 0 0 4px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; column-gap: 14px; }
#roomList button { width: 100%; height: 34px; display: flex; align-items: center; gap: 9px; background: transparent; border: 0; border-bottom: 1px solid var(--rule); color: var(--ink);
  padding: 0; font-size: 13.5px; text-align: left; letter-spacing: .02em; }
#roomList button .n { flex: 0 0 18px; height: 18px; border-radius: 50%; border: 1px solid var(--sage); display: grid; place-items: center; font-size: 10px; color: var(--ink-2); }
#roomList button:hover, #roomList button.on { color: #000; }
#roomList button:hover .n, #roomList button.on .n { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.p-also { font-size: 12px; color: var(--ink-2); line-height: 1.5; margin: 10px 0 8px; }
.p-notes { font-size: 11.5px; color: var(--ink-2); line-height: 1.5; margin-bottom: 8px; }
.p-notes summary { cursor: pointer; font-size: 11px; letter-spacing: .24em; text-transform: uppercase; color: var(--ink-3); padding: 4px 0; }
.p-notes p { margin: 6px 0; }
.p-actions { flex: 0 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 8px; padding: 12px 30px calc(18px + var(--sab)); border-top: 1px solid var(--rule); background: var(--paper); }
.p-actions .solid { grid-column: 1 / -1; }
.solid { background: var(--ink); color: var(--paper); border: 0; padding: 13px 14px; font-size: 11.5px; letter-spacing: .22em; text-transform: uppercase; border-radius: 1px; }
.solid:hover { background: #454d0c; }
.line { background: transparent; color: var(--ink); border: 1px solid var(--ink); padding: 11px 10px; font-size: 11px; letter-spacing: .14em; white-space: nowrap; text-transform: uppercase; border-radius: 1px; }
.text { background: transparent; border: 0; color: var(--ink-2); font-size: 11px; letter-spacing: .2em; text-transform: uppercase; padding: 11px 6px; }
.text:hover, .line:hover { color: #000; }

/* 3. room */
#room { z-index: 30; opacity: 0; visibility: hidden; pointer-events: none; background: var(--stage-2); }
#app[data-view="room"] #room { pointer-events: auto; }
.rimg, #roomVid { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; will-change: transform, opacity; }
.rimg { z-index: 0; } #roomVid { z-index: 2; } .r-shade { z-index: 3; } #vidBar, .chip-dark, .r-caption, #roomNav { z-index: 4; }
#roomImg2 { opacity: 0; }
#roomVid { opacity: 0; pointer-events: none; }
.rimg.drift { animation: drift 20s ease-in-out infinite alternate; }
@keyframes drift { from { transform: scale(1); } to { transform: scale(1.05); } }
.r-shade { position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(to top, rgba(14, 15, 10, .82) 0%, rgba(14, 15, 10, .35) 22%, rgba(14, 15, 10, 0) 38%), linear-gradient(to bottom, rgba(14, 15, 10, .45), rgba(14, 15, 10, 0) 16%); }
#vidBar { position: absolute; left: 0; right: 0; bottom: 0; height: 2px; opacity: 0; transition: opacity .3s; }
#vidBar.on { opacity: 1; }
#vidBar i { display: block; height: 100%; width: 0; background: var(--sage); }
.chip-dark { position: absolute; background: rgba(14, 15, 10, .55); color: var(--cream); border: 1px solid var(--cream-rule); padding: 10px 14px 9px; font-size: 11px; letter-spacing: .2em; text-transform: uppercase; border-radius: 1px; }
.chip-dark:hover { background: rgba(14, 15, 10, .75); }
#backToFloor { left: calc(28px + var(--sal)); top: calc(96px + var(--sat)); }
#playBtn { left: calc(28px + var(--sal)); top: calc(146px + var(--sat)); }
#skipBtn { right: calc(28px + var(--sar)); top: calc(96px + var(--sat)); }
.r-caption { position: absolute; left: calc(32px + var(--sal)); bottom: calc(128px + var(--sab)); pointer-events: none; }
.r-eyebrow { font-size: 11px; letter-spacing: .26em; text-transform: uppercase; color: var(--cream-2); }
.r-name { font-size: 30px; font-weight: 300; letter-spacing: .22em; text-transform: uppercase; margin-top: 8px; padding-bottom: 10px; border-bottom: 1px solid rgba(243, 241, 234, .55); display: inline-block; text-shadow: 0 2px 18px rgba(0, 0, 0, .35); }
#room .r-caption, #roomNav, #backToFloor { transition: opacity .3s; }
#app:not([data-view="room"]) #room .r-caption, #app:not([data-view="room"]) #roomNav, #app:not([data-view="room"]) #backToFloor { opacity: 0; }
#roomNav { position: absolute; left: calc(24px + var(--sal)); right: calc(24px + var(--sar)); bottom: calc(22px + var(--sab)); display: flex; align-items: center; gap: 10px;
  padding: 8px 10px; background: rgba(14, 15, 10, .5); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); }
#roomNav > button { flex: 0 0 34px; height: 68px; background: transparent; border: 1px solid var(--cream-rule); color: var(--cream); font-size: 15px; }
#roomNav > button:hover { border-color: var(--cream); }
#thumbs { flex: 1; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; scroll-behavior: smooth; justify-content: safe center; }
#thumbs::-webkit-scrollbar { display: none; }
#thumbs button { position: relative; flex: 0 0 120px; height: 68px; padding: 0; border: 1px solid transparent; background: #222 center / cover no-repeat; border-radius: 1px; opacity: .72; transition: opacity .2s, border-color .2s; }
#thumbs button span { position: absolute; left: 0; right: 0; bottom: 0; padding: 12px 6px 4px; font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase; text-align: left; color: var(--cream);
  background: linear-gradient(to top, rgba(14, 15, 10, .85), rgba(14, 15, 10, 0)); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#thumbs button:hover { opacity: 1; }
#thumbs button.on { opacity: 1; border-color: var(--paper); box-shadow: 0 0 0 1px var(--paper); }

#toast { position: absolute; left: 50%; top: calc(92px + var(--sat)); transform: translateX(-50%); z-index: 60; background: var(--paper); color: var(--ink); padding: 11px 16px; font-size: 13px; border-radius: 1px; max-width: min(440px, 90vw); text-align: center; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
#loader { position: absolute; inset: 0; z-index: 70; background: var(--paper); display: grid; place-items: center; transition: opacity .45s; }
#loader img { width: 64px; animation: breathe 1.6s ease-in-out infinite alternate; }
@keyframes breathe { from { transform: scale(.96); opacity: .75; } to { transform: scale(1); opacity: 1; } }
#loader.done { opacity: 0; pointer-events: none; }

/* phones and portrait tablets (class set by app.js: portrait and narrower than 900) */
#app.phone .brand img { height: 40px; }
#app.phone #top { padding: calc(10px + var(--sat)) calc(16px + var(--sar)) 10px calc(16px + var(--sal)); }
#app.phone .loc, #app.phone .nav a { display: none; }
#app.phone .paper { padding: 9px 13px; font-size: 11px; }
#app.phone #rail { display: none; }
#app.phone #hint { left: calc(16px + var(--sal)); bottom: calc(18px + var(--sab)); font-size: 11px; }
#app.phone #infoBtn { right: calc(16px + var(--sar)); bottom: calc(20px + var(--sab)); }
#app.phone #infoPop { right: calc(16px + var(--sar)); left: calc(16px + var(--sal)); max-width: none; bottom: calc(58px + var(--sab)); }
#app.phone #floorCard { left: calc(12px + var(--sal)) !important; right: calc(12px + var(--sar)); width: auto; top: auto !important; bottom: calc(66px + var(--sab)); transform: none; }
#app.phone #floorCard::before { display: none; }
#app.phone #floorCard .fc-step button { width: 44px; height: 34px; font-size: 15px; }
#app.phone #panel { left: 0; right: 0; top: auto; bottom: 0; width: auto; height: 50%; transform: translateY(24px); box-shadow: 0 -20px 60px rgba(0, 0, 0, .3); }
#app.phone[data-view="floor"] #panel { transform: none; }
#app.phone .p-scroll { padding: 16px 18px 6px; }
#app.phone .p-title { font-size: 24px; margin: 4px 0 2px; }
#app.phone .p-area { margin: 10px 0 10px; padding: 8px 0 6px; }
#app.phone .p-area .p-label { display: none; }
#app.phone .p-stats { width: 100%; display: grid; grid-template-columns: repeat(3, 1fr); }
#app.phone .p-stats div { display: block; border: 0; padding: 0 8px 0 0; }
#app.phone .p-stats div + div { padding-left: 10px; border-left: 1px solid var(--rule); }
#app.phone .p-stats dt { font-size: 11px; }
#app.phone .p-stats dd { text-align: left; font-size: 17px; }
#app.phone #keyPlan { display: none; }
#app.phone #roomList { display: flex; flex-wrap: wrap; gap: 6px; }
#app.phone #roomList li { flex: 0 0 auto; }
#app.phone #roomList button { height: 38px; border: 1px solid var(--rule); padding: 0 11px 0 7px; font-size: 13px; width: auto; white-space: nowrap; }
#app.phone .p-actions { padding: 10px 18px calc(12px + var(--sab)); grid-template-columns: 1fr 1fr auto; }
#app.phone .p-actions .solid { grid-column: auto; padding: 12px 8px; font-size: 10.5px; letter-spacing: .14em; }
#app.phone .p-actions .line { padding: 11px 6px; font-size: 10.5px; letter-spacing: .12em; }
#app.phone .hs .tag { display: none; }
#app.phone .hs.on .tag { display: block; pointer-events: auto; }
#app.phone .hs .enter { display: inline; margin-left: 6px; }
#app.phone .hs .dot { width: 22px; height: 22px; left: 11px; top: 11px; font-size: 11px; }
#app.phone #backToFloor { left: calc(16px + var(--sal)); top: calc(66px + var(--sat)); }
#app.phone #playBtn { left: auto; right: calc(16px + var(--sar)); top: calc(66px + var(--sat)); }
#app.phone #skipBtn { right: calc(16px + var(--sar)); top: calc(66px + var(--sat)); }
#app.phone .r-caption { left: calc(18px + var(--sal)); bottom: calc(112px + var(--sab)); }
#app.phone .r-name { font-size: 22px; letter-spacing: .18em; }
#app.phone #roomNav { left: 0; right: 0; bottom: 0; padding: 8px 10px calc(10px + var(--sab)); }
#app.phone #roomNav > button { display: none; }
#app.phone #thumbs { justify-content: flex-start; }
#app.phone #thumbs button { flex-basis: 104px; height: 60px; }
@media (max-width: 900px) { .loc, .nav a { display: none; } }
@media (max-height: 820px) { .p-scroll { padding-top: calc(86px + var(--sat)); } .p-title { font-size: 28px; } #roomList button { height: 31px; } .p-area { margin: 12px 0 12px; } }
@media (max-height: 500px) { .brand img { height: 40px; } #top { padding-top: calc(10px + var(--sat)); } .p-scroll { padding-top: calc(70px + var(--sat)); } #roomNav { bottom: calc(8px + var(--sab)); } #thumbs button { height: 52px; flex-basis: 92px; } #roomNav > button { height: 52px; } .r-caption { bottom: calc(92px + var(--sab)); } #backToFloor { top: calc(64px + var(--sat)); } }
@media (prefers-reduced-motion: reduce) { .rimg.drift { animation: none; } #hint .dot, #loader img { animation: none; } }
