/* ─────────────────────────────────────────────────────────────
   SOMEDAY — maximalist vision board
   Ink frame · three colour-blocked horizons · polaroids with price tags · a paper receipt
   Deliberately one look (no dark/light switch): every surface paints its own colours.
   ───────────────────────────────────────────────────────────── */
:root {
  --ink: #170F1F;
  --ink-2: #2A1F35;
  --ink-soft: #4A3D57;
  --paper: #FFFBF4;
  --paper-2: #F4ECDD;
  --tangerine: #FF5B1F;
  --pink: #FF2E88;
  --cobalt: #2437FF;
  --lime: #CDF63C;
  --sun: #FFD43B;
  --mint: #35E0B0;
  --good: #14B86A;
  --ok: #F2A516;
  --bad: #F2384A;

  --f-display: 'Anton', 'Impact', 'Haettenschweiler', 'Arial Narrow Bold', sans-serif;
  --f-serif: 'Instrument Serif', 'Iowan Old Style', 'Times New Roman', serif;
  --f-ui: 'Bricolage Grotesque', 'Avenir Next', 'Segoe UI', system-ui, sans-serif;
  --f-mono: 'DM Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --gutter: clamp(16px, 3.2vw, 44px);
  --top-h: 64px;
  --receipt-w: 392px;
  --ease-pop: cubic-bezier(.2, .9, .25, 1.25);
  --shadow-lift: 0 2px 0 rgba(0, 0, 0, .07), 0 22px 40px -22px rgba(23, 15, 31, .65);
  --dots: radial-gradient(rgba(23, 15, 31, .13) 1.1px, transparent 1.6px);
  --dots-light: radial-gradient(rgba(255, 251, 244, .14) 1.1px, transparent 1.6px);
}

*, *::before, *::after { box-sizing: border-box; }
html { background: var(--ink); -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top-h) + 12px); }
body {
  margin: 0; background: var(--ink); color: var(--paper);
  font: 400 16px/1.5 var(--f-ui); -webkit-font-smoothing: antialiased;
  min-height: 100svh; overflow-x: hidden;
}
img { max-width: 100%; display: block; }
button, input, select { font: inherit; color: inherit; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--lime); color: var(--ink); padding: 8px 12px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ─────────── buttons ─────────── */
.btn {
  --bg: var(--paper); --fg: var(--ink);
  appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  background: var(--bg); color: var(--fg); font: 700 16px/1 var(--f-ui); letter-spacing: .01em;
  padding: 14px 20px; border-radius: 999px; text-decoration: none; white-space: nowrap;
  box-shadow: 0 3px 0 rgba(23, 15, 31, .9); transition: transform .15s var(--ease-pop), box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 5px 0 rgba(23, 15, 31, .9); }
.btn:active { transform: translateY(1px); box-shadow: 0 1px 0 rgba(23, 15, 31, .9); }
.btn-lime { --bg: var(--lime); }
.btn-pink { --bg: var(--pink); --fg: var(--paper); }
.btn-ink { --bg: var(--ink); --fg: var(--paper); box-shadow: 0 3px 0 rgba(0, 0, 0, .35); }
.btn-ghost { --bg: transparent; --fg: var(--paper); box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost:hover { box-shadow: inset 0 0 0 2px currentColor; }
.btn-ghost.on-light { --fg: var(--ink); }
.btn-lg { font-size: 19px; padding: 18px 26px; }
.btn-sm { font-size: 14px; padding: 10px 14px; }
.btn[disabled] { opacity: .45; cursor: not-allowed; transform: none; }
.linkish { appearance: none; background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ─────────── top bar ─────────── */
.topbar {
  position: sticky; top: 0; z-index: 40; height: calc(var(--top-h) + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) var(--gutter) 0;
  display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; /* the logo, the steps centred (no booking button since 30 Sep 2026) */
  background: rgba(23, 15, 31, .92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(255, 251, 244, .08);
}
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--paper); text-decoration: none; }
/* the Sunline: a half sun on a horizon, a faint reflection (logo A, 25 Sep 2026) */
.logo-mark { width: 30px; height: 30px; flex: none; overflow: visible; }
.logo-mark .sun { fill: var(--lime); }
.logo-mark .horizon { fill: none; stroke: var(--lime); stroke-width: 4; stroke-linecap: round; }
.logo-mark .refl { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; opacity: .5; }
.logo-word { font: 300 14px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; padding-left: .1em; white-space: nowrap; }
.steps { display: flex; justify-content: center; gap: 6px; }
.steps a {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  color: rgba(255, 251, 244, .55); text-decoration: none; font-weight: 600; font-size: 14px; white-space: nowrap;
}
.steps a b { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; font-size: 12px; background: rgba(255, 251, 244, .12); }
.steps a[aria-current='step'] { color: var(--ink); background: var(--lime); }
.steps a[aria-current='step'] b { background: var(--ink); color: var(--lime); }
.steps a.done { color: var(--paper); }
.steps a.done b { background: var(--pink); color: var(--paper); }
.steps a[aria-disabled='true'] { pointer-events: none; opacity: .45; }
body[data-view='start'] .steps { visibility: hidden; }

/* ─────────── views ─────────── */
.view { display: none; }
body[data-view='start'] .view-start,
body[data-view='dream'] .view-dream,
body[data-view='price'] .view-price,
body[data-view='check'] .view-check,
body[data-view='share'] .view-share,
body[data-view='travel'] .view-travel,
body[data-view='guest'] .view-guest { display: block; }
body[data-view='guest'] .steps { visibility: hidden; }

/* ─────────── START ─────────── */
.view-start { position: relative; overflow: hidden; background: var(--ink); }
.view-start::before { content: ''; position: absolute; inset: 0; background-image: var(--dots-light); background-size: 14px 14px; opacity: .6; }
.marquee { position: relative; z-index: 2; background: var(--lime); color: var(--ink); overflow: hidden; border-block: 2px solid var(--ink); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track span { font: 400 20px/1 var(--f-display); text-transform: uppercase; padding: 11px 18px; white-space: nowrap; letter-spacing: .02em; }
.marquee-track span b { font-weight: 400; color: var(--pink); margin-left: .45em; }
.marquee-track span::after { content: '✦'; margin-left: 36px; color: var(--cobalt); }
@keyframes marquee { to { transform: translateX(-50%); } }

.start-collage { position: absolute; inset: 44px 0 0; z-index: 1; pointer-events: none; }
.start-collage .pc { position: absolute; top: var(--y); width: clamp(120px, 12vw, 200px); margin: 0; padding: 8px 8px 30px; background: var(--paper); box-shadow: var(--shadow-lift); transform: rotate(var(--r)); animation: float 7s ease-in-out infinite alternate; animation-delay: var(--d); }
.start-collage .pc-l { left: calc(max(0px, (100vw - 1180px) / 2 - 12vw) + var(--k) * 3vw - 1.5vw); }
.start-collage .pc-r { right: calc(max(0px, (100vw - 1180px) / 2 - 12vw) + var(--k) * 3vw - 1.5vw); }
.start-collage .pc img { aspect-ratio: 4 / 5; object-fit: cover; width: 100%; }
.start-collage .pc .ph { aspect-ratio: 4 / 5; }
.start-collage .pc em { position: absolute; left: 10px; right: 10px; bottom: 7px; font: 400 14px/1 var(--f-display); text-transform: uppercase; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.start-collage .pc .tag { top: -10px; right: -14px; font-size: 16px; }
@keyframes float { to { transform: rotate(calc(var(--r) * -1)) translateY(-8px); } }

.start-inner { position: relative; z-index: 3; max-width: 900px; margin: 0 auto; padding: clamp(40px, 7vw, 96px) var(--gutter) 56px; text-align: center; }
.hero-title { font: 400 clamp(58px, 11vw, 168px)/.86 var(--f-display); text-transform: uppercase; margin: 0; letter-spacing: -.005em; text-wrap: balance; text-shadow: 0 6px 0 rgba(0, 0, 0, .25); }
.hero-title em { display: block; font: italic 400 1.2em/.9 var(--f-serif); text-transform: none; color: var(--pink); letter-spacing: -.03em; margin: .02em 0 .04em; text-shadow: none; }
.hero-sub { font-size: clamp(17px, 1.7vw, 21px); max-width: 34em; margin: 22px auto 34px; color: rgba(255, 251, 244, .86); text-wrap: balance; text-shadow: 0 2px 12px var(--ink), 0 0 2px var(--ink); }

.madlib {
  background: var(--paper); color: var(--ink); text-align: left; max-width: 760px; margin: 0 auto;
  padding: clamp(20px, 3vw, 34px) clamp(20px, 3.4vw, 40px); transform: rotate(-.8deg);
  box-shadow: 10px 10px 0 var(--pink), var(--shadow-lift);
}
.madlib p { margin: 0; font: 500 clamp(21px, 2.5vw, 30px)/1.75 var(--f-ui); }
.madlib input {
  border: 0; border-bottom: 3px solid var(--pink); background: rgba(255, 46, 136, .07); color: var(--ink);
  font: 700 1em/1.2 var(--f-ui); text-align: center; padding: 0 4px; margin: 0 2px; border-radius: 4px 4px 0 0; min-width: 2.4ch;
  -moz-appearance: textfield;
}
.madlib input::-webkit-outer-spin-button, .madlib input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.madlib input:focus { outline: none; background: rgba(205, 246, 60, .45); border-color: var(--ink); }
#in-name { width: 8.6ch; }
#in-age { width: 2.4ch; }
#in-salary, #in-psalary { width: 4.6ch; }
.money-in { white-space: nowrap; font-weight: 700; }
.seg { display: inline-flex; border: 2px solid var(--ink); border-radius: 999px; padding: 2px; vertical-align: middle; background: var(--paper); }
.seg button { appearance: none; border: 0; background: transparent; border-radius: 999px; padding: 2px 12px; font: 700 .72em/1.5 var(--f-ui); cursor: pointer; color: var(--ink); }
.seg button[aria-checked='true'] { background: var(--ink); color: var(--lime); }
.madlib-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 20px; }
.madlib-foot small { color: var(--ink-soft); font-size: 13px; line-height: 1.45; }
.how { list-style: none; counter-reset: how; padding: 0; margin: 56px auto 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; text-align: left; max-width: 1180px; }
@media (max-width: 1000px) { .how { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.how li { counter-increment: how; background: var(--ink-2); border: 1px solid rgba(255, 251, 244, .12); padding: 18px 18px 18px 64px; position: relative; font-size: 15px; color: rgba(255, 251, 244, .82); }
.how li::before { content: counter(how); position: absolute; left: 16px; top: 14px; font: 400 36px/1 var(--f-display); color: var(--lime); }
.how b { color: var(--paper); display: block; font-size: 17px; }

.welcome-back { position: relative; z-index: 3; margin: 14px 0 0; font-size: 15px; color: rgba(255, 251, 244, .85); }
.welcome-back a, .welcome-back .linkish { color: var(--lime); font-weight: 600; }
.welcome-back .linkish + .linkish { margin-left: 14px; }
.madlib-foot .linkish { color: var(--ink-soft); font-size: 14px; }

/* ─────────── DREAM: catalogue ─────────── */
.dream { display: grid; grid-template-columns: minmax(0, 1fr) var(--receipt-w); align-items: start; }
.catalogue { min-width: 0; }
.sec { --tone: var(--tangerine); --on: var(--ink); position: relative; background: var(--tone); color: var(--on); padding: clamp(40px, 5vw, 64px) var(--gutter) clamp(56px, 6vw, 84px); overflow: hidden; }
.sec::before { content: ''; position: absolute; inset: 0; background-image: var(--dots); background-size: 12px 12px; pointer-events: none; }
.sec[data-tone='pink'] { --tone: var(--pink); }
.sec[data-tone='cobalt'] { --tone: var(--cobalt); --on: var(--paper); }
.sec[data-tone='cobalt']::before { background-image: var(--dots-light); }
.sec-head { position: relative; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 8px 24px; }
.sec-head h2 { font: 400 clamp(46px, 7.4vw, 118px)/.84 var(--f-display); text-transform: uppercase; margin: 0; letter-spacing: -.005em; }
.sec-head p { margin: 0 0 .3em; font: italic 400 clamp(22px, 2.4vw, 34px)/1 var(--f-serif); }
.sec-sign { display: grid; gap: 2px; text-align: right; justify-items: end; }
.sec-sign-k, .sec-sign-v { font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; opacity: .7; }
.sec-ghost { font: 400 clamp(40px, 5vw, 72px)/1 var(--f-display); color: var(--on); pointer-events: none; user-select: none; }
/* Dream it: the phase HUD (2 Oct 2026). Sticky under the top bar over the board's column; its own 60 px at the top, so no
   section starts under it, and on Dream it the page's scroll-padding clears it. Only the pill takes pointer and paint. Every look
   flips ink/paper the same way (ink light, paper dark), so these defaults read in all three; each look tunes it at the end. */
/* --hud-top: under the top bar where it sticks; Cinema and Long Exposure let their bar scroll away, so 0 there */
:root { --hud-h: 60px; --hud-top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); }
.phase-hud { position: sticky; top: var(--hud-top); z-index: 30; height: var(--hud-h); display: flex; align-items: center; justify-content: center; padding: 0 10px; pointer-events: none; }
.phase-hud-in { pointer-events: auto; display: flex; gap: 2px; padding: 3px; max-width: 100%; border-radius: 999px; background: color-mix(in srgb, var(--paper) 90%, transparent); border: 1px solid color-mix(in srgb, var(--ink) 20%, transparent); box-shadow: 0 12px 30px -14px rgba(0, 0, 0, .7); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.phase { appearance: none; border: 0; margin: 0; background: transparent; color: var(--ink); min-height: 44px; min-width: 44px; padding: 5px 14px; border-radius: 999px; display: grid; place-content: center; justify-items: center; gap: 2px; font: 600 13px/1.1 var(--f-ui); white-space: nowrap; cursor: pointer; transition: background-color .2s, color .2s; }
.phase b { font: inherit; }
.phase small { font: 500 10px/1.1 var(--f-ui); letter-spacing: .02em; opacity: .8; }
.phase:hover { background: color-mix(in srgb, var(--ink) 12%, transparent); }
.phase[aria-current] { background: var(--ink); color: var(--paper); }
.phase:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* a jump (the HUD, or Tab onto a tile) stops 12 px under the HUD: the page's own scroll-padding, counted once — a section
   margin on top of it landed the section below hudSync's line and the tapped phase unlit itself */
html:has(> body[data-view='dream']) { scroll-padding-top: calc(var(--hud-top) + var(--hud-h) + 12px); }
.sec-head h2[tabindex='-1']:focus { outline: none; } /* the HUD hands focus here so the next Tab is in that section */
@media (max-width: 560px) {
  .phase { padding: 5px 11px; }
  .phase small { display: none; }
  .phase:not([aria-current]) .phase-term { display: none; } /* "Short · Mid term · Long · Hobbies": the lit one in full */
}
@media (prefers-reduced-motion: reduce) { .phase { transition: none; } }
.hint { position: relative; display: inline-block; margin: 18px 0 0; font: 600 14px/1.3 var(--f-ui); background: var(--ink); color: var(--paper); padding: 8px 14px; border-radius: 999px; transform: rotate(-1deg); }
.hint b { color: var(--lime); }

.grid { position: relative; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(196px, 44%), 1fr)); gap: 34px 26px; margin-top: 34px; }
.tile-wrap { position: relative; min-width: 0; }
.tile {
  appearance: none; border: 0; cursor: pointer; text-align: left; position: relative; display: block; width: 100%;
  background: var(--paper); color: var(--ink); padding: 9px 9px 14px; transform: rotate(var(--tilt));
  box-shadow: var(--shadow-lift); transition: transform .35s var(--ease-pop), box-shadow .3s;
}
.tile:hover { transform: rotate(0deg) translateY(-6px) scale(1.025); z-index: 2; box-shadow: 0 30px 50px -24px rgba(23, 15, 31, .8); }
.tile:focus-visible { outline: 4px solid var(--ink); outline-offset: 5px; }
.sec[data-tone='cobalt'] .tile:focus-visible { outline-color: var(--lime); }
.ph { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; background: linear-gradient(135deg, var(--ink-2), var(--ink-soft)); }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.ph .ph-fallback { position: absolute; inset: 0; display: grid; place-items: center; padding: 12px; text-align: center; font: 400 26px/1 var(--f-display); text-transform: uppercase; color: rgba(255, 251, 244, .5); }
.tile .ph img { filter: grayscale(1) contrast(1.05) brightness(1.18); transition: filter .6s ease, transform .9s ease; }
.tile .ph .tint { position: absolute; inset: 0; background: var(--tone); mix-blend-mode: multiply; opacity: .8; transition: opacity .6s ease; }
.tile:hover .ph img { transform: scale(1.05); }
.tile[aria-pressed='true'] .ph img { filter: saturate(1.15) contrast(1.04); }
.tile[aria-pressed='true'] .ph .tint { opacity: 0; }
.tile-name { display: block; margin-top: 11px; font: 400 23px/1 var(--f-display); text-transform: uppercase; letter-spacing: .005em; }
.tile-line { display: block; margin-top: 5px; font: italic 400 17px/1.15 var(--f-serif); color: var(--ink-soft); min-height: 2.3em; }
.tile-meta { display: flex; justify-content: space-between; align-items: center; gap: 6px; margin-top: 8px; font: 500 12px/1.2 var(--f-mono); text-transform: uppercase; color: var(--ink-soft); }
.tile-meta .when { background: var(--ink); color: var(--lime); padding: 3px 7px; border-radius: 3px; }
.tile-plus { position: absolute; left: 50%; top: calc(9px + (100% - 23px) * .38); translate: -50% -50%; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: var(--paper); color: var(--ink); font: 400 38px/1 var(--f-display); box-shadow: 0 6px 0 rgba(23, 15, 31, .85); transition: transform .3s var(--ease-pop), opacity .3s; }
.tile:hover .tile-plus { transform: scale(1.12) rotate(90deg); }
.tile[aria-pressed='true'] .tile-plus { opacity: 0; transform: scale(.4); }
.tape { position: absolute; top: -13px; left: 50%; width: 96px; height: 26px; translate: -50% 0; rotate: -4deg; background: rgba(255, 251, 244, .62); box-shadow: 0 1px 2px rgba(0, 0, 0, .12); opacity: 0; transition: opacity .3s; backdrop-filter: blur(1px); clip-path: polygon(3% 0, 97% 4%, 100% 50%, 97% 96%, 3% 100%, 0 50%); }
.tile[aria-pressed='true'] .tape { opacity: 1; }
.tile-wrap .x { position: absolute; z-index: 3; top: 18px; left: 18px; width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--paper); background: var(--ink); color: var(--paper); font: 700 15px/1 var(--f-ui); display: grid; place-items: center; opacity: 0; transition: opacity .2s; cursor: pointer; }
.tile-wrap:hover .x, .tile-wrap:focus-within .x, .tile-wrap .x:focus-visible { opacity: 1; }
@media (hover: none) { .tile-wrap .x { opacity: 1; } }

/* The price tag: a swing tag with a punched hole. */
.tag {
  position: absolute; top: -12px; right: -14px; z-index: 2; display: inline-block;
  background: var(--sun); color: var(--ink); font: 400 19px/1 var(--f-display); letter-spacing: .01em;
  padding: 8px 12px 8px 22px; rotate: 7deg; filter: drop-shadow(0 3px 0 rgba(23, 15, 31, .85));
  clip-path: polygon(14px 0, 100% 0, 100% 100%, 14px 100%, 0 50%);
}
.tag::before { content: ''; position: absolute; left: 9px; top: 50%; width: 7px; height: 7px; margin-top: -3.5px; border-radius: 50%; background: var(--ink); }
.tag small { display: block; font: 500 10px/1.1 var(--f-mono); text-transform: uppercase; opacity: .7; margin-bottom: 2px; }
.tile[aria-pressed='true'] .tag { background: var(--lime); }
.tile.pop { animation: pop .55s var(--ease-pop); }
@keyframes pop { 0% { transform: rotate(var(--tilt)) scale(.94); } 55% { transform: rotate(calc(var(--tilt) * -1.5)) scale(1.07); } 100% { transform: rotate(var(--tilt)) scale(1); } }

.tile-custom { display: grid; place-items: center; min-height: 100%; background: transparent; border: 3px dashed color-mix(in srgb, var(--on) 55%, transparent); box-shadow: none; color: var(--on); padding: 24px 14px; text-align: center; }
.tile-custom:hover { background: color-mix(in srgb, var(--on) 8%, transparent); box-shadow: none; }
.tile-custom .big { font: 400 64px/1 var(--f-display); display: block; }
.tile-custom .tile-name { margin-top: 6px; }
.tile-custom .tile-line { color: inherit; opacity: .8; min-height: 0; }

/* ─────────── DREAM: receipt ─────────── */
.receipt-col { position: sticky; top: calc(var(--top-h) + env(safe-area-inset-top, 0px)); align-self: stretch; background: var(--ink); background-image: var(--dots-light); background-size: 14px 14px; min-height: calc(100svh - var(--top-h)); }
.rbar { display: none; }
.receipt {
  --zz: 9px;
  position: sticky; top: calc(var(--top-h) + 18px); margin: 18px 18px 18px; background: var(--paper); color: var(--ink);
  font: 400 13px/1.45 var(--f-mono); padding: 26px 22px 30px; max-height: calc(100svh - var(--top-h) - 36px); overflow: auto; overscroll-behavior: contain;
  -webkit-mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x;
  mask: conic-gradient(from 135deg at top, #0000, #000 1deg 89deg, #0000 90deg) top / calc(var(--zz) * 2) 51% repeat-x, conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) bottom / calc(var(--zz) * 2) 51% repeat-x;
  scrollbar-width: thin;
}
.r-head { text-align: center; text-transform: uppercase; letter-spacing: .08em; }
.r-brand { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font: 300 12px/1 var(--f-ui); letter-spacing: .3em; text-transform: uppercase; }
.r-brand .logo-mark { width: 26px; height: 26px; }
.r-brand .logo-mark .sun { fill: var(--pink); } .r-brand .logo-mark .horizon { stroke: var(--pink); }
.r-meta { font-size: 11px; color: var(--ink-soft); margin-top: 6px; }
.r-rule { border: 0; border-top: 1.5px dashed rgba(23, 15, 31, .45); margin: 12px 0; }
.r-rule.double { border-top: 4px double rgba(23, 15, 31, .8); }
.r-group { font-size: 11px; font-weight: 500; letter-spacing: .1em; text-transform: uppercase; margin: 12px 0 4px; display: flex; justify-content: space-between; }
.r-group span:last-child { color: var(--ink-soft); }
.r-line { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 8px; padding: 2px 0; align-items: baseline; text-transform: uppercase; font-size: 12.5px; }
.r-line .n { overflow-wrap: anywhere; }
.r-line .n small { display: block; text-transform: none; color: var(--ink-soft); font-size: 11px; }
.r-line .a { font-variant-numeric: tabular-nums; text-align: right; }
.r-line.cpf { color: #0B7A48; font-size: 11.5px; }
.r-line.fresh { animation: print .7s ease-out; }
@keyframes print { from { background: rgba(205, 246, 60, .9); clip-path: inset(0 0 100% 0); } 40% { clip-path: inset(0 0 0 0); } to { background: transparent; } }
.r-empty { text-align: center; padding: 18px 0; color: var(--ink-soft); font-size: 12px; }
.r-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; text-transform: uppercase; }
.r-total .big { font: 400 38px/1 var(--f-display); letter-spacing: .01em; font-variant-numeric: tabular-nums; }
.r-small { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--ink-soft); text-transform: uppercase; }
.r-fund { background: var(--ink); color: var(--paper); margin: 14px -22px 0; padding: 14px 22px 16px; }
.r-fund h3 { margin: 0 0 8px; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--lime); }
.r-fund .row { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.r-fund .row + .row { margin-top: 6px; }
.r-fund .lbl { font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; }
.r-fund .lbl small { display: block; text-transform: none; letter-spacing: 0; color: rgba(255, 251, 244, .6); font-size: 11px; }
.r-fund .val { font: 400 28px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.r-fund .val.hero { color: var(--lime); font-size: 34px; }
.r-note { font-size: 11px; color: var(--ink-soft); margin: 10px 0 0; text-transform: none; }
.r-note a { color: var(--ink); text-underline-offset: 2px; } /* was the browser's own blue on a dark receipt (round 4) */
.r-cta { margin-top: 16px; width: 100%; }
.barcode { height: 44px; margin: 18px 8px 6px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 5px, transparent 5px 8px, var(--ink) 8px 11px, transparent 11px 12px, var(--ink) 12px 13px, transparent 13px 16px); }
.r-thanks { text-align: center; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; }

/* ─────────── DREAM: editor ─────────── */
.editor-wrap { position: fixed; z-index: 60; inset: calc(var(--top-h) + env(safe-area-inset-top, 0px)) var(--receipt-w) 0 0; display: grid; place-items: center; padding: 20px; }
.editor-scrim { position: absolute; inset: 0; background: rgba(23, 15, 31, .55); backdrop-filter: blur(3px); -webkit-backdrop-filter: blur(3px); animation: fade .25s ease; }
.editor {
  position: relative; width: min(640px, 100%); max-height: calc(100svh - var(--top-h) - 40px); overflow: auto; overscroll-behavior: contain;
  background: var(--paper); color: var(--ink); box-shadow: 14px 14px 0 var(--pink), 0 40px 80px -30px rgba(0, 0, 0, .8);
  animation: rise .35s var(--ease-pop);
}
@keyframes fade { from { opacity: 0; } }
@keyframes rise { from { transform: translateY(28px) scale(.97); opacity: 0; } }
.ed-hero { position: relative; aspect-ratio: 16 / 8; background: var(--ink-2); overflow: hidden; }
.ed-hero img { width: 100%; height: 100%; object-fit: cover; }
.ed-hero::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 15, 31, 0) 35%, rgba(23, 15, 31, .85)); }
.ed-hero h2 { position: absolute; z-index: 1; left: 24px; right: 90px; bottom: 16px; margin: 0; color: var(--paper); font: 400 clamp(40px, 6vw, 60px)/.9 var(--f-display); text-transform: uppercase; }
.ed-hero h2 em { display: block; font: italic 400 22px/1.2 var(--f-serif); text-transform: none; color: var(--lime); margin-top: 6px; }
.ed-close { position: absolute; z-index: 2; top: 14px; right: 14px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--paper); color: var(--ink); font: 700 20px/44px var(--f-ui); cursor: pointer; box-shadow: 0 3px 0 var(--ink); }
.ed-body { padding: 20px 24px 24px; display: grid; gap: 20px; }
.ed-label { font: 500 12px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); margin: 0 0 10px; display: flex; justify-content: space-between; gap: 12px; }
.ed-label output { color: var(--ink); font-weight: 500; letter-spacing: .04em; }
/* the versions as an accordion (ported from React Bits' AccordionGallery): the chosen version — or the one under the hand —
   opens wide in colour; the others fold to greyscale slivers with the name on its side. --open drives everything. */
.tiers { display: flex; gap: 8px; height: clamp(200px, 30vw, 280px); perspective: 1200px; }
.tier { --open: 0; position: relative; flex: 1 1 0; min-width: 0; overflow: hidden; appearance: none; text-align: left; border: 0; cursor: pointer; background: var(--ink); color: var(--paper); padding: 0; border-radius: 10px; box-shadow: none; transition: flex-grow .42s var(--ease-pop), transform .42s var(--ease-pop), box-shadow .3s; transform-style: preserve-3d; flex-grow: calc(1 + var(--open) * 2.4); will-change: flex-grow; }
.tier[aria-checked='true'] { --open: 1; }
.tiers:hover .tier { --open: 0; }
.tiers .tier:hover, .tiers .tier:focus-visible { --open: 1; }
.tiers:hover .tier:has(~ .tier:hover) { transform: rotateY(7deg); }
.tiers:hover .tier:hover ~ .tier { transform: rotateY(-7deg); }
.tier .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.tier .ph img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(calc(1 - var(--open))) brightness(calc(.72 + .28 * var(--open))); transition: filter .3s; }
.tier::before { content: ''; position: absolute; inset: 0; z-index: 1; background: linear-gradient(180deg, transparent 45%, rgba(0,0,0,.78)); pointer-events: none; }
.tier::after { content: attr(data-label); position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%) rotate(-90deg); white-space: nowrap; font: 500 11px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: rgba(255,255,255,.8); opacity: calc(1 - var(--open)); transition: opacity .3s; pointer-events: none; }
.tier b, .tier > span:not(.tier-edit):not(.ph), .tier small { position: absolute; left: 14px; right: 12px; z-index: 2; margin: 0; color: #fff; opacity: var(--open); transform: translateX(calc(-12px * (1 - var(--open)))); transition: opacity .4s, transform .4s; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tier b { bottom: 48px; font: 400 clamp(18px, 2.4vw, 26px)/1 var(--f-display); text-transform: uppercase; }
.tier > span:not(.tier-edit):not(.ph) { bottom: 28px; font: 500 13px/1.2 var(--f-mono); color: var(--lime); }
.tier small { bottom: 12px; font-size: 12px; line-height: 1.25; color: rgba(255,255,255,.75); }
.tier .tier-edit { opacity: var(--open); transition: opacity .3s; }
@media (max-width: 640px) { .tiers { height: clamp(180px, 58vw, 260px); gap: 6px; } .tier::after { font-size: 10px; } }
.slider { width: 100%; accent-color: var(--pink); height: 32px; }
/* the comet dial (js/bits/dial.js): an age on a ring — the range input underneath stays labelled and keeps its events */
.dial { --size: 150px; position: relative; width: var(--size); height: var(--size); margin: 4px auto 0; outline: none; cursor: grab; touch-action: none; user-select: none; -webkit-user-select: none; }
.dial.drag { cursor: grabbing; }
.dial:focus-visible { outline: 3px solid var(--lime); outline-offset: 4px; border-radius: 50%; }
.dial-input { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; margin: 0; }
.dial-svg { width: 100%; height: 100%; display: block; overflow: visible; }
.dial-track { fill: none; stroke: rgba(23, 15, 31, .18); stroke-width: 3; stroke-linecap: round; }
.dial-ticks line { stroke: rgba(23, 15, 31, .35); stroke-width: 1; }
.dial-lit { fill: none; stroke: var(--pink); stroke-width: 3; stroke-linecap: round; }
.dial-comet { fill: none; stroke: var(--pink); stroke-linecap: round; opacity: 0; }
.dial-bead { fill: var(--ink); stroke: var(--paper); stroke-width: 1.5; }
.dial-read { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; pointer-events: none; gap: 2px; }
.dial-v { font: 400 calc(var(--size) * .26)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.dial-u { font: 500 11px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
:has(> .dial) > .ed-label output { display: none; }
.pop-age .dial { --size: 120px; }
/* badges: the board's title and its badges as emblems; hover or focus tells you why you have one, or how to get it */
.badge { position: relative; display: grid; justify-items: center; gap: 6px; appearance: none; background: none; border: 0; padding: 6px 4px; color: inherit; cursor: default; width: 92px; font: inherit; }
.badge-ring { width: 60px; height: 60px; border-radius: 50%; display: grid; place-items: center; background: rgba(23, 15, 31, .08); border: 1.5px solid rgba(23, 15, 31, .35); box-shadow: inset 0 0 0 4px rgba(255, 251, 244, .5); }
.badge-ring img { width: 36px; height: 36px; object-fit: contain; }
.badge b { font: 400 12px/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .06em; text-align: center; }
.badge:not(.on) { opacity: .42; filter: grayscale(1); }
.badge-tip { position: absolute; left: 50%; bottom: calc(100% - 2px); transform: translate(-50%, 6px); width: max-content; max-width: 210px; padding: 8px 10px; border-radius: 6px; background: var(--ink); color: var(--paper); font: 400 12px/1.35 var(--f-ui); text-transform: none; letter-spacing: 0; text-align: center; opacity: 0; pointer-events: none; transition: opacity .18s, transform .18s; z-index: 6; }
.badge:hover .badge-tip, .badge:focus-visible .badge-tip, .badge:focus .badge-tip { opacity: 1; transform: translate(-50%, 0); }
.badge-arch { width: auto; justify-self: start; justify-items: start; grid-template-columns: auto auto; align-items: center; gap: 14px; padding: 4px 0 10px; text-align: left; }
.badge-arch .badge-ring { width: 84px; height: 84px; }
.badge-arch .badge-ring img { width: 52px; height: 52px; }
.badge-arch b { font-size: clamp(22px, 2.6vw, 32px); text-align: left; }
.badge-arch .badge-tip { left: 0; transform: translate(0, 6px); }
.badge-arch:hover .badge-tip, .badge-arch:focus .badge-tip, .badge-arch:focus-visible .badge-tip { transform: none; }
.badges { display: flex; flex-wrap: wrap; gap: 4px 2px; margin-top: 8px; }
.badges-count { margin: 8px 0 0; font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .7; }
@media (max-width: 640px) { .dial { --size: 132px; } .pop-age .dial { --size: 108px; } .badge { width: 80px; } }
.slider-row { display: flex; align-items: center; gap: 14px; }
.slider-row .slider { flex: 1; }
.pill-set { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { appearance: none; border: 2px solid var(--ink); background: transparent; color: var(--ink); border-radius: 999px; padding: 7px 14px; font: 600 14px/1 var(--f-ui); cursor: pointer; }
.pill[aria-checked='true'] { background: var(--ink); color: var(--lime); }
.switch { display: flex; align-items: center; gap: 12px; cursor: pointer; font-weight: 600; }
.switch input { appearance: none; width: 48px; height: 28px; border-radius: 999px; background: var(--paper-2); box-shadow: inset 0 0 0 2px var(--ink); position: relative; cursor: pointer; flex: none; transition: background .2s; }
.switch input::after { content: ''; position: absolute; top: 4px; left: 4px; width: 20px; height: 20px; border-radius: 50%; background: var(--ink); transition: transform .2s var(--ease-pop); }
.switch input:checked { background: var(--lime); }
.switch input:checked::after { transform: translateX(20px); }
.switch small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.field { display: grid; gap: 6px; }
.field input[type='text'], .field input[type='number'], .field select, .num {
  border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: 600 16px/1.2 var(--f-ui); width: 100%;
}
.num-wrap { position: relative; }
.num-wrap::before { content: '$'; position: absolute; left: 14px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.num-wrap input.num, .field .num-wrap input.num, .tv-form .field .num-wrap input.num { padding-left: 44px; font-variant-numeric: tabular-nums; }
.date-field { display: grid; gap: 9px; }
.date-field .ed-label { display: flex; justify-content: space-between; gap: 12px; }
.date-pick { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; }
.date-pick label { display: grid; gap: 6px; color: var(--ink-soft); font: 600 13px/1.2 var(--f-ui); }
.date-pick select, .share-input input { width: 100%; min-height: 48px; border: 2px solid var(--ink); border-radius: 10px; padding: 9px 12px; background: var(--paper); color: var(--ink); font: 600 17px/1.2 var(--f-ui); }
.date-pick select:focus-visible, .share-input input:focus-visible { outline: 3px solid var(--lime); outline-offset: 2px; }
.share-input { position: relative; max-width: 170px; }
.share-input input { padding-right: 38px; }
.share-input span { position: absolute; right: 14px; top: 50%; translate: 0 -50%; font-weight: 700; pointer-events: none; }
.property-share .cpf-note { margin: 0; }
.ed-sum { background: var(--ink); color: var(--paper); padding: 16px 18px; display: grid; gap: 8px; font-size: 15px; }
.ed-sum .row { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.ed-sum .row span:first-child { color: rgba(255, 251, 244, .72); }
.ed-sum .big { font: 400 26px/1 var(--f-display); color: var(--lime); }
.ed-sum .cpf { color: var(--mint); }
.ed-sum p { margin: 2px 0 0; font-size: 13px; color: rgba(255, 251, 244, .66); }
.ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ed-upload { display: flex; align-items: center; gap: 12px; }
.ed-upload .btn { box-shadow: inset 0 0 0 2px var(--ink); }

/* ─────────── TRAVEL explorer ─────────── */
.view-travel { background: var(--ink); color: var(--paper); }
.tv-head { padding: clamp(28px, 4vw, 48px) var(--gutter) 8px; max-width: 1280px; margin: 0 auto; }
.tv-eyebrow { margin: 0 0 6px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.tv-title { font: 400 clamp(42px, 6.4vw, 92px)/.88 var(--f-display); text-transform: uppercase; margin: 0; }
.tv-title em { font: italic 400 1.08em/1 var(--f-serif); text-transform: none; color: var(--pink); }
.tv-sub { margin: 12px 0 18px; font-size: 17px; color: rgba(255, 251, 244, .78); max-width: 40em; }
.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chip { flex: none; appearance: none; border: 2px solid rgba(255, 251, 244, .28); background: transparent; color: var(--paper); border-radius: 999px; padding: 9px 14px; font: 600 14px/1 var(--f-ui); cursor: pointer; white-space: nowrap; transition: transform .15s var(--ease-pop); }
.chip:hover { transform: translateY(-2px); }
.chip[aria-selected='true'] { background: var(--lime); color: var(--ink); border-color: var(--lime); }
.tv-map { max-width: 1280px; margin: 8px auto 0; padding: 0 var(--gutter); }
.tv-map svg { width: 100%; height: auto; display: block; overflow: visible; }
.tv-map .land { fill: rgba(255, 251, 244, .13); stroke: rgba(255, 251, 244, .25); stroke-width: .6; }
.tv-map .home circle { fill: var(--paper); }
.tv-map .home text { font: 500 11px var(--f-mono); fill: rgba(255, 251, 244, .7); letter-spacing: .1em; text-transform: uppercase; }
.tv-map .pin { cursor: pointer; }
.tv-map .pin .dot { fill: var(--c, var(--tangerine)); stroke: var(--ink); stroke-width: 1.5; transition: transform .2s var(--ease-pop); }
.tv-map .pin .halo { fill: var(--c, var(--tangerine)); opacity: 0; }
.tv-map .pin:hover .dot, .tv-map .pin:focus-visible .dot { transform: scale(1.5); }
.tv-map .pin.on .dot { stroke: var(--paper); stroke-width: 3; }
.tv-map .pin.dim { opacity: .25; pointer-events: none; }
.tv-map .pin.sel .dot { transform: scale(1.7); stroke: var(--paper); stroke-width: 2; }
.tv-map .pin.sel .halo { animation: halo 1.6s ease-out infinite; }
.cat-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 7px; vertical-align: middle; box-shadow: 0 0 0 1px rgba(0,0,0,.25); }
@keyframes halo { 0% { opacity: .55; transform: scale(.4); } 100% { opacity: 0; transform: scale(1.4); } }
.tv-map .pin-label { font: 400 15px var(--f-display); fill: var(--paper); letter-spacing: .04em; text-transform: uppercase; paint-order: stroke; stroke: var(--ink); stroke-width: 4px; stroke-linejoin: round; }
.tv-map .arc { fill: none; stroke: var(--pink); stroke-width: 2; stroke-dasharray: 6 5; animation: dash 1.2s linear infinite; }
@keyframes dash { to { stroke-dashoffset: -22; } }
.tv-grid { max-width: 1280px; margin: 28px auto 0; padding: 0 var(--gutter) 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(200px, 44%), 1fr)); gap: 30px 20px; }
.tv-card { position: relative; appearance: none; border: 0; text-align: left; cursor: pointer; background: var(--paper); color: var(--ink); padding: 8px 8px 12px; rotate: var(--tilt); box-shadow: var(--shadow-lift); transition: transform .3s var(--ease-pop); }
.tv-card:hover { transform: translateY(-6px) scale(1.02); z-index: 2; }
.tv-card.sel { outline: 4px solid var(--pink); outline-offset: 4px; }
.tv-card .ph img { transition: transform .8s ease; }
.tv-card:hover .ph img { transform: scale(1.05); }
.tv-name { display: block; margin-top: 10px; font: 400 21px/1 var(--f-display); text-transform: uppercase; }
.tv-meta { display: block; margin-top: 4px; font: 500 11px/1.2 var(--f-mono); text-transform: uppercase; color: var(--ink-soft); }
.tv-line { display: block; margin-top: 6px; font: italic 400 16px/1.15 var(--f-serif); color: var(--ink-soft); }
.tv-on { position: absolute; top: 18px; left: 16px; background: var(--lime); color: var(--ink); font: 700 12px/1 var(--f-ui); padding: 6px 10px; border-radius: 999px; box-shadow: 0 2px 0 var(--ink); }
.tv-sheet { max-width: 1280px; margin: 24px auto 0; padding: 0 var(--gutter); }
.tv-sheet-in { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); background: var(--paper); color: var(--ink); box-shadow: 12px 12px 0 var(--pink); animation: rise .35s var(--ease-pop); }
.tv-sheet-in .ph { aspect-ratio: 4 / 5; height: 100%; }
.tv-sheet-body { position: relative; padding: 26px 26px 26px; display: grid; gap: 16px; align-content: start; }
.tv-sheet-body h2 { margin: 0; font: 400 clamp(36px, 4vw, 56px)/.92 var(--f-display); text-transform: uppercase; }
.tv-sheet-body .tv-line { font-size: 20px; margin: 0; }
.tv-sheet-body .tv-eyebrow { color: var(--ink-soft); }
.tv-sheet-body .ed-close { top: 14px; right: 14px; }
.tile-explore { text-decoration: none; }
.tile-explore img { width: 96px; height: 96px; display: block; margin: 0 auto 4px; filter: drop-shadow(0 6px 0 rgba(23, 15, 31, .25)); transition: transform .3s var(--ease-pop); }
.tile-explore:hover img { transform: rotate(-8deg) scale(1.1); }
.search-row { display: flex; gap: 8px; }
.search-row .btn { min-height: 44px; } /* a full tap target in every look (Cinema and Long Exposure drew it at 43 px) */
.search-row input { flex: 1; border: 2px solid var(--ink); border-radius: 10px; padding: 10px 12px; font: 600 16px/1.2 var(--f-ui); background: var(--paper); min-width: 0; }
.search-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 8px; margin-top: 10px; }
.search-grid:empty { display: none; }
.sr-pick { appearance: none; border: 0; padding: 0; background: var(--paper-2); aspect-ratio: 4 / 5; overflow: hidden; cursor: pointer; border-radius: 6px; box-shadow: inset 0 0 0 2px transparent; transition: transform .15s var(--ease-pop); }
.sr-pick:hover { transform: scale(1.05); box-shadow: inset 0 0 0 3px var(--pink); }
.sr-pick img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* 2 Oct 2026: who took each found photo, on the photo (Unsplash's guidelines) — and the picked one's credit below */
.sr-pick { position: relative; }
.sr-by { position: absolute; left: 0; right: 0; bottom: 0; padding: 3px 5px; font: 500 10px/1.25 var(--f-ui); color: #fff; background: rgba(0, 0, 0, .78); text-align: left; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; pointer-events: none; }
.photo-credit a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.search-note { margin: 8px 0 0; font-size: 13px; color: var(--ink-soft); grid-column: 1 / -1; }

/* ─────────── "Create my own" picker ─────────── */
.ed-create { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; font-size: 14px; color: var(--ink-soft); }
.ed-create .btn { box-shadow: inset 0 0 0 2px var(--ink); }
.tier.picked { --open: 1; }
.tiers:hover .tier.picked { --open: 1; }
.picker-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.pk { position: relative; appearance: none; border: 0; padding: 6px 6px 10px; background: var(--paper-2); color: var(--ink); text-align: left; cursor: pointer; text-decoration: none; display: block; box-shadow: inset 0 0 0 2px transparent; transition: transform .2s var(--ease-pop), box-shadow .2s; }
.pk:hover { transform: translateY(-3px); box-shadow: inset 0 0 0 3px var(--pink); }
.pk.on { box-shadow: inset 0 0 0 3px var(--ink); background: var(--lime); }
.pk .ph { aspect-ratio: 4 / 5; }
.pk-name { display: block; margin-top: 8px; font: 400 17px/1.05 var(--f-display); text-transform: uppercase; }
.pk-note { display: block; font: 500 11px/1.3 var(--f-mono); color: var(--ink-soft); margin-top: 4px; min-height: 2.6em; }
.pk-price { display: block; margin-top: 6px; font: 400 18px/1 var(--f-display); }
.pk-prices { display: flex; gap: 6px; margin-top: 6px; flex-wrap: wrap; }
.pk-prices b { font: 500 12px/1 var(--f-mono); background: var(--ink); color: var(--lime); padding: 6px 8px; border-radius: 3px; }
.pk-prices b:hover { background: var(--pink); color: var(--paper); }
.pk.own { display: grid; place-items: center; text-align: center; border: 3px dashed rgba(23, 15, 31, .45); background: transparent; min-height: 200px; }
.pk.own .big { font: 400 56px/1 var(--f-display); }
.pk.own .pk-note { min-height: 0; }
.tv-for { margin: 0 0 12px; padding: 10px 14px; background: var(--lime); color: var(--ink); font-weight: 600; font-size: 15px; display: inline-block; transform: rotate(-.6deg); }
.tv-for a { color: inherit; }
.tv-tools { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.tv-tools input { flex: 1; min-width: 200px; border: 2px solid rgba(255, 251, 244, .3); background: rgba(255, 251, 244, .06); color: var(--paper); border-radius: 999px; padding: 11px 16px; font: 600 15px/1.2 var(--f-ui); }
.tv-tools input:focus { outline: none; border-color: var(--lime); }
.tv-tools input::placeholder { color: rgba(255, 251, 244, .5); }
.tv-card.tv-new { display: grid; place-items: center; text-align: center; background: transparent; color: var(--paper); border: 3px dashed rgba(255, 251, 244, .5); box-shadow: none; min-height: 260px; padding: 20px; }
.tv-card.tv-new .big { font: 400 56px/1 var(--f-display); }
.tv-card.tv-new .tv-line, .tv-card.tv-new .tv-name { color: var(--paper); }
.tv-none { grid-column: 1 / -1; color: rgba(255, 251, 244, .7); font-weight: 600; }
.tv-form { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tv-form .field input[type='text'], .tv-form .field input[type='number']:not(.num) { border: 2px solid var(--ink); background: var(--paper); border-radius: 10px; padding: 10px 12px; font: 600 16px/1.2 var(--f-ui); width: 100%; }
.tv-map svg.placing { cursor: crosshair; outline: 3px dashed var(--lime); outline-offset: 6px; }
.tv-map .pin.custom .dot { fill: var(--pink); }

/* ─────────── retirement: the hero of the long game, CPF LIFE plans, "build my number" ─────────── */
.tile-wrap.hero { grid-column: span 2; }
.tile-wrap.hero .ph { aspect-ratio: 8 / 5; }
.tile-wrap.hero .tile-name { font-size: 34px; }
.tile-wrap.hero .tile::before { content: 'The main event'; position: absolute; z-index: 2; top: 18px; left: -8px; background: var(--ink); color: var(--lime); font: 500 11px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; padding: 7px 12px; transform: rotate(-3deg); }
.tile-wrap.hero .tile-plus { top: calc(9px + (100% - 23px) * .34); }
.tier-edit { position: absolute; z-index: 2; top: 12px; left: 12px; border-radius: 999px; padding: 6px 10px; background: var(--ink); color: var(--lime); font: 500 10px/1 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; box-shadow: 0 2px 0 rgba(0,0,0,.3); }
.tier-edit::before { content: '✎ '; font-family: system-ui, 'Apple Color Emoji', sans-serif; }
.tier-edit:hover { background: var(--pink); color: var(--paper); }
.tier.picked .tier-edit { top: 12px; left: auto; right: 12px; }
.plan-set { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.plan { appearance: none; border: 2px solid var(--ink); background: var(--paper); color: var(--ink); text-align: left; padding: 10px 10px 9px; cursor: pointer; border-radius: 10px; display: grid; gap: 2px; }
.plan b { font: 400 15px/1 var(--f-display); text-transform: uppercase; }
.plan span { font: 500 13px/1.2 var(--f-mono); }
.plan small { font-size: 10.5px; line-height: 1.2; color: var(--ink-soft); }
.plan[aria-checked='true'] { background: var(--ink); color: var(--lime); }
.plan[aria-checked='true'] small { color: rgba(255, 251, 244, .7); }
details.deep { border: 2px solid var(--ink); background: var(--paper-2); }
details.deep > summary { list-style: none; cursor: pointer; padding: 14px 16px; display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; align-items: center; }
details.deep > summary::-webkit-details-marker { display: none; }
details.deep > summary b { font: 400 22px/1 var(--f-display); text-transform: uppercase; }
details.deep > summary span { font-size: 14px; color: var(--ink-soft); }
details.deep > summary::after { content: '+'; grid-column: 2; justify-self: end; grid-row: 1; font: 400 28px/1 var(--f-display); }
details.deep[open] > summary::after { content: '−'; }
.build { padding: 4px 16px 16px; display: grid; gap: 8px; }
.build-row { display: grid; grid-template-columns: minmax(0, 1fr) 150px; gap: 12px; align-items: center; border-top: 1px solid rgba(23, 15, 31, .12); padding-top: 8px; }
.build-row label { font-weight: 600; font-size: 14px; }
.build-row label small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-soft); }
.build-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; border-top: 2px solid var(--ink); padding-top: 10px; margin-top: 4px; font-size: 14px; }
.build-total b { font: 400 30px/1 var(--f-display); }
.hero-tag { margin: 6px 0 0; font: italic 400 clamp(20px, 2.4vw, 30px)/1.2 var(--f-serif); color: rgba(255, 251, 244, .8); }
.hero-tag b { color: var(--lime); font-weight: 400; }
.ed-sum .row small { display: block; font-size: 12px; opacity: .7; }

/* ─────────── PRICE (reveal) ─────────── */
.view-price, .view-guest { position: relative; overflow: hidden; background: var(--cobalt); min-height: calc(100svh - var(--top-h)); }
.price-bg { position: absolute; inset: -40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 16px; opacity: .22; filter: saturate(1.2); transform: rotate(-4deg); pointer-events: none; }
.price-bg .ph { aspect-ratio: 4 / 5; }
.view-guest::after, .view-price::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 20%, rgba(36, 55, 255, .35), rgba(36, 55, 255, .92) 70%); pointer-events: none; }
.price-inner { position: relative; z-index: 2; max-width: 1180px; margin: 0 auto; padding: clamp(40px, 6vw, 80px) var(--gutter) 80px; }
.reveal-eyebrow { font: 400 clamp(22px, 3vw, 40px)/1 var(--f-display); text-transform: uppercase; color: var(--lime); margin: 0; letter-spacing: .01em; }
.reveal-num { font: 400 clamp(72px, 15vw, 230px)/.86 var(--f-display); margin: 10px 0 0; letter-spacing: -.01em; font-variant-numeric: tabular-nums; text-shadow: 0 8px 0 rgba(23, 15, 31, .35); overflow-wrap: anywhere; }
.reveal-sub { font: italic 400 clamp(22px, 2.6vw, 34px)/1.2 var(--f-serif); margin: 14px 0 0; max-width: 30em; }
.reveal-sub b { font-style: normal; font-family: var(--f-display); font-weight: 400; color: var(--sun); letter-spacing: .01em; }
.cards { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 20px; margin-top: 44px; }
.card { grid-column: span 6; background: var(--paper); color: var(--ink); padding: 24px; position: relative; box-shadow: 8px 8px 0 var(--ink); }
.card.wide { grid-column: span 12; }
.card.third { grid-column: span 4; }
.card h3 { margin: 0 0 4px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.card .lede { font: 400 clamp(30px, 3.4vw, 46px)/.95 var(--f-display); text-transform: uppercase; margin: 10px 0 12px; }
.card .lede em { font: italic 400 1.05em/1 var(--f-serif); text-transform: none; }
.card p { margin: 0; }
.card-sun { background: var(--sun); }
.card-pink { background: var(--pink); }
.card-tangerine { background: var(--tangerine); }
.card-ink { background: var(--ink); color: var(--paper); box-shadow: 8px 8px 0 var(--lime); }
.monthly-big { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; }
.monthly-big .v { font: 400 clamp(64px, 8vw, 120px)/.85 var(--f-display); font-variant-numeric: tabular-nums; }
.monthly-big .u { font: italic 400 30px/1 var(--f-serif); }
.split { display: grid; gap: 10px; margin-top: 16px; }
.split .row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; align-items: baseline; border-top: 2px solid var(--ink); padding-top: 10px; }
.split .row b { font: 400 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.split small { display: block; color: var(--ink-soft); font-size: 14px; }
.bars { display: grid; gap: 12px; margin-top: 14px; }
.bar { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(110px, auto); gap: 12px; align-items: center; font-weight: 600; }
.bar .track { height: 22px; background: rgba(23, 15, 31, .12); position: relative; overflow: hidden; }
.bar .fill { position: absolute; inset: 0 auto 0 0; background: var(--ink); width: var(--w); transition: width 1s var(--ease-pop); }
.bar.best .fill { background: var(--lime); box-shadow: inset 0 0 0 2px var(--ink); }
.bar .v { text-align: right; font: 400 20px/1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wait-list { display: grid; gap: 0; margin-top: 12px; }
.wait-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 14px; align-items: baseline; padding: 10px 0; border-top: 2px solid var(--ink); }
.wait-row .k { font: 400 22px/1 var(--f-display); text-transform: uppercase; }
.wait-row .v { font: 400 26px/1 var(--f-display); font-variant-numeric: tabular-nums; }
.wait-row small { color: rgba(23, 15, 31, .75); }
/* price page, 29 Sep 2026: the two totals side by side, a "?" that shows the working, cards with plain titles */
.reveal-row { display: flex; align-items: flex-start; gap: 14px; margin-top: 18px; }
.reveal-pair { display: flex; align-items: flex-start; gap: clamp(10px, 2vw, 28px); margin: 0; font: inherit; }
.rp { display: grid; gap: 8px; }
.reveal-pair .reveal-num { font-size: clamp(30px, 7.4vw, 112px); line-height: 1.12; margin: 0; white-space: nowrap; }
.rp-k { font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.rp-arrow { font: 400 clamp(22px, 4vw, 56px)/1.4 var(--f-display); opacity: .6; }
.qmark { flex: none; appearance: none; width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid currentColor; background: transparent; color: inherit; font: 600 15px/1 var(--f-display); cursor: pointer; display: inline-grid; place-items: center; padding: 0; vertical-align: middle; }
.reveal-row .qmark { margin-top: clamp(8px, 2vw, 30px); }
.card h3.card-title { display: flex; align-items: center; gap: 10px; font: 400 clamp(24px, 2.8vw, 36px)/1 var(--f-display); letter-spacing: .02em; text-transform: uppercase; margin: 0 0 16px; }
.card h3.card-title .qmark { width: 24px; height: 24px; font-size: 13px; }
.monthly .mrow { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 4px 16px; padding: 14px 0 12px; border-top: 2px solid var(--ink); }
.monthly .mk { font: 500 13px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.monthly .mv { justify-self: end; font: 400 clamp(30px, 3.6vw, 52px)/1.15 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.monthly .mrow small { grid-column: 1 / -1; font-size: 13px; opacity: .75; }
.wait-rate { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; }
.rate-in { position: relative; display: inline-flex; align-items: center; }
.rate-in input { width: 5.2em; padding: 6px 22px 6px 10px; border: 2px solid var(--ink); border-radius: 8px; background: transparent; color: inherit; font: 600 16px/1.2 var(--f-ui); }
.rate-in i { position: absolute; right: 9px; font-style: normal; pointer-events: none; }
#wait-card .wait-row { grid-template-columns: minmax(0, 1fr) auto minmax(9.5em, auto); align-items: baseline; }
#wait-card .wait-row .v { text-align: right; }
#wait-card .wait-row small.more { text-align: right; }
.wait-tea { margin: 12px 0 0; font-size: 14px; }
#wait-card .wait-row .k { white-space: nowrap; }
/* Price it (1 Oct 2026): the month as one figure, then three talking points, then "Go deeper" for the working */
.monthly .m-total { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 16px; padding: 4px 0 14px; }
.monthly .m-total .mv { font-size: clamp(40px, 5.4vw, 76px); line-height: 1.05; }
.monthly .m-split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.talk { display: flex; flex-direction: column; gap: 10px; }
.talk h3 { margin: 0; }
.talk-v { margin: 2px 0 0; font: 400 clamp(38px, 4vw, 58px)/1.05 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.talk-v > i { font-style: normal; font-size: .5em; margin-left: .06em; vertical-align: .3em; }
.talk-v.talk-word { text-transform: uppercase; }
.talk-s { margin: 0; font-size: 15px; line-height: 1.45; }
.talk-s b { font-weight: 600; }
.talk-bar { display: block; height: 8px; background: rgba(128, 128, 128, .25); position: relative; overflow: hidden; }
.talk-bar > span { position: absolute; inset: 0 auto 0 0; width: var(--w); background: currentColor; transition: width 1s var(--ease-pop); }
/* Colour by meaning (round 2, 1 Oct 2026): a figure is neutral unless it is a shortfall or overrun (.hot) or a surplus or
   on track (.cool). A share above 100% caps the bar and marks what spills past the end of it. */
.talk-v.hot, .gauge-pct.hot, .ftotal .v.hot { color: var(--bad); }
.talk-v.cool, .gauge-pct.cool, .ftotal .v.cool { color: var(--good); }
.talk-bar.over { overflow: visible; margin-right: 14px; }
.talk-bar.over > span { width: 100%; background: var(--bad); background-image: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(0, 0, 0, .35) 5px 8px); background-size: 28% 100%; background-position: right; background-repeat: no-repeat; }
.talk-bar.over::after { content: ''; position: absolute; left: 100%; top: 50%; translate: 0 -50%; border-left: 12px solid var(--bad); border-block: 9px solid transparent; }
.talk-over { align-self: flex-end; margin-top: -4px; font: 600 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--bad); }
.deeper { margin-top: 28px; }
.deeper > summary { list-style: none; cursor: pointer; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 16px 20px; border: 1.5px solid currentColor; font: 400 clamp(20px, 2.2vw, 28px)/1.1 var(--f-display); text-transform: uppercase; letter-spacing: .02em; }
.deeper > summary::-webkit-details-marker { display: none; }
.deeper > summary::after { content: '+'; margin-left: auto; font-size: 1.1em; line-height: 1; }
.deeper[open] > summary::after { content: '−'; }
.deeper > summary small { font: 400 13px/1.35 var(--f-ui); text-transform: none; letter-spacing: 0; opacity: .7; flex-basis: 100%; order: 3; }
.deeper > summary:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
.deeper > .cards { margin-top: 20px; }
.dream-bars .bar { grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(120px, auto); }
.dream-bars .bar > span:first-child { min-width: 0; overflow-wrap: anywhere; }
/* Save it: the picture and the board are two jobs */
.keep-board { border-top: 1px solid rgba(128, 128, 128, .35); padding-top: 18px; }
.keep-board h3 { margin: 0 0 6px; }
.keep-board p { margin: 0 0 12px; font-size: 15px; }
.keep-who { font-size: 13px !important; opacity: .75; margin-top: 10px !important; }
.field-hint { display: block; margin-top: 6px; font-size: 12.5px; opacity: .7; }
/* Check it (1 Oct 2026): what's required is marked; the answer, three talking points, then "The full check" */
.frow label .req { color: var(--pink); margin-left: 3px; font-weight: 700; }
.frow.need .num { outline: 2px solid var(--pink); outline-offset: 2px; }
.check-go { flex-direction: column; align-items: center; gap: 10px; }
.check-need { margin: 0; min-height: 1.4em; font-size: 14px; text-align: center; opacity: .85; }
.results > .ahead, .results > .deeper { grid-column: 1 / -1; }
.results > .deeper { margin-top: 4px; }
.results > .deeper > .results { margin-top: 20px; }
.ahead { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.rcard.talk .talk-s { opacity: .85; }
.split-card .stack { margin-top: 6px; }
@media (max-width: 760px) { .ahead { grid-template-columns: 1fr; gap: 14px; } }
/* the front door's look picker, beside the name */
.look-start { margin: 0 0 14px; gap: 6px; }
.look-start .look-pill { padding: 7px 12px 7px 10px; font-size: 12px; }
.look-start .look-label { flex-basis: 100%; margin-bottom: 2px; }
.explain p { margin: 0 0 12px; }
.explain-eg { font-size: 14px; opacity: .85; }
.explain-table { overflow-x: auto; margin: 6px 0 12px; }
.explain-table table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.explain-table th, .explain-table td { padding: 7px 8px; text-align: right; border-bottom: 1px solid rgba(23, 15, 31, .15); white-space: nowrap; }
.explain-table th:first-child, .explain-table td:first-child { text-align: left; white-space: normal; }
.explain-table th { font: 500 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; }
.explain-table tfoot td { font-weight: 700; border-bottom: 0; }
.explain-note { font-size: 13px; opacity: .8; }
.fmt-set.fmt-set-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.check-sub { margin: 12px 0 0; font-size: clamp(16px, 1.6vw, 20px); opacity: .8; }
/* dragging a chosen dream between sections (hold, then drag) */
.tile-wrap[data-uid] { -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; }
#catalogue img { -webkit-user-drag: none; }
.tile-wrap.dragging { opacity: .3; }
.drag-ghost { position: fixed; z-index: 70; margin: 0; pointer-events: none; transform-origin: 50% 40%; transition: none; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .7); }
body.board-dragging { cursor: grabbing; }
body.board-dragging #catalogue .sec { transition: background .2s, box-shadow .2s; }
#catalogue .sec.drop-on { background: rgba(205, 246, 60, .08); box-shadow: inset 0 0 0 3px var(--lime); }
.dial-pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 20px; }
.i-earn { white-space: nowrap; }
.mountain svg { width: 100%; height: auto; display: block; margin-top: 8px; overflow: visible; }
.mountain .axis text { font: 500 11px var(--f-mono); fill: var(--ink-soft); }
.mountain { position: relative; }
.mountain svg { touch-action: pan-y; cursor: crosshair; }
.mt-hover { opacity: 0; transition: opacity .15s; pointer-events: none; }
.mt-hover.on { opacity: 1; }
.mt-guide { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 3 4; }
.mt-dot { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.mt-tip { position: absolute; z-index: 3; display: grid; grid-template-columns: auto auto; gap: 4px 16px; align-items: baseline; min-width: 200px; max-width: 280px; padding: 12px 14px; background: var(--ink); color: var(--paper); border-radius: 8px; font-size: 13px; pointer-events: none; box-shadow: 0 16px 40px -16px rgba(0, 0, 0, .6); }
.mt-tip .mt-age { grid-column: 1 / -1; font: 500 12px/1.2 var(--f-mono); letter-spacing: .12em; text-transform: uppercase; margin-bottom: 2px; }
.mt-tip b { justify-self: end; font-variant-numeric: tabular-nums; }
.mt-tip small { grid-column: 1 / -1; font-size: 12px; opacity: .75; line-height: 1.3; }
/* How it's calculated: a wide sheet with a jump bar */
.modal.wide { width: min(880px, calc(100% - 32px)); }
.modal-body.method { grid-template-columns: minmax(0, 1fr); } /* a wide table scrolls inside its box instead of stretching the sheet */
.method section, .method .explain-table { min-width: 0; max-width: 100%; }
.method section { border-top: 1px solid rgba(23, 15, 31, .15); padding-top: 14px; scroll-margin-top: 12px; }
.method h3 { margin: 0 0 8px; font: 400 22px/1.1 var(--f-display); text-transform: uppercase; }
.method p { margin: 0 0 10px; font-size: 14px; line-height: 1.5; }
.method ul { margin: 0; padding-left: 18px; font-size: 14px; line-height: 1.5; display: grid; gap: 6px; }
.method .f { font: 500 14px/1.5 var(--f-ui); padding: 10px 12px; border-left: 3px solid var(--pink); background: rgba(23, 15, 31, .05); }
.method .eg { font-size: 13px; opacity: .9; }
.method .note { font-size: 12px; opacity: .7; }
.method-nav { display: flex; flex-wrap: wrap; gap: 6px 14px; font: 500 12px/1.2 var(--f-mono); letter-spacing: .08em; text-transform: uppercase; }
.method-nav a { color: inherit; }
.stickers { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 14px; }
.sticker { display: inline-flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; width: 116px; height: 116px; border-radius: 50%; background: var(--lime); color: var(--ink); padding: 12px; rotate: var(--r, -6deg); box-shadow: 0 4px 0 rgba(0, 0, 0, .35); }
.sticker b { font: 400 18px/.95 var(--f-display); text-transform: uppercase; }
.sticker small { font: 500 10px/1.2 var(--f-mono); margin-top: 5px; }
.sticker:nth-child(3n + 2) { background: var(--sun); --r: 5deg; }
.sticker:nth-child(3n + 3) { background: var(--pink); color: var(--paper); --r: -2deg; }
.archetype { font: italic 400 clamp(36px, 4vw, 54px)/1 var(--f-serif); color: var(--lime); margin: 6px 0 0; }
.actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-top: 36px; }
.actions .linkish { color: var(--paper); }
.warn-note { background: rgba(23, 15, 31, .08); border-left: 4px solid var(--ink); padding: 10px 12px; margin-top: 14px; font-size: 14px; }

.guest-board { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(170px, 44%), 1fr)); gap: 28px 20px; margin-top: 40px; }
.gtile { position: relative; background: var(--paper); color: var(--ink); padding: 8px 8px 12px; rotate: var(--tilt); box-shadow: var(--shadow-lift); }
.gtile .tile-name { font-size: 20px; }
.gtile .tile-meta { margin-top: 4px; }
.guest-note { margin-top: 18px; font-size: 15px; color: rgba(255, 251, 244, .78); max-width: 42em; }

/* ─────────── CHECK ─────────── */
.view-check { background: var(--paper); color: var(--ink); }
.check { max-width: 1240px; margin: 0 auto; padding: clamp(36px, 5vw, 64px) var(--gutter) 80px; }
.check-title { font: 400 clamp(46px, 7vw, 104px)/.86 var(--f-display); text-transform: uppercase; margin: 0; }
.check-title em { font: italic 400 1.08em/1 var(--f-serif); text-transform: none; color: var(--pink); }
/* the two statements: cash flow (inflow · outflow · investing) and the balance sheet (assets · liabilities) */
.check-in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 36px; align-items: start; }
.fcard { background: var(--paper-2); padding: 22px; }
.fcard h3 { margin: 0 0 6px; font: 400 28px/1 var(--f-display); text-transform: uppercase; }
.fsub { margin: 18px 0 2px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.frow { display: grid; grid-template-columns: minmax(0, 1fr) 170px; gap: 12px; align-items: center; padding: 10px 0; border-top: 1px solid rgba(23, 15, 31, .12); }
.frow label { font-weight: 600; }
.frow label small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 13px; }
.frow.sub { padding-left: 18px; }
.ftotal { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 12px 0 4px; margin-top: 4px; border-top: 2px solid var(--ink); }
.ftotal > span { font-weight: 700; }
.ftotal > span small { display: block; font-weight: 400; color: var(--ink-soft); font-size: 12px; }
.ftotal .v { font: 400 30px/1.1 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.ftotal .v.hot { color: var(--bad); }
/* a readout number: the sign and the unit small beside the digits */
.lm i { font-style: normal; font-size: .5em; margin: 0 .12em; vertical-align: .22em; letter-spacing: .04em; }
.check-go { margin-top: 28px; display: flex; justify-content: center; }
.results { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; margin-top: 40px; align-items: start; }
.rcard { background: var(--ink); color: var(--paper); padding: 22px; }
.rcard h3 { margin: 0 0 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
/* the meter: what they invest against what the board needs */
.gauge { position: relative; max-width: 380px; margin: 6px auto 0; }
.gauge-svg { display: block; width: 100%; height: auto; overflow: visible; }
.g-track { fill: none; stroke: rgba(255, 251, 244, .14); stroke-width: 14; stroke-linecap: round; }
.g-fill { fill: none; stroke: var(--mint); stroke-width: 14; stroke-linecap: round; stroke-dasharray: 120; transition: stroke-dashoffset .9s var(--ease-pop), stroke .4s; animation: g-sweep .9s var(--ease-pop) both; }
.gauge-svg[data-tone='ok'] .g-fill { stroke: var(--sun); }
.gauge-svg[data-tone='bad'] .g-fill { stroke: var(--pink); }
.g-tick { stroke: var(--paper); stroke-width: 2; }
.g-lbl { font: 600 10px var(--f-mono); letter-spacing: .12em; fill: rgba(255, 251, 244, .7); }
.g-needle { transform-origin: 130px 128px; transition: transform .9s var(--ease-pop); animation: g-swing .9s var(--ease-pop) both; }
.g-needle line { stroke: var(--paper); stroke-width: 4; stroke-linecap: round; }
@keyframes g-sweep { from { stroke-dashoffset: 120; } }
@keyframes g-swing { from { transform: rotate(-90deg); } }
.gauge-mid { position: absolute; left: 0; right: 0; top: 64%; text-align: center; pointer-events: none; }
.gauge-pct { display: block; font: 400 clamp(44px, 5vw, 64px)/1 var(--f-display); font-variant-numeric: tabular-nums; }
.gauge-pct i { font-style: normal; font-size: .5em; margin-left: .06em; vertical-align: .22em; }
.gauge-mid > span { display: block; font: 500 11px/1.2 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 251, 244, .65); margin-top: 4px; }
.gauge-legend { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 28px; }
.gauge-legend div { border-top: 2px solid rgba(255, 251, 244, .25); padding-top: 10px; }
.gauge-legend small { display: block; font: 500 11px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; color: rgba(255, 251, 244, .65); margin-bottom: 8px; }
.gauge-legend .lm { font: 400 clamp(22px, 2.2vw, 30px)/1.2 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.gauge-legend .hot .lm { color: var(--bad); } /* a shortfall is --bad in every look (was --pink: acid on Bold's white card) */
.gauge-legend .cool .lm { color: var(--lime); }
/* the cost of waiting: the same dreams from a later start, as a timeline */
.wait-sub { margin: 0 0 14px; color: rgba(255, 251, 244, .7); font-size: 14px; }
/* One baseline for the four bars (1 Oct 2026, round 6): the line owns five rows — figure, bar, label, extra, caption —
   and each node takes them through subgrid, so a two-line label or caption in one column grows that row for all four
   and never lifts one bar. Without subgrid the rows below the bar are fixed heights. */
.wait-line { --wait-bar: 120px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: auto var(--wait-bar) auto auto auto; gap: 6px 10px; padding-top: 6px; }
.wait-node { display: grid; grid-row: span 5; grid-template-rows: subgrid; row-gap: 6px; text-align: center; min-width: 0; }
@supports not (grid-template-rows: subgrid) {
  .wait-node { grid-template-rows: auto var(--wait-bar) 3.4em 2.6em 5.4em; align-content: end; }
  .wait-node > span, .wait-node em, .wait-node small { overflow: hidden; }
}
.wait-node .v { align-self: end; }
.wait-node .bar { align-self: end; }
.wait-node > span, .wait-node em, .wait-node small { align-self: start; }
.wait-node .v { font: 400 clamp(15px, 1.5vw, 21px)/1.2 var(--f-display); font-variant-numeric: tabular-nums; white-space: nowrap; }
.wait-node .bar { display: block; height: var(--h); width: 100%; background: var(--pink); border-radius: 3px 3px 0 0; opacity: .85; transition: height .9s var(--ease-pop); animation: w-rise .9s var(--ease-pop) both; }
.wait-node.now .bar { background: var(--lime); }
.wait-node.late .bar { background: repeating-linear-gradient(135deg, rgba(255, 251, 244, .25) 0 6px, transparent 6px 12px); }
.wait-node > span { font: 600 12px/1.2 var(--f-mono); letter-spacing: .1em; text-transform: uppercase; border-top: 2px solid rgba(255, 251, 244, .35); padding-top: 8px; }
.wait-node em { font-style: normal; font-size: 13px; color: var(--pink); min-height: 1.2em; }
.wait-node em .lm { font: 400 15px/1.2 var(--f-display); }
.wait-node small { font-size: 12px; color: rgba(255, 251, 244, .7); line-height: 1.3; min-height: 1.3em; text-wrap: balance; overflow-wrap: break-word; }
@keyframes w-rise { from { height: 0; } }
/* the vitals, the verdict, the booking card */
.vitals { display: grid; gap: 12px; }
.vital { display: grid; grid-template-columns: 112px minmax(0, 1fr) 70px; gap: 12px; align-items: center; font-size: 14px; }
.vital .nm { font-weight: 700; }
.vital .nm small { display: block; font-weight: 400; font-size: 11px; color: rgba(255, 251, 244, .6); }
.vital .track { height: 14px; background: rgba(255, 251, 244, .12); position: relative; border-radius: 999px; }
.vital .band { position: absolute; top: 0; bottom: 0; background: rgba(53, 224, 176, .3); border-inline: 2px solid var(--mint); }
.vital .dot { position: absolute; top: 50%; width: 18px; height: 18px; margin: -9px 0 0 -9px; border-radius: 50%; border: 3px solid var(--ink); background: var(--c); box-shadow: 0 0 0 2px var(--c); transition: left .6s var(--ease-pop); }
.vital .val { text-align: right; font: 500 14px/1 var(--f-mono); color: var(--c); }
.vital[data-grade='good'] { --c: var(--mint); }
.vital[data-grade='ok'] { --c: var(--sun); }
.vital[data-grade='bad'] { --c: #FF6B7D; }
.vitals-score { font: 400 22px/1 var(--f-display); text-transform: uppercase; margin: 14px 0 0; }
.verdict { padding: 26px; color: var(--ink); background: var(--sun); box-shadow: 8px 8px 0 var(--ink); }
.verdict[data-v='ontrack'] { background: var(--lime); }
.verdict[data-v='fixable'] { background: var(--sun); }
.verdict[data-v='stretch'], .verdict[data-v='overbooked'] { background: var(--tangerine); }
.verdict[data-v='cashflow'] { background: var(--pink); }
.verdict h3 { margin: 0; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; }
.verdict .lede { font: 400 clamp(32px, 3.4vw, 46px)/.95 var(--f-display); text-transform: uppercase; margin: 12px 0; }
.verdict p { margin: 8px 0 0; font-size: 16px; }
.verdict .note { font-size: 14px; opacity: .85; margin-top: 14px; }
.stack { display: flex; height: 38px; margin-top: 14px; overflow: hidden; border: 2px solid var(--ink); }
.stack span { display: grid; place-items: center; font: 600 11px/1 var(--f-mono); min-width: 0; overflow: hidden; white-space: nowrap; color: var(--ink); }
.stack-key { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; font-size: 13px; }
.stack-key i { display: inline-block; width: 10px; height: 10px; margin-right: 5px; vertical-align: -1px; border: 1.5px solid var(--ink); }
.flag { margin-top: 14px; padding: 12px 14px; background: rgba(23, 15, 31, .1); border-left: 4px solid var(--ink); font-size: 15px; }
.cta-card { grid-column: 1 / -1; background: var(--pink); color: var(--paper); padding: 26px; box-shadow: 8px 8px 0 var(--ink); }
.cta-card h3 { margin: 0; font: 400 clamp(30px, 3vw, 42px)/.95 var(--f-display); text-transform: uppercase; }
.cta-card p { margin: 10px 0 18px; font-size: 16px; }
.cta-card .btn { --bg: var(--paper); }

/* ─────────── SHARE ─────────── */
.view-share { background: var(--ink); }
.share { max-width: 1280px; margin: 0 auto; padding: clamp(32px, 5vw, 64px) var(--gutter) 80px; display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 36px; align-items: start; }
.share-title { font: 400 clamp(44px, 6vw, 88px)/.86 var(--f-display); text-transform: uppercase; margin: 0 0 8px; grid-column: 1 / -1; }
.share-title em { font: italic 400 1.08em/1 var(--f-serif); text-transform: none; color: var(--lime); }
.share-stage { position: relative; display: grid; place-items: center; min-height: 420px; padding: 24px; background: var(--ink-2); background-image: var(--dots-light); background-size: 14px 14px; }
.share-stage canvas { max-width: 100%; max-height: min(78svh, 900px); width: auto; height: auto; box-shadow: 0 30px 60px -20px rgba(0, 0, 0, .8); background: var(--ink); }
.share-stage.busy::after { content: 'Painting your board…'; position: absolute; inset: auto 0 18px; text-align: center; font: 500 13px var(--f-mono); color: var(--lime); }
.share-panel { display: grid; gap: 22px; position: sticky; top: calc(var(--top-h) + 20px); }
.share-panel h3 { margin: 0 0 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.fmt-set { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.fmt { appearance: none; border: 2px solid rgba(255, 251, 244, .25); background: transparent; color: var(--paper); padding: 12px; text-align: left; cursor: pointer; font-weight: 700; }
.fmt small { display: block; font-weight: 400; color: rgba(255, 251, 244, .6); font-size: 12px; }
.fmt[aria-checked='true'] { border-color: var(--lime); background: rgba(205, 246, 60, .12); }
.share-panel .switch { color: var(--paper); }
.share-panel .switch input { background: var(--ink-2); box-shadow: inset 0 0 0 2px var(--paper); }
.share-panel .switch input::after { background: var(--paper); }
.share-panel .switch input:checked { background: var(--lime); box-shadow: inset 0 0 0 2px var(--lime); }
.share-panel .switch input:checked::after { background: var(--ink); }
.share-actions { display: grid; gap: 10px; }
.share-tip { font-size: 14px; color: rgba(255, 251, 244, .7); margin: 0; }

/* ─────────── keeping the board (4 Oct 2026): the band on Save it, the chip, the Check it card, the nudge ─────────── */
.keep-band { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(240px, auto); gap: 18px 40px; align-items: center; padding: clamp(20px, 3vw, 34px); border: 2px solid var(--lime); background: color-mix(in srgb, var(--lime) 7%, transparent); color: var(--paper); }
.keep-band h2 { margin: 0 0 12px; font: 400 clamp(30px, 3.6vw, 52px)/.92 var(--f-display); text-transform: uppercase; text-wrap: balance; }
.keep-band h2 em { font: italic 400 1.04em/1 var(--f-serif); text-transform: none; color: var(--lime); }
.keep-band p { margin: 0 0 14px; font-size: 16px; max-width: 64ch; }
.keep-band .kb-eyebrow { margin: 0 0 10px; font: 500 12px/1 var(--f-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.keep-perks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 14px; }
.keep-perks li { display: flex; gap: 8px; align-items: baseline; }
.keep-perks li::before { content: '✓'; font-weight: 700; color: var(--lime); }
.kb-act { display: grid; gap: 10px; }
.kb-note { display: block; font-size: 13px; opacity: .78; text-align: center; }
.keep-band .keep-who { margin: 0 !important; text-align: center; }
.keep-band.is-kept { border-style: dashed; background: transparent; }
.keep-band.is-kept h2 { font-size: clamp(24px, 2.6vw, 34px); }
.keep-band.is-kept p { margin: 0; }
.share-lead { margin: 0; font-size: 15px; opacity: .85; }
@media (max-width: 860px) { .keep-band { grid-template-columns: minmax(0, 1fr); } }
.keep-chip { grid-column: 3; justify-self: end; display: inline-flex; align-items: center; gap: 8px; min-height: 36px; padding: 6px 14px; border: 1px solid var(--lime); border-radius: 999px; background: transparent; color: var(--paper); font: 600 13px/1 var(--f-ui); cursor: pointer; white-space: nowrap; }
.keep-chip:hover { background: color-mix(in srgb, var(--lime) 14%, transparent); }
.keep-chip i { flex: none; width: 9px; height: 9px; border-radius: 50%; border: 2px solid var(--lime); font-style: normal; }
.keep-chip[data-state='changed'] i { background: var(--lime); }
.keep-chip[data-state='kept'] { border-color: color-mix(in srgb, currentColor 30%, transparent); opacity: .8; }
.keep-chip[data-state='kept'] i { width: auto; height: auto; border: 0; color: var(--lime); font-weight: 700; line-height: 1; }
.keep-chip[hidden] { display: none; }
@media (pointer: coarse) { .keep-chip { min-height: 44px; } }
.results > .keep-card { grid-column: 1 / -1; display: grid; gap: 10px; justify-items: start; }
.keep-card .lede { margin: 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 600; }
.keep-card p { margin: 0; max-width: 64ch; }
.keep-card .kb-note { text-align: left; }
.keep-nudge h2 { padding-right: 44px; }
.keep-nudge .keep-perks { flex-direction: column; gap: 6px; margin: 4px 0 6px; font-size: 15px; }
.keep-nudge .keep-perks li::before { color: inherit; }
.tg-one { margin: -4px 0 0; }

/* ─────────── footer, modal, toast ─────────── */
.foot { background: var(--ink); color: rgba(255, 251, 244, .6); padding: 28px var(--gutter) calc(28px + env(safe-area-inset-bottom, 0px)); font-size: 13px; border-top: 1px solid rgba(255, 251, 244, .08); }
.foot p { max-width: 70em; margin: 0 0 8px; }
.foot b { color: var(--paper); }
.foot-row { display: flex; flex-wrap: wrap; gap: 6px 10px; }
.share-next { margin: 0; }
/* the looks, as pills in the footer (each look restyles them) */
.look-row { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.look-label { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; opacity: .7; margin-right: 4px; }
.look-pill { display: inline-flex; align-items: center; gap: 9px; padding: 9px 16px 9px 12px; border-radius: 999px; border: 1px solid rgba(255, 251, 244, .22); color: inherit; text-decoration: none; font: 500 14px/1 var(--f-ui); transition: background .25s, border-color .25s, color .25s; }
.look-pill:hover { border-color: rgba(255, 251, 244, .55); }
.look-pill[aria-current] { background: var(--paper); color: var(--ink); border-color: var(--paper); font-weight: 600; }
.look-dot { width: 12px; height: 12px; border-radius: 50%; background: var(--look-swatch, currentColor); box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); flex: none; }
.look-pill[data-look='exposure'] { --look-swatch: radial-gradient(circle at 35% 35%, #FF2D1F 0 30%, #FF8A00 32% 100%); }
.look-pill[data-look='cinema'] { --look-swatch: #C9A24A; }
.look-pill[data-look='bold-wide'] { --look-swatch: #C8FF00; }
.look-pill[data-look='desi'] { --look-swatch: linear-gradient(135deg, #FFD100 50%, #E4007C 50%); }
/* the version fan: a two-card deck hanging from an arc (React Bits Pro's Card Spread, by hand). The popover opens on the
   card that was tapped and scales up from it (`--ox/--oy`, placed by placeDestPop in app.js); the cards fan out one after
   the other; the hovered or chosen card lifts out along its own axis (`--lift`) and the other gives way (`--push`). */
.tv-pop-wrap { position: fixed; inset: 0; z-index: 62; display: grid; place-items: center; padding: 20px; }
.tv-pop-wrap[hidden] { display: none; }
.tv-pop-wrap.anchored { display: block; padding: 0; }
.tv-pop-scrim { position: absolute; inset: 0; background: rgba(0, 0, 0, .6); backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px); opacity: 0; transition: opacity .3s; }
.tv-pop-wrap.open .tv-pop-scrim { opacity: 1; }
.tv-pop { position: relative; width: min(600px, 100%); max-height: calc(100svh - 40px); overflow: auto; background: var(--paper); color: var(--ink); border: 1px solid rgba(255, 251, 244, .16); border-radius: 12px; padding: 22px 24px 20px; box-shadow: 0 60px 120px -40px #000; opacity: 0; transform: scale(.4); transform-origin: var(--ox, 50%) var(--oy, 50%); transition: opacity .28s, transform .5s var(--ease-pop); }
.tv-pop-wrap.anchored .tv-pop { position: absolute; }
.tv-pop-wrap.open .tv-pop { opacity: 1; transform: none; }
.tv-pop .ed-close { position: absolute; top: 14px; right: 14px; z-index: 3; }
.tv-pop h2 { margin: 6px 0 4px; font: 400 clamp(30px, 4vw, 44px)/.96 var(--f-display); text-transform: uppercase; }
.tv-pop .tv-line { margin: 0 0 10px; color: var(--ink-soft); }
.pop-age { margin: 4px 0 0; }
.fan { --cw: 224px; --ch: 300px; --R: 520px; --spread: 18deg; position: relative; height: calc(var(--ch) + 64px); margin: 6px 0 2px; }
.fan-card {
  --a: calc((var(--i) - .5) * var(--spread)); --push: 0deg; --lift: 0px;
  position: absolute; left: 50%; top: 40px; width: var(--cw); height: var(--ch); margin-left: calc(var(--cw) / -2);
  appearance: none; border: 1px solid rgba(255, 251, 244, .16); background: var(--ink-2); color: var(--paper); border-radius: 12px; overflow: hidden; padding: 0; text-align: left; cursor: pointer;
  box-shadow: 0 24px 50px -24px rgba(0, 0, 0, .8);
  transform-origin: 50% calc(50% + var(--R)); transform: rotate(calc(var(--a) + var(--push))) translateY(var(--lift));
  transition: transform .55s var(--ease-pop), opacity .35s, border-color .3s, box-shadow .3s;
}
.fan-card .ph { position: absolute; inset: 0; aspect-ratio: auto; border-radius: 0; }
.fan-card .ph img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.85) brightness(.8); transition: filter .4s; }
.fan-card::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 45%, rgba(0, 0, 0, .82)); pointer-events: none; }
.fan-label { position: absolute; left: 16px; right: 12px; bottom: 14px; z-index: 2; display: grid; gap: 4px; }
.fan-label b { font: 400 24px/1 var(--f-display); text-transform: uppercase; color: #fff; }
.fan-label > span { font: 500 18px/1.2 var(--f-mono); color: var(--lime); }
.fan-label > span em { font: 400 12px/1 var(--f-ui); color: rgba(255, 255, 255, .7); font-style: normal; margin-left: 4px; }
.fan-label small { font: 400 11px/1.3 var(--f-ui); color: rgba(255, 255, 255, .7); }
.fan-card:hover, .fan-card:focus-visible { --lift: -26px; z-index: 2; }
.fan-card[aria-checked='true'] { --lift: -14px; border-color: var(--lime); box-shadow: 0 0 0 2px var(--lime), 0 30px 60px -30px #000; z-index: 1; }
.fan-card[aria-checked='true']:hover { --lift: -30px; }
.fan-card[aria-checked='true'] .ph img { filter: none; }
.fan:has(.fan-card:nth-child(1):hover) .fan-card:nth-child(2) { --push: 3.6deg; }
.fan:has(.fan-card:nth-child(2):hover) .fan-card:nth-child(1) { --push: -3.6deg; }
@media (hover: none) { .fan-card:hover { --lift: 0px; } .fan-card[aria-checked='true']:hover { --lift: -14px; } .fan:has(.fan-card:hover) .fan-card { --push: 0deg; } }
/* before it opens: both cards sit stacked; then they fan out one after the other (the stagger is dropped once settled, so a hover answers at once) */
.tv-pop-wrap:not(.open) .fan-card { transform: rotate(0) translateY(0) scale(.92); opacity: 0; }
.tv-pop-wrap.open:not(.settled) .fan-card { transition-delay: calc(var(--i) * 80ms); }
.tv-pop .ed-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 10px; }
@media (max-width: 640px) { .tv-pop { padding: 18px 16px 16px; } .fan { --cw: 150px; --ch: 200px; --R: 420px; --spread: 20deg; height: calc(var(--ch) + 52px); } .fan-card { top: 32px; } .fan-label b { font-size: 18px; } .fan-label > span { font-size: 15px; } }
/* drag the number (js/bits/scrub.js): the field keeps its look; a ribbon of ticks wakes underneath while it is dragged */
.scrub { position: relative; display: inline-block; cursor: ew-resize; touch-action: pan-y; }
.scrub input { transition: transform .25s var(--ease-pop); will-change: transform; }
.scrub .wake { position: absolute; left: 50%; width: max(100%, 120px); transform: translateX(-50%); top: 100%; height: 10px; display: flex; align-items: flex-start; gap: 2px; pointer-events: none; opacity: 0; transition: opacity .3s; } /* hangs off the underline into the line gap, never over the next line */
.scrub.drag .wake, .scrub.seen:hover .wake, .scrub.seen:focus-within .wake { opacity: 1; }
.scrub-hint { position: absolute; left: 50%; top: calc(100% + 1px); transform: translateX(-50%); font: 500 10px/1 var(--f-ui); letter-spacing: .16em; text-transform: uppercase; white-space: nowrap; opacity: 0; transition: opacity .25s; pointer-events: none; color: currentColor; }
.scrub:not(.seen):hover .scrub-hint, .scrub:not(.seen):focus-within .scrub-hint { opacity: .75; }
.scrub.drag .scrub-hint, .scrub.seen .scrub-hint { opacity: 0; }
.scrub.nudge input { animation: scrub-nudge 1.3s ease-in-out 2; }
@keyframes scrub-nudge { 0%, 100% { transform: translateX(0); } 25% { transform: translateX(5px); } 75% { transform: translateX(-5px); } }
/* the celebration: the sign switches on (js/fx.js) */
.led-on { animation: led-on .95s steps(1, end); }
@keyframes led-on { 0% { opacity: .15; } 8% { opacity: 1; } 14% { opacity: .2; } 22% { opacity: 1; } 30% { opacity: .35; } 38% { opacity: 1; } 55% { opacity: .7; } 100% { opacity: 1; } }
/* the map moves: drag to pan, wheel or the buttons to zoom */
.tv-map { position: relative; }
.tv-map svg { cursor: grab; touch-action: pan-y; overflow: hidden; border-radius: 6px; }
.tv-map svg.grabbing { cursor: grabbing; }
.tv-map .land, .tv-map .arc { vector-effect: non-scaling-stroke; }
.map-zoom { position: absolute; right: calc(var(--gutter) + 8px); top: 8px; z-index: 2; display: grid; gap: 4px; }
.map-zoom button { appearance: none; width: 34px; height: 34px; border-radius: 6px; border: 1px solid rgba(255, 251, 244, .3); background: rgba(23, 15, 31, .8); color: var(--paper); font: 500 16px/1 var(--f-ui); cursor: pointer; }
.map-zoom button:hover { border-color: var(--paper); }
.scrub .wake i { flex: 1; height: 100%; background: rgba(255, 251, 244, .22); transform-origin: top; transform: scaleY(.2); border-radius: 0 0 2px 2px; will-change: transform; }
.scrub .wake i.on { background: var(--lime); }
/* colour follows you (chromaMount in app.js): a per-photo greyscale veil masked by one shared pool the pointer carries */
html.chroma .grid { --x: 50%; --y: 50%; --r: 1px; }
html.chroma .tile .ph .cv { position: absolute; inset: 0; z-index: 1; pointer-events: none; backdrop-filter: grayscale(1) brightness(.62); -webkit-backdrop-filter: grayscale(1) brightness(.62); -webkit-mask-image: radial-gradient(circle var(--r) at calc(var(--x) - var(--ox, 0px)) calc(var(--y) - var(--oy, 0px)), transparent 0, transparent 20%, rgba(0,0,0,.4) 48%, rgba(0,0,0,.85) 78%, #000 100%); mask-image: radial-gradient(circle var(--r) at calc(var(--x) - var(--ox, 0px)) calc(var(--y) - var(--oy, 0px)), transparent 0, transparent 20%, rgba(0,0,0,.4) 48%, rgba(0,0,0,.85) 78%, #000 100%); }
html.chroma .tile[aria-pressed='true'] .ph .cv, html.chroma .tile:hover .ph .cv { display: none; }
html.chroma .tile:not([aria-pressed='true']) .ph img { filter: none; }
html.chroma .tile .ph .tint { display: none; }
.share-stage canvas { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; }
/* the save gate's "Don't have one?" consent form */
details.gate-alt { margin-top: 12px; }
details.gate-alt > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
details.gate-alt > summary::-webkit-details-marker { display: none; }
details.gate-alt > summary::after { content: '▾'; font-size: .9em; transition: transform .2s; }
details.gate-alt[open] > summary::after { transform: rotate(180deg); }
.gate-form { display: grid; gap: 12px; margin-top: 14px; padding-top: 14px; border-top: 1px solid color-mix(in srgb, currentColor 18%, transparent); }
.gate-note { margin: 0; font-size: 14px; opacity: .8; }
.consent { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.4; cursor: pointer; }
.consent input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: var(--lime); }
body[data-view='dream'] .foot { margin-right: var(--receipt-w); }

.modal { border: 0; padding: 0; background: var(--paper); color: var(--ink); width: min(560px, calc(100% - 32px)); max-height: calc(100svh - 40px); box-shadow: 12px 12px 0 var(--pink), 0 40px 80px -20px rgba(0, 0, 0, .7); }
.modal::backdrop { background: rgba(23, 15, 31, .7); backdrop-filter: blur(4px); }
.modal-body { padding: 26px; display: grid; gap: 16px; }
.modal h2 { margin: 0; font: 400 40px/.92 var(--f-display); text-transform: uppercase; }
.modal h2 em { font: italic 400 1.08em/1 var(--f-serif); text-transform: none; color: var(--pink); }
.modal p { margin: 0; }
.modal .close-x { position: absolute; top: 12px; right: 12px; width: 40px; height: 40px; border-radius: 50%; border: 2px solid var(--ink); background: var(--paper); cursor: pointer; font-weight: 700; }
.msg-preview { background: var(--paper-2); padding: 14px; font: 400 13px/1.5 var(--f-mono); white-space: pre-wrap; max-height: 200px; overflow: auto; }
.assume-grid { display: grid; gap: 14px; }

.toast { position: fixed; z-index: 90; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); translate: -50% calc(100% + 60px); visibility: hidden; background: var(--ink); color: var(--paper); border: 2px solid var(--lime); padding: 12px 18px; font-weight: 600; font-size: 15px; box-shadow: 6px 6px 0 var(--lime); max-width: min(520px, calc(100% - 32px)); transition: translate .45s var(--ease-pop); pointer-events: none; }
.toast.show { translate: -50% 0; visibility: visible; }
.toast b { color: var(--lime); }
.fx-layer { position: fixed; inset: 0; z-index: 95; pointer-events: none; width: 100%; height: 100%; }

/* ─────────── motion (see js/motion.js) ─────────── */
:root { --ease-main: cubic-bezier(.625, .05, 0, 1); --ease-energy: cubic-bezier(.32, .72, 0, 1); --ease-out2: cubic-bezier(.33, 1, .68, 1); }
[data-reveal='lines'] { visibility: hidden; }
[data-reveal='lines'].is-ready { visibility: visible; }
[data-reveal='lines'] .mask { display: inline-block; overflow: hidden; vertical-align: bottom; padding-bottom: .06em; margin-bottom: -.06em; }
[data-reveal='lines'] .line { display: inline-block; translate: 0 115%; will-change: transform; }
[data-reveal='lines'].is-in .line { transition: translate .7s var(--ease-energy) calc(var(--i, 0) * .08s); translate: 0 0; }
[data-reveal='fade'] { opacity: 0; translate: 0 14px; transition: opacity .6s var(--ease-energy) .25s, translate .6s var(--ease-energy) .25s; }
[data-reveal='fade'].is-in { opacity: 1; translate: 0 0; }
[data-reveal='rise'] { opacity: 0; translate: 0 40px; transition: opacity .8s var(--ease-out2), translate .8s var(--ease-out2); }
[data-reveal='rise'].is-in { opacity: 1; translate: 0 0; }
[data-stagger] > * { opacity: 0; translate: 0 36px; transition: opacity .7s var(--ease-energy) calc(var(--i, 0) * .06s), translate .7s var(--ease-energy) calc(var(--i, 0) * .06s); }
[data-stagger].is-in > * { opacity: 1; translate: 0 0; }
[data-stagger].is-in > .tile-wrap { transition-property: opacity, translate; }

::view-transition-old(root) { animation: vt-out .4s var(--ease-main) both; }
::view-transition-new(root) { animation: vt-in .6s var(--ease-main) .4s both; }
@keyframes vt-out { to { opacity: 0; translate: 0 -12px; } }
@keyframes vt-in { from { opacity: 0; translate: 0 18px; } }
.cpf-box { background: var(--paper-2); padding: 14px 16px; display: grid; gap: 10px; }
.cpf-note { margin: 0; font-size: 14px; color: var(--ink-soft); line-height: 1.45; }
.cpf-note b { color: var(--ink); }
.th-cpf { margin: 12px 0 0; font-size: 14px; color: rgba(255, 251, 244, .78); border-top: 1px solid rgba(255, 251, 244, .15); padding-top: 10px; }
.th-cpf b { color: var(--mint); }
@media (prefers-reduced-motion: reduce) {
  [data-reveal], [data-stagger] > * { opacity: 1 !important; translate: 0 0 !important; transition: none !important; }
  [data-reveal='lines'] .line { translate: 0 0 !important; }
  ::view-transition-old(root), ::view-transition-new(root) { animation: none; }
}

/* ─────────── responsive ─────────── */
@media (max-width: 1100px) {
  .card, .card.third { grid-column: span 12; }
  .check-in, .results { grid-template-columns: 1fr; }
  .share { grid-template-columns: 1fr; }
  .share-panel { position: static; }
}
@media (max-width: 960px) {
  :root { --receipt-w: 0px; }
  .steps a { font-size: 0; gap: 0; padding: 6px; }
  .keep-chip { padding: 6px 10px; gap: 6px; font-size: 12px; }
  .steps a b { font-size: 12px; }
  .dream { grid-template-columns: 1fr; }
  .receipt-col { position: fixed; z-index: 50; left: 0; right: 0; bottom: 0; top: auto; min-height: 0; background: none; pointer-events: none; }
  .rbar {
    pointer-events: auto; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; width: 100%;
    border: 0; border-top: 3px solid var(--lime); background: var(--ink); color: var(--paper); text-align: left; cursor: pointer;
    padding: 12px var(--gutter) calc(12px + env(safe-area-inset-bottom, 0px));
  }
  .rbar .k { display: block; font: 500 11px/1.3 var(--f-mono); text-transform: uppercase; letter-spacing: .08em; color: rgba(255, 251, 244, .7); }
  .rbar .v { display: block; font: 400 24px/1.1 var(--f-display); margin-top: 2px; }
  .rbar .v b { color: var(--lime); font-weight: 400; }
  .rbar .go { background: var(--lime); color: var(--ink); border-radius: 999px; padding: 10px 14px; font-weight: 700; font-size: 14px; }
  .receipt { display: none; pointer-events: auto; position: fixed; left: 12px; right: 12px; bottom: calc(76px + env(safe-area-inset-bottom, 0px)); top: calc(var(--top-h) + 12px + env(safe-area-inset-top, 0px)); margin: 0; max-height: none; }
  .receipt-col.open .receipt { display: block; animation: rise .3s var(--ease-pop); }
  .editor-wrap { inset: 0; padding: 0; place-items: end stretch; }
  .editor { width: 100%; max-height: 92svh; box-shadow: 0 -10px 40px rgba(0, 0, 0, .5); animation: sheet .35s var(--ease-pop); }
  @keyframes sheet { from { transform: translateY(40%); } }
  .foot { padding-bottom: 110px; }
  body[data-view='dream'] .foot { margin-right: 0; }
  .how { grid-template-columns: 1fr; }
  .tv-sheet-in { grid-template-columns: 1fr; }
  .tv-form { grid-template-columns: 1fr; }
  .picker-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .plan-set { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .build-row { grid-template-columns: minmax(0, 1fr) 120px; }
  .tile-wrap.hero { grid-column: span 2; }
  .tv-sheet-in .ph { aspect-ratio: 16 / 9; height: auto; }
  .tv-grid { gap: 22px 14px; }
  .tv-name { font-size: 18px; }
  .view-start { display: flex; flex-direction: column; }
  body:not([data-view='start']) .view-start { display: none; }
  .start-collage { position: relative; inset: auto; order: 3; display: flex; gap: 18px; overflow-x: auto; padding: 18px var(--gutter) 40px; scroll-snap-type: x mandatory; pointer-events: auto; scrollbar-width: none; }
  .start-collage .pc { position: relative; top: auto; left: auto; right: auto; flex: 0 0 150px; scroll-snap-align: center; animation: none; }
}
@media (max-width: 640px) {
  :root { --top-h: 58px; }
  .topbar .btn { font-size: 13px; padding: 9px 12px; }
  .logo { font-size: 28px; }
  .tiers { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
  .tier small { display: none; }
  .tier b { font-size: 15px; }
  .ed-body { padding: 18px 16px 22px; }
  .ed-hero h2 { left: 16px; }
  .grid { gap: 26px 16px; }
  .tile-name { font-size: 19px; }
  .tile-line { font-size: 15px; }
  .tile .tag { font-size: 16px; right: -8px; }
  .bar { grid-template-columns: minmax(0, 1fr) auto; }
  .bar .v { white-space: nowrap; }
  .bar .track { grid-column: 1 / -1; grid-row: 2; }
  .gauge-legend { grid-template-columns: 1fr 1fr; }
  .wait-line { --wait-bar: 90px; gap: 6px; }
  .frow { grid-template-columns: minmax(0, 1fr) 132px; }
  .vital { grid-template-columns: 92px minmax(0, 1fr) 56px; }
  .madlib { transform: none; box-shadow: 6px 6px 0 var(--pink), var(--shadow-lift); }
  .card { padding: 20px; box-shadow: 6px 6px 0 var(--ink); }
  .monthly .m-split { grid-template-columns: 1fr; }
  .dream-bars .bar { grid-template-columns: minmax(0, 1fr) auto; }
  #wait-card .wait-row { grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; }
  #wait-card .wait-row .k { white-space: normal; }
  #wait-card .wait-row .v { white-space: nowrap; }
  #wait-card .wait-row small.more { grid-column: 1 / -1; text-align: left; }
  .talk-v { font-size: clamp(34px, 11vw, 46px); }
  .deeper > summary { padding: 14px 16px; }
}
@media (min-width: 761px) and (max-width: 1100px) { .card.talk { grid-column: span 4; } .talk-v { font-size: clamp(28px, 3.6vw, 40px); } }

/* ─────────── Round 3 (1 Oct 2026): phone first — a friend of a client, a forwarded link, alone on a phone ─────────── */
/* the gutter clears a notch in landscape; the page follows the on-screen keyboard (--vvh/--vvt from app.js) */
:root { --gutter: max(clamp(16px, 3.2vw, 44px), env(safe-area-inset-left, 0px), env(safe-area-inset-right, 0px)); }
/* one rule for the sign and the unit beside every readout figure: the same face, the same size; "$" raised, "/mo" on the line */
.lm i, .talk-v > i, .gauge-pct i { font-family: var(--f-ui); font-style: normal; font-weight: 500; font-size: .42em; letter-spacing: .02em; margin: 0 0 0 .12em; vertical-align: baseline; }
.lm > i:first-child { margin: 0 .1em 0 0; vertical-align: .95em; }
/* a share above 100%: the bar is the whole take-home plus the overrun; a mark at 100%, the overrun in proportion */
.talk-bar.over { overflow: visible; margin: 0 0 16px; }
.talk-bar.over > span { width: var(--cap); background-image: none; }
.talk-bar.over::after { content: none; }
.talk-spill { position: absolute; top: 0; bottom: 0; left: var(--cap); right: 0; background: var(--bad); background-image: repeating-linear-gradient(-45deg, transparent 0 5px, rgba(0, 0, 0, .35) 5px 8px); }
.talk-100 { position: absolute; left: var(--cap); top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: currentColor; }
.talk-100 em { position: absolute; top: 100%; left: 50%; translate: -50% 4px; font: 600 10px/1 var(--f-ui); font-style: normal; letter-spacing: .08em; white-space: nowrap; opacity: .85; }
/* the headline's help reads as help */
.qmark { position: relative; }
.qmark:not(.qmark-pill)::before { content: ''; position: absolute; inset: -10px; border-radius: 50%; } /* a 44 px finger target round a small mark */
.qmark.qmark-pill { width: auto; height: auto; min-height: 44px; gap: 8px; padding: 6px 16px 6px 8px; border-radius: 999px; font: 500 14px/1.1 var(--f-ui); letter-spacing: .01em; text-transform: none; display: inline-flex; align-items: center; white-space: nowrap; }
.qmark-pill .qm { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1.5px solid currentColor; font: 600 14px/1 var(--f-display); flex: none; }
.reveal-row { flex-wrap: wrap; }
/* "Go deeper" and "The full check": a round + that reads as a button */
.deeper > summary { align-items: center; }
.deeper > summary::after { display: inline-grid; place-items: center; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid currentColor; font: 400 24px/1 var(--f-ui); transition: transform .3s var(--ease-pop), background .2s; }
.deeper > summary:hover::after { background: color-mix(in srgb, currentColor 14%, transparent); }
.deeper[open] > summary::after { transform: rotate(180deg); }
/* the tagline stands clear of the card */
.start-inner .hero-tag { margin-bottom: clamp(28px, 5vw, 44px); }
.start-inner .hero-tag:has(+ .start-keep) { margin-bottom: 12px; }
.start-keep { max-width: 560px; margin: 0 auto clamp(24px, 4vw, 36px); padding: 10px 16px; border: 1px solid rgba(255, 251, 244, .28); border-radius: 999px; background: rgba(23, 15, 31, .64); color: var(--paper); font: 500 14px/1.45 var(--f-ui); text-wrap: balance; }
.onboarding { gap: 13px; }
.onboarding > p:first-of-type { font-size: 15px; line-height: 1.5; }
.onboarding-steps { display: flex; flex-wrap: wrap; gap: 6px 12px; padding: 9px 0; border-block: 1px solid color-mix(in srgb, currentColor 18%, transparent); font: 600 12px/1.3 var(--f-ui); }
.onboarding-steps span:first-child { color: var(--pink); }
.onboarding .consent { padding: 10px 12px; border: 1px solid color-mix(in srgb, currentColor 20%, transparent); border-radius: 10px; background: color-mix(in srgb, var(--paper) 88%, var(--ink)); }
.onboarding .consent a { font-weight: 700; }
.onboarding .ed-foot .field-hint { max-width: 230px; line-height: 1.35; }
@media (max-width: 600px) { .start-keep { border-radius: 16px; } .onboarding .ed-foot .field-hint { max-width: none; } }
.link-status { max-width: 660px; margin: -12px auto 28px; padding: 12px 16px; border: 1px solid color-mix(in srgb, var(--ink) 35%, transparent); border-radius: 12px; color: var(--ink); background: color-mix(in srgb, var(--paper) 78%, transparent); font-size: 16px; line-height: 1.4; text-align: center; }
/* the footer: no separators to strand at a line end; every link a finger-sized target */
.foot-row { display: flex; flex-wrap: wrap; gap: 0 22px; max-width: 70em; margin: 4px 0 0; }
.foot-row > * { display: inline-flex; align-items: center; min-height: 44px; }
.madlib-foot .linkish, .welcome-back .linkish { min-height: 44px; }
/* one board per Telegram (2 Oct 2026): refused, the way on is its own board — the dialog's one action, on its own line */
.tg-taken-act { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 12px; }
.tg-taken-act small { font-size: 13px; color: inherit; }
details.gate-alt > summary { min-height: 44px; }
.modal .close-x { width: 44px; height: 44px; }
.look-pill { min-height: 44px; }
.look-start .look-pill { min-height: 44px; }
.fmt { min-height: 44px; }
/* no iOS zoom on focus: every field is at least 16 px on a touch screen */
.field input[type='tel'], .field input[type='email'] { border: 2px solid var(--ink); background: var(--paper); color: var(--ink); border-radius: 10px; padding: 10px 12px; font: 600 16px/1.2 var(--f-ui); width: 100%; }
@media (pointer: coarse) { input:not([type='range']):not([type='checkbox']):not([type='radio']), select, textarea { font-size: max(16px, 1em) !important; } }
/* a dialog holds the page still, and on a phone sits inside what the keyboard leaves of the screen */
html.modal-open, html.modal-open body { overflow: hidden; }
.modal { overscroll-behavior: contain; }
/* the picture on a phone: Save to Photos (the share sheet), or press and hold */
.save-sheet .modal-body { justify-items: center; text-align: center; }
.save-img { display: block; max-width: 100%; max-height: min(58svh, 640px); width: auto; height: auto; margin: 0 auto; -webkit-touch-callout: default; -webkit-user-select: auto; user-select: auto; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .6); }
.save-how { font-size: 15px; }
.save-sheet .share-actions { width: 100%; }
/* while a dream is held, the receipt bar steps aside so the bottom horizon can be reached */
body.board-dragging .receipt-col { pointer-events: none; opacity: .25; transition: opacity .2s; }
body.board-dragging .rbar { pointer-events: none; }
@media (max-width: 960px) {
  .foot { padding-bottom: calc(28px + env(safe-area-inset-bottom, 0px)); }
  body[data-view='dream'] .foot { padding-bottom: calc(96px + env(safe-area-inset-bottom, 0px)); }
  /* the step bar: four 44 px targets; the step you're on is named, the ones done carry a tick */
  .steps a { min-width: 44px; min-height: 44px; justify-content: center; }
  .steps a[aria-current='step'] { font-size: 13px; gap: 6px; padding-right: 12px; }
  .steps a.done:not([aria-current]) b { font-size: 0 !important; }
  .steps a.done:not([aria-current]) b::before { content: '✓'; font: 700 13px/1 system-ui, sans-serif; }
  .editor-wrap { top: var(--vvt, 0px); bottom: auto; height: var(--vvh, 100dvh); }
  .editor { max-height: calc(var(--vvh, 100svh) * .92); }
  .ed-body { padding-bottom: calc(22px + env(safe-area-inset-bottom, 0px)); }
}
/* B12: no faint grey — the quiet lines are lifted to AA in every look (the looks lift their own soft ink too) */
.look-label { opacity: 1; }
.keep-who { opacity: .92; }
.ed-sum .row small { opacity: .88; }
.deeper > summary small, .rp-k, .monthly .mrow small { opacity: .88; }
@media (max-width: 640px) {
  body[data-view='start'] .steps, body[data-view='guest'] .steps { display: none; }
  body:not([data-view='start']) .logo-word { display: none; }
  .topbar { grid-template-columns: auto 1fr; gap: 8px; }
  .topbar .steps { justify-content: flex-end; }
  .keep-chip { display: none !important; } /* no room beside the steps on a phone: the band, the nudge and the cards carry it */
  .modal { inset: var(--vvt, 0px) 0 auto; margin: 12px auto; max-height: calc(var(--vvh, 100dvh) - 24px); overflow: auto; }
  /* the looks: the label on its own line, the three side by side (a long name may take two lines in its pill) */
  .look-row, .look-start { display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 8px; }
  .look-row .look-label, .look-start .look-label { grid-column: 1 / -1; margin: 0; }
  .look-row .look-pill, .look-start .look-pill { white-space: normal; line-height: 1.1; padding: 8px 14px 8px 10px; }
  .reveal-row .qmark-pill { margin-top: 4px; }
  .deeper > summary { flex-wrap: nowrap; display: grid; grid-template-columns: minmax(0, 1fr) auto; }
  .deeper > summary small { grid-column: 1; }
  .deeper > summary::after { grid-row: 1 / span 2; grid-column: 2; }
}
/* round 4: a keyboard can see where it is in the front door's sentence, in every look */
.madlib input:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
