/*
 * Pearls of Quran — sign-in / registration page (login/index.html).
 * Split layout: the sea (left, a live strand + shell that react to the form) and a calm pearl-white form panel (right).
 * On phones the sea collapses into a compact band above the form. Animations use transform + opacity only.
 */

html { background: var(--deep-950); scroll-padding-top: 0; }
body.auth { background: var(--deep-950); }
.auth-layout { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; min-height: 100vh; min-height: 100svh; }

/* ───────────────────────────── top bar ───────────────────────────── */
.auth-top { position: absolute; z-index: 5; left: 0; right: 0; top: 0; display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: calc(64px + env(safe-area-inset-top)); padding: env(safe-area-inset-top) max(var(--gutter), env(safe-area-inset-right)) 0 max(var(--gutter), env(safe-area-inset-left)); }
.auth-top__logo { flex: none; display: block; height: 34px; min-width: 96px; border-radius: 6px; }
.auth-top__logo svg { height: 100%; width: auto; }
.auth-top__actions { --ink: #F3F7FA; --ink-soft: #C3D4DF; --hover: rgba(255, 255, 255, .1); --edge: rgba(181, 221, 236, .3); display: flex; align-items: center; gap: .35rem; }
.auth-top__back { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: 0 .85rem; border-radius: var(--r-pill); font-size: var(--fs-sm); font-weight: 600; color: var(--ink-soft); white-space: nowrap; transition: background-color var(--t-med), color var(--t-med); }
.auth-top__back .i { width: 1.05em; height: 1.05em; transition: transform var(--t-med) var(--ease-out); }
.auth-top__sound { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--edge); color: var(--ink-soft); transition: background-color var(--t-med), color var(--t-med); }
.auth-top__sound .i { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) {
  .auth-top__back:hover, .auth-top__sound:hover { background: var(--hover); color: var(--ink); }
  .auth-top__back:hover .i { transform: translateX(-3px); }
}

/* ───────────────────────────── the sea ───────────────────────────── */
.auth-scene { --sea-top: #17829A; --sea-mid: #0D3D5C; --sea-bottom: var(--deep-950); display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 1rem; padding: calc(70px + env(safe-area-inset-top)) var(--gutter) 2.6rem; color: #F3F7FA; }
.auth-scene__pool { right: -22%; top: -40%; }
.auth-scene__pool--gold { right: auto; left: -30%; top: auto; bottom: -55%; }
.auth-scene__copy { order: 0; min-width: 0; display: grid; gap: .55rem; }
.auth-scene__headline { font-family: var(--font-display); font-variation-settings: 'opsz' 96; font-weight: 700; font-size: clamp(1.5rem, 6.4vw, 2.1rem); line-height: 1.04; letter-spacing: -.028em; }
.auth-scene__headline > span { display: block; }
.auth-proof { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .55rem; margin: 0; font-size: var(--fs-xs); font-weight: 550; color: #B4C8D6; }
.auth-proof li { display: inline-flex; align-items: baseline; gap: .3em; white-space: nowrap; }
.auth-proof li + li::before { content: ''; align-self: center; width: 3px; height: 3px; margin-right: .25rem; border-radius: 50%; background: var(--gold-300); opacity: .8; }
.auth-proof strong { font-weight: 700; color: var(--gold-300); letter-spacing: -.01em; }
.auth-scene__art { order: 1; position: relative; display: grid; justify-items: center; }
.scene-strand, .scene-caption { display: none; }
.scene-shell { position: relative; width: clamp(84px, 25vw, 112px); }
.scene-shell::before { content: ''; position: absolute; left: 50%; top: 52%; width: 190%; aspect-ratio: 1; translate: -50% -50%; border-radius: 50%; background: radial-gradient(closest-side, rgba(134, 227, 230, .26), rgba(134, 227, 230, .08) 55%, transparent 72%); pointer-events: none; }
.scene-shell .shell { position: relative; width: 100%; height: auto; }

@media (min-width: 960px) {
  .auth-layout { grid-template-columns: minmax(0, .88fr) minmax(0, 1fr); grid-template-rows: none; }
  .auth-top { height: 80px; padding-inline: clamp(1.5rem, 3.2vw, 3rem); }
  .auth-top__logo { height: 40px; }
  /* the actions sit on the pearl-white panel here */
  .auth-top__actions { --ink: #0B2236; --ink-soft: #46596A; --hover: rgba(10, 36, 56, .07); --edge: rgba(10, 36, 56, .18); }

  .auth-scene { position: sticky; top: 0; align-self: start; height: 100vh; height: 100svh; min-height: 600px; grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; align-items: stretch; gap: clamp(.75rem, 2.5vh, 1.75rem); padding: 96px clamp(1.5rem, 3.2vw, 3rem) clamp(1.75rem, 5vh, 3rem); }
  .auth-scene__pool { right: -35%; top: -25%; }
  .auth-scene__art { order: 0; align-content: center; min-height: 0; }
  .auth-scene__copy { order: 1; gap: clamp(1rem, 2.6vh, 1.6rem); }
  .auth-scene__headline { font-size: clamp(2.3rem, 3.7vw, 3.7rem); line-height: .98; }

  .auth-proof { gap: 0; font-size: var(--fs-sm); }
  .auth-proof li { display: grid; gap: .1rem; padding-inline: clamp(1rem, 2vw, 1.75rem); border-left: 1px solid rgba(181, 221, 236, .2); }
  .auth-proof li:first-child { padding-left: 0; border-left: 0; }
  .auth-proof li + li::before { display: none; }
  .auth-proof strong { font-size: clamp(1.5rem, 2.1vw, 2rem); line-height: 1; letter-spacing: -.035em; }
  .auth-proof span { font-size: var(--fs-xs); font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #9DB6C6; }

  .scene-strand { display: block; position: relative; width: min(100%, 540px); aspect-ratio: 1000 / 270; }
  .scene-strand__thread { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
  .scene-strand .bead { position: absolute; width: 9.4%; translate: -50% -50%; }
  .scene-shell { width: clamp(150px, 32vh, 290px); margin-top: clamp(-2rem, -3vh, -.5rem); }
  .scene-caption { display: block; margin-top: clamp(.35rem, 1.5vh, 1rem); }
  .scene-caption span { display: inline-flex; align-items: center; gap: .55em; min-height: 32px; padding: 0 1rem; border-radius: var(--r-pill); border: 1px solid rgba(229, 197, 104, .38); background: rgba(3, 13, 26, .38); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-300); }
  .scene-caption span::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
}
@media (min-width: 960px) and (max-height: 700px) {
  .scene-caption { display: none; }
  .auth-scene__headline { font-size: clamp(2rem, 3vw, 2.8rem); }
}

/* ───────────────────────────── beads (progress pearls) ───────────────────────────── */
.bead { position: relative; display: block; flex: none; width: var(--bead, 26px); aspect-ratio: 1; }
.bead > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bead__slot { transition: opacity .3s var(--ease-out); }
.bead__pearl { opacity: 0; transform: scale(.2); transition: opacity .35s var(--ease-out) var(--bd, 0ms), transform .65s var(--ease-spring) var(--bd, 0ms); }
.bead.is-done .bead__pearl { opacity: 1; transform: none; }
.bead.is-done .bead__slot { opacity: 0; }
.bead::after { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 2px solid var(--gold-300); opacity: 0; transform: scale(.7); transition: opacity .3s var(--ease-out), transform .45s var(--ease-out); }
.bead.is-current::after { opacity: 1; transform: none; }
.bead.is-skipped::after { opacity: .7; transform: scale(.42); }
.bead::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; border: 1.5px solid var(--gold-300); opacity: 0; }
.bead.is-current::before { animation: bead-pulse 2.2s ease-out infinite; }
@keyframes bead-pulse { from { transform: scale(1); opacity: .85; } to { transform: scale(2); opacity: 0; } }

/* ───────────────────────────── form panel ───────────────────────────── */
.auth-panel { position: relative; z-index: 1; margin-top: -1.5rem; padding: 1.6rem var(--gutter) calc(2.25rem + env(safe-area-inset-bottom)); border-radius: 26px 26px 0 0; background: var(--bg); color: var(--text); overflow: hidden; overflow: clip; }
.auth-panel::before { content: ''; position: absolute; right: -180px; top: -200px; width: 520px; height: 520px; border-radius: 50%; background: radial-gradient(closest-side, rgba(229, 197, 104, .2), transparent 70%); pointer-events: none; }
.auth-panel__inner { position: relative; width: min(100%, 460px); margin-inline: auto; }
@media (min-width: 960px) {
  .auth-panel { margin-top: 0; border-radius: 0; padding: clamp(5rem, 10.5vh, 8rem) clamp(1.5rem, 5vw, 4.5rem) 1.5rem; min-height: 100vh; min-height: 100svh; }
}

.auth-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); width: 100%; margin-bottom: clamp(1.25rem, 3vh, 2rem); }
.auth-seg button { justify-content: center; min-height: 44px; padding-inline: .5rem; font-size: .95rem; white-space: nowrap; }

.auth-view { display: block; }
.auth-head { display: grid; gap: .5rem; margin-bottom: 1.25rem; }
.auth-title { font-size: clamp(1.7rem, 1.25rem + 1.9vw, 2.25rem); line-height: 1.06; letter-spacing: -.03em; color: var(--text); }
.auth-head .auth-title { font-size: clamp(2.1rem, 1.5rem + 2.6vw, 2.9rem); }
.auth-title:focus-visible { outline: none; }
.auth-title .field__opt { display: inline-block; vertical-align: middle; margin-left: .35rem; font-family: var(--font-body); letter-spacing: 0; line-height: 1.6; }
.auth-sub { color: var(--text-soft); font-size: var(--fs-md); line-height: 1.5; }
.auth-kicker { display: flex; margin-bottom: .8rem; line-height: 1.4; font-variation-settings: normal; }
.auth-panel .field__label label { cursor: pointer; }
.auth-panel .phone--lg .phone__num { letter-spacing: .05em; }
.auth-panel .phone--lg .phone__num::placeholder { font-size: 1.05rem; }
.auth-submit { margin-top: 1.25rem; }
.auth-status { margin-top: .9rem; }
.auth-status:empty { display: none; }
.auth-status .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: .6rem; }
.auth-status .alert + .btn { margin-top: .7rem; }

/* registration */
.reg-progress { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.5rem; padding: .5rem 1rem .5rem .7rem; border-radius: var(--r-pill); background: linear-gradient(100deg, #0E3A58, var(--deep-900)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), 0 8px 22px rgba(7, 26, 43, .18); }
.reg-pearls { position: relative; flex: 1; min-width: 0; display: flex; align-items: center; justify-content: space-between; --bead: 28px; }
.reg-pearls::before, .reg-pearls::after { content: ''; position: absolute; left: 14px; right: 14px; top: 50%; height: 2px; margin-top: -1px; border-radius: 2px; background: rgba(181, 221, 236, .22); }
.reg-pearls::after { background: linear-gradient(90deg, var(--gold-500), var(--gold-300)); transform-origin: left; transform: scaleX(var(--p, 0)); transition: transform .7s var(--ease-out); }
.reg-pearls .bead { z-index: 1; }
.reg-count { flex: none; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .04em; color: #C9DAE5; font-variant-numeric: tabular-nums; white-space: nowrap; }

.reg-steps { min-height: 252px; }
.reg-steps:has(+ .consent:not([hidden])) { min-height: 0; }
.reg-step .auth-sub { margin-top: .5rem; margin-bottom: 1.25rem; }
.reg-actions { display: flex; align-items: center; gap: .5rem; margin-top: 1.25rem; }
.reg-actions__gap { flex: 1; }
.reg-actions .btn--ghost { padding-inline: 1rem; }
.reg-next { min-width: 150px; }
@media (max-width: 380px) {
  .reg-back span { display: none; }
  .reg-back { width: 48px; padding: 0; }
  .reg-next { min-width: 0; padding-inline: 1.3em; }
}

/* age */
.age-chips { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .5rem; }
.age-chip { min-height: 56px; border-radius: var(--r-md); border: 1.5px solid var(--field-line); background: var(--field-bg); font-family: var(--font-display); font-size: 1.2rem; font-weight: 650; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color var(--t-med), background-color var(--t-med), color var(--t-med), transform var(--t-fast); }
.age-chip:active { transform: scale(.95); }
.age-chip[aria-pressed="true"] { border-color: var(--gold-500); background: linear-gradient(180deg, #EBCB72, var(--gold-500)); color: var(--accent-ink); }
@media (hover: hover) { .age-chip:hover { border-color: var(--gold-500); } }
.age-other { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .75rem; }
.age-other label { font-size: var(--fs-sm); font-weight: 650; color: var(--text-soft); cursor: pointer; }
.age-other .input { width: 7.5rem; min-height: 56px; text-align: center; font-variant-numeric: tabular-nums; }
.age-other .input::placeholder { font-size: 1rem; }

/* gender */
.choice--lg { min-height: 72px; padding-inline: 1.15rem; font-size: 1.1rem; }
.choice__dot { position: relative; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 1.5px solid var(--field-line); background: var(--field-bg); transition: border-color var(--t-med); }
.choice__dot::after { content: ''; position: absolute; inset: 3px; border-radius: 50%; background: radial-gradient(circle at 35% 30%, #FFF6DC, var(--gold-500) 70%); opacity: 0; transform: scale(.3); transition: opacity var(--t-med), transform .4s var(--ease-spring); }
.choice:has(input:checked) .choice__dot { border-color: var(--gold-500); }
.choice:has(input:checked) .choice__dot::after { opacity: 1; transform: none; }
.choice input { width: 100%; height: 100%; margin: 0; }

/* pick your pearl */
.pearl-tray { padding: .9rem .9rem .7rem; border-radius: var(--r-lg); background: radial-gradient(120% 140% at 50% 0%, #14506F 0%, var(--deep-800) 55%, var(--deep-950) 100%); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .1), 0 12px 28px rgba(7, 26, 43, .2); }
.pearl-grid { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: .3rem; }
.pearl-opt { position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 50%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pearl-opt input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.pearl-opt .pearl { position: relative; width: 74%; height: 74%; pointer-events: none; transition: transform .45s var(--ease-spring); }
.pearl-opt::before { content: ''; position: absolute; inset: 1px; border-radius: 50%; border: 2px solid var(--gold-300); background: rgba(229, 197, 104, .16); opacity: 0; transform: scale(.7); transition: opacity var(--t-med), transform .4s var(--ease-out); }
.pearl-opt:has(input:checked)::before { opacity: 1; transform: none; }
.pearl-opt:has(input:checked) .pearl { transform: scale(1.06); }
.pearl-opt:has(input:focus-visible) { outline: 2px solid var(--gold-300); outline-offset: 2px; }
@media (hover: hover) { .pearl-opt:hover .pearl { transform: scale(1.1); } }
.pearl-tray__name { margin-top: .55rem; text-align: center; font-size: var(--fs-sm); font-weight: 650; letter-spacing: .02em; color: var(--gold-300); }

/* welcome */
.auth-success { text-align: center; }
.auth-success .auth-title { font-size: clamp(2rem, 1.5rem + 2.4vw, 2.75rem); }
.auth-success .auth-sub { margin-top: .7rem; max-width: 30ch; margin-inline: auto; font-size: var(--fs-lg); text-wrap: balance; }
@media (min-width: 960px) { .auth-success { padding-top: clamp(0rem, 5vh, 3.5rem); } }
.auth-success__actions { display: grid; gap: .7rem; margin-top: 1.6rem; }
.porthole { position: relative; display: grid; place-items: center; width: min(62vw, 236px); aspect-ratio: 1; margin: 0 auto 1.5rem; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #1C7C95 0%, #0E3F5E 46%, var(--deep-950) 100%); box-shadow: 0 0 0 6px var(--surface), 0 0 0 8px var(--gold-300), 0 22px 50px rgba(7, 26, 43, .3); overflow: hidden; }
.porthole__rays { position: absolute; inset: -10% -40% 0; background: repeating-linear-gradient(100deg, transparent 0 9%, rgba(255, 255, 255, .08) 11% 15%, transparent 18% 30%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent 85%); mask-image: linear-gradient(to bottom, #000, transparent 85%); }
.porthole__shell { position: relative; width: 74%; margin-top: 8%; }
.porthole__shell .shell { width: 100%; height: auto; }

/* other ways in */
.auth-alt { margin-top: 1.25rem; }
.auth-or { display: flex; align-items: center; gap: .9rem; margin-bottom: .9rem; font-size: var(--fs-xs); font-weight: 650; letter-spacing: .16em; text-transform: uppercase; color: var(--text-mute); }
.auth-or::before, .auth-or::after { content: ''; flex: 1; height: 1px; background: var(--line-strong); }
.guest { display: flex; align-items: center; gap: .9rem; min-height: 64px; padding: .55rem 1rem .55rem .65rem; border-radius: var(--r-md); border: 1.5px solid var(--line-strong); background: var(--surface); color: var(--text); box-shadow: var(--shadow-1); transition: border-color var(--t-med), transform var(--t-fast); }
.guest:active { transform: scale(.985); }
.guest__icon { flex: none; display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: linear-gradient(160deg, #14607A, var(--deep-800)); color: var(--aqua-300); }
.guest__icon .i { width: 1.4rem; height: 1.4rem; }
.guest__text { flex: 1; min-width: 0; display: grid; gap: .05rem; line-height: 1.35; }
.guest__text strong { font-weight: 650; }
.guest__text span { font-size: var(--fs-sm); color: var(--text-soft); }
.guest__arrow { flex: none; color: var(--accent); transition: transform var(--t-med) var(--ease-out); }
@media (hover: hover) {
  .guest:hover { border-color: var(--gold-500); }
  .guest:hover .guest__arrow { transform: translateX(4px); }
}

.demo { margin-top: .8rem; padding: .8rem .85rem .85rem; border-radius: var(--r-lg); border: 1.5px dashed rgba(166, 123, 36, .45); background: rgba(204, 153, 51, .06); }
.demo__title { display: flex; align-items: center; gap: .6rem; font-family: var(--font-body); font-size: var(--fs-md); font-weight: 650; letter-spacing: 0; line-height: 1.3; font-variation-settings: normal; }
.demo__title .badge { text-transform: uppercase; letter-spacing: .1em; }
.demo__note { margin-top: .3rem; font-size: var(--fs-sm); color: var(--text-soft); }
.demo__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .2rem 1rem; }
.demo__list { display: grid; gap: .5rem; margin-top: .7rem; }
@media (min-width: 440px) { .demo__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.demo-card { position: relative; display: flex; align-items: center; gap: .65rem; width: 100%; min-width: 0; min-height: 58px; padding: .5rem .7rem .5rem .5rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); text-align: left; color: var(--text); transition: border-color var(--t-med), transform var(--t-fast), opacity var(--t-med); }
.demo-card:active { transform: scale(.985); }
.demo-card[disabled] { cursor: default; opacity: .55; }
.demo-card.is-busy { opacity: 1; border-color: var(--gold-500); }
.demo-card .avatar { --size: 42px; }
.demo-card__text { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.demo-card__text strong { font-weight: 650; }
.demo-card__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.demo-card__text span { font-size: var(--fs-xs); color: var(--text-soft); }
.demo-card__go { flex: none; display: inline-flex; align-items: center; color: var(--link); }
.demo-card__go .i { width: 1.05em; height: 1.05em; }
.demo-card__go .spinner { display: none; }
.demo-card.is-busy .demo-card__go .spinner { display: block; }
.demo-card.is-busy .demo-card__go .i { display: none; }
@media (hover: hover) { .demo-card:not([disabled]):hover { border-color: var(--gold-500); } }
.demo__admin { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; font-size: var(--fs-sm); font-weight: 650; color: var(--link); border-radius: 8px; white-space: nowrap; }
.demo__admin .i { width: 1.05em; height: 1.05em; }
.demo__admin span { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
@media (hover: hover) { .demo__admin:hover span { text-decoration-color: currentColor; } }

/* ───────────────────────────── v2: deep panel (Who's learning today?) ───────────────────────────── */
.auth-panel__inner { z-index: 1; }
.auth-panel::after { content: ''; position: absolute; inset: 0; z-index: 0; background: radial-gradient(120% 60% at 72% 0%, #145272 0%, var(--deep-900) 52%, var(--deep-950) 100%); opacity: 0; transition: opacity .5s var(--ease-out); pointer-events: none; }
.auth-panel.is-deep::after { opacity: 1; }
.auth-panel.is-deep::before { opacity: 0; }
@media (min-width: 960px) {
  .auth-panel.is-deep { display: flex; flex-direction: column; justify-content: center; padding-bottom: clamp(3rem, 8vh, 6rem); }
  .auth-panel.is-deep .auth-panel__inner { width: min(100%, 500px); }
  .auth-deep .auth-top__actions { --ink: #F3F7FA; --ink-soft: #C3D4DF; --hover: rgba(255, 255, 255, .1); --edge: rgba(181, 221, 236, .3); }
}
.auth-panel .nowrap { white-space: nowrap; }

/* ───────────────────────────── step 1: who is this account for? ───────────────────────────── */
.who { display: grid; gap: .65rem; }
.who-card { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1rem; min-height: 88px; padding: .7rem 1.1rem .7rem .7rem; border-radius: var(--r-lg); border: 1.5px solid var(--field-line); background: var(--field-bg); cursor: pointer; transition: border-color var(--t-med), background-color var(--t-med), transform var(--t-fast); -webkit-tap-highlight-color: transparent; }
.who-card[hidden] { display: none; }
.who-card input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.who-card:active { transform: scale(.985); }
.who-card:has(input:checked) { border-color: var(--gold-500); background: linear-gradient(100deg, rgba(204, 153, 51, .14), rgba(204, 153, 51, .04)); }
.who-card:has(input:checked) .choice__dot { border-color: var(--gold-500); }
.who-card:has(input:checked) .choice__dot::after { opacity: 1; transform: none; }
.who-card:has(input:focus-visible) { outline: 2px solid var(--focus); outline-offset: 3px; }
@media (hover: hover) { .who-card:hover { border-color: var(--gold-500); } .who-card:hover .who-card__art .pearl { transform: translateY(-2px) scale(1.04); } }
.who-card__art { position: relative; flex: none; width: 66px; height: 66px; border-radius: 50%; overflow: hidden; background: radial-gradient(circle at 50% 30%, #1C7C95 0%, #0E3F5E 50%, var(--deep-950) 100%); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px rgba(229, 197, 104, .55), 0 8px 18px rgba(7, 26, 43, .18); pointer-events: none; }
.who-card__art::before { content: ''; position: absolute; inset: -10% -30% 30%; background: repeating-linear-gradient(100deg, transparent 0 10%, rgba(255, 255, 255, .09) 12% 16%, transparent 19% 30%); }
.who-p { position: absolute; transition: transform .5s var(--ease-spring); }
.who-p--solo { left: 15%; top: 15%; width: 70%; height: 70%; }
.who-p--a { left: 10%; top: 30%; width: 50%; height: 50%; }
.who-p--b { left: 50%; top: 14%; width: 38%; height: 38%; }
.who-p--c { left: 52%; top: 52%; width: 32%; height: 32%; }
.who-p--s { width: 25%; height: 25%; }
.who-p--s0 { left: 4%; top: 34%; } .who-p--s1 { left: 20%; top: 52%; } .who-p--s2 { left: 37.5%; top: 59%; } .who-p--s3 { left: 55%; top: 52%; } .who-p--s4 { left: 71%; top: 34%; }
.who-card__art:has(.who-p--s)::after { content: ''; position: absolute; left: 12%; right: 12%; top: 22%; height: 52%; border: 1.5px solid rgba(229, 197, 104, .55); border-top: 0; border-radius: 0 0 50% 50% / 0 0 100% 100%; }
.who-card__text { display: grid; gap: .15rem; min-width: 0; line-height: 1.3; pointer-events: none; }
.who-card__text strong { font-family: var(--font-display); font-size: 1.22rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); }
.who-card__text span { font-size: var(--fs-sm); color: var(--text-soft); }
.who-card .choice__dot { pointer-events: none; }
.class-banner { display: flex; align-items: flex-start; gap: .6rem; margin: -.4rem 0 1.1rem; padding: .7rem .9rem; border-radius: var(--r-md); border: 1px solid rgba(204, 153, 51, .4); background: rgba(204, 153, 51, .09); font-size: var(--fs-sm); line-height: 1.45; }
.class-banner[hidden] { display: none; }
.class-banner .i { flex: none; width: 1.15rem; height: 1.15rem; margin-top: .1em; color: var(--accent); }
.class-banner strong { letter-spacing: .12em; }

/* ───────────────────────────── one-time code ───────────────────────────── */
.otp-hint { display: flex; align-items: center; gap: .55rem; margin-top: .85rem; font-size: var(--fs-sm); color: var(--text-soft); }
.otp-hint[hidden] { display: none; }
.otp-hint .i { flex: none; width: 1.2rem; height: 1.2rem; color: var(--ok); }
.otp { position: relative; }
.otp__input { position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; margin: 0; padding: 0; border: 0; background: transparent; color: transparent; caret-color: transparent; font-size: 16px; letter-spacing: 0; outline: none; -webkit-text-fill-color: transparent; cursor: text; }
.otp__input::selection { background: transparent; }
.otp__input:focus-visible { outline: none; }
.otp__slots { display: grid; grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); gap: clamp(.35rem, 1.6vw, .55rem); }
.otp__slot { position: relative; display: grid; place-items: center; height: 66px; border-radius: var(--r-md); border: 1.5px solid var(--field-line); background: var(--field-bg); font-family: var(--font-display); font-size: 1.75rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--text); transition: border-color var(--t-med), color var(--t-med), opacity var(--t-med); }
.otp__slot--gap { margin-right: clamp(.3rem, 1.6vw, .7rem); }
.otp__slot.is-filled { border-color: var(--line-strong); animation: otp-pop .22s var(--ease-out); }
.otp__slot.is-active { border-color: var(--gold-500); box-shadow: 0 0 0 4px rgba(204, 153, 51, .18); }
.otp__slot.is-active:empty::after { content: ''; width: 2px; height: 1.7rem; border-radius: 2px; background: var(--gold-600); animation: otp-caret 1s steps(1) infinite; }
@keyframes otp-caret { 50% { opacity: 0; } }
@keyframes otp-pop { from { transform: scale(.9); } to { transform: none; } }
.has-error .otp__slot { border-color: var(--danger); }
.otp.is-checking .otp__slot { opacity: .55; }
.otp.is-ok .otp__slot { border-color: var(--ok); color: var(--ok); }
.otp__check { position: absolute; right: -8px; top: -10px; z-index: 2; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: var(--ok); color: #fff; box-shadow: 0 0 0 3px var(--bg); opacity: 0; transform: scale(.4); transition: opacity .25s, transform .45s var(--ease-spring); pointer-events: none; }
.otp__check .i { width: 16px; height: 16px; stroke-width: 3; }
.otp.is-ok .otp__check { opacity: 1; transform: none; }
.otp-demo { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .75rem; margin-top: .9rem; padding: .75rem .85rem; border-radius: var(--r-md); border: 1.5px dashed rgba(166, 123, 36, .5); background: rgba(204, 153, 51, .07); }
.otp-demo[hidden] { display: none; }
.otp-demo .badge { text-transform: uppercase; letter-spacing: .1em; }
.otp-demo p { flex: 1 1 12rem; font-size: var(--fs-sm); color: var(--text-soft); line-height: 1.4; }
.otp-demo__code { font-family: var(--font-display); font-size: 1.1rem; font-weight: 700; letter-spacing: .12em; color: var(--text); white-space: nowrap; }
.otp-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-top: .7rem; min-height: 40px; font-size: var(--fs-sm); color: var(--text-mute); font-variant-numeric: tabular-nums; }
.otp-link { display: inline-flex; align-items: center; gap: .45em; min-height: 40px; padding: 0 .15rem; border-radius: 8px; font-size: var(--fs-sm); font-weight: 650; color: var(--link); }
.otp-link .i { width: 1.05em; height: 1.05em; }
.otp-link span { text-decoration: underline; text-decoration-color: color-mix(in srgb, currentColor 35%, transparent); text-underline-offset: .2em; }
.otp-link--soft { color: var(--text-soft); }
@media (hover: hover) { .otp-link:hover span { text-decoration-color: currentColor; } }
.otp-link[hidden] { display: none; }
.otp-meta__wait[hidden] { display: none; }

/* ───────────────────────────── learners (children / students) ───────────────────────────── */
.lrn-list { display: grid; gap: .5rem; margin: 0 0 .9rem; padding: 0; list-style: none; }
.lrn-list[hidden] { display: none; }
.lrn-card { display: flex; align-items: center; gap: .65rem; min-height: 66px; padding: .45rem .4rem .45rem .5rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); box-shadow: var(--shadow-1); transition: border-color var(--t-med), background-color var(--t-med); }
.lrn-card.is-new { animation: lrn-in .5s var(--ease-out); }
.lrn-card.is-editing { border-color: var(--gold-500); background: rgba(204, 153, 51, .07); }
@keyframes lrn-in { from { opacity: 0; transform: translate3d(0, 10px, 0) scale(.98); } to { opacity: 1; transform: none; } }
.lrn-card__pearl { flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #1C7C95, #0E3F5E 55%, var(--deep-950)); box-shadow: inset 0 0 0 1.5px rgba(229, 197, 104, .5); transition: transform var(--t-fast); }
.lrn-card__pearl .pearl { width: 68%; height: 68%; }
.lrn-card__pearl:active { transform: scale(.94); }
.lrn-card__text { flex: 1; min-width: 0; display: grid; gap: .05rem; line-height: 1.3; }
.lrn-card__text strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .98rem; font-weight: 700; letter-spacing: .04em; }
.lrn-card__text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); color: var(--text-soft); }
.lrn-card__num { flex: none; font-family: var(--font-display); font-size: .78rem; font-weight: 700; color: var(--text-mute); font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lrn-card__btn { flex: none; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; color: var(--text-soft); transition: background-color var(--t-med), color var(--t-med); }
.lrn-card__btn .i { width: 1.1rem; height: 1.1rem; }
@media (hover: hover) { .lrn-card__btn:hover { background: var(--glass-2); color: var(--text); } .lrn-card__btn--x:hover { color: var(--danger); background: var(--danger-soft); } }
.lrn-add { padding: 1rem 1rem 1.05rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: var(--surface); box-shadow: 0 1px 2px rgba(10, 36, 56, .05), 0 14px 32px rgba(10, 36, 56, .08); }
.lrn-add[hidden] { display: none; }
.lrn-add.is-editing { border-color: var(--gold-500); }
.lrn-add__head { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .8rem; }
.lrn-add__title { font-family: var(--font-display); font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lrn-count { flex: none; padding: .25rem .7rem; border-radius: var(--r-pill); background: var(--deep-800); color: var(--gold-300); font-size: var(--fs-xs); font-weight: 650; font-variant-numeric: tabular-nums; letter-spacing: .04em; }
.lrn-add__main { display: flex; align-items: flex-end; gap: .7rem; }
.lrn-name { flex: 1; min-width: 0; }
.lrn-pearl { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: radial-gradient(circle at 50% 30%, #1C7C95 0%, #0E3F5E 50%, var(--deep-950) 100%); box-shadow: 0 0 0 3px var(--surface), 0 0 0 4.5px rgba(229, 197, 104, .6); transition: transform var(--t-fast); }
.lrn-pearl .pearl { width: 66%; height: 66%; transition: transform .45s var(--ease-spring); }
.lrn-pearl::after { content: ''; position: absolute; right: -3px; bottom: -3px; width: 22px; height: 22px; border-radius: 50%; background: var(--gold-500) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23231A05' stroke-width='2.6' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M21 12a9 9 0 1 1-3-6.7L21 8'/%3E%3Cpath d='M21 3v5h-5'/%3E%3C/svg%3E") center / 12px no-repeat; box-shadow: 0 0 0 2.5px var(--surface); }
.lrn-pearl:active { transform: scale(.94); }
@media (hover: hover) { .lrn-pearl:hover .pearl { transform: rotate(-12deg) scale(1.06); } }
.lrn-add__hint { display: flex; align-items: flex-start; gap: .45rem; margin: .6rem 0 .85rem; font-size: var(--fs-xs); line-height: 1.45; color: var(--text-mute); }
.lrn-add__hint .i { flex: none; width: 1rem; height: 1rem; margin-top: .05em; color: var(--accent); }
.lrn-add__grid { display: grid; grid-template-columns: 5.6rem minmax(0, 1fr) minmax(0, 1.55fr); gap: .6rem; align-items: end; }
.lrn-add__grid > .field + .field, .lrn-add__main > .field + .field { margin-top: 0; }
.lrn-add .field__label { font-size: var(--fs-xs); }
.lrn-age .input { text-align: center; font-variant-numeric: tabular-nums; }
.lrn-seg { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); min-height: 52px; padding: 3px; border-radius: var(--r-sm); border: 1.5px solid var(--field-line); background: var(--field-bg); }
.lrn-seg button { border-radius: 9px; font-size: .95rem; font-weight: 600; color: var(--text-soft); transition: background-color var(--t-med), color var(--t-med); }
.lrn-seg button[aria-pressed="true"] { background: linear-gradient(180deg, #EBCB72, var(--gold-500)); color: var(--accent-ink); }
@media (hover: hover) { .lrn-seg button:not([aria-pressed="true"]):hover { background: var(--glass-2); color: var(--text); } }
.lrn-add__actions { display: flex; gap: .5rem; margin-top: .9rem; }
.lrn-go { flex: 1; --btn-h: 52px; }
.lrn-cancel[hidden] { display: none; }
.lrn-full { display: flex; align-items: flex-start; gap: .55rem; padding: .8rem .95rem; border-radius: var(--r-md); background: var(--info-soft); font-size: var(--fs-sm); line-height: 1.45; }
.lrn-full[hidden] { display: none; }
.lrn-full .i { flex: none; width: 1.1rem; height: 1.1rem; margin-top: .1em; color: var(--info); }
@media (max-width: 439px) {
  .lrn-add { padding: .85rem .8rem .9rem; }
  .lrn-add__grid { grid-template-columns: 5.4rem minmax(0, 1fr); }
  .lrn-gender { grid-column: 1 / -1; }
  .lrn-card__num { display: none; }
}

/* ───────────────────────────── email, class code, consent ───────────────────────────── */
.email-ok { display: inline-flex; align-items: center; gap: .35em; font-size: var(--fs-xs); font-weight: 650; color: var(--ok); }
.email-ok[hidden] { display: none; }
.email-ok .i { width: 1.05em; height: 1.05em; }
.email-code { margin-top: 1rem; padding: .95rem 1rem 1rem; border-radius: var(--r-lg); border: 1px solid rgba(204, 153, 51, .4); background: rgba(204, 153, 51, .05); }
.email-code[hidden] { display: none; }
.email-code__lead { margin-bottom: .75rem; font-size: var(--fs-sm); line-height: 1.5; color: var(--text-soft); overflow-wrap: anywhere; }
.email-code__lead strong { color: var(--text); }
.email-code .otp__slot { height: 58px; font-size: 1.5rem; }
.class-code { margin-top: 1.1rem; }
.class-code[hidden] { display: none; }
.class-code__toggle { display: flex; align-items: center; gap: .65rem; width: 100%; min-height: 54px; padding: 0 1rem; border-radius: var(--r-md); border: 1.5px dashed var(--line-strong); font-size: .98rem; font-weight: 600; color: var(--text); text-align: left; transition: border-color var(--t-med), background-color var(--t-med); }
.class-code__toggle > span { flex: 1; }
.class-code__toggle .i { flex: none; width: 1.2rem; height: 1.2rem; color: var(--accent); }
.class-code__chev { transition: transform var(--t-med) var(--ease-out); }
.class-code.is-open .class-code__chev { transform: rotate(180deg); }
.class-code.is-open .class-code__toggle { border-style: solid; border-color: rgba(204, 153, 51, .45); }
@media (hover: hover) { .class-code__toggle:hover { border-color: var(--gold-500); background: rgba(204, 153, 51, .05); } }
.class-code__body { margin-top: .8rem; }
.class-code__body[hidden] { display: none; }
.input--code { font-family: var(--font-display); letter-spacing: .32em; text-transform: uppercase; text-align: center; }
.input--code::placeholder { letter-spacing: .32em; color: var(--text-mute); opacity: .55; }
.consent { margin-top: 1.1rem; padding: .9rem 1rem; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--surface); animation: lrn-in .45s var(--ease-out); }
.consent[hidden] { display: none; }
.consent.has-error { border-color: var(--danger); }
.consent__check { font-size: .95rem; line-height: 1.5; color: var(--text); }
.consent__more { display: flex; align-items: flex-start; gap: .45rem; margin-top: .45rem; padding-left: calc(22px + .8rem); font-size: var(--fs-xs); line-height: 1.5; color: var(--text-soft); }
.consent__more[hidden] { display: none; }
.consent__more .i { flex: none; width: 1rem; height: 1rem; margin-top: .1em; color: var(--accent); }
.consent .field__error { margin-top: .35rem; }

/* ───────────────────────────── Who's learning today? ───────────────────────────── */
.picker-head { margin-bottom: 0; }
.picker-search { margin-top: 1.2rem; }
.picker-search[hidden] { display: none; }
.picker { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(.65rem, 2vw, 1rem); margin: 1.5rem 0 0; padding: 0; list-style: none; }
.picker > li { min-width: 0; animation: pk-in .6s var(--ease-out) both; animation-delay: calc(var(--i, 0) * 70ms + 120ms); }
.picker:not(.picker--list) > li:last-child:nth-child(odd) { grid-column: 1 / -1; justify-self: center; width: calc(50% - clamp(.33rem, 1vw, .5rem)); }
@keyframes pk-in { from { opacity: 0; transform: translate3d(0, 16px, 0) scale(.97); } to { opacity: 1; transform: none; } }
.pk { position: relative; display: grid; justify-items: center; align-content: start; gap: .85rem; width: 100%; height: 100%; padding: clamp(1.1rem, 3vw, 1.5rem) .75rem 1.15rem; border-radius: var(--r-xl); border: 1px solid rgba(181, 221, 236, .16); background: linear-gradient(170deg, rgba(255, 255, 255, .085), rgba(255, 255, 255, .015)); color: #F3F7FA; text-align: center; overflow: hidden; transition: transform .45s var(--ease-out), opacity .35s var(--ease-out), border-color var(--t-med); -webkit-tap-highlight-color: transparent; }
.pk::before { content: ''; position: absolute; inset: -20% -40% 45%; background: repeating-linear-gradient(100deg, transparent 0 9%, rgba(255, 255, 255, .05) 11% 15%, transparent 18% 30%); -webkit-mask-image: linear-gradient(to bottom, #000, transparent); mask-image: linear-gradient(to bottom, #000, transparent); pointer-events: none; }
.pk:focus-visible { outline: 2px solid var(--gold-300); outline-offset: 3px; }
.pk__orb { position: relative; display: grid; place-items: center; width: clamp(104px, 28vw, 136px); aspect-ratio: 1; }
.pk__orb::before { content: ''; position: absolute; inset: 9%; border-radius: 50%; background: radial-gradient(circle at 50% 32%, #1F86A0 0%, #0E4463 52%, #051424 100%); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .12), inset 0 -10px 24px rgba(0, 0, 0, .35); }
.pk__glow { position: absolute; inset: -16%; border-radius: 50%; background: radial-gradient(closest-side, rgba(134, 227, 230, .32), rgba(134, 227, 230, .08) 60%, transparent 72%); opacity: .55; transition: opacity .45s var(--ease-out), transform .6s var(--ease-out); }
.pk__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.pk__track { fill: none; stroke: rgba(181, 221, 236, .16); stroke-width: 2.5; }
.pk__arc { fill: none; stroke: var(--gold-300); stroke-width: 3; stroke-linecap: round; }
.pk__pearl { position: relative; width: 58%; transition: transform .6s var(--ease-spring); }
.pk__pearl .pearl { display: block; width: 100%; height: auto; }
.pk__crown { position: absolute; right: 4%; bottom: 6%; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: linear-gradient(180deg, #EBCB72, var(--gold-500)); color: var(--accent-ink); box-shadow: 0 0 0 3px #0A2438; }
.pk__crown .i { width: 16px; height: 16px; }
.pk__text { position: relative; display: grid; gap: .2rem; min-width: 0; width: 100%; line-height: 1.3; }
.pk__name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-family: var(--font-display); font-size: clamp(1.1rem, 1rem + .5vw, 1.3rem); font-weight: 700; letter-spacing: -.02em; }
.pk__levels { font-size: var(--fs-sm); font-weight: 650; color: var(--gold-300); }
.pk__active { font-size: var(--fs-xs); color: #93AEC0; }
.pk__go { display: none; }
.pk__go .spinner { display: none; }
@media (hover: hover) {
  .pk:hover { transform: translateY(-4px); border-color: rgba(229, 197, 104, .55); }
  .pk:hover .pk__glow { opacity: 1; transform: scale(1.08); }
  .pk:hover .pk__pearl { transform: scale(1.07); }
}
.pk:active { transform: scale(.98); }
.has-chosen .pk:not(.is-chosen) { opacity: .3; transform: scale(.96); }
.pk.is-chosen { border-color: var(--gold-300); transform: translateY(-4px) scale(1.02); }
.pk.is-chosen .pk__glow { opacity: 1; transform: scale(1.18); }
.pk.is-chosen .pk__pearl { transform: scale(1.12); }
.pk[disabled] { cursor: default; }
/* many learners (a class): a searchable list */
.picker--list { grid-template-columns: minmax(0, 1fr); gap: .5rem; margin-top: 1rem; }
.picker--list .pk { grid-template-columns: auto minmax(0, 1fr) auto; justify-items: start; align-items: center; gap: .85rem; padding: .55rem .9rem .55rem .55rem; border-radius: var(--r-lg); text-align: left; }
.picker--list .pk::before { display: none; }
.picker--list .pk__orb { width: 58px; }
.picker--list .pk__orb::before { inset: 8%; }
.picker--list .pk__glow { display: none; }
.picker--list .pk__crown { width: 20px; height: 20px; right: -2px; bottom: -2px; box-shadow: 0 0 0 2px #0A2438; }
.picker--list .pk__crown .i { width: 11px; height: 11px; }
.picker--list .pk__text { gap: .05rem; }
.picker--list .pk__name { font-size: 1.05rem; }
.picker--list .pk__go { display: inline-flex; align-items: center; color: var(--gold-300); }
.picker--list .pk__go .i { width: 1.1rem; height: 1.1rem; }
.picker--list .pk.is-chosen .pk__go .spinner { display: block; }
.picker--list .pk.is-chosen .pk__go .i { display: none; }
@media (hover: hover) { .picker--list .pk:hover { transform: translateX(3px); } }
.picker-empty { margin-top: 1rem; color: var(--text-soft); font-size: var(--fs-sm); }
.picker-empty[hidden] { display: none; }
.picker-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .25rem 1rem; margin-top: 1.4rem; padding-top: 1rem; border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--text-mute); }
.auth-picker .auth-status { margin-top: 1rem; }

/* ───────────────────────────── welcome: the learners as pearls ───────────────────────────── */
.success-pearls { display: flex; flex-wrap: wrap; justify-content: center; gap: .9rem 1.1rem; margin: 1.4rem auto 0; padding: 0; list-style: none; max-width: 400px; }
.success-pearls[hidden] { display: none; }
.success-pearls li { display: grid; justify-items: center; gap: .35rem; width: 62px; animation: pk-in .6s var(--ease-spring) both; animation-delay: calc(var(--i, 0) * 90ms + 1300ms); }
.success-pearls .pearl { width: 54px; height: 54px; }
.success-pearls span { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: var(--fs-xs); font-weight: 650; color: var(--text-soft); }
.success-pearls__more .success-pearls__plus { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 50%; background: var(--deep-800); color: var(--gold-300); font-family: var(--font-display); font-size: 1.05rem; font-weight: 700; }
.reduce-motion .success-pearls li, .reduce-motion .picker > li { animation: none; }

/* demo card: a family */
.avatar--duo .avatar__second { position: absolute; right: -5px; bottom: -4px; width: 46%; height: 46%; }

/* small phones */
@media (max-width: 359px) {
  .auth-top__back span { display: none; }
  .auth-seg button { font-size: .875rem; }
  .reg-pearls { --bead: 24px; }
  .age-chips { gap: .35rem; }
}
