/* (FINAL-FIX2 perf) 1 selector list in this file whose last compound was a bare :is(...) are written out one selector per alternative, so Blink buckets each by its own class / id / tag instead of testing every element on every style recalc. Each alternative is padded with :not(#zz-) / :not(.zz-) / :not(zz-) so its specificity is what the :is() gave (the most specific alternative); one that cannot be padded down is a class / type more specific only where no rule anywhere could tell the difference (checked against every stylesheet and the DOM), otherwise it stays in a :is() with a never-matching alternative of the full specificity. Same elements, same cascade. */
/* =====================================================================
   Century Mirai Showroom: one descent, no menu bar.
   The scene is the page; the interface lives on its edges and fades away.
   Sized for a tablet mirrored to a TV: rem from one fluid root, targets ≥ 3.4rem.
   ===================================================================== */
:root {
  --ink: #16161b; --ink-2: #3b3b44; --muted: #6a6a74; --paper: #f4f4f6; --paper-2: #e8e8ec; --paper-ground: #f7f4ee; --card: #fafafc; --line: rgba(22, 22, 27, .12);
  --bronze: #62626c; --gold: #f4f4f7; --gold-2: #ffffff; --night: #14111a;   /* aliases kept so nothing can bring gold back: now white / silver (tokens.css is the source of truth) */
  --r: 1.9rem; --tap: 3.4rem; --pad: clamp(1rem, 2.6vw, 2.4rem); --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 1.2rem 3rem -1rem rgba(10, 10, 14, .45), 0 .2rem .6rem rgba(10, 10, 14, .12);
  --dusk: .5;
  --safe-t: env(safe-area-inset-top, 0px); --safe-r: env(safe-area-inset-right, 0px);
  --safe-b: env(safe-area-inset-bottom, 0px); --safe-l: env(safe-area-inset-left, 0px);
  --chrome-top: calc(var(--pad) + 8rem);
  --chrome-left: calc(var(--pad) + 7.6rem + var(--safe-l));
}
html { font-size: clamp(15px, calc(1.15vmin + .35vw), 26px); }
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html, body { height: 100%; overflow: hidden; background: var(--night); color: #fff; font-family: var(--sans); font-weight: 500; -webkit-font-smoothing: antialiased;
  touch-action: manipulation; overscroll-behavior: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent;
  -webkit-touch-callout: none; }   /* E2E L8: a long press on a photo or a plan never opens the iPad save-image menu */
img { display: block; max-width: none; -webkit-user-drag: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; touch-action: manipulation; }
button:focus-visible, input:focus-visible { outline: 2px solid var(--focus, #fff); outline-offset: 3px; }
body:is([data-level=home], [data-level=choose], [data-level=walk], [data-level=price], [data-level=summary]) { --focus: var(--ink); }
button svg { width: 1.25rem; height: 1.25rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex: none; }
input { font: inherit; -webkit-user-select: text; user-select: text; }
input, textarea { -webkit-touch-callout: default; }   /* the guest form keeps its paste menu */
h1, h2, h3 { font-family: var(--sans); font-weight: 300; letter-spacing: -.022em; line-height: 1.04; }
.k { font-size: max(.72rem, 11.5px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.sub { color: var(--muted); line-height: 1.5; }
.note { font-size: max(12px, .8rem); color: var(--muted); line-height: 1.45; margin-top: .8rem; }

/* shared controls */
.pill { display: inline-flex; align-items: center; gap: .55rem; min-height: var(--tap); padding: 0 1.2rem; border-radius: 99px; font-weight: 600; font-size: .95rem; white-space: nowrap; flex: none;
  background: rgba(255, 255, 255, .7); color: var(--ink); border: 1px solid var(--line); transition: background .32s var(--ease), color .32s, transform .24s var(--ease); }
.pill.on { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.pill.dark { background: var(--ink); color: var(--paper); }
.pill.ghost { background: transparent; }
.pill.danger { color: #9b3b2e; }
.pill.big { min-height: 3.8rem; padding: 0 1.6rem; font-size: 1rem; }
.pill b { display: grid; place-items: center; width: 1.8rem; height: 1.8rem; border-radius: 50%; background: var(--paper-2); font-size: max(12px, .76rem); }
.pill.on b { background: var(--gold); color: var(--ink); }
.pill small { opacity: .6; font-size: max(12px, .78rem); }
.pill:disabled { opacity: .4; }
.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.seg { display: inline-flex; flex-wrap: wrap; gap: .25rem; padding: .3rem; border-radius: 99px; background: rgba(22, 22, 27, .07); max-width: 100%; }
.seg button { min-height: calc(var(--tap) - .6rem); padding: 0 1.1rem; border-radius: 99px; font-weight: 600; font-size: max(12px, .9rem); color: var(--ink-2); transition: background .32s, color .32s; }
.seg button.on { background: var(--card); color: var(--ink); box-shadow: 0 .3rem 1rem -.3rem rgba(0, 0, 0, .3); }
.kv { display: flex; gap: 2rem; }
.kv b { display: block; font-family: var(--sans); font-size: 2.6rem; font-weight: 400; line-height: 1; }
.kv span { font-size: max(12px, .7rem); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.x { position: absolute; right: 1rem; top: 1rem; z-index: 3; width: 3rem; height: 3rem; border-radius: 50%; background: var(--ink); color: var(--paper); display: grid; place-items: center; }
.x svg { width: 1.1rem; height: 1.1rem; stroke-width: 2; }
.rooms { list-style: none; border-top: 1px solid var(--line); }
.rooms li { display: flex; justify-content: space-between; gap: 1rem; padding: .62rem 0; border-bottom: 1px solid var(--line); font-size: .95rem; }
.pts { list-style: none; display: grid; gap: .6rem; }
.pts li { position: relative; padding-left: 1.2rem; line-height: 1.45; }
.pts li::before { content: ""; position: absolute; left: 0; top: .6em; width: .5rem; height: 1px; background: var(--bronze); }
.tags { display: flex; flex-wrap: wrap; gap: .35rem; }
.tags span { font-size: max(12px, .8rem); font-weight: 600; padding: .4rem .75rem; border-radius: 99px; background: var(--paper-2); color: var(--ink); }
.strip { display: flex; gap: .55rem; overflow-x: auto; scrollbar-width: none; padding: .5rem 1.4rem .5rem .5rem; border-radius: 99px; max-width: 100%; background: rgba(250, 250, 252, .9);
 box-shadow: var(--shadow); color: var(--ink); scroll-snap-type: x proximity; scroll-padding-inline-end: 2.2rem; }
.strip::-webkit-scrollbar { display: none; }
.strip > * { scroll-snap-align: center; }

/* =====================================================================
   World & levels
   ===================================================================== */
#world { position: fixed; inset: 0; overflow: hidden; background: var(--night); }
.lvl { position: absolute; inset: 0; display: none; overflow: hidden; }
.lvl.on { display: block; }
/* the map level built and styled behind the attract screen, invisible (js/app.js prewarm): the first tap no longer builds it */
.lvl.warm:not(.on) { display: block; opacity: 0; pointer-events: none; }
#clouds { position: fixed; inset: 0; pointer-events: none; z-index: 4; mix-blend-mode: screen; }
#clouds img { position: absolute; left: 0; top: 0; width: 70vw; opacity: 0; }
#letterbox i { position: fixed; left: 0; right: 0; height: 8dvh; background: #000; z-index: 9; transform: scaleY(0); pointer-events: none; }
#letterbox i:first-child { top: 0; transform-origin: top; } #letterbox i:last-child { bottom: 0; transform-origin: bottom; }

/* captions: big type on the scene during moments */
#caption { position: fixed; left: calc(var(--pad) * 2.2 + 3rem); right: 30%; bottom: calc(8dvh + var(--pad) * 1.4); z-index: 10; pointer-events: none; text-shadow: 0 1px 2px rgba(0, 0, 0, .7), 0 2px 10px rgba(0, 0, 0, .55); }   /* tight shadows: a wide glow is re-blurred for every word as it rises (css/audit-readability.css #place) */
#caption > * { opacity: 0; }
#caption:not(.on) { visibility: hidden; }
.cap-k { font-size: max(.8rem, 12px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .75); }
.cap-t { font-family: var(--sans); font-size: clamp(2.8rem, 5.2vw, 5.4rem); line-height: 1.02; margin: .6rem 0 .5rem; }
.cap-s { font-size: 1.2rem; opacity: .85; }
/* on light scenes (plans, walk, choose) captions sit on a dark glass so they stay readable */
body[data-level=home] #caption, body[data-level=walk] #caption, body[data-level=choose] #caption { right: auto; max-width: 44rem; padding: 1.4rem 1.8rem; border-radius: 1.4rem;
  background: rgba(20, 17, 26, .82); text-shadow: none; }
body.cine #place, body.cine #ctx { opacity: 0 !important; visibility: hidden; }

/* =====================================================================
   Interface on the edges
   ===================================================================== */
body.clean:where(:not([data-level=home], [data-level=choose], [data-level=walk], [data-level=price], [data-level=summary])) #ui > :where([id]):not(#mbar) { opacity: 0; visibility: hidden; }
/* (21 October, I2 of the idle-bar playbook) the cream pages: idle, the controls rest at 35% instead of hiding. Nothing sits behind them there, and hidden they left an empty
   cream band at the top. They stay visible, so a tap acts at once (js/app.js overFadedControl lets only hidden controls swallow it). Zero specificity: a control kept hidden
   by its own rule stays hidden, and the slider keeps its own 45% (css/ux/chrome.css) */
:where(body.clean:is([data-level=home], [data-level=choose], [data-level=walk], [data-level=price], [data-level=summary]) #ui > [id]:not(#mbar)) { opacity: .35; }body.at-attract #ui { display: none; }
/* soft scrim behind the place title so white type reads on any scene */
#ui::before { content: ""; position: fixed; left: 0; top: 0; width: 70vw; height: 50vh; pointer-events: none; z-index: 0;
  background: radial-gradient(ellipse at 0 0, rgba(10, 8, 14, .55), transparent 65%); transition: opacity .72s; }
body.clean #ui::before, body[data-level=home] #ui::before, body[data-level=choose] #ui::before, body[data-level=walk] #ui::before, body[data-level=price] #ui::before, body[data-level=summary] #ui::before { opacity: 0; }
/* a swap into a cream page (or under the cream name card) drops the shade at once (js/app.js swap, body.scrim-off); a map arriving fades it back in */
body.scrim-off #ui::before { opacity: 0 !important; transition: none !important; }
body:has(> #ui > #mbar.on) #place { opacity: 0; visibility: hidden; }

#place { position: fixed; left: calc(var(--pad) + 4.6rem + var(--safe-l)); top: calc(var(--pad) + var(--safe-t)); z-index: 6; max-width: min(46rem, 60vw); pointer-events: none; text-shadow: 0 2px 10px rgba(0, 0, 0, .45); }
.pl-k { font-size: max(12px, .76rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .72); }
.pl-t { font-size: clamp(2.6rem, 4.8vw, 5rem); margin: .35rem 0 .45rem; }
.pl-f { font-size: 1.05rem; line-height: 1.45; opacity: .9; max-width: 34rem; }
body[data-level=choose] #place, body[data-level=walk] #place, body[data-level=price] #place, body[data-level=summary] #place { display: none; }

/* the altimeter: the only persistent navigation (css/ux/chrome.css styles it as a gauge) */

/* guest chip (presenter) */
#guest { position: fixed; right: calc(var(--pad) + var(--safe-r)); top: calc(var(--pad) + var(--safe-t)); z-index: 7; display: flex; align-items: center; gap: .8rem; padding: .4rem 1.2rem .4rem .4rem; border-radius: 99px;
  background: rgba(250, 250, 252, .9); color: var(--ink); box-shadow: var(--shadow); max-width: 24rem; }
.g-av { display: grid; place-items: center; width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--ink); color: var(--gold-2); font-family: var(--sans); font-size: 1.3rem; flex: none; }
.g-txt { display: grid; text-align: left; min-width: 0; }
.g-txt b { font-size: .95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.g-txt small { font-size: max(12px, .74rem); color: var(--muted); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* the orb: actions ring + sun dial, under the right thumb */
#orb { position: fixed; right: calc(var(--pad) + 1rem + var(--safe-r)); bottom: calc(var(--pad) + 1rem + var(--safe-b)); z-index: 7; width: 5.6rem; height: 5.6rem; }
#orb .core { position: absolute; inset: 0; border-radius: 50%; display: grid; place-items: center; transition: transform .4s var(--ease); z-index: 2; }
#orb .core i { position: absolute; inset: -.45rem; border-radius: 50%; border: 1px solid rgba(250, 250, 252, .5); }
#orb.open .core { transform: scale(.88); }
@keyframes breathe { 50% { transform: scale(1.08); opacity: .3; } }
#orb .ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; pointer-events: none; z-index: 3; }
#orb .ring.open { pointer-events: auto; }
#orb .ring button { position: absolute; right: 0; top: 0; translate: 50% -50%; display: flex; align-items: center; gap: .6rem; min-height: 3.4rem; padding: 0 .55rem 0 1.15rem; border-radius: 99px; opacity: 0;
  background: rgba(250, 250, 252, .95); color: var(--ink); box-shadow: var(--shadow); white-space: nowrap; font-weight: 600; font-size: max(12px, .92rem); transform-origin: right center; }
#orb .ring button svg { width: 2.3rem; height: 2.3rem; padding: .5rem; border-radius: 50%; background: var(--paper-2); }
#orb .ring button.on { background: var(--ink); color: var(--paper); } #orb .ring button.on svg { background: var(--gold); color: var(--ink); }
#orb .dial { position: absolute; left: 50%; top: 50%; width: 15rem; height: 15rem; translate: -50% -50%; overflow: visible; pointer-events: none; opacity: 0; transition: opacity .48s; }
#orb .dial path { fill: none; stroke-width: 3; stroke-linecap: round; }
.dial-track { stroke: rgba(255, 255, 255, .25); } .dial-fill { stroke: var(--gold); }
#orb .sun { position: absolute; left: calc(50% + var(--x, -.35) * 15rem); top: calc(50% + var(--y, 0) * 15rem); width: 3.2rem; height: 3.2rem; translate: -50% -50%; border-radius: 50%; display: none; place-items: center;
  background: var(--gold); color: var(--ink); box-shadow: 0 0 0 6px rgba(255, 255, 255, .25), var(--shadow); z-index: 1; touch-action: none; }
#orb .sun::after { content: attr(data-label); position: absolute; right: 120%; white-space: nowrap; font-size: max(12px, .72rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 8px rgba(0, 0, 0, .7); }
#orb.has-sun .sun { display: grid; } #orb.has-sun .dial { opacity: 1; }
#orb.open .sun, #orb.open .dial { opacity: 0; pointer-events: none; }
#orb .sun.drag { transform: scale(1.15); }

/* context strip */
#ctx { position: fixed; left: var(--chrome-left); right: calc(var(--pad) + 9rem + var(--safe-r)); bottom: calc(var(--pad) + 1.6rem + var(--safe-b)); z-index: 6; display: flex; justify-content: center; visibility: hidden; pointer-events: none; }   /* (B1) the box spans the bottom band; only its strip takes taps (next line), so pins and the Mirai badge beside the chips stay tappable */
#ctx .strip { pointer-events: auto; }

/* moment bar (presenter): small, top centre */
#mbar { position: fixed; left: 50%; top: calc(var(--pad) + var(--safe-t) + .4rem); translate: -50% 0; z-index: 11; display: none; align-items: center; gap: .6rem; padding: .35rem .4rem .35rem 1.1rem; border-radius: 99px;
  background: rgba(20, 17, 26, .72); color: #fff; font-size: max(12px, .85rem); font-weight: 600; max-width: min(48vw, calc(100vw - var(--pad) * 2 - 24rem)); }
#mbar.on { display: flex; }
#mbar small { color: var(--gold-2); margin-right: .3rem; } #mbar em { font-style: normal; opacity: .6; font-weight: 600; }
.mb-t { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mb-p { width: 5rem; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .2); overflow: hidden; flex: none; } .mb-p i { display: block; height: 100%; background: var(--gold); transition: width .64s; }
#mbar button { width: var(--tap); height: var(--tap); border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .12); flex: none; }
#mbar button svg { width: 1rem; height: 1rem; }

/* =====================================================================
   Map engine & markers
   ===================================================================== */
.mapview { position: absolute; inset: 0; overflow: hidden; perspective: 1800px; touch-action: none; --haze: #1b1722; background: var(--haze); }
/* (19 October) the 3D camera's horizon haze (js/mapview.js): the far ground fades into the sky's colour as the camera tilts; it sits over the picture, under routes and pins.
   --haze follows the time of day (js/levels.js setTime), and the map's own background matches it, so ground the canvas does not reach is haze too */
/* (20 October) z-index 2, before the worlds in the DOM (js/mapview.js): over the readability scrim (.edge, 1) and the film (css/ux/map.css .mapview::after, 1),
   so a tilted map's far edge dissolves into the light mist itself (preview_v2's soft frame), not a darkened one; the routes, pins and clouds (.world, 2, later) stay above it */
.mapview .haze { z-index: 2; }
.haze { position: absolute; left: 0; right: 0; top: 0; height: 60%; pointer-events: none; opacity: 0;
  background: linear-gradient(to bottom, var(--haze) 0%, color-mix(in srgb, var(--haze) 78%, transparent) 14%, color-mix(in srgb, var(--haze) 36%, transparent) 36%, color-mix(in srgb, var(--haze) 10%, transparent) 62%, transparent 100%); }
.world { position: absolute; left: 0; top: 0; width: 2000px; height: 2000px; transform-origin: 0 0; will-change: transform; }   /* flat: the camera never tilts, so no 3D context and no layer per pin */
.layers, .layer { position: absolute; } .layers { left: 0; top: 0; width: 2000px; height: 2000px; }
.layer img { position: absolute; inset: 0; width: 100%; height: 100%; }
.layer-hood { opacity: 0; }
.vec { position: absolute; left: 0; top: 0; width: 2000px; height: 2000px; pointer-events: none; overflow: visible; }
.vec .glow { stroke-linecap: round; }   /* a wide translucent band, no live blur */
.edge { position: absolute; inset: 0; pointer-events: none; background: radial-gradient(ellipse at 50% 50%, transparent 52%, rgba(14, 11, 20, .55) 100%); }
.bb { position: absolute; left: 0; top: 0; width: 0; height: 0; }
.world3 { transform-style: preserve-3d; pointer-events: none; }
.bb > * { position: absolute; }
.pin { display: flex; align-items: center; gap: .45rem; transform: translate(-.5rem, -50%); white-space: nowrap; pointer-events: none; }
.pin i { width: .8rem; height: .8rem; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 3px rgba(20, 17, 26, .75), 0 0 12px rgba(255, 255, 255, .6); flex: none; }
.pin span, .stn span, .lm .nm { font-size: max(12px, .76rem); font-weight: 600; padding: .3rem .6rem; border-radius: 99px; background: rgba(20, 17, 26, .84); color: #f5f5f7; box-shadow: 0 0 0 1px rgba(255, 255, 255, .25); }
#lv-map:not(.dark) .pin span, #lv-map:not(.dark) .stn span, #lv-map:not(.dark) .lm .nm { background: rgba(250, 250, 252, .94); color: var(--ink); box-shadow: 0 2px 8px rgba(0, 0, 0, .2); }
#lv-map:not(.dark) .pin i { background: var(--bronze); box-shadow: 0 0 0 3px rgba(255, 255, 255, .9), 0 2px 6px rgba(0, 0, 0, .35); }
.pin.t-villa i, .pin.t-villa_tubs i { background: #7fb07a; } .pin.t-commercial i { background: #7a9bd0; }
.poi { transform: translate(-.45rem, -50%); } .poi i { width: .7rem; height: .7rem; } .poi span { font-size: max(12px, .7rem); font-weight: 600; }
.hero { transform: translate(-50%, -100%); display: grid; place-items: center; }
.hero .card { position: relative; z-index: 2; display: block; padding: .7rem 1rem; border-radius: 1rem; background: var(--card); box-shadow: 0 .8rem 2rem -.4rem rgba(0, 0, 0, .5); }
.hero .card::after { content: ""; position: absolute; left: 50%; bottom: -.5rem; width: 1rem; height: 1rem; background: var(--card); transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hero .card img { height: 2.6rem; width: auto; }
@keyframes halo { 0% { transform: scale(.4); opacity: 0; } 30% { opacity: .9; } 100% { transform: scale(2.4); opacity: 0; } }
.tag-wrap { pointer-events: none; }
.tag-wrap .lead { position: absolute; left: 0; top: 0; height: 1.5px; background: linear-gradient(90deg, var(--gold-2), rgba(255, 255, 255, .2)); transform-origin: 0 50%; }
.tag-wrap .node { position: absolute; left: -.35rem; top: -.35rem; width: .7rem; height: .7rem; border-radius: 50%; background: var(--gold-2); box-shadow: 0 0 0 4px rgba(255, 255, 255, .25); }
.gtag { position: absolute; transform: translate(var(--tx), var(--ty)); display: flex; align-items: center; gap: .6rem; padding: .45rem .95rem .45rem .45rem; border-radius: 99px; pointer-events: auto; min-height: 3.1rem;
  background: rgba(20, 17, 26, .84); color: #f5f5f7; border: 1px solid rgba(255, 255, 255, .35); white-space: nowrap; font-weight: 600; font-size: max(12px, .9rem); transition: opacity .4s, background .4s; }
.gtag b { display: grid; place-items: center; width: 2.2rem; height: 2.2rem; border-radius: 50%; background: var(--gold); color: var(--ink); font-size: max(12px, .8rem); }
.gtag.on { background: var(--gold-2); color: var(--ink); } .gtag.on b { background: var(--ink); color: var(--gold-2); } .gtag.dim { opacity: .3; }
.lm { transform: translate(-50%, -100%); display: grid; justify-items: center; gap: .3rem; pointer-events: auto; }
.lm .nm { white-space: nowrap; }
.lm .ph { width: 3.8rem; height: 3.8rem; border-radius: 50%; overflow: hidden; border: 3px solid var(--card); box-shadow: 0 .5rem 1.2rem rgba(0, 0, 0, .4); background: var(--paper-2); transition: transform .4s var(--ease), border-color .4s; }
.lm .ph img { width: 100%; height: 100%; object-fit: cover; }
.lm.on .ph { transform: scale(1.3); border-color: var(--gold); }
.stn { display: flex; align-items: center; gap: .4rem; transform: translate(-.8rem, -50%); white-space: nowrap; }
.stn i { width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center; background: var(--c); color: #fff; font-style: normal; font-size: max(12px, .7rem); font-weight: 600; box-shadow: 0 0 0 3px rgba(255, 255, 255, .85); }
.road-tag { transform: translate(-50%, -50%); font-size: max(12px, .72rem); font-weight: 600; padding: .3rem .7rem; border-radius: .5rem; background: var(--c); color: var(--ink); white-space: nowrap; }
.ring-tag { transform: translate(-50%, -50%); font-size: max(12px, .8rem); font-weight: 600; padding: .3rem .7rem; border-radius: 99px; background: var(--gold-2); color: var(--ink); }
/* the one info card on the map */
#lv-map .info { position: absolute; right: calc(var(--pad) + 1rem); top: calc(var(--pad) + 5rem); z-index: 5; width: min(25rem, 34vw); max-height: calc(100% - var(--pad) * 2 - 13rem); overflow-y: auto; scrollbar-width: none;
  padding: 1.5rem; border-radius: var(--r); background: rgba(250, 250, 252, .96); color: var(--ink); box-shadow: var(--shadow); display: none; }
#lv-map .info.on { display: block; }
.info .im { height: 9rem; margin: -1.5rem -1.5rem 1.1rem; background: var(--paper-2) center/cover; }
.info h3 { font-size: 2rem; margin: .4rem 0 .8rem; padding-right: 2.6rem; }
.info p:not(.k) { color: var(--ink-2); line-height: 1.55; font-size: .95rem; }
.info .meta { display: flex; gap: .8rem; margin-bottom: 1rem; }
.info .meta div { flex: 1; padding: .8rem 1rem; border-radius: .9rem; background: var(--paper); }
.info .meta b { display: block; font-family: var(--sans); font-size: 2.1rem; font-weight: 400; line-height: 1; }
.info .meta span { font-size: max(12px, .7rem); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 600; }
.info .nav { display: flex; gap: .5rem; margin-top: 1.2rem; }
.lcard { flex: none; display: flex; align-items: center; gap: .8rem; min-height: 4rem; padding: .45rem 1.1rem .45rem .45rem; border-radius: 99px; background: rgba(255, 255, 255, .7); text-align: left; border: 1px solid var(--line); max-width: 20rem; transition: background .32s, color .32s; }
.lcard .ph { width: 3.1rem; height: 3.1rem; border-radius: 50%; overflow: hidden; flex: none; background: var(--paper-2); } .lcard .ph img { width: 100%; height: 100%; object-fit: cover; }
.lcard b { display: block; font-size: max(12px, .9rem); line-height: 1.2; } .lcard small { display: block; font-size: max(12px, .76rem); color: var(--muted); font-weight: 600; }
.lcard.on { background: var(--ink); color: var(--paper); } .lcard.on small { color: var(--gold-2); }

/* =====================================================================
   Site
   ===================================================================== */
#lv-site { background: #cfc6b4; }
.stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
.stage .frame { position: absolute; left: 0; top: 0; }
.stage .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.stage svg { position: absolute; inset: 0; width: 100%; height: 100%; }
#lv-site polygon[data-t] { fill: rgba(255, 255, 255, 0); stroke: none; pointer-events: none; }
.tchip { position: absolute; transform: translate(-50%, -100%); display: grid; justify-items: center; padding: .6rem 1.1rem .65rem; border-radius: 1rem; background: var(--card); color: var(--ink);
  box-shadow: 0 .7rem 1.6rem -.3rem rgba(0, 0, 0, .45); min-width: 7.4rem; transition: background .4s, color .4s; }
.tchip b { font-family: var(--sans); font-weight: 400; font-size: 1.45rem; line-height: 1.1; }
.tchip small { font-size: max(12px, .74rem); font-weight: 600; color: var(--bronze); }
.tchip em { font-style: normal; font-size: max(12px, .66rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; margin-top: .3rem; padding: .2rem .55rem; border-radius: 99px; background: var(--ink); color: var(--gold-2); }
.tchip i { position: absolute; left: 50%; bottom: -.45rem; width: .9rem; height: .9rem; background: inherit; transform: translateX(-50%) rotate(45deg); }
.tchip:active { background: var(--ink); color: var(--paper); }
.tchip.muted { min-width: 0; padding: .4rem .8rem; background: rgba(250, 250, 252, .8); } .tchip.muted b { font-family: var(--sans); font-size: max(12px, .8rem); font-weight: 600; }
.sig-col { position: absolute; z-index: 4; top: var(--chrome-top); right: calc(var(--pad) + 1.4rem + var(--safe-r)); display: flex; flex-direction: column; align-items: flex-end; gap: .7rem; max-width: min(20rem, 38vw); max-height: calc(100dvh - var(--chrome-top) - var(--pad) - 8rem - var(--safe-b)); overflow: auto; scrollbar-width: none; pointer-events: none; }
.sig { position: relative; display: grid; justify-items: center; gap: .15rem; padding: 1rem 1.5rem; border-radius: 1.2rem; text-align: center;
  background: rgba(20, 17, 26, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .35); }
.sig small { font-size: max(12px, .7rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); margin-bottom: .2rem; }
.sig b { font-family: var(--sans); font-weight: 400; font-size: 1.5rem; line-height: 1.15; }
#lv-site polygon.zone { fill: rgba(255, 255, 255, .14); stroke: #f5f5f7; stroke-width: .0018; pointer-events: auto; }
.dots { position: absolute; inset: 0; }
.adot { position: absolute; transform: translate(-50%, -50%); width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--card); color: var(--ink); font-size: max(12px, .8rem); font-weight: 600; box-shadow: 0 .3rem .8rem rgba(0, 0, 0, .35); transition: background .32s, color .32s; }
.adot.on { background: var(--ink); color: var(--gold-2); z-index: 2; }
.zlabel { position: absolute; transform: translate(-50%, -50%); display: grid; justify-items: center; padding: .9rem 1.4rem; border-radius: 1rem; background: var(--card); color: var(--ink); box-shadow: var(--shadow); font-family: var(--sans); font-size: 1.6rem; }
.zlabel small { font-family: var(--sans); font-size: max(12px, .76rem); font-weight: 600; color: var(--bronze); }

/* =====================================================================
   Tower: the lift
   ===================================================================== */
#lv-tower { background: radial-gradient(ellipse at 60% 40%, #2a2533, var(--night)); }
.tw { position: absolute; inset: 0; display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 1.6rem; padding: var(--chrome-top) calc(var(--pad) + 7.5rem + var(--safe-r)) calc(var(--pad) + 1rem + var(--safe-b)) var(--chrome-left); }
.tw-frame { position: relative; width: 100%; aspect-ratio: 3840 / 1850; max-height: 100%; border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); touch-action: none; align-self: center; }
.tw-frame img { width: 100%; height: 100%; object-fit: cover; }
.tw-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.tw-frame polygon { fill: rgba(255, 255, 255, 0); stroke: rgba(255, 255, 255, 0); stroke-width: .0015; transition: fill .28s, stroke .28s; }
.tw-frame polygon.on { fill: rgba(255, 255, 255, .5); stroke: #f5f5f7; }
.lift { display: grid; grid-template-columns: auto auto; grid-template-rows: auto 1fr; gap: 1rem 1.2rem; align-items: start; height: 100%; max-height: 70dvh; min-width: 0; overflow: hidden; }
.lift-read { grid-column: 1; text-align: right; }
.lift-read small { display: block; font-size: max(12px, .72rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.lift-read b { display: block; font-family: var(--sans); font-weight: 400; font-size: clamp(5rem, 9vw, 8rem); line-height: .95; }
.lift-read span { display: block; font-size: max(12px, .9rem); opacity: .85; max-width: 14rem; margin-left: auto; line-height: 1.4; }
.lift-scale { grid-column: 2; grid-row: 1 / 3; display: flex; flex-direction: column; gap: .2rem; overflow-y: auto; scrollbar-width: none; max-height: 100%; min-height: 0; }
.lift-scale button { width: 3.2rem; min-height: var(--tap); border-radius: .7rem; font-weight: 600; font-size: max(12px, .85rem); color: rgba(255, 255, 255, .6); flex: none; }
.lift-scale button.on { background: var(--gold); color: var(--ink); }
.lift .step { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.8rem; padding: 0 1.5rem; border-radius: 99px; background: var(--card); color: var(--ink); font-weight: 600; flex-direction: row-reverse; }

/* the balcony view */
.bview { position: absolute; inset: 0; z-index: 1; overflow: hidden; visibility: hidden; opacity: 0; background: #0f0d14; touch-action: none; }
.bv-pan { position: absolute; top: -4%; left: 0; height: 108%; aspect-ratio: 21 / 9; min-width: 118%; }
.bv-pan img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.bv-shade { position: absolute; inset: 0; pointer-events: none; background: linear-gradient(180deg, rgba(10, 8, 14, .55), transparent 28%, transparent 70%, rgba(10, 8, 14, .6)), linear-gradient(270deg, rgba(10, 8, 14, .55), transparent 30%); }
.bv-bar { position: absolute; left: var(--chrome-left); right: calc(var(--pad) + 8.5rem + var(--safe-r)); bottom: calc(var(--pad) + 1.4rem + var(--safe-b)); display: flex; gap: .6rem; flex-wrap: wrap; z-index: 2; }
.bv-bar .seg { background: rgba(250, 250, 252, .9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.bv-bar .seg button { display: inline-flex; align-items: center; gap: .4rem; }
.bv-note { position: absolute; left: var(--chrome-left); right: calc(var(--pad) + 8.5rem + var(--safe-r)); bottom: calc(var(--pad) + 5.6rem + var(--safe-b)); z-index: 2; font-size: max(12px, .74rem); font-weight: 600; color: rgba(255, 255, 255, .8); text-shadow: 0 1px 8px rgba(0, 0, 0, .7); text-align: center; }
.bv-drag { position: absolute; left: 50%; top: 50%; translate: -50% -50%; display: flex; align-items: center; gap: .8rem; font-size: max(12px, .76rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: #fff;
  text-shadow: 0 1px 10px rgba(0, 0, 0, .7); opacity: 0; pointer-events: none; }
.bv-drag svg { width: 1.2rem; height: 1.2rem; fill: none; stroke: currentColor; stroke-width: 2; }
#lv-tower.viewing .bv-drag { animation: hintfade 3.6s 1.12s var(--ease) forwards; }
@keyframes hintfade { 15%, 70% { opacity: .95; } 100% { opacity: 0; } }
#lv-tower .tw { z-index: 2; pointer-events: none; } #lv-tower .tw > * { pointer-events: auto; }
#lv-tower.viewing .lift { background: rgba(14, 11, 20, .55); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); padding: 1.2rem; border-radius: var(--r); }
#lv-tower.viewing .tw-frame { pointer-events: none; }
#lv-tower.viewing .lift { height: auto; align-self: end; max-height: 52dvh; margin-bottom: 6.5rem; } #lv-tower.viewing .lift-read span { display: none; } #lv-tower.viewing .lift-scale { max-height: 100%; }
.lift-acts { grid-column: 1; justify-self: end; align-self: end; display: grid; gap: .5rem; justify-items: end; }
.lift .vbtn { display: inline-flex; align-items: center; gap: .6rem; min-height: 3.4rem; padding: 0 1.4rem; border-radius: 99px; background: rgba(250, 250, 252, .14); color: #fff; font-weight: 600; border: 1px solid rgba(255, 255, 255, .35); }
#lv-tower.viewing .lift .vbtn { background: var(--gold); color: var(--ink); border-color: var(--gold); }

/* =====================================================================
   Home
   ===================================================================== */
#lv-home { background: var(--paper); color: var(--ink); }
.floor-v, .unit-v { position: absolute; inset: 0; }
.floor-v { display: grid; grid-template-rows: 1fr auto; gap: 1rem; padding: var(--chrome-top) calc(var(--pad) + 2rem + var(--safe-r)) calc(var(--pad) + 8rem + var(--safe-b)) var(--chrome-left); }
#lv-home::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 14rem; background: linear-gradient(180deg, #1d1922, rgba(29, 25, 34, 0)); z-index: 1; pointer-events: none; }
:root body #lv-home::before { height: 0; opacity: 0; }
.fp { min-height: 0; border-radius: var(--r); background: #fff; box-shadow: var(--shadow); padding: 1rem; z-index: 2; position: relative; }
.fp svg { width: 100%; height: 100%; }
.fp polygon { fill: color-mix(in srgb, var(--uc) 25%, transparent); stroke: var(--uc); stroke-width: 3; transition: fill .32s; }
.fp polygon.match { fill: color-mix(in srgb, var(--uc) 45%, transparent); stroke-width: 5; }
.fp polygon:active { fill: color-mix(in srgb, var(--uc) 65%, transparent); }
.fp-legend { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; z-index: 2; position: relative; }
.fp-legend button { flex: none; display: flex; align-items: center; gap: .6rem; min-height: var(--tap); padding: 0 1.1rem; border-radius: 99px; background: var(--card); border: 1px solid var(--line); font-weight: 600; font-size: max(12px, .88rem); color: var(--ink); }
.fp-legend button.match { border-color: var(--bronze); box-shadow: 0 0 0 2px rgba(98, 98, 108, .25); }
.fp-legend i { width: .9rem; height: .9rem; border-radius: 3px; background: var(--uc); } .fp-legend small { color: var(--muted); }
.unit-v { display: grid; grid-template-columns: 1.4fr 1fr; visibility: hidden; opacity: 0; z-index: 2; background: var(--paper); }
.u-plan { position: relative; background: #fff; margin: var(--chrome-top) 0 var(--pad) var(--chrome-left); border-radius: var(--r); box-shadow: var(--shadow); min-width: 0; }
.u-plan img { position: absolute; inset: 1.4rem; width: calc(100% - 2.8rem); height: calc(100% - 2.8rem); object-fit: contain; }
.u-spec { padding: var(--chrome-top) calc(var(--pad) + 2rem + var(--safe-r)) calc(var(--pad) + 8rem + var(--safe-b)) 2.4rem; overflow-y: auto; scrollbar-width: none; display: grid; align-content: start; gap: 1.2rem; min-width: 0; }
.u-spec h2 { font-size: clamp(2.4rem, 3.6vw, 3.6rem); }
.acts { display: flex; flex-wrap: wrap; gap: .5rem; }
.acts .pill.on svg { fill: currentColor; }
body[data-level=home] #place { display: none; }

/* =====================================================================
   Walk
   ===================================================================== */
#lv-walk { background: var(--paper); color: var(--ink); }
#lv-walk polygon { fill: rgba(255, 255, 255, .08); stroke: rgba(98, 98, 108, .5); stroke-width: .0015; transition: fill .48s; }
#lv-walk polygon.on { fill: rgba(255, 255, 255, .38); stroke: var(--bronze); }
  padding: 1.6rem; border-radius: var(--r); background: rgba(250, 250, 252, .96); box-shadow: var(--shadow); z-index: 3; 
/* =====================================================================
   Choose (back in the lounge)
   ===================================================================== */
#lv-choose { background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); }
.ch { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(18rem, 27%) 1fr; gap: 2rem; padding: var(--pad) calc(var(--pad) + 8.5rem + var(--safe-r)) calc(var(--pad) + 6.5rem + var(--safe-b)) var(--chrome-left); }
.hc { position: relative; display: grid; text-align: left; border-radius: var(--r); background: var(--card); box-shadow: 0 .5rem 1.6rem -.6rem rgba(30, 22, 10, .25); overflow: hidden; border: 2px solid transparent; transition: transform .32s var(--ease); }
.hc.fav { border-color: var(--bronze); }
.hc .pl { height: 10.5rem; background: #fff; display: grid; place-items: center; padding: .8rem; border-bottom: 1px solid var(--line); }
.hc .pl img { max-width: 100%; max-height: 100%; object-fit: contain; }
.hc .tx { padding: .9rem 1.1rem 1.1rem; display: grid; gap: .2rem; padding-right: 6.4rem; }
.hc .tx small { font-size: max(12px, .72rem); letter-spacing: .08em; text-transform: uppercase; font-weight: 600; color: var(--bronze); }
.hc .tx b { font-family: var(--sans); font-weight: 400; font-size: 1.45rem; line-height: 1.1; } .hc .tx span { font-size: max(12px, .82rem); color: var(--muted); font-weight: 600; }
.hc .hb { position: absolute; right: .7rem; bottom: .9rem; display: flex; gap: .35rem; }
.hc .hb button { width: 2.8rem; height: 2.8rem; border-radius: 50%; background: var(--paper); display: grid; place-items: center; }
.hc .hb button.on { background: var(--ink); color: var(--gold-2); } .hc .hb [data-hfav].on svg { fill: currentColor; }
.empty { color: var(--muted); padding: 2rem; }

/* sheet (compare / summary) */
#sheet { position: fixed; inset: 0; z-index: 30; display: none; color: var(--ink); }
#sheet.on { display: block; }
.sh-scrim { position: absolute; inset: 0; background: rgba(14, 11, 20, .5); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.sh-panel { position: absolute; inset: var(--pad); border-radius: calc(var(--r) * 1.3); background: var(--card); box-shadow: var(--shadow); overflow: auto; scrollbar-width: none; padding: 2.4rem; }
.cmp { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 1.6rem; }
.sh { display: flex; align-items: center; flex-wrap: wrap; gap: 1rem; padding: .7rem; border-radius: 1rem; background: var(--paper); min-width: 0; }
.sh img { width: 5rem; height: 5rem; object-fit: contain; background: #fff; border-radius: .6rem; flex: none; }
.sh b { display: block; font-size: 1.05rem; } .sh small { color: var(--muted); font-weight: 600; font-size: max(12px, .85rem); }
.near { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); } .near small { color: var(--muted); font-weight: 600; }

/* presenter drawer */
#drawer { position: fixed; inset: 0; z-index: 25; display: none; color: var(--ink); }
#drawer.on { display: block; z-index: 45; }
.dr-scrim { position: absolute; inset: 0; background: rgba(14, 11, 20, .45); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.dr-panel { position: absolute; right: var(--pad); top: var(--pad); bottom: var(--pad); width: min(36rem, 92vw); overflow-y: auto; scrollbar-width: none; padding: 2rem 2rem 2.4rem; border-radius: calc(var(--r) * 1.2);
  background: var(--card); box-shadow: var(--shadow); display: grid; align-content: start; gap: .8rem; }
.dr-panel h2 { font-size: 2.6rem; margin-bottom: .6rem; padding-right: 3rem; }
.dr-panel .k { margin-top: .6rem; }
.nm { display: grid; gap: .4rem; font-size: max(.72rem, 11px); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }   /* (18 October, V-08) at least 11px (9.4px on a tablet): the guest form's labels, in the welcome and the drawer */
.nm input { min-height: 3.6rem; padding: 0 1.1rem; border-radius: 1rem; border: 1px solid var(--line); background: #fff; font-size: 1.2rem; font-weight: 600; color: var(--ink); text-transform: none; letter-spacing: 0; }
.dr-go { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.moms { display: grid; gap: .35rem; }
.mom { display: flex; align-items: center; gap: .9rem; min-height: 3.4rem; padding: 0 1rem 0 .5rem; border-radius: 1rem; background: var(--paper); text-align: left; font-weight: 600; }
.mom b { display: grid; place-items: center; width: 2.4rem; height: 2.4rem; border-radius: 50%; background: var(--card); font-size: max(12px, .8rem); }
.mom span { flex: 1; } .mom.on { background: var(--ink); color: var(--paper); } .mom.on b { background: var(--gold); color: var(--ink); }

/* attract */
#attract { position: fixed; inset: 0; z-index: 40; background: var(--night); display: none; overflow: hidden; }
#attract.on { display: block; }
.at-bg { position: absolute; inset: 0; display: grid; place-items: center; }
.at-bg img { width: max(100vw, 100vh); height: max(100vw, 100vh); object-fit: cover; transform-origin: 64% 49%; will-change: transform; }
.at-shade { position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 45%, transparent 30%, rgba(12, 10, 18, .7) 100%), linear-gradient(180deg, rgba(12, 10, 18, .5), transparent 30%, transparent 55%, rgba(12, 10, 18, .85)); }
.at-copy { position: absolute; left: 0; right: 0; bottom: calc(22dvh + var(--safe-b)); display: grid; justify-items: center; gap: 1.4rem; text-align: center; }
.at-logo { height: 2rem; filter: contrast(0) brightness(2); opacity: .85; }   /* white silhouette without invert() (19 October): Samsung Internet's dark mode drops invert() from author filters, so brightness(0) invert(1) painted the logos black */
.at-mark { height: clamp(5rem, 14dvh, 9rem); width: auto; filter: contrast(0) brightness(2); }
.at-line { font-family: var(--sans); font-weight: 300; letter-spacing: -.022em; font-size: clamp(1.6rem, 3vw, 2.8rem); min-height: 1.4em; } .at-line span { display: inline-block; }
.at-touch { position: absolute; left: 0; right: 0; bottom: calc(8dvh + var(--safe-b)); display: grid; justify-items: center; gap: 1.6rem; font-size: max(12px, .74rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.at-touch i { width: 3.6rem; height: 3.6rem; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .7); animation: halo 3s var(--ease) infinite; }

#toast { position: fixed; left: calc(var(--pad) + var(--safe-l) + var(--tap) + .8rem); right: calc(var(--pad) + 8.2rem + var(--safe-r)); bottom: calc(var(--pad) + 1.6rem + var(--safe-b)); z-index: 50; padding: .9rem 1.4rem; border-radius: 99px; background: var(--ink); color: var(--paper);
  font-weight: 600; font-size: .95rem; opacity: 0; pointer-events: none; transition: opacity .4s var(--ease); box-shadow: var(--shadow); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#toast.on { opacity: 1; }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; } }

/* =====================================================================
   Sales layer: sample flags, Century, market, progress, price, summary, brochure, media
   ===================================================================== */
#caption { z-index: 36; } #letterbox i { z-index: 35; } #mbar { z-index: 37; }
.sample { display: inline-flex; align-items: center; vertical-align: middle; margin-left: .5rem; padding: .18rem .55rem; border-radius: 99px; background: #b5462f; color: #fff;
  font: 600 max(12px, .62rem)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; }
#sampleflag { position: fixed; left: 50%; top: calc(var(--pad) + var(--safe-t) + .15rem); translate: -50% 0; z-index: 12; padding: .3rem .8rem; border-radius: 99px; background: rgba(181, 70, 47, .92); color: #fff;
  font: 600 max(12px, .66rem)/1.2 var(--sans); letter-spacing: .08em; text-transform: uppercase; opacity: 0; pointer-events: none; transition: opacity .48s; }
#sampleflag.on { opacity: 1; }
#attract.on ~ #sampleflag,
#drawer.on ~ #sampleflag,
#sheet.on ~ #sampleflag,
body.clean #sampleflag { opacity: 0; }
.hid { font-style: normal; letter-spacing: .1em; opacity: .55; }
#orb .ring button.star::before { content: "★"; color: var(--bronze); font-size: max(12px, .9rem); margin-right: -.2rem; }
#orb .ring button.star.on::before { color: var(--gold); }

/* Century: project pins become tappable, status colours */
#lv-map.legacy .pin { pointer-events: auto; cursor: pointer; }
.pin.st-completed i { background: var(--gold); } .pin.st-ongoing i { background: #7fd1c7; } .pin.st-planning i { background: #b9a6e8; }
.pin.on span { background: var(--gold-2) !important; color: var(--ink) !important; }
.big-n { display: grid; grid-template-columns: auto 1fr; column-gap: .6rem; align-items: baseline; padding: .8rem 0; border-bottom: 1px solid var(--line); }
.big-n b { font-family: var(--sans); font-weight: 400; font-size: 2.8rem; line-height: 1; } .big-n em { font-style: normal; font-weight: 600; color: var(--bronze); }
.big-n span { grid-column: 1 / -1; font-weight: 600; font-size: .95rem; } .big-n small { display: block; color: var(--muted); font-weight: 600; font-size: max(12px, .8rem); margin-top: .15rem; }
/* micromarket */
.heat-tag { transform: translate(-50%, -50%); display: grid; justify-items: center; padding: .5rem .9rem; border-radius: .9rem; background: rgba(20, 17, 26, .8); color: #fff; border: 1px solid rgba(255, 255, 255, .4); white-space: nowrap; }
.heat-tag b { font-family: var(--sans); font-weight: 400; font-size: 1.3rem; } .heat-tag span { font-size: max(12px, .7rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--gold-2); }
.spark { display: grid; gap: .5rem; margin: .4rem 0 1rem; }
.spark .spk { position: relative; }
.spark svg { display: block; width: 100%; height: 4.5rem; overflow: visible; } .spark polyline { fill: none; stroke: var(--bronze); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.spark .spk-a { stroke: none; }
.spark .spk-dot { position: absolute; width: .7rem; height: .7rem; margin: -.35rem 0 0 -.35rem; border-radius: 50%; background: var(--bronze); border: 2px solid var(--card); box-shadow: 0 0 0 .25rem rgba(98, 98, 108, .22); }
.spark .spk-v { display: flex; justify-content: space-between; align-items: baseline; gap: 1rem; }
.spark b { display: block; font-family: var(--sans); font-weight: 400; font-size: 1.9rem; } .spark span { font-size: max(12px, .72rem); color: var(--muted); font-weight: 600; text-align: right; }
.mk { display: grid; grid-template-columns: 1fr 1fr; gap: .6rem; margin-bottom: 1rem; }
.mk div { padding: .8rem; border-radius: .9rem; background: var(--paper); } .mk b { display: block; font-family: var(--sans); font-weight: 400; font-size: 1.7rem; line-height: 1.1; }
.mk span { display: block; font-size: max(12px, .78rem); font-weight: 600; } .mk small { color: var(--muted); font-size: max(12px, .72rem); font-weight: 600; }
/* construction progress on the site */
.prog-r, .prog-s { display: none; }
#lv-site.prog .prog-r { display: grid; place-items: center; position: relative; width: 3.4rem; height: 3.4rem; margin: .35rem 0 .1rem; }
#lv-site.prog .prog-s { display: block; color: var(--muted); font-size: max(12px, .68rem); }
.prog-r svg { position: absolute; inset: 0; transform: rotate(-90deg); } .prog-r circle { fill: none; stroke: var(--paper-2); stroke-width: 3.4; }
.prog-r circle.v { stroke: var(--bronze); stroke-linecap: round; stroke-dasharray: 0 100; } .prog-r b { font-family: var(--sans) !important; font-size: max(12px, .8rem) !important; font-weight: 600 !important; }
.prog-strip { align-items: center; border-radius: 1.6rem; }
.ms { display: flex; gap: 0; padding: 0 .8rem 0 .4rem; flex: none; }
.ms span { position: relative; display: grid; justify-items: center; min-width: 5.2rem; font-size: max(12px, .72rem); font-weight: 600; color: var(--muted); }
.ms span::before { content: ""; position: absolute; top: .45rem; left: -50%; right: 50%; height: 2px; background: var(--paper-2); }
.ms span:first-child::before { display: none; } .ms span.done::before, .ms span.cur::before { background: var(--bronze); }
.ms i { position: relative; width: 1rem; height: 1rem; border-radius: 50%; border: 2px solid var(--bronze); background: var(--card); margin-bottom: .3rem; }
.ms .done i { background: var(--bronze); } .ms .cur i { background: var(--gold); box-shadow: 0 0 0 5px rgba(255, 255, 255, .3); } .ms .cur { color: var(--ink); }
.ms small { font-weight: 600; font-size: max(12px, .64rem); }
/* tower: slabs cast */
.tw-frame polygon.cast { fill: rgba(255, 255, 255, .38); stroke: rgba(255, 247, 230, .7); }
.tw-frame polygon.todo { fill: rgba(10, 8, 14, .38); }
.tw-frame polygon.on.cast, .tw-frame polygon.on.todo { fill: rgba(255, 255, 255, .7); }

/* Price & plan */
#lv-price, #lv-summary { background: linear-gradient(180deg, var(--paper), var(--paper-2)); color: var(--ink); }
.pr { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr) minmax(16rem, .9fr); grid-template-rows: auto minmax(0, 1fr); gap: 1.4rem 1.8rem;
  padding: calc(var(--pad) + var(--safe-t) + 4.6rem) calc(var(--pad) + 1rem + var(--safe-r)) calc(var(--pad) + 7.5rem + var(--safe-b)) var(--chrome-left); overflow: auto; align-content: start; }
.cs { list-style: none; } .cs li { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--line); }
.cs li span { font-weight: 600; font-size: max(12px, .92rem); } .cs li small { display: block; color: var(--muted); font-weight: 600; font-size: max(12px, .74rem); } .cs li b { font-weight: 600; white-space: nowrap; }
.emi-v b { font-family: var(--sans); font-weight: 400; font-size: 2.8rem; } .emi-v small { margin-left: .5rem; color: var(--muted); font-weight: 600; }
.emi label { display: grid; gap: .1rem; margin-top: .5rem; font-size: max(12px, .8rem); font-weight: 600; color: var(--muted); } .emi label span { float: right; color: var(--ink); }
.emi input[type=range] { width: 100%; height: 2.4rem; accent-color: var(--bronze); }
.fx-v { font-family: var(--sans); font-size: 2.2rem; margin-top: .6rem; } .fx-v small { display: block; font-family: var(--sans); font-size: max(12px, .74rem); color: var(--muted); font-weight: 600; }
.inv-r { display: flex; justify-content: space-between; padding: .5rem 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: max(12px, .9rem); }

#lv-summary .sh .pill { margin-left: auto; min-height: 2.8rem; } #lv-summary .sh div { flex: 1; }
.bro { margin-top: 1.4rem; min-width: 0; max-width: 100%; }
@keyframes spin { to { transform: rotate(360deg); } }
.bro-pages { display: flex; gap: .8rem; overflow-x: auto; scrollbar-width: none; padding: .4rem 0 1rem; min-width: 0; max-width: 100%; }
.bro-pages img { height: 12rem; width: auto; max-width: min(14rem, 70vw); border-radius: .5rem; box-shadow: var(--shadow); flex: none; object-fit: contain; }
.bro-acts { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; }

/* sheets: dark media variant, gallery, before/after, specs */
#sheet.dark .sh-panel { background: #0f0d14; color: #fff; padding: 0; overflow: hidden; }
#sheet.dark .x { background: rgba(250, 250, 252, .92); color: var(--ink); }
.gal { position: absolute; inset: 0; }
.gal-stage { position: absolute; inset: 0; touch-action: pan-y; } .gal-stage img, .gal-stage video { width: 100%; height: 100%; object-fit: cover; }
.gal-cap { position: absolute; left: 2.4rem; bottom: 2.2rem; max-width: 40rem; padding: 1.3rem 1.6rem; border-radius: var(--r); background: rgba(14, 11, 20, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.gal-cap h3 { font-size: 2.2rem; margin: .3rem 0; } .gal-cap .sub { color: rgba(255, 255, 255, .8); } .gal-cap .k { color: var(--gold-2); }
.gal-dots { position: absolute; right: 2.4rem; bottom: 2.6rem; display: flex; gap: .5rem; }
.gal-dots button { width: 2.6rem; height: 2.6rem; border-radius: 50%; background: rgba(255, 255, 255, .25); } .gal-dots button.on { background: var(--gold); }
.ba { position: absolute; inset: 0; display: grid; grid-template-rows: 1fr auto; }
.ba-stage { position: relative; overflow: hidden; touch-action: none; cursor: ew-resize; }
.ba-stage img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; } .ba-a { position: absolute; inset: 0; }
.ba-h { position: absolute; top: 0; bottom: 0; width: 0; } .ba-h i { position: absolute; top: 0; bottom: 0; left: -1px; width: 2px; background: #fff; box-shadow: 0 0 20px rgba(0, 0, 0, .5); }
.ba-h span { position: absolute; top: 50%; left: 0; translate: -50% -50%; display: flex; align-items: center; gap: .2rem; padding: .7rem; border-radius: 99px; background: #fff; color: var(--ink); box-shadow: var(--shadow); }
.ba-h svg { width: 1.1rem; height: 1.1rem; fill: none; stroke: currentColor; stroke-width: 2; }
.ba-l { position: absolute; top: 1.6rem; padding: .5rem 1rem; border-radius: 99px; background: rgba(14, 11, 20, .7); font-size: max(12px, .78rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.ba-l.l { left: 1.6rem; } .ba-l.r { right: 5.4rem; }
.ba .note { padding: .8rem 1.6rem; color: rgba(255, 255, 255, .7); margin: 0; }
.specs h2 { font-size: clamp(2.4rem, 3.6vw, 3.6rem); margin: .4rem 0 1.4rem; }
.sp-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr)); gap: 1rem; }
.sp { padding: 1.2rem; border-radius: var(--r); background: var(--paper); } .sp h4 { font-family: var(--sans); font-weight: 400; font-size: 1.5rem; margin-bottom: .7rem; }

/* drawer additions */
.dr-panel .two { display: grid; grid-template-columns: 1.4fr 1fr; gap: .7rem; }
.vlog { display: grid; gap: .4rem; } .vl { padding: .7rem .9rem; border-radius: .9rem; background: var(--paper); } .vl b { display: block; } .vl small { color: var(--muted); font-weight: 600; font-size: max(12px, .78rem); }
#lv-map.legacy.many .pin:not(.on) span { display: none; }
#lv-map.legacy .pin.dim { opacity: .25; }

/* playback: lift guest + orb above the letterbox; the bar only uses the 8dvh offset while letterboxed */
body.cine #guest { top: calc(8dvh + .5rem + var(--safe-t)); z-index: 39; }
body.cine #orb { bottom: calc(8dvh + .6rem + var(--safe-b)); z-index: 39; }
body.cine #mbar { z-index: 39; }   /* (23 October) its place is inside the top band now: css/ux/close2.css */

/* short landscape: compact vertical chrome, price in one column, cards stay where they are */
@media (orientation: landscape) and (max-height: 800px) {
  :root { --chrome-top: calc(var(--pad) + 5.5rem); }
  body.cine #guest { top: calc(8dvh + 5.8rem + var(--safe-t)); }
  .pr { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; overflow: auto; align-content: start; padding-bottom: calc(var(--pad) + 8.5rem + var(--safe-b)); }
  }

/* portrait: stack the split screens and bottom-sheet the map card and the walk cue */
@media (orientation: portrait) {
  :root { --chrome-top: calc(var(--pad) + var(--safe-t) + 5.2rem); }
  #mbar { max-width: min(92vw, calc(100vw - var(--pad) * 2)); }
  body.cine #guest { top: calc(8dvh + 5.8rem + var(--safe-t)); }
  #ctx { bottom: calc(var(--pad) + var(--safe-b) + 8.2rem); z-index: 8; }
  .tw { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 46dvh) minmax(0, 1fr); padding-right: calc(var(--pad) + var(--safe-r)); padding-bottom: calc(var(--pad) + 7rem + var(--safe-b)); }
  .tw-frame { max-height: 46dvh; min-width: 0; }
  .lift { max-height: 100%; height: 100%; grid-template-columns: minmax(0, 1fr) auto; }
  #lv-tower.viewing .tw { display: block; }
  #lv-tower.viewing .tw-frame { position: absolute; width: 0; height: 0; max-height: 0; overflow: hidden; margin: 0; visibility: hidden; }
  #lv-tower.viewing .lift { position: absolute; left: var(--chrome-left); right: calc(var(--pad) + 8.2rem + var(--safe-r)); bottom: calc(var(--pad) + 7.2rem + var(--safe-b)); top: auto; width: auto; height: auto; max-height: 40dvh; margin: 0; }
  .unit-v { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(12rem, 42dvh) minmax(0, 1fr); padding-top: var(--chrome-top); }
  .u-plan { margin: 0 var(--pad) 0 var(--chrome-left); min-height: 0; }
  .u-spec { padding: 1.2rem calc(var(--pad) + var(--safe-r)) calc(var(--pad) + 8rem + var(--safe-b)) var(--chrome-left); }
  .ch { grid-template-columns: minmax(0, 1fr); padding-top: var(--chrome-top); }
    .cmp { grid-template-columns: minmax(0, 1fr); }
  #lv-map .info { width: auto; left: var(--chrome-left); right: calc(var(--pad) + var(--safe-r)); top: auto; bottom: calc(var(--pad) + var(--safe-b)); max-height: 42dvh; padding-bottom: 7rem; }
    .bv-bar { bottom: calc(var(--pad) + 1rem + var(--safe-b)); }
  .bv-note { bottom: calc(var(--pad) + 6.4rem + var(--safe-b)); text-align: left; }
  .dr-panel .two { grid-template-columns: 1fr; }
  .pr { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; grid-auto-flow: row; overflow: auto; align-content: start; padding-bottom: calc(var(--pad) + 8.5rem + var(--safe-b)); }
  }
@media (orientation: portrait) and (max-width: 700px) {
  :root { --chrome-left: calc(var(--pad) + var(--safe-l) + var(--tap) + .8rem); }
  #guest .g-txt { display: none; }
  #guest { padding-right: .4rem; }
  #place { max-width: calc(100vw - var(--chrome-left) - var(--pad) - 4.5rem); }
  #place .pl-t { font-size: var(--t-place-fs); }
  .ch { padding-right: calc(var(--pad) + 7.2rem + var(--safe-r)); }
    }

/* =====================================================================
   v2.2 · Back, tally, full-screen tower, zoomable plans, map atmosphere
   ===================================================================== */
#back { position: fixed; left: var(--pad); top: var(--pad); z-index: 8; display: inline-flex; align-items: center; gap: .55rem; height: 3.4rem; padding: 0 1.2rem 0 .9rem; border-radius: 99px;
  background: rgba(20, 17, 26, .55); color: #fff; border: 1px solid rgba(255, 255, 255, .18);
  font-weight: 600; font-size: max(12px, .88rem); transition: opacity .4s, transform .32s var(--ease); }
#back svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
#back.off { opacity: 0; pointer-events: none; }
#place { top: calc(var(--pad) + 4.6rem); left: calc(var(--pad) + 4.6rem); }
#tally { position: fixed; top: var(--pad); right: calc(var(--pad) + 17rem); z-index: 7; display: flex; gap: .5rem; }
#tally button { display: inline-flex; align-items: center; gap: .5rem; height: 3.4rem; padding: 0 1.1rem 0 1rem; border-radius: 99px; background: rgba(250, 250, 252, .9); color: var(--ink);
 box-shadow: var(--shadow); font-weight: 600; font-size: max(12px, .85rem); transition: transform .24s var(--ease); }

/* tower: the elevation fills the screen; controls float on a soft glass edge */
#lv-tower .tw { display: block; padding: 0; }
.tw-stage { position: absolute; inset: 0; overflow: hidden; touch-action: none; }
#lv-tower .tw-frame { position: absolute; width: auto; aspect-ratio: auto; max-height: none; border-radius: 0; box-shadow: none; }
.tw-stage::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(270deg, rgba(12, 10, 16, .78) 0%, rgba(12, 10, 16, .35) 26%, transparent 46%), linear-gradient(180deg, rgba(12, 10, 16, .55), transparent 26%); }
#lv-tower .lift { position: absolute; right: calc(var(--pad) + .5rem); top: calc(var(--pad) + 5.4rem); bottom: calc(var(--pad) + 8.4rem); height: auto; max-height: none; z-index: 2;
  grid-template-rows: auto 1fr; align-content: start; }
#lv-tower .lift-scale { max-height: none; }
#lv-tower .lift-scale button { color: rgba(255, 255, 255, .78); }
#lv-tower .lift-scale button.on { color: var(--ink); }
#lv-tower .lift-acts { grid-column: 1; grid-row: 2; align-self: end; }
#lv-tower .lift .vbtn { background: rgba(20, 17, 26, .45); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
#lv-tower .lift .step { box-shadow: var(--shadow); }
#lv-tower.viewing .lift { top: calc(var(--pad) + 5.4rem); bottom: auto; }

/* plans: bigger, zoomable, with on-screen zoom buttons for the presenter */
#lv-home .floor-v { padding: calc(var(--pad) + 4.8rem) calc(var(--pad) + 1rem) calc(var(--pad) + 6.6rem) calc(var(--pad) + 4.8rem); gap: .8rem; }
#lv-home::before { height: 9rem; }
.fp { overflow: hidden; padding: 0; position: relative; }
.fp-z, .u-z { position: absolute; inset: 0; will-change: transform; }
.fp-z svg { width: 100%; height: 100%; padding: 1.2rem; }
.u-plan { overflow: hidden; }
.u-z img { position: absolute; inset: 1.2rem; width: calc(100% - 2.4rem); height: calc(100% - 2.4rem); object-fit: contain; }
.zbtns { position: absolute; right: 1rem; top: 1rem; z-index: 2; display: grid; gap: .4rem; }
.zbtns button { width: 3rem; height: 3rem; border-radius: 50%; background: rgba(250, 250, 252, .95); color: var(--ink); box-shadow: 0 .3rem 1rem -.3rem rgba(0, 0, 0, .3); font-size: 1.4rem; font-weight: 600; display: grid; place-items: center; border: 1px solid var(--line); }
.zbtns svg { width: 1.1rem; height: 1.1rem; }
.zhint { position: absolute; left: 1.2rem; bottom: 1rem; z-index: 2; font-size: max(12px, .74rem); font-weight: 600; color: var(--muted); pointer-events: none; transition: opacity .4s; }
.fp[data-zoomed] .zhint { opacity: 0; }
#lv-home .u-plan { margin: calc(var(--pad) + 4.8rem) 0 calc(var(--pad) + 1rem) calc(var(--pad) + 4.8rem); }
#lv-home .u-spec { padding-top: calc(var(--pad) + 4.8rem); }

/* the high map: blurred edges and slow clouds that clear as you descend.
   The blur only reaches the corners, at about half strength (15 October: it used to start a little past the middle and cover the corners fully) */
.map-veil { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 72%, rgba(0, 0, 0, .55) 100%); mask-image: radial-gradient(ellipse 72% 68% at 50% 50%, transparent 72%, rgba(0, 0, 0, .55) 100%); }
.map-clouds { position: absolute; inset: 0; z-index: 1; pointer-events: none; overflow: hidden; }
.map-clouds img { position: absolute; left: 0; top: 0; opacity: .55; will-change: transform; }
#lv-map.dark .map-clouds img { mix-blend-mode: screen; opacity: .28; }
#lv-map .info { z-index: 5; }
/* compare table */
.cmp2 { display: grid; gap: 0; }
.cmp2 .cr { display: grid; grid-template-columns: minmax(10rem, 14rem) repeat(var(--n), minmax(0, 1fr)); gap: 1.6rem; align-items: center; padding: .7rem 0; border-bottom: 1px solid var(--line); }
.cmp2 .cr.head { align-items: start; border: 0; padding-bottom: 1rem; }
.cmp2 .cr.head h2 { font-size: 2.8rem; margin: .3rem 0; }
.cmp2 .cl { font-weight: 600; font-size: max(12px, .86rem); color: var(--ink-2); }
.cmp2 .cv { font-size: 1rem; font-weight: 600; } .cmp2 .cv b { font-family: var(--sans); font-weight: 400; font-size: 1.7rem; } .cmp2 .cv b.best { color: var(--bronze); }
.cmp2 .cr.price .cv b { font-size: 1.9rem; color: var(--ink); }
.cmp2 .na { color: var(--muted); font-style: normal; }
.cmp2 .ch { display: grid; gap: .4rem; }
.cmp2 .cp { position: relative; height: 30vh; border-radius: var(--r); background: #fff; border: 1px solid var(--line); overflow: hidden; }
.cmp2 .cp img { position: absolute; inset: 1rem; width: calc(100% - 2rem); height: calc(100% - 2rem); object-fit: contain; }
.cmp2 .ch h3 { font-size: 1.9rem; }
.cmp2 .ca { display: flex; gap: .4rem; flex-wrap: wrap; }
.cmp2 .cr.foot { border: 0; padding-top: 1rem; }
.cmp-acts { display: flex; justify-content: flex-end; padding-top: 1rem; }

/* =====================================================================
   v2.2 polish: calmer type, room to breathe, no collisions
   ===================================================================== */
.pl-t { font-size: var(--t-place-fs); }   /* (17 October, Phase 5) about 30px on the tablet (it was 41.7-46px: a story's name filled the top left) */
.pl-f { font-size: 1rem; max-width: 30rem; }
#place { max-width: min(38rem, 52vw); }
body.ring-open #lv-map .info { opacity: .18; transition: opacity .32s; pointer-events: none; }
#lv-map .info { transition: opacity .32s; padding: 1.7rem; width: min(27rem, 34vw); }
#lv-map .info h3 { font-size: 2.1rem; margin: .5rem 0 1rem; }
#lv-map .info .k { margin-top: 1rem; } #lv-map .info .k:first-of-type { margin-top: 0; }
#lv-map .info .pts { gap: .45rem; margin-top: .4rem; } #lv-map .info .pts li { font-size: max(12px, .92rem); }
#lv-map .info .meta { margin: .4rem 0 1.2rem; }
.strip { gap: .6rem; padding: .55rem; }
.strip .pill { min-height: 3.5rem; }
.strip-note { align-self: center; padding: 0 1rem 0 .4rem; font-size: max(12px, .8rem); font-weight: 600; color: var(--muted); white-space: nowrap; }
/* subtle sample tags: honest, but they read as part of a finished product */
.sample { background: transparent; color: var(--bronze); border: 1px solid rgba(98, 98, 108, .55); font-size: max(12px, .58rem); padding: .14rem .5rem; }
.dark .sample, #sheet.dark .sample { color: var(--gold-2); border-color: rgba(255, 255, 255, .45); }
/* compare header (renamed from .ch, which is the Choose layout) */
.cmp2 .cmh { display: grid; gap: .4rem; }
.cmp2 .cmh h3 { font-size: 1.9rem; }
/* choose cards: plan images contained, never spilling over the text */
.hc .pl { position: relative; height: 11rem; padding: 0; display: block; }
.hc .pl img { position: absolute; inset: .8rem; width: calc(100% - 1.6rem); height: calc(100% - 1.6rem); max-width: none; max-height: none; object-fit: contain; }
.hc .tx b { font-size: 1.35rem; }
/* price: a little more air, nothing clipped */
.pr { gap: 1.2rem 1.4rem; }
.quote { margin: 1rem 0 0; padding: 1rem 1.1rem; border-radius: 1rem; background: var(--paper); }
.quote p { font-family: var(--sans); font-size: 1.15rem; line-height: 1.4; color: var(--ink) !important; }
.quote cite { display: block; margin-top: .6rem; font-style: normal; font-size: max(12px, .78rem); color: var(--muted); } .quote cite b { display: block; color: var(--ink); font-size: max(12px, .85rem); }
@media (max-width: 1500px) {
  .pr { grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); grid-template-rows: auto auto auto; overflow-y: auto; padding-bottom: calc(var(--pad) + 7rem); }
        }

/* =====================================================================
   v2.3 · review fixes
   ===================================================================== */
.fail { position: fixed; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.2rem; text-align: center; background: var(--paper); color: var(--ink); padding: 2rem; }
.fail img { height: 4rem; } .fail h1 { font-size: 3rem; } .fail p { max-width: 30rem; color: var(--muted); line-height: 1.5; }
.fail button { min-height: 3.6rem; padding: 0 2rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-weight: 600; }
/* drawer: the start button never scrolls away; inputs fit their column */
.dr-panel { padding-bottom: 0; }
.dr-panel .dr-go { position: sticky; bottom: 0; z-index: 2; margin: .6rem -2rem 0; padding: 1rem 2rem 1.4rem; background: linear-gradient(180deg, rgba(250, 250, 252, 0), var(--card) 28%); }
.dr-panel .two > * { min-width: 0; } .nm input { width: 100%; min-width: 0; }
.dr-panel > :last-child { margin-bottom: 1.6rem; }
/* the action fan never sits on top of card text */
body.ring-open #lv-map .info { opacity: 0; transform: translateX(16px); }
/* captions move to the top while a sheet (before/after, gallery) is open, clear of watermarks and plans */
body:has(> #sheet.on) #caption { top: calc(8vh + 4.4rem); bottom: auto; right: auto; max-width: 46rem; padding: 1.2rem 1.6rem; border-radius: 1.2rem; background: rgba(20, 17, 26, .8); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
body:has(> #sheet.on) .cap-t { font-size: clamp(2rem, 3.4vw, 3.4rem); }
/* (16 October: the "#lv-site:has(.plan-f[style*=…]) ~ #caption" half is gone: a :has() on a style attribute made every inline style write anywhere
   (each map pin, every frame) restyle the whole page, about 2,000 elements a frame in flights. The level rule below covers the same case.) */
body[data-level=site] #caption { max-width: 44rem; }
body.cine[data-level=site] #caption { padding: 1.2rem 1.6rem; border-radius: 1.2rem; background: rgba(20, 17, 26, .72); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
#toast.top { top: var(--pad); bottom: auto; }
/* altimeter: labels show briefly after a move (and while touched), so they never sit on titles */
/* sideways rows fade at the edge that has more */
.strip.more-r, .fp-legend.more-r { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 4rem), transparent); }
.strip.more-l.more-r, .fp-legend.more-l.more-r { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); mask-image: linear-gradient(90deg, transparent, #000 4rem, #000 calc(100% - 4rem), transparent); }
.strip.more-l:not(.more-r), .fp-legend.more-l:not(.more-r) { -webkit-mask-image: linear-gradient(90deg, transparent, #000 4rem); mask-image: linear-gradient(90deg, transparent, #000 4rem); }
/* sample tags: subtle but legible */
.sample { background: rgba(98, 98, 108, .1); color: #62626c; border-color: rgba(98, 98, 108, .6); font-size: max(12px, .6rem); }
/* choose cards: actions sit on the plan, the text has the full width */
.hc .hb { top: .7rem; right: .7rem; bottom: auto; }
.hc .hb button { background: rgba(250, 250, 252, .95); box-shadow: 0 .2rem .6rem rgba(0, 0, 0, .12); }
.hc .tx { padding-right: 1.1rem; }
/* tower: the lift rail shrinks to fit any height */
#lv-tower .lift-scale { display: flex; flex-direction: column; justify-content: space-between; gap: .1rem; min-height: 0; }
#lv-tower .lift-scale button { flex: 1 1 0; min-height: 1.7rem; max-height: 2.6rem; }
/* site progress title: one calm line */
body[data-level=site] .pl-t { font-size: var(--t-place-fs); }
/* ---------- 1024 × 768 and other small tablets ---------- */
@media (max-width: 1180px), (max-height: 800px) {
  html { font-size: clamp(13px, calc(1vmin + .3vw), 22px); }
  .ch { grid-template-columns: minmax(15rem, 30%) 1fr; gap: 1.2rem; padding-bottom: calc(var(--pad) + 6.4rem); }
              #lv-summary .sh { flex-wrap: wrap; } #lv-summary .sh div { min-width: 10rem; } #lv-summary .sh .pill { margin-left: 0; }
    .pr { padding-right: calc(var(--pad) + 7.5rem); }
    #lv-map .info { width: min(24rem, 40vw); }
  .dr-panel { width: min(34rem, 94vw); }
}
@media (max-width: 1100px) {
  .pr { grid-template-columns: 1fr; }   }
/* v2.3b */
body.ring-open #lv-map .info { opacity: 0 !important; visibility: hidden; }
@media (max-width: 1100px) {
  .pr { display: block; overflow-y: auto; }
  .pr > * { margin-bottom: 1.2rem; }
    }

.pr { overflow-y: auto; grid-template-rows: auto auto; }
.cs li { padding: .5rem 0; }
.pr > section { height: max-content; max-height: none; align-self: start; }
/* v2.3c · round-2 minors */
@media (max-width: 1500px) { .pr { padding-right: calc(var(--pad) + 7.5rem); } }
#lv-map .info { max-height: calc(100dvh - var(--pad) * 2 - 17rem - var(--safe-b)); }   /* hugs its content; scrolls only when it would run into the dial (E2E M9: the dial's own margin is reserved too, it ran 15px into the Dusk and Night buttons) */
/* round-3 minors */
.pr { padding-right: calc(var(--pad) + 7.5rem); }
#lv-map .info.ux-scroll { -webkit-mask-image: linear-gradient(180deg, #000 calc(100% - 1.8rem), transparent); mask-image: linear-gradient(180deg, #000 calc(100% - 1.8rem), transparent); padding-bottom: 2.4rem; }   /* the fade only when the card really scrolls (js/ux/map.js) */

.mv-w { position: absolute; left: 0; top: 0; width: 2000px; height: 2000px; transform-origin: 0 0; }
.mv-w img { position: absolute; inset: 0; width: 100%; height: 100%; }
/* no live backdrop blur over the map: it forces the GPU to re-read the whole 3D map every frame (blank tiles on big screens) */
.strip { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(250, 250, 252, .96); }
/* legacy strip: one dark highlight that glides between the status chips */
.legacy-strip { position: relative; }
.legacy-strip .seg-glow { position: absolute; left: 0; top: 0; border-radius: 99px; background: var(--ink); opacity: 0; pointer-events: none; z-index: 0; box-shadow: 0 .4rem 1rem -.3rem rgba(0, 0, 0, .35); }
.legacy-strip .pill { position: relative; z-index: 1; transition: color .4s var(--ease), background .4s var(--ease), border-color .4s; }
.legacy-strip .pill.on { background: transparent; color: var(--paper); border-color: transparent; }
.legacy-strip .pill.on b { background: var(--gold); color: var(--ink); transition: background .4s, color .4s; }
.pin { transition: none; }
/* world-space clouds (10 November, heron: Blender renders, js/levels.js buildClouds). Their opacity follows a target frame by frame while it moves, and is not written at rest (js/levels.js cloudFrame); no CSS transition: it made the browser recalculate styles every frame */
.wcloud, .wshadow { position: absolute; left: 0; top: 0; pointer-events: none; transform-origin: 0 0; opacity: 0; }
body:is([data-level="century"], [data-level="city"], [data-level="market"]) .wcloud, body:is([data-level="century"], [data-level="city"], [data-level="market"]) .wshadow { will-change: transform, opacity; }   /* promoted only where the clouds are seen */
.wcloud { isolation: isolate; filter: var(--cf, none); }   /* --cf: the mood (js/levels.js cloudMood): none by day, rose at dusk, blue and dim at night */
.wcloud img, .wshadow img { display: block; width: 100%; height: auto; user-select: none; -webkit-user-drag: none; pointer-events: none; }
.wcloud img.b { position: absolute; left: 0; top: 0; }   /* the same cloud a little later, cross-fading over the first */
#clouds.intro { mix-blend-mode: normal; z-index: 12; }
#clouds.intro img { position: absolute; width: 70vw; max-width: 1100px; opacity: 1; }
#clouds.intro canvas { position: absolute; width: 70vw; max-width: 1100px; height: auto; opacity: 1; will-change: transform, opacity; }   /* levels.js cloudIntro: one small texture a cloud, scaled on the GPU */

/* =====================================================================
   v2.4 · premium site labels and a cleaner lift panel
   ===================================================================== */
/* tower labels: dark glass plaques on a slim stem with a glowing anchor on the roof */
.tchip { transform: translate(-50%, calc(-100% - 2.4rem)); min-width: 0; padding: .7rem 1.2rem .75rem; gap: .15rem; border-radius: .9rem;
  background: rgba(18, 15, 22, .72); color: #fff; backdrop-filter: none; -webkit-backdrop-filter: none;   /* (17 October) flat: its blur also showed through the dive into the Tower, where data-level turns to tower first */
  border: 1px solid rgba(255, 255, 255, .32); box-shadow: 0 1rem 2.4rem -1rem rgba(0, 0, 0, .7); transition: transform .4s var(--ease), background .4s, border-color .4s; }
.tchip b { font-family: var(--sans); font-weight: 400; font-size: 1.55rem; letter-spacing: .01em; line-height: 1.05; }
.tchip small { display: inline-flex; align-items: center; gap: .4rem; color: var(--gold-2); font-size: max(12px, .7rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; }
.tchip small::before { content: ""; width: .4rem; height: .4rem; border-radius: 50%; background: #7fd1a0; box-shadow: 0 0 0 3px rgba(127, 209, 160, .2); }
.tchip em { order: -1; margin: 0 0 .35rem; background: var(--gold); color: var(--ink); font-size: max(12px, .58rem); letter-spacing: .18em; padding: .22rem .6rem; }
.tchip i { left: 50%; bottom: auto; top: 100%; width: 1px; height: 2.4rem; transform: translateX(-50%); background: linear-gradient(180deg, rgba(255, 255, 255, .8), rgba(255, 255, 255, .2)); }
.tchip i::after { content: ""; position: absolute; left: 50%; bottom: -.35rem; width: .7rem; height: .7rem; margin-left: -.35rem; border-radius: 50%; background: var(--gold-2);
  box-shadow: 0 0 0 4px rgba(255, 255, 255, .25), 0 0 14px rgba(255, 255, 255, .8); }
.tchip:active, .tchip.on { background: rgba(255, 255, 255, .92); color: var(--ink); border-color: var(--gold-2); }
.tchip:active small, .tchip.on small { color: var(--ink); }
.tchip.muted { transform: translate(-50%, calc(-100% - 1rem)); padding: .35rem .75rem; border-radius: 99px; background: rgba(18, 15, 22, .45); border-color: rgba(255, 255, 255, .18); box-shadow: none; }
.tchip.muted b { font-family: var(--sans); font-size: max(12px, .66rem); font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(255, 255, 255, .85); }
.tchip.muted i { height: 1rem; background: rgba(255, 255, 255, .35); } .tchip.muted i::after { width: .45rem; height: .45rem; margin-left: -.225rem; bottom: -.22rem; background: rgba(255, 255, 255, .8); box-shadow: none; }
#lv-site.prog .prog-r { margin: .4rem auto .1rem; } #lv-site.prog .prog-r circle { stroke: rgba(255, 255, 255, .18); } #lv-site.prog .prog-r circle.v { stroke: var(--gold); }
#lv-site.prog .prog-s { color: rgba(255, 255, 255, .7); }

/* tower: one aligned glass panel — readout and actions in a column, the floor rail beside it */
#lv-tower .lift { right: calc(var(--pad) + .4rem); top: calc(var(--pad) + 5.2rem); bottom: calc(var(--pad) + 7.6rem); width: 22rem;
  display: grid; grid-template-columns: 1fr 3rem; grid-template-rows: auto 1fr auto; gap: 0 1rem; padding: 1.6rem 1rem 1.4rem 1.6rem;
  border-radius: 1.4rem; background: rgba(14, 11, 18, .5); backdrop-filter: blur(18px) saturate(1.2); -webkit-backdrop-filter: blur(18px) saturate(1.2);
  border: 1px solid rgba(255, 255, 255, .1); box-shadow: 0 1.4rem 3rem -1.2rem rgba(0, 0, 0, .6); }
#lv-tower .lift-read { grid-column: 1; grid-row: 1; text-align: left; }
#lv-tower .lift-read b { font-size: clamp(4.4rem, 7vw, 6.4rem); margin: .2rem 0 .4rem; }
#lv-tower .lift-read span { margin: 0; max-width: none; font-size: max(12px, .86rem); line-height: 1.5; color: rgba(255, 255, 255, .78); }
#lv-tower .lift-scale { grid-column: 2; grid-row: 1 / 4; align-self: stretch; padding-left: .2rem; border-left: 1px solid rgba(255, 255, 255, .12); }
#lv-tower .lift-scale button { width: 2.6rem; margin-left: auto; border-radius: .6rem; }
#lv-tower .lift-acts { grid-column: 1; grid-row: 3; align-self: end; justify-self: stretch; display: grid; gap: .6rem; justify-items: stretch; }
#lv-tower .lift .vbtn, #lv-tower .lift .step { width: 100%; justify-content: center; min-height: 3.5rem; padding: 0 1.2rem; font-size: max(12px, .92rem); }
#lv-tower .lift .vbtn { background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .25); }
#lv-tower .lift .step { flex-direction: row; box-shadow: none; }
#lv-tower.viewing .lift { bottom: calc(var(--pad) + 7.6rem); top: calc(var(--pad) + 5.2rem); max-height: none; margin: 0; padding: 1.6rem 1rem 1.4rem 1.6rem; }
#lv-tower.viewing .lift-read span { display: block; }
.tw-stage::after { background: linear-gradient(270deg, rgba(12, 10, 16, .5) 0%, transparent 34%), linear-gradient(180deg, rgba(12, 10, 16, .5), transparent 24%); }
@media (max-width: 1180px), (max-height: 800px) { #lv-tower .lift { width: 18rem; padding: 1.2rem .8rem 1.1rem 1.2rem; } #lv-tower .lift-read b { font-size: 4rem; } }
.tchip small.prog-s { display: none; } .tchip small.prog-s::before { display: none; }
#lv-site.prog .tchip small.prog-s { display: block; color: rgba(255, 255, 255, .7); letter-spacing: .08em; }
#lv-tower .lift, #lv-tower.viewing .lift { bottom: auto; max-height: calc(100% - var(--pad) * 2 - 12.8rem); }
#lv-tower .lift-scale button { max-height: 2.35rem; min-height: 1.6rem; }
#lv-tower .lift .vbtn, #lv-tower .lift .step { white-space: nowrap; }
#lv-tower .lift-acts { margin-top: 1.4rem; }
@media (max-width: 1180px), (max-height: 800px) { #lv-tower .lift { width: 19.5rem; } #lv-tower .lift .vbtn, #lv-tower .lift .step { font-size: max(12px, .82rem); padding: 0 .8rem; } }

/* tower lift v3: no panel. Floating, transparent column over the right-edge gradient.
   One right edge: FLOOR / number / summary / both buttons are right-aligned to it; the floor rail sits in its own column to the right. */
.tw-stage::after { background: linear-gradient(270deg, rgba(12, 10, 16, .66) 0%, rgba(12, 10, 16, .34) 22%, transparent 44%), linear-gradient(180deg, rgba(12, 10, 16, .5), transparent 24%); }
#lv-tower .lift, #lv-tower.viewing .lift {
  position: absolute; left: auto; right: calc(var(--pad) + var(--safe-r, 0px) + .4rem); top: calc(var(--pad) + 5.6rem); bottom: calc(var(--pad) + 8.6rem);
  width: 19rem; height: auto; max-height: none; margin: 0; padding: 0; overflow: visible; align-self: stretch; justify-self: end;
  display: grid; grid-template-columns: minmax(0, 1fr) 3.2rem; grid-template-rows: auto minmax(0, 1fr) auto; gap: 0 1.5rem; align-items: stretch;
  background: none; border: 0; border-radius: 0; box-shadow: none; backdrop-filter: none; -webkit-backdrop-filter: none; }
#lv-tower .lift-read { grid-column: 1; grid-row: 1; text-align: right; }
#lv-tower .lift-read small { text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
#lv-tower .lift-read b { font-size: clamp(4.4rem, 7.4vw, 6.6rem); line-height: .95; margin: .25rem 0 .5rem; text-shadow: 0 2px 10px rgba(0, 0, 0, .4); }
#lv-tower .lift-read span, #lv-tower.viewing .lift-read span { display: block; margin: 0 0 0 auto; max-width: 15rem; font-size: max(12px, .88rem); line-height: 1.45; color: rgba(255, 255, 255, .85); text-wrap: balance; text-shadow: 0 1px 12px rgba(0, 0, 0, .5); }
#lv-tower .lift-scale { grid-column: 2; grid-row: 1 / 4; align-self: stretch; display: flex; flex-direction: column; justify-content: space-between; gap: .1rem; padding: 0; border: 0; max-height: none; min-height: 0; overflow: visible; }
#lv-tower .lift-scale button { width: 3.2rem; margin: 0; flex: 1 1 0; min-height: 1.5rem; max-height: 2.5rem; border-radius: .7rem; }
#lv-tower .lift-acts { grid-column: 1; grid-row: 3; align-self: end; justify-self: stretch; display: grid; grid-template-columns: 1fr; gap: .7rem; margin: 0; padding-top: 1.2rem; }
#lv-tower .lift .vbtn, #lv-tower .lift .step { box-sizing: border-box; width: 100%; min-height: 3.4rem; padding: 0 1.1rem; justify-content: center; flex-direction: row; gap: .6rem; font-size: max(12px, .9rem); white-space: nowrap; box-shadow: none; }
#lv-tower .lift .vbtn { background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .34); backdrop-filter: none; -webkit-backdrop-filter: none; }
#lv-tower.viewing .lift .vbtn { background: var(--gold); color: var(--ink); border-color: var(--gold); }
@media (max-width: 1180px), (max-height: 800px) { #lv-tower .lift, #lv-tower.viewing .lift { width: 17rem; bottom: calc(var(--pad) + 7.8rem); gap: 0 1.1rem; }
  #lv-tower .lift-read b { font-size: 4rem; } #lv-tower .lift .vbtn, #lv-tower .lift .step { font-size: max(12px, .84rem); padding: 0 .8rem; } }
body:is([data-level=summary], [data-level=price], [data-level=choose]) #toast { top: var(--pad); bottom: auto; }
/* map imagery is drawn on a canvas (no giant image layers) */
.map-canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
canvas.map-veil { width: 100%; height: 100%; }
/* journey list: persona priorities carry a small gold star */
.mom .star { display: grid; place-items: center; width: 1.6rem; height: 1.6rem; color: var(--gold); }
.mom .star svg { width: 1.05rem; height: 1.05rem; fill: currentColor; stroke: none; }
.mom.pri b { box-shadow: inset 0 0 0 1.5px var(--gold); }
/* legacy strip as one calm segmented control: chips are flat text on the strip, only the gliding highlight has a fill */
.legacy-strip { align-items: center; padding: .5rem 1.4rem .5rem .5rem; }
.legacy-strip .pill { background: transparent; border-color: transparent; box-shadow: none; }
.legacy-strip .pill:not(.on):hover { background: rgba(26, 22, 30, .05); }
.legacy-strip .pill b { background: rgba(26, 22, 30, .08); }
.legacy-strip .strip-note { padding-left: 1rem; border-left: 1px solid rgba(26, 22, 30, .12); margin-left: .3rem; }
/* =====================================================================
   Chapters: the stories of each map level, on screen under the place title
   ===================================================================== */
#chap { position: fixed; left: calc(var(--pad) + 4.6rem + var(--safe-l)); top: 14rem; z-index: 6; width: 16.5rem; display: none;
  padding: .9rem .7rem .7rem; border-radius: 1.4rem; background: rgba(250, 250, 252, .95); color: var(--ink); border: 1px solid rgba(255, 255, 255, .6);
  box-shadow: 0 1.2rem 2.6rem -1.2rem rgba(10, 8, 14, .55); transition: opacity .4s var(--ease), visibility .4s; }
#chap.on { display: block; }
#chap .chap-h { display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding: 0 .3rem .55rem .5rem; }
#chap .chap-h .k { font-size: max(12px, .66rem); letter-spacing: .2em; color: var(--bronze); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chap .chap-play { display: inline-flex; align-items: center; gap: .35rem; height: 2.3rem; padding: 0 .85rem 0 .7rem; border-radius: 99px; background: var(--ink); color: var(--paper); font-size: max(12px, .74rem); font-weight: 600; letter-spacing: .04em; flex: none; }
#chap .chap-play svg { width: .85rem; height: .85rem; fill: currentColor; stroke: none; }
#chap ol { list-style: none; margin: 0; padding: 0; display: grid; gap: .15rem; }
#chap ol button { position: relative; display: flex; align-items: center; gap: .75rem; width: 100%; min-height: 3.2rem; padding: 0 .8rem 0 .5rem; border-radius: .9rem; text-align: left;
  font-size: max(12px, .92rem); font-weight: 600; color: var(--ink); transition: background .28s var(--ease), color .28s var(--ease); }
#chap ol button b { font-family: var(--sans); font-weight: 400; font-size: 1.05rem; color: var(--bronze); width: 1.9rem; flex: none; text-align: center; transition: color .28s; }
#chap ol button:active { background: rgba(26, 22, 30, .06); }
#chap ol button.on { background: var(--ink); color: var(--paper); }
#chap ol button.on b { color: var(--gold-2); }
#chap .chap-next { display: flex; align-items: center; justify-content: space-between; gap: .6rem; width: 100%; min-height: 3.3rem; margin-top: .55rem; padding: 0 1rem 0 1.05rem;
  border-radius: 1rem; background: linear-gradient(120deg, rgba(255, 255, 255, .28), rgba(255, 255, 255, .12)); border: 1px solid rgba(98, 98, 108, .4); font-size: max(12px, .92rem); font-weight: 600; color: var(--ink); }
#chap .chap-next svg { width: 1.15rem; height: 1.15rem; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
body.cine #chap, body.ring-open #chap { opacity: 0; visibility: hidden; }
/* with chapters on screen the place title stays short */
body:is([data-level=century], [data-level=city], [data-level=market], [data-level=area]) #place .pl-f { max-width: 24rem; }
@media (max-height: 820px) {
  #chap { width: 16rem; padding: .6rem .5rem .5rem; }
  #chap .chap-next { font-size: max(12px, .84rem); white-space: nowrap; }
  #chap ol button { min-height: 2.75rem; font-size: max(12px, .84rem); }
  #chap .chap-next { min-height: 2.9rem; margin-top: .4rem; }
  body:is([data-level=century], [data-level=city], [data-level=market], [data-level=area]) #place .pl-f { display: none; }
}
/* place categories: chips nearest-first (dot = category colour), a legend for "Everything nearby" */
.poi-strip { align-items: center; }
.poi-strip .pchip { display: inline-flex; align-items: center; gap: .55rem; min-height: 3.2rem; padding: 0 1rem 0 .85rem; border-radius: 99px; background: rgba(26, 22, 30, .05); white-space: nowrap; flex: none; transition: background .28s var(--ease), color .28s; }
.poi-strip .pchip i, .poi-strip .pkey i { width: .75rem; height: .75rem; border-radius: 50%; flex: none; box-shadow: 0 0 0 2px #fff; }
.poi-strip .pchip span { font-size: max(12px, .86rem); font-weight: 600; color: var(--ink); }
.poi-strip .pchip small { font-size: max(12px, .74rem); font-weight: 600; color: var(--muted); }
.poi-strip .pchip.on { background: var(--ink); } .poi-strip .pchip.on span { color: var(--paper); } .poi-strip .pchip.on small { color: var(--gold-2); }
.poi-strip .pkey { display: inline-flex; align-items: center; gap: .5rem; min-height: 2.8rem; padding: 0 .9rem; font-size: max(12px, .84rem); font-weight: 600; color: var(--ink); white-space: nowrap; flex: none; }
.poi-strip .pkey b { font-weight: 600; color: var(--bronze); }
/* the chosen place grows and lifts so it reads on any map tone */
.pin.poi.on { z-index: 3; } .pin.poi.on i { width: 1.05rem; height: 1.05rem; box-shadow: 0 0 0 3px #fff, 0 0 0 7px rgba(201, 163, 92, .45), 0 4px 10px rgba(0, 0, 0, .4); }
.pin.poi.on span { font-size: max(12px, .84rem); background: var(--ink) !important; color: var(--paper) !important; }
/* long chapter lists scroll inside the card instead of running off the screen */
#chap { max-height: calc(100dvh - var(--chap-top, 14rem) - 1.2rem); overflow-y: auto; scrollbar-width: none; overscroll-behavior: contain; }
#chap::-webkit-scrollbar { display: none; }
/* with chapters on screen, the bottom strip starts to the right of them and the chapter card stops above it */
body.has-chap:not(.cine) #ctx { left: calc(var(--chap-right, 22rem) + 1rem); }
body.has-chap #chap { max-height: calc(100dvh - var(--chap-top, 14rem) - 1.2rem); }
body:is([data-level=century], [data-level=city], [data-level=market], [data-level=area]) #place .pl-f { max-width: 30rem; }
.ring-tag { font-size: max(12px, .9rem); padding: .35rem .85rem; box-shadow: 0 0 0 3px rgba(20, 17, 26, .45), 0 4px 12px rgba(0, 0, 0, .35); }
/* the step to the next level stays in view at the foot of a long chapter list */
#chap .chap-next { position: sticky; bottom: 0; z-index: 1; box-shadow: 0 -.9rem 1rem -.2rem rgba(250, 250, 252, .95); background-color: #f4ead8; }
.ring-tag { white-space: nowrap; }
#chap .chap-next { box-shadow: none; }
#chap.long ol { gap: 0; } #chap.long ol button { min-height: 2.9rem; }
@media (max-height: 820px) { #chap.long ol button { min-height: 2.7rem; } }
/* idle "clean" mode hides the chrome, but on map levels the title and chapter card stay so the next tap is always in view */
body.clean #ui > #place { opacity: 1; visibility: visible; }
body.cine #ui > #chap.on, body.ring-open #ui > #chap.on { opacity: 0; visibility: hidden; }
body.clean:is(.has-chap, [data-level=tower]):not(.cine) #ui::before { opacity: 1; }   /* the Tower keeps its title shade too, so a tap that wakes the interface no longer darkens the corner (17 October) */
