/* Droomvluchtweg 148, interface. One dark cinematic theme (the scene has day and night, the interface does not):
   dark glass, Geist, one amber accent. Radius scale: pills for the bars and everything inside a bar, 14 px for controls
   inside a panel, 22 px for panels, the dashboard and the dialog. No inline styles anywhere (CSP): everything is here. */
@font-face { font-family: 'Geist'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-latin-wght-normal.woff2') format('woff2'); }
@font-face { font-family: 'Geist Mono'; font-style: normal; font-weight: 100 900; font-display: swap; src: url('/fonts/geist-mono-latin-wght-normal.woff2') format('woff2'); }

:root {
  color-scheme: dark;
  --ink: #F3F4F6;
  --body: #D5D9E0;
  --muted: #A3ABB8;
  --glass: rgba(11, 13, 17, 0.7);
  --solid: rgba(11, 13, 17, 0.95);
  --hair: rgba(255, 255, 255, 0.11);
  --soft: rgba(255, 255, 255, 0.07);
  --chip: rgba(255, 255, 255, 0.045);
  --chip-hover: rgba(255, 255, 255, 0.1);
  --accent: #F0B455;
  --accent-soft: rgba(240, 180, 85, 0.16);
  --on-accent: #17110A;
  --focus: #F3F4F6;
  --shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
  --edge: inset 0 1px 0 rgba(255, 255, 255, 0.07);
  --blur: blur(22px) saturate(150%) brightness(0.55);
  --r-m: 14px;
  --r-l: 22px;
  --pill: 9999px;
  --ease: cubic-bezier(0.2, 0.8, 0.2, 1);
  --plan-room: rgba(255, 255, 255, 0.07);
  --plan-line: rgba(255, 255, 255, 0.5);
  --font: Geist, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
  --lbx: clamp(22px, 7vh, 72px);     /* the letterbox bars */
  --dash-h: 228px;                    /* the dashboard card; the details panel sits above it */
}

html, body { margin: 0; height: 100%; background: #0B0D11; color: var(--ink); font: 400 15px/1.55 var(--font); -webkit-font-smoothing: antialiased; }
#view { position: fixed; inset: 0; width: 100%; height: 100%; display: block; }
html { scrollbar-width: none; }
html::-webkit-scrollbar { display: none; }
#track { position: relative; width: 1px; pointer-events: none; }

/* Loading veil: stays up while the first frames compile every shader (seconds on a cold cache). The bar
   moves by transform, which the compositor animates even while the main thread is busy compiling. */
#veil { position: fixed; inset: 0; z-index: 100; display: grid; place-content: center; justify-items: center; gap: 14px; background: #0B0D11; transition: opacity 0.6s ease, visibility 0s linear 0.6s; }
#veil.done { opacity: 0; visibility: hidden; pointer-events: none; }
#status { margin: 0; color: var(--body); font: 500 14px/1.4 var(--font); letter-spacing: 0.01em; }
#status:empty { display: none; }
#veil .bar { position: relative; width: 160px; height: 2px; overflow: hidden; border-radius: 1px; background: rgba(255, 255, 255, 0.14); }
#veil .bar::after { content: ''; position: absolute; inset: 0; width: 40%; background: var(--accent); animation: veil-bar 1.3s ease-in-out infinite; }
@keyframes veil-bar { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
@media (prefers-reduced-motion: reduce) { #veil .bar::after { animation: none; width: 100%; opacity: 0.5; } }
.nf { max-width: 36rem; margin: 15vh auto; padding: 0 16px; }
.nf a { color: var(--accent); text-underline-offset: 3px; }

/* ---------- shared ---------- */
#ui { font-family: var(--font); color: var(--ink); }
#ui [hidden] { display: none !important; }
:where(#ui) :is(h1, h2, p, dl, dd, ul, figure) { margin: 0; padding: 0; }   /* :where keeps these resets below every class rule */
:where(#ui) ul { list-style: none; }
:where(#ui) button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; -webkit-tap-highlight-color: transparent; }
#ui button:disabled { opacity: 0.4; cursor: default; }
#ui button:active:not(:disabled) { transform: scale(0.97); }
#ui :focus-visible, #ui .pr:focus-visible, dialog:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }
.mono { font-family: var(--mono); font-feature-settings: 'tnum'; }
/* the interface arrives after the veil lifts (each glass element fades itself: an ancestor's opacity would break its backdrop blur) */
html[data-ready] :is(.pill-bar, .tool, .nav, .dash, .hint) { animation: ui-in 800ms ease 250ms backwards; }
@keyframes ui-in { from { opacity: 0; } to { opacity: 1; } }

.pill-bar, .pop, .tool, .nav, .dash, .about {
  background: var(--glass);
  backdrop-filter: var(--blur);
  -webkit-backdrop-filter: var(--blur);
  border: 1px solid var(--hair);
  box-shadow: var(--shadow), var(--edge);
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .pill-bar, .pop, .tool, .nav { background: var(--solid); }
}
.pop, .dash, .about { background: var(--solid); }      /* what carries text is nearly opaque: it must read over any scene */

/* film: a soft vignette top and bottom behind the interface, and the letterbox bars of a flight */
.scrim { position: fixed; left: 0; right: 0; z-index: 19; pointer-events: none; height: 130px; }
.scrim-t { top: 0; background: linear-gradient(to bottom, rgba(5, 7, 10, 0.5), transparent); }
.scrim-b { bottom: 0; background: linear-gradient(to top, rgba(5, 7, 10, 0.45), transparent); }
.lbx { position: fixed; left: 0; right: 0; z-index: 20; height: var(--lbx); background: #000; pointer-events: none; transition: transform 700ms cubic-bezier(0.65, 0, 0.35, 1); }
.lbx-t { top: 0; transform: translateY(-100%); }
.lbx-b { bottom: 0; transform: translateY(100%); }
html[data-flying] .lbx { transform: none; }

/* ---------- top: the name, the four sections, language and About ---------- */
.bar { position: fixed; top: max(12px, env(safe-area-inset-top)); left: 12px; right: 12px; z-index: 40; display: grid; grid-template-columns: 1fr auto 1fr; align-items: start; gap: 12px; pointer-events: none; }
.bar > * { pointer-events: auto; }
.pill-bar { box-sizing: border-box; height: 52px; padding: 4px; border-radius: var(--pill); display: flex; align-items: center; gap: 2px; }
.brand { justify-self: start; padding: 0 20px; }
.wordmark { font: 600 15px/1 var(--font); letter-spacing: -0.01em; white-space: nowrap; }
.wordmark .num { margin-left: 0.05em; font: 500 15px/1 var(--mono); color: var(--accent); letter-spacing: 0; }
.utils { justify-self: end; }
.utils-g { display: flex; align-items: center; gap: 2px; }
.sitenav ul { display: flex; gap: 2px; }
.navlink { position: relative; display: inline-flex; align-items: center; gap: 8px; min-height: 44px; box-sizing: border-box; padding: 0 18px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--muted); text-decoration: none; white-space: nowrap; transition: background-color 200ms, color 200ms; }
a.navlink[href]:hover { background: var(--soft); color: var(--ink); }
.navlink[aria-current="page"] { color: var(--ink); background: var(--soft); }
.navlink[aria-current="page"]::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.navlink[aria-disabled="true"] { cursor: default; opacity: 0.55; }
.soon { display: none; margin-left: auto; font: 500 10px/1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.menu .soon { display: inline; }
.iconbtn.menu-btn { display: none; }
.langs { display: flex; gap: 2px; }
.lang { min-width: 44px; min-height: 44px; border-radius: var(--pill); font-size: 13px; font-weight: 500; color: var(--muted); transition: background-color 200ms, color 200ms; }
.lang:hover { background: var(--soft); color: var(--ink); }
.lang[aria-pressed="true"] { background: var(--hair); color: var(--ink); font-weight: 600; }
.iconbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 200ms; }
.iconbtn:hover { background: var(--soft); }

/* below 1024 px the sections and the utilities fold into one menu */
.menu { position: fixed; top: calc(max(12px, env(safe-area-inset-top)) + 60px); right: 12px; z-index: 50; width: min(320px, calc(100vw - 24px)); box-sizing: border-box; padding: 8px; border-radius: var(--r-l); animation: rise 240ms var(--ease) both; }
.menu .sitenav { display: block; height: auto; padding: 0; border: 0; border-radius: 0; background: none; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu .sitenav ul { flex-direction: column; gap: 2px; }
.menu .navlink { width: 100%; min-height: 48px; padding: 0 14px; border-radius: var(--r-m); font-size: 16px; }
.menu .utils-g { justify-content: space-between; margin-top: 6px; padding: 8px 6px 0; border-top: 1px solid var(--hair); }
@media (max-width: 1023px) {
  .bar { grid-template-columns: 1fr auto; }
  .sitenav { display: none; }
  .menu .sitenav { display: block; }
  .iconbtn.menu-btn { display: inline-flex; }
}

/* ---------- panels (stop list, controls, floor plan, room details) ---------- */
.pop { position: fixed; z-index: 45; box-sizing: border-box; border-radius: var(--r-l); animation: rise 240ms var(--ease) both; }
.sheet-close { display: none; }
.plan .sheet-close { display: inline-flex; }

/* the stop list: every stop, grouped by floor, rising from the progress counter */
.stops { bottom: 80px; left: 50%; translate: -50% 0; z-index: 50; width: min(560px, calc(100vw - 24px)); max-height: calc(100dvh - 80px - 90px); overflow-y: auto; padding: 8px; columns: 2; column-gap: 8px; }
.sgrp { break-inside: avoid; padding-bottom: 6px; }
.sgrp-title { padding: 8px 12px 4px 30px; font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.sitem { display: flex; align-items: center; gap: 10px; width: 100%; box-sizing: border-box; min-height: 40px; padding: 0 12px; border-radius: 12px; text-align: left; font-size: 14px; transition: background-color 200ms; }
.sitem:hover { background: var(--soft); }
.sitem[aria-current] { background: var(--hair); font-weight: 600; }
.dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); visibility: hidden; }
.sitem[aria-current] .dot { visibility: visible; }

/* controls */
.dock { left: 12px; bottom: 80px; width: 308px; max-height: calc(100dvh - 80px - 84px); overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 16px; }
.grp-title { font: 500 11px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px !important; }
.facades { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.fac { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 40px; padding: 0 6px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--chip); transition: background-color 200ms, border-color 200ms; }
.fac:hover:not([aria-pressed="true"]) { background: var(--chip-hover); }
.fac .cap { font-size: 12px; font-weight: 500; }
.fac[aria-pressed="true"], .chip[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.fac[aria-pressed="true"] .cap { font-weight: 600; }
.sw { flex: none; width: 18px; height: 18px; border-radius: 5px; border: 1px solid rgba(255, 255, 255, 0.28); box-sizing: border-box; }
.sw-brick { background:
  linear-gradient(to bottom, transparent 38%, rgba(160, 62, 42, 0.95) 38% 62%, transparent 62%),
  repeating-linear-gradient(to bottom, transparent 0 4px, rgba(110, 70, 40, 0.4) 4px 5px),
  #CFA766; }
.sw-concrete { background:
  radial-gradient(circle at 30% 30%, rgba(30, 35, 40, 0.4) 0 1px, transparent 1.5px),
  radial-gradient(circle at 72% 70%, rgba(30, 35, 40, 0.4) 0 1px, transparent 1.5px),
  #9AA0A6; }
.sw-timber { background:
  repeating-linear-gradient(90deg, rgba(0, 0, 0, 0.35) 0 1px, transparent 1px 5px),
  #6B4731; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.chip { min-height: 40px; padding: 0 12px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--chip); font-size: 13px; font-weight: 500; transition: background-color 200ms, border-color 200ms; }
.chip:hover:not([aria-pressed="true"]) { background: var(--chip-hover); }
.chip[data-k="photographed"] { grid-column: 1 / -1; }      /* the fifth style takes a row of its own */
.chip[aria-pressed="true"] { font-weight: 600; }
.light { display: flex; gap: 6px; align-items: stretch; }
.segs { flex: 1; display: flex; gap: 2px; padding: 3px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--chip); }
.seg-opt { flex: 1; min-height: 50px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border-radius: 11px; color: var(--muted); transition: background-color 200ms, color 200ms; }
.seg-opt:hover { color: var(--ink); }
.seg-opt[aria-pressed="true"] { background: var(--hair); color: var(--ink); font-weight: 600; box-shadow: inset 0 -2px 0 var(--accent); }
.cap { font-size: 12px; font-weight: 500; line-height: 1.1; }
.seg-opt .cap { font-size: 11px; }
.night { width: 58px; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--chip); transition: background-color 200ms, border-color 200ms; }
.night:hover:not([aria-checked="true"]) { background: var(--chip-hover); }
.night[aria-checked="true"], .act[aria-pressed="true"] { border-color: var(--accent); background: var(--accent-soft); }
.acts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.act { min-width: 0; min-height: 54px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 4px 2px; border: 1px solid var(--hair); border-radius: var(--r-m); background: var(--chip); transition: background-color 200ms, border-color 200ms; }
.act:hover:not([aria-pressed="true"]) { background: var(--chip-hover); }
.act .cap { font-size: 11px; text-align: center; }

/* bottom row: controls (left), previous / play / next with the progress (centre), the dashboard (right) */
.tool { position: fixed; bottom: 16px; z-index: 31; box-sizing: border-box; height: 54px; padding: 0 20px 0 16px; border-radius: var(--pill); display: inline-flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 500; transition: background-color 200ms; }
.tool[aria-expanded="true"] { background: var(--solid); }
.tool[aria-controls="dock"] { left: 12px; }
.tl { white-space: nowrap; }
.light-ico { display: inline-flex; color: var(--accent); }

.nav { position: fixed; left: 50%; bottom: 16px; translate: -50% 0; z-index: 30; box-sizing: border-box; height: 54px; padding: 4px 6px 4px 4px; border-radius: var(--pill); display: flex; align-items: center; gap: 2px; }
.navbtn { width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background-color 200ms, opacity 200ms; }
.navbtn:hover:not(:disabled) { background: var(--soft); }
.play { flex: none; width: 44px; height: 44px; margin: 0 2px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--accent); color: var(--on-accent); transition: opacity 200ms, transform 120ms; }
.play:hover { opacity: 0.88; }
.count { display: flex; align-items: center; gap: 8px; min-height: 44px; margin-left: 8px; padding: 0 10px 0 14px; border-left: 1px solid var(--hair); border-radius: 0 var(--pill) var(--pill) 0; transition: background-color 200ms; }
.count:hover, .count[aria-expanded="true"] { background: var(--soft); }
.count-in { display: flex; flex-direction: column; gap: 5px; min-width: 52px; text-align: left; }
.count-text { font: 500 12px/1 var(--mono); font-variant-numeric: tabular-nums; white-space: nowrap; }
.count-chev { color: var(--muted); transform: rotate(180deg); transition: transform 200ms; }
.count[aria-expanded="true"] .count-chev { transform: none; }
.prog { display: block; height: 3px; border-radius: 2px; background: var(--hair); overflow: hidden; }
.prog-fill { display: block; height: 100%; background: var(--accent); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform 400ms ease-out; }

.hint { position: fixed; left: 50%; bottom: 84px; translate: -50% 0; z-index: 29; display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: var(--pill); background: rgba(11, 13, 17, 0.8); border: 1px solid var(--hair); color: var(--body); font-size: 13px; font-weight: 500; white-space: nowrap; transition: opacity 400ms, visibility 400ms; backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.hint.gone { opacity: 0; visibility: hidden; pointer-events: none; }

/* ---------- the dashboard: the whole house as a wireframe, you in it, always in view ---------- */
.dash { position: fixed; right: 12px; bottom: 16px; z-index: 31; box-sizing: border-box; width: 212px; border-radius: var(--r-l); overflow: hidden; }
.dash-view { position: relative; aspect-ratio: 212 / 168; background: radial-gradient(circle at 50% 56%, rgba(240, 180, 85, 0.1), transparent 64%); }
.dash-view::before { content: ''; position: absolute; inset: 10px; pointer-events: none; opacity: 0.5;
  background:
    linear-gradient(var(--muted), var(--muted)) top left / 12px 1px no-repeat, linear-gradient(var(--muted), var(--muted)) top left / 1px 12px no-repeat,
    linear-gradient(var(--muted), var(--muted)) top right / 12px 1px no-repeat, linear-gradient(var(--muted), var(--muted)) top right / 1px 12px no-repeat,
    linear-gradient(var(--muted), var(--muted)) bottom left / 12px 1px no-repeat, linear-gradient(var(--muted), var(--muted)) bottom left / 1px 12px no-repeat,
    linear-gradient(var(--muted), var(--muted)) bottom right / 12px 1px no-repeat, linear-gradient(var(--muted), var(--muted)) bottom right / 1px 12px no-repeat; }
#locator { position: absolute; inset: 0; }
.dash-label { display: flex; align-items: center; justify-content: space-between; gap: 10px; box-sizing: border-box; width: 100%; min-height: 58px; padding: 10px 14px 12px 16px; border-top: 1px solid var(--hair); text-align: left; transition: background-color 200ms; }
.dash-label:hover, .dash-label[aria-expanded="true"] { background: var(--soft); }
#ui .dash-label:focus-visible { outline-offset: -3px; border-radius: 0 0 var(--r-l) var(--r-l); }   /* the card clips an outside ring */
.dash-text { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.dash-floor { font: 500 10.5px/1.1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.dash-room { font-size: 15px; line-height: 1.2; font-weight: 600; letter-spacing: -0.01em; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.dash-chev { color: var(--muted); transform: rotate(180deg); transition: transform 200ms; }
/* the heating layer's key over the wireframe (colours as HEAT_COLORS in heating.js); it also says the pipes are schematic */
.dash-key { margin: 0; padding: 8px 16px 9px; display: flex; flex-wrap: wrap; align-items: center; gap: 3px 8px; border-top: 1px solid var(--hair); font: 500 10px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--muted); }
.dash-key[hidden] { display: none; }
.dash-key .key { width: 8px; height: 8px; border-radius: 50%; }
.dash-key .key-flow { background: #ff7a2e; }
.dash-key .key-back { background: #4ea3ff; }
.dash-key .key-note { flex-basis: 100%; }
.dash-label[aria-expanded="true"] .dash-chev { transform: none; }

/* room details, rising from the dashboard */
.panel { right: 12px; bottom: calc(16px + var(--dash-h) + 8px); width: 340px; max-height: calc(100dvh - 16px - var(--dash-h) - 8px - 84px); overflow-y: auto; transform-origin: bottom right; }
.p-body { padding: 18px 20px 20px; }
.p-body.enter { animation: fade 300ms ease-out both; }
.p-floor { font: 500 10.5px/1.1 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px !important; }
.p-title { font: 600 26px/1.1 var(--font); letter-spacing: -0.025em; margin-bottom: 10px !important; padding-right: 8px; }
.p-text { font-size: 14px; line-height: 1.55; color: var(--body); margin-bottom: 16px !important; }
.facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 16px; padding-top: 14px; border-top: 1px solid var(--hair); }
.fact dt { font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 3px; }
.fact dd { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; }
.fact .note { font-weight: 400; font-size: 12px; color: var(--muted); }
/* the room photo (filled from stage 5 on): a frame that rolls out above the text */
.shot { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 500ms var(--ease); }
.shot[data-open] { grid-template-rows: 1fr; }
.shot > div { min-height: 0; overflow: hidden; }
.shot img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; }
.shot figcaption { padding: 8px 20px 0; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.pill { flex: 1; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 6px; padding: 0 14px; border: 1px solid var(--hair); border-radius: var(--pill); font-size: 13px; font-weight: 500; transition: background-color 200ms, opacity 200ms; }
.pill:hover:not(:disabled) { background: var(--soft); }
.pill.primary { background: var(--accent); color: var(--on-accent); border-color: var(--accent); font-weight: 600; }
.pill.primary:hover:not(:disabled) { background: var(--accent); opacity: 0.88; }

/* ---------- floor plan overlay ---------- */
.plan { left: 12px; bottom: 80px; width: 308px; max-height: calc(100dvh - 80px - 84px); padding: 8px 8px 12px 16px; display: flex; flex-direction: column; }
.plan-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.plan-title { font-size: 14px; font-weight: 600; }
.plan-box { min-height: 0; padding: 0 8px 4px 0; display: flex; }
.plan-svg { width: 100%; height: auto; max-height: min(430px, calc(100dvh - 80px - 84px - 72px)); display: block; }
.pr rect { fill: var(--plan-room); stroke: var(--plan-line); stroke-width: 0.06; transition: fill 200ms; }
.pr.has { cursor: pointer; }
.pr.has:hover rect { fill: rgba(255, 255, 255, 0.14); }
.pr.cur rect { fill: var(--accent); fill-opacity: 0.9; }
.pr.cur:hover rect { fill: var(--accent); }
.pl { font: 500 0.46px var(--font); fill: var(--ink); text-anchor: middle; dominant-baseline: middle; pointer-events: none; }
.pr.cur .pl { fill: var(--on-accent); }
.pl.street { fill: var(--muted); font-size: 0.34px; }

/* ---------- About dialog ---------- */
.about { width: min(440px, calc(100vw - 32px)); max-height: calc(100dvh - 32px); overflow-y: auto; box-sizing: border-box; padding: 26px; border-radius: var(--r-l); color: var(--ink); }
.about::backdrop { background: rgba(5, 7, 10, 0.62); backdrop-filter: blur(6px); }
.about h2 { font: 600 26px/1.1 var(--font); letter-spacing: -0.025em; margin-bottom: 14px !important; }
.dlg-body p { font-size: 15px; line-height: 1.55; color: var(--body); margin-bottom: 12px !important; }
.credits { margin-top: 4px; border-top: 1px solid var(--hair); padding-top: 8px; }
.credits summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-size: 14px; font-weight: 600; }
.cred-body { padding-bottom: 4px; }
.cred-grp h3 { margin: 10px 0 4px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.cred-grp ul { margin: 0; padding: 0; list-style: none; }
.cred-grp li { font-size: 13px; line-height: 1.45; color: var(--body); padding: 2px 0; }
.cred-grp a { color: var(--ink); text-underline-offset: 2px; }
.dlg-foot { display: flex; justify-content: flex-end; margin-top: 8px; }
.dlg-foot .pill { flex: none; padding: 0 24px; }

@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }

/* ---------- phone: the header is the name and a menu, the dashboard moves under it, panels are bottom sheets ---------- */
@media (max-width: 719px) {
  .bar { left: 8px; right: 8px; top: max(8px, env(safe-area-inset-top)); }
  .brand { padding: 0 16px; }
  .menu { right: 8px; top: calc(max(8px, env(safe-area-inset-top)) + 60px); width: calc(100vw - 16px); }

  .tool, .nav { bottom: max(12px, env(safe-area-inset-bottom)); }
  .tool { width: 54px; padding: 0; justify-content: center; }
  .tool[aria-controls="dock"] { left: 8px; }
  .tl { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .nav { left: auto; right: 8px; translate: none; }
  .count { margin-left: 4px; padding: 0 8px 0 10px; }
  .hint { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); max-width: calc(100vw - 24px); white-space: normal; text-align: center; }

  .dash { top: calc(max(8px, env(safe-area-inset-top)) + 60px); right: 8px; bottom: auto; width: 164px; }
  .dash-view { aspect-ratio: 164 / 118; }
  .dash-view::before { inset: 6px; }
  .dash-label { min-height: 52px; padding: 8px 8px 10px 12px; }
  .dash-room { font-size: 13.5px; }
  .dash-floor { font-size: 9.5px; }

  .stops { bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); left: 8px; right: 8px; translate: none; width: auto; max-height: calc(100dvh - 66px - 100px); columns: auto; }   /* a height-capped multicolumn box flows the rest sideways, out of sight: one plain column that scrolls */
  .sitem { min-height: 44px; }
  .dock, .panel, .plan { left: 8px; right: 8px; width: auto; bottom: calc(max(12px, env(safe-area-inset-bottom)) + 66px); max-height: calc(100dvh - 66px - 12px - 76px); }
  .sheet-close { display: inline-flex; position: absolute; top: 4px; right: 4px; z-index: 2; }
  .dock { padding-top: 16px; }
  .dock .grp:first-of-type { padding-right: 44px; }
  .p-body { padding: 16px 16px 18px; }
  .p-title { padding-right: 40px; }
  .plan-svg { max-height: calc(100dvh - 66px - 12px - 76px - 64px); }
}

@media (pointer: coarse) { .chip, .fac, .sitem { min-height: 44px; } }

/* ---------- reduced motion: no slides, no letterbox, instant fades only ---------- */
@media (prefers-reduced-motion: reduce) {
  .pop, .menu { animation: fade 120ms linear both; }
  html[data-ready] :is(.pill-bar, .tool, .nav, .dash, .hint) { animation: none; }
  .p-body.enter { animation: none; }
  #ui, #ui *, #ui *::before, .lbx, .shot { transition-duration: 0.01ms !important; transition-delay: 0s !important; }
  #ui button:active:not(:disabled) { transform: none; }
  .lbx { display: none; }
}

/* No 3D: the floor plans (fallback.js) */
.fallback { max-width: 1100px; margin: 0 auto; padding: 32px 16px 64px; color: #0F172A; font-family: var(--font); }
html[data-backend="none"], html[data-backend="none"] body { background: #F6F5F2; height: auto; }
.fallback h1 { font-family: var(--font); font-weight: 600; letter-spacing: -0.025em; font-size: 40px; margin: 0 0 8px; }
.fallback figure { margin: 24px 0; display: inline-block; width: min(100%, 340px); vertical-align: top; }
.fallback figcaption { font-weight: 600; margin-bottom: 8px; }
.fallback svg { width: 100%; height: auto; }
.fb-room { fill: rgba(217, 146, 46, 0.10); stroke: currentColor; stroke-width: 0.06; }
.fb-out { fill: rgba(120, 160, 90, 0.14); stroke: currentColor; stroke-width: 0.03; stroke-dasharray: 0.15 0.1; }
.fb-name { font: 600 0.3px Geist, system-ui, sans-serif; text-anchor: middle; fill: currentColor; }
.fb-size { font: 400 0.26px Geist, system-ui, sans-serif; text-anchor: middle; fill: currentColor; opacity: 0.75; }
