/* Pepplets coming-soon page. Phone first; wider screens layered on with min-width queries. */
:root {
  --cream: #fdf3e4;
  --cream-deep: #f8e6cc;
  --paper: #fffaf2;
  --plum: #5e1b3a;
  --plum-soft: #7d4a62;
  --pink: #e04882;
  --pink-deep: #c93570;
  --pink-light: #ffd9e6;
  --mint: #d7f2e4;
  --mint-deep: #8fd3b0;
  --sun: #fff0c7;
  --lilac: #ece4fb;
  --leaf: #6bb466;
  --radius: 28px;
  --shadow: 0 10px 30px rgba(94, 27, 58, 0.10), 0 2px 6px rgba(94, 27, 58, 0.06);
  --head: "Fredoka", "Nunito", system-ui, sans-serif;
  --body: "Nunito", system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--cream);
  color: var(--plum);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; height: auto; }
picture { display: block; }
h1, h2, h3 { font-family: var(--head); font-weight: 600; line-height: 1.12; margin: 0; letter-spacing: -0.01em; }
h2 { font-size: clamp(30px, 6.5vw, 48px); }
h3 { font-size: 22px; }
p { margin: 0; }
a { color: var(--pink-deep); }

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 16px; top: -60px; background: var(--plum); color: #fff; padding: 10px 16px; border-radius: 12px; z-index: 50; }
.skip:focus { top: 12px; }
:focus-visible { outline: 3px solid var(--pink); outline-offset: 3px; border-radius: 10px; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.wrap-narrow { width: min(720px, 100% - 32px); }
.eyebrow {
  display: inline-block;
  font-family: var(--head);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--pink-deep);
  margin-bottom: 10px;
}
.muted { color: var(--plum-soft); }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 26px;
  border: 0; border-radius: 999px;
  background: var(--pink); color: #fff;
  font-family: var(--head); font-weight: 600; font-size: 18px; text-decoration: none;
  box-shadow: 0 5px 0 var(--pink-deep), 0 10px 22px rgba(224, 72, 130, 0.30);
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { background: #e9558d; transform: translateY(-1px); }
.btn:active { transform: translateY(4px) scale(.98); box-shadow: 0 1px 0 var(--pink-deep), 0 4px 10px rgba(224, 72, 130, 0.25); }
.btn-small { min-height: 42px; padding: 0 18px; font-size: 15px; box-shadow: 0 4px 0 var(--pink-deep); }

/* ---------- header ---------- */
.top {
  position: fixed; inset: 0 0 auto 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; padding-top: max(12px, env(safe-area-inset-top));
  transition: background .25s ease, box-shadow .25s ease;
}
.top-logo { opacity: 0; transform: translateY(-6px); transition: opacity .25s ease, transform .25s ease; pointer-events: none; }
.top-logo img { width: 112px; }
.top.scrolled { background: rgba(253, 243, 228, 0.88); -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 1px 0 rgba(94, 27, 58, .08); }
.top.scrolled .top-logo { opacity: 1; transform: none; pointer-events: auto; }
.top .btn-small { margin-left: auto; }

/* ---------- hero ---------- */
.hero { position: relative; display: flex; flex-direction: column; }
.hero-copy { position: relative; z-index: 1; padding: 84px 20px 28px; text-align: center; }
.hero-art img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; object-position: 80% 78%; }
.hero-art { order: 2; position: relative; }
.hero-art::before { /* soft blend from cream into the art on phones */
  content: ""; position: absolute; inset: 0 0 auto 0; height: 28%; z-index: 1;
  background: linear-gradient(var(--cream), rgba(253, 243, 228, 0));
}
.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 14px; border-radius: 999px;
  background: var(--paper); box-shadow: var(--shadow);
  font-weight: 800; font-size: 14px; color: var(--plum);
}
.badge-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--leaf); box-shadow: 0 0 0 4px rgba(107, 180, 102, .22); }
.hero-logo { margin: 22px auto 0; width: min(78vw, 360px); }
.hero-logo img { width: 100%; }
.tagline { margin-top: 14px; font-family: var(--head); font-weight: 600; font-size: clamp(26px, 6.4vw, 40px); line-height: 1.15; }
.lede { margin: 12px auto 0; max-width: 30em; font-size: 17px; color: var(--plum-soft); }

/* ---------- signup form ---------- */
.signup { margin: 22px auto 0; display: grid; gap: 10px; max-width: 460px; }
.signup input {
  min-height: 54px; width: 100%; padding: 0 20px;
  border: 2px solid rgba(94, 27, 58, .14); border-radius: 999px;
  background: #fff; color: var(--plum);
  font: 600 17px var(--body);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.signup input::placeholder { color: #a98a98; }
.signup input:focus { outline: none; border-color: var(--pink); box-shadow: 0 0 0 4px rgba(224, 72, 130, .18); }
.form-note { font-size: 14px; color: var(--plum-soft); }
.form-note.ok { color: #2f7d4f; font-weight: 700; }
.form-note.err { color: var(--pink-deep); font-weight: 700; }

/* ---------- how it works ---------- */
.how { padding: 64px 0 24px; text-align: center; }
.steps { list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 18px; }
.step {
  position: relative; padding: 30px 24px 28px; border-radius: var(--radius);
  background: var(--paper); box-shadow: var(--shadow);
  display: flex; flex-direction: column; align-items: center; gap: 10px;
}
.step-mint { background: var(--mint); }
.step-sun { background: var(--sun); }
.step-lilac { background: var(--lilac); }
.step-num {
  position: absolute; top: 16px; left: 18px;
  width: 34px; height: 34px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--paper); font-family: var(--head); font-weight: 700; font-size: 17px;
}
.step-art { height: 110px; display: flex; align-items: flex-end; justify-content: center; }
.step-art img { max-height: 110px; width: auto; }
.step-trio { gap: 2px; }
.step-trio img { height: 64px; width: auto; }
.step p { color: var(--plum-soft); max-width: 22em; }
@media (max-width: 559px) {
  .step { display: grid; grid-template-columns: 104px 1fr; grid-template-rows: auto auto; column-gap: 16px; row-gap: 4px; align-items: center; text-align: left; padding: 20px 18px 20px 16px; }
  .step-art { grid-row: 1 / span 2; height: 96px; align-items: center; }
  .step-art img { max-height: 92px; max-width: 104px; }
  .step-trio img { height: 40px; }
  .step-trio { gap: 0; }
  .step h3 { align-self: end; font-size: 20px; }
  .step p { align-self: start; font-size: 16px; }
  .step-num { top: 10px; left: 10px; width: 26px; height: 26px; font-size: 14px; }
}

/* ---------- grow ---------- */
.grow { padding: 64px 0; text-align: center; }
.stages { list-style: none; margin: 34px 0 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px 10px; }
.stages li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.stages img { width: 100%; filter: drop-shadow(0 14px 16px rgba(94, 27, 58, .14)); }
.stages span { font-family: var(--head); font-weight: 600; font-size: 17px; }
.stages li:last-child span { color: var(--pink-deep); }

/* ---------- a little life ---------- */
.life { padding: 40px 0 64px; }
.life-grid { display: grid; gap: 26px; align-items: center; }
.life-art img { width: 100%; border-radius: var(--radius); box-shadow: var(--shadow); border: 6px solid var(--paper); transform: rotate(-1.2deg); }
.life-copy { text-align: center; }
.life-copy h2 { margin-bottom: 14px; }
.life-copy p + p { margin-top: 10px; }

/* ---------- meet ---------- */
.meet { padding: 64px 0 72px; background: var(--paper); text-align: center; border-radius: 40px 40px 0 0; }
.cast { list-style: none; margin: 52px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 62px 12px; }
.pep { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.pep-btn {
  position: relative; width: 160px; height: 140px; padding: 0; border: 0; background: none; cursor: pointer;
  display: flex; align-items: flex-end; justify-content: center;
  -webkit-tap-highlight-color: transparent;
}
.pep-btn::after { /* soft ground shadow */
  content: ""; position: absolute; left: 18%; right: 18%; bottom: -6px; height: 14px; border-radius: 50%;
  background: radial-gradient(rgba(94, 27, 58, .16), rgba(94, 27, 58, 0) 70%);
}
.pep-bob, .pep-body { display: block; position: relative; }
.pep-body .face-r { position: absolute; inset: 0; opacity: 0; }
.pep-body .face-r img { width: 100%; height: 100%; }
.pep-btn.react .face { opacity: 0; }
.pep-btn.react .face-r { opacity: 1; }
.pep-name { font-family: var(--head); font-weight: 600; font-size: 17px; }
.pep-secret .face img { filter: brightness(0) saturate(0); opacity: .16; }
.pep-secret .pep-name { color: var(--plum-soft); font-style: italic; }
.pep-q {
  position: absolute; top: 42%; left: 50%; transform: translate(-50%, -50%);
  font-family: var(--head); font-weight: 700; font-size: 44px; color: var(--plum); opacity: .55;
}

/* ---------- night signup ---------- */
.night { position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: center; padding: 56px 16px 0; background: linear-gradient(#8f88df, #b9a2e6 45%, #d9b6e0); }
.night-art { order: 2; width: calc(100% + 32px); margin-top: -24px; }
.night-art img { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; object-position: 50% 80%; -webkit-mask-image: linear-gradient(transparent, #000 22%); mask-image: linear-gradient(transparent, #000 22%); }
.night-card {
  order: 1; position: relative; z-index: 1; width: min(520px, 100%);
  padding: 32px 22px 26px; border-radius: var(--radius);
  background: rgba(255, 250, 242, .88); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  box-shadow: 0 20px 50px rgba(60, 30, 90, .25);
  text-align: center;
}
.night-card h2 { font-size: clamp(28px, 6vw, 40px); }
.night-card > p { margin-top: 12px; color: var(--plum-soft); }

/* ---------- faq ---------- */
.faq { padding: 64px 0 40px; }
.faq h2 { text-align: center; margin-bottom: 24px; }
details {
  background: var(--paper); border-radius: 22px; box-shadow: var(--shadow);
  margin-bottom: 12px; overflow: hidden;
}
summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; position: relative;
  font-family: var(--head); font-weight: 600; font-size: 19px;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 18px; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--pink-light); color: var(--pink-deep); font-size: 20px; font-weight: 700; transition: transform .2s ease;
}
details[open] summary::after { content: "–"; }
details p { padding: 0 22px 20px; color: var(--plum-soft); }

/* ---------- footer ---------- */
.foot { padding: 40px 16px calc(40px + env(safe-area-inset-bottom)); text-align: center; display: grid; justify-items: center; gap: 6px; }
.foot img { width: 120px; }
.foot-tag { font-family: var(--head); font-weight: 600; margin-top: 6px; }
.foot-small { font-size: 14px; color: var(--plum-soft); }

/* ================= wider screens ================= */
@media (min-width: 560px) {
  .signup { grid-template-columns: 1fr auto; }
  .signup .form-note { grid-column: 1 / -1; }
  .cast { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .top { padding: 16px 32px; }
  .top-logo img { width: 132px; }

  .hero { display: block; min-height: min(100vh, 900px); }
  .hero-art { position: absolute; inset: 0; }
  .hero-art::before { display: block; inset: 0; height: auto; background: linear-gradient(90deg, rgba(253,243,228,.96) 0%, rgba(253,243,228,.9) 30%, rgba(253,243,228,.55) 44%, rgba(253,243,228,0) 58%); }
  .hero-art img { width: 100%; height: 100%; aspect-ratio: auto; object-position: 70% 50%; }
  .hero-copy {
    width: min(500px, 42vw); margin-left: max(32px, calc((100vw - 1180px) / 2));
    padding: 128px 0 64px; text-align: left;
    min-height: min(100vh, 900px); display: flex; flex-direction: column; justify-content: center; align-items: flex-start;
  }
  .hero-logo { margin: 24px 0 0; width: 440px; }
  .lede { margin-left: 0; }
  .signup { margin-left: 0; width: 100%; }

  .how { padding-top: 96px; }
  .steps { grid-template-columns: repeat(3, 1fr); gap: 24px; }

  .grow { padding: 96px 0; }
  .stages { grid-template-columns: repeat(4, 1fr); gap: 16px; }

  .life { padding: 48px 0 104px; }
  .life-grid { grid-template-columns: 1.25fr 1fr; gap: 56px; }
  .life-copy { text-align: left; }

  .meet { padding: 96px 0 104px; border-radius: 56px 56px 0 0; }
  .cast { grid-template-columns: repeat(6, 1fr); }

  .night { display: grid; place-items: center; min-height: 760px; padding: 56px 16px; background: none; }
  .night-art, .night-art img { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; }
  .night-art img { aspect-ratio: auto; object-position: 50% 70%; -webkit-mask-image: none; mask-image: none; }
  .night-card { padding: 44px 40px 34px; }
  .night-card .signup { margin-inline: auto; }
}

/* =====================================================================
   PASS 2: motion and play. Everything here is skipped for people who ask
   their phone for less motion (bottom of the file).
   ===================================================================== */

/* ---------- gentle entrances (only when the script runs) ---------- */
.js [data-reveal-group] > * { opacity: 0; transform: translateY(26px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js [data-reveal-group].in > * { opacity: 1; transform: none; }
.js [data-reveal-group].in > *:nth-child(2) { transition-delay: .08s; }
.js [data-reveal-group].in > *:nth-child(3) { transition-delay: .16s; }
.js [data-reveal-group].in > *:nth-child(4) { transition-delay: .24s; }
.js [data-reveal-group].in > *:nth-child(5) { transition-delay: .32s; }
.js [data-reveal-group].in > *:nth-child(6) { transition-delay: .40s; }

/* ---------- hero petals ---------- */
.petals { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 2; }
.petal {
  position: absolute; top: -24px; width: 12px; height: 9px; border-radius: 80% 10% 80% 10%;
  background: #ffc4d8; opacity: .85; will-change: transform;
  animation: petal-fall var(--dur, 14s) linear var(--delay, 0s) infinite;
}
.petal.white { background: #fffaf0; box-shadow: 0 0 0 1px rgba(94, 27, 58, .04); }
@keyframes petal-fall {
  0%   { transform: translate3d(0, -20px, 0) rotate(0deg); }
  25%  { transform: translate3d(calc(var(--sway, 40px) * .6), 25vh, 0) rotate(120deg); }
  50%  { transform: translate3d(calc(var(--sway, 40px) * -.4), 50vh, 0) rotate(220deg); }
  75%  { transform: translate3d(var(--sway, 40px), 75vh, 0) rotate(320deg); }
  100% { transform: translate3d(0, 105vh, 0) rotate(420deg); }
}

/* ---------- the Pepplets: idle bob, tap reactions ---------- */
.pep-bob { animation: bob var(--bob, 3.2s) ease-in-out var(--bob-delay, 0s) infinite; transform-origin: 50% 100%; }
.pep:nth-child(2) .pep-bob { --bob: 3.6s; --bob-delay: -.8s; }
.pep:nth-child(3) .pep-bob { --bob: 3s;   --bob-delay: -1.7s; }
.pep:nth-child(4) .pep-bob { --bob: 3.9s; --bob-delay: -2.4s; }
.pep:nth-child(5) .pep-bob { --bob: 4.6s; --bob-delay: -1.1s; }
.pep:nth-child(6) .pep-bob { --bob: 4.2s; --bob-delay: -3s; }
@keyframes bob {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50%      { transform: translateY(-6px) scale(.985, 1.02); }
}
.pep-secret .pep-bob { animation-name: snooze; }
@keyframes snooze {
  0%, 100% { transform: scale(1, 1); }
  50%      { transform: scale(1.03, .97); }
}
.pep-body { transform-origin: 50% 100%; will-change: transform; }
@media (hover: hover) {
  .pep-btn:hover .pep-body { transform: translateY(-4px) scale(1.03); transition: transform .2s ease; }
}
.meet-hint { margin-top: 10px; color: var(--plum-soft); font-weight: 700; }

/* particles that burst out of a tapped Pepplet */
.fx {
  position: absolute; left: 50%; top: 45%; z-index: 3; pointer-events: none;
  width: 12px; height: 12px; margin: -6px 0 0 -6px; will-change: transform, opacity;
}
.fx-leaf    { width: 16px; height: 10px; border-radius: 0 100% 0 100%; background: var(--leaf); }
.fx-petal   { width: 13px; height: 10px; border-radius: 80% 10% 80% 10%; background: #ffb7cf; }
.fx-petal.w { background: #fff; box-shadow: 0 0 0 1px rgba(94, 27, 58, .08); }
.fx-drop    { width: 10px; height: 13px; border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%; background: #7cc7ff; box-shadow: inset -2px -2px 0 rgba(255, 255, 255, .5); }
.fx-star    { width: auto; height: auto; margin: -10px 0 0 -8px; font: 700 20px/1 var(--head); color: #f5c13d; text-shadow: 0 1px 0 #d99b16; }
.fx-z       { width: auto; height: auto; margin: -10px 0 0 -6px; font: 700 20px/1 var(--head); color: var(--plum-soft); }
.fx-heart   { width: auto; height: auto; margin: -10px 0 0 -8px; font: 700 20px/1 var(--head); color: var(--pink); }

/* speech bubble */
.bubble {
  position: absolute; left: 50%; bottom: 100%; z-index: 4; pointer-events: none;
  padding: 6px 12px; border-radius: 14px; white-space: nowrap;
  background: #fff; color: var(--plum); box-shadow: var(--shadow);
  font: 600 15px/1.2 var(--head);
  transform: translate(-50%, 6px) scale(.6); opacity: 0;
  transition: transform .25s cubic-bezier(.3, 1.6, .5, 1), opacity .2s ease;
}
.bubble::after { content: ""; position: absolute; left: 50%; top: 100%; margin-left: -6px; border: 6px solid transparent; border-top-color: #fff; }
.bubble.show { transform: translate(-50%, -4px) scale(1); opacity: 1; }

/* the little toast for the boop counter */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 30;
  max-width: calc(100% - 32px); padding: 12px 18px; border-radius: 999px;
  background: var(--plum); color: #fff; font: 600 16px/1.3 var(--head); text-align: center;
  box-shadow: 0 12px 30px rgba(94, 27, 58, .3);
  transform: translate(-50%, 140%); opacity: 0; transition: transform .35s cubic-bezier(.3, 1.4, .5, 1), opacity .25s ease;
  pointer-events: none;
}
.toast.show { transform: translate(-50%, 0); opacity: 1; }

/* ---------- the sprout perched on the sign-up card ---------- */
.peek { position: absolute; top: -66px; right: 26px; width: 96px; height: 80px; }
.peek::after { display: none; }
.peek img { max-width: 96px; max-height: 80px; }
.night-card { overflow: visible; }

/* ---------- buttons: a jelly wobble when pressed ---------- */
.btn.jelly { animation: jelly .5s ease; }
@keyframes jelly {
  0% { transform: scale(1, 1); } 30% { transform: scale(1.12, .88); } 50% { transform: scale(.92, 1.08); }
  70% { transform: scale(1.04, .96); } 100% { transform: scale(1, 1); }
}

/* ---------- the camp grows as you scroll ---------- */
.grow-meter { display: none; }
.grow.scrolly { padding: 0; }
.grow.scrolly .grow-track { height: 230vh; height: 230svh; position: relative; }
.grow.scrolly .grow-sticky {
  position: sticky; top: 0; height: 100vh; height: 100svh;
  display: flex; align-items: center; overflow: hidden;
}
.grow.scrolly .wrap { padding-top: 56px; }
.grow.scrolly h2 { font-size: clamp(26px, 6vw, 44px); }
.grow.scrolly .stages { display: grid; grid-template-columns: 1fr; justify-items: center; margin-top: 18px; }
.grow.scrolly .stages li { grid-area: 1 / 1; opacity: 0; transform: scale(.94); transition: opacity .55s ease, transform .6s cubic-bezier(.3, 1.4, .5, 1); }
.grow.scrolly .stages li.on { opacity: 1; transform: none; }
.grow.scrolly .stages img { width: min(560px, 86vw, 62svh); }
.grow.scrolly .stages span { font-size: 20px; }
.grow.scrolly .grow-meter { display: grid; justify-items: center; gap: 8px; margin-top: 6px; }
.grow-count { font-family: var(--head); font-weight: 600; font-size: 18px; color: var(--plum-soft); }
.grow-count b { color: var(--plum); font-weight: 700; font-variant-numeric: tabular-nums; }
.grow-pips { display: flex; gap: 8px; }
.grow-pips i { width: 10px; height: 10px; border-radius: 50%; background: rgba(94, 27, 58, .16); transition: background .3s ease, transform .3s ease; }
.grow-pips i.on { background: var(--pink); transform: scale(1.2); }
.grow-hint { font-size: 14px; color: var(--plum-soft); transition: opacity .3s ease; }
.grow-hint.gone { opacity: 0; }
@media (min-width: 900px) {
  .grow.scrolly .wrap { padding-top: 64px; }
  .grow.scrolly .stages img { width: min(600px, 44vw, 60svh); }
}

/* ---------- less motion, please ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .petals { display: none; }
  .pep-bob { animation: none; }
  .pep-motes, .pep-aura, .legend-shape { animation: none !important; }
  .js [data-reveal-group] > * { opacity: 1; transform: none; transition: none; }
  .btn.jelly { animation: none; }
}

/* ---------- the legendary silhouette: a glow, drifting motes, a golden "?" ---------- */
.pep-q { z-index: 3; }
/* a silhouette cut from the wizard's shape (mirrored), filled with a slowly drifting night sky */
.legend-shape {
  display: block; width: 140px; aspect-ratio: 1020 / 953; transform: scaleX(-1);
  background:
    radial-gradient(1.6px 1.6px at 22% 58%, #fff 50%, transparent 51%),
    radial-gradient(1.4px 1.4px at 64% 70%, #ffe7a8 50%, transparent 51%),
    radial-gradient(1.8px 1.8px at 44% 40%, #fff 50%, transparent 51%),
    radial-gradient(1.2px 1.2px at 78% 50%, #e5d6ff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 33% 80%, #ffe7a8 50%, transparent 51%),
    linear-gradient(130deg, #2b1655, #5b33a8 30%, #2a1650 55%, #7a4fd0 80%, #2b1655);
  background-size: 100% 100%, 100% 100%, 100% 100%, 100% 100%, 100% 100%, 300% 300%;
  -webkit-mask: url(img/wizard-240.webp) center / contain no-repeat; mask: url(img/wizard-240.webp) center / contain no-repeat;
  animation: nebula 7s ease-in-out infinite;
}
@keyframes nebula { 0%, 100% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 0% 50%; } 50% { background-position: 0 0, 0 0, 0 0, 0 0, 0 0, 100% 50%; } }
.pep-legend .pep-body { filter: drop-shadow(0 0 10px rgba(168, 120, 255, .75)) drop-shadow(0 0 20px rgba(255, 205, 110, .35)); }
.pep-legend .pep-q { color: #ffd66b; opacity: 1; text-shadow: 0 0 10px rgba(255, 200, 90, .9), 0 0 2px #b4872a; animation: q-glow 2.6s ease-in-out infinite; }
@keyframes q-glow { 0%, 100% { opacity: .75; } 50% { opacity: 1; } }
.pep-legend .pep-name { color: #7a4fc4; }
.pep-aura {
  position: absolute; left: 50%; top: 55%; width: 170px; height: 170px; margin: -85px 0 0 -85px; border-radius: 50%; z-index: 0;
  background: radial-gradient(circle, rgba(178, 140, 255, .42) 0%, rgba(255, 210, 120, .18) 42%, rgba(178, 140, 255, 0) 70%);
  animation: aura 3.4s ease-in-out infinite;
}
@keyframes aura { 0%, 100% { transform: scale(.9); opacity: .75; } 50% { transform: scale(1.08); opacity: 1; } }
.pep-legend .pep-bob { z-index: 1; }
.pep-motes { position: absolute; inset: -10px -6px 0; z-index: 2; pointer-events: none; }
.pep-motes i {
  position: absolute; bottom: 18%; width: 6px; height: 6px; border-radius: 50%;
  background: #fff1c2; box-shadow: 0 0 8px 2px rgba(255, 214, 107, .9);
  animation: mote var(--d, 3.6s) ease-in-out var(--w, 0s) infinite; opacity: 0;
}
.pep-motes i:nth-child(even) { background: #efe4ff; box-shadow: 0 0 8px 2px rgba(178, 140, 255, .95); width: 5px; height: 5px; }
.pep-motes i:nth-child(1) { left: 12%; --d: 3.8s; --w: 0s;    --x: -10px; }
.pep-motes i:nth-child(2) { left: 26%; --d: 4.4s; --w: -1.2s; --x: 8px; }
.pep-motes i:nth-child(3) { left: 42%; --d: 3.4s; --w: -2.6s; --x: -6px; }
.pep-motes i:nth-child(4) { left: 58%; --d: 4.1s; --w: -.6s;  --x: 12px; }
.pep-motes i:nth-child(5) { left: 72%; --d: 3.7s; --w: -3.1s; --x: -8px; }
.pep-motes i:nth-child(6) { left: 86%; --d: 4.6s; --w: -1.9s; --x: 6px; }
.pep-motes i:nth-child(7) { left: 50%; --d: 5s;   --w: -4s;   --x: 0px; }
@keyframes mote {
  0%   { transform: translate(0, 0) scale(.4); opacity: 0; }
  20%  { opacity: 1; }
  70%  { opacity: .8; }
  100% { transform: translate(var(--x), -120px) scale(1); opacity: 0; }
}
.fx-spark { width: auto; height: auto; margin: -10px 0 0 -8px; font: 700 18px/1 var(--head); color: #ffd66b; text-shadow: 0 0 8px rgba(255, 200, 90, .9); }
.fx-spark.v { color: #c9a8ff; text-shadow: 0 0 8px rgba(168, 120, 255, .95); }

/* ---------- the chonky sleeper (drawn as a flat silhouette) ---------- */
.chonk { display: block; width: 164px; height: auto; fill: #000; }
.pep-secret:not(.pep-legend) .pep-q { top: 66%; }

/* ---------- hero: no form up top, just a quiet line and a scroll cue ---------- */
.hero-note { margin-top: 14px; font-weight: 800; font-size: 15px; color: var(--plum-soft); }
.scroll-cue {
  margin-top: 22px; display: inline-flex; flex-direction: column; align-items: center; gap: 6px;
  color: var(--plum); text-decoration: none; font-family: var(--head); font-weight: 600; font-size: 16px;
}
.scroll-cue-arrow { width: 34px; height: 34px; border-radius: 50%; background: var(--paper); box-shadow: var(--shadow); position: relative; animation: cue 2.2s ease-in-out infinite; }
.scroll-cue-arrow::after { content: ""; position: absolute; left: 50%; top: 44%; width: 9px; height: 9px; border-right: 2.5px solid var(--pink-deep); border-bottom: 2.5px solid var(--pink-deep); transform: translate(-50%, -50%) rotate(45deg); }
@keyframes cue { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(5px); } }
@media (min-width: 900px) { .scroll-cue { align-items: flex-start; flex-direction: row; } }
@media (prefers-reduced-motion: reduce) { .scroll-cue-arrow { animation: none; } }

/* ---------- PASS 3: working sign-up ---------- */
[hidden] { display: none !important; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-note a { color: var(--pink-deep); font-weight: 700; }
.signup .btn[disabled] { opacity: .75; cursor: progress; }
.signup-done { margin-top: 18px; padding: 18px 16px; border-radius: 22px; background: var(--mint); outline: none; }
.signup-done .done-title { font: 600 26px/1.15 var(--head); color: var(--plum); margin: 0 0 6px; }
.signup-done p { color: var(--plum-soft); }
.signup-done:not([hidden]) { animation: done-pop .5s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes done-pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }
.foot-links { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; font-weight: 700; font-size: 15px; }
.foot-links a { color: var(--plum); }

/* ---------- the photo album (A little life in Pepplets) ---------- */
.album { position: relative; padding: 22px 14px 0; }
.album-stack { position: relative; display: grid; touch-action: pan-y; }
.album-card {
  grid-area: 1 / 1; margin: 0; position: relative;
  background: #fffdf8; padding: 10px 10px 0; border-radius: 20px;
  box-shadow: 0 14px 34px rgba(94, 27, 58, .16), 0 2px 6px rgba(94, 27, 58, .08);
  transform-origin: 50% 60%;
  transition: transform .55s cubic-bezier(.3, 1.25, .5, 1), filter .4s ease, box-shadow .4s ease;
  -webkit-user-select: none; user-select: none;
}
.album-card picture { border-radius: 13px; overflow: hidden; }
.album-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
.album-card figcaption { padding: 9px 4px 12px; text-align: center; font: 600 20px/1.2 var(--head); color: var(--plum); }
/* where each card sits: front, peeking right, peeking left */
.album-card.pos-0 { z-index: 3; transform: rotate(-1.5deg); cursor: pointer; }
.album-card.pos-1 { z-index: 2; transform: translate(6%, -5%) rotate(5deg) scale(.95); filter: brightness(.96) saturate(.92); box-shadow: 0 8px 20px rgba(94, 27, 58, .12); }
.album-card.pos-2 { z-index: 1; transform: translate(-6%, -8%) rotate(-7deg) scale(.91); filter: brightness(.92) saturate(.85); box-shadow: 0 6px 16px rgba(94, 27, 58, .10); }
@media (hover: hover) {
  .album-card.pos-0:hover { transform: rotate(-.5deg) translateY(-4px); }
  .album-stack:hover .album-card.pos-1 { transform: translate(8%, -7%) rotate(7deg) scale(.95); }
  .album-stack:hover .album-card.pos-2 { transform: translate(-8%, -10%) rotate(-9deg) scale(.91); }
}

/* the glowing "next" arrow on the front photo's edge */
.album-next {
  position: absolute; z-index: 5; right: -14px; top: 42%; transform: translateY(-50%);
  width: 56px; height: 56px; border-radius: 50%; border: 3px solid #fff;
  background: var(--pink); cursor: pointer; -webkit-tap-highlight-color: transparent;
  box-shadow: 0 4px 0 var(--pink-deep), 0 0 0 0 rgba(224, 72, 130, .55);
  animation: next-glow 2s ease-out infinite;
  transition: transform .15s ease;
}
.album-next span { position: absolute; left: 44%; top: 50%; width: 13px; height: 13px; border-right: 3.5px solid #fff; border-top: 3.5px solid #fff; border-radius: 2px; transform: translate(-50%, -50%) rotate(45deg); }
.album-next:hover { transform: translateY(-50%) scale(1.07); }
.album-next:active { transform: translateY(-46%) scale(.94); }
@keyframes next-glow {
  0%   { box-shadow: 0 4px 0 var(--pink-deep), 0 0 0 0 rgba(224, 72, 130, .55), 0 0 18px rgba(255, 150, 190, .6); }
  70%  { box-shadow: 0 4px 0 var(--pink-deep), 0 0 0 16px rgba(224, 72, 130, 0), 0 0 26px rgba(255, 150, 190, .8); }
  100% { box-shadow: 0 4px 0 var(--pink-deep), 0 0 0 0 rgba(224, 72, 130, 0), 0 0 18px rgba(255, 150, 190, .6); }
}
.album-hint { margin-top: 18px; text-align: center; font-weight: 700; font-size: 15px; color: var(--plum-soft); }
.album-hint [data-count] { color: var(--pink-deep); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) {
  .album { padding: 26px 24px 0 12px; }
  .album-next { right: -22px; width: 62px; height: 62px; }
  .album-card figcaption { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .album-card { transition: none; }
  .album-next { animation: none; }
}

/* ---------- meet: the 20 million line, names, the rarity teaser ---------- */
.meet-sub { max-width: 34em; margin: 14px auto 0; color: var(--plum-soft); font-size: 17px; }
.big-num { color: var(--pink-deep); font-family: var(--head); font-weight: 700; font-size: 1.15em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.meet .meet-hint { margin-top: 8px; font-size: 15px; }
.pep-trait { margin-top: -6px; font-size: 14px; font-weight: 700; color: var(--plum-soft); }
.rarity-tease { max-width: 30em; margin: 44px auto 0; font: 600 19px/1.4 var(--head); color: var(--plum); }
.shiny-word {
  background: linear-gradient(100deg, #e04882 0%, #f5c13d 25%, #7cc7ff 50%, #b48cff 75%, #e04882 100%);
  background-size: 200% 100%; -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: shiny 3s linear infinite; position: relative; font-weight: 700;
}
.shiny-word::after { content: "\2726"; position: absolute; right: -14px; top: -10px; font-size: 13px; color: #f5c13d; -webkit-text-fill-color: #f5c13d; animation: twinkle 1.6s ease-in-out infinite; }
@keyframes shiny { to { background-position: -200% 0; } }
@keyframes twinkle { 0%, 100% { opacity: .2; transform: scale(.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@media (min-width: 900px) { .meet-sub { font-size: 18px; } .rarity-tease { font-size: 21px; } }
@media (prefers-reduced-motion: reduce) { .shiny-word, .shiny-word::after { animation: none; } }

/* ---------- growing camp: progress dots run down the side of the picture ---------- */
.grow.scrolly .wrap { position: relative; }
.grow.scrolly .grow-pips {
  position: absolute; top: 50%; transform: translateY(-50%);
  left: calc(50% + min(43vw, 280px, 31svh) + 4px);
  flex-direction: column; gap: 14px; padding: 6px 0;
}
.grow.scrolly .grow-pips::before { /* the little rail behind the dots */
  content: ""; position: absolute; left: 50%; top: 10px; bottom: 10px; width: 2px; margin-left: -1px; border-radius: 2px; background: rgba(94, 27, 58, .12); z-index: -1;
}
@media (min-width: 900px) {
  .grow.scrolly .grow-pips { left: calc(50% + min(300px, 22vw, 30svh) + 36px); gap: 18px; }
  .grow-pips i { width: 12px; height: 12px; }
}
