/* Slime Station – styles */
:root {
  --ink: #2a0d55;
  --purple: #6d28d9;
  --violet: #a855f7;
  --lilac: #efe4ff;
  --lilac-2: #dcc7ff;
  --lime: #a3e635;
  --lime-2: #c6f432;
  --lime-dark: #4d7c0f;
  --pink: #ff2e9a;
  --pink-soft: #ffb3dc;
  --cyan: #22d3ee;
  --aqua: #c8f7fb;
  --yellow: #fff3a3;
  --paper: #fffdf8;
  --white: #fff;

  --radius: 26px;
  --pop: 0 6px 0 var(--ink);
  --pop-sm: 0 4px 0 var(--ink);
  --bounce: cubic-bezier(.34, 1.56, .64, 1);
  --font-display: 'Lilita One', 'Arial Rounded MT Bold', ui-rounded, system-ui, sans-serif;
  --font-body: 'Fredoka', ui-rounded, system-ui, sans-serif;
  --gutter: 16px;
  --bar-h: 76px;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.45;
  overflow-x: hidden;
  -webkit-tap-highlight-color: transparent;
}
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; line-height: 1.05; margin: 0; letter-spacing: .01em; }
p { margin: 0; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
:focus-visible { outline: 4px solid var(--cyan); outline-offset: 3px; border-radius: 12px; }
.defs { position: absolute; width: 0; height: 0; }
canvas { display: block; touch-action: manipulation; }

/* ---------- Background blobs ---------- */
.bg-blobs { position: fixed; inset: 0; pointer-events: none; z-index: -1; overflow: hidden; }
.bg-blobs span {
  position: absolute;
  width: 46vmax; height: 46vmax;
  opacity: .16;
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  animation: drift 28s ease-in-out infinite alternate;
  will-change: transform;
}
.bg-blobs span:nth-child(1) { background: var(--lime); top: -10vmax; left: -14vmax; }
.bg-blobs span:nth-child(2) { background: var(--pink); top: 30vh; right: -20vmax; animation-delay: -8s; }
.bg-blobs span:nth-child(3) { background: var(--cyan); bottom: -18vmax; left: 10vw; animation-delay: -3s; }
.bg-blobs span:nth-child(4) { background: var(--violet); top: 110vh; left: -18vmax; width: 30vmax; height: 30vmax; animation-delay: -12s; }
.bg-blobs span:nth-child(5) { background: var(--yellow); top: 60vh; left: 40vw; width: 22vmax; height: 22vmax; opacity: .3; animation-delay: -16s; }

@keyframes morph {
  0%, 100% { border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%; }
  33% { border-radius: 63% 37% 40% 60% / 58% 37% 63% 42%; }
  66% { border-radius: 37% 63% 52% 48% / 36% 61% 39% 64%; }
}
@keyframes drift {
  from { transform: translate(0, 0) rotate(0deg); }
  to { transform: translate(6vw, -4vh) rotate(40deg); }
}

/* ---------- Goo cursor trail ---------- */
.goo-trail { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
.goo-trail i {
  position: absolute; left: 0; top: 0;
  border-radius: 50%;
  background: var(--lime);
  box-shadow: inset -3px -3px 0 rgba(42, 13, 85, .15);
  will-change: transform;
  transition: opacity .4s;
}

/* ---------- Top bar ---------- */
.topbar {
  position: fixed;
  top: calc(10px + env(safe-area-inset-top));
  left: 50%;
  transform: translateX(-50%);
  z-index: 50;
  width: min(760px, calc(100% - 2 * var(--gutter)));
  display: flex; align-items: center; gap: 8px;
  padding: 6px 6px 6px 16px;
  background: rgba(255, 255, 255, .86);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop-sm);
}
.brand {
  font-family: var(--font-display);
  font-size: 1.05rem;
  text-decoration: none;
  display: flex; align-items: center; gap: 8px;
  white-space: nowrap;
}
.brand-dot {
  width: 18px; height: 18px;
  background: var(--lime);
  border: 2.5px solid var(--ink);
  border-radius: 50% 50% 50% 50% / 60% 60% 40% 40%;
  animation: morph 4s ease-in-out infinite;
}
.nav { margin-left: auto; display: flex; gap: 2px; }
.nav a {
  text-decoration: none;
  font-weight: 600;
  font-size: .92rem;
  padding: 8px 10px;
  border-radius: 999px;
  white-space: nowrap;
  transition: background .2s;
}
.nav a:hover, .nav a.active { background: var(--lilac); }
.sound-toggle {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 2.5px solid var(--ink);
  background: var(--white);
  display: grid; place-items: center;
}
.sound-toggle svg { width: 22px; height: 22px; fill: none; stroke: var(--ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.sound-toggle .spk { fill: var(--ink); }
.sound-toggle .wave { display: none; }
.sound-toggle[aria-pressed="true"] { background: var(--lime); }
.sound-toggle[aria-pressed="true"] .wave { display: block; }
.sound-toggle[aria-pressed="true"] .mute { display: none; }
@media (max-width: 380px) {
  .brand { font-size: .95rem; }
  .nav a { padding: 8px 7px; font-size: .85rem; }
}

/* ---------- Drip bands ---------- */
.drips {
  position: absolute; left: 0; right: 0; top: 0;
  height: 130px;
  pointer-events: none;
  overflow: hidden;
}
.drips svg { display: block; width: 100%; height: 100%; }
.drips-hero { height: max(38vh, 260px); z-index: 0; }
.drips-hero .drip { animation-name: dripLong; }
@keyframes dripLong {
  0%, 100% { transform: scaleY(.78); }
  55% { transform: scaleY(1); }
}
.hero-inner { position: relative; z-index: 1; }
.drips .drip {
  transform-box: fill-box;
  transform-origin: 50% 0;
  animation: drip var(--d) ease-in-out var(--dl) infinite;
}
.drips .drop {
  transform-box: fill-box;
  transform-origin: 50% 50%;
  animation: drop var(--d) ease-in var(--dl) infinite;
}
@keyframes drip {
  0%, 100% { transform: scaleY(.45); }
  55% { transform: scaleY(1); }
}
@keyframes drop {
  0%, 40% { transform: translateY(-40%) scale(.2); opacity: 0; }
  55% { transform: translateY(0) scale(1); opacity: 1; }
  75% { transform: translateY(0) scale(1); opacity: 1; }
  100% { transform: translateY(160%) scale(.7); opacity: 0; }
}

/* Off-screen decoration stops animating (toggled from app.js) */
.paused, .paused * { animation-play-state: paused !important; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-size: 1.2rem;
  letter-spacing: .02em;
  padding: .8em 1.5em;
  border-radius: 999px;
  border: 3px solid var(--ink);
  background: var(--white);
  color: var(--ink);
  text-decoration: none;
  box-shadow: var(--pop);
  transition: transform .15s var(--bounce), box-shadow .15s;
  user-select: none;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 8px 0 var(--ink); }
.btn:active { transform: translateY(5px) scale(.98); box-shadow: 0 1px 0 var(--ink); }
.btn-lime { background: var(--lime); }
.btn-cyan { background: var(--cyan); }
.btn-ghost { background: var(--white); }
.btn-sm { font-size: 1rem; padding: .6em 1.1em; box-shadow: var(--pop-sm); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: 100svh;
  padding: 100px var(--gutter) 40px;
  display: grid;
  align-items: center;
  overflow: hidden;
}
.hero-inner {
  width: min(1140px, 100%);
  margin: 0 auto;
  display: grid;
  gap: 8px;
  text-align: center;
}
.eyebrow {
  font-family: var(--font-display);
  font-size: clamp(1.1rem, 4.5vw, 1.5rem);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--white);
  -webkit-text-stroke: .18em var(--ink);
  paint-order: stroke fill;
}
.h1-small {
  display: block;
  font-size: clamp(2.6rem, 12vw, 5.2rem);
  color: var(--ink);
  -webkit-text-stroke: .05em var(--white);
  paint-order: stroke fill;
  text-shadow: 0 .06em 0 rgba(42, 13, 85, .2);
}
.h1-slime {
  display: block;
  font-size: clamp(5.2rem, 30vw, 11.5rem);
  line-height: .95;
  margin-top: -.05em;
  white-space: nowrap;
}
.h1-slime > span {
  display: inline-block;
  color: var(--lime);
  -webkit-text-stroke: .085em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .07em 0 var(--ink), 0 .12em 0 rgba(42, 13, 85, .15);
  transform-origin: 50% 90%;
  animation: bob 3.2s ease-in-out infinite;
  animation-delay: calc(var(--i, 0) * -.25s);
  cursor: pointer;
  user-select: none;
}
.h1-slime > span.jelly { animation: jelly .8s var(--bounce); }
@keyframes bob {
  0%, 100% { transform: translateY(0) rotate(-2deg); }
  50% { transform: translateY(-.06em) rotate(2deg); }
}
@keyframes jelly {
  0% { transform: scale(1, 1); }
  25% { transform: scale(1.25, .7); }
  45% { transform: scale(.8, 1.25) translateY(-.12em); }
  65% { transform: scale(1.1, .9); }
  85% { transform: scale(.97, 1.03); }
  100% { transform: scale(1, 1); }
}
.lead {
  font-family: var(--font-display);
  font-size: clamp(1.4rem, 6vw, 2rem);
  color: var(--purple);
  transform: rotate(-2deg);
  margin-top: 6px;
}
.mini-steps {
  list-style: none; padding: 0; margin: 14px auto 18px;
  display: grid; gap: 8px;
  width: min(380px, 100%);
}
.mini-steps a {
  display: flex; align-items: center; gap: 12px;
  padding: 6px 14px 6px 6px;
  background: var(--lilac);
  border-radius: 999px;
  text-decoration: none;
  font-weight: 600;
  text-align: left;
  transition: transform .2s var(--bounce), background .2s;
}
.mini-steps a:hover { transform: translateX(6px); background: var(--lilac-2); }
.mini-steps b {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-weight: 400;
  font-size: 1.2rem;
}
.hero .btn { justify-self: center; }
.hero-stage {
  position: relative;
  height: min(86vw, 380px);
  min-height: 280px;
  margin-top: 6px;
}
.hero-stage canvas { width: 100%; height: 100%; cursor: grab; }
.hero-stage canvas:active { cursor: grabbing; }
.hint {
  position: absolute; left: 50%; bottom: 0;
  transform: translateX(-50%);
  display: flex; align-items: center; gap: 6px;
  white-space: nowrap;
  font-weight: 600;
  font-size: .95rem;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 4px 14px 4px 8px;
  box-shadow: var(--pop-sm);
  transition: opacity .5s, transform .5s var(--bounce);
  pointer-events: none;
}
.hint.gone { opacity: 0; transform: translateX(-50%) translateY(10px) scale(.9); }
.hint-finger {
  width: 22px; height: 22px;
  border-radius: 50%;
  background: var(--pink);
  border: 2.5px solid var(--ink);
  animation: tap 1.4s ease-in-out infinite;
}
@keyframes tap {
  0%, 100% { transform: scale(1); }
  40% { transform: scale(.7); }
  60% { transform: scale(1.15); }
}

/* Phones: fit the title, steps and the slime into the first screen.
   The slime takes whatever height is left above the party bar. */
@media (max-width: 899px) {
  .hero {
    display: flex;
    align-items: stretch;
    padding: calc(76px + env(safe-area-inset-top)) var(--gutter) calc(var(--bar-h) + 14px + env(safe-area-inset-bottom));
  }
  .hero-inner { display: flex; flex-direction: column; gap: 4px; }
  .eyebrow { font-size: 1rem; }
  .h1-small { font-size: clamp(2.2rem, 11vw, 3.4rem); }
  .h1-slime { font-size: clamp(4.4rem, 26vw, 8rem); }
  .lead { font-size: 1.25rem; margin-top: 2px; }
  .mini-steps {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    width: 100%;
    margin: 8px 0 0;
  }
  .mini-steps a {
    flex-direction: column;
    justify-content: flex-start;
    gap: 4px;
    height: 100%;
    padding: 8px 6px 10px;
    border-radius: 18px;
    text-align: center;
    font-size: .82rem;
    line-height: 1.15;
  }
  .mini-steps a:hover { transform: translateY(-3px); }
  .mini-steps b { width: 30px; height: 30px; font-size: 1.05rem; }
  .hero-stage { flex: 1 1 auto; height: auto; min-height: 230px; margin-top: 0; }
}

@media (min-width: 900px) {
  .hero-inner { grid-template-columns: 1.05fr 1fr; align-items: center; text-align: left; gap: 24px; }
  .hero-copy { display: grid; justify-items: start; }
  .hero .btn { justify-self: start; }
  .mini-steps { margin-left: 0; }
  .hero-stage { height: 520px; }
}

/* ---------- Section heads ---------- */
section { position: relative; }
.section-head {
  text-align: center;
  padding: 0 var(--gutter);
  margin: 0 auto 26px;
  max-width: 680px;
}
.section-head h2 {
  font-size: clamp(2.4rem, 10vw, 4rem);
  color: var(--purple);
  -webkit-text-stroke: .04em var(--white);
  paint-order: stroke fill;
  text-shadow: 0 .06em 0 var(--ink);
}
.section-head p { margin-top: 10px; font-size: 1.05rem; font-weight: 500; }

/* ---------- Builder ---------- */
.builder { padding: 70px 0 60px; }
.builder-grid {
  width: min(1140px, 100%);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 18px;
}
.stage-wrap {
  position: sticky;
  top: calc(80px + env(safe-area-inset-top));
  z-index: 5;
}
.stage {
  position: relative;
  height: 240px;
  border-radius: var(--radius);
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 20% 15%, rgba(255, 255, 255, .9) 0 8%, transparent 9%),
    radial-gradient(120% 90% at 50% 100%, var(--lilac-2), var(--lilac) 55%, #f8f2ff);
  box-shadow: var(--pop);
  overflow: hidden;
}
.stage canvas { width: 100%; height: 100%; cursor: grab; }
.stage canvas:active { cursor: grabbing; }
.stage .hint { top: 50px; bottom: auto; left: 12px; transform: none; font-size: .85rem; }
.stage .hint.gone { transform: translateY(-6px) scale(.9); }
.stage-label {
  position: absolute; left: 12px; top: 10px;
  font-family: var(--font-display);
  font-size: 1rem;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 12px;
  max-width: calc(100% - 24px);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  pointer-events: none;
}
.bump { animation: bump .45s var(--bounce); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.25); } 100% { transform: scale(1); } }

.steps { display: grid; gap: 22px; }
.step {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 16px;
  box-shadow: var(--pop);
}
.step-head { display: flex; align-items: center; gap: 0; margin: -4px 0 14px -4px; }
.step-num {
  position: relative; z-index: 1;
  flex: none;
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--purple);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 1.8rem;
  border: 3px solid var(--ink);
}
.step-head h3 {
  font-size: clamp(1.15rem, 5vw, 1.45rem);
  background: var(--lilac-2);
  padding: 8px 16px 8px 22px;
  margin-left: -14px;
  border-radius: 0 999px 999px 0;
}

.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pick-card {
  font: inherit; color: inherit; text-align: center;
  border: 3px solid var(--ink);
  border-radius: 22px;
  padding: 14px 10px 16px;
  display: grid; justify-items: center; align-content: start; gap: 4px;
  transition: transform .25s var(--bounce), box-shadow .25s;
}
.pick-card.is-clear { background: var(--aqua); }
.pick-card.is-white { background: var(--white); }
.pick-card[aria-pressed="true"] { box-shadow: 0 0 0 4px var(--lime), var(--pop); transform: translateY(-3px) rotate(-1deg); }
.pick-card.is-white[aria-pressed="true"] { transform: translateY(-3px) rotate(1deg); }
.pick-name { font-family: var(--font-display); font-size: 1.3rem; }
.pick-desc { font-size: .9rem; font-weight: 500; line-height: 1.3; }
.mini-blob {
  width: 64px; height: 50px;
  margin-bottom: 4px;
  border: 3px solid var(--ink);
  border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%;
  animation: morph 5s ease-in-out infinite, wobble 2.6s ease-in-out infinite;
  position: relative;
}
.mini-blob::after {
  content: ""; position: absolute; left: 22%; top: 18%;
  width: 26%; height: 18%; border-radius: 50%;
  background: rgba(255, 255, 255, .9); transform: rotate(-25deg);
}
.pick-card.is-clear {
  background:
    radial-gradient(circle, rgba(124, 58, 237, .18) 2px, transparent 2.5px) 0 0 / 14px 14px,
    var(--aqua);
}
/* Clear: see-through glass with a tinted rim, so the dots show through */
.is-clear .mini-blob {
  background: rgba(255, 255, 255, .12);
  border-color: rgba(42, 13, 85, .55);
  box-shadow: inset 0 -8px 12px rgba(34, 211, 238, .55), inset 0 3px 6px rgba(255, 255, 255, .9);
}
/* White: opaque and creamy with soft satin shading */
.is-white .mini-blob {
  background: radial-gradient(circle at 35% 30%, #fff 0 25%, #f3edff 55%, #d8cbf2);
  box-shadow: inset -4px -6px 8px rgba(42, 13, 85, .14);
  animation-delay: -2s, -1s;
}
.is-white .mini-blob::after { opacity: .5; filter: blur(1px); }
.pick-tag {
  font-family: var(--font-display);
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  background: var(--white);
  border: 2px solid var(--ink);
  border-radius: 999px;
  padding: 1px 10px;
}
.is-white .pick-tag { background: var(--ink); color: var(--white); }
.pick-card:active .mini-blob { animation: jelly .7s var(--bounce); }
@keyframes wobble { 0%, 100% { transform: scale(1, 1); } 50% { transform: scale(1.06, .94); } }

.stepper {
  display: flex; align-items: center; justify-content: space-between;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px;
}
.stepper button {
  width: 40px; height: 40px;
  border-radius: 50%;
  border: 0;
  background: var(--lilac);
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
  display: grid; place-items: center;
  transition: transform .15s var(--bounce), background .2s;
  touch-action: manipulation;
}
.stepper button[data-d="1"] { background: var(--lime); }
.stepper button:active { transform: scale(.85); }
.stepper button:disabled { opacity: .35; cursor: default; }
.stepper output { font-family: var(--font-display); font-size: 1.35rem; min-width: 2ch; text-align: center; }
.stepper-lg button { width: 48px; height: 48px; font-size: 1.8rem; }
.stepper-lg output { font-size: 1.7rem; }

/* step 2 */
.addin-tabs {
  display: grid; grid-template-columns: 1fr 1fr;
  background: var(--lilac);
  border-radius: 999px;
  padding: 4px;
  margin-bottom: 14px;
}
.addin-tabs button {
  border: 0; background: none;
  padding: 10px 6px;
  border-radius: 999px;
  font-weight: 600;
  font-size: .92rem;
  transition: background .25s, transform .25s var(--bounce);
}
.addin-tabs button[aria-selected="true"] { background: var(--white); box-shadow: 0 0 0 2.5px var(--ink); }
.addin-panel { border-radius: 20px; padding: 14px; background: var(--aqua); transition: background .3s; }
.addin-panel.white { background: #f6f1ff; }
.included { list-style: none; margin: 0 0 12px; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.included li {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 5px 12px 5px 6px;
  font-weight: 600;
  animation: popIn .45s var(--bounce) both;
  animation-delay: calc(var(--i) * 70ms);
}
.included li i {
  width: 20px; height: 20px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--c, var(--lime));
}
@keyframes popIn { from { transform: scale(.4); opacity: 0; } to { transform: scale(1); opacity: 1; } }
.mix-toggle { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; }
.mix-toggle[hidden] { display: none; }
.mix-toggle button {
  flex: 1;
  border: 2.5px solid var(--ink);
  background: var(--white);
  border-radius: 999px;
  padding: 9px 8px;
  font-weight: 600;
  transition: background .2s, transform .2s var(--bounce);
}
.mix-toggle button[aria-checked="true"] { background: var(--pink); color: var(--white); transform: scale(1.04); }
.mix-toggle .or { font-family: var(--font-display); }
.swatch-title { font-weight: 600; margin-bottom: 8px; }
.swatches { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button {
  width: 44px; height: 44px;
  border: 3px solid var(--ink);
  background: var(--c);
  border-radius: 50% 50% 46% 54% / 58% 56% 44% 42%;
  transition: transform .25s var(--bounce), border-radius .4s;
  position: relative;
}
.swatches button::after {
  content: ""; position: absolute; left: 22%; top: 18%;
  width: 28%; height: 20%; border-radius: 50%;
  background: rgba(255, 255, 255, .8);
}
.swatches button[aria-checked="true"] {
  transform: scale(1.15) translateY(-2px);
  border-radius: 42% 58% 63% 37% / 41% 44% 56% 59%;
  box-shadow: 0 0 0 3px var(--white), 0 0 0 6px var(--ink);
}
.small-print { font-size: .82rem; margin-top: 10px; opacity: .75; }

/* step 3 */
.step-intro { font-weight: 500; margin-bottom: 12px; }
.extras { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.extras button {
  display: inline-flex; align-items: center; gap: 8px;
  border: 2.5px solid var(--ink);
  background: var(--white);
  border-radius: 999px;
  padding: 8px 14px 8px 8px;
  font-weight: 600;
  transition: background .2s, transform .25s var(--bounce), box-shadow .2s;
}
.extras button i {
  width: 24px; height: 24px; border-radius: 50%;
  border: 2px solid var(--ink);
  background: var(--c);
  display: grid; place-items: center;
  font-style: normal; font-size: .8rem; color: var(--ink);
  transition: transform .3s var(--bounce);
}
.extras button[aria-pressed="true"] { background: #f3ffd6; box-shadow: var(--pop-sm); transform: translateY(-2px); }
.extras button[aria-pressed="true"] i { transform: rotate(360deg) scale(1.15); }
.extras button[aria-pressed="true"] i::after { content: "✓"; font-weight: 700; }

@media (min-width: 900px) {
  .builder-grid { grid-template-columns: 1fr 1.05fr; align-items: start; gap: 28px; }
  .stage-wrap { top: 96px; }
  .stage { height: 500px; }
  .stage-label { font-size: 1.2rem; top: 16px; left: 16px; }
  .step { padding: 22px; }
}
/* ---------- About ---------- */
.about { padding: 70px 0 10px; }
.about-grid {
  list-style: none; margin: 0 auto; padding: 0 var(--gutter);
  width: min(1100px, 100%);
  display: grid; gap: 16px;
}
.about-card {
  position: relative;
  background: var(--tone);
  border: 3px solid var(--ink);
  border-radius: var(--radius);
  padding: 20px 18px 20px 104px;
  box-shadow: var(--pop);
  min-height: 120px;
}
.about-card h3 { font-size: 1.7rem; margin-bottom: 4px; }
.about-card p { font-weight: 500; }
.about-blob {
  position: absolute; left: 18px; top: 22px;
  width: 70px; height: 62px;
  background: radial-gradient(circle at 30% 30%, #fff 0 10%, transparent 11%), var(--c);
  border: 3px solid var(--ink);
  border-radius: 50% 50% 46% 54% / 62% 58% 42% 38%;
  animation: morph 6s ease-in-out infinite, wobble 2.8s ease-in-out infinite;
}
.about-card:nth-child(2) .about-blob { animation-delay: -2s, -1s; }
.about-card:nth-child(3) .about-blob { animation-delay: -4s, -2s; }
@media (min-width: 800px) {
  .about-grid { grid-template-columns: repeat(3, 1fr); }
  .about-card { padding: 104px 20px 22px; text-align: center; }
  .about-blob { left: 50%; margin-left: -35px; }
}

/* ---------- Party ---------- */
.party { padding: 50px var(--gutter) 70px; }
.party-card {
  width: min(1000px, 100%);
  margin: 0 auto;
  padding: 24px 18px;
  background: linear-gradient(160deg, #ff5fb4, var(--pink) 55%, #d61477);
  border: 3px solid var(--ink);
  border-radius: 32px;
  box-shadow: 0 8px 0 var(--ink);
  display: grid; gap: 22px;
}
.party-kicker {
  display: inline-block;
  font-family: var(--font-display);
  text-transform: uppercase; letter-spacing: .1em;
  background: var(--yellow);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 3px 14px;
  transform: rotate(-3deg);
  margin-bottom: 10px;
}
.party-intro h2 {
  font-size: clamp(2.2rem, 10vw, 3.6rem);
  color: var(--white);
  -webkit-text-stroke: .07em var(--ink);
  paint-order: stroke fill;
  text-shadow: 0 .06em 0 var(--ink);
  margin-bottom: 10px;
}
.party-intro p:last-child { font-weight: 600; font-size: 1.08rem; color: var(--white); text-shadow: 0 2px 0 rgba(42, 13, 85, .35); max-width: 640px; }
.pack-builder { display: grid; gap: 18px; }
.includes { font-family: var(--font-display); font-size: 1.2rem; margin-bottom: 10px; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li {
  background: var(--white);
  border: 2.5px solid var(--ink);
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 600;
  transform: scale(.4); opacity: 0;
}
.party-card.in .chips li { animation: popIn .5s var(--bounce) forwards; animation-delay: calc(var(--i) * 80ms + 200ms); }
.pack-qty {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 16px;
  display: grid; gap: 12px;
  box-shadow: var(--pop-sm);
}
.pack-label { font-family: var(--font-display); font-size: 1.3rem; text-align: center; }
.pack-qty .stepper { width: min(240px, 100%); justify-self: center; }
.pack-qty .stepper output { font-size: 2.2rem; }
.pack-range { width: 100%; accent-color: var(--purple); height: 28px; }
.pack-sum { text-align: center; font-weight: 600; }
.jar-shelf {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 4px;
  min-height: 60px;
  padding: 8px 6px 10px;
  border-radius: 16px;
  background: linear-gradient(transparent 85%, var(--lilac-2) 85%);
}
.mini-jar {
  width: 30px; height: 40px;
  animation: jarDrop .55s var(--bounce) both;
}
.mini-jar svg { width: 100%; height: 100%; display: block; overflow: visible; }
.mini-jar.leaving { animation: jarOut .25s ease-in forwards; }
.jar-more { font-family: var(--font-display); font-size: 1.2rem; align-self: center; padding: 0 4px; }
@keyframes jarDrop { 0% { transform: translateY(-60px) scale(.6); opacity: 0; } 60% { transform: translateY(4px) scale(1.1, .85); opacity: 1; } 100% { transform: none; } }
@keyframes jarOut { to { transform: scale(.2); opacity: 0; } }

.party-form {
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 24px;
  padding: 18px 16px;
  box-shadow: var(--pop-sm);
}
.party-form h3 { font-size: 1.6rem; color: var(--purple); margin-bottom: 12px; }
.field-grid { display: grid; gap: 12px; margin-bottom: 16px; }
.field { display: grid; gap: 4px; font-weight: 600; font-size: .95rem; }
.field input, .field textarea {
  font: inherit; font-weight: 500; font-size: 16px;
  color: var(--ink);
  border: 2.5px solid var(--ink);
  border-radius: 14px;
  padding: 11px 12px;
  background: #fbf8ff;
  width: 100%;
  min-height: 48px;
  transition: box-shadow .2s, background .2s;
}
.field textarea { resize: vertical; }
.field input:focus, .field textarea:focus { outline: none; background: var(--white); box-shadow: 0 0 0 4px var(--cyan); }
.btn-send { width: 100%; }
.btn-send svg { width: 24px; height: 24px; fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.form-note { text-align: center; }
@media (min-width: 700px) {
  .party-card { padding: 34px; }
  .pack-builder { grid-template-columns: 1fr 1fr; align-items: start; }
  .field-grid { grid-template-columns: 1fr 1fr; }
  .field-wide { grid-column: 1 / -1; }
  .btn-send { width: auto; }
  .form-note { text-align: left; }
}

/* ---------- Party call to action bar ---------- */
.cta-bar {
  position: fixed;
  left: 50%;
  bottom: calc(10px + env(safe-area-inset-bottom));
  transform: translateX(-50%);
  width: min(520px, calc(100% - 2 * var(--gutter)));
  z-index: 60;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 8px 8px 8px 18px;
  background: var(--white);
  border: 3px solid var(--ink);
  border-radius: 999px;
  box-shadow: var(--pop);
  text-decoration: none;
  transition: transform .45s var(--bounce);
}
.cta-bar.hide { transform: translateX(-50%) translateY(160%); }
.cta-text { font-weight: 500; line-height: 1.2; font-size: .95rem; }
.cta-text b { display: block; font-family: var(--font-display); font-weight: 400; font-size: 1.15rem; }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--ink); color: var(--white); margin-top: 60px; }
.footer-goo { position: absolute; left: 0; bottom: 100%; width: 100%; height: 80px; overflow: hidden; }
.fw { animation: footerWave 12s linear infinite; }
.fw2 { animation-duration: 9s; animation-direction: reverse; }
.footer-goo .fw2 { fill: var(--ink); }
@keyframes footerWave { from { transform: translateX(0); } to { transform: translateX(-1440px); } }
.footer-inner { padding: 20px var(--gutter) 30px; text-align: center; }
.footer-brand { font-family: var(--font-display); font-size: 2rem; color: var(--lime); }

/* ---------- Toast ---------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: calc(var(--bar-h) + 24px + env(safe-area-inset-bottom));
  transform: translate(-50%, 20px) scale(.9);
  z-index: 90;
  background: var(--ink);
  color: var(--white);
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s, transform .35s var(--bounce);
}
.toast.show { opacity: 1; transform: translate(-50%, 0) scale(1); }

/* ---------- Tap splats ---------- */
.splat {
  position: fixed;
  z-index: 85;
  width: 90px; height: 90px;
  margin: -45px 0 0 -45px;
  pointer-events: none;
  animation: splat .9s cubic-bezier(.2, .9, .3, 1.2) forwards;
}
.splat svg { width: 100%; height: 100%; overflow: visible; }
@keyframes splat {
  0% { transform: scale(.1) rotate(var(--r)); opacity: 1; }
  25% { transform: scale(1.05) rotate(var(--r)); opacity: .95; }
  70% { transform: scale(1) rotate(var(--r)); opacity: .8; }
  100% { transform: scale(.9) translateY(14px) rotate(var(--r)); opacity: 0; }
}

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(36px) scale(.96); transition: opacity .6s ease, transform .8s var(--bounce); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .reveal { opacity: 1; transform: none; }
  .chips li { transform: none; opacity: 1; }
}
