/* =========================================================
   GateWallet — first-run onboarding (js/core/onboarding.js).

   Graphite brand ground: radial #14161E -> #07080C, depth
   from layered shadows, hairlines and grain — never from
   saturated gradients. Gold is the one confident accent.
   Each slide is a stack of .ob-plane depth layers that
   parallax against the swipe: JS writes --obx (px) on
   #onboarding, every plane multiplies it by its own --dp.

   The overlay is always dark, whatever the app theme, so
   every colour here is literal — like the splash.
   z-index 180: below sheets (190), so the authenticator
   setup sheet opens ON TOP of the final slide.
   Motion is transform/opacity only; entrance keyframes end
   on each element's base styles, so reduced-motion simply
   shows the settled frame.
   ========================================================= */

#onboarding {
  position: fixed; inset: 0; z-index: 180;
  display: flex; flex-direction: column;
  color: #fff; overflow: hidden;
  user-select: none; -webkit-user-select: none;
  /* The ground is OPAQUE from frame 0 — main.js mounts the overlay under the
     splash, and only the content animates in, so a first-run user never sees
     the app leak through a fading overlay. */
  background: radial-gradient(130% 100% at 50% -12%, #14161E 0%, #0B0C11 52%, #07080C 100%);
  transition: opacity .42s var(--ease-out), transform .42s var(--ease-out);
}
/* Exit: lift and dissolve, exactly like the splash. */
#onboarding.out { opacity: 0; transform: scale(1.05); pointer-events: none; }

html.onboarding-open, html.onboarding-open body { overflow: hidden; }

/* One faint cold light high above, a whisper of warmth mid-frame —
   the splash recipe, nothing louder. */
.ob-air { position: absolute; inset: 0; pointer-events: none; }
.ob-air::before {
  content: ""; position: absolute; top: -36%; left: 50%; width: 92vmax; height: 60vmax;
  transform: translateX(-50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 144, 196, .08), transparent 70%);
  animation: drift 16s var(--ease-out) infinite;
}
.ob-air::after {
  content: ""; position: absolute; top: 42%; left: 50%; width: 48vmax; height: 48vmax;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 166, 0, .05), transparent 68%);
}

/* Film grain over everything — static, near-invisible, unifying. */
.ob-grain {
  position: absolute; inset: 0; z-index: 6; pointer-events: none;
  opacity: .05;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='140' height='140'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/><feColorMatrix type='saturate' values='0'/></filter><rect width='140' height='140' filter='url(%23n)' opacity='0.6'/></svg>");
}

/* ------------------------------ skip ------------------------------ */

.ob-skip {
  position: absolute; z-index: 4;
  top: calc(var(--safe-t) + 14px); right: 16px;
  height: 32px; padding: 0 14px; border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .1);
  color: rgba(255, 255, 255, .64); font-size: 13px; font-weight: 600;
  animation: fadeIn .5s var(--ease-out) .5s both;
}

/* ------------------------------ track / slides ------------------------------ */

.ob-track {
  position: relative; z-index: 1;
  flex: 1; display: flex;
  touch-action: pan-y;
  transition: transform .65s var(--ease-out);
  will-change: transform;
}

.ob-slide {
  flex: 0 0 100%; min-width: 100%;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: calc(var(--safe-t) + 44px) 28px 12px;
  user-select: none; -webkit-user-select: none;
  /* Depth between slides: the inactive one sits back and dims. */
  opacity: .4; transform: scale(.97);
  transition: transform .65s var(--ease-out), opacity .65s var(--ease-out);
}
.ob-slide.active { opacity: 1; transform: none; }
.ob-slide img { -webkit-user-drag: none; pointer-events: none; }

.ob-eyebrow {
  margin-top: 20px;
  font-size: 11px; font-weight: 700;
  letter-spacing: 2.6px; text-transform: uppercase;
  color: rgba(247, 166, 0, .78);
}
.ob-slide h2 {
  margin: 8px 0 0; max-width: 320px;
  font-size: 26px; font-weight: 800; letter-spacing: -.6px; line-height: 1.16;
}
.ob-slide p {
  margin: 10px 0 0; max-width: 302px;
  font-size: 14.5px; line-height: 1.55; color: rgba(255, 255, 255, .6);
}
.ob-hint {
  margin-top: 12px; max-width: 252px;
  font-size: 12px; color: rgba(255, 255, 255, .38);
}

/* Entrance replays every time a slide becomes the active one. */
.ob-slide.active .ob-eyebrow { animation: fadeIn .6s var(--ease-out) .1s both; }
.ob-slide.active h2          { animation: rowIn .6s var(--ease-spring) .1s both; }
.ob-slide.active p           { animation: rowIn .6s var(--ease-spring) .18s both; }
.ob-slide.active .ob-hint    { animation: fadeIn .6s var(--ease-out) .34s both; }

/* ------------------------------ depth planes ------------------------------ */

.ob-scene { position: relative; width: min(300px, 100%); flex: 0 0 auto; }
.ob-plane {
  position: absolute; inset: 0;
  transform: translate3d(calc(var(--obx, 0px) * var(--dp, 0)), 0, 0);
  transition: transform .7s var(--ease-out);
  will-change: transform;
}
/* While the finger is down the planes track it 1:1 — no easing lag. */
.ob-dragging .ob-plane { transition: none; }

/* =========================================================
   Slide 1 — MARKETS: stage, gold price line, orbiting coins,
   and the platform row under the headline
   ========================================================= */

.sc-markets { height: 224px; }

.ob-floor {
  position: absolute; left: 8%; right: 8%; bottom: 0; height: 58px;
  background: radial-gradient(60% 100% at 50% 100%, rgba(247, 166, 0, .07), transparent 72%);
}
.ob-horizon {
  position: absolute; left: 4%; right: 4%; bottom: 26px; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .08) 22%,
    rgba(255, 255, 255, .08) 78%, transparent);
}

.ob-chart { position: absolute; left: 10px; right: 10px; top: 34px; width: calc(100% - 20px); overflow: visible; }
.ob-chart-fill { animation: fadeIn .8s var(--ease-out) .85s both; }
/* The line draws itself and terminates dead under the BTC coin — the rally
   lands ON Bitcoin; no stray ping fighting the coin's rim for attention. */
.ob-chart-line {
  stroke-dasharray: 380; stroke-dashoffset: 380;
  animation: obDraw 1.15s var(--ease-out) .25s forwards;
}
@keyframes obDraw { to { stroke-dashoffset: 0; } }

/* Coins orbit-float at different depths, each with a ground reflection. */
.ob-orb { position: absolute; }
.ob-orb-core { position: relative; }
.ob-orb .coin {
  border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .5), 0 4px 10px rgba(0, 0, 0, .4);
}
.ob-refl {
  position: absolute; top: calc(100% + 3px); left: 0; right: 0;
  transform: scaleY(-1); opacity: .14; pointer-events: none;
  -webkit-mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 62%);
  mask-image: linear-gradient(to top, rgba(0, 0, 0, .9), transparent 62%);
}
.ob-refl .coin { box-shadow: none; border-color: transparent; }

.o-btc { top: 4px; right: 14px; }
.o-btc .coin { width: 52px; height: 52px; }
.o-eth { top: 20px; left: 26px; }
.o-eth .coin { width: 42px; height: 42px; border-color: rgba(255, 255, 255, .2); }
/* ETH's dark mark needs a cool backlight to lift it off the dark ground. */
.o-eth .ob-orb-core::before {
  content: ""; position: absolute; inset: -12px; border-radius: 50%;
  background: radial-gradient(closest-side, rgba(124, 144, 196, .2), transparent 72%);
}
/* SOL sits grounded on the horizon, clear of the price line's path. */
.o-sol { bottom: 22px; left: 14px; }
.o-sol .coin { width: 33px; height: 33px; font-size: 11px; }

.ob-slide.active .ob-orb { animation: popIn .7s var(--ease-spring) both; }
.ob-slide.active .o-eth { animation-delay: .12s; }
.ob-slide.active .o-sol { animation-delay: .22s; }
.o-btc .ob-orb-core { animation: obOrbA 5.2s var(--ease-out) 1s infinite; }
.o-eth .ob-orb-core { animation: obOrbB 6.1s var(--ease-out) 1.3s infinite; }
.o-sol .ob-orb-core { animation: obOrbA 4.6s var(--ease-out) .7s infinite; }
@keyframes obOrbA { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(4px, -9px, 0); } }
@keyframes obOrbB { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(-5px, -7px, 0); } }

/* The platform row: three graphite tiles with small, dim marks — a quiet
   nominative comparison, never logo soup. Sits under the headline copy but
   carries the same --dp parallax contract as the scene planes. */
.ob-platrow {
  display: flex; gap: 10px; margin-top: 18px;
  transform: translate3d(calc(var(--obx, 0px) * var(--dp, 0)), 0, 0);
  transition: transform .7s var(--ease-out);
  will-change: transform;
}
.ob-dragging .ob-platrow { transition: none; }
.ob-plat {
  display: flex; align-items: center; gap: 7px;
  height: 40px; padding: 0 13px; border-radius: 12px;
  background: rgba(22, 24, 32, .92);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .4);
}
.ob-plat b {
  font-size: 10.5px; font-weight: 800; letter-spacing: 1px;
  color: rgba(255, 255, 255, .58); white-space: nowrap;
}
.ob-plat b i { font-style: normal; }
.ob-plat svg { width: 16px; height: 16px; display: block; }
.pf-bnb { color: rgba(247, 166, 0, .68); }        /* the gold diamond grid */
.pf-bybit b i { color: rgba(247, 166, 0, .68); }  /* Bybit's gold T */
.pf-htx b { color: rgba(78, 168, 255, .66); }     /* HTX blue */
.ob-plat-cap { margin-top: 10px; font-size: 12px; color: rgba(255, 255, 255, .42); }

/* The tiles slide in one after another once the headline has landed. */
.ob-slide.active .ob-plat { animation: obPlatIn .6s var(--ease-spring) both; }
.ob-slide.active .ob-plat:nth-child(1) { animation-delay: .3s; }
.ob-slide.active .ob-plat:nth-child(2) { animation-delay: .4s; }
.ob-slide.active .ob-plat:nth-child(3) { animation-delay: .5s; }
@keyframes obPlatIn {
  from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.94); }
}
.ob-slide.active .ob-plat-cap { animation: fadeIn .6s var(--ease-out) .68s both; }

@media (max-width: 355px) {
  .ob-platrow { gap: 8px; }
  .ob-plat { height: 36px; padding: 0 10px; }
  .ob-plat b { font-size: 9.5px; letter-spacing: .8px; }
}

/* =========================================================
   Slide 2 — NETWORKS: constellation wired into the mark
   ========================================================= */

.sc-net { height: 210px; }

.ob-dust {
  position: absolute; width: 3px; height: 3px; border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}

.ob-wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ob-slide.active .ob-wires { animation: fadeIn .8s var(--ease-out) .25s both; }
.ob-wire {
  fill: none; stroke: rgba(255, 255, 255, .18); stroke-width: 1.5;
  stroke-linecap: round; stroke-dasharray: 3 8;
  animation: obDashFlow 1.5s linear infinite;
}
@keyframes obDashFlow { to { stroke-dashoffset: -11; } }
.ob-pkt { fill: #F7A600; opacity: .9; }

/* The hub: the gold mark on a local graphite chip (the glyph itself carries
   no plate any more), ringed by a slow gold halo. */
.ob-hub {
  position: absolute; left: 140px; top: 116px;
  width: 54px; height: 54px; margin: -27px 0 0 -27px;
  padding: 10px; box-sizing: border-box;
  border-radius: 15px;
  background: linear-gradient(180deg, #191B25, #0A0B10);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .55), 0 6px 18px rgba(247, 166, 0, .14);
}
.ob-hub svg { width: 100%; height: 100%; display: block; }
.ob-hub-ring {
  position: absolute; inset: -10px; border-radius: 21px;
  border: 1px solid rgba(247, 166, 0, .24);
  --glow-c: rgba(247, 166, 0, .3);
  animation: glow 3.2s var(--ease-out) infinite;
}
.ob-slide.active .ob-hub { animation: popIn .7s var(--ease-spring) .1s both; }

/* Network badges: graphite chips with real chain logos. */
.ob-chip {
  position: absolute; transform: translate(-50%, -50%);
  display: flex; align-items: center; gap: 6px;
  padding: 4px 10px 4px 5px; border-radius: var(--radius-pill);
  background: rgba(22, 24, 32, .92);
  border: 1px solid rgba(255, 255, 255, .1);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .45);
}
.ob-chip .coin { width: 20px; height: 20px; font-size: 7px; }
.ob-chip b {
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px;
  color: rgba(255, 255, 255, .78); white-space: nowrap;
}
/* Chips pop in one by one, then float — translate(-50%,-50%) is baked into
   the keyframes because the animations own the transform while they run. */
.ob-slide.active .ob-chip { animation: obChipIn .6s var(--ease-spring) both; }
.ob-slide.active .ob-chip:nth-of-type(2) { animation-delay: .1s; }
.ob-slide.active .ob-chip:nth-of-type(3) { animation-delay: .18s; }
.ob-slide.active .ob-chip:nth-of-type(4) { animation-delay: .26s; }
.ob-slide.active .ob-chip:nth-of-type(5) { animation-delay: .34s; }
@keyframes obChipIn {
  from { opacity: 0; transform: translate(-50%, -50%) scale(.7); }
  to   { opacity: 1; transform: translate(-50%, -50%); }
}

/* =========================================================
   Slide 3 — TELEGRAM: the paper plane docks beside the mark
   (mirror of the Google moment: enters from the LEFT)
   ========================================================= */

.sc-tg { height: 196px; }

/* Cool blue backlight instead of the security slide's gold. */
.ob-tg-glow {
  position: absolute; left: 50%; top: 50%; width: 260px; height: 200px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(42, 171, 238, .09), transparent 70%);
}

/* The Telegram circle: physical like the Google tile, springing from the left. */
.ob-ttile {
  position: relative; width: 62px; height: 62px; border-radius: 50%;
  overflow: hidden;
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 6px 18px rgba(42, 171, 238, .22);
}
.ob-tg { width: 100%; height: 100%; display: block; }
.ob-slide.active .ob-ttile { animation: obTgIn .95s var(--ease-out) .3s both; }
@keyframes obTgIn {
  0%   { opacity: 0; transform: translate3d(-130px, 0, 0) scale(.72) rotate(-10deg); }
  55%  { opacity: 1; transform: translate3d(9px, 0, 0) scale(1.05) rotate(2deg); }
  76%  { transform: translate3d(-4px, 0, 0) scale(.985) rotate(-.6deg); }
  100% { opacity: 1; transform: none; }
}
/* The vault answers from the right on this slide (obVaultIn enters from the left). */
.ob-slide.active .sc-tg .ob-vault { animation-name: obVaultInR; }
@keyframes obVaultInR {
  from { opacity: 0; transform: translate3d(36px, 0, 0) scale(.85); }
}

/* =========================================================
   Slide 4 — REWARDS: voucher fan, counter, quiet coin spill
   ========================================================= */

.sc-rewards { height: 252px; }

.ob-halo {
  position: absolute; left: 50%; top: 42%; width: 240px; height: 240px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 166, 0, .09), transparent 70%);
}

/* The fan: three ticket plates, graphite with a gold edge, spread on entry. */
.ob-fan { position: absolute; left: 50%; top: 74px; width: 0; height: 0; }
.ob-voucher {
  position: absolute; left: -74px; top: -46px;
  width: 148px; height: 92px; border-radius: 16px;
  background: linear-gradient(165deg, #1D2029 0%, #12141C 60%, #0D0F15 100%);
  border: 1px solid rgba(255, 255, 255, .09);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .55);
}
/* Gold spine + punched notches make it read as a ticket, not a card. */
.ob-voucher::before {
  content: ""; position: absolute; left: 10px; top: 10px; bottom: 10px; width: 2px;
  border-radius: 2px;
  background: linear-gradient(180deg, #FFD879, rgba(247, 166, 0, .25));
}
.ob-voucher::after {
  content: ""; position: absolute; left: 18px; top: 8px; bottom: 8px; width: 1px;
  background: repeating-linear-gradient(180deg,
    rgba(255, 255, 255, .16) 0 4px, transparent 4px 10px);
}
.ob-voucher.v1 { transform: translate3d(-40px, 8px, 0) rotate(-12deg); opacity: .55; }
.ob-voucher.v2 { transform: translate3d(-16px, 1px, 0) rotate(-4deg); opacity: .8; }
.ob-voucher.v3 {
  transform: translate3d(16px, 4px, 0) rotate(7deg);
  display: flex; flex-direction: column;
  align-items: flex-start; justify-content: center;
  gap: 3px; padding-left: 32px; text-align: left;
  border-color: rgba(247, 166, 0, .28);
  box-shadow: 0 18px 44px rgba(0, 0, 0, .6), 0 8px 24px rgba(247, 166, 0, .12);
}
.ob-vch-gift { color: #F7A600; }
.ob-vch-gift svg { width: 22px; height: 22px; display: block; }
.ob-vch-title { font-size: 13px; font-weight: 800; letter-spacing: -.2px; color: #fff; }
.ob-vch-sub {
  font-size: 8.5px; font-weight: 600; letter-spacing: .5px;
  text-transform: uppercase; white-space: nowrap;
  color: rgba(255, 255, 255, .42);
}

/* Entry: the fan opens from a straight stack — 'to' is each base transform. */
.ob-slide.active .ob-voucher { animation: obFanIn .75s var(--ease-spring) both; }
.ob-slide.active .ob-voucher.v2 { animation-delay: .1s; }
.ob-slide.active .ob-voucher.v3 { animation-delay: .2s; }
@keyframes obFanIn {
  from { opacity: 0; transform: translate3d(0, 20px, 0) rotate(0deg) scale(.92); }
}

/* A restrained spill: four small gold coins drifting down and fading. */
.ob-drop {
  position: absolute; top: 118px; width: 11px; height: 11px; border-radius: 50%;
  background: radial-gradient(circle at 34% 30%, #FFD879 0%, #F7A600 52%, #A96F00 100%);
  box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .35);
  opacity: 0;
  animation: obSpill 3.8s var(--ease-out) infinite;
}
.ob-drop.d1 { left: 34%; --sx: -8px; animation-delay: .9s; }
.ob-drop.d2 { left: 46%; --sx: 5px; width: 8px; height: 8px; animation-delay: 2s; }
.ob-drop.d3 { left: 60%; --sx: 10px; animation-delay: 1.4s; }
.ob-drop.d4 { left: 70%; --sx: -4px; width: 7px; height: 7px; animation-delay: 2.8s; }
@keyframes obSpill {
  0%   { opacity: 0; transform: translate3d(0, -4px, 0) scale(.9); }
  25%  { opacity: .5; }
  100% { opacity: 0; transform: translate3d(var(--sx, 0px), 40px, 0) scale(.7); }
}

/* The number is the loudest thing on the slide — solid gold, tight, tabular. */
.ob-amount {
  position: absolute; left: 0; right: 0; bottom: 0;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
}
.ob-slide.active .ob-amount { animation: rowIn .7s var(--ease-spring) .3s both; }
.ob-amt-row { display: flex; align-items: baseline; gap: 7px; }
.ob-num {
  font-size: 46px; font-weight: 800; letter-spacing: -1.6px; line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(180deg, #FFD879 0%, #F7A600 62%, #D18C00 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ob-unit { font-size: 15px; font-weight: 700; font-style: normal; color: rgba(255, 255, 255, .55); }

/* =========================================================
   Slide 5 — SECURITY: the Google moment
   ========================================================= */

.sc-secure { height: 196px; }

.ob-sec-glow {
  position: absolute; left: 50%; top: 50%; width: 260px; height: 200px;
  transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(247, 166, 0, .08), transparent 70%);
}

.ob-pair {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; align-items: center; justify-content: center; gap: 0;
}

/* The GateWallet vault: the gold mark on a local graphite chip (the glyph
   carries no plate any more), wearing a small gold shield. */
.ob-vault {
  position: relative; width: 62px; height: 62px; border-radius: 17px;
  padding: 12px; box-sizing: border-box;
  background: linear-gradient(180deg, #191B25, #0A0B10);
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow: 0 18px 42px rgba(0, 0, 0, .55), 0 8px 22px rgba(247, 166, 0, .14);
}
.ob-vault > svg { width: 100%; height: 100%; display: block; }
.ob-vault-badge {
  position: absolute; right: -7px; bottom: -7px;
  width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center;
  background: #14161E; color: #F7A600;
  border: 1px solid rgba(247, 166, 0, .4);
  box-shadow: 0 6px 14px rgba(0, 0, 0, .5);
}
.ob-vault-badge svg { width: 12px; height: 12px; }
.ob-slide.active .ob-vault { animation: obVaultIn .7s var(--ease-spring) .05s both; }
@keyframes obVaultIn {
  from { opacity: 0; transform: translate3d(-36px, 0, 0) scale(.85); }
}

/* The gold link line that snaps between the two once the G has settled. */
.ob-linkline {
  position: relative; width: 46px; height: 2px; margin: 0 10px;
  border-radius: 2px;
  background: linear-gradient(90deg, rgba(247, 166, 0, .25), #F7A600 50%, rgba(247, 166, 0, .25));
  transform-origin: left center;
}
.ob-linkline::after {
  content: ""; position: absolute; left: 50%; top: 50%;
  width: 6px; height: 6px; margin: -3px 0 0 -3px; border-radius: 50%;
  background: #FFD879;
  box-shadow: 0 0 10px rgba(247, 166, 0, .8);
}
.ob-slide.active .ob-linkline { animation: obLinkSnap .34s var(--ease-out) 1.28s both; }
@keyframes obLinkSnap {
  0%   { opacity: 0; transform: scaleX(0); }
  45%  { opacity: 1; }
  72%  { transform: scaleX(1.14); }
  100% { opacity: 1; transform: scaleX(1); }
}

/* The Google tile: white, physical, springing in from the right. */
.ob-gtile {
  position: relative; width: 62px; height: 62px; border-radius: 17px;
  display: grid; place-items: center; overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F4F7 100%);
  border: 1px solid rgba(255, 255, 255, .85);
  box-shadow: 0 20px 44px rgba(0, 0, 0, .55), 0 4px 12px rgba(0, 0, 0, .35);
}
.ob-g { width: 34px; height: 34px; display: block; }
.ob-slide.active .ob-gtile { animation: obGoogleIn .95s var(--ease-out) .3s both; }
@keyframes obGoogleIn {
  0%   { opacity: 0; transform: translate3d(130px, 0, 0) scale(.72) rotate(10deg); }
  55%  { opacity: 1; transform: translate3d(-9px, 0, 0) scale(1.05) rotate(-2deg); }
  76%  { transform: translate3d(4px, 0, 0) scale(.985) rotate(.6deg); }
  100% { opacity: 1; transform: none; }
}
/* One glint across the tile after it settles — a single pass, never a loop. */
.ob-glint {
  position: absolute; top: -20%; bottom: -20%; left: 0; width: 46%;
  background: linear-gradient(105deg, transparent 0%, rgba(255, 255, 255, .85) 50%, transparent 100%);
  transform: translate3d(-140%, 0, 0) skewX(-18deg);
  pointer-events: none;
}
.ob-slide.active .ob-glint { animation: shine .85s var(--ease-out) 1.7s 1 both; }

/* =========================================================
   Step 6 — PIN: the mark above four settled gold dots
   ========================================================= */

.sc-pin { height: 196px; }

.ob-pinlock {
  position: absolute; left: 0; right: 0; top: 50%; transform: translateY(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 20px;
}
/* The vault pops in place here — no sideways entrance to mirror. */
.ob-slide.active .sc-pin .ob-vault { animation-name: popIn; }

.ob-pindots { display: flex; gap: 14px; }
.ob-pindots i {
  width: 12px; height: 12px; border-radius: 50%;
  background: linear-gradient(180deg, #FFD879 0%, #F7A600 70%);
  box-shadow: 0 0 12px rgba(247, 166, 0, .35), 0 4px 10px rgba(0, 0, 0, .4);
}
.ob-slide.active .ob-pindots i { animation: popIn .5s var(--ease-spring) both; }
.ob-slide.active .ob-pindots i:nth-child(1) { animation-delay: .3s; }
.ob-slide.active .ob-pindots i:nth-child(2) { animation-delay: .39s; }
.ob-slide.active .ob-pindots i:nth-child(3) { animation-delay: .48s; }
.ob-slide.active .ob-pindots i:nth-child(4) { animation-delay: .57s; }

/* ------------------------------ footer ------------------------------ */

.ob-foot {
  position: relative; z-index: 2;
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  padding: 6px 24px calc(var(--safe-b) + 22px);
  animation: rowIn .5s var(--ease-out) .2s both;
}

/* Thin segmented progress bar — filled gold up to the active slide. */
.ob-prog { display: flex; gap: 6px; }
.ob-seg {
  position: relative; width: 34px; height: 22px; padding: 0;
  background: none; border: 0;
}
.ob-seg::before,
.ob-seg::after {
  content: ""; position: absolute; left: 0; right: 0; top: 50%;
  height: 3px; margin-top: -1.5px; border-radius: 3px;
}
.ob-seg::before { background: rgba(255, 255, 255, .12); }
.ob-seg::after {
  background: linear-gradient(90deg, #C97C00, #FFC24A);
  transform: scaleX(0); transform-origin: left center;
  transition: transform .5s var(--ease-out), opacity .3s var(--ease-out);
}
.ob-seg.done::after   { transform: scaleX(1); opacity: .38; }
.ob-seg.active::after { transform: scaleX(1); opacity: 1; }
/* The "+1": the PIN step's segment sits apart, shorter, faintly gold. */
.ob-seg.pin { width: 18px; margin-left: 8px; display: inline-block; }
.ob-seg.pin::before { background: rgba(247, 166, 0, .2); }

.ob-cta { width: min(380px, 100%); }
.ob-secure-cta { display: flex; flex-direction: column; gap: 10px; }
.ob-pin-cta { display: flex; flex-direction: column; gap: 4px; align-items: stretch; }
/* Dev bypass only (browser preview): a quiet way past the mandatory step. */
.ob-devskip {
  height: 38px; padding: 0 10px; background: none; border: 0;
  font-size: 13px; font-weight: 600; color: rgba(255, 255, 255, .42);
}
/* Local button voice: one confident gold, no gold->violet gradient here. */
#onboarding .btn.grad {
  background: linear-gradient(180deg, #FFC24A 0%, #F7A600 56%, #DD9400 100%);
  color: #1A1206;
  box-shadow: 0 12px 28px rgba(247, 166, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .38);
}
/* Ghost sits on the always-dark ground, so theme tokens do not apply. */
#onboarding .btn.ghost {
  border-color: rgba(255, 255, 255, .16);
  color: rgba(255, 255, 255, .72);
}

/* ------------------------------ reduced motion ------------------------------ */

@media (prefers-reduced-motion: reduce) {
  #onboarding, #onboarding *,
  #onboarding *::before, #onboarding *::after {
    animation: none !important;
    transition: none !important;
  }
  /* Entrance keyframes all end on base styles; only the drawn line needs an
     explicit settled state. */
  .ob-chart-line { stroke-dashoffset: 0; }
  .ob-drop, .ob-pkt { display: none; }
}
