*,
*::before,
*::after {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}
html,
body {
  overflow-x: clip;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 400 17px / 1.55 var(--body);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
img {
  max-width: 100%;
  height: auto;
  display: block;
}
button {
  font: inherit;
  color: inherit;
  cursor: pointer;
}
a {
  color: inherit;
}
[hidden] {
  display: none !important;
}
.sr {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}
.skip {
  position: absolute;
  left: -999px;
  top: 8px;
  background: var(--ink);
  color: var(--white);
  padding: 8px 14px;
  border-radius: var(--pill);
  z-index: 99;
}
.skip:focus {
  left: 8px;
}
:focus-visible {
  outline: 3px solid var(--purple);
  outline-offset: 3px;
  border-radius: 8px;
}
.wrap {
  max-width: var(--wrap);
  margin: 0 auto;
  padding: 0 var(--s5);
}

/* type */
.h1,
.h2,
h3 {
  font-family: var(--display);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  color: var(--ink);
}
.h1 {
  font-size: var(--t-h1);
  line-height: 0.98;
}
.h2 {
  font-size: var(--t-h2);
  line-height: 1;
  max-width: 18ch;
}
.accent {
  color: var(--purple);
  display: block;
}
.lead {
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 34ch;
  margin: var(--s5) 0 0;
}
.sub {
  font-size: var(--t-lead);
  color: var(--muted);
  max-width: 40ch;
  margin: var(--s4) 0 0;
}
.eyebrow {
  font: 800 0.85rem / 1 var(--body);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--purple);
  margin: 0 0 var(--s4);
}
.light {
  color: var(--white) !important;
}
.sub.light {
  color: #e4d5fbcc !important;
}
.eyebrow.light {
  color: var(--yellow) !important;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--purple);
  color: var(--white);
  border: 0;
  border-radius: var(--pill);
  padding: 16px 28px;
  font: 800 1.05rem / 1 var(--body);
  text-decoration: none;
  box-shadow: var(--sh-btn);
  transition:
    transform 0.15s var(--ease),
    box-shadow 0.15s var(--ease);
  white-space: nowrap;
}
.btn:hover {
  transform: translateY(-2px);
  box-shadow:
    0 7px 0 var(--purple-deep),
    0 16px 30px #682bdc40;
}
.btn:active {
  transform: translateY(4px);
  box-shadow: 0 1px 0 var(--purple-deep);
}
.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.btn-sm {
  padding: 11px 18px;
  font-size: 0.92rem;
  box-shadow: 0 4px 0 var(--purple-deep);
}
.btn-light {
  background: var(--white);
  color: var(--purple-2);
  box-shadow: 0 5px 0 var(--lav);
}
.btn-light:hover {
  box-shadow: 0 7px 0 var(--lav);
}
.btn-light img {
  width: 22px;
  height: auto;
}
.link {
  background: none;
  border: 0;
  padding: 0;
  font-weight: 800;
  color: var(--purple-2);
  text-decoration: underline;
  text-underline-offset: 4px;
}
.pill-tag {
  display: inline-flex;
  align-items: center;
  gap: var(--s2);
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  margin: 0 0 var(--s5);
  box-shadow: var(--sh-card);
}
.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px #22a86126;
}
.replay {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.88rem;
  color: var(--purple-2);
}
.replay.light {
  background: #ffffff1a;
  border-color: #ffffff40;
  color: var(--white);
}

/* nav */
.nav {
  position: fixed;
  top: 14px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  display: flex;
  align-items: center;
  gap: var(--s5);
  background: #ffffffe6;
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 8px 8px 8px 20px;
  box-shadow: var(--sh-card);
  width: min(980px, calc(100% - 24px));
  justify-content: space-between;
}
.nav-logo img {
  height: 30px;
  width: auto;
}
.nav-links {
  display: flex;
  gap: var(--s5);
  font-weight: 800;
  font-size: 0.95rem;
}
.nav-links a {
  text-decoration: none;
  color: var(--muted);
}
.nav-links a:hover {
  color: var(--purple);
}

/* demo framing */
.demo {
  position: relative;
}
.demo-tag {
  position: absolute;
  top: -30px;
  left: 0;
  margin: 0;
  font: 800 0.74rem / 1 var(--body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: 6px;
}
.demo-tag::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--purple);
}
.phone {
  position: relative;
  background: var(--ink-2);
  border-radius: 34px;
  padding: 7px;
  box-shadow: var(--sh-float);
}
.phone .screen {
  width: 100%;
  height: auto;
  border-radius: 27px;
}
.phone::after {
  content: "";
  position: absolute;
  top: 13px;
  left: 50%;
  transform: translateX(-50%);
  width: 28%;
  height: 4.5%;
  max-height: 22px;
  background: var(--ink-2);
  border-radius: var(--pill);
  opacity: 0;
}

/* ===== HERO ===== */
.hero {
  position: relative;
  padding: 150px 0 var(--s8);
  overflow: hidden;
  background: radial-gradient(1100px 600px at 78% 30%, var(--lav-2), transparent 70%), var(--paper);
}
.hero-grid {
  display: grid;
  grid-template-columns: 0.92fr 1.18fr;
  gap: var(--s6);
  max-width: 1280px;
  align-items: center;
  position: relative;
  z-index: 2;
}
.hero-cta {
  display: flex;
  align-items: center;
  gap: var(--s5);
  margin-top: var(--s6);
  flex-wrap: wrap;
}
.hero-island {
  display: none;
  position: absolute;
  left: -12%;
  bottom: -30%;
  width: 40%;
  max-width: 640px;
  opacity: 0.1;
  z-index: 0;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(180deg, #000 40%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 40%, transparent 78%);
}
.console {
  display: grid;
  grid-template-columns: 1fr 118px 1fr;
  align-items: center;
  gap: var(--s3);
  padding: var(--s5) var(--s5) var(--s4);
  background:
    linear-gradient(180deg, #ffffff00 55%, #2a146033),
    url(assets/sky.webp) center / cover;
  border: 4px solid var(--white);
  border-radius: var(--r-xl);
  box-shadow: var(--sh-float);
}
.console .demo-tag {
  top: -26px;
  left: var(--s5);
}
.c-col {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-width: 0;
}
.c-label {
  margin: 0;
  font-weight: 800;
  font-size: 0.82rem;
  color: var(--ink);
  background: #ffffffd9;
  border-radius: var(--pill);
  padding: 3px 10px 3px 3px;
  align-self: flex-start;
  display: flex;
  gap: 6px;
  align-items: center;
}
.c-label span {
  background: var(--ink);
  color: var(--white);
  border-radius: var(--pill);
  padding: 3px 9px;
  font-size: 0.74rem;
}
.c-kid .c-label span {
  background: var(--purple);
}
.hot {
  position: absolute;
  border: 0;
  background: transparent;
  border-radius: 14px;
  padding: 0;
  transition:
    background 0.2s,
    box-shadow 0.2s;
}
.hot:hover {
  background: #7528ee14;
  box-shadow: inset 0 0 0 2px #7528ee80;
}
.hot.pulse {
  animation: hotpulse 1.6s var(--ease) infinite;
}
@keyframes hotpulse {
  0%,
  100% {
    box-shadow: inset 0 0 0 0 #7528ee00;
  }
  50% {
    box-shadow: inset 0 0 0 3px #7528ee90;
  }
}
.hot .stamp {
  position: absolute;
  right: -6px;
  top: -8px;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  font: 800 1.25rem / 1 var(--display);
  color: var(--white);
  opacity: 0;
  transform: scale(0.4);
  transition: all 0.35s var(--spring);
}
.hot .stamp::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 4px 0 #17814a;
  z-index: -1;
}
.hot.done {
  background: #22a8611f;
  box-shadow: inset 0 0 0 2px var(--green);
}
.hot.done .stamp {
  opacity: 1;
  transform: scale(1);
}
.pod {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--s2);
  text-align: center;
}
.pod-egg {
  position: relative;
  width: 112px;
  height: 112px;
  display: grid;
  place-items: center;
  background: radial-gradient(circle, #ffffffe6 52%, #ffffff00 53%);
}
.ring {
  position: absolute;
  inset: 0;
  transform: rotate(-90deg);
}
.ring circle {
  fill: none;
  stroke-width: 8;
}
.ring-bg {
  stroke: var(--lav);
}
.ring-fg {
  stroke: var(--purple);
  stroke-linecap: round;
  stroke-dasharray: 339.3;
  stroke-dashoffset: 339.3;
  transition: stroke-dashoffset 0.7s var(--ease);
}
.pod-egg .egg-img,
.pod-egg .egg-cracks {
  position: absolute;
  width: 64px;
  height: auto;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
}
.egg-cracks {
  opacity: 0;
  transition: opacity 0.3s;
}
.pod.crack1 .egg-cracks {
  opacity: 0.55;
}
.pod.crack2 .egg-cracks {
  opacity: 1;
}
.pod.shake .pod-egg {
  animation: shake 0.5s;
}
@keyframes shake {
  0%,
  100% {
    transform: rotate(0);
  }
  20% {
    transform: rotate(-9deg);
  }
  40% {
    transform: rotate(8deg);
  }
  60% {
    transform: rotate(-6deg);
  }
  80% {
    transform: rotate(4deg);
  }
}
.pod-feron {
  position: absolute;
  width: 96px;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(0);
  transition: transform 0.5s var(--spring);
}
.pod.hatched .egg-img,
.pod.hatched .egg-cracks {
  opacity: 0;
  transition: opacity 0.2s;
}
.pod.hatched .pod-feron {
  transform: translate(-50%, -50%) scale(1);
}
.pod-text {
  margin: 0;
  font-size: 0.76rem;
  line-height: 1.3;
  color: var(--muted);
  background: var(--white);
  border-radius: var(--r-s);
  padding: 6px 8px;
  box-shadow: var(--sh-card);
}
.pod-text b {
  display: block;
  color: var(--ink);
  font-size: 0.82rem;
}
.fly {
  position: fixed;
  z-index: 60;
  width: 26px;
  height: auto;
  pointer-events: none;
  transition:
    transform 0.7s cubic-bezier(0.5, -0.3, 0.4, 1),
    opacity 0.2s;
}
.toast {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 8%;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: 14px;
  padding: 9px 12px;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 10px 30px #2e0b6140;
  transform: translateY(-140%);
  opacity: 0;
  transition: all 0.45s var(--spring);
}
.toast.show {
  transform: none;
  opacity: 1;
}
.toast img {
  width: 18px;
  height: auto;
}
.hatch-sheet {
  position: absolute;
  inset: 7px;
  border-radius: 27px;
  background: linear-gradient(180deg, var(--purple-night), var(--purple-2));
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--white);
  text-align: center;
  opacity: 0;
  pointer-events: none;
  transform: scale(0.92);
  transition: all 0.45s var(--spring);
}
.hatch-sheet.show {
  opacity: 1;
  transform: none;
}
.hatch-sheet img {
  width: 72%;
  filter: drop-shadow(0 14px 24px #0006);
}
.hs-kicker {
  margin: 0;
  font: 800 0.72rem / 1 var(--body);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--yellow);
}
.hs-name {
  margin: 0;
  font: 800 1.7rem / 1 var(--display);
}
.hs-btn {
  margin-top: 6px;
  background: var(--yellow);
  color: var(--ink);
  border-radius: var(--pill);
  padding: 8px 14px;
  font-weight: 800;
  font-size: 0.78rem;
  box-shadow: 0 3px 0 #d9a300;
}
.hand-note {
  position: absolute;
  left: 50%;
  top: 14px;
  translate: -50% 0;
  color: var(--purple-deep);
  background: var(--white);
  padding: 5px 11px 5px 9px;
  border-radius: 999px;
  box-shadow: 0 4px 14px #2a146026;
  font: 700 0.85rem / 1 var(--display);
  display: flex;
  align-items: center;
  gap: 5px;
  pointer-events: none;
  z-index: 3;
  opacity: 0;
  transition: opacity 0.4s;
}
.hand-note svg {
  width: 13px;
  height: 13px;
}
.console.try[data-mode="auto"] .hand-note {
  opacity: 1;
}
.replay#consoleReplay {
  position: absolute;
  right: var(--s5);
  bottom: -46px;
}
.demo-foot {
  grid-column: 1 / -1;
  justify-self: center;
  margin: var(--s2) 0 0;
  text-align: center;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.9rem;
  background: #ffffffe6;
  border-radius: var(--pill);
  padding: 6px 14px;
}
.ghost {
  position: absolute;
  left: 0;
  top: 0;
  z-index: 70;
  width: 30px;
  height: 30px;
  pointer-events: none;
  transition:
    transform 0.42s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s;
  opacity: 0;
}
.ghost.on {
  opacity: 1;
}
.ghost svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 3px 4px #0004);
}
.ghost.tap svg {
  transform: scale(0.82);
  transition: transform 0.12s;
}

/* ===== sections ===== */
.sec {
  padding: var(--s9) 0;
}
.band {
  padding: var(--s9) 0;
  background: radial-gradient(900px 500px at 80% 0%, #8c4bf5, transparent 70%), var(--purple-2);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

/* HOW */
.how-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: var(--s7);
  margin-top: var(--s8);
  align-items: center;
}
.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.step {
  width: 100%;
  display: flex;
  gap: var(--s4);
  align-items: flex-start;
  text-align: left;
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  padding: var(--s4) var(--s5);
  transition: all 0.25s var(--ease);
  position: relative;
  overflow: hidden;
}
.step b {
  display: block;
  font: 800 1.25rem / 1.15 var(--display);
}
.step small {
  display: block;
  color: var(--muted);
  font-size: 0.95rem;
  margin-top: 4px;
}
.step .n {
  flex: none;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lav-2);
  color: var(--purple);
  font: 800 1.1rem / 1 var(--display);
}
.step.is-on {
  border-color: var(--purple);
  box-shadow: 0 5px 0 var(--lav);
}
.step.is-on .n {
  background: var(--purple);
  color: var(--white);
}
.step::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: var(--purple);
}
.step.is-on.timing::after {
  animation: steptime 4.5s linear forwards;
}
@keyframes steptime {
  to {
    width: 100%;
  }
}
.stage {
  position: relative;
  height: 560px;
  display: grid;
  place-items: center;
}
.stage-bg {
  position: absolute;
  inset: 8% 4%;
  border-radius: var(--r-xl);
  background: var(--lav);
}
.how-panel {
  position: absolute;
  inset: 0;
  margin: 0;
  display: grid;
  place-items: center;
  opacity: 0;
  transform: translateY(16px) scale(0.97);
  transition: all 0.45s var(--ease);
  pointer-events: none;
}
.how-panel.is-on {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}
.how-panel .phone {
  width: 250px;
}
.chip {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border-radius: var(--pill);
  padding: 8px 14px 8px 8px;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: var(--sh-card);
  white-space: nowrap;
}
.chip img {
  width: 30px;
  height: 30px;
  object-fit: contain;
}
.chip.c1 {
  left: 2%;
  top: 22%;
}
.chip.c2 {
  right: 2%;
  bottom: 20%;
}
.chip.ok {
  background: var(--green);
  color: var(--white);
  padding: 10px 16px;
}
.evo {
  display: flex;
  align-items: center;
  gap: var(--s3);
  position: relative;
  z-index: 1;
}
.evo-i {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border-radius: var(--r-l);
  padding: var(--s4);
  box-shadow: var(--sh-card);
}
.evo-i img {
  width: 110px;
  height: 110px;
  object-fit: contain;
}
.evo-i b {
  font: 800 1rem / 1 var(--display);
}
.evo-ar {
  font: 800 1.6rem / 1 var(--display);
  color: var(--purple);
}

/* SCHOOL */
.school {
  background: linear-gradient(180deg, var(--paper), var(--white));
}
.school-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.3fr 0.7fr;
  gap: var(--s5);
  margin-top: var(--s8);
  align-items: start;
}
.mini-k {
  margin: 0 0 var(--s3);
  font: 800 0.78rem / 1 var(--body);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--muted);
}
.helper,
.lesson {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--s5);
  box-shadow: var(--sh-card);
}
.helper-q {
  font: 800 1.35rem / 1.15 var(--display);
  margin: 0 0 var(--s4);
}
.opts {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.opt {
  text-align: left;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
  transition: all 0.2s;
}
.opt b {
  display: block;
  font-weight: 800;
}
.opt small {
  color: var(--muted);
}
.opt.is-on {
  border-color: var(--purple);
  background: var(--lav-2);
}
.sent {
  margin: var(--s4) 0 0;
  font-size: 0.88rem;
  color: var(--muted);
}
.sent span {
  background: var(--mint);
  color: var(--green);
  font-weight: 800;
  border-radius: var(--pill);
  padding: 3px 9px;
  margin-right: 4px;
}
.sent.flash {
  animation: flash 0.6s;
}
@keyframes flash {
  50% {
    transform: scale(1.04);
  }
}
.lesson-top {
  display: flex;
  flex-direction: column;
  gap: var(--s2);
}
.acts {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}
.act {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--pill);
  padding: 6px 12px 6px 8px;
  font-weight: 800;
  font-size: 0.88rem;
}
.act img {
  width: 22px;
  height: auto;
}
.act.is-on {
  border-color: var(--purple);
  color: var(--purple-2);
  background: var(--lav-2);
}
.q-card {
  margin-top: var(--s4);
  min-height: 250px;
  background: var(--lav-2);
  border-radius: var(--r-m);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.q-k {
  margin: 0;
  font-weight: 800;
  font-size: 0.8rem;
  color: var(--purple);
}
.q-p {
  margin: 0;
  font: 800 1.6rem / 1.15 var(--display);
}
.q-opts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(70px, 1fr));
  gap: var(--s2);
}
.q-o {
  background: var(--white);
  border: 2px solid var(--line);
  border-radius: var(--r-s);
  padding: 14px 8px;
  font: 800 1.3rem / 1 var(--display);
  box-shadow: 0 4px 0 var(--line);
  transition: transform 0.1s;
}
.q-o:active {
  transform: translateY(3px);
  box-shadow: 0 1px 0 var(--line);
}
.q-o.right {
  background: var(--mint);
  border-color: var(--green);
  box-shadow: 0 4px 0 #9fdcbc;
}
.q-o.wrong {
  background: #ffe9e2;
  border-color: var(--coral);
  animation: shake 0.4s;
}
.q-fb {
  margin: 0;
  font-weight: 700;
  min-height: 1.5em;
}
.q-fb.ok {
  color: var(--green);
}
.q-fb.no {
  color: #c4462a;
}
.q-next {
  align-self: flex-start;
}
.flip {
  perspective: 900px;
  height: 150px;
  cursor: pointer;
  border: 0;
  background: none;
  padding: 0;
  width: 100%;
}
.flip-in {
  position: relative;
  width: 100%;
  height: 100%;
  transition: transform 0.55s var(--ease);
  transform-style: preserve-3d;
}
.flip.on .flip-in {
  transform: rotateY(180deg);
}
.flip-f,
.flip-b {
  position: absolute;
  inset: 0;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
  border-radius: var(--r-m);
  display: grid;
  place-items: center;
  padding: var(--s4);
  text-align: center;
  font: 800 1.3rem / 1.2 var(--display);
  background: var(--white);
  box-shadow: 0 4px 0 var(--line);
}
.flip-b {
  transform: rotateY(180deg);
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 4px 0 var(--purple-deep);
}
.lesson-foot {
  display: flex;
  align-items: center;
  gap: var(--s4);
  margin-top: var(--s4);
}
.xp {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}
.xp-l {
  font: 800 0.8rem / 1 var(--body);
  color: var(--purple);
}
.xp-bar {
  flex: 1;
  height: 12px;
  border-radius: var(--pill);
  background: var(--lav);
  overflow: hidden;
}
.xp-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, var(--purple), #a274f7);
  border-radius: inherit;
  transition: width 0.6s var(--ease);
}
.chest {
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--muted);
  transition: transform 0.3s var(--spring);
}
.chest img {
  width: 54px;
  height: auto;
  filter: grayscale(0.6) opacity(0.6);
  transition: filter 0.3s;
}
.chest.open {
  transform: scale(1.15);
}
.chest.open img {
  filter: none;
  animation: shake 0.5s;
}
.phone-map {
  width: 100%;
  max-width: 230px;
  justify-self: center;
  margin-top: var(--s5);
}

/* FERONS */
.hatchery {
  margin-top: var(--s8);
  background: #ffffff12;
  border: 1px solid #ffffff2a;
  border-radius: var(--r-xl);
  padding: var(--s7) var(--s6);
  min-height: 420px;
  display: grid;
}
.demo-tag.light::before {
  background: var(--yellow);
}
.hx-step {
  grid-area: 1 / 1;
  opacity: 0;
  pointer-events: none;
  transform: translateY(10px);
  transition: all 0.4s var(--ease);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--s7);
  flex-wrap: wrap;
}
.hx-step.is-on {
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
.hx-choose {
  flex-direction: column;
  gap: var(--s5);
}
.hx-k {
  margin: 0;
  font: 800 1.35rem / 1.2 var(--display);
  text-align: center;
}
.hx-k b {
  color: var(--yellow);
}
.eggs {
  display: flex;
  gap: var(--s6);
}
.egg-btn {
  border: 0;
  background:
    radial-gradient(ellipse 42% 9% at 50% 90%, #1b143066, transparent 100%),
    radial-gradient(circle at 50% 55%, #ffffff26, transparent 62%);
  cursor: pointer;
  padding: var(--s4);
  border-radius: var(--r-l);
  transition: transform 0.25s var(--spring);
}
.egg-btn img {
  width: 120px;
  height: auto;
}
.egg-btn:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 2px;
}
.egg-btn:hover {
  transform: translateY(-8px) rotate(-4deg);
}
.egg-btn:nth-child(2) {
  animation-delay: 0.3s;
}
.big-egg {
  position: relative;
  width: 200px;
}
.big-egg img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 20px 30px #0006);
}
.big-egg .egg-cracks {
  position: absolute;
  inset: 0;
}
.big-egg.c1 .egg-cracks {
  opacity: 0.5;
}
.big-egg.c2 .egg-cracks {
  opacity: 1;
}
.big-egg.shake {
  animation: shake 0.5s;
}
.grow-side,
.meet-side {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
  align-items: flex-start;
  max-width: 360px;
}
.grow-side .hx-k,
.meet-side .hx-k {
  text-align: left;
}
.sess {
  display: flex;
  gap: 8px;
}
.sess i {
  width: 46px;
  height: 12px;
  border-radius: var(--pill);
  background: #ffffff30;
  transition: background 0.3s;
}
.sess i.on {
  background: var(--yellow);
}
.grow-btns,
.care {
  display: flex;
  gap: var(--s3);
  flex-wrap: wrap;
}
.hx-note {
  margin: 0;
  color: #e4d5fbcc;
  font-weight: 700;
}
.meet-stage {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, #ffcd3555, transparent 68%);
  display: grid;
  place-items: center;
}
.meet-feron {
  width: 240px;
  height: auto;
  filter: drop-shadow(0 20px 30px #0006);
  transition:
    transform 0.5s var(--spring),
    filter 0.5s;
}
.meet-feron.pop {
  animation: pop 0.7s var(--spring);
}
@keyframes pop {
  0% {
    transform: scale(0.2) translateY(40px);
  }
  100% {
    transform: none;
  }
}
.meet-feron.fed {
  animation: bounce 0.6s;
}
@keyframes bounce {
  30% {
    transform: translateY(-22px) scale(1.04);
  }
  60% {
    transform: translateY(0) scale(0.98);
  }
}
.meet-feron.evo {
  filter: drop-shadow(0 0 30px var(--yellow)) brightness(1.15);
}
.meet-name {
  margin: 0;
  font: 800 3rem / 1 var(--display);
}
.collection {
  margin-top: var(--s7);
  text-align: center;
}
.col-k {
  font-weight: 800;
  margin: 0 0 var(--s4);
  color: var(--lav);
}
.col-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  justify-content: center;
  gap: var(--s4);
  flex-wrap: wrap;
}
.col-row li {
  width: 130px;
  background: #ffffff14;
  border: 1px solid #ffffff26;
  border-radius: var(--r-m);
  padding: var(--s3);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}
.col-row img {
  width: 96px;
  height: 96px;
  object-fit: contain;
}
.col-row b {
  font: 800 1rem / 1 var(--display);
}
.col-row li.got {
  background: #ffcd3530;
  border-color: var(--yellow);
}
.col-row li.locked img {
  opacity: 0.5;
}

/* REWARDS */
.rw-grid {
  display: grid;
  grid-template-columns: 1.4fr 0.6fr;
  gap: var(--s7);
  margin-top: var(--s8);
  align-items: center;
}
.rw-flow {
  display: flex;
  flex-direction: column;
  gap: var(--s4);
}
.rw-step {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  padding: var(--s5);
  box-shadow: var(--sh-card);
  transition: opacity 0.3s;
}
.rw-n {
  margin: 0 0 var(--s3);
  font: 800 1.15rem / 1.2 var(--display);
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.rw-n span {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  display: grid;
  place-items: center;
  font-size: 1rem;
}
.rw-n small {
  font: 700 0.82rem / 1 var(--body);
  color: var(--muted);
}
.chips {
  display: flex;
  gap: var(--s2);
  flex-wrap: wrap;
}
.rchip,
.hchip {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--paper);
  border: 2px solid var(--line);
  border-radius: var(--pill);
  padding: 7px 14px 7px 8px;
  font-weight: 800;
  font-size: 0.92rem;
  transition: all 0.2s;
}
.rchip img,
.hchip img {
  width: 28px;
  height: 28px;
  object-fit: contain;
}
.rchip {
  cursor: grab;
}
.rchip.is-on {
  border-color: var(--purple);
  background: var(--lav-2);
}
.hchip.drop {
  border-style: dashed;
  border-color: var(--purple);
  background: var(--lav-2);
  transform: scale(1.04);
}
.hchip.is-on {
  border-color: var(--green);
  background: var(--mint);
}
.rw-card {
  display: flex;
  align-items: center;
  gap: var(--s4);
  background: var(--yellow-2);
  border: 2px solid var(--yellow);
  border-radius: var(--r-m);
  padding: var(--s4);
  margin-bottom: var(--s4);
}
.rw-ico {
  width: 56px;
  height: 56px;
  object-fit: contain;
  flex: none;
}
.rw-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.rw-body b {
  font: 800 1.3rem / 1 var(--display);
}
.rw-body small {
  color: var(--muted);
  font-weight: 700;
}
.rw-bar {
  height: 12px;
  border-radius: var(--pill);
  background: var(--white);
  overflow: hidden;
  border: 1px solid var(--line);
}
.rw-bar i {
  display: block;
  height: 100%;
  width: 0;
  background: #3ccf86;
  border-radius: inherit;
  transition: width 0.25s linear;
}
.rw-count {
  font: 800 1.1rem / 1 var(--display);
}
.ask {
  display: flex;
  align-items: center;
  gap: var(--s3);
  background: var(--ink);
  color: var(--white);
  border-radius: var(--r-m);
  padding: 12px 14px;
  margin-top: var(--s4);
  animation: slidein 0.45s var(--spring);
}
.ask img {
  width: 34px;
  height: 34px;
}
.ask p {
  margin: 0;
  flex: 1;
  font-size: 0.95rem;
}
@keyframes slidein {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
}
.rw-done {
  margin: var(--s4) 0 0;
  font: 800 1.3rem / 1 var(--display);
  color: var(--green);
  display: flex;
  gap: var(--s4);
  align-items: center;
}
.rw-done .link {
  font: 800 0.9rem / 1 var(--body);
}
.rw-phone {
  max-width: 260px;
  justify-self: center;
}

/* TRACK */
.track {
  background: var(--white);
}
.tr-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--s7);
  margin-top: var(--s8);
  align-items: center;
}
.seg {
  display: inline-flex;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--pill);
  padding: 5px;
}
.seg-b {
  border: 0;
  background: none;
  border-radius: var(--pill);
  padding: 10px 20px;
  font-weight: 800;
  color: var(--muted);
}
.seg-b.is-on {
  background: var(--purple);
  color: var(--white);
  box-shadow: 0 3px 0 var(--purple-deep);
}
.tr-note {
  margin: var(--s4) 0;
  color: var(--muted);
}
.tr-note b {
  color: var(--ink);
}
.notifs {
  list-style: none;
  margin: 0 0 var(--s4);
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  min-height: 300px;
}
.nt {
  display: flex;
  gap: var(--s3);
  align-items: center;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: var(--r-m);
  padding: 12px 14px;
  box-shadow: var(--sh-card);
  animation: slidein 0.5s var(--spring) both;
}
.nt img {
  width: 38px;
  height: 38px;
  object-fit: contain;
  flex: none;
}
.nt p {
  margin: 0;
  font-size: 0.95rem;
  line-height: 1.35;
}
.nt p b {
  display: block;
}
.nt small {
  color: var(--muted);
}
.tr-phones {
  position: relative;
  height: 600px;
}
.tp {
  position: absolute;
  width: 270px;
  left: 50%;
  top: 0;
  transition: all 0.5s var(--ease);
}
.tp[data-v="parent"] {
  transform: translateX(-40%) rotate(3deg);
  z-index: 2;
}
.tp[data-v="kid"] {
  transform: translateX(-80%) rotate(-5deg) scale(0.9);
  z-index: 1;
  opacity: 0.6;
}
.tr-grid.kid .tp[data-v="kid"] {
  transform: translateX(-50%) rotate(-2deg);
  z-index: 2;
  opacity: 1;
}
.tr-grid.kid .tp[data-v="parent"] {
  transform: translateX(-10%) rotate(5deg) scale(0.9);
  z-index: 1;
  opacity: 0.6;
}

/* ANGLES */
.angles {
  padding-top: 0;
}
.marquee {
  overflow: hidden;
  background: var(--yellow);
  padding: 14px 0;
  margin-bottom: var(--s9);
  transform: rotate(-1.2deg);
  width: 104%;
  margin-left: -2%;
}
.mq {
  display: flex;
  gap: var(--s6);
  width: max-content;
  animation: mq 34s linear infinite;
}
.mq span {
  font: 800 1.3rem / 1 var(--display);
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: var(--s6);
}
.mq span::after {
  content: "✦";
  color: var(--purple);
}
@keyframes mq {
  to {
    transform: translateX(-50%);
  }
}
.ang {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--s4);
  margin-top: var(--s7);
}
.a-card {
  border-radius: var(--r-l);
  padding: var(--s5);
  display: flex;
  flex-direction: column;
  gap: var(--s2);
  border: 1px solid var(--line);
}
.a-card img {
  width: 64px;
  height: 64px;
  object-fit: contain;
  margin-bottom: var(--s2);
}
.a-card h3 {
  font-size: var(--t-h3);
  line-height: 1.1;
}
.a-card p {
  margin: 0;
  color: var(--muted);
}
.t1 {
  background: var(--lav-2);
}
.t2 {
  background: var(--yellow-2);
}
.t3 {
  background: var(--lime);
}
.t4 {
  background: var(--mint);
}

/* FAQ */
.faq-wrap {
  display: grid;
  grid-template-columns: 0.7fr 1.3fr;
  gap: var(--s7);
}
.qa details {
  border-bottom: 1px solid var(--line);
  padding: var(--s4) 0;
}
.qa summary {
  cursor: pointer;
  list-style: none;
  font: 800 1.25rem / 1.25 var(--display);
  display: flex;
  justify-content: space-between;
  gap: var(--s4);
}
.qa summary::-webkit-details-marker {
  display: none;
}
.qa summary::after {
  content: "+";
  color: var(--purple);
  font-size: 1.6rem;
  line-height: 1;
  transition: transform 0.2s;
}
.qa details[open] summary::after {
  transform: rotate(45deg);
}
.qa p {
  margin: var(--s3) 0 0;
  color: var(--muted);
  max-width: 56ch;
}

/* CTA */
.cta {
  padding: var(--s9) 0 var(--s9);
}
.cta-card {
  position: relative;
  background: var(--white);
  color: var(--ink);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s6);
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 0 var(--purple-deep);
}
.cta-card .h2 {
  margin: 0 auto;
  max-width: 16ch;
}
.cta-feron {
  position: absolute;
  width: 190px;
  top: -118px;
  right: 8%;
  filter: drop-shadow(0 16px 24px #0004);
}
.foot {
  padding: var(--s6) 0;
  background: var(--paper);
}
.foot-in {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: var(--s4);
  flex-wrap: wrap;
  color: var(--muted);
  font-size: 0.9rem;
}
.foot img {
  height: 28px;
  width: auto;
}
.foot p {
  margin: 0;
}

/* ===== responsive ===== */
@media (max-width: 1100px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: var(--s8);
  }
  .hero-copy {
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .lead {
    margin-left: auto;
    margin-right: auto;
  }

  .console {
    max-width: 720px;
    margin: 0 auto;
    width: 100%;
  }
  .school-grid {
    grid-template-columns: 1fr 1.3fr;
  }
  .phone-map {
    display: none;
  }
  .ang {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 860px) {
  .nav-links {
    display: none;
  }
  .how-grid,
  .rw-grid,
  .tr-grid,
  .school-grid,
  .faq-wrap {
    grid-template-columns: 1fr;
  }
  .stage {
    height: 520px;
  }
  .rw-phone {
    display: none;
  }
  .tr-phones {
    height: 540px;
  }
  .tp {
    width: 240px;
  }
}
@media (max-width: 640px) {
  body {
    font-size: 16px;
  }
  .wrap {
    padding: 0 var(--s4);
  }
  .hero {
    padding: 92px 0 var(--s7);
  }
  .hero-grid {
    gap: var(--s7);
  }
  .pill-tag {
    margin-bottom: var(--s4);
  }
  .lead {
    margin-top: var(--s4);
    font-size: 1.02rem;
  }
  .hero-cta {
    margin-top: var(--s5);
    gap: var(--s4);
  }
  .hero-cta .link {
    display: none;
  }
  .sec,
  .band {
    padding: var(--s8) 0;
  }
  .pill-tag {
    font-size: 0.8rem;
  }
  .console {
    grid-template-columns: 1fr 1fr;
    padding: var(--s3);
    gap: var(--s2);
    border-radius: var(--r-l);
  }
  .console .demo-tag {
    left: var(--s3);
  }
  .pod {
    grid-column: 1 / -1;
    grid-row: 2;
    flex-direction: row;
    justify-content: center;
    text-align: left;
    gap: var(--s3);
  }
  .pod-egg {
    width: 92px;
    height: 92px;
  }
  .pod-egg .egg-img,
  .pod-egg .egg-cracks {
    width: 50px;
  }
  .pod-feron {
    width: 76px;
  }
  .c-parent {
    grid-column: 1;
    grid-row: 1;
  }
  .c-kid {
    grid-column: 2;
    grid-row: 1;
  }
  .phone {
    border-radius: 24px;
    padding: 5px;
  }
  .phone .screen {
    border-radius: 20px;
  }
  .hatch-sheet {
    inset: 5px;
    border-radius: 20px;
  }
  .hs-name {
    font-size: 1.25rem;
  }
  .hs-btn {
    font-size: 0.68rem;
    padding: 6px 10px;
  }
  .toast {
    font-size: 0.68rem;
    padding: 7px 8px;
  }
  .replay#consoleReplay {
    position: static;
    grid-column: 1 / -1;
    justify-self: center;
  }
  .demo-foot {
    grid-row: 3;
  }
  .hot .stamp {
    width: 24px;
    height: 24px;
    font-size: 0.9rem;
    right: -4px;
    top: -6px;
  }
  .stage {
    height: 470px;
  }
  .how-panel .phone {
    width: 210px;
  }
  .chip {
    font-size: 0.8rem;
  }
  .chip.c1 {
    left: 0;
    top: 12%;
  }
  .chip.c2 {
    right: 0;
    bottom: 10%;
  }
  .evo {
    gap: 6px;
  }
  .evo-i {
    padding: var(--s2);
  }
  .evo-i img {
    width: 72px;
    height: 72px;
  }
  .evo-ar {
    font-size: 1.1rem;
  }
  .hatchery {
    padding: var(--s6) var(--s4);
  }
  .eggs {
    gap: var(--s2);
  }
  .egg-btn {
    padding: var(--s2);
  }
  .egg-btn img {
    width: 84px;
  }
  .hx-step {
    gap: var(--s5);
  }
  .big-egg {
    width: 150px;
  }
  .meet-stage {
    width: 200px;
    height: 200px;
  }
  .meet-feron {
    width: 180px;
  }
  .meet-name {
    font-size: 2.2rem;
  }
  .col-row li {
    width: 96px;
  }
  .col-row img {
    width: 70px;
    height: 70px;
  }
  .ang {
    grid-template-columns: 1fr;
  }
  .rw-card {
    gap: var(--s3);
  }
  .tr-phones {
    height: 470px;
  }
  .tp {
    width: 210px;
  }
  .cta-card {
    padding: var(--s8) var(--s4) var(--s6);
  }
  .cta-feron {
    width: 130px;
    top: -86px;
    right: 2%;
  }
  .marquee {
    margin-bottom: var(--s8);
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .mq {
    animation: none;
  }
}

/* ===== motion (claude) ===== */
/* Everything below is gated on .js-motion (set by motion.js) and on no-preference, so content is visible without JS and static under reduced motion. */
.mo-burst {
  position: fixed;
  width: 0;
  height: 0;
  z-index: 65;
  pointer-events: none;
}
.mo-xp {
  position: fixed;
  z-index: 65;
  pointer-events: none;
  opacity: 0;
  font: 800 0.95rem / 1 var(--display);
  color: var(--ink);
  background: var(--yellow);
  border-radius: var(--pill);
  padding: 5px 11px;
  box-shadow: 0 3px 0 #d9a300;
  white-space: nowrap;
}
@media (prefers-reduced-motion: no-preference) {
  /* reveals: hidden only while queued; the animation's own keyframes carry the start state */
  .js-motion .mo-r:not(.mo-in) {
    opacity: 0;
  }
  .js-motion .mo-r.mo-in {
    animation: mo-in-rise 0.75s var(--spring) var(--mo-d, 0ms) both;
  }
  .js-motion .mo-pop.mo-in {
    animation-name: mo-in-pop;
    animation-duration: 0.6s;
  }
  .js-motion .mo-phone.mo-in {
    animation-name: mo-in-phone;
    animation-duration: 1s;
    animation-timing-function: var(--ease);
  }
  .js-motion .mo-tilt.mo-in {
    animation-name: mo-in-tilt;
    animation-duration: 0.8s;
  }
  .js-motion .mo-peek.mo-in {
    animation-name: mo-in-peek;
    animation-duration: 1.1s;
    animation-timing-function: var(--ease);
    transform-origin: 50% 100%;
  }
  @keyframes mo-in-rise {
    from {
      opacity: 0;
      transform: translateY(28px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes mo-in-pop {
    from {
      opacity: 0;
      transform: scale(0.55) translateY(18px);
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes mo-in-phone {
    from {
      opacity: 0;
      transform: translateY(90px) rotate(4deg);
    }
    60% {
      opacity: 1;
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes mo-in-tilt {
    from {
      opacity: 0;
      transform: translateY(36px) rotate(var(--mo-rot, 0deg));
    }
    to {
      opacity: 1;
      transform: none;
    }
  }
  @keyframes mo-in-peek {
    0% {
      opacity: 0;
      transform: translateY(64px) scale(0.8, 0.7) rotate(-8deg);
    }
    30% {
      opacity: 1;
    }
    50% {
      transform: translateY(-16px) scale(0.94, 1.08) rotate(3deg);
    }
    72% {
      transform: translateY(4px) scale(1.05, 0.95) rotate(-1deg);
    }
    100% {
      opacity: 1;
      transform: none;
    }
  }

  /* hero entrance: the title and the demo (LCP candidates) stay static and fully opaque from
     the first paint. Only secondary copy rises, transform-only and without .js-motion, so it
     starts with the first frame and also runs without JavaScript. */
  [data-motion="hero"] .hero-copy > .lead,
  [data-motion="hero"] .hero-cta,
  .family-copy > .lead,
  .family-copy > .hero-cta,
  .family-copy > .preview-caption {
    animation: mo-hero-rise 0.7s var(--spring) 120ms both;
  }
  [data-motion="hero"] .hero-cta,
  .family-copy > .hero-cta {
    animation-delay: 220ms;
  }
  .family-copy > .preview-caption {
    animation-delay: 300ms;
  }
  @keyframes mo-hero-rise {
    from {
      transform: translateY(18px);
    }
    to {
      transform: none;
    }
  }
  .js-motion .mo-live .console .c-kid .phone {
    animation: mo-float 5.6s ease-in-out infinite;
  }
  @keyframes mo-float {
    0%,
    100% {
      transform: translateY(-4px);
    }
    50% {
      transform: translateY(4px);
    }
  }
  /* idle wobble uses `rotate` so it composes with app.js's transform-based shake */
  .js-motion .mo-live .pod:not(.hatched) .pod-egg {
    animation: mo-wobble 4.6s ease-in-out 2.4s infinite;
  }
  .js-motion .mo-live .pod.shake:not(.hatched) .pod-egg {
    animation:
      shake 0.5s,
      mo-wobble 4.6s ease-in-out 2.4s infinite;
  }
  @keyframes mo-wobble {
    0%,
    76%,
    100% {
      rotate: 0deg;
    }
    80% {
      rotate: -7deg;
    }
    84% {
      rotate: 6deg;
    }
    88% {
      rotate: -4deg;
    }
    92% {
      rotate: 2deg;
    }
  }
  @keyframes mo-draw {
    from {
      stroke-dashoffset: 1;
    }
    to {
      stroke-dashoffset: 0;
    }
  }
  .js-motion .hatch-sheet img.mo-squash {
    animation: mo-squash 0.9s var(--ease);
    transform-origin: 50% 90%;
  }
  @keyframes mo-squash {
    0% {
      transform: translateY(22px) scale(0.7);
    }
    28% {
      transform: translateY(-16px) scale(0.88, 1.14);
    }
    52% {
      transform: translateY(0) scale(1.14, 0.86);
    }
    70% {
      transform: scale(0.96, 1.05);
    }
    86% {
      transform: scale(1.02, 0.98);
    }
    100% {
      transform: none;
    }
  }

  /* bursts (sparkles / confetti) */
  .mo-burst i {
    position: absolute;
    left: -4px;
    top: -4px;
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--c);
    animation: mo-spark 0.85s cubic-bezier(0.15, 0.75, 0.3, 1) both;
  }
  .mo-burst i.star {
    left: -6px;
    top: -6px;
    width: 12px;
    height: 12px;
    border-radius: 0;
    clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  }
  .mo-burst.is-confetti i {
    left: -3px;
    top: -6px;
    width: 7px;
    height: 12px;
    border-radius: 2px;
    animation: mo-confetti 1.2s cubic-bezier(0.2, 0.7, 0.4, 1) both;
  }
  @keyframes mo-spark {
    0% {
      opacity: 1;
      transform: translate(0, 0) scale(0.3);
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(var(--x), var(--y)) scale(1) rotate(var(--r));
    }
  }
  @keyframes mo-confetti {
    0% {
      opacity: 1;
      transform: translate(0, 0) rotate(0);
    }
    55% {
      opacity: 1;
      transform: translate(var(--x), var(--y)) rotate(calc(var(--r) * 0.6));
    }
    100% {
      opacity: 0;
      transform: translate(calc(var(--x) * 1.15), calc(var(--y) + 46px)) rotate(var(--r));
    }
  }

  /* how: tilt toward the pointer (vars set on .stage by motion.js) */
  .js-motion .how-panel .phone {
    transform: perspective(900px) rotateX(var(--mo-rx, 0deg)) rotateY(var(--mo-ry, 0deg));
    transition: transform 0.35s var(--ease);
  }

  /* school */
  .mo-xp {
    animation: mo-xp 1.15s var(--ease) forwards;
  }
  @keyframes mo-xp {
    0% {
      opacity: 0;
      transform: translate(-50%, 6px) scale(0.6);
    }
    18% {
      opacity: 1;
      transform: translate(-50%, -8px) scale(1.08);
    }
    70% {
      opacity: 1;
    }
    100% {
      opacity: 0;
      transform: translate(-50%, -48px) scale(1);
    }
  }

  /* ferons */
  .js-motion .mo-live .egg-btn img {
    animation: mo-bob 2.9s ease-in-out infinite;
  }
  .js-motion .mo-live .egg-btn:nth-child(2) img {
    animation-delay: -1s;
  }
  .js-motion .mo-live .egg-btn:nth-child(3) img {
    animation-delay: -2s;
  }
  @keyframes mo-bob {
    0%,
    100% {
      transform: translateY(0) rotate(-2deg);
    }
    50% {
      transform: translateY(-9px) rotate(2deg);
    }
  }
  .js-motion .meet-stage {
    position: relative;
  }
  .js-motion .meet-feron {
    position: relative;
  }
  .js-motion .meet-stage::before {
    content: "";
    position: absolute;
    inset: -14%;
    border-radius: 50%;
    background: repeating-conic-gradient(#ffcd3542 0 8deg, transparent 8deg 24deg);
    -webkit-mask-image: radial-gradient(closest-side, #000 30%, transparent);
    mask-image: radial-gradient(closest-side, #000 30%, transparent);
    opacity: 0;
    transform: scale(0.6);
    transition:
      opacity 0.6s var(--ease),
      transform 0.9s var(--spring);
    pointer-events: none;
  }
  .js-motion .hx-meet.is-on .meet-stage::before {
    opacity: 1;
    transform: none;
    animation: mo-spin 30s linear infinite;
  }
  @keyframes mo-spin {
    to {
      rotate: 360deg;
    }
  }
  .js-motion .col-row li.mo-bounce {
    animation: mo-bounce 0.8s var(--spring);
  }
  @keyframes mo-bounce {
    0% {
      transform: none;
    }
    30% {
      transform: translateY(-16px) scale(1.08, 0.94);
    }
    55% {
      transform: translateY(0) scale(1.06, 0.94);
    }
    75% {
      transform: translateY(-4px) scale(0.98, 1.03);
    }
    100% {
      transform: none;
    }
  }

  /* track: parallax lives on `translate`, so keep app.js's transform swap transition off it */
  .js-motion .tp {
    transition:
      transform 0.5s var(--ease),
      opacity 0.5s var(--ease),
      z-index 0.5s;
  }

  /* angles */
  @media (hover: hover) {
    .js-motion .a-card:hover img {
      animation: mo-wiggle 0.7s var(--ease);
    }
  }
  @keyframes mo-wiggle {
    0%,
    100% {
      transform: none;
    }
    20% {
      transform: rotate(-12deg) scale(1.08);
    }
    40% {
      transform: rotate(10deg) scale(1.08);
    }
    60% {
      transform: rotate(-6deg);
    }
    80% {
      transform: rotate(3deg);
    }
  }

  /* cta: after the peek, a gentle bob on `translate` */
  .js-motion .mo-live .cta-feron:not(.mo-r) {
    animation: mo-cta-bob 3.6s ease-in-out infinite;
  }
  @keyframes mo-cta-bob {
    0%,
    100% {
      translate: 0 0;
      rotate: 0deg;
    }
    50% {
      translate: 0 -7px;
      rotate: 1.5deg;
    }
  }
}

/* autoplay speed: everything in the auto loop scales by --auto-k (set from AUTO_SLOW in app.js); user mode keeps native timings */
.console[data-mode="auto"] .ghost {
  transition:
    transform calc(0.42s * var(--auto-k, 1.2)) cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.25s;
}
.console[data-mode="auto"] .ghost.tap svg {
  transition-duration: calc(0.12s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .pod.shake:not(.hatched) .pod-egg {
  animation-duration: calc(0.5s * var(--auto-k, 1.2)), 4.6s;
}
.console[data-mode="auto"] .egg-cracks {
  transition-duration: calc(0.3s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .pod.hatched .egg-img,
.console[data-mode="auto"] .pod.hatched .egg-cracks {
  transition-duration: calc(0.2s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .pod-feron {
  transition-duration: calc(0.5s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .toast,
.console[data-mode="auto"] .hatch-sheet {
  transition-duration: calc(0.45s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .hatch-sheet img.mo-squash {
  animation-duration: calc(0.9s * var(--auto-k, 1.2));
}
.console[data-mode="auto"] .mo-burst i {
  animation-duration: calc(0.85s * var(--auto-k, 1.2));
}

/* ===================== v10 · live phone mini-screens ===================== */
.phone.live {
  container-type: inline-size;
}
.ms {
  position: relative;
  aspect-ratio: 440 / 952;
  width: 100%;
  border-radius: 27px;
  overflow: hidden;
  background: #f7f4fd;
  color: var(--ink);
  font-size: calc(100cqi / 26);
  line-height: 1.2;
  display: flex;
  flex-direction: column;
  gap: 0.7em;
  padding: 3.6em 1.2em 5.6em;
  text-align: left;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
}
.ms button {
  font: inherit;
  color: inherit;
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
}
.ms button:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
}
.ms img {
  display: block;
}
.ms b {
  font-weight: 800;
}
.ms small {
  font-size: 0.82em;
  color: var(--muted);
  font-weight: 700;
}
.ms .bar {
  display: block;
  height: 0.6em;
  border-radius: 9em;
  background: #e6def7;
  overflow: hidden;
}
.ms .bar em {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #a274f7);
  transition: width 0.6s var(--ease);
}
.ms::before {
  content: "";
  position: absolute;
  top: 1.1em;
  left: 50%;
  width: 30%;
  height: 1.5em;
  transform: translateX(-50%);
  background: var(--ink-2);
  border-radius: 9em;
  z-index: 3;
}
.bump {
  animation: ms-bump 0.45s var(--spring);
}
@keyframes ms-bump {
  40% {
    transform: scale(1.07);
  }
}
.ms-float {
  position: absolute;
  z-index: 9;
  transform: translate(-50%, 0);
  font: 800 1.15em / 1 var(--display);
  color: var(--purple-2);
  background: #fff;
  border-radius: 9em;
  padding: 0.3em 0.6em;
  box-shadow: 0 0.3em 0.8em #2921371f;
  pointer-events: none;
  animation: ms-float 1.05s var(--ease) forwards;
  white-space: nowrap;
}
.ms-float.gem {
  color: #1b8a5a;
}
.ms-float.heart {
  color: #e8466b;
  background: none;
  box-shadow: none;
  font-size: 2.4em;
}
.ms-float.heart.r {
  margin-left: 1.2em;
}
@keyframes ms-float {
  0% {
    opacity: 0;
    transform: translate(-50%, 0.4em) scale(0.7);
  }
  20% {
    opacity: 1;
    transform: translate(-50%, -0.6em) scale(1.05);
  }
  100% {
    opacity: 0;
    transform: translate(-50%, -4em);
  }
}
.ms-tabs {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: space-around;
  padding: 0.8em 0.6em 1.6em;
  background: #fff;
  border-top: 1px solid #ece6f7;
  font-size: 0.78em;
  font-weight: 800;
  color: #a49cb5;
}
.ms-tabs span {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.35em;
}
.ms-tabs i {
  width: 1.9em;
  height: 1.9em;
  border-radius: 0.6em;
  background: #e9e3f5;
}
.ms-tabs .on {
  color: var(--purple-2);
}
.ms-tabs .on i {
  background: var(--purple);
}
.ms-tabs.dark {
  background: #2a1f45;
  border: 0;
  color: #9f93c0;
}
.ms-tabs.dark i {
  background: #40335f;
}
.ms-tabs.dark .on {
  color: #fff;
}
.ms-tabs.dark .on i {
  background: var(--yellow);
}
.ms-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ms-h {
  font: 800 2.2em / 1 var(--display);
}
.ms-h2 {
  font: 800 1.9em / 1.05 var(--display);
}
.ms-av {
  width: 2.6em;
  height: 2.6em;
  border-radius: 50%;
  background: var(--purple);
  color: #fff;
  display: grid;
  place-items: center;
  font-weight: 800;
}
.ms-kids {
  display: flex;
  gap: 0.5em;
}
.ms-kids span {
  padding: 0.35em 1em;
  border-radius: 9em;
  background: #ebe5f7;
  font-weight: 800;
  font-size: 0.95em;
  color: var(--muted);
}
.ms-kids .on {
  background: var(--purple);
  color: #fff;
}
.ms-k,
.ms-ks {
  margin: 0.2em 0 0;
  font-weight: 800;
  font-size: 1.05em;
}
.ms-ks {
  color: var(--muted);
  font-size: 0.9em;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
/* habits */
.ms-streak {
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.7em 0.9em;
  box-shadow: 0 0.2em 0 #e9e3f5;
}
.ms-streak img {
  width: 2.2em;
}
.ms-streak b {
  font-size: 1.15em;
  white-space: nowrap;
}
.wk {
  display: flex;
  gap: 0.25em;
  margin-left: auto;
}
.wk em {
  font-style: normal;
  width: 1.7em;
  height: 1.7em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.75em;
  font-weight: 800;
  background: #efeaf8;
  color: #a49cb5;
  transition:
    background 0.3s,
    color 0.3s;
}
.wk em.on {
  background: #ffb02e;
  color: #fff;
}
.ms-hgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}
.ms-hc {
  position: relative;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.8em;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  box-shadow: 0 0.25em 0 #e6def7;
  border: 0.15em solid transparent !important;
  transition:
    border-color 0.25s,
    background 0.25s,
    transform 0.15s;
  min-height: 8.4em;
}
.ms-hc:active {
  transform: translateY(0.15em);
}
.ms-hc img {
  width: 2.6em;
  height: 2.6em;
  object-fit: contain;
}
.ms-hc b {
  font-size: 0.98em;
  line-height: 1.12;
}
.ms-hc .g {
  position: absolute;
  right: 0.6em;
  top: 0.7em;
  font-style: normal;
  font-weight: 800;
  font-size: 0.85em;
  color: #1b8a5a;
  display: flex;
  align-items: center;
  gap: 0.15em;
}
.ms-hc .g img {
  width: 1em;
  height: auto;
}
.ms-hc .ck {
  position: absolute;
  right: 0.5em;
  bottom: 0.5em;
  width: 2em;
  height: 2em;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ece6f7;
  color: transparent;
  font-weight: 900;
  transition: all 0.3s var(--spring);
}
.ms-hc.done {
  border-color: var(--green) !important;
  background: #eafaf2;
}
.ms-hc.done .ck {
  background: var(--green);
  color: #fff;
  transform: scale(1.12);
}
.ms-hc.add {
  border: 0.15em dashed #d4c9ee !important;
  background: transparent;
  box-shadow: none;
  align-items: center;
  justify-content: center;
  color: var(--purple);
}
.ms-hc.add span {
  font-size: 2em;
  font-weight: 800;
  line-height: 1;
}
.ms-goal {
  display: flex;
  gap: 0.7em;
  align-items: center;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.7em 0.9em;
  box-shadow: 0 0.2em 0 #e9e3f5;
}
.ms-goal img {
  width: 2.4em;
}
.ms-goal span {
  display: flex;
  flex-direction: column;
}
/* kid · your day */
.ms-kid {
  background: linear-gradient(180deg, #7c4ef0 0, #8f63f5 30%, #f7f4fd 30%);
}
.ms-ktop {
  display: flex;
  justify-content: space-between;
}
.kp {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: #ffffff2e;
  color: #fff;
  border-radius: 9em;
  padding: 0.35em 0.8em;
  font-weight: 800;
}
.kp img {
  width: 1.1em;
  height: auto;
}
.ms-chests {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #fff;
  border-radius: 1.3em;
  padding: 0.8em;
  box-shadow: 0 0.4em 1em #2a1f4526;
}
.kci {
  width: 3.6em;
}
.kci.pop {
  animation: ms-chest 0.7s var(--spring);
}
@keyframes ms-chest {
  20% {
    transform: rotate(-10deg) scale(1.1);
  }
  40% {
    transform: rotate(9deg) scale(1.15);
  }
  60% {
    transform: rotate(-5deg) scale(1.1);
  }
}
.ms-chests span {
  display: flex;
  flex-direction: column;
  flex: 1;
}
.kopen {
  background: var(--yellow) !important;
  font-weight: 800 !important;
  padding: 0.55em 1em !important;
  border-radius: 9em !important;
  box-shadow: 0 0.2em 0 #d9a514;
}
.kopen:disabled {
  background: #eee !important;
  box-shadow: none;
  color: #999 !important;
  cursor: default;
}
.ms-kk {
  margin: 0.3em 0 0;
  font: 800 1.6em / 1 var(--display);
}
.ms-paths {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}
.pc {
  background: #fff !important;
  border-radius: 1.1em !important;
  padding: 0.7em !important;
  display: flex;
  flex-direction: column;
  gap: 0.4em;
  box-shadow: 0 0.25em 0 #e6def7;
}
.pc img {
  width: 2.6em;
  height: 2.6em;
  object-fit: contain;
}
.pc b {
  font-size: 0.95em;
  line-height: 1.1;
  min-height: 2.2em;
}
.pc i {
  display: block;
  height: 0.5em;
  border-radius: 9em;
  background: #ece6f7;
  overflow: hidden;
}
.pc em {
  display: block;
  height: 100%;
  background: var(--green);
  border-radius: inherit;
  transition: width 0.5s var(--ease);
}
.ms-qst {
  display: flex !important;
  align-items: center;
  gap: 0.7em;
  background: #fff !important;
  border-radius: 1.1em !important;
  padding: 0.6em 0.8em !important;
  box-shadow: 0 0.25em 0 #e6def7;
  transition: background 0.25s;
}
.ms-qst img {
  width: 2.2em;
}
.ms-qst b {
  flex: 1;
  font-size: 1em;
}
.ms-qst .quest-status {
  font-weight: 800;
  font-size: 0.85em;
  padding: 0.4em 0.8em;
  border-radius: 9em;
  background: var(--purple);
  color: #fff;
  white-space: nowrap;
  transition: background 0.25s;
}
.ms-qst.done {
  background: #eafaf2 !important;
}
.ms-qst.done .quest-status {
  background: var(--green);
}
/* quiz */
.ms-quiz {
  background: linear-gradient(180deg, #efe8fd, #f7f4fd 40%);
  gap: 0.6em;
  padding-bottom: 1.4em;
}
.ms-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 800;
  color: var(--purple-2);
  font-size: 1em;
}
.xpp {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: #fff;
  border-radius: 9em;
  padding: 0.3em 0.7em;
  box-shadow: 0 0.15em 0 #e6def7;
}
.xpp img {
  width: 1.1em;
  height: auto;
}
.ms-kick {
  margin: 0.2em 0 0;
  display: flex;
  align-items: center;
  gap: 0.4em;
  font-weight: 800;
  color: var(--purple);
  font-size: 0.95em;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.ms-kick img {
  width: 1.5em;
}
.ms-prog {
  height: 0.9em;
  border-radius: 9em;
  background: #e1d7f6;
  overflow: hidden;
}
.ms-prog i {
  display: block;
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), #a274f7);
  transition: width 0.6s var(--ease);
}
.ms-pn {
  margin-top: -0.2em;
}
.ms-q {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.8em;
  background: #fff;
  border-radius: 1.4em;
  padding: 1.2em;
  box-shadow: 0 0.3em 0 #e6def7;
}
.qp {
  margin: 0;
  font: 800 1.75em / 1.1 var(--display);
}
.qo {
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.qo button {
  background: #f7f4fd !important;
  border: 0.15em solid #e6def7 !important;
  border-radius: 1em !important;
  padding: 0.75em 1em !important;
  font: 800 1.5em / 1 var(--display) !important;
  box-shadow: 0 0.2em 0 #e6def7;
  transition:
    transform 0.1s,
    background 0.2s,
    border-color 0.2s;
}
.qo button:active {
  transform: translateY(0.15em);
}
.qo button.ok {
  background: #e3f8ee !important;
  border-color: var(--green) !important;
  color: #137a4b;
}
.qo button.no {
  background: #ffece6 !important;
  border-color: var(--coral) !important;
  animation: shake 0.4s;
}
.qo button:disabled {
  cursor: default;
}
.qfb {
  margin: 0;
  font-weight: 800;
  font-size: 1em;
  min-height: 1.3em;
}
.qfb.ok {
  color: #137a4b;
}
.qfb.no {
  color: #c4462a;
}
.qdone {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5em;
  text-align: center;
}
.qdone b {
  font: 800 2em / 1.05 var(--display);
  color: var(--purple-2);
}
.qagain {
  margin-top: 0.6em;
  background: var(--purple) !important;
  color: #fff !important;
  padding: 0.6em 1.2em !important;
  border-radius: 9em !important;
  font-weight: 800 !important;
}
.ms-chest {
  display: flex;
  align-items: center;
  gap: 0.7em;
  background: #fff;
  border-radius: 1.2em;
  padding: 0.5em 0.9em;
  box-shadow: 0 0.2em 0 #e6def7;
  font-size: 0.95em;
  transition: background 0.3s;
}
.ms-chest img {
  width: 3.2em;
  filter: grayscale(0.7) opacity(0.6);
  transition: filter 0.3s;
}
.ms-chest b {
  color: var(--muted);
}
.ms-chest.open {
  background: #fff6d6;
}
.ms-chest.open img {
  filter: none;
  animation: ms-chest 0.7s var(--spring);
}
.ms-chest.open b {
  color: #8a6100;
}
/* rewards */
.ms-shop {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.ms-shop b {
  font-size: 1.25em;
}
.ms-shop .add {
  font-weight: 800;
  color: var(--purple);
  font-size: 0.9em;
}
.ms-feat {
  position: relative;
  display: flex !important;
  align-items: center;
  gap: 0.8em;
  background: linear-gradient(135deg, #fff7dc, #fff) !important;
  border: 0.15em solid #ffd96b !important;
  border-radius: 1.3em !important;
  padding: 1.6em 0.9em 0.9em !important;
  transition: border-color 0.3s;
}
.ms-feat .tag {
  position: absolute;
  left: 0.9em;
  top: 0.55em;
  font-size: 0.72em;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #a07000;
}
.ms-feat .fi {
  width: 3.6em;
  height: 3.6em;
  object-fit: contain;
}
.ms-feat .fb {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.3em;
  min-width: 0;
}
.ms-feat .ft {
  font-size: 1.15em;
}
.ms-feat .fc {
  font-weight: 800;
  font-size: 1em;
  color: #a07000;
}
.ms-feat.full {
  border-color: var(--green) !important;
}
.ms-feat.full .bar em {
  background: var(--green);
}
.ms-rgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.6em;
}
.rc {
  background: #fff !important;
  border-radius: 1.1em !important;
  padding: 0.7em !important;
  display: flex;
  flex-direction: column;
  gap: 0.35em;
  box-shadow: 0 0.25em 0 #e6def7;
}
.rc img {
  width: 2.6em;
  height: 2.6em;
  object-fit: contain;
}
.rc b {
  font-size: 0.9em;
  line-height: 1.1;
  min-height: 2.2em;
}
.ms-ask {
  position: absolute;
  left: 0.8em;
  right: 0.8em;
  bottom: 6em;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.6em;
  background: var(--ink-2);
  color: #fff;
  border-radius: 1.2em;
  padding: 0.8em;
  transform: translateY(140%);
  opacity: 0;
  transition:
    transform 0.45s var(--spring),
    opacity 0.3s;
}
.ms-ask.show {
  transform: none;
  opacity: 1;
}
.ms-ask img {
  width: 2.2em;
}
.ms-ask p {
  margin: 0;
  flex: 1;
  display: flex;
  flex-direction: column;
  font-size: 0.92em;
}
.ms-ask p span {
  color: #d9ccff;
  font-weight: 700;
}
.ms-ask .ap {
  background: var(--yellow) !important;
  color: var(--ink) !important;
  font-weight: 800 !important;
  padding: 0.55em 0.9em !important;
  border-radius: 9em !important;
  white-space: nowrap;
}
.ms-ask.ok {
  background: #137a4b;
}
.ms-ask.ok .ap {
  background: #fff !important;
}
/* trail */
.ms-trail {
  gap: 0.6em;
}
.ms-trail .bk {
  font-size: 1.6em;
  font-weight: 800;
  color: var(--purple-2);
}
.ms-trail .meta {
  display: flex;
  gap: 0.5em;
  align-items: center;
}
.tagm {
  background: #e3f8ee;
  color: #137a4b;
  border-radius: 9em;
  padding: 0.2em 0.7em;
}
.ms-donebox {
  background: #fff;
  border-radius: 1.2em;
  padding: 0.9em;
  display: flex;
  flex-direction: column;
  gap: 0.45em;
  box-shadow: 0 0.25em 0 #e6def7;
  transition: background 0.3s;
}
.ms-donebox .bar em {
  background: var(--green);
}
.ms-donebox small {
  display: flex;
  justify-content: space-between;
}
.ms-donebox.full {
  background: #eafaf2;
}
.ms-stages {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5em;
}
.ms-stages li {
  background: #fff;
  border-radius: 1.1em;
  box-shadow: 0 0.2em 0 #e6def7;
  overflow: hidden;
}
.sg {
  display: flex !important;
  align-items: center;
  gap: 0.7em;
  width: 100%;
  padding: 0.65em 0.8em !important;
}
.sg .dot {
  width: 2.2em;
  height: 2.2em;
  flex: none;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-weight: 900;
  background: #ece6f7;
  color: transparent;
  transition: all 0.35s var(--spring);
}
.ms-stages li.ok .dot {
  background: var(--green);
  color: #fff;
}
.sg .tx {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.1em;
}
.sg .tx b {
  font-size: 1em;
}
.sg i {
  font-style: normal;
  font-size: 1.5em;
  color: #b3a9c8;
  transition: transform 0.3s;
}
.ms-stages li.open .sg i {
  transform: rotate(90deg);
}
.sd {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.35s var(--ease);
}
.sd > div {
  overflow: hidden;
}
.ms-stages li.open .sd {
  grid-template-rows: 1fr;
}
.sd p {
  margin: 0 0.8em 0.5em 3.7em;
  display: flex;
  align-items: center;
  gap: 0.5em;
  font-weight: 700;
  font-size: 0.9em;
  color: var(--muted);
}
.sd p:first-child {
  padding-top: 0.1em;
}
.sd img {
  width: 1.6em;
}
.ms-play {
  margin-top: auto;
  align-self: stretch;
  text-align: center !important;
  background: var(--purple) !important;
  color: #fff !important;
  font-weight: 800 !important;
  padding: 0.8em !important;
  border-radius: 9em !important;
  box-shadow: 0 0.25em 0 var(--purple-deep);
}
.ms-trail {
  padding-bottom: 1.6em;
}
/* world */
.ms-world {
  background: #7ec8f2;
  color: #fff;
  padding: 3.6em 1.2em 1.6em;
}
.wbg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.wis {
  position: absolute;
  left: -15%;
  right: -15%;
  bottom: 8%;
  width: 130%;
  max-width: none;
}
.ms-world > *:not(.wbg):not(.wis) {
  position: relative;
  z-index: 2;
}
.wtop {
  display: flex;
  justify-content: space-between;
}
.wp {
  display: flex;
  align-items: center;
  gap: 0.3em;
  background: #2a1f45bf;
  border-radius: 9em;
  padding: 0.35em 0.8em;
  font-weight: 800;
}
.wp img {
  width: 1.1em;
  height: auto;
}
.wtabs {
  display: flex;
  gap: 0.4em;
  align-self: center;
  background: #2a1f45a6;
  border-radius: 9em;
  padding: 0.25em;
}
.wtabs span {
  padding: 0.35em 0.9em;
  border-radius: 9em;
  font-weight: 800;
  font-size: 0.9em;
  color: #d8cff0;
}
.wtabs .on {
  background: #fff;
  color: var(--purple-2);
}
.wname {
  align-self: center;
  font: 800 2.2em / 1 var(--display);
  text-shadow: 0 0.1em 0.3em #2a1f4580;
  margin-top: 0.4em;
  letter-spacing: 0.02em;
}
.wfer {
  position: absolute !important;
  left: 50%;
  top: 44%;
  width: 62%;
  transform: translate(-50%, -50%);
  z-index: 2;
}
.wfer img {
  width: 100%;
  height: auto;
  filter: drop-shadow(0 1em 0.8em #0004);
}
.ms-world.on .wfer img {
  animation: ms-bob 3.2s ease-in-out infinite;
}
@keyframes ms-bob {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4%);
  }
}
.wfer.hop img {
  animation: ms-hop 0.6s var(--spring) !important;
}
.wfer.eat img {
  animation: ms-eat 0.7s ease !important;
}
.wfer.love img {
  animation: ms-love 0.9s ease !important;
}
@keyframes ms-hop {
  35% {
    transform: translateY(-14%) scale(1.04, 0.96);
  }
  70% {
    transform: translateY(0) scale(1.05, 0.95);
  }
}
@keyframes ms-eat {
  25%,
  75% {
    transform: scale(1.06, 0.94);
  }
  50% {
    transform: scale(0.97, 1.04);
  }
}
@keyframes ms-love {
  25% {
    transform: rotate(-6deg) scale(1.05);
  }
  50% {
    transform: rotate(6deg) scale(1.05);
  }
  75% {
    transform: rotate(-3deg);
  }
}
.wside {
  position: absolute !important;
  right: 0.9em;
  top: 38%;
  display: flex;
  flex-direction: column;
  gap: 0.6em;
}
.wb {
  display: flex !important;
  flex-direction: column;
  align-items: center;
  gap: 0.15em;
  background: #fff !important;
  color: var(--purple-2) !important;
  border-radius: 1em !important;
  padding: 0.45em 0.55em !important;
  font-weight: 800 !important;
  font-size: 0.85em !important;
  box-shadow: 0 0.25em 0 #2a1f4540;
  transition: transform 0.12s;
}
.wb:active {
  transform: translateY(0.15em);
}
.wb img {
  width: 2em;
}
.wb .hrt {
  font-size: 1.7em;
  line-height: 1;
  color: #e8466b;
}
.wfly {
  position: absolute;
  width: 2.4em;
  z-index: 6;
  transition:
    transform 0.55s cubic-bezier(0.3, -0.3, 0.6, 1),
    opacity 0.55s;
  pointer-events: none;
  margin-left: -1.2em;
}
.wlv {
  margin-top: auto;
  display: flex;
  align-items: center;
  gap: 0.5em;
  background: #2a1f45bf;
  border-radius: 9em;
  padding: 0.4em 0.7em;
}
.wlv .lv {
  width: 1.9em;
  height: 1.9em;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--ink);
  display: grid;
  place-items: center;
  font-weight: 900;
}
.wlv .bar {
  flex: 1;
  background: #ffffff38;
}
.wlv .bar em {
  background: var(--yellow);
}
.wlv small {
  color: #fff;
  white-space: nowrap;
}
.wbag {
  align-self: center;
  background: var(--yellow);
  color: var(--ink);
  font-weight: 800;
  border-radius: 9em;
  padding: 0.5em 1.4em;
  box-shadow: 0 0.25em 0 #d9a514;
}
@media (max-width: 640px) {
  .ms {
    border-radius: 20px;
  }
}
/* idle: phones breathe slightly while on screen */
@media (prefers-reduced-motion: no-preference) {
  .ms.on .ms-hc:not(.done):first-child,
  .ms.on .ms-qst:not(.done):first-of-type {
    animation: ms-hint 2.6s ease-in-out infinite;
  }
  @keyframes ms-hint {
    0%,
    100% {
      box-shadow: 0 0.25em 0 #e6def7;
    }
    50% {
      box-shadow:
        0 0.25em 0 #e6def7,
        0 0 0 0.3em #8a5cf633;
    }
  }
}

/* ===================== v10 · School: one guided quiz ===================== */
.sq {
  margin-top: var(--s8);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: var(--s8);
  align-items: center;
  background: var(--white);
  border-radius: var(--r-xl);
  padding: var(--s8) var(--s8) var(--s7);
  box-shadow: var(--sh-card, 0 20px 50px #2921371a);
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
}
.sq-hint {
  margin: 0 0 var(--s5);
  display: flex;
  align-items: center;
  gap: 12px;
  font: 800 1.6rem / 1.15 var(--display);
}
.tap-dot {
  flex: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 0 #8a5cf680;
  animation: tap-dot 1.8s infinite;
}
@keyframes tap-dot {
  70% {
    box-shadow: 0 0 0 12px #8a5cf600;
  }
  100% {
    box-shadow: 0 0 0 0 #8a5cf600;
  }
}
.sq-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: var(--s3);
}
.sq-steps li {
  display: flex;
  align-items: center;
  gap: var(--s3);
  font-weight: 700;
  color: var(--muted);
  transition: color 0.3s;
  font-size: 1.05rem;
}
.sq-steps li b {
  flex: none;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: var(--lav-2);
  color: var(--purple);
  font: 800 1rem / 1 var(--display);
  transition: all 0.3s var(--spring);
}
.sq-steps li.is-on {
  color: var(--ink);
}
.sq-steps li.is-on b {
  background: var(--purple);
  color: #fff;
  transform: scale(1.1);
}
.sq-steps li.ping b {
  animation: ms-bump 0.5s var(--spring);
}
.sq-phone {
  width: 300px;
}
@media (max-width: 860px) {
  .sq {
    grid-template-columns: 1fr;
    gap: var(--s5);
    padding: var(--s7) var(--s5) var(--s6);
    justify-items: center;
    text-align: left;
  }
  .sq-side {
    order: 0;
    width: 100%;
    max-width: 340px;
  }
  .sq-hint {
    font-size: 1.3rem;
    margin-bottom: var(--s3);
  }
  .sq-steps {
    flex-direction: row;
    gap: var(--s2);
  }
  .sq-steps li {
    flex: 1;
    flex-direction: column;
    text-align: center;
    font-size: 0.78rem;
    gap: 6px;
    line-height: 1.2;
  }
  .sq-phone {
    width: min(290px, 82vw);
  }
}

/* ===================== v10 · Ferons: autoplay + real evolution ===================== */
.hatchery {
  position: relative;
}
.hx-hint {
  position: absolute;
  right: var(--s5);
  top: var(--s4);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
  font-size: 0.85rem;
  color: var(--lav);
  transition: opacity 0.4s;
}
.hx-hint .tap-dot {
  background: var(--yellow);
  width: 10px;
  height: 10px;
}
.hx-hint.gone {
  opacity: 0;
}
.hatchery[data-step="choose"] .hx-hint,
.hatchery:not([data-step]) .hx-hint {
  opacity: 1;
}
.evo-dots {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}
.evo-dots span {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #ffffff14;
  border: 2px solid #ffffff30;
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: all 0.35s var(--spring);
}
.evo-dots span img {
  width: 34px;
  height: 34px;
  object-fit: contain;
  filter: brightness(0) opacity(0.35);
  transition: filter 0.4s;
}
.evo-dots span.on img {
  filter: none;
}
.evo-dots span.now {
  border-color: var(--yellow);
  background: #ffcd3530;
  transform: scale(1.12);
}
.evo-dots i {
  width: 16px;
  height: 3px;
  border-radius: 3px;
  background: #ffffff30;
  transition: background 0.3s;
}
.evo-dots i.on {
  background: var(--yellow);
}
.evo-dots small {
  margin-left: 6px;
  font-weight: 800;
  color: var(--lav);
  font-size: 0.85rem;
}
#evolveBtn:disabled {
  opacity: 1;
  cursor: default;
  background: var(--yellow);
  color: var(--ink);
}
.meet-stage {
  position: relative;
}
.meet-stage::after {
  content: "";
  position: absolute;
  inset: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0, #ffe58a 35%, transparent 70%);
  opacity: 0;
  pointer-events: none;
}
.meet-stage.flash::after {
  animation: evo-flash 0.9s ease-out;
}
@keyframes evo-flash {
  0% {
    opacity: 0;
    transform: scale(0.5);
  }
  40% {
    opacity: 1;
    transform: scale(1.1);
  }
  100% {
    opacity: 0;
    transform: scale(1.4);
  }
}
.meet-feron.evolving {
  animation: evo-morph 0.9s var(--ease);
}
@keyframes evo-morph {
  0% {
    transform: none;
    filter: drop-shadow(0 20px 30px #0006);
  }
  40% {
    transform: scale(0.82);
    filter: brightness(3) saturate(0) drop-shadow(0 0 30px #fff);
  }
  55% {
    transform: scale(1.12);
    filter: brightness(2.2) drop-shadow(0 0 40px var(--yellow));
  }
  100% {
    transform: none;
    filter: drop-shadow(0 20px 30px #0006);
  }
}
@media (max-width: 640px) {
  .hx-hint {
    position: static;
    justify-content: center;
    margin-bottom: var(--s3);
  }
  .hatchery > .hx-step {
    grid-area: 2 / 1;
  }
  .evo-dots span {
    width: 34px;
    height: 34px;
  }
  .evo-dots span img {
    width: 28px;
    height: 28px;
  }
}

/* ===================== v10 · Track: phones first on mobile ===================== */
@media (max-width: 860px) {
  .tr-grid .tr-phones {
    order: -1;
  }
}
/* v10 fixes after first look */
.rw-phone.live {
  width: 100%;
}
.hx-hint {
  opacity: 0;
}
.hatchery[data-step="choose"] .hx-hint:not(.gone) {
  opacity: 1;
}
.wk {
  gap: 0.15em;
}
.wk em {
  width: 1.45em;
  height: 1.45em;
  font-size: 0.7em;
}
.ms-streak {
  gap: 0.45em;
  padding: 0.6em 0.7em;
}
.ms-streak img {
  width: 1.9em;
}
.ms-streak b {
  font-size: 1.05em;
}
.ms-quiz .ms-q {
  flex: none;
  gap: 1em;
  padding: 1.3em 1.2em;
}
.ms-quiz .qp {
  font-size: 2em;
}
.ms-quiz .qo button {
  padding: 0.9em 1em !important;
  font-size: 1.6em !important;
}
.ms-quiz .ms-chest {
  margin-top: auto;
  flex-direction: column;
  gap: 0.3em;
  padding: 1em;
  text-align: center;
}
.ms-quiz .ms-chest img {
  width: 5.2em;
}
.ms-quiz .qdone {
  padding: 1.2em 0;
}
.sq {
  max-width: 900px;
  gap: var(--s7);
}
.sq-hint {
  font-size: 1.9rem;
}
.sq-steps li {
  font-size: 1.12rem;
}
@media (max-width: 860px) {
  .sq-hint {
    font-size: 1.45rem;
  }
  .sq-steps li {
    font-size: 0.86rem;
  }
}

/* ===== v11: the visitor hatches the egg (invite, never auto-tap) ===== */
.hx-hint {
  display: none;
}
.hx-choose {
  gap: var(--s3);
}
.hx-prompt {
  margin: 0;
  font: 800 clamp(1.55rem, 1.1rem + 1.6vw, 2.3rem) / 1.1 var(--display);
  color: #fff;
  text-align: center;
  letter-spacing: -0.01em;
}
.hx-prompt span {
  color: var(--yellow);
  white-space: nowrap;
}
.hx-sub {
  margin: 0 0 var(--s3);
  color: var(--lav);
  font-weight: 700;
  font-size: 0.98rem;
  text-align: center;
}
.eggs {
  position: relative;
  padding-bottom: 54px;
  align-items: flex-end;
}
.egg-btn {
  position: relative;
  display: grid;
  place-items: center;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.egg-btn > * {
  grid-area: 1 / 1;
}
.egg-btn img {
  width: 150px;
  transform-origin: 50% 92%;
  filter: drop-shadow(0 0 16px #ffd35a40);
}
.egg-btn:hover img,
.egg-btn:focus-visible img {
  filter: drop-shadow(0 0 26px #ffd35a99) brightness(1.06);
}
.egg-btn:active {
  transform: scale(0.95);
}
.egg-ring {
  align-self: end;
  width: 78%;
  height: 22%;
  margin-bottom: -4%;
  border-radius: 50%;
  border: 2px solid #ffd35a88;
  box-shadow: 0 0 18px #ffd35a55;
  opacity: 0.55;
  pointer-events: none;
}
.egg-crk {
  width: 76% !important;
  height: auto;
  opacity: 0;
  filter: none !important;
  pointer-events: none;
  transition: opacity 0.3s;
}
.egg-q {
  place-self: start end;
  margin: 2px 0 0;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--yellow);
  color: #2a1f4d;
  font: 900 1.05rem / 1 var(--display);
  box-shadow:
    0 3px 0 #d9a300,
    0 0 14px #ffd35a;
  opacity: 0;
  transform: scale(0.4);
  transition:
    opacity 0.25s,
    transform 0.35s var(--spring);
  pointer-events: none;
}
.egg-btn.tease .egg-q {
  opacity: 1;
  transform: scale(1);
}
.egg-btn.tease .egg-crk {
  opacity: 0.85;
}
.egg-btn.tease .egg-ring {
  opacity: 1;
  border-color: var(--yellow);
}
.hx-point {
  position: absolute;
  left: var(--px, 50%);
  bottom: 0;
  width: 34px;
  height: 42px;
  margin-left: -17px;
  opacity: 0;
  pointer-events: none;
  transition:
    left 0.45s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s;
}
.hx-point svg {
  width: 100%;
  height: 100%;
  filter: drop-shadow(0 4px 6px #0005);
}
.hatchery.pointing .hx-point {
  opacity: 1;
}
.egg-btn.picked img {
  transform: scale(1.12);
}
@media (prefers-reduced-motion: no-preference) {
  .js-motion .mo-live .egg-btn img,
  .egg-btn img {
    animation: egg-wob 3.6s ease-in-out infinite;
  }
  .js-motion .mo-live .egg-btn:nth-child(2) img,
  .egg-btn:nth-child(2) img {
    animation-delay: 1.2s;
  }
  .js-motion .mo-live .egg-btn:nth-child(3) img,
  .egg-btn:nth-child(3) img {
    animation-delay: 2.4s;
  }
  .egg-btn.tease img {
    animation: egg-shake 1.3s ease-in-out infinite !important;
  }
  .egg-ring {
    animation: egg-ring 2.2s ease-out infinite;
  }
  .egg-btn:nth-child(2) .egg-ring {
    animation-delay: 0.7s;
  }
  .egg-btn:nth-child(3) .egg-ring {
    animation-delay: 1.4s;
  }
  .egg-btn.tease .egg-q {
    animation: egg-q 1.3s ease-in-out infinite;
  }
  .hatchery.pointing .hx-point svg {
    animation: hx-point 1s ease-in-out infinite;
  }
  .egg-btn.picked img {
    animation: none !important;
    transition: transform 0.3s var(--spring);
  }
}
@keyframes egg-wob {
  0%,
  66%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  72% {
    rotate: -8deg;
    translate: 0 -4px;
  }
  78% {
    rotate: 7deg;
  }
  84% {
    rotate: -5deg;
  }
  90% {
    rotate: 3deg;
    translate: 0 0;
  }
}
@keyframes egg-shake {
  0%,
  40%,
  100% {
    rotate: 0deg;
    translate: 0 0;
  }
  5% {
    rotate: -12deg;
    translate: 0 -8px;
  }
  12% {
    rotate: 11deg;
  }
  19% {
    rotate: -9deg;
  }
  26% {
    rotate: 7deg;
    translate: 0 -3px;
  }
  33% {
    rotate: -4deg;
    translate: 0 0;
  }
}
@keyframes egg-ring {
  0% {
    transform: scale(0.8);
    opacity: 0.75;
  }
  100% {
    transform: scale(1.35);
    opacity: 0;
  }
}
@keyframes egg-q {
  0%,
  100% {
    rotate: -8deg;
  }
  50% {
    rotate: 8deg;
    scale: 1.12;
  }
}
@keyframes hx-point {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-10px);
  }
}
@media (max-width: 640px) {
  .hatchery {
    padding: var(--s5) var(--s3);
  }
  .eggs {
    gap: 6px;
    padding-bottom: 48px;
  }
  .egg-btn {
    padding: 8px;
  }
  .egg-btn img {
    width: 84px;
  }
  .egg-q {
    width: 26px;
    height: 26px;
    font-size: 0.9rem;
  }
  .hx-sub {
    font-size: 0.9rem;
  }
}
/* v11 layout: only the active step takes height; eggs sit right under the prompt */
.hatchery {
  min-height: 0;
  align-content: start;
}
.hatchery > .hx-step:not(.is-on) {
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  visibility: hidden;
}
.eggs {
  display: flex;
  justify-content: center;
  gap: var(--s5);
}
.egg-btn {
  flex: 0 0 auto;
  width: auto;
  padding: var(--s3) var(--s4);
}
.egg-ring {
  width: 120px;
  max-width: 80%;
}
@media (min-width: 641px) {
  .hatchery {
    padding-top: var(--s6);
  }
  .hx-choose {
    padding-top: var(--s2);
  }
  .egg-btn img {
    width: 136px;
  }
}
.egg-crk {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 62% !important;
  transform: translate(-50%, -50%);
}
.egg-q {
  position: absolute;
  top: 6px;
  right: 2px;
}
.egg-ring {
  position: absolute;
  bottom: 4px;
  left: 50%;
  margin: 0 0 0 -60px;
  width: 120px;
  height: 26px;
  max-width: none;
}
@media (max-width: 640px) {
  .egg-ring {
    width: 80px;
    height: 18px;
    margin-left: -40px;
  }
}
/* v11 cheap win: larger live phones on small screens so their text stays readable */
@media (max-width: 640px) {
  .how-panel .phone {
    width: min(244px, 64vw);
  }
  .tr-phones {
    height: 520px;
  }
  .tp {
    width: min(232px, 60vw);
  }
}
