/** Shopify CDN: Minification failed

Line 1398:11 Expected identifier but found whitespace
Line 1398:20 Unexpected ";"

**/
/* ══════════════════════════════════════════════════════════════════════
   SkyBuds Quiz Redesign · Storybook-warm system
   ══════════════════════════════════════════════════════════════════════ */

:root {
  /* Cream palette */
  --cream: #FFF9F5;
  --cream-deep: #F6EEDE;
  --cream-shadow: #EFEBE4;
  --cream-warm: #FDF1E4;
  --cream-peach: #FFEDE4;

  /* Ink */
  --ink: #2D1F15;
  --ink-soft: #5A4634;
  --ink-faint: #8A7866;
  --ink-ghost: #B8A994;

  /* Lines */
  --line: #D4CABA;
  --line-soft: #E4DBCC;

  /* Ash (default) */
  --accent:      #FF6B4A;
  --accent-deep: #E55A3A;
  --accent-dark: #C64828;
  --accent-soft: #FFD9CB;
  --accent-wash: #FFEDE4;
  --accent-tint: rgba(255, 107, 74, 0.12);

  /* Dark mode (calibration / email gate) */
  --dark-bg: #241810;
  --dark-bg-2: #1A1108;
  --dark-ink: #FFF2E4;

  --ff-body:    'Sora', -apple-system, BlinkMacSystemFont, sans-serif;
  --ff-serif: 'Sora', -apple-system, sans-serif;

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-xl: 32px;
  --r-pill: 999px;

  --shadow-card:    0 8px 24px rgba(60, 40, 20, 0.08);
  --shadow-card-lg: 0 20px 50px rgba(60, 40, 20, 0.12);
  --shadow-cta:     0 10px 24px rgba(255, 107, 74, 0.32), inset 0 1px 0 rgba(255,255,255,0.2);

  --dur-fast: 180ms;
  --dur: 260ms;
  --dur-slow: 440ms;
  --ease: cubic-bezier(.22,.61,.36,1);
}

body[data-char="ash"] {
  --accent: #FF6B4A; --accent-deep: #E55A3A; --accent-dark: #C64828;
  --accent-soft: #FFD9CB; --accent-wash: #FFEDE4;
  --accent-tint: rgba(255,107,74,.12);
}
body[data-char="pearl"] {
  --accent: #5BA8D1; --accent-deep: #3F8DB8; --accent-dark: #2F7FB0;
  --accent-soft: #C8E3F3; --accent-wash: #EEF7FC;
  --accent-tint: rgba(91,168,209,.14);
}
body[data-char="sprout"] {
  --accent: #7DAD4A; --accent-deep: #6FA241; --accent-dark: #4C8D3E;
  --accent-soft: #CDE2B3; --accent-wash: #EEF5E3;
  --accent-tint: rgba(125,173,74,.14);
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
  overflow-x: hidden;
}
button { font-family: inherit; cursor: pointer; border: none; }
img { max-width: 100%; display: block; }

/* ────────── Full-viewport layout ────────── */
.app-viewport {
  min-height: 100dvh;
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: var(--cream);
  padding: 0;
}
.phone-frame {
  width: 100%;
  height: 100dvh;
  margin: 0 auto;
  background: transparent;
  border-radius: 0;
  padding: 0;
  box-shadow: none;
  position: relative;
}
.phone-frame::before { display: none; }
.phone-screen {
  width: 100%;
  height: 100%;
  border-radius: 0;
  overflow: hidden;
  position: relative;
  background: var(--cream);
}

/* ────────── Shell ────────── */
.shell {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: var(--cream);
  transition: background .5s var(--ease);
}
.shell[data-mode="dark"] {
  background: var(--dark-bg);
  color: var(--dark-ink);
}

.shell__top {
  position: absolute;
  top: 0; left: 0; right: 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 48px 20px 0;
  z-index: 40;
}
.shell__logo {
  height: 18px;
  opacity: .85;
  filter: brightness(.3);
}
.shell[data-mode="dark"] .shell__logo { filter: brightness(0) invert(1); opacity: .85; }
.shell__mute {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,249,245,.9);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
}
.shell[data-mode="dark"] .shell__mute {
  background: rgba(255,255,255,.08);
  color: var(--dark-ink);
  border-color: rgba(255,255,255,.12);
}
.shell__mute svg { width: 15px; height: 15px; }

/* Back button */
.shell__back {
  width: 34px; height: 34px;
  border-radius: 50%;
  background: rgba(255,249,245,.9);
  display: grid;
  place-items: center;
  color: var(--ink-soft);
  border: 1px solid var(--line-soft);
  backdrop-filter: blur(10px);
  padding: 0;
  transition: background var(--dur-fast) var(--ease), color var(--dur-fast) var(--ease);
}
.shell__back:active {
  background: var(--accent-wash);
  color: var(--accent-deep);
}
.shell[data-mode="dark"] .shell__back {
  background: rgba(255,255,255,.08);
  color: var(--dark-ink);
  border-color: rgba(255,255,255,.12);
}

/* Progress — chapter dots */
.progress {
  display: flex;
  align-items: center;
  justify-content: center;
  padding-top: 12px;
  padding-bottom: 6px;
  flex: 1;
  min-width: 0;
  max-width: 220px;
}
.progress__track {
  width: 100%;
  height: 5px;
  background: var(--line-soft, #E7DBC4);
  border-radius: 99px;
  overflow: visible;
  position: relative;
}
.progress__fill {
  position: absolute;
  top: 0; bottom: 0; left: 0;
  background: var(--accent);
  border-radius: 99px;
  transition: width .65s cubic-bezier(.22,.61,.36,1);
}
.progress__bud {
  position: absolute;
  top: 50%;
  width: 28px;
  height: 28px;
  margin-top: -14px;
  margin-left: -14px;
  object-fit: contain;
  pointer-events: none;
  filter: grayscale(1) brightness(1.06) opacity(.35);
  transform: scale(.85);
  transition:
    filter .4s var(--ease),
    transform .4s cubic-bezier(.34, 1.8, .5, 1),
    opacity .4s var(--ease);
  z-index: 2;
}
.progress__bud.is-on {
  filter: grayscale(0) brightness(1);
  transform: scale(1);
}
.progress__bud.is-active {
  animation: progressBudBob 1.2s ease-in-out infinite;
}
@keyframes progressBudBob {
  0%, 100% { transform: scale(1)    translateY(0); }
  50%      { transform: scale(1.06) translateY(-2px); }
}

/* Stage */
.stage {
  flex: 1;
  display: flex;
  flex-direction: column;
  padding: 100px 22px 28px;
  position: relative;
  overflow-y: auto;
  overflow-x: hidden;
}
.stage--center { align-items: center; justify-content: center; }

.screen {
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  animation: screenIn .42s cubic-bezier(.22,.61,.36,1);
}
@keyframes screenIn {
  from { opacity: 0; transform: translateX(28px); }
  to   { opacity: 1; transform: translateX(0); }
}
.screen--center {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}

/* Crayon deco (bg) */
.deco {
  position: absolute;
  opacity: .38;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  filter: saturate(.7);
}
.shell[data-mode="dark"] .deco { display: none; }

/* ────────── Type ────────── */
.h-big {
  font-weight: 800;
  font-size: clamp(32px, 8.6vw, 44px);
  line-height: .98;
  letter-spacing: -0.035em;
  margin: 0;
  text-wrap: balance;
}
.h-display {
  font-weight: 700;
  font-size: clamp(24px, 5.6vw, 30px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 0;
  text-wrap: balance;
}
.h-mid {
  font-weight: 700;
  font-size: 22px;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0;
}
.eyebrow {
  font-size: 10.5px;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-weight: 700;
  color: var(--accent);
}
.sub {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.5;
  margin: 0;
}
.shell[data-mode="dark"] .sub { color: rgba(255,242,228,.7); }


/* ────────── Buttons ────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  font-size: 15.5px;
  padding: 15px 28px;
  border-radius: var(--r-pill);
  box-shadow: 0 6px 22px rgba(0,0,0,.15);
  transition: transform var(--dur-fast) var(--ease), box-shadow var(--dur-fast), background var(--dur-fast);
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); }
.btn:active { transform: translateY(0) scale(.98); }
.btn:disabled { opacity: .4; cursor: not-allowed; }
.btn--block { width: 100%; }
.btn--ghost {
  background: transparent;
  color: var(--ink-soft);
  box-shadow: none;
  padding: 10px 14px;
  font-weight: 500;
  font-size: 14px;
  text-decoration: underline;
}
.btn--ghost:hover { background: transparent; color: var(--ink); }
.shell[data-mode="dark"] .btn--ghost { color: rgba(255,242,228,.6); }

/* ────────── Placeholder frames ────────── */
.ph {
  position: relative;
  background: var(--accent-wash);
  border: 1.5px dashed var(--accent-soft);
  border-radius: var(--r-lg);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: all var(--dur) var(--ease);
}
.ph--media {
  aspect-ratio: 1;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0;
  overflow: hidden;
}
.ph--audio {
  flex-direction: row;
  align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.6);
  border-style: solid;
  border-width: 1px;
}
.ph__char-img {
  width: 72%;
  height: 72%;
  object-fit: contain;
  z-index: 1;
  animation: charFloat 4s ease-in-out infinite;
}
@keyframes charFloat {
  0%, 100% { transform: translateY(0) rotate(-1deg); }
  50% { transform: translateY(-6px) rotate(1deg); }
}
.ph__audio-icon {
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--accent);
  display: grid; place-items: center;
  color: #fff; flex: none;
}
.ph__audio-text {
  font-size: 12px;
  color: var(--ink-soft);
  line-height: 1.3;
}
.ph__audio-text b {
  display: block;
  color: var(--ink);
  font-family: ui-monospace, monospace;
  font-size: 11px;
  margin-bottom: 2px;
  font-weight: 600;
}
.ph__wave {
  display: flex;
  align-items: center;
  gap: 2px;
  margin-left: auto;
}
.ph__wave span {
  width: 2px;
  background: var(--accent);
  border-radius: 99px;
  animation: waveBar 1.2s ease-in-out infinite;
}
.ph__wave span:nth-child(1) { height: 8px;  animation-delay: 0s; }
.ph__wave span:nth-child(2) { height: 14px; animation-delay: .15s; }
.ph__wave span:nth-child(3) { height: 10px; animation-delay: .3s; }
.ph__wave span:nth-child(4) { height: 16px; animation-delay: .45s; }
.ph__wave span:nth-child(5) { height: 8px;  animation-delay: .6s; }
@keyframes waveBar {
  0%, 100% { transform: scaleY(.5); }
  50% { transform: scaleY(1); }
}

/* ────────── Host frame (character loops in header of Q screens) ────────── */
.host-frame {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 14px 10px 10px;
  background: #fff;
  border: 1px solid var(--accent-soft);
  border-radius: var(--r-pill);
  margin: 0 auto 18px;
  width: fit-content;
  box-shadow: var(--shadow-card);
  position: relative;
}
.host-frame__avatar {
  width: 44px; height: 44px;
  border-radius: 50%;
  background: var(--accent-wash);
  display: grid; place-items: center;
  overflow: hidden;
  flex: none;
  position: relative;
}
.host-frame__avatar img {
  width: 40px; height: 40px;
  object-fit: contain;
  animation: charFloat 4s ease-in-out infinite;
}
.host-frame__avatar::after {
  content: '';
  position: absolute;
  bottom: 2px; right: 2px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid #fff;
  animation: livepulse 1.6s ease-in-out infinite;
}
@keyframes livepulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.1); opacity: .7; }
}
.host-frame__name {
  font-weight: 700;
  font-size: 13.5px;
  color: var(--ink);
  line-height: 1.1;
}
.host-frame__role {
  font-size: 11px;
  color: var(--ink-faint);
  margin-top: 1px;
}
.host-frame__tiny-label {
  position: absolute;
  top: -7px; right: 10px;
  font-size: 8px;
  font-weight: 700;
  background: var(--ink);
  color: var(--cream);
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* ────────── Speech bubble (for intros / kid invite) ────────── */
.bubble {
  position: relative;
  background: #fff;
  border: 1.5px solid var(--accent-soft);
  color: var(--ink);
  padding: 16px 20px;
  border-radius: 20px;
  font-size: 16px;
  line-height: 1.45;
  font-weight: 500;
  box-shadow: var(--shadow-card);
  max-width: 320px;
  letter-spacing: -0.01em;
}
.bubble::before {
  content: '';
  position: absolute;
  bottom: -10px; left: 32px;
  width: 18px; height: 18px;
  background: #fff;
  border-right: 1.5px solid var(--accent-soft);
  border-bottom: 1.5px solid var(--accent-soft);
  transform: rotate(45deg);
}

/* ────────── Question layout ────────── */
.q-prompt {
  font-weight: 700;
  font-size: 24px;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: balance;
  /* Reserve 2 lines so short & long titles occupy the same height → no layout jump */
  min-height: calc(24px * 1.2 * 2);
  display: flex;
  align-items: flex-end;
}
.q-sub {
  font-size: 13.5px;
  color: var(--ink-faint);
  margin: 0 0 18px;
  line-height: 1.45;
}
.opts {
  display: grid;
  gap: 10px;
  flex: 1;
}
.opt {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 16px 18px;
  border-radius: var(--r-md);
  font-size: 15.5px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 60px;
  transition: all var(--dur-fast) var(--ease);
  font-family: inherit;
}
.opt:hover {
  border-color: var(--accent-soft);
  background: var(--accent-wash);
}
.opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-wash);
  color: var(--accent-dark);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.opt__icon {
  width: 28px; height: 28px;
  flex: none;
  opacity: .85;
  object-fit: contain;
}
.opt.is-selected .opt__icon { opacity: 1; }
.opt__text { flex: 1; }
.opt__check {
  width: 22px; height: 22px;
  border-radius: 50%;
  border: 1.5px solid var(--line);
  display: grid; place-items: center;
  flex: none;
  color: transparent;
  transition: all var(--dur-fast) var(--ease);
}
.opt.is-selected .opt__check {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}
.opt__check svg { width: 12px; height: 12px; }

.multi-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 4px 0 10px;
  font-size: 12px;
  color: var(--ink-faint);
}
.multi-meta b { color: var(--accent-dark); font-weight: 700; }

/* Agree scale */
.agree-stack {
  display: grid;
  gap: 8px;
}
.agree-opt {
  appearance: none;
  background: #fff;
  border: 1.5px solid var(--line);
  padding: 14px 16px;
  border-radius: var(--r-md);
  min-height: 52px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  text-align: left;
  font-size: 14.5px;
  font-weight: 500;
  color: var(--ink);
  font-family: inherit;
  transition: all var(--dur-fast) var(--ease);
}
.agree-opt__num {
  font-weight: 700;
  font-size: 13px;
  color: var(--accent);
  width: 24px;
  text-align: center;
}
.agree-opt:hover {
  border-color: var(--accent-soft);
  background: var(--accent-wash);
}
.agree-opt.is-selected {
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 0 0 3px var(--accent-tint);
}

/* ────────── Landing (Screen 1) ────────── */
.land {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
}
.land__trio {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  margin-bottom: 6px;
  position: relative;
}
.land__bud {
  position: relative;
  width: 88px; height: 88px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--c, var(--accent-wash)) 0%, transparent 70%);
  display: grid; place-items: center;
}
.land__bud img {
  width: 100%; height: 100%;
  object-fit: contain;
  animation: charFloat 3.6s ease-in-out infinite;
}
.land__bud:nth-child(1) { --c: #FFEDE4; animation: trioBob 3s ease-in-out infinite; animation-delay: 0s; }
.land__bud:nth-child(2) {
  --c: #E8F3FB;
  width: 112px; height: 112px;
  margin: 0 -4px;
  z-index: 2;
  animation: trioBob 3s ease-in-out infinite;
  animation-delay: .3s;
}
.land__bud:nth-child(3) { --c: #EDF5E8; animation: trioBob 3s ease-in-out infinite; animation-delay: .6s; }
@keyframes trioBob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-8px); }
}
.land__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 14px;
  border: 1px solid var(--accent-soft);
  border-radius: 99px;
  background: var(--accent-wash);
}
.land__eyebrow::before {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: livepulse 1.8s ease-in-out infinite;
}
.land__title {
  font-weight: 800;
  font-size: clamp(32px, 9vw, 42px);
  line-height: .98;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
  max-width: 340px;
}
.land__title em {
  font-style: normal;
  font-weight: 800;
  color: var(--accent);
  letter-spacing: -.04em;
}
.land__sub {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 320px;
  line-height: 1.5;
  margin: 0;
}
.land__small {
  font-size: 12px;
  color: var(--ink-faint);
  margin-top: -2px;
}
.land__trust {
  display: flex;
  gap: 10px;
  margin-top: auto;
  padding-top: 18px;
  font-size: 11px;
  color: var(--ink-faint);
  flex-wrap: wrap;
  justify-content: center;
  max-width: 320px;
}
.land__trust span::before { content: '· '; color: var(--ink-ghost); }
.land__trust span:first-child::before { display: none; }

/* ────────── Character intro (S2 / S5 / S9) ────────── */
.intro {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: introIn .6s var(--ease);
}
@keyframes introIn {
  from { opacity: 0; transform: scale(.94); }
  to { opacity: 1; transform: scale(1); }
}
.intro__media {
  width: 240px;
  aspect-ratio: 1;
  border-radius: var(--r-xl);
}
.intro__vid-wrap {
  width: 280px;
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.intro__vid {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: transparent;
}
/* Pearl video fallback — shown when webm fails to load (pre-asset-drop) */
.pearl-vid--missing {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  background:
    repeating-linear-gradient(45deg, rgba(0,0,0,.03) 0 8px, transparent 8px 16px),
    color-mix(in oklch, var(--char, var(--accent)) 14%, #fff);
  border: 1.5px dashed color-mix(in oklch, var(--char, var(--accent)) 40%, transparent);
  border-radius: var(--r-xl);
  position: relative;
  overflow: hidden;
}
.pearl-vid--missing img {
  width: 62%;
  height: auto;
  object-fit: contain;
  opacity: .9;
}
.pearl-vid__tag {
  position: absolute;
  bottom: 6px;
  left: 8px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  letter-spacing: .02em;
  color: var(--ink-faint);
  background: rgba(255,255,255,.8);
  padding: 2px 6px;
  border-radius: 999px;
}
.intro__bubble {
  background: #fff;
  border: 1.5px solid var(--accent-soft);
  padding: 16px 20px;
  border-radius: 22px;
  max-width: 320px;
  position: relative;
  box-shadow: var(--shadow-card);
}
.intro__bubble::before {
  content: '';
  position: absolute;
  top: -10px;
  left: 32px;
  width: 18px; height: 18px;
  background: #fff;
  border-left: 1.5px solid var(--accent-soft);
  border-top: 1.5px solid var(--accent-soft);
  transform: rotate(45deg);
}
.intro__bubble p {
  margin: 0;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-wrap: balance;
}
.intro__who {
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
}

/* ────────── Fun fact card (S4, S8) ────────── */
.fact {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  padding: 8px 0;
}
.fact__card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--r-xl);
  padding: 32px 28px;
  max-width: 380px;
  box-shadow: var(--shadow-card-lg);
  position: relative;
  overflow: hidden;
}
.fact__card::before {
  content: '';
  position: absolute;
  top: -20px; right: -20px;
  width: 120px; height: 120px;
  background: var(--accent-wash);
  border-radius: 50%;
  z-index: 0;
}
.fact__card > * { position: relative; z-index: 1; }
.fact__doodle {
  width: 64px;
  margin: 0 auto 14px;
  opacity: .9;
}
.fact__quote {
  color: var(--accent);
  font-size: 64px;
  font-weight: 800;
  line-height: .2;
  margin: 10px 0;
  letter-spacing: -.04em;
}
.fact__text {
  font-weight: 600;
  font-size: 18px;
  line-height: 1.3;
  letter-spacing: -.015em;
  color: var(--ink);
  text-wrap: pretty;
  margin: 0 0 14px;
}
.fact__src {
  font-size: 11px;
  color: var(--ink-faint);
  font-style: italic;
  letter-spacing: .02em;
}
.fact__ring {
  width: 36px; height: 36px;
  border-radius: 50%;
  border: 2px solid var(--accent-soft);
  border-top-color: var(--accent);
  animation: spin 3s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

/* ────────── Handoff (S5 / S9) ────────── */
.handoff {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  animation: screenIn .5s var(--ease);
}
.handoff__stage {
  width: 280px;
  height: 280px;
  border-radius: var(--r-xl);
  position: relative;
  background: var(--accent-wash);
  border: 1.5px dashed var(--accent-soft);
  overflow: hidden;
}
.handoff__char {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  transition: transform .9s var(--ease), opacity .5s var(--ease);
}
.handoff__char img {
  width: 78%; height: 78%;
  object-fit: contain;
}
.handoff__char--out { animation: charExit 1.2s var(--ease) forwards; }
.handoff__char--in { animation: charEnter 1.2s var(--ease) forwards; }
@keyframes charExit {
  0% { transform: translateX(0); opacity: 1; }
  100% { transform: translateX(120%); opacity: 0; }
}
@keyframes charEnter {
  0% { transform: translateX(-120%); opacity: 0; }
  60% { opacity: 1; }
  100% { transform: translateX(0); opacity: 1; }
}
.handoff__bubble {
  background: #fff;
  border: 1.5px solid var(--accent-soft);
  padding: 14px 18px;
  border-radius: 20px;
  font-weight: 500;
  font-size: 15.5px;
  line-height: 1.45;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 320px;
  box-shadow: var(--shadow-card);
  min-height: 56px;
}

/* ────────── Kid invite (S7) ────────── */
.kid-invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
}
.kid-invite__big {
  position: relative;
  width: 100%;
  max-width: 340px;
  aspect-ratio: 4/5;
  border-radius: var(--r-xl);
  overflow: hidden;
  background: linear-gradient(180deg, #EEF7FC 0%, #C8E3F3 100%);
  display: grid; place-items: center;
}
.kid-invite__big img {
  width: 70%;
  object-fit: contain;
  animation: wiggle 2.4s ease-in-out infinite;
}
@keyframes wiggle {
  0%, 100% { transform: rotate(-3deg) translateY(0); }
  50% { transform: rotate(3deg) translateY(-6px); }
}
.kid-invite__cta-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  max-width: 320px;
}

/* Kid-hello screen */
.kid-hello__sparkles {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.kid-hello__sparkles span {
  position: absolute;
  font-size: 20px;
  animation: sparkle 2.2s ease-in-out infinite;
}
@keyframes sparkle {
  0%, 100% { opacity: 0; transform: scale(.6) rotate(0); }
  50% { opacity: 1; transform: scale(1) rotate(20deg); }
}

/* ────────── Calibration (S11) ────────── */
/* ────────── Calibration · warm, playful ────────── */
.calib {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  padding: 120px 22px 32px;
  gap: 24px;
  color: var(--ink);
  background:
    radial-gradient(circle at 30% 20%, var(--accent-wash) 0%, transparent 55%),
    radial-gradient(circle at 80% 70%, color-mix(in oklch, var(--accent) 14%, transparent) 0%, transparent 50%),
    var(--cream);
}
.calib__phase {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 22px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -.01em;
  text-align: center;
  text-wrap: balance;
  max-width: 280px;
}
.calib__scene {
  position: relative;
  width: 100%;
  max-width: 320px;
  height: 220px;
  margin: 0 auto;
}
.calib__doodle {
  position: absolute;
  width: 46px; height: 46px;
  opacity: 0;
  transform: scale(.6);
  transition: opacity .5s var(--ease), transform .6s cubic-bezier(.34, 1.56, .64, 1);
  filter: drop-shadow(0 2px 6px rgba(60,40,20,.12));
}
.calib__doodle.is-in {
  opacity: 1;
  animation: doodleBob 3.2s ease-in-out infinite;
}
@keyframes doodleBob {
  0%, 100% { transform: translateY(0) rotate(var(--r, 0deg)); }
  50%      { transform: translateY(-6px) rotate(var(--r, 0deg)); }
}
.calib__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  text-align: center;
  min-height: 110px;
  width: 100%;
  max-width: 300px;
}
.calib__step {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-faint);
  transition: all .5s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.calib__step.is-active {
  color: var(--ink);
  font-weight: 600;
}
.calib__step.is-done { color: var(--ink-soft); }
.calib__step__dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--line-soft);
}
.calib__step.is-active .calib__step__dot {
  background: var(--accent);
  animation: livepulse 1.4s ease-in-out infinite;
}
.calib__step.is-done .calib__step__dot {
  background: var(--accent);
  opacity: .5;
}

/* ────────── Email gate (S12) ────────── */
.gate {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 18px;
  color: var(--ink);
  padding: 24px 4px 4px;
}
.gate__portrait {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash) 0%, var(--cream) 75%);
  display: grid;
  place-items: center;
  animation: charFloat 3.2s ease-in-out infinite;
  box-shadow: 0 10px 30px -8px var(--accent-soft);
}
.gate__portrait img {
  width: 84%;
  height: 84%;
  object-fit: contain;
}
.gate__title {
  font-family: var(--ff-serif, Georgia, serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -.02em;
  line-height: 1.15;
  margin: 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 320px;
}
.gate__sub {
  color: var(--ink-soft);
  font-size: 15px;
  max-width: 300px;
  margin: 0;
  text-wrap: balance;
}
.gate__form {
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.gate__input {
  width: 100%;
  padding: 14px 18px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 15px;
  outline: none;
  transition: all var(--dur-fast) var(--ease);
}
.gate__input::placeholder { color: var(--ink-faint); }
.gate__input:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.gate__phone-toggle {
  background: none;
  border: none;
  color: var(--ink-faint);
  font: inherit;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  transition: color var(--dur-fast) var(--ease);
}
.gate__phone-toggle:hover {
  color: var(--ink);
}
.gate__phone-section {
  width: 100%;
  animation: gate-phone-in 0.25s ease-out;
}
@keyframes gate-phone-in {
  from { opacity: 0; transform: translateY(-6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.gate__phone-row {
  display: flex;
  gap: 8px;
  width: 100%;
}
.gate__dial-code {
  flex: 0 0 auto;
  width: 90px;
  padding: 14px 8px;
  border: 1.5px solid var(--line-soft);
  border-radius: var(--r-md);
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  outline: none;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  -webkit-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0l5 6 5-6z' fill='%23999'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 8px center;
  padding-right: 22px;
}
.gate__dial-code:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-tint);
}
.gate__phone-num {
  flex: 1;
  min-width: 0;
}
.gate__fine {
  font-size: 11px;
  color: var(--ink-faint);
  max-width: 300px;
  margin: 2px auto 0;
  text-align: center;
}
.gate__skip {
  margin-top: 12px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  text-decoration: underline;
  text-underline-offset: 3px;
  padding: 4px 8px;
  opacity: 0.55;
  letter-spacing: 0.01em;
  cursor: pointer;
}
.gate__skip:hover { opacity: 1; }

/* ────────── Match reveal (S13) ────────── */
.reveal {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 16px;
  animation: revealIn 1s var(--ease);
}
@keyframes revealIn {
  0% { opacity: 0; transform: scale(.9); }
  100% { opacity: 1; transform: scale(1); }
}
.reveal__stage {
  position: relative;
  width: 260px;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash) 0%, var(--cream) 75%);
  display: grid; place-items: center;
}
.reveal__rays {
  position: absolute;
  inset: -20px;
  background: conic-gradient(
    from 0deg,
    transparent 0deg, var(--accent-wash) 10deg, transparent 20deg,
    transparent 40deg, var(--accent-wash) 50deg, transparent 60deg,
    transparent 80deg, var(--accent-wash) 90deg, transparent 100deg,
    transparent 120deg, var(--accent-wash) 130deg, transparent 140deg,
    transparent 160deg, var(--accent-wash) 170deg, transparent 180deg,
    transparent 200deg, var(--accent-wash) 210deg, transparent 220deg,
    transparent 240deg, var(--accent-wash) 250deg, transparent 260deg,
    transparent 280deg, var(--accent-wash) 290deg, transparent 300deg,
    transparent 320deg, var(--accent-wash) 330deg, transparent 340deg
  );
  opacity: .6;
  border-radius: 50%;
  animation: spin 28s linear infinite;
}
.reveal__char {
  position: relative;
  z-index: 2;
  width: 76%;
  height: 76%;
  display: grid; place-items: center;
}
.reveal__char img,
.reveal__char video,
.reveal__char .char-vid {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: charFloat 3.6s ease-in-out infinite;
  border-radius: 50%;
}
.reveal__stage { overflow: hidden; }
.reveal__bubble {
  background: #fff;
  border: 1.5px solid var(--accent-soft);
  padding: 14px 18px;
  border-radius: 22px;
  max-width: 320px;
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  line-height: 1.45;
  letter-spacing: -0.01em;
  box-shadow: var(--shadow-card);
}
.reveal__card {
  background: #fff;
  border: 1px solid var(--line-soft);
  padding: 16px 20px;
  border-radius: var(--r-lg);
  max-width: 340px;
  text-align: center;
  box-shadow: var(--shadow-card);
}
.reveal__card b {
  color: var(--accent);
  font-weight: 800;
}
.reveal__fine {
  font-size: 12px;
  color: var(--ink-faint);
}

/* Emerging glow on reveal */
.reveal__emerge {
  animation: emerge 1.2s var(--ease);
}
@keyframes emerge {
  0% { opacity: 0; filter: brightness(2) blur(30px); transform: scale(.7); }
  50% { opacity: 1; filter: brightness(1.4) blur(8px); }
  100% { opacity: 1; filter: brightness(1) blur(0); transform: scale(1); }
}

/* ────────── Kid path ────────── */
body.is-kid-path {
  --accent: oklch(68% 0.20 30);
}
.intro.kid .intro__bubble,
.intro__bubble.kid {
  font-size: 20px;
  padding: 16px 22px;
  border-radius: 28px;
}
.btn--kid {
  font-size: 18px;
  padding: 18px 28px;
  min-height: 60px;
  border-radius: 99px;
  font-weight: 700;
}

/* Combined-trio greeting video placeholder */
.kid-trio {
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-wash) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, color-mix(in oklch, var(--accent) 12%, transparent) 0%, transparent 55%),
    #fff;
  border: 2px dashed color-mix(in oklch, var(--accent) 40%, var(--line-soft));
  overflow: hidden;
  display: grid;
  place-items: center;
}
  position: relative;
  width: 100%;
  height: 100%;
  aspect-ratio: 1;
  border-radius: 28px;
  background:
    radial-gradient(circle at 30% 30%, var(--accent-wash) 0%, transparent 50%),
    radial-gradient(circle at 70% 60%, color-mix(in oklch, var(--accent) 12%, transparent) 0%, transparent 55%),
    #fff;
  border: 2px dashed color-mix(in oklch, var(--accent) 40%, var(--line-soft));
  overflow: hidden;
  display: grid;
  place-items: center;
}
.kid-trio__ph {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 6px;
  width: 88%;
  height: 82%;
}
.kid-trio__ph img {
  width: 32%;
  height: auto;
  object-fit: contain;
  animation: charFloat 3s ease-in-out infinite;
  filter: drop-shadow(0 4px 10px rgba(60,40,20,.15));
}
.kid-trio__ph img:nth-child(1) { animation-delay: 0s; }
.kid-trio__ph img:nth-child(2) { animation-delay: .6s; transform: translateY(-6px); }
.kid-trio__ph img:nth-child(3) { animation-delay: 1.2s; }

.kid-q {
  padding: 18px 14px 24px;
}
/* Big idle bud portrait above the question — talking head for little kids */
.kid-q__host-big {
  width: 148px;
  height: 148px;
  margin: 0 auto 14px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle at 50% 40%, #fff8ee 0%, #ffe7d1 70%, #ffd4b0 100%);
  box-shadow: 0 14px 32px rgba(60,40,20,.15), inset 0 0 0 3px #fff;
  position: relative;
  animation: charFloat 4s ease-in-out infinite;
}
.kid-q__host-big .kid-q__host-vid,
.kid-q__host-big .char-vid {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 22%;
  transform: scale(1.75);
  transform-origin: center 30%;
  animation: none;
}
.kid-q[data-host="ash"]    .kid-q__host-big { background: radial-gradient(circle at 50% 40%, #fff1e4 0%, #ffd9b8 70%, #ffbe85 100%); }
.kid-q[data-host="pearl"]  .kid-q__host-big { background: radial-gradient(circle at 50% 40%, #f0f7ff 0%, #d9e9ff 70%, #b4cef0 100%); }
.kid-q[data-host="sprout"] .kid-q__host-big { background: radial-gradient(circle at 50% 40%, #f0fbe8 0%, #d3efbd 70%, #a8d987 100%); }
/* Wrapper: bubble sits above, host-big clips the video */
.kid-q__host-wrap {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  margin: 0 auto 10px;
  width: fit-content;
}
/* Speech bubble above kid-q host */
.kid-q__bubble {
  padding: 10px 14px;
  font-size: 14px;
  line-height: 1.35;
  max-width: 240px;
  text-align: center;
  margin-bottom: 8px;
  animation: fadeIn .3s ease-out both;
}
.kid-q__bubble p { margin: 0; }
/* Host circle clips the video */
.kid-q__host-big {
  overflow: hidden !important;
}
.kid-q__prompt {
  display: none;
}
.kid-q__grid {
  display: grid;
  gap: 12px;
  grid-template-columns: 1fr 1fr;
}
.kid-q__grid[data-count="3"] {
  grid-template-columns: 1fr 1fr 1fr;
  gap: 10px;
}
.kid-card {
  background: #fff;
  border: 2.5px solid var(--line-soft);
  border-radius: 22px;
  padding: 14px 10px 12px;
  min-height: 148px;
  display: flex; flex-direction: column;
  align-items: center; justify-content: flex-start;
  gap: 10px;
  cursor: pointer;
  transition: all var(--dur-fast) var(--ease);
  font-family: inherit;
}
.kid-card:hover { transform: translateY(-2px); }
.kid-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-wash);
  transform: scale(.98);
}
.kid-card__art {
  width: 84px; height: 84px;
  display: grid; place-items: center;
  background: var(--cream);
  border-radius: 16px;
}
.kid-card__art img { width: 72%; height: 72%; object-fit: contain; }
.kid-card__label {
  font-size: 14px;
  font-weight: 600;
  text-align: center;
  color: var(--ink);
  line-height: 1.25;
}

.kid-finale {
  padding: 24px 16px;
  gap: 14px;
}
.kid-finale__title {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 30px;
  margin: 0;
  color: var(--accent);
}
.kid-finale__sub { color: var(--ink-soft); font-size: 14px; margin: 0 0 10px; }
.kid-finale__trio {
  display: flex; gap: 10px; justify-content: center;
  width: 100%;
}
.kid-finale__bud {
  flex: 1; aspect-ratio: 1;
  background: #fff; border: 2.5px solid var(--line-soft);
  border-radius: 20px;
  padding: 8px; position: relative;
  cursor: pointer; transition: all .2s var(--ease);
  overflow: hidden;
}
.kid-finale__bud img {
  width: 100%; height: 100%; object-fit: contain;
}
.kid-finale__hi {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%) scale(0);
  font-size: 42px;
  transition: transform .35s var(--ease);
}
.kid-finale__bud.is-done {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.kid-finale__bud.is-done .kid-finale__hi { transform: translate(-50%, -50%) scale(1); }

/* ────────── Kid Character Picker ────────── */
.kid-picker { padding: 20px 16px; gap: 16px; }
.kid-picker__title {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 32px; font-weight: 700; margin: 0;
  color: var(--accent); text-align: center;
}
.kid-picker__grid {
  display: flex; flex-direction: column; gap: 14px;
  width: 100%; max-width: 340px; margin: 0 auto;
}
.kid-picker__card {
  display: flex; flex-direction: row; align-items: center;
  background: #fff; border: 4px solid transparent;
  border-radius: 24px; padding: 12px 20px;
  cursor: pointer; transition: all .25s var(--ease, cubic-bezier(.4,0,.2,1));
  box-shadow: 0 3px 12px rgba(0,0,0,0.08);
  gap: 16px;
  min-height: 100px;
}
.kid-picker__card:active { transform: scale(0.96); }
.kid-picker__card--active {
  transform: scale(1.05);
  box-shadow: 0 6px 24px rgba(0,0,0,0.15);
}
.kid-picker__card--dimmed {
  opacity: 0.35; transform: scale(0.92);
  pointer-events: none;
}
.kid-picker__video,
.kid-picker__card .char-vid,
.kid-picker__card video {
  width: 90px; height: 90px; flex-shrink: 0;
  object-fit: contain; border-radius: 16px;
  overflow: hidden;
}
.kid-picker__name {
  font-size: 26px; font-weight: 800;
  text-transform: capitalize; letter-spacing: 0.3px;
}

/* ────────── Picker ────────── */
.picker {
  padding: 20px 14px 28px;
  gap: 14px;
}
.picker__title {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 26px;
  line-height: 1.15;
  text-align: center;
  margin: 8px 0 4px;
  letter-spacing: -0.01em;
}
.picker__sub {
  text-align: center;
  color: var(--ink-soft);
  font-size: 14px;
  margin: 0 0 14px;
  text-wrap: balance;
  line-height: 1.4;
}
.picker__cards {
  display: flex; flex-direction: column; gap: 12px;
}
.picker__card {
  position: relative;
  background: #fff;
  border: 2px solid var(--line-soft);
  border-radius: 22px;
  padding: 16px;
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: 14px;
  align-items: center;
}
/* No visual weight advantage for the best-fit card beyond the small badge. */
.picker__badge {
  position: absolute;
  top: -10px; left: 16px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 99px;
}
.picker__portrait {
  width: 84px; height: 84px;
  background: var(--cream);
  border-radius: 18px;
  display: grid; place-items: center;
  grid-row: span 3;
}
.picker__portrait img,
.picker__portrait video,
.picker__portrait .char-vid {
  width: 88%; height: 88%; object-fit: contain;
  border-radius: 14px;
}
.picker__portrait { overflow: hidden; }
.picker__name {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 20px;
  font-weight: 700;
  line-height: 1;
}
.picker__role {
  font-size: 11px;
  color: var(--ink-faint);
  text-transform: uppercase;
  letter-spacing: .12em;
}
.picker__why {
  grid-column: 1 / -1;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.45;
  margin: 2px 0 4px;
  text-wrap: pretty;
}
.picker__cta {
  grid-column: 1 / -1;
  width: 100%;
  min-height: 44px;
}
.picker__expand {
  background: transparent; border: 0;
  color: var(--ink-soft);
  font-size: 13px;
  text-decoration: underline;
  padding: 14px;
  cursor: pointer;
  font-family: inherit;
}
.picker__details {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.picker__details p { margin: 0 0 8px; }
.picker__details p:last-child { margin: 0; }
.picker__details b { color: var(--ink); }

/* ────────── Kid invite · glance-readable two-card layout ────────── */
.kid-invite2 {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  padding: 90px 22px 28px;
  gap: 24px;
  max-width: 440px;
  margin: 0 auto;
}
.kid-invite2__hd {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
  flex-shrink: 0;
}
.kid-invite2__pearl {
  width: 96px;
  height: auto;
  animation: charFloat 3.2s ease-in-out infinite;
  filter: drop-shadow(0 10px 20px rgba(60,40,20,.16));
}
.kid-invite2__title {
  font-family: var(--ff-serif, Georgia, serif);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 4px 0 0;
  color: var(--ink);
  text-wrap: balance;
  max-width: 300px;
}
.kid-invite2__sub {
  color: var(--ink-soft);
  font-size: 15px;
  margin: 0;
  max-width: 280px;
  text-wrap: balance;
}
.kid-invite2__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  flex: 1;
  min-height: 0;
}
.kid-invite2__card {
  background: #fff;
  border: 2.5px solid var(--line-soft);
  border-radius: 22px;
  padding: 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  text-align: center;
  cursor: pointer;
  transition: transform var(--dur) var(--ease), border-color var(--dur) var(--ease), background var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  font-family: inherit;
  color: var(--ink);
  box-shadow: 0 2px 0 rgba(60,40,20,.04);
  flex: 1;
  min-height: 120px;
}
.kid-invite2__card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  background: var(--accent-wash);
  box-shadow: 0 10px 24px -10px color-mix(in oklch, var(--accent) 40%, transparent);
}
.kid-invite2__card:active { transform: translateY(0); }
.kid-invite2__card--yes {
  border-color: var(--accent);
  background: var(--accent-wash);
}
.kid-invite2__card--yes:hover { filter: brightness(1.02); }
.kid-invite2__emoji {
  width: 52px; height: 52px;
  border-radius: 16px;
  background: var(--cream-2, #EFE5D2);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.kid-invite2__card--yes .kid-invite2__emoji {
  background: #fff;
}
.kid-invite2__emoji img {
  width: 70%;
  height: 70%;
  object-fit: contain;
  animation: charFloat 3s ease-in-out infinite;
}
.kid-invite2__card-title {
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  margin: 0;
  line-height: 1.15;
  white-space: nowrap;
}
.kid-invite2__card-sub {
  font-size: 13.5px;
  color: var(--ink-soft);
  line-height: 1.3;
  white-space: nowrap;
}

/* ────────── Landing v2 · character cast start screen ────────── */
.land2 {
  /* fixed (not absolute) so the landing escapes the .screen 680px center
     column on desktop — otherwise the corner characters all stack in the
     middle of the viewport. z-index above stage chrome but below shell__top
     (z40), so the quiz mute/progress controls stay clickable. */
  position: fixed;
  inset: 0;
  background: #FFF9F6;
  overflow: hidden;
  cursor: pointer;
  z-index: 30;
}

/* Logo top center */
.land2__logo {
  position: absolute;
  top: calc(env(safe-area-inset-top, 0px) + 22px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  height: 32px;
  display: flex;
  justify-content: center;
}
.land2__logo img { height: 100%; width: auto; display: block; object-fit: contain; }

/* Centered copy */
.land2__copy {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  z-index: 4;
  padding: 0 24px;
  pointer-events: none;
}
.land2__inner { max-width: 360px; }
.land2__inner > * { pointer-events: auto; }

.land2__eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent, #FF6B4A);
  margin: 0 0 14px;
}
.land2__title {
  font-family: var(--ff-body);
  font-weight: 800;
  font-size: clamp(26px, 6.5vw, 34px);
  line-height: 1.1;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 14px;
}
.land2__sub {
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--ink-soft);
  margin: 0 0 24px;
}

/* Pulsing CTA */
.land2__cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: var(--accent, #FF6B4A);
  color: #fff;
  font-family: inherit;
  font-weight: 700;
  font-size: 16px;
  padding: 15px 28px;
  border-radius: 999px;
  border: none;
  cursor: pointer;
  position: relative;
  animation: land2CtaPulse 1.9s ease-in-out infinite;
  transition: transform .15s ease, background .15s ease;
}
.land2__cta:hover  { background: var(--accent-deep, #e85735); }
.land2__cta:active { transform: scale(.98); }
.land2__cta-arrow  { font-size: 19px; transform: translateY(-1px); }
@keyframes land2CtaPulse {
  0%, 100% { transform: scale(1);     box-shadow: 0 10px 24px rgba(255,107,74,.32), 0 0 0 0 rgba(255,107,74,.45); }
  50%      { transform: scale(1.045); box-shadow: 0 14px 30px rgba(255,107,74,.42), 0 0 0 14px rgba(255,107,74,0); }
}
@media (prefers-reduced-motion: reduce) { .land2__cta { animation: none; } }

/* Crayon doodles */
.land2__doodle {
  position: absolute;
  opacity: .35;
  pointer-events: none;
  z-index: 1;
}
.land2__doodle--star  { top: 14%;    left: 4%;   width: 38px; transform: rotate(-18deg); }
.land2__doodle--heart { top: 8%;     left: 30%;  width: 36px; transform: rotate(20deg); }
.land2__doodle--comet { bottom: 38%; right: 2%;  width: 42px; transform: rotate(-8deg); }
.land2__doodle--bolt  { bottom: 36%; left: 2%;   width: 36px; transform: rotate(14deg); }

/* Character corner videos */
.land2__char {
  position: absolute;
  z-index: 2;
  pointer-events: none;
  display: block;
}
.land2__char video {
  width: 100%; height: 100%;
  object-fit: contain;
  display: block;
  background: #FFF9F6;
}

/* Mobile — characters take ~60% of width each, bleed off edges */
.land2__char--pearl  { top: -2%;    right: -16%;  width: 62vw;  max-width: 320px; aspect-ratio: 1/1; transform: rotate(8deg); }
.land2__char--ash    { bottom: -4%; left: -18%;   width: 66vw;  max-width: 340px; aspect-ratio: 1/1; transform: rotate(-6deg); }
.land2__char--sprout { bottom: -4%; right: -16%;  width: 62vw;  max-width: 320px; aspect-ratio: 1/1; transform: rotate(4deg); }

/* Tablet */
@media (min-width: 600px) {
  .land2__char--pearl  { top: 2%;     right: -10%;  width: 44vw;  max-width: 380px; }
  .land2__char--ash    { bottom: 0%;  left: -10%;   width: 48vw;  max-width: 420px; }
  .land2__char--sprout { bottom: 0%;  right: -10%;  width: 44vw;  max-width: 380px; }
}

/* Desktop — characters move INTO the viewport, larger */
@media (min-width: 1024px) {
  .land2__logo { top: 32px; height: 38px; }
  .land2__inner { max-width: 560px; }
  .land2__title { font-size: 48px; letter-spacing: -0.025em; }
  .land2__sub   { font-size: 17px; margin-bottom: 32px; }
  .land2__cta   { font-size: 18px; padding: 18px 36px; }
  .land2__doodle--star  { top: 18%;    left: 12%;  width: 58px; }
  .land2__doodle--heart { top: 12%;    left: 35%;  width: 52px; }
  .land2__doodle--comet { bottom: 30%; right: 12%; width: 60px; }
  .land2__doodle--bolt  { bottom: 28%; left: 8%;   width: 52px; }
  .land2__char--pearl  { top: 4%;     right: 2%;   width: 32vw;  max-width: 440px; }
  .land2__char--ash    { bottom: 2%;  left: 2%;    width: 34vw;  max-width: 480px; }
  .land2__char--sprout { bottom: 2%;  right: 2%;   width: 32vw;  max-width: 440px; }
}

/* Large desktop */
@media (min-width: 1400px) {
  .land2__inner { max-width: 680px; }
  .land2__title { font-size: 56px; }
  .land2__char--pearl  { width: 30vw; max-width: 520px; top: 6%; right: 4%; }
  .land2__char--ash    { width: 32vw; max-width: 560px; bottom: 4%; left: 4%; }
  .land2__char--sprout { width: 30vw; max-width: 520px; bottom: 4%; right: 4%; }
}

/* ────────── Picker v3 · vertical stack, white cards with tinted outline ────────── */
.picker3 {
  position: absolute;
  inset: 0;
  background: var(--cream, #F6EFE1);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 20px) 22px calc(env(safe-area-inset-bottom, 0px) + 20px);
  overflow-y: auto;
  overflow-x: hidden;
}
.picker3__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 36px;
  flex-shrink: 0;
  margin-bottom: 16px;
}
.picker3__logo img {
  height: 26px;
  width: auto;
  object-fit: contain;
}
.picker3__logoFallback {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: absolute;
  opacity: 0;
}
.picker3__logo:has(img[style*="display: none"]) .picker3__logoFallback {
  opacity: 1;
  position: static;
}
.picker3__hd {
  text-align: center;
  margin-bottom: 18px;
  flex-shrink: 0;
}
.picker3__title {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1.2;
  margin: 0;
  color: var(--ink);
  text-align: center;
  text-wrap: balance;
  margin-inline: auto;
}
.picker3__sub {
  color: var(--ink-soft);
  font-size: 14px;
  margin: 6px 0 0;
}
.picker3__cards {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
}
.picker3__card {
  position: relative;
  background: #fff;
  border: 2px solid color-mix(in oklch, var(--char) 30%, #fff);
  border-radius: 22px;
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  text-align: center;
  transition: transform 140ms var(--ease),
              border-color 140ms var(--ease),
              box-shadow 140ms var(--ease),
              background 140ms var(--ease);
  overflow: hidden;
  animation: picker3In .5s var(--ease) backwards;
  -webkit-tap-highlight-color: transparent;
}
@keyframes picker3In {
  from { opacity: 0; transform: translateY(18px) scale(.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.picker3__card:hover {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--char) 55%, #fff);
  background: color-mix(in oklch, var(--char) 6%, #fff);
  box-shadow: 0 18px 32px -18px color-mix(in oklch, var(--char) 50%, transparent);
}
.picker3__card:active {
  transform: translateY(1px) scale(.995);
  transition-duration: 60ms;
}
.picker3__card[data-char="ash"]    { --char: #FF6B4A; }
.picker3__card[data-char="pearl"]  { --char: #5BA8D1; }
.picker3__card[data-char="sprout"] { --char: #7DAD4A; }

.picker3__portrait {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--char) 16%, #fff);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  overflow: hidden;
  transition: transform 260ms var(--ease);
}
.picker3__card:hover .picker3__portrait {
  transform: scale(1.04);
}
.picker3__portrait img {
  width: 90%;
  height: 90%;
  object-fit: contain;
  filter: drop-shadow(0 4px 8px rgba(60,40,20,.12));
  animation: charFloat 3.4s ease-in-out infinite;
}
.picker3__card[data-char="pearl"]  .picker3__portrait img { animation-delay: -1.1s; }
.picker3__card[data-char="sprout"] .picker3__portrait img { animation-delay: -2.2s; }

.picker3__name {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 22px;
  letter-spacing: -0.015em;
  line-height: 1;
  color: var(--ink);
  margin-top: 4px;
}
.picker3__vibe {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.35;
  max-width: 240px;
  text-wrap: balance;
  margin: 0;
}

/* Short screens: tighten so three cards still fit w/o scroll */
@media (max-height: 720px) {
  .picker3 { padding-top: calc(env(safe-area-inset-top, 0px) + 14px); }
  .picker3__logo { height: 30px; margin-bottom: 10px; }
  .picker3__logo img { height: 22px; }
  .picker3__hd { margin-bottom: 12px; }
  .picker3__title { font-size: 20px; }
  .picker3__sub { font-size: 13px; }
  .picker3__cards { gap: 10px; }
  .picker3__card { padding: 12px 16px 12px; gap: 6px; border-radius: 20px; }
  .picker3__portrait { width: 90px; height: 90px; }
  .picker3__name { font-size: 20px; }
  .picker3__vibe { font-size: 13px; }
}

/* ────────── Calibration v3 · flat 2D, spinning ring → settle → pop ────────── */
.calib3 {
  position: absolute;
  inset: 0;
  background: var(--cream, #F6EFE1);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 40px;
  overflow: hidden;
  padding: 40px 22px;
}

.calib3__stage {
  position: relative;
  width: 300px;
  height: 300px;
}

/* Soft halo behind everything — grows when orb settles */
.calib3__halo {
  position: absolute;
  inset: 50% 50% 50% 50%;
  width: 160px;
  height: 160px;
  margin: -80px 0 0 -80px;
  border-radius: 50%;
  background: color-mix(in oklch, var(--accent, #FF6B4A) 16%, transparent);
  transform: scale(.6);
  opacity: 0;
  transition: transform 700ms cubic-bezier(.22,.61,.36,1),
              opacity 700ms ease;
}
.calib3--settling .calib3__halo,
.calib3--holding  .calib3__halo { transform: scale(1); opacity: 1; }
.calib3--pop      .calib3__halo { transform: scale(2.4); opacity: 0; transition-duration: 550ms; }

/* The rotating ring — wraps all dots and spins */
.calib3__ring {
  position: absolute;
  inset: 0;
  animation: calib3Spin 10s linear infinite;
  transform-origin: center center;
  transition: opacity 380ms ease;
}
.calib3--settling .calib3__ring,
.calib3--holding  .calib3__ring,
.calib3--pop      .calib3__ring,
.calib3--done     .calib3__ring { animation-play-state: paused; opacity: 0; transition: opacity 420ms ease; }
@keyframes calib3Spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(360deg); }
}

/* Flat 2D dots — solid crayon-like fills, no gradients, no shine */
.calib3__dot {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 12px;
  height: 12px;
  margin: -6px 0 0 -6px;
  border-radius: 50%;
  background: oklch(62% 0.17 var(--hue));
  transform: translate(var(--tx), var(--ty)) scale(1);
  opacity: 0;
  animation: calib3DotIn .45s var(--ease) forwards;
  animation-delay: var(--delay);
}
@keyframes calib3DotIn {
  from { opacity: 0; transform: translate(calc(var(--tx) * .35), calc(var(--ty) * .35)) scale(.2); }
  to   { opacity: 1; transform: translate(var(--tx), var(--ty)) scale(1); }
}

/* Center orb — flat coral circle; fades in on settle, pulses on hold, pops at end */
.calib3__orb {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  transform: scale(.2);
  opacity: 0;
  transition: transform 540ms cubic-bezier(.3, 1.4, .5, 1),
              opacity 320ms ease;
  pointer-events: none;
}
.calib3--settling .calib3__orb { transform: scale(1);   opacity: 1; }
.calib3--holding  .calib3__orb { transform: scale(1);   opacity: 1; animation: calib3OrbBreathe 1.4s ease-in-out infinite; }
.calib3--pop      .calib3__orb { transform: scale(1.7); opacity: 0; transition-duration: 420ms; }
.calib3--done     .calib3__orb { opacity: 0; }

.calib3__orb-body {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: var(--accent, #FF6B4A);
}
.calib3__orb-shine { display: none; }  /* flat — no highlight */

@keyframes calib3OrbBreathe {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.08); }
}

/* Pop ripples */
.calib3__ripple {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 88px;
  height: 88px;
  margin: -44px 0 0 -44px;
  border-radius: 50%;
  border: 2px solid var(--accent, #FF6B4A);
  opacity: 0;
  transform: scale(1);
  pointer-events: none;
}
.calib3--pop .calib3__ripple--1 {
  animation: calib3Ripple 650ms cubic-bezier(.2,.7,.3,1) forwards;
}
.calib3--pop .calib3__ripple--2 {
  animation: calib3Ripple 650ms cubic-bezier(.2,.7,.3,1) 90ms forwards;
}
@keyframes calib3Ripple {
  0%   { opacity: .85; transform: scale(.9); border-width: 2.5px; }
  100% { opacity: 0;   transform: scale(2.8); border-width: 1px; }
}

/* Label */
.calib3__label-wrap {
  min-height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.calib3__label {
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.01em;
  color: var(--ink);
  text-align: center;
  animation: calib3LabelIn .42s var(--ease);
  text-wrap: balance;
  max-width: 280px;
}
.calib3--holding .calib3__label { font-weight: 700; font-size: 22px; color: var(--accent, #FF6B4A); }
@keyframes calib3LabelIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* Progress bar — skinny, bottom */
.calib3__progress {
  width: 220px;
  height: 4px;
  background: color-mix(in oklch, var(--ink-soft, #A59682) 18%, transparent);
  border-radius: 999px;
  overflow: visible;
  position: relative;
  margin-top: 14px;
}
.calib3__progress-fill {
  height: 100%;
  background: var(--accent, #FF6B4A);
  border-radius: inherit;
  transition: width 600ms cubic-bezier(.22,.61,.36,1);
}
.calib3__bud {
  position: absolute;
  top: 50%;
  width: 30px;
  height: 30px;
  margin-top: -15px;
  margin-left: -15px;
  object-fit: contain;
  pointer-events: none;
  filter: grayscale(1) brightness(1.06) opacity(.35);
  transform: scale(.85);
  transition:
    filter .45s var(--ease),
    transform .45s cubic-bezier(.34, 1.8, .5, 1),
    opacity .45s var(--ease);
  z-index: 2;
}
.calib3__bud.is-on {
  filter: grayscale(0) brightness(1);
  transform: scale(1);
}
.calib3__bud.is-active {
  animation: calib3BudBob 1.2s ease-in-out infinite;
}
@keyframes calib3BudBob {
  0%, 100% { transform: scale(1)    translateY(0); }
  50%      { transform: scale(1.06) translateY(-2px); }
}

@media (max-height: 720px) {
  .calib3 { gap: 24px; padding: 24px 22px; }
  .calib3__stage { width: 260px; height: 260px; }
}


/* ──── Picker ──── */
.picker3 {
  padding: 110px 22px 28px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  min-height: 100%;
  box-sizing: border-box;
}
.picker3__hd {
  text-align: center;
  padding: 0 56px;
}
.picker3__title {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 0 0 6px;
  text-wrap: balance;
  text-align: center;
}
.picker3__sub {
  font-family: var(--ff-body);
  font-size: 13.5px;
  color: var(--ink-soft);
  margin: 0;
}
.picker3__cards {
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.picker3__card {
  appearance: none;
  border: 1px solid var(--line-soft);
  background: rgba(255,255,255,.55);
  border-radius: 22px;
  padding: 18px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  transition: transform .3s var(--ease), border-color .3s var(--ease), box-shadow .3s var(--ease), background .3s var(--ease);
  animation: picker3CardIn .5s cubic-bezier(.22,.61,.36,1) backwards;
  position: relative;
}
.picker3__card:hover,
.picker3__card:focus-visible {
  transform: translateY(-2px);
  border-color: color-mix(in oklch, var(--accent) 40%, var(--line-soft));
  box-shadow: 0 6px 22px -12px rgba(0,0,0,.18);
  outline: none;
  background: rgba(255,255,255,.85);
}
.picker3__portrait {
  width: 90px;
  height: 90px;
  border-radius: 50%;
  overflow: hidden;
  background: color-mix(in oklch, var(--accent) 10%, #fff);
  display: grid;
  place-items: center;
}
.picker3__portrait img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 32%;
}
.picker3__name {
  font-family: var(--ff-display);
  font-weight: 700;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.picker3__vibe {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 260px;
}
@keyframes picker3CardIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}


/* Landing — whole screen is tappable */
.land2--tappable { cursor: pointer; outline: none; }
.land2--tappable:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }
.land2__tap {
  font-family: var(--ff-body);
  font-size: 14px;
  color: var(--ink-soft);
  letter-spacing: .02em;
  margin-top: 8px;
  animation: land2TapPulse 2.2s ease-in-out infinite;
  pointer-events: none;
}
@keyframes land2TapPulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}


/* Typewriter */
.typewriter {
  display: inline;
}
.typewriter__caret {
  display: inline-block;
  width: 2px;
  height: 1em;
  background: var(--accent, #FF6B4A);
  margin-left: 3px;
  vertical-align: -2px;
  animation: tw-blink 800ms steps(1, end) infinite;
  border-radius: 1px;
}
.typewriter.is-done .typewriter__caret {
  opacity: 0;
  animation: tw-fadeout 600ms ease forwards;
}
@keyframes tw-blink {
  0%, 50%   { opacity: 1; }
  51%, 100% { opacity: 0; }
}
@keyframes tw-fadeout {
  to { opacity: 0; }
}

/* Button dimmed while bubble is still typing */
.btn--waiting {
  opacity: .45;
  pointer-events: auto; /* user can still skip if impatient */
}


/* Fun-fact "tap to continue" — barely visible hint */
.fact__continue {
  appearance: none;
  border: 0;
  background: transparent;
  color: color-mix(in oklch, var(--ink-soft, #A59682) 55%, transparent);
  font-family: var(--ff-body);
  font-size: 13px;
  font-weight: 400;
  letter-spacing: .04em;
  padding: 12px 16px;
  cursor: pointer;
  text-decoration: none;
  transition: color .25s var(--ease), opacity .25s var(--ease);
  animation: factContinuePulse 2.4s ease-in-out infinite;
}
.fact__continue:hover,
.fact__continue:focus-visible {
  color: var(--ink-soft, #A59682);
  outline: none;
}
@keyframes factContinuePulse {
  0%, 100% { opacity: .55; }
  50%      { opacity: 1; }
}
.shell[data-mode="dark"] .fact__continue {
  color: rgba(255,242,228,.35);
}

/* ════════════════════════════════════════════════════════════════════
   Pearl · animated webm assets
   The webms are transparent VP9/VP8 alpha clips, so they composite
   directly onto the cream-warm backgrounds without letterboxing.
   ════════════════════════════════════════════════════════════════════ */

.pearl-vid {
  display: block;
  background: transparent;
  object-fit: contain;
  pointer-events: none; /* clicks pass through to parent button/card */
}

/* HostFrame avatar · 44×44 circle · pearl-idle loop */
.host-frame__avatar .pearl-vid {
  /* slightly scaled up so the character's head fills the circle, matching the
     compositional weight of the static portraits used for Ash/Sprout */
  width: 150%;
  height: 150%;
  transform: translateY(6%);
  animation: charFloat 4s ease-in-out infinite;
}

/* Handoff stage · arriving Pearl plays 'arrive' → idle ; leaving Pearl plays 'handoff-out' → idle */
.handoff__char .pearl-vid {
  width: 78%;
  height: 78%;
}

/* Kid-invite header · Pearl peeking and waving */
.kid-invite2__pearl {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 10px 20px rgba(60,40,20,.16));
  animation: charFloat 3.2s ease-in-out infinite;
}
.kid-invite2__pearl .pearl-vid {
  width: 100%;
  height: 100%;
}

/* Kid-hello screen · full kid-hello webm in the 260×260 circle */
.kid-hello__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

/* Picker card portrait · 120×120 circle · pearl-match-reveal → idle */
.picker3__portrait .pearl-vid {
  width: 125%;
  height: 125%;
  transform: translateY(6%);
  filter: drop-shadow(0 4px 8px rgba(60,40,20,.12));
}
/* override the charFloat on img-only selector — video handles its own motion */
.picker3__card[data-char="pearl"] .picker3__portrait .pearl-vid {
  animation: charFloat 3.4s ease-in-out infinite;
  animation-delay: -1.1s;
}

/* Email gate portrait · 160×160 circle */
.gate__portrait .pearl-vid {
  width: 100%;
  height: 100%;
  transform: translateY(4%) scale(1.04);
}


/* ════════════════════════════════════════════════════════════════
   Full-screen character video (intro / handoff / kid-greet / handback)
   ════════════════════════════════════════════════════════════════ */
.screen.intro--fs,
.screen.handoff--fs,
.screen.kid-finale--fs {
  position: absolute;
  inset: 0;
  padding: 0;
  margin: 0;
  background: #000;
  display: block;
}

/* The FS video fills the phone-screen viewport */
.fs-vid {
  position: absolute;
  inset: 0;
  background: var(--cream, #FFF9F5);
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fs-vid__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: transparent;
  pointer-events: none;
}
.fs-vid__tap-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  cursor: pointer;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}
.fs-vid--bleed .fs-vid__el { object-fit: cover; }

.fs-vid__skip {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  background: rgba(0,0,0,.45);
  color: #fff;
  border: 1px solid rgba(255,255,255,.2);
  border-radius: 999px;
  padding: 8px 14px;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .02em;
  cursor: pointer;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  animation: fadeIn .3s ease-out both;
}
.fs-vid__skip:hover { background: rgba(0,0,0,.65); }

.fs-vid--missing {
  background: #1a1a22;
  color: #fff;
  display: grid;
  place-items: center;
  gap: 12px;
  padding: 24px;
  text-align: center;
}
.fs-vid__fn {
  font-family: ui-monospace, Menlo, Consolas, monospace;
  font-size: 12px;
  color: #c8c8d0;
}

/* Continue button overlaid on the FS video after it ends */
.intro__continue {
  position: absolute;
  left: 50%;
  bottom: 42px;
  transform: translateX(-50%);
  background: var(--accent, #ff6b3d);
  color: #fff;
  border: none;
  border-radius: 999px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 16px;
  letter-spacing: .01em;
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(0,0,0,.35), 0 0 0 3px rgba(255,255,255,.1);
  animation: popIn .42s cubic-bezier(.2,.9,.3,1.2) both;
  z-index: 10;
}
.intro__continue:hover { transform: translateX(-50%) translateY(-2px); }
.intro__continue--kid { background: #ff6b9e; }

@keyframes fadeIn  { from { opacity: 0 } to { opacity: 1 } }
@keyframes popIn   {
  0%   { opacity: 0; transform: translateX(-50%) translateY(14px) scale(.92); }
  60%  { opacity: 1; transform: translateX(-50%) translateY(-2px) scale(1.04); }
  100% { opacity: 1; transform: translateX(-50%) translateY(0) scale(1); }
}

/* Kid-invite pearl video window · use the invitation webm full-bleed in its card */
.kid-invite2__pearl--fs {
  position: relative;
  width: 180px;
  height: 180px;
  border-radius: 22px;
  overflow: hidden;
  background: var(--accent-wash, #fff4ea);
  box-shadow: 0 14px 32px rgba(60,40,20,.22);
  margin: 0 auto 18px;
}
.kid-invite2__pearl--fs .fs-vid {
  position: absolute;
  inset: 0;
  background: transparent;
}
.kid-invite2__pearl--fs .fs-vid__el {
  background: transparent;
  object-fit: cover;
}
.kid-invite2__pearl--fs .fs-vid__skip { display: none; }

/* ════════════════════════════════════════════════════════════════
   Mute button hint
   ════════════════════════════════════════════════════════════════ */
.mute-wrap { position: relative; }
.mute-hint {
  position: absolute;
  top: 110%;
  right: 0;
  white-space: nowrap;
  background: #1a1a22;
  color: #fff;
  font-size: 11px;
  padding: 6px 10px;
  border-radius: 8px;
  animation: fadeIn .3s ease-out both;
  pointer-events: none;
  z-index: 40;
}
.mute-hint::before {
  content: '';
  position: absolute;
  top: -4px;
  right: 14px;
  width: 8px;
  height: 8px;
  background: #1a1a22;
  transform: rotate(45deg);
}

/* ════════════════════════════════════════════════════════════════
   Speech bubble above host frame on question screens
   (driven by BubbleBus, attached to HostFrame)
   ════════════════════════════════════════════════════════════════ */
.host-frame__bubble.bubble {
  position: absolute;
  top: calc(100% + 8px);
  left: 62px;
  right: 14px;
  background: #fff;
  border: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-radius: 14px;
  padding: 8px 12px;
  font-size: 13px;
  line-height: 1.35;
  color: var(--ink, #2a2018);
  box-shadow: 0 8px 18px rgba(60,40,20,.08);
  animation: bubbleIn .32s cubic-bezier(.2,.9,.3,1.15) both;
  z-index: 20;
  max-width: 260px;
}
.host-frame__bubble.bubble::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-top: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  transform: rotate(45deg);
}
.host-frame__bubble.bubble p { margin: 0; }

@keyframes bubbleIn {
  0%   { opacity: 0; transform: translateY(-6px) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}


/* ════════════════════════════════════════════════════════════════
   Contained intro / handoff / kid-greet video card
   ════════════════════════════════════════════════════════════════ */
.intro__card {
  position: relative;
  width: min(300px, 80%);
  aspect-ratio: 1 / 1;
  border-radius: 28px;
  overflow: hidden;
  background: var(--accent-wash, #fff4ea);
  box-shadow:
    0 24px 54px rgba(60,40,20,.24),
    0 0 0 3px rgba(255,255,255,.9) inset,
    0 0 0 6px var(--accent-soft, rgba(255,140,90,.22));
  animation: cardIn .55s cubic-bezier(.2,.9,.3,1.1) both;
}
.intro__card--kid {
  width: min(320px, 86%);
  box-shadow:
    0 24px 54px rgba(60,40,20,.24),
    0 0 0 3px rgba(255,255,255,.9) inset,
    0 0 0 6px rgba(255,107,158,.22);
}
.intro__card .fs-vid {
  position: absolute;
  inset: 0;
  cursor: default;
  background: transparent;
}
.intro__card .fs-vid__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
.intro__card .fs-vid__skip { display: none; }

@keyframes cardIn {
  0%   { opacity: 0; transform: scale(.92) translateY(8px); }
  100% { opacity: 1; transform: scale(1)   translateY(0); }
}

/* char-vid (host-frame idle, picker, gate etc) — default sizing when used as
   raw <video>. Parent containers constrain via their own width/height. */
.char-vid {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: transparent;
}
/* Hide ALL browser/Safari video overlay controls inside quiz */
.quiz-root video::-webkit-media-controls,
.quiz-root video::-webkit-media-controls-panel,
.quiz-root video::-webkit-media-controls-start-playback-button,
.quiz-root video::-webkit-media-controls-overlay-enclosure,
.quiz-root video::-webkit-media-controls-enclosure {
  display: none !important;
  -webkit-appearance: none;
  opacity: 0 !important;
  pointer-events: none !important;
}
.quiz-root video {
  pointer-events: none;
}
/* Hide Shopify Quick Action overlay buttons on media */
.shopify-quick-actions,
[data-shopify-quick-actions],
.shopify-section video + div,
.quiz-root video + div {
  display: none !important;
}
/* Safari fallback: static PNG with float animation instead of alpha WebM */
.char-vid--static {
  display: grid;
  place-items: center;
  background: transparent;
}
.char-vid--static img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: charFloat 4s ease-in-out infinite;
}
/* Safari fallback container — cream background, center content */
.fs-vid--safari {
  background: var(--cream, #FFF9F5);
}
.fs-vid--safari .fs-vid__el--webp {
  object-fit: contain;
  background: transparent;
}
/* Safari skip state for FullScreenVideo — blank cream during auto-advance */
.fs-vid--safari-skip {
  width: 100%;
  height: 100%;
  background: var(--cream, #FFF9F5);
}
/* Animated WebP fallback for FullScreenVideo on Safari/iOS */
.fs-vid__el--webp {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  pointer-events: none;
}
.char-vid--missing {
  display: grid;
  place-items: center;
  color: var(--ink-faint, #8a7f76);
  font-size: 10px;
  background: rgba(0,0,0,.04);
}
.char-vid--missing img {
  width: 70%;
  height: 70%;
  object-fit: contain;
}

/* HostFrame avatar · 44×44 circle · idle video, zoomed to face.
   Float animation lives on the avatar container so our scale transform on the
   video is preserved (otherwise charFloat overrides it). */
.host-frame__avatar {
  animation: charFloat 4s ease-in-out infinite;
}
.host-frame__avatar .char-vid,
.host-frame__video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 20%;
  transform: scale(2.2);
  transform-origin: center 28%;
  animation: none;
  border-radius: 50%;
}

/* Picker card portrait · 120px circle · idle loops */
.picker3__portrait {
  position: relative;
}
.picker3__portrait .char-vid {
  position: absolute;
  inset: 0;
  width: 115%;
  height: 115%;
  transform: translate(-7%, 2%);
  object-fit: cover;
}

/* Email gate portrait · 160px circle · idle loop */
.gate__portrait {
  position: relative;
}
.gate__portrait .char-vid {
  position: absolute;
  inset: 0;
  width: 110%;
  height: 110%;
  transform: translate(-5%, 2%);
  object-fit: cover;
}


/* ════════════════════════════════════════════════════════════════
   In-flow speech bubble on question screens (between host and prompt)
   ════════════════════════════════════════════════════════════════ */
.q-bubble.bubble {
  position: relative;
  margin: 10px 0 14px;
  padding: 10px 14px 10px 16px;
  background: #fff;
  border: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-radius: 14px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--ink, #2a2018);
  box-shadow: 0 6px 16px rgba(60,40,20,.07);
  animation: bubbleIn .32s cubic-bezier(.2,.9,.3,1.15) both;
  max-width: 100%;
}
.q-bubble.bubble::before {
  content: '';
  position: absolute;
  top: -7px;
  left: 22px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-top: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  transform: rotate(45deg);
}
.q-bubble.bubble p { margin: 0; }


/* Intro screen typewriter bubble, sits above the video card */
.intro__bubble.bubble {
  position: relative;
  max-width: min(320px, 86%);
  margin: 0 auto 18px;
  padding: 14px 18px;
  background: #fff;
  border: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-radius: 16px;
  font-size: 15px;
  line-height: 1.4;
  color: var(--ink, #2a2018);
  box-shadow: 0 8px 20px rgba(60,40,20,.08);
  text-align: center;
  animation: bubbleIn .35s cubic-bezier(.2,.9,.3,1.15) both;
}
.intro__bubble.bubble::after {
  content: '';
  position: absolute;
  bottom: -8px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
  width: 14px;
  height: 14px;
  background: #fff;
  border-right: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
  border-bottom: 1.5px solid var(--accent-soft, rgba(255,140,90,.3));
}
.intro__bubble.bubble p { margin: 0; }

/* ── Multi-select (Q2): compact options so continue button stays visible ── */
.multi-meta ~ .opts .opt {
  padding: 10px 14px;
  min-height: 44px;
  font-size: 13.5px;
}
.multi-meta ~ .opts .opt .opt__icon {
  width: 24px; height: 24px;
}
.multi-meta ~ .opts {
  gap: 6px;
}

/* ── Compact: only for very short screens ── */
@media (max-height: 650px) {
  .stage { padding-top: 70px; padding-bottom: 14px; }
  .q-prompt { font-size: 20px; min-height: unset; margin-bottom: 2px; }
  .q-sub { margin-bottom: 6px; font-size: 12.5px; }
  .host-frame { margin-bottom: 8px; padding: 6px 10px 6px 6px; }
  .host-frame__avatar { width: 36px; height: 36px; }
  .bubble { padding: 8px 12px; font-size: 13px; max-width: 260px; }
  .opts { gap: 5px; }
  .opt { padding: 10px 14px; min-height: 46px; font-size: 14px; }
  .opt__icon { width: 22px; height: 22px; }
  .multi-meta { margin: 2px 0 4px; }
  .btn--block { padding: 10px 18px; font-size: 14px; }
}

