/* FateTips V3 · onboarding.html — cinematic first run (VARIANCE 7 / MOTION 8 / DENSITY 1).
   Reads tokens.css only. Motion: transform / opacity / filter / clip-path; every sequence has a
   reduced-motion branch at the bottom. No fixed full-viewport layers: the scene is sticky and its
   frame dries to transparent at the bottom (家規 1, 10). */

.ob {
  /* L 2026-09-30 (iPhone, Safari 26 compact tab bar):「全部都縮在上面, 下面留空了很多…應該要 stick to bottom」.
     Root cause: svh is the viewport with Safari's chrome at its LARGEST; the compact floating bar is smaller, so a
     100svh box ended ~⅙ of the screen above the bar and the CTA floated mid-air. The content box now follows the
     visible height (dvh = the same edge the app's fixed nav sits on); the painting keeps svh so it never moves (家規 1). */
  --ob-scene-h: calc(100svh - var(--frame-top) - var(--frame-bottom));
  --ob-h: calc(100dvh - var(--frame-top) - var(--frame-bottom));
  --ob-pad-b: calc(var(--sab) + 18px);
  overflow-x: clip;
  /* years sit inside Chinese sentences (2029年): the display serif's old-style figures look lowercase there */
  font-variant-numeric: lining-nums;
}

/* ── Scene ───────────────────────────────────────────────────────────────────── */
.ob-scene {
  position: sticky;
  top: var(--frame-top);
  z-index: 0;
  height: var(--ob-scene-h);
  margin-bottom: calc(-1 * var(--ob-scene-h));
  overflow: hidden;
  pointer-events: none;
}
.ob-scene__frame {
  position: absolute;
  inset: 0 0 auto 0;
  aspect-ratio: 9 / 16;
  max-height: 100%;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(#000 0 58%, rgba(0, 0, 0, .5) 80%, transparent 100%);
  mask-image: linear-gradient(#000 0 58%, rgba(0, 0, 0, .5) 80%, transparent 100%);
}
.ob-scene__stills, .ob-still, .ob-scene__v {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 0;
}
.ob-still { opacity: 0; transition: opacity 700ms var(--ease-out); }
.ob-still.is-on { opacity: 1; }
.ob-scene__v { opacity: 0; transition: opacity 700ms var(--ease-out); background: transparent; }
.ob-scene__v.is-on { opacity: 1; }

/* element wash: the user's day-master pigment blooms under the gathering stems */
.ob-wash {
  position: absolute;
  inset: 0;
  background: radial-gradient(60% 40% at 50% 46%, var(--wash, transparent), transparent 70%);
  mix-blend-mode: multiply;
  opacity: 0;
  transform: scale(.7);
  transition: opacity 1600ms var(--ease-out), transform 2400ms var(--ease-out);
}
.ob-wash.is-on { opacity: .26; transform: scale(1.15); }
body:not([data-step="gather"]):not([data-step="reveal"]) .ob-wash { opacity: 0; }

/* paper mist: a light band under the header, then paper rising to exactly where the question
   begins (--mt, measured by JS), so copy never sits on ink */
@property --mt { syntax: '<length>'; inherits: true; initial-value: 440px; }
.ob-mist {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
    color-mix(in srgb, var(--paper) 84%, transparent) 0,
    color-mix(in srgb, var(--paper) 62%, transparent) calc(var(--sat) + 46px),
    color-mix(in srgb, var(--paper) 0%, transparent) calc(var(--sat) + 100px),
    color-mix(in srgb, var(--paper) 0%, transparent) max(calc(var(--sat) + 64px), calc(var(--mt) - 150px)),
    color-mix(in srgb, var(--paper) 90%, transparent) max(calc(var(--sat) + 96px), calc(var(--mt) - 12px)),
    color-mix(in srgb, var(--paper) 95%, transparent) max(calc(var(--sat) + 200px), calc(var(--mt) + 130px)),
    var(--paper) 100%);
  transition: opacity 700ms var(--ease-out);
}
.ob-scene { transition: --mt 700ms var(--ease-out); }
body[data-step="splash"] .ob-mist, body[data-step="story"] .ob-mist { opacity: 0; }
/* the reading moment happens on quiet paper (the reference goes to flat grey here) */
body[data-step="gather"] .ob-mist { background: color-mix(in srgb, var(--paper) 90%, transparent); }
body[data-step="reveal"] .ob-mist {
  background: linear-gradient(to bottom, color-mix(in srgb, var(--paper) 55%, transparent), color-mix(in srgb, var(--paper) 90%, transparent) 36%, var(--paper));
}

/* the story caption, written into the painting like an inscription (題款) */
.ob-inscription {
  position: absolute;
  top: calc(var(--sat) + 64px);
  left: calc(var(--gutter) + 2px);
  /* never reaches the question: stops 28px above where the mist rises (--mt) */
  max-height: min(290px, max(0px, calc(var(--mt) - var(--sat) - 64px - 28px)));
  writing-mode: vertical-rl;
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.95;
  letter-spacing: .28em;
  color: var(--ink-2);
  transition: opacity 300ms var(--ease-out), filter 300ms var(--ease-out);
}
.ob-inscription.is-out { opacity: 0; filter: blur(3px); }
.ob-inscription.is-cramped { visibility: hidden; }
.ob-ch {
  display: inline-block;
  animation: ob-seep var(--ins-dur, 1100ms) cubic-bezier(.25, .46, .45, .94) both;
  /* --ins-step / --ins-dur come from inscribe(): 110 ms / 1100 ms per Chinese character, 28 ms / 360 ms per Latin letter */
  animation-delay: calc(900ms + var(--i) * var(--ins-step, 110ms));
}
:lang(en) .ob-inscription {
  writing-mode: horizontal-tb;
  max-width: 62%;
  max-height: none;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  letter-spacing: 0;
}
:lang(en) .ob-ch { display: inline; animation-name: ob-seep-flat; }
@keyframes ob-seep {
  0% { opacity: 0; filter: blur(6px); transform: scale(1.06); }
  55% { opacity: .85; filter: blur(1.4px); }
  100% { opacity: 1; filter: blur(0); transform: none; }
}
@keyframes ob-seep-flat { from { opacity: 0; } to { opacity: 1; } }
body[data-step="reveal"] .ob-inscription, body[data-step="gather"] .ob-inscription { opacity: 0; }

/* ── Shell ───────────────────────────────────────────────────────────────────── */
.ob-shell {
  position: relative;
  --top-h: calc(var(--sat) + 52px);
  z-index: 1;
  display: flex;
  flex-direction: column;
  min-height: var(--ob-h);
}
.ob-top {
  position: absolute;
  z-index: 3;
  top: 0; left: 0; right: 0;
  display: grid;
  grid-template-columns: var(--tap) 1fr var(--tap);
  align-items: center;
  gap: 6px;
  padding: calc(var(--sat) + 2px) 8px 0;
  transition: opacity 400ms var(--ease-out), visibility 0s linear 0s;
}
body[data-chrome="off"] .ob-top { opacity: 0; visibility: hidden; transition: opacity 200ms var(--ease-out), visibility 0s linear 200ms; }
body[data-step="gather"] .ob-top .ob-back,
body[data-step="reveal"] .ob-top .ob-progress { visibility: hidden; }
body[data-step="gather"] .ob-top, body[data-step="reveal"] .ob-top { opacity: 1; visibility: visible; }
.ob-back svg, .ob-sound svg { width: 22px; height: 22px; }
.ob-sound { color: var(--ink-2); }
.ob-progress { display: flex; gap: 4px; padding: 0 6px; }
.ob-progress i {
  position: relative;
  flex: 1 1 0;
  height: 2px;
  border-radius: 2px;
  background: var(--line-strong);
  overflow: hidden;
}
.ob-progress i::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--ink);
  transform: scaleX(var(--f, 0));
  transform-origin: left center;
  transition: transform 700ms var(--ease-out);
}

.ob-stage {
  position: relative;
  flex: 1 1 auto;
  display: grid;
  outline: none;
}
.ob-stage > .ob-step { grid-area: 1 / 1; min-width: 0; }

/* ── Question steps ──────────────────────────────────────────────────────────── */
.ob-step { display: flex; flex-direction: column; padding: 0 var(--gutter) var(--ob-pad-b); }
.ob-q { padding-top: var(--top-h); }
.ob-q__wrap { margin-top: auto; padding-top: 24px; }
.ob-q__title {
  font-family: var(--font-display);
  font-size: 22.4px;
  font-weight: 500;
  line-height: 1.24;
  letter-spacing: .04em;
  outline: none;
}
:lang(en) .ob-q__title { font-size: 22.4px; letter-spacing: -.005em; line-height: 1.1; }
.ob-q__opt { font-family: var(--font-ui); font-size: 14px; font-weight: 500; letter-spacing: .04em; color: var(--ink-2); vertical-align: .35em; margin-left: 6px; }
.ob-q__sub {
  margin-top: 10px;
  max-width: 21em;
  text-wrap: balance;
  font-family: var(--font-display);
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--ink-2);
}
:lang(en) .ob-q__sub { font-style: italic; font-size: 18px; line-height: 1.4; max-width: 19em; }
.ob-q__body { margin-top: 26px; }
.ob-q__foot { display: grid; gap: 6px; justify-items: center; margin-top: 26px; }
.ob-cta { min-height: 54px; font-size: 16px; letter-spacing: .08em; }
:lang(en) .ob-cta { letter-spacing: .01em; }
.ob-cta[disabled] { opacity: 1; background: color-mix(in srgb, var(--ink) 14%, transparent); color: var(--ink-2); box-shadow: none; }
/* (arrow on a disabled CTA keeps its colour; the button itself fades) */

.ob-textlink {
  position: relative;
  min-height: var(--tap);
  padding: 0 12px;
  font-size: 14.5px;
  color: var(--ink-2);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: .3em;
  transition: color var(--dur-micro) ease;
}
.ob-textlink[aria-pressed="true"] { color: var(--ink); text-decoration-color: var(--ink); }
@media (hover: hover) and (pointer: fine) { .ob-textlink:hover { color: var(--ink); } }
.ob-links { display: flex; justify-content: center; gap: 4px; flex-wrap: wrap; }

/* choices: white-mist glass (L-locked material) */
.ob-choices { display: grid; gap: 10px; }
.ob-choices--2 { grid-template-columns: 1fr 1fr; }
.ob-choice {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 66px;
  padding: 12px 18px 12px 20px;
  border-radius: var(--radius-md);
  text-align: left;
  transition: transform var(--dur-micro) var(--ease-out);
}
.ob-choice::before { transition: box-shadow var(--dur-control) ease, background-color var(--dur-control) ease; }
.ob-choice:active { transform: scale(.97); }
.ob-choice__text { display: grid; gap: 2px; }
.ob-choice__label { font-family: var(--font-display); font-size: 21px; font-weight: 500; line-height: 1.25; }
:lang(en) .ob-choice__label { font-size: 22px; }
.ob-choice--lang[lang="en"] .ob-choice__label { font-family: 'Cormorant Garamond', var(--font-display); font-size: 22.4px; }
.ob-choice__sub { font-size: 13px; color: var(--ink-2); letter-spacing: .04em; }
.ob-choice__mark {
  display: grid; place-items: center;
  width: 26px; height: 26px; border-radius: 50%;
  color: var(--paper-bright);
  background: transparent;
  box-shadow: inset 0 0 0 1px var(--line-strong);
  transition: background-color var(--dur-control) ease, box-shadow var(--dur-control) ease;
  flex-shrink: 0;
}
.ob-choice__mark svg { width: 16px; height: 16px; opacity: 0; transform: scale(.4); filter: blur(3px); transition: opacity 200ms cubic-bezier(.2, 0, 0, 1), transform 200ms cubic-bezier(.2, 0, 0, 1), filter 200ms cubic-bezier(.2, 0, 0, 1); }
.ob-choice[aria-pressed="true"]::before { box-shadow: var(--glass-shadow), inset 0 0 0 1.5px var(--ink); }
.ob-choice[aria-pressed="true"] .ob-choice__mark { background: var(--ink); box-shadow: none; }
.ob-choice[aria-pressed="true"] .ob-choice__mark svg { opacity: 1; transform: none; filter: none; }
.ob-choice--tile { flex-direction: column; align-items: flex-start; min-height: 98px; padding: 16px 16px 14px 18px; }
.ob-choice--tile .ob-choice__label { font-size: 22.4px; }
:lang(en) .ob-choice--tile .ob-choice__label { font-size: 22.4px; }
.ob-choice--tile .ob-choice__mark { position: absolute; top: 14px; right: 14px; }
.ob-choice--sm { min-height: 52px; padding: 10px 14px; }
.ob-choice--sm .ob-choice__label { font-family: var(--font-ui); font-size: 15px; }

/* topic + relationship status (story 4): compact tiles, then a row of chips */
.ob-topicbox { display: grid; gap: 10px; }
.ob-topics { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-choice--topic {
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  min-height: 64px;
  padding: 10px 36px 10px 16px;
}
.ob-choice--topic:last-child { grid-column: 1 / -1; }
.ob-choice--topic .ob-choice__label { font-size: 18px; }
:lang(en) .ob-choice--topic .ob-choice__label { font-size: 18.5px; line-height: 1.15; }
.ob-choice--topic .ob-choice__sub { font-size: 12.5px; letter-spacing: .02em; }
.ob-choice--topic .ob-choice__mark { position: absolute; top: 10px; right: 10px; width: 20px; height: 20px; }
.ob-choice--topic .ob-choice__mark svg { width: 13px; height: 13px; }
.ob-status__label { margin: 6px 4px 0; font-weight: 400; }
.ob-status { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.ob-chip {
  min-height: var(--tap);
  padding: 0 8px;
  border-radius: var(--radius-pill);
  font-size: 15px;
  letter-spacing: .04em;
  text-align: center;
  transition: transform var(--dur-micro) var(--ease-out), color var(--dur-control) ease;
}
:lang(en) .ob-chip { font-size: 14.5px; letter-spacing: 0; }
.ob-chip::before { transition: background-color var(--dur-control) ease, box-shadow var(--dur-control) ease; }
.ob-chip:active { transform: scale(.96); }
.ob-chip[aria-pressed="true"] { color: var(--paper-bright); }
.ob-chip[aria-pressed="true"]::before { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(21, 23, 19, .6); }

/* a required field says why, in one quiet line */
.ob-why { max-width: 30ch; text-align: center; font-size: 13px; line-height: 1.5; color: var(--ink-2); }

/* name */
.ob-field { position: relative; }
.ob-input {
  width: 100%;
  padding: 10px 2px 12px;
  border: 0;
  border-bottom: 1px solid var(--line-strong);
  border-radius: 0;
  background: transparent;
  font-family: var(--font-display);
  font-size: 22.4px;
  line-height: 1.3;
  color: var(--ink);
  transition: border-color var(--dur-control) ease, box-shadow var(--dur-control) ease;
}
.ob-input::placeholder { color: var(--ink-2); }
.ob-input:focus-visible, .ob-input:focus { outline: none; border-bottom-color: var(--jade); box-shadow: 0 1px 0 0 var(--jade); }

/* wheels */
.ob-wheelbox { padding: 12px 10px 4px; border-radius: var(--radius-lg); }
.ob-wheelbox .wheel { margin: 0; }
.ob-readout {
  min-height: 1.5em;
  padding: 0 6px;
  text-align: center;
  font-size: 13.5px;
  letter-spacing: .03em;
  font-variant-numeric: tabular-nums;
  color: var(--ink-2);
}
.ob-readout.is-error { color: var(--seal); }
.ob-timebox { display: grid; gap: 10px; }
.ob-solar {
  display: grid;
  grid-template-columns: 1fr auto auto;
  align-items: center;
  gap: 4px;
  padding: 6px 4px 0 6px;
}
.ob-solar__text { display: grid; }
.ob-solar__label { font-size: 15.5px; font-weight: 560; }
.ob-solar__sub { font-size: 12.5px; color: var(--ink-2); }
.ob-info { color: var(--ink-2); }
.ob-info svg { width: 20px; height: 20px; }
.ob-infobody { padding: 12px 14px; border-radius: var(--radius-sm); background: var(--wash); font-size: 13.5px; line-height: 1.65; color: var(--ink-2); }
.ob-privacy { padding: 0 6px; font-size: 12.5px; color: var(--ink-2); }

/* place */
.ob-placebox { display: grid; gap: 6px; }
.ob-search { border-radius: var(--radius-pill); }
.ob-search::-webkit-search-cancel-button { -webkit-appearance: none; appearance: none; }
.ob-listlabel { margin: 8px 6px 0; }
.ob-places { display: grid; }
.ob-place { width: 100%; text-align: left; }
.ob-place .place__name, .ob-place .place__sub { display: block; }
.ob-empty { padding: 14px 10px; font-size: 14px; color: var(--ink-2); }

/* MBTI */
.ob-mbti { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.ob-type {
  min-height: 48px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 14.5px;
  letter-spacing: .08em;
  text-align: center;
  transition: transform var(--dur-micro) var(--ease-out), color var(--dur-control) ease;
}
.ob-type::before { transition: background-color var(--dur-control) ease, box-shadow var(--dur-control) ease; }
.ob-type:active { transform: scale(.96); }
.ob-type[aria-pressed="true"] { color: var(--paper-bright); }
.ob-type[aria-pressed="true"]::before { background: var(--ink); box-shadow: 0 8px 18px -10px rgba(21, 23, 19, .6); }

.ob-quiz { display: grid; gap: 16px; padding-bottom: 6px; }
.ob-quiz__q { border: 0; padding: 0; min-width: 0; }
.ob-quiz__legend { padding: 0; margin-bottom: 8px; font-family: var(--font-display); font-size: 18px; font-weight: 500; }
.ob-quiz__opts { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-quiz__opts .ob-choice { justify-content: center; text-align: center; }

/* ── Splash ──────────────────────────────────────────────────────────────────── */
.ob-splash { position: relative; justify-content: center; align-items: center; min-height: var(--ob-h); padding: 0; }
.ob-splash__art { position: relative; width: 300px; height: 300px; display: grid; place-items: center; margin-top: -40px; }
.ob-bloom { position: absolute; inset: -30px; opacity: 0; transform: scale(.06); animation: ob-bloom 2200ms cubic-bezier(.16, 1, .3, 1) 820ms forwards; }
.ob-bloom svg { width: 100%; height: 100%; overflow: visible; }
.ob-bloom__halo { animation: ob-halo 3000ms cubic-bezier(.16, 1, .3, 1) 1100ms both; transform-origin: center; }
.ob-drop {
  position: absolute;
  width: 13px; height: 13px;
  border-radius: 50%;
  background: var(--ink);
  opacity: 0;
  animation: ob-drop 620ms cubic-bezier(.55, 0, 1, .45) 200ms both, ob-drop-out 160ms linear 820ms forwards;
}
.ob-seal {
  position: relative;
  width: 104px; height: 104px;
  opacity: 0;
  animation: ob-stamp 520ms cubic-bezier(.3, 0, .2, 1) 1850ms both;
  filter: drop-shadow(0 1px 0 rgba(182, 47, 35, .15));
}
.ob-splash__word { display: grid; justify-items: center; gap: 2px; margin-top: 4px; text-align: center; }
.ob-wordmark {
  font-family: var(--font-display);
  font-size: 44px;
  font-weight: 500;
  letter-spacing: .42em;
  margin-right: -.42em;
  line-height: 1.2;
  animation: ob-seep 1200ms cubic-bezier(.25, .46, .45, .94) 2350ms both;
}
.ob-latin { font-family: var(--font-mono); font-size: 11px; letter-spacing: .5em; margin-right: -.5em; color: var(--ink-2); animation: ob-seep-flat 900ms ease 2700ms both; }
.ob-tagline { margin-top: 18px; font-family: var(--font-display); font-size: 18px; letter-spacing: .2em; margin-right: -.2em; color: var(--ink-2); animation: ob-seep 1200ms cubic-bezier(.25, .46, .45, .94) 2950ms both; }
:lang(en) .ob-tagline { font-style: italic; letter-spacing: .02em; margin-right: 0; font-size: 20px; }
.ob-splash__hit {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding-bottom: calc(var(--sab) + 34px);
  cursor: pointer;
  outline: none;
}
/* Language switch on the splash (L 2026-09-30): two words above the tap hint; the chosen one in ink, the other muted. */
.ob-splash__lang { position: absolute; left: 0; right: 0; bottom: calc(var(--sab) + 34px + 48px); z-index: 2; display: flex; align-items: center; justify-content: center; gap: 22px; animation: ob-seep-flat 700ms ease 3300ms both; }
.ob-splash__lang-btn { position: relative; padding: 8px 2px; border: 0; background: none; font: inherit; font-size: 14px; letter-spacing: .08em; color: var(--ink-2); cursor: pointer; }
.ob-splash__lang-btn[lang="en"] { font-family: 'Cormorant Garamond', var(--font-display); font-size: 17px; letter-spacing: .02em; }
.ob-splash__lang-btn[aria-pressed="true"] { color: var(--ink); }
.ob-splash__lang-btn[aria-pressed="true"]::after { content: ''; position: absolute; left: 2px; right: 2px; bottom: 3px; height: 1px; background: currentColor; opacity: .55; }
.ob-splash__lang-btn:focus-visible { outline: 2px solid var(--jade); outline-offset: 4px; border-radius: 4px; }
.ob-splash.is-settled .ob-splash__lang { animation: none; }
.ob-splash__hit:focus-visible .ob-hint { outline: 2px solid var(--jade); outline-offset: 6px; border-radius: var(--radius-pill); }
.ob-hint {
  font-size: 13px;
  letter-spacing: .24em;
  color: var(--ink-2);
  animation: ob-seep-flat 700ms ease 3500ms both, ob-breathe 2800ms ease-in-out 4300ms infinite;
}
:lang(en) .ob-hint { letter-spacing: .08em; }
.ob-splash.is-settled *, .ob-splash.is-settled .ob-bloom { animation-delay: 0ms !important; animation-duration: 1ms !important; }
.ob-splash.is-settled .ob-hint { animation: ob-breathe 2800ms ease-in-out infinite !important; }

@keyframes ob-drop {
  0% { opacity: 0; transform: translateY(-42vh) scale(.55, 1.6); }
  12% { opacity: 1; }
  100% { opacity: 1; transform: translateY(0) scale(1.15, .8); }
}
@keyframes ob-drop-out { to { opacity: 0; transform: scale(2.2, .4); } }
@keyframes ob-bloom {
  0% { opacity: 0; transform: scale(.06); }
  18% { opacity: 1; }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes ob-halo { from { transform: scale(.6); opacity: 0; } 40% { opacity: 1; } to { transform: scale(1); opacity: .9; } }
@keyframes ob-stamp {
  0% { opacity: 0; transform: scale(1.55) rotate(-10deg); filter: blur(3px) drop-shadow(0 18px 18px rgba(21, 23, 19, .25)); }
  62% { opacity: 1; transform: scale(.95) rotate(-3deg); filter: blur(0) drop-shadow(0 1px 0 rgba(182, 47, 35, .15)); }
  100% { opacity: 1; transform: scale(1) rotate(-3deg); filter: drop-shadow(0 1px 0 rgba(182, 47, 35, .15)); }
}
@keyframes ob-breathe { 0%, 100% { opacity: 1; } 50% { opacity: .45; } }

/* ── Story ───────────────────────────────────────────────────────────────────── */
.ob-story { justify-content: flex-end; min-height: var(--ob-h); padding-top: calc(var(--sat) + 40px); }
.ob-story__body { margin-block: auto; padding: 0 4px; }
.ob-story__seal { width: 40px; height: 40px; margin-bottom: 30px; transform: rotate(-3deg); opacity: .92; }
.ob-story__lines { display: grid; gap: 14px; cursor: default; }
.ob-line {
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 500;
  line-height: 1.6;
  letter-spacing: .06em;
  text-wrap: balance;
  animation: ob-line 900ms var(--ease-out) var(--d, 0ms) both;
}
:lang(en) .ob-line { font-size: 20.4px; line-height: 1.3; letter-spacing: 0; } /* L 2026-09-28「font 2 size smaller」(was 22.4px) */
.ob-story__cta { animation: ob-line 700ms var(--ease-out) var(--d, 0ms) both; }
.ob-story.is-all .ob-line, .ob-story.is-all .ob-story__cta { animation-delay: 0ms; animation-duration: 240ms; }
/* typed story (L 2026-09-28「i need each letter to be typed out」): the line itself no longer fades or masks; each
   letter inks in on its own --d (js BUILD.story). Tapping the lines still shows them all at once. */
.ob-line.is-typed, .ob-story:not(:lang(en)) .ob-line.is-typed { animation: none; -webkit-mask-image: none; mask-image: none; }
.ob-tch { animation: ob-tch 380ms var(--ease-out) var(--d, 0ms) both; }
.ob-story:not(:lang(en)) .ob-tch { animation-duration: 900ms; }
.ob-story.is-all .ob-tch { animation-delay: 0ms; animation-duration: 240ms; }
@keyframes ob-tch { from { opacity: 0; filter: blur(3px); } to { opacity: 1; filter: blur(0); } }
@media (prefers-reduced-motion: reduce) { .ob-tch { animation: none; } }
/* L 2026-09-28「type slower, and make the font weight a bit lighter」: longer ink-in per letter; English in the Light
   cut (--font-ui = 'Fate Cormorant Body'), every Chinese line in WenKai Light (the first line was 400) */
.ob-tch { animation-duration: 520ms; }
.ob-story:not(:lang(en)) .ob-tch { animation-duration: 1100ms; }
:lang(en) .ob-line.is-typed { font-family: var(--font-ui); font-weight: 300; }
.ob-story:not(:lang(en)) .ob-line.is-typed, .ob-story:not(:lang(en)) .ob-line.is-typed:first-child { font-weight: 300; }
@keyframes ob-line {
  from { opacity: 0; transform: translateY(8px); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: blur(0); }
}

/* ── Gathering ───────────────────────────────────────────────────────────────── */
.ob-gather { justify-content: center; align-items: stretch; padding-top: var(--top-h); }
.ob-gather__inner { display: grid; justify-items: center; gap: 30px; margin-block: auto; padding-bottom: 8vh; text-align: center; }
.ob-glyphs { position: relative; width: 100%; height: 190px; }
.ob-g, .ob-g__label {
  position: absolute;
  left: 50%; top: 50%;
  width: 56px;
  margin: -28px 0 0 -28px;
  text-align: center;
  will-change: transform, opacity, filter;
}
.ob-g { font-family: var(--font-display); font-size: 22.4px; font-weight: 600; line-height: 56px; opacity: 0; }
.ob-g.is-unknown { color: var(--ink-3); }
.ob-g__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .14em; line-height: 16px; margin-top: 0; color: var(--ink-2); opacity: 0; transition: opacity 500ms var(--ease-out); }
.ob-glyphs.is-labelled .ob-g__label { opacity: 1; }
.ob-glyphs.is-focus .ob-g__label { opacity: 0; }
.ob-gather__title { font-family: var(--font-display); font-size: 21px; font-weight: 500; letter-spacing: .1em; outline: none; }
:lang(en) .ob-gather__title { font-style: italic; letter-spacing: .01em; font-size: 22px; }
.ob-dots i { font-style: normal; animation: ob-breathe 1200ms ease-in-out infinite; }
.ob-dots i:nth-child(2) { animation-delay: 200ms; }
.ob-dots i:nth-child(3) { animation-delay: 400ms; }

/* ── Reveal: the 命書 hanging scroll ─────────────────────────────────────────── */
.ob-reveal { padding-top: calc(var(--top-h) - 6px); gap: 22px; }
.ob-scroll { position: relative; transform-origin: 50% 0; }
.ob-rod {
  position: relative;
  z-index: 2;
  display: block;
  height: 11px;
  margin: 0 -9px;
  border-radius: 6px;
  background: linear-gradient(var(--ink-surface-2), var(--ink) 70%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .14), 0 4px 10px -4px rgba(21, 23, 19, .5);
}
.ob-rod::before, .ob-rod::after {
  content: "";
  position: absolute;
  top: -2px;
  width: 9px; height: 15px;
  border-radius: 4px;
  background: var(--seal);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22);
}
.ob-rod::before { left: -6px; }
.ob-rod::after { right: -6px; }
.ob-rod--top { margin-bottom: -3px; }
.ob-rod--bot { margin-top: -3px; will-change: transform; }

.ob-card {
  position: relative;
  padding: 24px 20px 18px;
  background: var(--paper-bright);
  box-shadow: 0 22px 44px -26px rgba(21, 23, 19, .5), 0 0 0 .5px var(--line);
  will-change: clip-path;
}
.ob-card::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid var(--line);
  pointer-events: none;
}
.ob-card__head { display: flex; align-items: center; gap: 10px; }
.ob-card__seal { width: 30px; height: 30px; transform: rotate(-3deg); }
.ob-card__title { font-family: var(--font-display); font-size: 17px; font-weight: 600; letter-spacing: .3em; }
:lang(en) .ob-card__title { letter-spacing: .04em; font-size: 18px; }
.ob-card__date { margin-left: auto; font-size: 11.5px; color: var(--ink-2); letter-spacing: .06em; }
.ob-card__name {
  margin-top: 18px;
  font-family: var(--font-display);
  font-size: 22.4px;
  font-weight: 500;
  line-height: 1.15;
  letter-spacing: .06em;
  overflow-wrap: anywhere;
  outline: none;
}
.ob-card__birth { margin-top: 6px; font-size: 12px; letter-spacing: .04em; color: var(--ink-2); white-space: pre-wrap; }
.ob-card__art { display: grid; grid-template-columns: 132px 1fr; align-items: center; gap: 16px; margin-top: 14px; }
.ob-ring { position: relative; width: 132px; height: 132px; }
.ob-ring__svg { position: absolute; inset: -4px; width: calc(100% + 8px); height: calc(100% + 8px); overflow: visible; }
.ob-ring__glyph {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-bottom: 4px;
  font-family: var(--font-display);
  font-size: 58px;
  font-weight: 600;
  line-height: 1;
  color: var(--ink);
}
.ob-card__dm { display: grid; gap: 3px; min-width: 0; }
.ob-card__dmk { color: var(--seal); }
.ob-card__dmwx { display: flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 560; letter-spacing: .06em; color: var(--ink); }
.ob-card__dmwx::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--dmc, var(--ink)); }
.ob-card__archname { margin-top: 6px; font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.25; letter-spacing: .1em; }
:lang(en) .ob-card__archname { letter-spacing: .005em; font-size: 22.4px; }
.ob-card__archline { margin-top: 12px; font-family: var(--font-display); font-size: 16px; line-height: 1.65; color: var(--ink); }
:lang(en) .ob-card__archline { font-size: 17.5px; line-height: 1.4; }
.ob-card__sect { margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--line); }
.ob-card__sect > .t-micro { margin-bottom: 10px; font-weight: 400; }
.ob-card__note { margin-top: 8px; font-size: 12.5px; color: var(--ink-2); }
.ob-card__pillars { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; text-align: center; }
.ob-pillar { display: grid; gap: 0; padding: 6px 0 4px; border-radius: var(--radius-sm); }
.ob-pillar.is-dm { background: var(--wash); box-shadow: inset 0 0 0 1px var(--line); }
.ob-pillar__g { font-family: var(--font-display); font-size: 22.4px; font-weight: 600; line-height: 1.25; }
.ob-pillar.is-unknown .ob-pillar__g { color: var(--ink-3); }
.ob-pillar__l { margin-top: 4px; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .12em; color: var(--ink-2); }

.ob-bars { list-style: none; padding: 0; display: grid; gap: 7px; }
.ob-bar { display: grid; grid-template-columns: 3.4em 1fr 3.6em; align-items: center; gap: 10px; }
:lang(en) .ob-bar { grid-template-columns: 3.9em 1fr 3.6em; }
.ob-bar__k { font-family: var(--font-display); font-size: 19px; font-weight: 700; line-height: 1.1; color: var(--c); } /* 19px bold = large text: element pigments pass 3:1 */
:lang(en) .ob-bar__k { font-family: var(--font-ui); font-size: 12.5px; font-weight: 560; letter-spacing: .02em; line-height: 1.4; color: var(--ink-2); }
.ob-bar.is-dm .ob-bar__k::after { content: "\2022"; margin-left: 4px; color: var(--seal); }
.ob-bar__track { position: relative; height: 12px; }
.ob-bar__track::before { content: ""; position: absolute; left: 0; right: 0; top: 50%; height: 1px; background: var(--line); }
.ob-bar__fill {
  position: absolute;
  left: 0; top: 50%;
  width: calc(var(--w) * 100%);
  height: 4px;
  margin-top: -2px;
  border-radius: 2px;
  background: var(--c);
  transform-origin: left center;
}
.ob-bar__v { font-size: 12px; text-align: right; color: var(--ink-2); }

.ob-card__traits { display: grid; grid-template-columns: 1.25fr 1fr; gap: 16px; }
.ob-traits { list-style: none; padding: 0; display: grid; gap: 6px; }
.ob-traits li { position: relative; padding-left: 14px; font-size: 14px; line-height: 1.5; }
.ob-traits li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--jade); }
.ob-traits--blind li::before { background: transparent; box-shadow: inset 0 0 0 1.4px var(--ink-2); }

.ob-card__hook {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 14px 14px 12px;
  border-radius: var(--radius-sm);
  background: color-mix(in srgb, var(--seal) 6%, transparent);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--seal) 18%, transparent);
  cursor: pointer;
}
.ob-card__lock { width: 20px; height: 20px; margin-top: 2px; color: var(--seal); }
.ob-card__hookhead { font-family: var(--font-display); font-size: 18px; font-weight: 600; line-height: 1.45; letter-spacing: .02em; text-wrap: balance; }
:lang(en) .ob-card__hookhead { font-size: 19px; line-height: 1.3; letter-spacing: 0; }
.ob-card__hookhead + .ob-card__hookline { margin-top: 4px; font-size: 15.5px; color: var(--ink); }
:lang(en) .ob-card__hookhead + .ob-card__hookline { font-size: 16.5px; }
.ob-card__sys { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; margin-top: 10px; }
.ob-card__sysk { margin-right: 2px; font-size: 12px; color: var(--ink-2); }
.ob-card__lock svg { width: 20px; height: 20px; }
.ob-card__hookline { font-family: var(--font-display); font-size: 17px; font-weight: 500; line-height: 1.55; }
:lang(en) .ob-card__hookline { font-size: 18px; line-height: 1.35; }
.ob-card__hooksub { margin-top: 4px; font-size: 12.5px; color: var(--ink-2); }
.ob-card__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 16px; }
.ob-card__brand { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .24em; color: var(--ink-2); white-space: nowrap; }
.ob-card__demo { font-size: 11.5px; color: var(--ink-2); text-align: right; }

.ob-reveal__actions { display: grid; gap: 10px; justify-items: center; }

/* check me (story 8): one past-year statement, true / not quite */
.ob-check { justify-self: stretch; display: grid; gap: 10px; margin-bottom: 8px; padding: 16px 16px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--paper-bright) 70%, transparent); box-shadow: inset 0 0 0 1px var(--line); }
.ob-check__title { font-weight: 400; color: var(--jade); }
.ob-check__stmt { font-family: var(--font-display); font-size: 16.5px; line-height: 1.6; text-wrap: pretty; }
:lang(en) .ob-check__stmt { font-size: 17.5px; line-height: 1.4; }
.ob-check__btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ob-check__ack { min-height: 1.5em; font-size: 13px; line-height: 1.5; color: var(--ink-2); }
.ob-check__ack:empty { display: none; }
.ob-reveal__minis { display: flex; gap: 8px; }
.ob-mini svg { width: 18px; height: 18px; }
.ob-reveal__note { font-size: 12.5px; color: var(--ink-2); }

/* ── Account sheet (inside FT.ui.sheet) ──────────────────────────────────────── */
.ob-acct { display: grid; gap: 10px; padding-bottom: 4px; }
.ob-acct__lead { margin-bottom: 6px; font-family: var(--font-display); font-size: 17px; line-height: 1.55; color: var(--ink-2); }
.ob-sso-list { display: grid; gap: 10px; }
.ob-sso {
  position: relative;
  display: grid;
  grid-template-columns: 24px 1fr 24px;
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 0 18px;
  border-radius: var(--radius-pill);
  background: var(--paper-bright);
  box-shadow: inset 0 0 0 1px var(--line-strong), 0 1px 2px rgba(21, 23, 19, .04);
  font-size: 15.5px;
  font-weight: 560;
  text-align: center;
  transition: transform var(--dur-micro) var(--ease-out), background-color var(--dur-control) ease;
}
.ob-sso:active { transform: scale(.97); }
@media (hover: hover) and (pointer: fine) { .ob-sso:hover { background: var(--paper); } }
.ob-sso__logo { display: grid; place-items: center; width: 24px; height: 24px; color: var(--ink); }
.ob-sso__logo svg { width: 22px; height: 22px; }
.ob-sso[data-provider="google"] .ob-sso__logo svg { width: 19px; height: 19px; }
.ob-more { justify-self: center; }
.ob-sso__note { margin: -4px 0 2px; text-align: center; font-size: 12px; color: var(--ink-2); }
.ob-acct__market { text-align: center; letter-spacing: .06em; text-transform: none; font-weight: 400; }
.ob-acct__legal { text-align: center; font-size: 12px; color: var(--ink-2); }
.ob-acct__legal a { color: inherit; text-decoration: underline; text-underline-offset: 2px; }
.ob-acct__demo { text-align: center; letter-spacing: .06em; text-transform: none; }
.ob-acct__label { display: block; margin-top: 4px; font-size: 13px; font-weight: 560; color: var(--ink-2); }
.ob-acct__hint { font-size: 12.5px; color: var(--ink-2); }
.ob-acct__back { justify-self: center; }
.ob-phonerow { display: grid; grid-template-columns: auto 1fr; gap: 8px; align-items: center; }
.ob-dial { display: grid; place-items: center; min-height: 50px; padding: 0 14px; border-radius: var(--radius-sm); background: var(--wash); font-size: 15px; }
.ob-otp { font-family: var(--font-mono); font-size: 22px; letter-spacing: .5em; text-align: center; }

.ob-consent { display: grid; gap: 12px; justify-items: center; text-align: center; padding-bottom: 4px; }
.ob-consent__marks { display: flex; align-items: center; gap: 12px; margin: 4px 0 6px; }
.ob-consent__logo, .ob-consent__seal {
  display: grid; place-items: center;
  width: 54px; height: 54px;
  border-radius: 16px;
  background: var(--paper-bright);
  box-shadow: inset 0 0 0 1px var(--line), 0 8px 18px -12px rgba(21, 23, 19, .4);
  color: var(--ink);
}
.ob-consent__logo svg { width: 30px; height: 30px; }
.ob-consent__seal { padding: 8px; object-fit: contain; }
.ob-consent__dots { width: 34px; height: 2px; background: radial-gradient(circle, var(--ink-3) 1px, transparent 1.4px) 0 0 / 7px 2px repeat-x; }
.ob-consent__lead { font-family: var(--font-display); font-size: 18px; line-height: 1.5; max-width: 26ch; }
.ob-consent__shares { font-size: 13px; color: var(--ink-2); }
.ob-consent .btn { width: 100%; }

.ob-done { display: grid; justify-items: center; gap: 8px; padding: 20px 0 16px; text-align: center; }
.ob-done__mark { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--jade); color: var(--paper-bright); }
.ob-done__mark svg { width: 34px; height: 34px; }
.ob-done__mark .ob-checkpath { stroke-dasharray: 22; stroke-dashoffset: 22; animation: ob-check 520ms var(--ease-out) 120ms forwards; }
.ob-done__title { margin-top: 8px; font-family: var(--font-display); font-size: 22.4px; font-weight: 500; }
.ob-done__sub { font-size: 14px; color: var(--ink-2); }
@keyframes ob-check { to { stroke-dashoffset: 0; } }

.ob-noscript { padding: 40px var(--gutter); font-size: 16px; }

/* ── Small phones ────────────────────────────────────────────────────────────── */
@media (max-width: 359px) {
  .ob { --gutter: 16px; }
  .ob-q__title { font-size: 22.4px; }
  :lang(en) .ob-q__title { font-size: 22.4px; }
  .ob-q__sub { font-size: 15px; }
  :lang(en) .ob-q__sub { font-size: 16.5px; }
  .ob-q__body { margin-top: 18px; }
  .ob-q__foot { margin-top: 18px; }
  .ob-choice--tile { min-height: 96px; }
  .ob-card { padding: 20px 16px 16px; }
  .ob-card__name { font-size: 22.4px; }
  .ob-card__art { grid-template-columns: 112px 1fr; gap: 12px; }
  .ob-ring { width: 112px; height: 112px; }
  .ob-ring__glyph { font-size: 48px; }
  .ob-card__traits { grid-template-columns: 1fr; }
  :lang(en) .ob-status { grid-template-columns: 1fr 1fr; }
  .ob-choice--topic { min-height: 60px; padding-left: 14px; }
  .ob-inscription { font-size: 14.5px; letter-spacing: .22em; }
  .ob-splash__art { width: 250px; height: 250px; }
  .ob-wordmark { font-size: 38px; }
}
@media (max-height: 700px) {
  /* 4 rows tall: the half rows at each edge are masked out completely, so no clipped glyph ever
     touches the readout line above (320×640 QA, integration REQUEST) */
  .ob-wheelbox .wheel { height: 176px; }
  .ob-wheelbox .wheel__col {
    padding: 66px 0;
    -webkit-mask-image: linear-gradient(transparent 0 22px, rgba(0, 0, 0, .35) 40px, #000 66px, #000 110px, rgba(0, 0, 0, .35) 136px, transparent 154px);
    mask-image: linear-gradient(transparent 0 22px, rgba(0, 0, 0, .35) 40px, #000 66px, #000 110px, rgba(0, 0, 0, .35) 136px, transparent 154px);
  }
}

/* ── Reduced motion: instant cross-fades, no travel, no sway ─────────────────── */
@media (prefers-reduced-motion: reduce) {
  .ob-bloom, .ob-drop, .ob-seal, .ob-wordmark, .ob-latin, .ob-tagline, .ob-hint, .ob-line, .ob-story__cta, .ob-ch {
    animation: ob-seep-flat 200ms ease both !important;
  }
  .ob-bloom { transform: none; opacity: 1; }
  .ob-drop { display: none; }
  .ob-seal { transform: rotate(-3deg); }
  .ob-still, .ob-scene__v, .ob-wash, .ob-mist, .ob-progress i::after { transition-duration: 200ms; }
  .ob-wash.is-on { transform: none; }
  .ob-dots i { animation: none; }
  .ob-done__mark .ob-checkpath { animation: none; stroke-dashoffset: 0; }
}

/* ── Story in vertical columns (L-confirmed 2026-09-26 — KEEP) ────────────────────────────
   L: "i like the vertically arranged small light font writing effect. use vertically arranged
   paragraphs for the whole story telling onboarding". The story screen now reads like the
   painting's 題款: small, light serif in right-to-left columns, each column written downward
   (ink runs down the column, blur settles) on the existing per-line --d stagger.
   English stays horizontal (vertical Latin is unreadable), mirroring .ob-inscription. */
@property --ob-w { syntax: '<percentage>'; inherits: false; initial-value: 0%; }
:not(:lang(en)) > .ob-story .ob-story__body,
.ob-story:not(:lang(en)) .ob-story__body {
  display: flex; flex-direction: column; align-items: center; gap: 26px;
}
.ob-story:not(:lang(en)) .ob-story__seal { margin: 0; align-self: center; }
.ob-story:not(:lang(en)) .ob-story__lines {
  /* in vertical-rl the block axis is horizontal: `column` stacks paragraphs right→left as
     columns, and inline-size is the column HEIGHT */
  writing-mode: vertical-rl;
  display: flex; flex-direction: column; gap: 14px;
  max-inline-size: min(54vh, 390px);
  margin-inline: auto;
}
.ob-story:not(:lang(en)) .ob-line {
  font-size: 17px;
  font-weight: 400;
  line-height: 2.1;
  letter-spacing: .3em;
  color: var(--ink-2);
  text-wrap: wrap;
  -webkit-mask-image: linear-gradient(to bottom, #000 calc(var(--ob-w) - 14%), transparent var(--ob-w));
  mask-image: linear-gradient(to bottom, #000 calc(var(--ob-w) - 14%), transparent var(--ob-w));
  animation: ob-write 1500ms cubic-bezier(.25, .46, .45, .94) var(--d, 0ms) both;
}
.ob-story:not(:lang(en)) .ob-line:first-child { color: var(--ink); }
@keyframes ob-write {
  from { --ob-w: 0%; opacity: .35; filter: blur(2.5px); }
  to { --ob-w: 114%; opacity: 1; filter: blur(0); }
}
@media (max-width: 360px) {
  .ob-story:not(:lang(en)) .ob-line { font-size: 15.5px; letter-spacing: .24em; }
}
@media (prefers-reduced-motion: reduce) {
  .ob-story:not(:lang(en)) .ob-line { -webkit-mask-image: none; mask-image: none; }
}

/* ── Light typography (L-confirmed 2026-09-26 — KEEP) ─────────────────────────────────────
   L on the language step: "font size is too huge for the language selection. i like light fonts".
   Onboarding type is smaller and light (300) throughout; hierarchy comes from size + ink tone,
   not weight. Requires the 300 weights loaded in css/tokens.css. */
.ob-q__title { font-size: 22.4px; font-weight: 300; letter-spacing: .08em; line-height: 1.32; }
:lang(en) .ob-q__title { font-size: 22.4px; font-weight: 300; letter-spacing: 0; line-height: 1.15; }
.ob-q__sub { font-size: 14.5px; font-weight: 300; letter-spacing: .04em; }
:lang(en) .ob-q__sub { font-size: 16px; font-weight: 300; }
.ob-choice { min-height: 56px; padding: 10px 16px 10px 18px; }
.ob-choice__label { font-size: 16.5px; font-weight: 300; letter-spacing: .1em; }
:lang(en) .ob-choice__label { font-size: 17px; letter-spacing: .01em; }
.ob-choice--lang[lang="en"] .ob-choice__label { font-size: 19px; font-weight: 400; letter-spacing: .02em; }
.ob-choice--tile .ob-choice__label { font-size: 22px; font-weight: 300; }
:lang(en) .ob-choice--tile .ob-choice__label { font-size: 19px; }
.ob-choice__sub { font-weight: 300; }
.ob-choice__mark { width: 22px; height: 22px; }
.ob-cta { font-weight: 400; letter-spacing: .14em; }
:lang(en) .ob-cta { letter-spacing: .04em; }
.ob-story:not(:lang(en)) .ob-line { font-weight: 300; }
.ob-story:not(:lang(en)) .ob-line:first-child { font-weight: 400; }

/* ── Light typography, the rest of the flow (extends the L-confirmed block above) ──────────
   Same rule applied to every other display/label surface in onboarding: 300 for display type,
   400 where a glyph or small label needs body. Kept heavier on purpose: the element-bar labels
   (.ob-bar__k, 19px/700) — earth and metal pigments only reach AA as large *bold* text. */
.ob-inscription { font-weight: 300; }
.ob-wordmark, .ob-tagline { font-weight: 300; }
:lang(en) .ob-line { font-weight: 300; }
.ob-q__opt { font-weight: 300; }
.ob-choice--topic .ob-choice__label { font-size: 17px; font-weight: 300; }
.ob-chip { font-weight: 300; }
.ob-type { font-weight: 400; }
.ob-solar__label { font-weight: 400; }
.ob-quiz__legend { font-size: 17px; font-weight: 300; }
.ob-gather__title { font-size: 19px; font-weight: 300; }
.ob-g { font-weight: 400; }
.ob-card__title { font-weight: 400; }
.ob-card__name { font-size: 22.4px; font-weight: 300; }
.ob-ring__glyph { font-weight: 400; }
.ob-card__dmwx { font-weight: 400; }
.ob-card__archname { font-size: 20px; font-weight: 400; }
:lang(en) .ob-card__archname { font-size: 21px; }
.ob-card__archline, .ob-check__stmt, .ob-card__hookline { font-weight: 300; }
.ob-pillar__g { font-weight: 400; }
.ob-card__hookhead { font-size: 17px; font-weight: 400; }
:lang(en) .ob-card__hookhead { font-size: 18px; }
.ob-acct__lead, .ob-consent__lead { font-weight: 300; }
.ob-sso { font-weight: 400; }
.ob-done__title { font-size: 22.4px; font-weight: 300; }
@media (max-width: 359px) {
  .ob-card__name { font-size: 22.4px; }
}

/* ── Seals stand upright (L-confirmed 2026-09-26 — KEEP): 「把他放正, 不要歪歪的」. No seal is ever
   rotated; the stamp animations keep only scale/blur. Appended last so later rules win. */
.ob-story__seal, .ob-card__seal, .ob-seal { transform: none; }
@keyframes ob-stamp {
  0% { opacity: 0; transform: scale(1.55); filter: blur(3px) drop-shadow(0 18px 18px rgba(21, 23, 19, .25)); }
  62% { opacity: 1; transform: scale(.95); filter: blur(0) drop-shadow(0 1px 0 rgba(182, 47, 35, .15)); }
  100% { opacity: 1; transform: scale(1); filter: drop-shadow(0 1px 0 rgba(182, 47, 35, .15)); }
}
@media (prefers-reduced-motion: reduce) { .ob-seal { transform: none; } }

/* ── 320px: the topic screen and sign-in rows fit without wrapping (320×640 QA) ── */
@media (max-width: 359px) {
  .ob-topics { gap: 6px; }
  .ob-choice--topic { min-height: 54px; padding: 8px 30px 8px 12px; }
  .ob-choice--topic .ob-choice__label, :lang(en) .ob-choice--topic .ob-choice__label { font-size: 16px; }
  .ob-choice--topic .ob-choice__sub { font-size: 11.5px; line-height: 1.35; }
  .ob-choice--topic .ob-choice__mark { top: 8px; right: 8px; }
  .ob-q--topic .ob-q__body { margin-top: 14px; }
  .ob-q--topic .ob-q__foot { margin-top: 14px; }
  .ob-sso { grid-template-columns: 22px 1fr 8px; gap: 10px; padding: 0 14px; font-size: 14.5px; }
}

/* ── Splash: drop → 山水 bleed + logo wordmark (L-confirmed 2026-09-26 — KEEP) ─────────────────
   L: 「知命兩個字有點太醜, 幫我用我們的logo字體做一個橫著放的, 不需要logo外框. 墨水滴下來我很喜歡,
   不過你暈開的時候把他變成一副山水畫, 可以淡一點不要影響閱讀」.
   The painting (assets/onboarding/splash-shanshui.webp, ink-only layer, paper removed) multiplies onto the
   xuan paper at low opacity; its mask grows from the drop point with a displaced, feathered ink edge. */
.ob-scape {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  opacity: .62; mix-blend-mode: multiply;
}
.ob-scape svg { width: 100%; height: 100%; display: block; }
.ob-splash__art, .ob-splash__word, .ob-splash__hit { z-index: 1; }
.ob-splash__art { position: relative; }
/* a quiet paper haze keeps the wordmark and tagline crisp over the painting */
.ob-splash__word { position: relative; padding: 14px 36px 10px; }
.ob-splash__word::before {
  content: ""; position: absolute; inset: -18px -40px; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--paper) 86%, transparent) 30%, transparent 100%);
}
.ob-wordmark--logo {
  display: block;
  width: 128px; aspect-ratio: 1200 / 354;
  margin: 2px auto 6px; letter-spacing: 0;
  background: var(--ink);
  -webkit-mask: url("../assets/onboarding/wordmark-zhiming.png") center / contain no-repeat;
  mask: url("../assets/onboarding/wordmark-zhiming.png") center / contain no-repeat;
}
@media (prefers-reduced-motion: reduce) { .ob-scape { opacity: .62; } }

/* ── Tile choices: label dead centre (L-confirmed 2026-09-26 — KEEP): 「文字需要在 dead center」.
   Applies to every tile choice (relationship status, gender). The empty radio is hidden so nothing
   pulls the eye off-centre; the check fades in on the right only once chosen (absolute, no layout shift). */
/* Labels never wrap (review 2026-09-26: 「交往/中」「剛分/開」「Just/ended」 at 320): the side padding is only the
   check's own lane (10px + 22px), so 交往中 keeps 22px at 320 and "Just ended" fits at 390. */
.ob-choice--tile {
  flex-direction: row; justify-content: center; align-items: center; text-align: center;
  min-height: 64px; padding: 12px 32px;
}
.ob-choice--tile .ob-choice__text { justify-items: center; }
.ob-choice--tile .ob-choice__label { letter-spacing: .14em; margin-right: -.14em; white-space: nowrap; }
:lang(en) .ob-choice--tile .ob-choice__label { letter-spacing: .01em; margin-right: 0; }
@media (max-width: 359px) { :lang(en) .ob-choice--tile .ob-choice__label { font-size: 17px; } }
.ob-choice--tile .ob-choice__mark {
  position: absolute; top: 50%; right: 10px; transform: translateY(-50%);
  opacity: 0; transition: opacity var(--dur-control) ease;
}
.ob-choice--tile[aria-pressed="true"] .ob-choice__mark { opacity: 1; }

/* ── Question content as vertical inscription (L-confirmed 2026-09-26 — KEEP) ─────────────────
   L:「關於鳥的故事還是暫時算了 用實際, 選擇語言 用你最熟悉的文字那些重點 用鳥故事的字體animation呈現 content 就好」.
   The painting keeps its bird; the text is the step's own title (right column, ink) and subtitle (left
   column, lighter), seeping in character by character. The horizontal heading becomes screen-reader
   only while the inscription shows, and returns if the screen is too short for the columns. */
.ob-inscription .ob-ins__t, .ob-inscription .ob-ins__s { display: block; }
.ob-ins__t { font-size: 22px; font-weight: 300; color: var(--ink); letter-spacing: .24em; }
.ob-ins__s { font-size: 15px; font-weight: 300; color: var(--ink-2); letter-spacing: .26em; margin-block-start: 12px; }
:lang(en) .ob-ins__t { font-size: 22.4px; font-style: normal; line-height: 1.2; letter-spacing: .01em; }
:lang(en) .ob-ins__s { font-size: 16px; margin-block-start: 8px; letter-spacing: .01em; }
body.has-ins:not(.ins-cramped) .ob-q .ob-q__head {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
body.has-ins:not(.ins-cramped) .ob-q .ob-q__body { margin-top: 0; }
@media (max-width: 360px) {
  .ob-ins__t { font-size: 19px; letter-spacing: .2em; }
  .ob-ins__s { font-size: 14px; letter-spacing: .22em; }
}

/* ── Birthplace-time confirmation checkbox (L-confirmed 2026-09-26 — KEEP) ─────────────────────
   L:「以出生地經緯度校正 改成 確認是出生地的時間 那個 on off switch 改成check box 讓用戶確認他知道就好」.
   A themed checkbox (not a native control) before the label; ticking it enables Continue. True solar
   time is always applied. 44px hit area; the visible box is 22px. Class is .ob-tick: .ob-check is the
   reveal's "check me" section (a name collision broke it, fixed 2026-09-26). */
.ob-solar--check { display: flex; align-items: center; gap: 12px; }
.ob-solar--check .ob-solar__text { flex: 1; cursor: pointer; user-select: none; }
.ob-tick {
  position: relative; flex: 0 0 auto; width: 44px; height: 44px; margin: 0 -11px 0 -11px;
  display: grid; place-items: center; color: transparent; background: none; border: 0; cursor: pointer;
}
.ob-tick::before {
  content: ""; position: absolute; width: 22px; height: 22px; border-radius: 6px;
  box-shadow: inset 0 0 0 1.5px var(--line-strong); background: color-mix(in srgb, var(--paper-bright) 70%, transparent);
  transition: background-color var(--dur-control) ease, box-shadow var(--dur-control) ease;
}
.ob-tick svg { position: relative; width: 16px; height: 16px; opacity: 0; transform: scale(.7);
  transition: opacity var(--dur-micro) ease, transform var(--dur-control) var(--ease-out); }
.ob-tick[aria-checked="true"] { color: var(--paper-bright); }
.ob-tick[aria-checked="true"]::before { background: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.ob-tick[aria-checked="true"] svg { opacity: 1; transform: none; }
.ob-tick:focus-visible::before { outline: 2px solid var(--jade); outline-offset: 3px; }

/* ── Birthplace search stays still while typing (fix 2026-09-26, L: 「打字找國家城市的時候過場一瞬間整個畫面壞掉,
   還有輸入框也坏掉」). The onboarding input lacked .place__input, so its text ran under the search icon;
   and the list's height followed the result count, so the bottom-anchored block (and the input) jumped on
   every keystroke. The list now always reserves five rows (5 × 58 px). */
.place__input-wrap .ob-search { padding-left: 44px; }
.ob-q--place .ob-places { min-height: 290px; }
/* Short screens (2026-09-26 review: 繼續 fell below the fold at 320×640): js/onboarding.js lists 3 rows
   under 700px and 2 compact rows under 600px, and the list reserves exactly that. */
@media (max-height: 700px) { .ob-q--place .ob-places { min-height: 174px; } }
@media (max-height: 600px) {
  .ob-q--place .ob-places { min-height: 100px; }
  .ob-q--place .place__opt { min-height: 50px; padding: 5px 0; }
  /* 320×568 in English: the birth-time step's two-line confirm pushed 繼續 15px under the fold */
  .ob-q__body, .ob-q__foot { margin-top: 12px; }
  .ob-timebox { gap: 6px; }
}

/* ── Casting screen type (L-confirmed 2026-09-26 — KEEP):「這頁的字體幫我弄好一點加陰影 字體小一點 light 一點」.
   Pillar glyphs: smaller, light, with a soft ink shadow that lifts them off the painting; the day master
   steps forward to 2× (was 2.3×). The caption gets a paper halo so it reads over the ink. */
.ob-g {
  font-size: 22.4px; line-height: 48px; font-weight: 300; letter-spacing: 0;
  text-shadow: 0 1px 1px rgba(21, 23, 19, .10), 0 4px 14px rgba(21, 23, 19, .16);
}
.ob-g.is-dm { font-weight: 400; text-shadow: 0 1px 1px rgba(21, 23, 19, .12), 0 6px 22px rgba(21, 23, 19, .18); }
.ob-g__label { font-size: 10px; letter-spacing: .24em; }
.ob-gather__title {
  font-size: 17px; font-weight: 300; letter-spacing: .16em;
  text-shadow: 0 0 10px var(--paper), 0 0 22px var(--paper), 0 1px 1px rgba(21, 23, 19, .06);
}
:lang(en) .ob-gather__title { font-size: 18px; letter-spacing: .02em; }

/* ── Reveal without the hard sell (L-confirmed 2026-09-26 — KEEP):「這裏就不要這麽hardsell 了, 下面那一張卡也去掉」.
   The insight sits on neutral paper (no seal tint, lock, redaction or price), and the check-me card is gone. */
.ob-card__hook--soft {
  grid-template-columns: 1fr; padding: 14px 16px;
  background: color-mix(in srgb, var(--paper-bright) 60%, transparent);
  box-shadow: inset 0 0 0 1px var(--line); cursor: default;
}

/* ── Reveal leads with "this is you" (L-confirmed 2026-09-26 — KEEP):「這一頁的目的是用一頁的方式很快的讓用戶覺得很準!」.
   Three chart-derived statements + one on love, set light and readable, right under the archetype. */
.ob-card__you { display: grid; gap: 8px; }
.ob-you { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.ob-you li {
  position: relative; padding-left: 18px;
  font-family: var(--font-display); font-size: 16px; font-weight: 300; line-height: 1.6; letter-spacing: .03em;
}
.ob-you li::before { content: ""; position: absolute; left: 2px; top: .78em; width: 7px; height: 1px; background: var(--ink-2); }
.ob-you__k { margin-top: 8px; }
.ob-you__love { font-family: var(--font-display); font-size: 16px; font-weight: 300; line-height: 1.6; letter-spacing: .03em; }
:lang(en) .ob-you li, :lang(en) .ob-you__love { letter-spacing: 0; font-size: 16.5px; }

/* ── Logo lettering for stems and branches (L-confirmed 2026-09-26 — KEEP) ──────────────────────
   L:「這個丁字的區域可以用我們的logo的字體做出那些字嗎」「前面一頁排出來的特效也是, 用我們的logo的字體去做那個特效」.
   22 glyphs (assets/glyphs/u<cp>.png) drawn in the logo's carved lettering, shown as a mask in currentColor
   so element colours still apply. Shadows live on the parent (a filter on the masked child would be clipped). */
.lg {
  display: inline-block; width: 1em; height: 1em; vertical-align: -.12em;
  background: currentColor;
  -webkit-mask: var(--lg) center / contain no-repeat; mask: var(--lg) center / contain no-repeat;
}
/* the day master sits exactly at the ring's centre (the ring art was 4 px off; the glyph had 4 px of bottom padding) */
.ob-ring__svg { inset: 0; left: 50%; top: 50%; width: calc(100% + 8px); height: calc(100% + 8px); transform: translate(-50%, -50%); }
.ob-ring__glyph { padding: 0; display: grid; place-items: center; line-height: 1; font-size: 50px; }
.ob-ring__glyph .lg { display: block; width: .96em; height: .96em; vertical-align: 0; }
@media (max-width: 360px) { .ob-ring__glyph { font-size: 42px; } }
/* casting screen: logo glyphs with the soft ink shadow L asked for */
.ob-g.has-lg { filter: drop-shadow(0 1px 1px rgba(21, 23, 19, .12)) drop-shadow(0 4px 10px rgba(21, 23, 19, .16)); }
.ob-g .lg { width: .9em; height: .9em; vertical-align: -.08em; }
/* reveal four pillars */
.ob-pillar__g.has-lg { display: grid; place-items: center; height: 1.25em; }
.ob-pillar__g .lg { width: .86em; height: .86em; }

/* ── Scroll rods as crafted SVG (L-confirmed 2026-09-26 — KEEP):「卷軸的軸做的太粗糙, 你生成一個有質感的svg代替」.
   Ebony roller (cylindrical shading, highlight, faint grain) between two jade end knobs with bronze collars;
   the knobs never stretch, only the roller does. */
.ob-rod {
  height: 22px; margin: 0 -14px; border-radius: 0; box-shadow: none;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cdefs%3E%3ClinearGradient id='j' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2388b2a0'/%3E%3Cstop offset='.3' stop-color='%23457362'/%3E%3Cstop offset='.62' stop-color='%23294C40'/%3E%3Cstop offset='1' stop-color='%2315302a'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e3bf7a'/%3E%3Cstop offset='.35' stop-color='%23b08a45'/%3E%3Cstop offset='.7' stop-color='%236e5424'/%3E%3Cstop offset='1' stop-color='%23a78648'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect x='12.6' y='3.6' width='5.4' height='14.8' rx='1.3' fill='url(%23b)'/%3E%3Crect x='1' y='1' width='12.6' height='20' rx='4.6' fill='url(%23j)'/%3E%3Crect x='1' y='1' width='3.4' height='20' rx='2.2' fill='%23000' opacity='.18'/%3E%3Crect x='3.4' y='3.3' width='8.4' height='2.3' rx='1.15' fill='%23fff' opacity='.38'/%3E%3Crect x='3' y='16.6' width='9' height='1.2' rx='.6' fill='%23fff' opacity='.08'/%3E%3C/svg%3E") left center / 18px 22px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 22'%3E%3Cdefs%3E%3ClinearGradient id='j' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%2388b2a0'/%3E%3Cstop offset='.3' stop-color='%23457362'/%3E%3Cstop offset='.62' stop-color='%23294C40'/%3E%3Cstop offset='1' stop-color='%2315302a'/%3E%3C/linearGradient%3E%3ClinearGradient id='b' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%23e3bf7a'/%3E%3Cstop offset='.35' stop-color='%23b08a45'/%3E%3Cstop offset='.7' stop-color='%236e5424'/%3E%3Cstop offset='1' stop-color='%23a78648'/%3E%3C/linearGradient%3E%3C/defs%3E%3Cg transform='translate(18 0) scale(-1 1)'%3E%3Crect x='12.6' y='3.6' width='5.4' height='14.8' rx='1.3' fill='url(%23b)'/%3E%3Crect x='1' y='1' width='12.6' height='20' rx='4.6' fill='url(%23j)'/%3E%3Crect x='1' y='1' width='3.4' height='20' rx='2.2' fill='%23000' opacity='.18'/%3E%3Crect x='3.4' y='3.3' width='8.4' height='2.3' rx='1.15' fill='%23fff' opacity='.38'/%3E%3Crect x='3' y='16.6' width='9' height='1.2' rx='.6' fill='%23fff' opacity='.08'/%3E%3C/g%3E%3C/svg%3E") right center / 18px 22px no-repeat,
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 14' preserveAspectRatio='none'%3E%3Cdefs%3E%3ClinearGradient id='g' x1='0' y1='0' x2='0' y2='1'%3E%3Cstop offset='0' stop-color='%236b625a'/%3E%3Cstop offset='.16' stop-color='%23382f29'/%3E%3Cstop offset='.5' stop-color='%231c1714'/%3E%3Cstop offset='.84' stop-color='%230f0c0a'/%3E%3Cstop offset='1' stop-color='%23241e19'/%3E%3C/linearGradient%3E%3C/defs%3E%3Crect y='1' width='100' height='12' fill='url(%23g)'/%3E%3Crect y='2.6' width='100' height='.7' fill='%23fff' opacity='.22'/%3E%3Crect y='6.4' width='100' height='.3' fill='%23000' opacity='.35'/%3E%3Crect y='8.8' width='100' height='.25' fill='%23c9a577' opacity='.1'/%3E%3Crect y='10.6' width='100' height='.3' fill='%23000' opacity='.3'/%3E%3C/svg%3E") center / calc(100% - 30px) 14px no-repeat;
  filter: drop-shadow(0 3px 3px rgba(21, 23, 19, .26));
}
.ob-rod::before, .ob-rod::after { display: none; }
.ob-rod--top { margin-bottom: -8px; }
.ob-rod--bot { margin-top: -8px; }

/* ── Wheels sit on the painting (L-confirmed 2026-09-26 — KEEP) ─────────────────────────────────
   L:「就不用框著這個選項了, 選生日後面的card 去掉」. Birth date and birth time wheels have no card behind
   them and no frame around the chosen row: the chosen row reads by ink tone and size alone. The frame
   only returns as a focus ring for keyboard users. */
.ob-wheelbox { padding: 0 0 4px; border-radius: 0; background: none; box-shadow: none; }
.ob-wheelbox .wheel::before { background: none; box-shadow: none; }
.ob-wheelbox .wheel:has(.wheel__col:focus-visible)::before { box-shadow: inset 0 0 0 1.5px var(--jade); }

/* ── Birth-time confirm label, lighter (L-confirmed 2026-09-26 — KEEP) ─────────────────────────
   L:「字體太粗, make it 30% lighter for fonts in this class」 — 400 → 300 (the nearest loaded weight to 280). */
.ob-solar__label { font-weight: 300; }

/* ── Storage blocked (2026-09-26 review) ─────────────────────────────────────────────────────────
   Safari "Block All Cookies" / some in-app browsers: said once on the splash, and again on the account
   sheet if it is still blocked there (then nothing is handed off). */
.ob-warn {
  max-width: 19em;
  margin-top: 20px;
  font-size: 13.5px;
  line-height: 1.65;
  color: var(--seal);
  white-space: pre-line;   /* zh breaks at its clauses (line breaks in the string); en wraps freely */
  text-wrap: pretty;
  animation: ob-seep 1200ms cubic-bezier(.25, .46, .45, .94) 3300ms both;
}
.ob-acct__err { font-size: 14px; line-height: 1.65; color: var(--seal); white-space: pre-line; text-wrap: pretty; }
@media (prefers-reduced-motion: reduce) { .ob-warn { animation: ob-seep-flat 200ms ease both !important; } }

/* ── Safari 26 toolbar sampling shim: the same element and rule as every V2 route (app.css / chrome.html,
   家規 1). Transparent, topmost, never hit-testable. Desktop cannot prove it: needs an iPhone check. */
.safari-toolbar-sampling-shim { position: fixed; left: 0; right: 0; bottom: 0; height: 5px; z-index: 2147483647; background: transparent; pointer-events: none; }

/* ── Name field, lighter (L-confirmed 2026-09-26 — KEEP) ───────────────────────────────────────
   L:「reduce font weight by 30% of the related class」 on #ob-name-input — .ob-input 400 → 300 (nearest loaded
   weight to 280); the placeholder follows. */
.ob-input, .ob-input::placeholder { font-weight: 300; }

/* Search field (L-confirmed 2026-09-26 — KEEP):「不要這種AI slop 邊框」「放大鏡太接近 boarder」— a straight hairline underline (no pill, so the line never curls up at the ends); the magnifier sits 12px in, text starts 44px in. */
.ob-search, .place__input-wrap .ob-search { border-radius: 0; background: transparent; box-shadow: inset 0 -1px 0 var(--line-strong); padding-left: 44px; }
.ob-search:focus, .ob-search:focus-visible { box-shadow: inset 0 -1.5px 0 var(--ink); }
.place__input-wrap svg { left: 12px; }

/* Birthplace (L-confirmed 2026-09-26 — KEEP):「下面不需要占據這麽多空間, 顯示 3個熱門城市就好主要是靠搜索的」— 3 rows (popular or results), space reserved for exactly 3 so typing never shifts the layout. */
.ob-q--place .ob-places { min-height: 186px; }
@media (max-height: 700px) { .ob-q--place .ob-places { min-height: 186px; } }
/* Mist fade (L 2026-09-26「怎麽沒了 gradient fade towards the top」): the paper band always fades in over ≥96px, also on steps whose content starts high (--mt small), so it never shows a hard top edge. */
.ob-mist { background: linear-gradient(to bottom,
    color-mix(in srgb, var(--paper) 84%, transparent) 0,
    color-mix(in srgb, var(--paper) 62%, transparent) calc(var(--sat) + 46px),
    color-mix(in srgb, var(--paper) 0%, transparent) calc(var(--sat) + 100px),
    color-mix(in srgb, var(--paper) 0%, transparent) max(calc(var(--sat) + 64px), calc(var(--mt) - 150px)),
    color-mix(in srgb, var(--paper) 90%, transparent) max(calc(var(--sat) + 196px), calc(var(--mt) - 12px)),
    color-mix(in srgb, var(--paper) 95%, transparent) max(calc(var(--sat) + 260px), calc(var(--mt) + 130px)),
    var(--paper) 100%); }

/* ── Choice tiles: E 輕盈 glass + 慢光 selection (L-confirmed 2026-09-26 — KEEP) ─────────────────────────────
   L chose glass-lab E and shimmer 6:「E 不過選中的時候換個 highlight…」→「6 不過字體不要紅的, 要有點亮光的黑字」.
   Unselected: barely-there white frost (blur 9, white 12%, white bloom). Selected: a slow soft white light keeps
   circling a 1.6px ring (8s/turn, wide 160° tail) and the label is ink with a soft light glow. No rim at rest. */
@property --ob-a { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
@keyframes ob-spin { to { --ob-a: 360deg; } }
.ob-choice::before, .ob-choice[aria-pressed="true"]::before {
  background: rgba(255, 255, 255, .12);
  -webkit-backdrop-filter: blur(9px) saturate(1.6) brightness(1.08); backdrop-filter: blur(9px) saturate(1.6) brightness(1.08);
  box-shadow: 0 6px 24px rgba(255, 255, 255, .55), 0 12px 26px -18px rgba(40, 44, 36, .25);
}
.ob-choice::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.6px; pointer-events: none; opacity: 0; z-index: 0;
  background: conic-gradient(from calc(var(--ob-a) - 80deg), transparent 0, rgba(255, 255, 255, 1) 160deg, transparent 160deg), rgba(21, 23, 19, .06);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: ob-spin 8s linear infinite; transition: opacity 560ms cubic-bezier(.22,.61,.36,1);
}
.ob-choice[aria-pressed="true"] { box-shadow: 0 0 26px 4px rgba(255, 251, 238, .8); color: var(--ink);
  text-shadow: 0 0 10px rgba(255, 255, 255, .95), 0 0 2px rgba(255, 255, 255, .9), 0 1px 14px rgba(255, 251, 238, .8); }
.ob-choice[aria-pressed="true"]::after { opacity: 1; }
@media (prefers-reduced-motion: reduce) { .ob-choice::after { animation: none; } }
/* Raised tiles (L-confirmed 2026-09-26 — KEEP):「做一點按鈕突起的感覺」— a lit top face and a soft layered shadow so each
   tile sits slightly above the paper (still no rim); the selected tile lifts 2px more. */
.ob-choice { transition: transform 560ms cubic-bezier(.22,.61,.36,1); }
.ob-choice::before, .ob-choice[aria-pressed="true"]::before {
  background: linear-gradient(180deg, rgba(255, 255, 255, .34) 0%, rgba(255, 255, 255, .10) 55%, rgba(255, 255, 255, .06) 100%);
  box-shadow: 0 1px 1px rgba(40, 44, 36, .06), 0 4px 8px -3px rgba(40, 44, 36, .12), 0 14px 26px -14px rgba(40, 44, 36, .30), 0 6px 24px rgba(255, 255, 255, .5);
}
.ob-choice[aria-pressed="true"] { transform: translateY(-2px); }
.ob-choice[aria-pressed="true"]::before {
  box-shadow: 0 2px 2px rgba(40, 44, 36, .07), 0 8px 14px -6px rgba(40, 44, 36, .16), 0 22px 34px -16px rgba(40, 44, 36, .34), 0 6px 24px rgba(255, 255, 255, .5);
}
.ob-choice:active { transform: translateY(0); }

/* L-confirmed — KEEP (2026-09-27)「這一頁你還是全部用深灰的字體顔色好了, 這看起來好像兒童app」:
   the gathering stems/branches are all deep grey ink, no per-element colours (inline element colour overridden). */
body[data-step="gather"] .ob-g,
body[data-step="gather"] .ob-g:not(.is-unknown) { color: #3a3c36 !important; font-weight: 400; }
body[data-step="gather"] .ob-g__label { color: var(--ink-2); }

/* ── Compact date / time wheels, birds stay in view (L-confirmed 2026-09-27 — KEEP) ─────────────────
   L:「選日子的區塊可以小一點嗎? 我想用戶看到鳥」. Birth date and birth time wheels show 3 rows (was 5; 4 under 700px),
   the readout is a size smaller, and the block sits right above Continue, so --mt (and the paper mist that
   rises to it) starts below the perch. Rows stay 44px: FT.ui.wheel snaps and indexes by a fixed ROW = 44
   (js/ui.js), and 44px is the touch-target floor. Still no card, no frame; jade ring only for keyboard focus. */
.ob-wheelbox .wheel { height: 132px; }
.ob-wheelbox .wheel__col {
  padding: 44px 0;
  /* at rest the 3 rows fill the box exactly; mid-scroll, the glyph of a half row (its outer 8px) is fully masked */
  -webkit-mask-image: linear-gradient(transparent 0 8px, rgba(0, 0, 0, .6) 22px, #000 48px, #000 84px, rgba(0, 0, 0, .6) 110px, transparent 124px);
  mask-image: linear-gradient(transparent 0 8px, rgba(0, 0, 0, .6) 22px, #000 48px, #000 84px, rgba(0, 0, 0, .6) 110px, transparent 124px);
}
.ob-readout { font-size: 12.5px; }
.ob-q--dob .ob-q__wrap, .ob-q--time .ob-q__wrap { padding-top: 8px; }
.ob-q--dob .ob-q__foot, .ob-q--time .ob-q__foot { margin-top: 16px; }
/* On these two steps the mist keeps L's minimum 96px fade but reaches 90% paper exactly where the readout
   begins (mt + 8px), instead of 20px above it; --ob-wheel eases with --mt so the band never jumps. */
@property --ob-wheel { syntax: '<number>'; inherits: true; initial-value: 0; }
.ob-scene { transition: --mt 700ms var(--ease-out), --ob-wheel 700ms var(--ease-out); }
body[data-step="dob"] .ob-scene, body[data-step="time"] .ob-scene { --ob-wheel: 1; }
.ob-mist { background: linear-gradient(to bottom,
    color-mix(in srgb, var(--paper) 84%, transparent) 0,
    color-mix(in srgb, var(--paper) 62%, transparent) calc(var(--sat) + 46px),
    color-mix(in srgb, var(--paper) 0%, transparent) calc(var(--sat) + 100px),
    color-mix(in srgb, var(--paper) 0%, transparent) max(calc(var(--sat) + 64px), calc(var(--mt) - 150px + 62px * var(--ob-wheel))),
    color-mix(in srgb, var(--paper) 90%, transparent) max(calc(var(--sat) + 196px), calc(var(--mt) - 12px + 20px * var(--ob-wheel))),
    color-mix(in srgb, var(--paper) 95%, transparent) max(calc(var(--sat) + 260px), calc(var(--mt) + 130px)),
    var(--paper) 100%); }

/* ── Line endings (L 2026-09-27:「we never only have 1 or two words on the next line」) ────────────────
   Short onboarding text balances, so no line ends on one or two words: the inscription columns (vertical zh as
   well), the birth-time confirm label, the gender note, and the reveal's one-line glosses and captions. */
.ob-ins__t, .ob-ins__s, .ob-solar__label, .ob-why,
.ob-card__archline, .ob-card__demo, .ob-you__love, .ob-jq__who { text-wrap-style: balance; }
