/* Onboarding (ui/onboarding.js): one centred column over the felt-blue night, one question per
   screen, the main button pinned to the bottom of the column so it is reachable at 320x568.
   Motion: each step rises in with the `rise` token (440ms); off under Reduce Motion. */
body.onb-open { overflow: hidden; }
body.onb-open > header, body.onb-open > main { visibility: hidden; }

.onb {
  position: fixed; inset: 0; z-index: 60; overflow-y: auto; -webkit-overflow-scrolling: touch;
  background: radial-gradient(900px 700px at 50% 18%, #163a68 0%, var(--navy) 48%, var(--night) 100%), var(--night);
}
.onb-col {
  max-width: 460px; margin: 0 auto; min-height: 100%; min-height: 100dvh;
  padding: max(14px, env(safe-area-inset-top)) 20px max(18px, env(safe-area-inset-bottom));
  display: flex; flex-direction: column; gap: 14px;
}
.onb-top { display: grid; grid-template-columns: 52px 1fr 52px; align-items: center; min-height: 40px; }
.onb-back, .onb-skip { background: none; border: 0; color: var(--muted); padding: 8px 4px; font-weight: 650; min-height: 40px; }
.onb-back { font-size: 28px; line-height: 1; text-align: left; color: var(--text); }
.onb-skip { text-align: right; font-size: 14px; }
.onb-back-space { display: block; }
.onb-progress { display: flex; gap: 5px; justify-content: center; }
.onb-progress i { width: 26px; height: 4px; border-radius: 2px; background: rgba(243,239,228,0.16); }
.onb-progress i.on { background: var(--gold); }

.onb-body { flex: 1; display: flex; flex-direction: column; gap: 14px; animation: onb-rise 440ms var(--ease-out) both; }
.onb-hook { justify-content: center; }
@keyframes onb-rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.onb-title {
  margin: 0; font-size: clamp(26px, 7.4vw, 34px); line-height: 1.08; font-weight: 850; font-stretch: 118%; letter-spacing: -0.02em; color: var(--text);
}
.onb-lead { margin: 0; font-size: 16.5px; color: #dfe5ee; }
.onb-note { margin: 0; color: var(--muted); font-size: 13px; }
.onb-kicker { margin: 0; color: var(--gold); font-weight: 700; font-size: 13px; }
.onb-q { margin: 6px 0 0; font-size: 15px; font-weight: 750; color: var(--gold); }
.onb-prompt { margin: 0; font-size: 16px; color: var(--text); }

.onb-hook-cards { display: flex; gap: 8px; justify-content: center; margin-bottom: 8px; }
.onb-hook-cards .card:first-child { transform: rotate(-8deg); }
.onb-hook-cards .card:last-child { transform: rotate(7deg) translateY(4px); }
.card.onb-card { --w: clamp(40px, 11.5vw, 52px); }
.card.onb-card-lg { --w: clamp(56px, 16vw, 70px); }

.onb-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.onb-chip {
  border: 0; border-radius: 999px; padding: 10px 15px; min-height: 42px; font-weight: 650; font-size: 14.5px;
  background: rgba(243,239,228,0.06); box-shadow: inset 0 0 0 1px var(--line-2); color: var(--text);
  transition: background-color 180ms ease-out, transform 120ms ease-out;
}
.onb-chip:active { transform: scale(.97); }
.onb-chip.on { background: var(--gold); color: var(--accent-ink); box-shadow: none; font-weight: 800; }

.onb-felt {
  background: radial-gradient(120% 90% at 50% 28%, var(--felt-hi), var(--felt) 55%, var(--felt-lo));
  border-radius: 20px; padding: 16px 12px 14px; display: flex; flex-direction: column; align-items: center; gap: 12px;
  box-shadow: inset 0 0 0 1px rgba(216,192,138,0.35), var(--shadow);
}
.onb-board, .onb-hero { display: flex; gap: 6px; }
.onb-pot { background: rgba(7,20,40,0.5); border-radius: 999px; padding: 4px 12px; font-weight: 800; font-size: 13px; }

.onb-foot { position: sticky; bottom: 0; margin: 0 -20px; padding: 22px 20px 4px; background: linear-gradient(to top, var(--night) 62%, rgba(7,20,40,0)); }
.onb-main { width: 100%; padding: 15px 18px; font-size: 16px; }
.onb-options { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.onb-option { width: 100%; padding: 15px 10px; font-size: 15.5px; }
.onb-option.chosen { box-shadow: inset 0 0 0 2px var(--gold); }

.onb-big { font-size: clamp(48px, 15vw, 64px); font-weight: 900; font-stretch: 125%; letter-spacing: -0.03em; line-height: 1; color: var(--bad); font-variant-numeric: tabular-nums; }
.onb-lines { margin: 0; padding-left: 18px; display: flex; flex-direction: column; gap: 8px; color: #dfe5ee; font-size: 15px; }
.onb-tag {
  align-self: flex-start; background: rgba(200,40,59,0.18); color: #ffc2c8; border: 1px solid rgba(200,40,59,0.55);
  border-radius: 10px; padding: 7px 11px; font-weight: 800; font-size: 14px;
}

.onb-plan { margin: 0; padding: 0; list-style: none; counter-reset: step; display: flex; flex-direction: column; gap: 10px; }
.onb-plan li {
  counter-increment: step; position: relative; padding: 12px 14px 12px 44px; border-radius: 14px;
  background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); display: flex; flex-direction: column; gap: 2px;
}
.onb-plan li::before { content: counter(step); position: absolute; left: 16px; top: 12px; color: var(--gold); font-weight: 850; }
.onb-plan li span { color: var(--muted); font-size: 13px; }
.onb-leak { display: flex; flex-direction: column; gap: 7px; padding: 12px 14px; border-radius: 14px; background: var(--panel); box-shadow: inset 0 0 0 1px var(--line); }
.onb-bar { height: 6px; border-radius: 3px; background: rgba(243,239,228,0.12); overflow: hidden; }
.onb-bar i { display: block; height: 100%; background: var(--chip); border-radius: 3px; }

@media (prefers-reduced-motion: reduce) {
  .onb-body { animation: none; }
}
