/** Shopify CDN: Minification failed

Line 1483:11 Expected identifier but found whitespace
Line 1483: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; }

/* ────────── Viewport & layout (full-bleed, matches quiz-v2) ──────────
   Fills entire viewport on both mobile and desktop. No phone bezel,
   no zoom scaling — content stays readable via padding + max-width
   constraints on inner elements.
   ─────────────────────────────────────────────────────────────── */
.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);
}

/* Desktop: larger text + centered content column.
   No zoom on .shell — it breaks absolutely-positioned screens
   (kid-invite, landing, calibration) that use inset:0.
   Instead we scale up font/spacing and cap content width. */
@media (min-width: 721px) {
  .shell {
    font-size: 18px;
  }
  .stage {
    padding-top: 120px;
    padding-bottom: 40px;
    padding-left: 40px;
    padding-right: 40px;
  }
  .shell__top {
    padding: 28px 40px 0;
  }
  /* Absolutely-positioned screens fill their parent */
  .kid-invite2,
  .land2 {
    left: 0;
    right: 0;
    width: 100%;
  }
  .screen {
    max-width: 680px;
  }
  .q-prompt {
    font-size: 30px;
  }
  .opt {
    font-size: 18px;
    min-height: 64px;
    padding: 16px 24px;
  }
  .btn {
    font-size: 18px;
    padding: 18px 36px;
  }
  .host-frame__name {
    font-size: 17px;
  }
  .intro__bubble,
  .bubble {
    font-size: 19px;
    max-width: 560px;
  }
  .fs-vid,
  .fs-vid__el { max-width: 100vw !important; }
  /* Calibration screen */
  .calib3 {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 680px;
    margin: 0 auto;
  }
  /* Gate screen */
  .gate {
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
  }
  .gate__title {
    font-size: 30px;
  }
  .gate__input {
    font-size: 18px;
    padding: 18px 22px;
  }
  /* Picker cards */
  .picker3 {
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
  }
  .picker3__title {
    font-size: 32px;
  }
  .picker3__cards {
    flex-direction: row;
    gap: 24px;
  }
  /* Fun facts */
  .fact__card {
    max-width: 600px;
    margin: 0 auto;
  }
  .fact__text {
    font-size: 20px;
  }
  /* Handoff / intro screens */
  .intro__card {
    max-width: 600px;
    margin: 0 auto;
  }
  /* Kid questions */
  .kid-q {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .kid-q__prompt {
    font-size: 28px;
  }
  .kid-card__label {
    font-size: 18px;
  }
  /* Talk screen */
  .talk {
    max-width: 680px;
    margin-left: auto;
    margin-right: auto;
  }
  .talk-invite__title {
    font-size: 32px;
  }
  /* Landing */
  .land2__title {
    font-size: 38px;
  }
  .land2__tap {
    font-size: 18px;
  }
}

/* ────────── 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; }

/* 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: 420px;
  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__label {
  position: absolute;
  top: 10px; left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  background: rgba(45,31,21,.78);
  color: #fff;
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 4;
  backdrop-filter: blur(6px);
}
.ph__label svg { width: 10px; height: 10px; }
.ph__filename {
  position: absolute;
  bottom: 10px; left: 10px; right: 10px;
  font-family: ui-monospace, Menlo, monospace;
  font-size: 9.5px;
  color: rgba(255,255,255,.92);
  background: rgba(45,31,21,.65);
  padding: 4px 8px;
  border-radius: 6px;
  z-index: 4;
  backdrop-filter: blur(4px);
  text-align: left;
}
.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); }
}

/* Hide placeholder labels when tweak is off */
body.hide-labels .ph__label,
body.hide-labels .ph__filename { display: none; }
body.hide-labels .ph { border-style: none; background: transparent; }

/* ────────── 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;
}
body.hide-labels .host-frame__tiny-label { display: none; }

/* ────────── 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: 9px;
}
.opt {
  appearance: none;
  border: 1.5px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 14px 16px;
  border-radius: var(--r-md);
  font-size: 14.5px;
  font-weight: 500;
  text-align: left;
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 54px;
  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__fine {
  font-size: 11px;
  color: var(--ink-faint);
  max-width: 300px;
  margin: 2px 0 0;
}
.gate__skip {
  margin-top: 12px;
  background: transparent;
  color: var(--ink-faint);
  font-size: 11px;
  text-decoration: none !important;
  border-bottom: none !important;
  padding: 4px 8px;
  opacity: 0;
  animation: skipFadeIn 0.5s ease forwards;
  animation-delay: 4s;
  letter-spacing: 0.01em;
}
@keyframes skipFadeIn {
  to { opacity: 0.2; }
}

/* ────────── 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 {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: charFloat 3.6s ease-in-out infinite;
}
.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%); }
.kid-q__prompt {
  font-family: var(--ff-serif, Georgia, serif);
  font-size: 30px;
  line-height: 1.18;
  text-align: center;
  margin: 4px 12px 22px;
  color: var(--ink, #2a2018);
  letter-spacing: -0.01em;
  text-wrap: balance;
}
.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); }

/* ────────── 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 {
  width: 88%; height: 88%; object-fit: contain;
}
.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); }

/* ────────── Tweaks panel ────────── */
#tweaks-toggle {
  display: none;
}
#tweaks-toggle svg { width: 18px; height: 18px; color: var(--ink); }

.tweaks {
  position: fixed;
  bottom: 72px; right: 18px;
  width: 280px;
  z-index: 199;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 14px 16px 16px;
  box-shadow: var(--shadow-card-lg);
  display: none;
  max-height: 80vh;
  overflow-y: auto;
}
.tweaks.is-open { display: none; }
.tweaks h3 {
  font-weight: 700;
  font-size: 15px;
  letter-spacing: -.02em;
  margin: 0 0 4px;
}
.tweaks__hint {
  font-size: 11px;
  color: var(--ink-faint);
  margin: 0 0 14px;
}
.tweaks__section { margin-top: 14px; }
.tweaks__section:first-of-type { margin-top: 0; }
.tweaks__label {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--ink-faint);
  margin: 0 0 6px;
}
.tweaks__row {
  display: grid;
  gap: 6px;
  grid-template-columns: repeat(3, 1fr);
}
.tweaks__row--2 { grid-template-columns: 1fr 1fr; }
.tweaks__btn {
  padding: 8px 4px;
  font-size: 11.5px;
  font-weight: 600;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink-soft);
  font-family: inherit;
}
.tweaks__btn.is-on {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}
.tweaks__select {
  width: 100%;
  padding: 8px 10px;
  font: inherit;
  font-size: 12.5px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
}
.tweaks__toggle {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 4px 0;
}
.tweaks__switch {
  width: 38px; height: 22px;
  border-radius: 99px;
  background: var(--line);
  border: none;
  position: relative;
  transition: background var(--dur) var(--ease);
  flex: none;
}
.tweaks__switch::after {
  content: '';
  position: absolute;
  top: 2px; left: 2px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: #fff;
  transition: transform var(--dur) var(--ease);
  box-shadow: 0 1px 3px rgba(0,0,0,.2);
}
.tweaks__switch.is-on { background: var(--accent); }
.tweaks__switch.is-on::after { transform: translateX(16px); }

/* ────────── 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 · volume-up start screen ────────── */
.land2 {
  position: absolute;
  inset: 0;
  background: var(--cream, #F6EFE1);
  display: flex;
  flex-direction: column;
  padding: calc(env(safe-area-inset-top, 0px) + 28px) 22px calc(env(safe-area-inset-bottom, 0px) + 28px);
  overflow: hidden;
}
.land2__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 44px;
  flex-shrink: 0;
}
.land2__logo img {
  height: 32px;
  width: auto;
  object-fit: contain;
}
.land2__logoFallback {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 24px;
  letter-spacing: -0.02em;
  color: var(--ink);
  position: absolute;
  opacity: 0;
}
.land2__logo img[style*="display: none"] + .land2__logoFallback,
.land2__logo:has(img[style*="display: none"]) .land2__logoFallback {
  opacity: 1;
  position: static;
}
.land2__center {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 18px;
}
.land2__icon {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--accent-wash, #FFEDE4);
  color: var(--accent, #FF6B4A);
  display: grid;
  place-items: center;
  animation: land2Pulse 2.4s ease-in-out infinite;
}
.land2__icon svg {
  width: 34px;
  height: 34px;
}
@keyframes land2Pulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 color-mix(in oklch, var(--accent) 30%, transparent); }
  50%      { transform: scale(1.05); box-shadow: 0 0 0 14px color-mix(in oklch, var(--accent) 0%, transparent); }
}
.land2__title {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 26px;
  letter-spacing: -0.02em;
  color: var(--ink);
  margin: 4px 0 0;
  text-align: center;
}
.land2__tap {
  background: none;
  border: 0;
  color: var(--ink-soft);
  font-family: var(--ff-body);
  font-size: 15px;
  padding: 8px 16px;
  cursor: pointer;
  margin-top: -4px;
}
.land2__tap:active { opacity: .6; }
.land2__scribble {
  position: absolute;
  opacity: .22;
  pointer-events: none;
}
.land2__scribble--1 { top: 14%; right: 8%; width: 40px; transform: rotate(22deg); }
.land2__scribble--2 { bottom: 18%; left: 8%; width: 42px; transform: rotate(-14deg); }
.land2__sub {
  font-size: 15px;
  color: var(--ink-soft);
  text-align: center;
  max-width: 320px;
  margin: -6px 0 0;
  line-height: 1.45;
}
.land2__flags {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}
.land2__flag {
  font-size: 20px;
  line-height: 1;
}
.land2__flags-label {
  font-size: 13px;
  color: var(--ink-faint);
  white-space: nowrap;
}

/* ────────── 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-wrap: balance;
  max-width: 240px;
  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;
  max-width: none;
  margin-inline: auto;
}
.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: #0b0b0f;
  overflow: hidden;
  display: grid;
  place-items: center;
  cursor: pointer;
}
.fs-vid__el {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #0b0b0f;
}
.fs-vid--bleed .fs-vid__el { object-fit: cover; }

.fs-vid__skip {
  position: absolute;
  top: 14px;
  right: 14px;
  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;
}
.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; }

/* ══════════════════════════════════════════════════════════════════════
   TALK SCREEN · invite, loading (3 variants), live, ending
   ══════════════════════════════════════════════════════════════════════ */

/* Hide any ElevenLabs widget UI but keep it functional/audible */
.talk__widget-host {
  position: fixed;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}
/* Belt-and-suspenders for the widget itself anywhere on page */
elevenlabs-convai {
  position: fixed !important;
  left: -9999px !important;
  top: -9999px !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  z-index: -1 !important;
}

.talk {
  text-align: center;
  padding: 24px 22px 28px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  min-height: 100%;
}

/* ── Invite (redesigned) ── */
.talk--invite {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0;
  padding: 18px 22px 24px;
  min-height: 100%;
}

.talk-invite__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(0,0,0,0.04);
  color: var(--ink-soft);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 6px 12px 6px 10px;
  border-radius: 99px;
  margin: 4px auto 0;
}
.talk-invite__eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 0 var(--accent);
  animation: tiLiveDot 1.6s ease-in-out infinite;
}
@keyframes tiLiveDot {
  0%,100% { box-shadow: 0 0 0 0 var(--accent-tint); }
  50%     { box-shadow: 0 0 0 5px transparent; }
}

.talk-invite__stage {
  position: relative;
  width: 260px;
  height: 260px;
  margin: 8px auto 4px;
  display: grid;
  place-items: center;
  color: var(--accent);
}

.talk-invite__halo {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent-wash) 0%, transparent 65%);
  filter: blur(16px);
  animation: tiHaloBreath 4.2s ease-in-out infinite;
}
.talk-invite__halo--2 {
  inset: 8px;
  background: radial-gradient(circle, var(--accent-tint) 0%, transparent 60%);
  animation-delay: 1s;
  animation-duration: 5.4s;
  opacity: 0.7;
}
@keyframes tiHaloBreath {
  0%,100% { transform: scale(1); opacity: .7; }
  50%     { transform: scale(1.08); opacity: 1; }
}

.talk-invite__rune {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  color: var(--accent);
  opacity: 0.75;
}
.talk-invite__rune-circle {
  transform-origin: 120px 120px;
  animation: tiSpin 22s linear infinite;
}
.talk-invite__rune-circle--2 {
  animation: tiSpin 16s linear infinite reverse;
}
@keyframes tiSpin {
  to { transform: rotate(360deg); }
}

.talk-invite__sparkle {
  position: absolute;
  width: 6px;
  height: 6px;
  top: 50%;
  left: 50%;
  border-radius: 50%;
  background: var(--accent);
  transform-origin: 0 0;
  transform:
    rotate(var(--angle))
    translateX(var(--dist))
    translateY(-3px);
  animation: tiSparkle 3.4s ease-in-out infinite;
  animation-delay: var(--delay);
  opacity: 0;
  box-shadow: 0 0 8px var(--accent), 0 0 2px #fff;
}
@keyframes tiSparkle {
  0%   { opacity: 0; transform: rotate(var(--angle)) translateX(var(--dist)) translateY(-3px) scale(0.4); }
  20%  { opacity: 1; transform: rotate(var(--angle)) translateX(var(--dist)) translateY(-3px) scale(1.1); }
  60%  { opacity: 0.8; transform: rotate(var(--angle)) translateX(calc(var(--dist) + 6px)) translateY(-3px) scale(0.9); }
  100% { opacity: 0; transform: rotate(var(--angle)) translateX(calc(var(--dist) + 12px)) translateY(-3px) scale(0.4); }
}

.talk-invite__bud {
  position: relative;
  z-index: 3;
  width: 168px;
  height: 168px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow:
    0 0 0 4px rgba(255,255,255,0.9),
    0 18px 48px var(--accent-tint),
    0 4px 14px rgba(0,0,0,0.08);
  animation: tiBudFloat 4.4s ease-in-out infinite;
}
.talk-invite__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
@keyframes tiBudFloat {
  0%,100% { transform: translateY(0) scale(1); }
  50%     { transform: translateY(-6px) scale(1.015); }
}

.talk-invite__pulse {
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  border: 1.5px solid var(--accent);
  opacity: 0;
  animation: tiPulse 2.8s ease-out infinite;
  pointer-events: none;
  z-index: 2;
}
.talk-invite__pulse--2 { animation-delay: 1.4s; }
@keyframes tiPulse {
  0%   { transform: scale(0.92); opacity: 0.6; }
  100% { transform: scale(1.45); opacity: 0; }
}

.talk-invite__copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  text-align: center;
  margin: 4px auto 0;
}
.talk-invite__kicker {
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
}
.talk-invite__title {
  font-size: 32px;
  font-weight: 800;
  letter-spacing: -0.038em;
  line-height: 1.05;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.talk-invite__title em {
  font-style: normal;
  color: var(--accent);
  background-image: linear-gradient(to right, var(--accent-tint), var(--accent-tint));
  background-repeat: no-repeat;
  background-position: 0 92%;
  background-size: 100% 14%;
  padding: 0 2px;
}
.talk-invite__sub {
  color: var(--ink-soft);
  font-size: 14.5px;
  margin: 4px 0 0;
  max-width: 280px;
  line-height: 1.5;
}

.talk-invite__actions {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  margin: 8px 0 0;
  width: 100%;
}
.talk-invite__cta {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: transparent;
  padding: 0;
  cursor: pointer;
  font-family: inherit;
  isolation: isolate;
  -webkit-tap-highlight-color: transparent;
  transition: transform .2s cubic-bezier(.34,1.56,.64,1);
}
.talk-invite__cta:hover { transform: translateY(-2px); }
.talk-invite__cta:active { transform: translateY(0) scale(.97); }
.talk-invite__cta-bg {
  position: absolute;
  inset: 0;
  border-radius: 99px;
  background: linear-gradient(135deg, var(--accent), var(--accent-deep, var(--accent)));
  box-shadow:
    0 12px 28px var(--accent-tint),
    0 2px 8px rgba(0,0,0,0.08),
    inset 0 1px 0 rgba(255,255,255,0.25);
  z-index: -1;
}
.talk-invite__cta::before {
  content: '';
  position: absolute;
  inset: -3px;
  border-radius: 99px;
  background: var(--accent);
  opacity: 0.25;
  filter: blur(10px);
  z-index: -2;
  animation: tiCtaGlow 2.4s ease-in-out infinite;
}
@keyframes tiCtaGlow {
  0%,100% { opacity: 0.18; }
  50%     { opacity: 0.42; }
}
.talk-invite__cta-content {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: -0.005em;
  padding: 16px 30px;
}
.talk-invite__cta-icon {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(255,255,255,0.18);
  color: #fff;
}

.talk-invite__skip {
  border: none;
  background: transparent;
  color: var(--ink-soft);
  font-size: 13.5px;
  font-weight: 500;
  font-family: inherit;
  cursor: pointer;
  padding: 6px 12px;
  text-decoration: underline;
  text-decoration-color: rgba(0,0,0,0.18);
  text-underline-offset: 4px;
}
.talk-invite__skip:hover { color: var(--ink); }

.talk__skip {
  margin-top: 4px;
  background: none;
  border: none;
  color: var(--ink-faint);
  font-size: 13px;
  font-family: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  padding: 6px 10px;
}
.talk__skip:hover { color: var(--ink-soft); }

/* ── Loading shared ── */
.talk--loading {
  justify-content: center;
  gap: 28px;
  min-height: 100%;
}
.talk__loading-copy {
  min-height: 26px;
}
.talk__loading-line {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
  color: var(--accent-deep);
  letter-spacing: -0.015em;
  animation: loadCopyIn .4s ease both;
}
@keyframes loadCopyIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ── Variant 1: Awakening ── */
.loading-awakening {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
}
.loading-awakening__cocoon {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: grid;
  place-items: center;
}
.loading-awakening__shell {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid var(--accent);
  opacity: .35;
  animation: cocoonPulse 2.4s ease-in-out infinite;
}
.loading-awakening__shell--2 {
  animation-delay: 0.6s;
  border-color: var(--accent-soft);
  opacity: .6;
}
.loading-awakening__shell--3 {
  animation-delay: 1.2s;
  inset: 18px;
  border-style: dashed;
}
@keyframes cocoonPulse {
  0%, 100% { transform: scale(1); opacity: .3; }
  50%      { transform: scale(1.06); opacity: .6; }
}
.loading-awakening__breath {
  position: relative;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  overflow: hidden;
  background: radial-gradient(circle, var(--accent-wash) 0%, var(--cream) 80%);
  box-shadow: 0 12px 36px var(--accent-tint);
  animation: cocoonBreath 3s ease-in-out infinite;
  z-index: 2;
}
@keyframes cocoonBreath {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.05); }
}
.loading-awakening__char-img {
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.loading-awakening__video {
  width: 100%; height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.loading-awakening__eye {
  position: absolute;
  width: 12px;
  height: 12px;
  background: var(--ink);
  border-radius: 50%;
  top: 38%;
  z-index: 3;
  pointer-events: none;
  display: none;
}
.loading-awakening__sparkle {
  position: absolute;
  width: 6px; height: 6px;
  background: var(--accent);
  border-radius: 50%;
  top: 50%; left: 50%;
  margin: -3px 0 0 -3px;
  transform-origin: center;
  animation: sparkleOrbit 3.6s linear infinite;
  animation-delay: var(--delay);
  filter: drop-shadow(0 0 6px var(--accent));
}
@keyframes sparkleOrbit {
  0% {
    transform: rotate(var(--angle)) translateX(140px) scale(0);
    opacity: 0;
  }
  20% {
    transform: rotate(calc(var(--angle) + 60deg)) translateX(120px) scale(1.2);
    opacity: 1;
  }
  90% {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(60px) scale(.5);
    opacity: .6;
  }
  100% {
    transform: rotate(calc(var(--angle) + 380deg)) translateX(0) scale(0);
    opacity: 0;
  }
}

/* ── Variant 2: Tuning In ── */
.loading-tuning {
  position: relative;
  width: 260px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 24px;
}
.loading-tuning__dial {
  position: relative;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, var(--accent-wash) 0%, transparent 60%),
    repeating-conic-gradient(from 0deg, transparent 0deg 28deg, var(--accent-soft) 28deg 30deg);
  box-shadow:
    inset 0 4px 12px rgba(0,0,0,.05),
    0 8px 24px var(--accent-tint);
  display: grid;
  place-items: center;
  border: 2px solid var(--accent-soft);
}
.loading-tuning__needle {
  position: absolute;
  top: 12%;
  left: 50%;
  width: 3px;
  height: 90px;
  background: linear-gradient(to top, var(--accent), transparent);
  border-radius: 99px;
  transform-origin: bottom center;
  animation: tuneNeedle 2.4s cubic-bezier(.6,0,.4,1) infinite;
}
@keyframes tuneNeedle {
  0%   { transform: translateX(-50%) rotate(-60deg); }
  40%  { transform: translateX(-50%) rotate(60deg); }
  60%  { transform: translateX(-50%) rotate(-30deg); }
  100% { transform: translateX(-50%) rotate(0deg); }
}
.loading-tuning__tick {
  position: absolute;
  width: 1px;
  height: 6px;
  background: var(--accent-deep);
  top: 6px;
  left: 50%;
  transform-origin: 50% 104px;
  transform: translateX(-50%) rotate(calc(var(--i) * 30deg));
  opacity: .4;
}
.loading-tuning__char-orb {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 6px 18px rgba(0,0,0,.1);
  overflow: hidden;
  z-index: 2;
}
.loading-tuning__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
}
.loading-tuning__static {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg,
      rgba(255,255,255,.4) 0 1px,
      transparent 1px 3px);
  mix-blend-mode: overlay;
  animation: staticFade 4s ease-out forwards;
}
@keyframes staticFade {
  0%   { opacity: .9; }
  100% { opacity: 0; }
}
.loading-tuning__waves {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 4px;
  height: 50px;
  width: 220px;
}
.loading-tuning__bar {
  flex: 1;
  background: linear-gradient(to top, var(--accent), var(--accent-soft));
  border-radius: 2px;
  height: 30%;
  animation: tuneWave 1.2s ease-in-out infinite;
  animation-delay: calc(var(--i) * 0.05s);
}
@keyframes tuneWave {
  0%, 100% { height: 20%; }
  50%      { height: 100%; }
}

/* ── Variant 3: Spell Casting ── */
.loading-spell {
  position: relative;
  width: 280px;
  height: 280px;
  display: grid;
  place-items: center;
  color: var(--accent);
}
.loading-spell__rune {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
}
.loading-spell__rune-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 0 12px var(--accent-tint));
}
.loading-spell__circle {
  animation: spellDraw 3s cubic-bezier(.6,0,.4,1) forwards, spellSpin 8s linear infinite 3s;
  transform-origin: 50% 50%;
}
.loading-spell__triangle {
  animation: spellDraw 3s cubic-bezier(.6,0,.4,1) forwards 0.5s, spellSpinReverse 12s linear infinite 3.5s;
  transform-origin: 50% 50%;
}
.loading-spell__circle-inner {
  animation: spellDraw 3s cubic-bezier(.6,0,.4,1) forwards 1s;
}
@keyframes spellDraw {
  to { stroke-dashoffset: 0; }
}
@keyframes spellSpin {
  to { transform: rotate(360deg); }
}
@keyframes spellSpinReverse {
  to { transform: rotate(-360deg); }
}
.loading-spell__char {
  position: relative;
  width: 100px;
  height: 100px;
  border-radius: 50%;
  background: var(--cream);
  box-shadow: 0 0 24px var(--accent-tint), 0 0 60px var(--accent-tint);
  overflow: hidden;
  z-index: 3;
  animation: spellCharRise 3s cubic-bezier(.4,0,.2,1) forwards;
  opacity: 0;
  transform: scale(.4);
}
@keyframes spellCharRise {
  to { opacity: 1; transform: scale(1); }
}
.loading-spell__video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.loading-spell__symbol {
  position: absolute;
  width: 32px;
  height: 32px;
  top: 50%; left: 50%;
  margin: -16px 0 0 -16px;
  transform-origin: center;
  animation: spellOrbit 6s linear infinite;
  animation-delay: calc(var(--i) * -0.85s);
  filter: drop-shadow(0 0 6px var(--accent-tint));
}
@keyframes spellOrbit {
  0% {
    transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle))) scale(0);
    opacity: 0;
  }
  10% {
    transform: rotate(var(--angle)) translateX(110px) rotate(calc(-1 * var(--angle))) scale(1);
    opacity: 1;
  }
  90% {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(110px) rotate(calc(-1 * (var(--angle) + 360deg))) scale(1);
    opacity: 1;
  }
  100% {
    transform: rotate(calc(var(--angle) + 360deg)) translateX(110px) rotate(calc(-1 * (var(--angle) + 360deg))) scale(0);
    opacity: 0;
  }
}

/* ── Live ── */
.talk--live {
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 26px;
}
.talk__live-hd {
  display: flex;
  justify-content: space-between;
  align-items: center;
  width: 100%;
  max-width: 320px;
  font-size: 12px;
  color: var(--ink-faint);
  font-weight: 600;
  letter-spacing: 0.02em;
}
.talk__live-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-wash);
  border-radius: 99px;
  color: var(--accent-deep);
}
.talk__live-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--accent);
  animation: liveDot 1.4s ease-in-out infinite;
}
@keyframes liveDot {
  0%, 100% { opacity: .4; transform: scale(.8); }
  50%      { opacity: 1; transform: scale(1.2); }
}
.talk__live-timer {
  font-variant-numeric: tabular-nums;
}

.talk__viz-wrap {
  position: relative;
  width: 240px;
  height: 240px;
  display: grid;
  place-items: center;
  margin: 24px auto;
}
.talk__viz-blob {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--accent) 0%, var(--accent-soft) 50%, transparent 75%);
  opacity: 0.5;
  transition: transform .12s ease-out, filter .12s ease-out;
}
.talk__viz-ring {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  transition: transform .15s ease-out, opacity .15s ease-out;
}
.talk__viz-ring--2 {
  inset: -4px;
  border-style: dashed;
  border-color: var(--accent-soft);
}
.talk__viz-char {
  position: relative;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  background: var(--cream);
  box-shadow: 0 12px 40px var(--accent-tint);
  z-index: 2;
}
.talk__char-video--live {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
}

.talk__live-hint {
  margin: 0;
  color: var(--ink-faint);
  font-size: 12.5px;
}

.talk__end {
  background: var(--cream);
  border: 1.5px solid var(--accent-soft);
  color: var(--accent-dark);
  padding: 12px 26px;
  border-radius: 99px;
  font-size: 14px;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
  transition: all .15s ease;
}
.talk__end:hover {
  background: var(--accent-wash);
  border-color: var(--accent);
}

/* ── Ending ── */
.talk--ending {
  justify-content: center;
  gap: 12px;
}
.talk__ending-heart {
  color: var(--accent);
  animation: heartPop .6s cubic-bezier(.4, 0, .2, 1.4);
}
@keyframes heartPop {
  0%   { transform: scale(0); opacity: 0; }
  60%  { transform: scale(1.2); opacity: 1; }
  100% { transform: scale(1); }
}


/* ══════════════════════════════════════════════════════════════════════
   LANGUAGE VARIANT · landing screen, picker tweaks, gate sub
   ══════════════════════════════════════════════════════════════════════ */

.land-lang {
  position: absolute;
  inset: 0;
  background: var(--cream);
  display: flex;
  flex-direction: column;
  padding: 22px 22px 28px;
  cursor: pointer;
  outline: none;
  overflow: hidden;
}
.land-lang:focus-visible { box-shadow: inset 0 0 0 2px var(--accent); }

.land-lang__wordmark {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
  align-self: flex-start;
}

.land-lang__hero {
  flex: 0 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin: 28px 0 24px;
  height: 200px;
  position: relative;
}
.land-lang__bud {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  animation: landLangBudIn .7s cubic-bezier(.34,1.56,.64,1) backwards;
}
.land-lang__bud--ash    { animation-delay: 60ms; }
.land-lang__bud--pearl  { animation-delay: 180ms; }
.land-lang__bud--sprout { animation-delay: 300ms; }
@keyframes landLangBudIn {
  from { opacity: 0; transform: translateY(18px) scale(.85); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.land-lang__bud img {
  width: 100%;
  max-width: 130px;
  height: 100%;
  max-height: 180px;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 6px 12px rgba(60,40,20,.12));
}
.land-lang__flag {
  position: absolute;
  top: -4px;
  left: 50%;
  transform: translateX(-50%);
  font-size: 28px;
  background: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 14px rgba(60,40,20,.18);
  animation: landLangFlagBob 3s ease-in-out infinite;
  z-index: 2;
}
.land-lang__bud--pearl  .land-lang__flag { animation-delay: .4s; }
.land-lang__bud--sprout .land-lang__flag { animation-delay: .8s; }
@keyframes landLangFlagBob {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50%      { transform: translateX(-50%) translateY(-6px); }
}

.land-lang__copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 12px;
  padding: 0 4px;
}
.land-lang__title {
  font-family: var(--ff-body);
  font-weight: 700;
  font-size: 28px;
  line-height: 1.15;
  letter-spacing: -0.025em;
  color: var(--ink);
  margin: 0;
  text-wrap: balance;
}
.land-lang__sub {
  font-family: var(--ff-body);
  font-size: 15px;
  line-height: 1.45;
  color: var(--ink-soft);
  margin: 0;
  text-wrap: pretty;
  max-width: 320px;
  align-self: center;
}
.land-lang__cta {
  margin-top: 14px;
  align-self: center;
  background: var(--accent);
  color: #fff;
  font-family: var(--ff-body);
  font-weight: 600;
  font-size: 17px;
  padding: 16px 40px;
  border-radius: 999px;
  box-shadow: 0 10px 26px -10px rgba(255,107,74,.6);
  animation: landLangCtaPulse 2.4s ease-in-out infinite;
}
@keyframes landLangCtaPulse {
  0%, 100% { transform: scale(1); }
  50%      { transform: scale(1.04); }
}
.land-lang__micro {
  font-family: var(--ff-body);
  font-size: 13px;
  color: var(--ink-faint);
  margin-top: 4px;
}

.land-lang__trust {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
  font-family: var(--ff-body);
  font-size: 12px;
  color: var(--ink-faint);
  letter-spacing: .01em;
  padding-top: 18px;
}
.land-lang__trust span:first-child { font-weight: 600; color: var(--ink-soft); }

.land-lang__legacy { position: absolute; visibility: hidden; pointer-events: none; }

@media (max-height: 720px) {
  .land-lang__hero { height: 160px; margin: 16px 0 14px; }
  .land-lang__title { font-size: 24px; }
  .land-lang__sub { font-size: 14px; }
}
