/* LUMA - the onboarding: welcome screens, the setup checklist, the finale (2026-09-23)
   Loaded 10th and last, after the layer-6 sheet. Built by showOnboarding() in
   js/10-coach-settings.js; #ob-flow itself is static markup in luma.html.

   Giorgi's references: full-colour screens with a big headline that carries a pill
   inside it, doodled hearts and stars, progress dots, and a black pill button with
   a double chevron. Then his own ask: a checklist, and everything moving — screens
   sliding, words arriving, buttons that feel like something when pressed.

   PHONE-SHAPED, like every full-screen motion in this app: the flow is the 480px
   column, and on a desktop the space either side of it is plain black. */

#ob-flow {
  position: fixed;
  inset: 0;
  /* The keyboard correction every sheet uses: the name field sits low, and iOS does
     not shrink the layout viewport for the keyboard. */
  bottom: var(--kb, 0px);
  z-index: 95;              /* under the sign-in sheet (150) and the wipe (101) */
  display: none;
  background: #000;
  --ob-bg: #0B0C0A;
  --ob-ink: #F2F2F5;
}
#ob-flow.is-on { display: block; }
/* THE APP SHOWED THROUGH UNDER THE KEYBOARD (2026-09-24, Giorgi's screen
   recording). The flow lifts itself by --kb, and on Android that number is briefly
   wrong while the keyboard slides in or out — for ~100ms a strip opened between the
   flow's bottom edge and the keyboard, and the day screen behind it (the score
   card, "0%", the bubble) flashed through it. Two layers, either one enough:
   the flow's own ground runs on past its bottom edge, and while it is up there is
   nothing behind it to show — #app and the + button are hidden outright. */
#ob-flow.is-on::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  top: 100%;
  height: 100vh;
  background: var(--ob-bg);
  pointer-events: none;
}
html:has(#ob-flow.is-on) #app,
html:has(#ob-flow.is-on) #add-habit-fab { visibility: hidden; }
/* Belt and braces with the touchmove guard: no overscroll hand-off to the browser's
   history gesture while the flow is up. */
#ob-flow { overscroll-behavior: none; }
html:has(#ob-flow.is-on) { overscroll-behavior-x: none; }
#ob-flow.is-light { --ob-ink: #0A0A0C; }

.ob-shell {
  position: relative;
  max-width: 480px;
  height: 100%;
  margin: 0 auto;
  overflow: hidden;
  background: var(--ob-bg);
  color: var(--ob-ink);
  /* The colour itself cross-fades between screens — lime to violet to coral to
     the dark checklist — so the change of scene is felt before it is read. */
  transition: background-color 650ms var(--ease-in-out), color 400ms var(--ease-out);
}
.ob-stage { position: absolute; inset: 0; }

/* ---- the screen swap ---- */
.ob-screen {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top) + 18px) var(--pad) calc(env(safe-area-inset-bottom) + 22px);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  --wx: 22px;
}
.ob-screen.in-left { --wx: -22px; }
.ob-screen.in-right { animation: obInR 560ms var(--ease-out) both; }
.ob-screen.in-left  { animation: obInL 560ms var(--ease-out) both; }
.ob-screen.out-left  { animation: obOutL 420ms var(--ease-in-out) both; }
.ob-screen.out-right { animation: obOutR 420ms var(--ease-in-out) both; }
.ob-screen.out-down  { animation: obOutD 420ms var(--ease-in-out) both; }
.ob-screen.is-leaving { pointer-events: none; }
@keyframes obInR  { from { transform: translateX(38%);  opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes obInL  { from { transform: translateX(-38%); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes obOutL { to { transform: translateX(-28%) scale(0.97); opacity: 0; } }
@keyframes obOutR { to { transform: translateX(28%) scale(0.97);  opacity: 0; } }
@keyframes obOutD { to { transform: translateY(40px) scale(0.96); opacity: 0; } }

/* Words arrive one at a time, from the side she is travelling towards. */
.ob-w {
  display: inline-block;
  animation: obWord 620ms var(--ease-out) calc(140ms + var(--i) * 55ms) both;
}
@keyframes obWord {
  from { transform: translate(var(--wx), 0.35em); opacity: 0; filter: blur(4px); }
  to   { transform: none; opacity: 1; filter: none; }
}

/* ---- the big pill buttons ---- */
.ob-cta {
  position: relative;
  flex: 0 0 auto;
  width: 100%;
  min-height: 60px;
  margin-top: 16px;
  padding: 0 20px 0 26px;
  border: 0;
  border-radius: 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-ka);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  animation: obRise 600ms var(--ease-out) 420ms both;
  transition: transform var(--dur-fast) var(--ease-spring),
              opacity var(--dur-mid) var(--ease-out),
              box-shadow var(--dur-mid) var(--ease-out);
}
.ob-cta:active { transform: scale(0.965); }
.ob-cta-dark { background: #0A0A0C; color: #fff; box-shadow: 0 12px 28px -12px rgba(0, 0, 0, 0.6); }
.ob-cta-lime {
  background: var(--lime);
  color: #0A0A0C;
  opacity: 0.4;
}
.ob-cta-lime.is-ready {
  opacity: 1;
  box-shadow: 0 12px 30px -10px rgba(201, 245, 59, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.45);
}
.ob-cta-arrows svg {
  display: block;
  width: 22px; height: 22px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  animation: obNudge 1.6s var(--ease-in-out) infinite;
}
@keyframes obNudge {
  0%, 100% { transform: translateX(0); }
  50%      { transform: translateX(5px); }
}
@keyframes obRise {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.ob-cta-lime:not(.is-ready) { animation-name: obRiseDim; }
@keyframes obRiseDim {
  from { transform: translateY(18px); opacity: 0; }
  to   { transform: none; opacity: 0.4; }
}

/* ============ A. the welcome screens ============ */
.ob-slide-top { display: flex; justify-content: center; }
.ob-brand {
  font-family: var(--font-num);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.34em;
  padding-left: 0.34em;
  opacity: 0.75;
}
.ob-head {
  margin: 30px 0 0;
  color: var(--ob-ink);
  font-family: var(--font-ka);
  font-size: clamp(31px, 9vw, 40px);
  font-weight: 700;
  line-height: 1.16;
  letter-spacing: -0.02em;
}
/* The pill inside the headline, from the reference: black, with a round coloured
   "go" at its end. Sized in em so it scales with the headline. */
.ob-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.35em;
  padding: 0.16em 0.16em 0.16em 0.55em;
  border-radius: 999px;
  background: #0A0A0C;
  color: #fff;
  font-size: 0.56em;
  font-weight: 600;
  letter-spacing: 0;
  vertical-align: 0.28em;
}
.ob-chip-go {
  width: 1.7em; height: 1.7em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #FF7A4D;
  animation: obChipGo 2.4s var(--ease-in-out) 1.2s infinite;
}
.ob-chip-go svg { width: 60%; height: 60%; fill: none; stroke: #fff; stroke-width: 2.6;
  stroke-linecap: round; stroke-linejoin: round; }
@keyframes obChipGo {
  0%, 70%, 100% { transform: rotate(0); }
  80%           { transform: rotate(-20deg) scale(1.08); }
  90%           { transform: rotate(8deg); }
}
/* On the coral screen a coral "go" would vanish, so it turns lime there. */
.ob-slide-2 .ob-chip-go { background: var(--lime); }
.ob-slide-2 .ob-chip-go svg { stroke: #0A0A0C; }

.ob-sub {
  margin: 14px 0 0;
  max-width: 340px;
  font-family: var(--font-ka);
  font-size: 15px;
  line-height: 1.55;
  color: var(--ob-ink);
  opacity: 0.78;
}

.ob-art {
  position: relative;
  flex: 1 1 auto;
  min-height: 210px;
  display: grid;
  place-items: center;
  margin-top: 8px;
  animation: obArtIn 800ms var(--ease-spring) 300ms both;
}
@keyframes obArtIn {
  from { transform: scale(0.7) rotate(-4deg); opacity: 0; }
  to   { transform: none; opacity: 1; }
}

/* The doodles — a black heart and two outlined sparkles, bobbing out of step. */
.ob-doodle { position: absolute; overflow: visible; }
.ob-heart {
  width: 40px; height: 40px;
  right: 8%; top: 6%;
  fill: #0A0A0C;
  animation: obBob 3.2s var(--ease-in-out) infinite;
  transform-origin: center;
}
.ob-star {
  width: 26px; height: 26px;
  fill: none;
  stroke: #0A0A0C;
  stroke-width: 1.6;
  stroke-linejoin: round;
  animation: obTwinkle 2.8s var(--ease-in-out) infinite;
}
.ob-star.s1 { left: 6%; top: 18%; }
.ob-star.s2 { right: 14%; bottom: 10%; width: 20px; height: 20px; animation-delay: 1.1s; }
@keyframes obBob {
  0%, 100% { transform: translateY(0) rotate(-12deg); }
  50%      { transform: translateY(-9px) rotate(-4deg); }
}
@keyframes obTwinkle {
  0%, 100% { transform: scale(0.85) rotate(0); }
  50%      { transform: scale(1.15) rotate(20deg); }
}

/* Art 1 — the day ring, sweeping itself full. */
.ob-ring { width: 190px; height: 190px; }
.ob-ring circle { fill: none; stroke-width: 12; }
.ob-ring-track { stroke: rgba(10, 10, 12, 0.12); }
.ob-ring-fill {
  stroke: #0A0A0C;
  stroke-linecap: round;
  stroke-dasharray: 289;
  stroke-dashoffset: 289;
  animation: obSweep 1.5s var(--ease-out) 500ms forwards;
}
@keyframes obSweep { to { stroke-dashoffset: 0; } }
.ob-ring-num {
  position: absolute;
  font-family: var(--font-num);
  font-size: 46px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #0A0A0C;
}
.ob-ring-num span { font-size: 0.45em; margin-left: 2px; }

/* Art 2 — three rows filling one after another, the day screen in miniature. */
.ob-art-rows { align-content: center; gap: 12px; }
.ob-mini-row {
  position: relative;
  width: min(270px, 78vw);
  height: 60px;
  border-radius: 20px;
  border: 2px solid #0A0A0C;
  background: rgba(255, 255, 255, 0.5);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 12px;
  overflow: hidden;
}
.ob-mini-fill {
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: calc(var(--f) * 100%);
  background: rgba(255, 122, 77, 0.8);
  transform-origin: left center;
  transform: scaleX(0);
  animation: obFill 900ms var(--ease-out) calc(600ms + var(--i) * 380ms) forwards;
}
@keyframes obFill { to { transform: scaleX(1); } }
.ob-mini-row img { position: relative; width: 28px; height: 28px; }
.ob-mini-bar {
  position: relative;
  width: 44%;
  height: 10px;
  border-radius: 5px;
  background: rgba(10, 10, 12, 0.22);
}
.ob-mini-tick {
  position: relative;
  margin-left: auto;
  width: 30px; height: 30px;
  border-radius: 50%;
  border: 2px solid #0A0A0C;
  display: grid;
  place-items: center;
  animation: obTickOn 420ms var(--ease-spring) calc(1250ms + var(--i) * 380ms) forwards;
}
.ob-mini-tick svg { width: 16px; height: 16px; fill: none; stroke: #fff; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; }
@keyframes obTickOn {
  0%   { transform: scale(0.6); background: transparent; }
  60%  { transform: scale(1.18); background: #0A0A0C; }
  100% { transform: scale(1);    background: #0A0A0C; }
}
.ob-mini-row .ob-mini-tick svg { animation: obShow 1ms linear calc(1400ms + var(--i) * 380ms) forwards; }
@keyframes obShow { to { opacity: 1; } }

/* Art 3 — the flame in a dark medallion, and the chain it keeps alive. */
.ob-art-flame { align-content: center; justify-items: center; gap: 22px; }
.ob-big-flame {
  width: 170px; height: 170px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: radial-gradient(circle at 50% 60%, #2A1206, #0A0A0C 70%);
  box-shadow: 0 16px 40px -12px rgba(10, 10, 12, 0.7), 0 0 0 2px #0A0A0C;
}
.ob-big-flame .sp-flame-svg { width: 104px; height: 104px; }
.ob-chain { display: flex; align-items: center; }
.ob-chain span {
  position: relative;
  width: 34px; height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #0A0A0C;
  margin: 0 4px;
  transform: scale(0);
  animation: spDayPop 420ms var(--ease-spring) calc(700ms + var(--i) * 150ms) forwards;
}
.ob-chain span + span::before {
  content: '';
  position: absolute;
  right: 100%;
  width: 8px;
  height: 4px;
  background: #0A0A0C;
}
.ob-chain svg { width: 17px; height: 17px; fill: none; stroke: var(--lime); stroke-width: 3;
  stroke-linecap: round; stroke-linejoin: round; }

.ob-dots {
  display: flex;
  justify-content: center;
  gap: 6px;
  margin-top: 14px;
}
.ob-dots span {
  width: 7px; height: 7px;
  border-radius: 4px;
  background: rgba(10, 10, 12, 0.25);
  transition: width 500ms var(--ease-spring), background var(--dur-mid) var(--ease-out);
}
.ob-dots span.on { width: 24px; background: #0A0A0C; animation: obDot 500ms var(--ease-spring) both; }
@keyframes obDot { from { width: 7px; } to { width: 24px; } }

/* ============ B. the checklist ============ */
.ob-list-glow {
  position: absolute;
  left: 50%; top: -160px;
  width: 460px; height: 380px;
  margin-left: -230px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 245, 59, 0.16), rgba(201, 245, 59, 0) 65%);
  pointer-events: none;
  animation: spBreathe 4s var(--ease-in-out) infinite alternate;
}
.ob-list-head { position: relative; margin-top: 8px; }
.ob-count {
  display: inline-block;
  padding: 4px 11px;
  border-radius: 999px;
  background: rgba(201, 245, 59, 0.12);
  border: 1px solid rgba(201, 245, 59, 0.3);
  font-family: var(--font-num);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
}
.ob-count span { color: var(--lime); }
.ob-list-title {
  margin: 12px 0 0;
  color: var(--ob-ink);
  font-family: var(--font-ka);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ob-list-sub {
  margin: 8px 0 0;
  font-family: var(--font-ka);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
}
.ob-progress, .ob-step-bar {
  height: 6px;
  margin-top: 18px;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.08);
  overflow: hidden;
}
.ob-progress span, .ob-step-bar span {
  display: block;
  height: 100%;
  width: calc(var(--p) * 100%);
  border-radius: 3px;
  background: linear-gradient(90deg, var(--teal), var(--lime));
  box-shadow: 0 0 12px rgba(201, 245, 59, 0.6);
  animation: obBar 900ms var(--ease-spring) 250ms both;
}
@keyframes obBar { from { width: 0; } }

.ob-items {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 18px 0 auto;
}
.ob-item {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 54px;
  padding: 0 14px 0 12px;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(255, 255, 255, 0.035);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  animation: obRise 520ms var(--ease-out) calc(160ms + var(--i) * 55ms) both;
  transition: transform var(--dur-fast) var(--ease-spring),
              border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}
.ob-item:active { transform: scale(0.975); }
.ob-item-dot {
  position: relative;
  flex: 0 0 auto;
  width: 32px; height: 32px;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 255, 255, 0.18);
  display: grid;
  place-items: center;
  font-family: var(--font-num);
  font-size: 13px;
  color: var(--text-2);
  transition: background var(--dur-mid) var(--ease-spring), border-color var(--dur-mid) var(--ease-out);
}
.ob-item-dot > * { grid-area: 1 / 1; }
.ob-item-dot svg { width: 17px; height: 17px; fill: none; stroke: #0A0A0C; stroke-width: 3.2;
  stroke-linecap: round; stroke-linejoin: round; opacity: 0; transform: scale(0.4);
  transition: opacity var(--dur-fast), transform var(--dur-mid) var(--ease-spring); }
.ob-item.is-done .ob-item-dot { background: var(--lime); border-color: var(--lime); }
.ob-item.is-done .ob-item-dot .num { opacity: 0; }
.ob-item.is-done .ob-item-dot svg { opacity: 1; transform: none; }
.ob-item.is-next {
  border-color: rgba(201, 245, 59, 0.4);
  background: rgba(201, 245, 59, 0.06);
}
.ob-item.is-next .ob-item-dot {
  border-color: var(--lime);
  color: var(--lime);
  animation: obPulse 1.8s var(--ease-in-out) infinite;
}
@keyframes obPulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(201, 245, 59, 0.45); }
  50%      { box-shadow: 0 0 0 8px rgba(201, 245, 59, 0); }
}
.ob-item.just-done .ob-item-dot { animation: tickLand 560ms var(--ease-spring) 300ms both; }
.ob-item.just-done { animation: obRise 520ms var(--ease-out) calc(160ms + var(--i) * 55ms) both,
                                 obFlash 1100ms var(--ease-out) 300ms; }
@keyframes obFlash {
  0%   { box-shadow: 0 0 0 0 rgba(201, 245, 59, 0); }
  30%  { box-shadow: 0 0 26px 2px rgba(201, 245, 59, 0.35); }
  100% { box-shadow: 0 0 0 0 rgba(201, 245, 59, 0); }
}
.ob-item.shake { animation: obShake 460ms var(--ease-out); }
@keyframes obShake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-7px); }
  40% { transform: translateX(6px); }
  60% { transform: translateX(-4px); }
  80% { transform: translateX(2px); }
}
.ob-item-text { flex: 1 1 auto; min-width: 0; }
.ob-item-label { display: block; font-family: var(--font-ka); font-size: 15px; font-weight: 600; }
.ob-item-opt { display: block; margin-top: 2px; font-family: var(--font-ka); font-size: 11px; color: var(--text-3); }
.ob-item-val {
  max-width: 42%;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
  font-family: var(--font-ka);
  font-size: 14px;
  color: var(--text-2);
}
.ob-item-chev { flex: 0 0 auto; font-family: var(--font-num); font-size: 20px; color: var(--text-3); }
/* A short screen (a phone browser with its toolbars, the SE) tightens the list so the
   seven rows and the start button fit without a scroll (2026-09-24). Tall phones keep
   the roomier spacing above. */
@media (max-height: 780px) {
  .ob-list .ob-progress { margin-top: 12px; }
  .ob-items { gap: 5px; margin-top: 12px; }
  .ob-item { min-height: 48px; }
}
.ob-have {
  align-self: center;
  margin-top: 8px;
  padding: 8px 12px;
  border: 0;
  background: none;
  font-family: var(--font-ka);
  font-size: 14px;
  color: var(--lime);
  cursor: pointer;
  animation: obRise 520ms var(--ease-out) 560ms both;
}

/* ============ one step ============ */
.ob-step-top { display: flex; align-items: center; justify-content: space-between; }
.ob-back {
  width: 42px; height: 42px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.ob-back:active { transform: scale(0.9); }
.ob-back svg { width: 20px; height: 20px; fill: none; stroke: var(--text-1); stroke-width: 2.2;
  stroke-linecap: round; stroke-linejoin: round; }
.ob-step-n { font-family: var(--font-num); font-size: 13px; font-weight: 600; color: var(--text-2); }
.ob-step-bar { height: 4px; margin-top: 16px; }
.ob-q {
  margin: 28px 0 0;
  color: var(--ob-ink);
  font-family: var(--font-ka);
  font-size: 29px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
}
.ob-hint {
  margin: 10px 0 0;
  font-family: var(--font-ka);
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-2);
  animation: obRise 520ms var(--ease-out) 260ms both;
}
.ob-input { margin-top: 30px; animation: obRise 560ms var(--ease-out) 320ms both; }
.ob-step-foot { margin-top: auto; padding-top: 18px; display: flex; flex-direction: column; }
.ob-skip {
  align-self: center;
  padding: 8px 14px;
  border: 0;
  background: none;
  font-family: var(--font-ka);
  font-size: 14px;
  color: var(--text-2);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.ob-name {
  width: 100%;
  height: 66px;
  padding: 0 20px;
  border-radius: 20px;
  border: 1.5px solid var(--border-2);
  background: var(--surface-2);
  color: var(--text-1);
  font-family: var(--font-ka);
  font-size: 22px;
  font-weight: 600;
  outline: none;
  transition: border-color var(--dur-mid) var(--ease-out), box-shadow var(--dur-mid) var(--ease-out);
}
.ob-name::placeholder { color: var(--text-3); font-weight: 400; }
.ob-name:focus { border-color: var(--lime); box-shadow: 0 0 0 4px rgba(201, 245, 59, 0.12); }

.ob-sex-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.ob-sex {
  min-height: 160px;
  border-radius: 24px;
  border: 1.5px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  font-family: var(--font-ka);
  font-size: 17px;
  font-weight: 600;
  color: var(--text-1);
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring), border-color var(--dur-mid) var(--ease-out),
              background var(--dur-mid) var(--ease-out);
}
.ob-sex:active { transform: scale(0.96); }
.ob-sex-glyph {
  width: 64px; height: 64px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.07);
  transition: background var(--dur-mid) var(--ease-out);
}
.ob-sex-glyph svg { width: 32px; height: 32px; fill: none; stroke: var(--text-1); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ob-sex.is-on {
  border-color: var(--lime);
  background: rgba(201, 245, 59, 0.1);
  box-shadow: 0 0 30px -8px rgba(201, 245, 59, 0.6);
  animation: chPick 380ms var(--ease-spring);
}
.ob-sex.is-on .ob-sex-glyph { background: var(--lime); }
.ob-sex.is-on .ob-sex-glyph svg { stroke: #0A0A0C; }

.ob-accs { display: flex; flex-direction: column; gap: 10px; }
.ob-acc {
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 76px;
  padding: 0 14px;
  border-radius: 20px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: var(--text-1);
  text-align: left;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-spring);
}
.ob-acc:active { transform: scale(0.975); }
.ob-acc-glyph {
  flex: 0 0 auto;
  width: 44px; height: 44px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: rgba(201, 245, 59, 0.12);
}
.ob-acc-glyph svg { width: 21px; height: 21px; fill: none; stroke: var(--lime); stroke-width: 2;
  stroke-linecap: round; stroke-linejoin: round; }
.ob-acc-text { flex: 1 1 auto; min-width: 0; }
.ob-acc-title { display: block; font-family: var(--font-ka); font-size: 15px; font-weight: 600; }
.ob-acc-sub { display: block; margin-top: 3px; font-family: var(--font-ka); font-size: 12.5px; color: var(--text-2); }

/* The number, and the ruler under it. */
.ob-num { display: flex; align-items: baseline; justify-content: center; gap: 8px; }
.ob-num-val {
  width: 4ch;          /* re-set per value by obFitNum() so the unit sits beside it */
  padding: 0;
  border: 0;
  background: transparent;
  outline: none;
  text-align: center;
  font-family: var(--font-num);
  font-size: 68px;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #fff;
  caret-color: var(--lime);
  font-variant-numeric: tabular-nums;
}
.ob-num-val.bump { animation: obBump 180ms var(--ease-out); }
@keyframes obBump { 50% { transform: scale(1.04); } }
.ob-num-unit { font-family: var(--font-ka); font-size: 20px; font-weight: 600; color: var(--text-2); }

.ob-ruler-wrap { position: relative; margin-top: 22px; }
.ob-ruler {
  display: flex;
  height: 86px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;
  touch-action: pan-x;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 22%, #000 78%, transparent);
}
.ob-ruler::-webkit-scrollbar { display: none; }
/* Half a ruler of air either side, so the first and last value can reach the needle. */
.ob-ruler::before, .ob-ruler::after { content: ''; flex: 0 0 50%; }
.ob-ruler-track {
  position: relative;
  flex: 0 0 auto;
  height: 100%;
  /* Minor ticks every step, major ticks every labelled interval — two repeating
     gradients, no elements. The track's left edge is the minimum value. */
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.75) 0 2px, transparent 2px var(--major)) 0 0 / 100% 40px no-repeat,
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.26) 0 2px, transparent 2px var(--px)) 0 0 / 100% 22px no-repeat;
}
.ob-tick-l {
  position: absolute;
  top: 50px;
  transform: translateX(calc(-50% + 1px));
  font-family: var(--font-num);
  font-size: 12px;
  color: var(--text-3);
}
.ob-needle {
  position: absolute;
  left: 50%; top: -6px;
  width: 4px; height: 56px;
  margin-left: -1px;
  border-radius: 2px;
  background: var(--lime);
  box-shadow: 0 0 14px rgba(201, 245, 59, 0.8);
  pointer-events: none;
}

/* ============ C. the finale ============ */
.ob-finale {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: calc(env(safe-area-inset-top) + 24px) var(--pad) calc(env(safe-area-inset-bottom) + 22px);
  overflow: hidden;
}
.ob-finale.is-on { display: flex; }
.ob-fin-glow {
  position: absolute;
  left: 50%; top: 18%;
  width: 420px; height: 420px;
  margin-left: -210px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(201, 245, 59, 0.22), rgba(201, 245, 59, 0) 65%);
  animation: spBreathe 3s var(--ease-in-out) infinite alternate;
}
.ob-mascot {
  position: relative;
  width: 240px; height: 240px;
  margin-top: auto;
}
.ob-finale.is-on .ob-mascot { animation: spPop 800ms var(--ease-spring) 100ms both; }
.ob-fin-title {
  position: relative;
  margin-top: 10px;
  font-family: var(--font-ka);
  font-size: 30px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: var(--text-1);
}
.ob-fin-sub {
  position: relative;
  max-width: 320px;
  margin-top: 10px;
  font-family: var(--font-ka);
  font-size: 15px;
  line-height: 1.55;
  color: var(--text-2);
}
.ob-finale.is-on .ob-fin-title { animation: obRise 600ms var(--ease-out) 350ms both; }
.ob-finale.is-on .ob-fin-sub   { animation: obRise 600ms var(--ease-out) 480ms both; }
.ob-finale .ob-cta { margin-top: auto; justify-content: center; }
.ob-finale.is-on .ob-cta { animation: obRise 600ms var(--ease-out) 650ms both; }
.ob-conf {
  position: absolute;
  top: 0;
  width: 8px; height: 13px;
  border-radius: 2px;
  pointer-events: none;
}

/* The list is the tallest screen; its button sits closer so it fits an 812px phone. */
.ob-list .ob-cta { margin-top: 10px; }
.ob-list .ob-list-sub { margin-top: 6px; }
.ob-list .ob-progress { margin-top: 14px; }
