:root {
  --plum: #2b1446;
  --violet: #6a2bd6;
  --pink: #ff3d8b;
  --coral: #ff7a59;
  --lemon: #ffe45c;
  --blush: #ffe3ec;
  --mint: #7ce0b8;
  --white: #ffffff;
  --hard: 6px 6px 0 var(--plum);
  --gutter: clamp(16px, 5vw, 72px);
  --display: "Dela Gothic One", "Bricolage Grotesque", system-ui, sans-serif;
  --burst: polygon(50.0% 0.0%, 58.5% 13.0%, 71.7% 5.0%, 75.6% 17.9%, 89.1% 18.8%, 84.2% 33.5%, 98.7% 38.9%, 91.0% 50.0%, 98.7% 61.1%, 84.2% 66.5%, 89.1% 81.2%, 75.6% 82.1%, 71.7% 95.0%, 58.5% 87.0%, 50.0% 100.0%, 40.9% 90.0%, 28.3% 95.0%, 26.3% 79.7%, 10.9% 81.2%, 13.1% 67.8%, 1.3% 61.1%, 12.0% 50.0%, 1.3% 38.9%, 13.1% 32.2%, 10.9% 18.8%, 26.3% 20.3%, 28.3% 5.0%, 40.9% 10.0%);
  --star: polygon(50% 0, 61% 39%, 100% 50%, 61% 61%, 50% 100%, 39% 61%, 0 50%, 39% 39%);
  font-family: "Bricolage Grotesque", system-ui, sans-serif;
  font-optical-sizing: auto;
  color-scheme: light;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--violet);
  color: var(--plum);
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-x: hidden;
}

a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 0.18em; }

:focus-visible {
  outline: 4px solid var(--lemon);
  outline-offset: 3px;
  border-radius: 8px;
}

h1, h2, h3 { margin: 0; line-height: 1; }

.section-title {
  font-size: clamp(2.75rem, 8vw, 7rem);
  font-weight: 800;
  font-stretch: 78%;
  letter-spacing: -0.03em;
  line-height: 0.9;
}

/* Letters split by app.js for the waveform effect. */
[data-wave] .ch { display: inline-block; white-space: pre; will-change: font-variation-settings, transform; }

/* ───────── Header ───────── */

.site-header {
  position: relative;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 18px var(--gutter);
  background: var(--violet);
  color: var(--white);
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-weight: 800;
  font-size: 1.3rem;
  font-stretch: 85%;
}

.brand img { border-radius: 22.5%; box-shadow: 3px 3px 0 var(--plum); transform: rotate(-6deg); }

.site-header nav { display: flex; gap: clamp(10px, 2.5vw, 28px); }

.site-header nav a { text-decoration: none; font-weight: 600; }

.site-header nav a:hover { text-decoration: underline wavy var(--lemon); }

/* ───────── Hero ───────── */

.hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  grid-template-areas: "title speaker" "copy speaker";
  gap: 0 clamp(16px, 3vw, 48px);
  padding: clamp(16px, 4vw, 48px) var(--gutter) clamp(72px, 10vw, 140px);
  background: var(--violet);
  color: var(--white);
  overflow: hidden;
}

.shout {
  grid-area: title;
  position: relative;
  z-index: 2;
  font-size: clamp(3.4rem, 11.5vw, 12.5rem);
  font-weight: 800;
  line-height: 0.86;
  letter-spacing: -0.02em;
}

.shout .line { display: block; white-space: nowrap; }

.hero-speaker {
  grid-area: speaker;
  position: relative;
  display: grid;
  place-items: center;
  min-height: 420px;
}

.hero-speaker img {
  position: relative;
  z-index: 1;
  width: min(360px, 80%);
  height: auto;
  border-radius: 22.5%;
  transform: rotate(9deg);
  box-shadow: 14px 14px 0 var(--plum);
}

.ring {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(360px, 80%);
  aspect-ratio: 1;
  border: 3px solid rgba(255, 228, 92, 0.7);
  border-radius: 50%;
  transform: translate(-50%, -50%) scale(0.7);
  opacity: 0;
  animation: ring 4s cubic-bezier(0.2, 0.6, 0.3, 1) infinite;
}

.ring:nth-child(2) { animation-delay: 1s; }
.ring:nth-child(3) { animation-delay: 2s; }
.ring:nth-child(4) { animation-delay: 3s; }

.sticker {
  position: absolute;
  z-index: 2;
  filter: drop-shadow(3px 0 0 var(--plum)) drop-shadow(-3px 0 0 var(--plum)) drop-shadow(0 3px 0 var(--plum))
          drop-shadow(0 -3px 0 var(--plum)) drop-shadow(7px 7px 0 var(--plum));
}

.sticker > span {
  display: grid;
  place-items: center;
  width: clamp(150px, 15vw, 200px);
  aspect-ratio: 1;
  padding: 22%;
  clip-path: var(--burst);
  font-family: var(--display);
  font-size: clamp(0.85rem, 1.25vw, 1.1rem);
  line-height: 1.1;
  text-align: center;
  color: var(--plum);
}

.sticker-music { bottom: 16%; left: -8%; transform: rotate(-12deg); }
.sticker-music > span { background: var(--lemon); }

.sticker-account { bottom: 0; right: -2%; transform: rotate(9deg); }
.sticker-account > span { background: var(--mint); }

.hero-copy {
  grid-area: copy;
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
  gap: clamp(20px, 3vw, 40px);
  align-items: start;
  margin-top: clamp(28px, 4vw, 56px);
}

.lede { margin: 0; font-size: clamp(1.15rem, 1.6vw, 1.4rem); line-height: 1.45; }

.store-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px 12px 16px;
  border: 3px solid var(--plum);
  border-radius: 16px;
  background: #000;
  color: #fff;
  text-decoration: none;
  box-shadow: 6px 6px 0 var(--lemon);
  font: inherit;
  cursor: pointer;
  transition: transform 0.15s, box-shadow 0.15s;
}

.store-button:hover { transform: translate(-2px, -2px); box-shadow: 8px 8px 0 var(--lemon); }

.store-button:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--lemon); }

.store-button svg { width: 30px; height: 30px; }

.store-button span { display: flex; flex-direction: column; font-size: 1.45rem; font-weight: 700; line-height: 1.05; }

.store-button small { font-size: 0.72rem; font-weight: 400; opacity: 0.85; }

.requirements { margin: 1.25rem 0 0; font-size: 0.92rem; opacity: 0.9; }

/* ───────── Try it ───────── */

.try {
  position: relative;
  padding: clamp(64px, 9vw, 120px) var(--gutter) clamp(96px, 12vw, 160px);
  background: var(--pink);
  color: var(--plum);
}

.try-hint { max-width: 36rem; margin: 1.25rem 0 0; font-size: 1.2rem; font-weight: 500; }

.try-stage {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: end;
  margin-top: clamp(40px, 5vw, 72px);
}

.phone {
  width: 290px;
  padding: 16px 16px 20px;
  border: 10px solid var(--plum);
  border-radius: 46px;
  background: #f2f2f7;
  color: #1c1c1e;
  font-family: -apple-system, "SF Pro Text", system-ui, sans-serif;
  font-size: 14px;
  box-shadow: 16px 16px 0 var(--plum);
  transform: rotate(-3deg);
}

.phone-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 4px 2px 12px;
  font-size: 15px;
}

.phone-bar span { width: 20px; }

.cog { width: 20px; height: 20px; color: var(--violet); }

.field-label { display: block; margin: 12px 10px 5px; font-size: 12px; color: #6c6c70; }

.field {
  display: block;
  width: 100%;
  padding: 11px 12px;
  border: 0;
  border-radius: 11px;
  background: #fff;
  color: inherit;
  font: inherit;
}

.message { resize: none; line-height: 1.35; }

.message:focus, .row select:focus { outline: 2px solid var(--violet); outline-offset: 0; }

.row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }

.row select {
  border: 0;
  background: transparent;
  color: var(--violet);
  font: inherit;
  text-align: right;
  cursor: pointer;
}

.slider input { width: 100%; margin: 6px 0; accent-color: var(--violet); }

.send {
  margin-top: 16px;
  font-weight: 700;
  color: var(--violet);
  cursor: pointer;
  transition: transform 0.12s, background-color 0.12s;
}

.send:hover { background: #efe8fb; }

.send:active, .send.is-pressed { transform: scale(0.95); background: #e2d5f8; }

.status { min-height: 1.4em; margin: 10px 10px 0; font-size: 12px; color: #248a3d; }

/* The dollhouse */

.house {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr);
  grid-template-areas: "roof ." "floors garden";
  align-items: end;
  max-width: 720px;
}

.roof {
  grid-area: roof;
  height: clamp(70px, 9vw, 120px);
  margin: 0 -16px;
  background: var(--plum);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.floors {
  grid-area: floors;
  display: grid;
  gap: 8px;
  border: 8px solid var(--plum);
  background: var(--plum);
}

.room {
  position: relative;
  min-height: 150px;
  padding: 16px 18px;
  background: var(--blush);
  transition: background-color 0.3s;
}

.room.garden {
  grid-area: garden;
  border-bottom: 18px solid #3fbf7f;
  background: var(--mint);
}

.room.is-announcing { background: var(--lemon); }

.room-name { display: block; font-size: 1.45rem; font-weight: 800; font-stretch: 82%; }

.now-playing { display: flex; align-items: center; gap: 8px; font-size: 0.95rem; font-weight: 500; }

.bars { display: inline-flex; align-items: flex-end; gap: 2px; height: 16px; }

.bars i {
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: var(--violet);
  transform-origin: bottom;
  animation: eq 1s ease-in-out infinite;
  transition: opacity 0.4s;
}

.bars i:nth-child(2) { animation-delay: -0.3s; }
.bars i:nth-child(3) { animation-delay: -0.7s; }
.bars i:nth-child(4) { animation-delay: -0.5s; }
.bars i:nth-child(5) { animation-delay: -0.9s; }

/* The music ducks while the announcement plays. */
.room.is-announcing .bars i { opacity: 0.3; animation-duration: 2.4s; }

.speaker-box {
  position: absolute;
  right: 16px;
  bottom: 16px;
  width: 30px;
  height: 44px;
  border-radius: 8px;
  background: var(--plum);
}

.speaker-box::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 14px;
  height: 14px;
  border: 2px solid var(--blush);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.ping {
  position: absolute;
  inset: -6px;
  border: 3px solid var(--violet);
  border-radius: 14px;
  opacity: 0;
}

.room.is-announcing .ping { animation: ping 0.9s ease-out infinite; }

.bubble {
  position: absolute;
  z-index: 3;
  left: 40%;
  bottom: calc(100% - 28px);
  width: max-content;
  max-width: min(260px, 70vw);
  padding: 12px 16px;
  border: 3px solid var(--plum);
  border-radius: 22px 22px 22px 4px;
  background: var(--white);
  box-shadow: var(--hard);
  font-weight: 700;
  line-height: 1.25;
  opacity: 0;
  transform: translateY(10px) scale(0.6) rotate(-4deg);
  transform-origin: bottom left;
  transition: opacity 0.2s, transform 0.45s cubic-bezier(0.3, 1.6, 0.5, 1);
  pointer-events: none;
}

.room.is-announcing .bubble { opacity: 1; transform: rotate(-3deg); }

/* ───────── Conveyor belt ───────── */

.belt {
  position: relative;
  z-index: 3;
  margin: -44px -5vw;
  padding: 18px 0;
  border-block: 4px solid var(--plum);
  background: var(--lemon);
  transform: rotate(-3deg);
  overflow: hidden;
}

.belt-track { display: flex; gap: 20px; width: max-content; animation: belt 45s linear infinite; }

.belt-track span {
  padding: 10px 20px;
  border-radius: 22px 22px 22px 4px;
  background: var(--plum);
  color: var(--white);
  font-size: clamp(1.1rem, 2vw, 1.5rem);
  font-weight: 700;
  white-space: nowrap;
}

.belt-track span:nth-child(3n + 2) { background: var(--violet); }
.belt-track span:nth-child(3n) { background: var(--pink); color: var(--plum); }

/* ───────── How it works ───────── */

.how {
  padding: clamp(110px, 13vw, 180px) var(--gutter) clamp(72px, 10vw, 140px);
  background: var(--blush);
}

.steps {
  display: grid;
  gap: clamp(28px, 4vw, 48px);
  margin: clamp(40px, 5vw, 72px) 0 0;
  padding: 0;
  list-style: none;
  counter-reset: step;
}

.steps li {
  position: relative;
  counter-increment: step;
  width: min(100%, 34rem);
  padding: clamp(24px, 3vw, 36px);
  padding-left: clamp(96px, 12vw, 170px);
  border: 4px solid var(--plum);
  border-radius: 36px 36px 36px 8px;
  background: var(--white);
  box-shadow: 10px 10px 0 var(--plum);
}

.steps li:nth-child(1) { transform: rotate(-2deg); }
.steps li:nth-child(2) { margin-left: clamp(0px, 18vw, 320px); transform: rotate(1.5deg); background: var(--lemon); }
.steps li:nth-child(3) { margin-left: clamp(0px, 36vw, 640px); transform: rotate(-1deg); background: var(--mint); }

.steps li::before {
  content: counter(step);
  position: absolute;
  left: clamp(14px, 2vw, 28px);
  top: 50%;
  transform: translateY(-52%);
  font-size: clamp(5rem, 11vw, 9.5rem);
  font-weight: 800;
  font-stretch: 75%;
  line-height: 1;
  color: var(--pink);
  -webkit-text-stroke: 4px var(--plum);
  paint-order: stroke fill;
}

.steps h3 { font-size: clamp(1.4rem, 2.4vw, 1.9rem); font-weight: 800; font-stretch: 85%; }

.steps p { margin: 0.5rem 0 0; }

/* ───────── Sticker wall ───────── */

.features {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: var(--plum);
  color: var(--white);
}

.stickers {
  display: flex;
  flex-wrap: wrap;
  gap: clamp(20px, 3vw, 40px);
  margin: clamp(40px, 5vw, 72px) 0 0;
}

.stickers > div {
  flex: 1 1 280px;
  max-width: 460px;
  padding: clamp(22px, 2.5vw, 32px);
  border: 4px solid var(--plum);
  border-radius: 32px;
  color: var(--plum);
  box-shadow: 8px 8px 0 rgba(255, 255, 255, 0.18);
  transform: rotate(var(--tilt, 0deg)) translateY(var(--shift, 0px));
  transition: transform 0.25s cubic-bezier(0.3, 1.6, 0.5, 1);
}

.stickers > div:hover { transform: rotate(0deg) scale(1.04); }

.stickers dt { font-size: clamp(1.4rem, 2.2vw, 1.8rem); font-weight: 800; font-stretch: 82%; line-height: 1.05; }

.stickers dd { margin: 0.6rem 0 0; }

.stickers .s-pink   { --tilt: -3deg; background: var(--pink); }
.stickers .s-lemon  { --tilt: 2deg; --shift: 24px; flex-basis: 360px; background: var(--lemon); }
.stickers .s-white  { --tilt: -1.5deg; border-radius: 32px 32px 32px 6px; background: var(--white); }
.stickers .s-coral  { --tilt: 3deg; --shift: -12px; background: var(--coral); }
.stickers .s-violet { --tilt: -2deg; --shift: 16px; border-radius: 32px 32px 6px 32px; background: var(--violet); color: var(--white); }
.stickers .s-mint   { --tilt: 1deg; flex-basis: 360px; background: var(--mint); }

/* ───────── Questions as a chat ───────── */

.questions {
  padding: clamp(72px, 10vw, 140px) var(--gutter);
  background: var(--lemon);
}

.chat {
  display: flex;
  flex-direction: column;
  gap: 18px;
  max-width: 52rem;
  margin: clamp(40px, 5vw, 64px) 0 0 auto;
}

.chat details { display: flex; flex-direction: column; }

.chat summary {
  align-self: flex-end;
  width: fit-content;
  max-width: min(34rem, 90%);
  margin-left: auto;
  padding: 14px 22px;
  border: 3px solid var(--plum);
  border-radius: 26px 26px 6px 26px;
  background: var(--violet);
  color: var(--white);
  font-size: clamp(1.1rem, 1.8vw, 1.35rem);
  font-weight: 700;
  box-shadow: 5px 5px 0 var(--plum);
  cursor: pointer;
  list-style: none;
  transition: transform 0.15s;
}

.chat summary::-webkit-details-marker { display: none; }

.chat summary:hover { transform: translate(-2px, -2px); }

.chat details[open] summary { background: var(--plum); }

.chat details p {
  position: relative;
  width: fit-content;
  max-width: min(36rem, 88%);
  margin: 14px 0 8px 58px;
  padding: 14px 20px;
  border: 3px solid var(--plum);
  border-radius: 26px 26px 26px 6px;
  background: var(--white);
  box-shadow: 5px 5px 0 var(--plum);
  animation: pop 0.4s cubic-bezier(0.3, 1.6, 0.5, 1);
}

/* Room Service "avatar" next to each answer. */
.chat details p::before {
  content: "";
  position: absolute;
  left: -58px;
  bottom: -4px;
  width: 44px;
  height: 44px;
  border: 3px solid var(--plum);
  border-radius: 22.5%;
  background: url("assets/icon-512.png") center / cover;
}

/* ───────── Footer ───────── */

.site-footer {
  position: relative;
  padding: clamp(56px, 8vw, 96px) var(--gutter) 0;
  background: var(--violet);
  color: var(--white);
  overflow: hidden;
}

.footer-text p { max-width: 46rem; margin: 0 0 0.6rem; font-size: 0.95rem; }

.footer-text a { font-weight: 700; }

.legal-links { display: flex; flex-wrap: wrap; gap: 0.4rem 1.5rem; }

.wordmark {
  margin: clamp(32px, 5vw, 64px) 0 -0.2em;
  font-size: clamp(4.5rem, 18vw, 20rem);
  font-weight: 800;
  line-height: 0.9;
  letter-spacing: -0.03em;
  white-space: nowrap;
  color: var(--lemon);
}

/* ───────── "Coming soon" popup ───────── */

.soon {
  width: min(26rem, calc(100vw - 32px));
  padding: 44px 32px 28px;
  border: 4px solid var(--plum);
  border-radius: 32px 32px 32px 8px;
  background: var(--lemon) radial-gradient(rgba(43, 20, 70, 0.14) 1.3px, transparent 1.7px) 0 0 / 11px 11px;
  color: var(--plum);
  box-shadow: 12px 12px 0 var(--plum);
  overflow: visible;
}

.soon[open] { animation: pop 0.45s cubic-bezier(0.3, 1.6, 0.5, 1); }

.soon::backdrop {
  background:
    repeating-conic-gradient(from 0deg, transparent 0deg 4deg, rgba(255, 255, 255, 0.18) 4deg 5deg),
    rgba(43, 20, 70, 0.72);
}

.soon h2 {
  font-family: var(--display);
  font-size: clamp(2rem, 7vw, 2.75rem);
  font-weight: 400;
  color: var(--pink);
  -webkit-text-stroke: 0.08em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.06em 0.06em 0 var(--plum);
}

.soon p { margin: 0.9rem 0 1.5rem; font-size: 1.1rem; }

.soon-sfx {
  top: -34px;
  right: -18px;
  font-size: 2.2rem;
  color: var(--white);
  transform: rotate(10deg);
}

.soon-close {
  padding: 12px 26px;
  border: 3px solid var(--plum);
  border-radius: 999px;
  background: var(--violet);
  color: var(--white);
  font: inherit;
  font-weight: 700;
  box-shadow: 5px 5px 0 var(--plum);
  cursor: pointer;
}

.soon-close:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--plum); }

/* ───────── Privacy page ───────── */

.prose {
  padding: clamp(40px, 6vw, 80px) var(--gutter) 96px;
  background: var(--blush);
}

.prose > * { max-width: 42rem; }

.prose h1 { font-size: clamp(2.75rem, 7vw, 5rem); font-weight: 800; font-stretch: 78%; letter-spacing: -0.03em; }

.prose h2 { margin-top: 2.5rem; font-size: 1.6rem; font-weight: 800; font-stretch: 85%; }

.prose .updated { margin-top: 0.75rem; font-weight: 600; }

.prose a { color: var(--violet); }

/* ───────── Anime layer ───────── */

/* Manga screentone on the big colour blocks. */
.hero, .try, .how, .features, .questions {
  background-image: radial-gradient(var(--tone, rgba(43, 20, 70, 0.14)) 1.3px, transparent 1.7px);
  background-size: 11px 11px;
}

.hero { --tone: rgba(255, 255, 255, 0.12); }
.features { --tone: rgba(255, 255, 255, 0.07); }

/* Diagonal manga panel edges between sections. */
.how, .features, .questions {
  position: relative;
  margin-top: -4vw;
  padding-top: calc(clamp(72px, 10vw, 140px) + 4vw);
  clip-path: polygon(0 4vw, 100% 0, 100% 100%, 0 100%);
}

.how { padding-top: calc(clamp(110px, 13vw, 180px) + 4vw); }
.features { clip-path: polygon(0 0, 100% 4vw, 100% 100%, 0 100%); }

/* Anime title cards. */
.section-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.5rem, 7vw, 6rem);
  letter-spacing: 0;
  line-height: 1;
  color: var(--white);
  -webkit-text-stroke: 0.09em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.07em 0.07em 0 var(--plum);
  transform: rotate(-2deg);
  transform-origin: left center;
}

.how .section-title { color: var(--pink); }
.features .section-title { color: var(--lemon); -webkit-text-stroke-color: var(--violet); text-shadow: 0.07em 0.07em 0 var(--pink); }
.questions .section-title { color: var(--violet); }

/* Hero title logo. */
.shout {
  -webkit-text-stroke: 0.05em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.055em 0.055em 0 var(--pink), 0.1em 0.1em 0 var(--plum);
  transform: rotate(-4deg);
  transform-origin: left bottom;
}

.kana {
  grid-area: title;
  align-self: end;
  justify-self: end;
  position: relative;
  z-index: 3;
  margin: 0 4% -0.6em 0;
  font-family: var(--display);
  font-size: clamp(1.4rem, 3vw, 2.6rem);
  color: var(--lemon);
  -webkit-text-stroke: 0.14em var(--plum);
  paint-order: stroke fill;
  transform: rotate(-4deg);
}

/* Sound effects lettering. */
.sfx {
  position: absolute;
  z-index: 4;
  font-family: var(--display);
  line-height: 1;
  white-space: nowrap;
  -webkit-text-stroke: 0.12em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.08em 0.08em 0 var(--plum);
  pointer-events: none;
}

.sfx-don {
  top: clamp(8px, 3vw, 40px);
  left: 44%;
  font-size: clamp(2.5rem, 7vw, 6.5rem);
  color: var(--lemon);
  transform: rotate(12deg);
  animation: don 0.7s cubic-bezier(0.3, 1.8, 0.5, 1) both, throb 2.4s ease-in-out 0.7s infinite;
}

.sfx-gogo {
  top: 14%;
  right: calc(var(--gutter) * 0.3);
  writing-mode: vertical-rl;
  font-size: clamp(1.4rem, 2.8vw, 2.6rem);
  color: var(--pink);
  opacity: 0.9;
  animation: tremble 0.12s steps(2) infinite;
}

.sfx-kira { top: calc(4vw + 40px); right: var(--gutter); font-size: clamp(1.6rem, 4vw, 3.2rem); color: var(--pink); transform: rotate(8deg); }

.sfx-hatena { top: calc(4vw + 30px); right: var(--gutter); font-size: clamp(3.5rem, 9vw, 7rem); color: var(--pink); transform: rotate(14deg); }

/* Focus lines around the app icon. */
.speedlines {
  position: absolute;
  inset: -70%;
  background: repeating-conic-gradient(from 0deg, transparent 0deg 3.2deg, rgba(255, 255, 255, 0.5) 3.2deg 3.9deg, transparent 3.9deg 6.1deg, rgba(255, 255, 255, 0.25) 6.1deg 6.5deg);
  -webkit-mask-image: radial-gradient(circle, transparent 18%, #000 42%, transparent 72%);
  mask-image: radial-gradient(circle, transparent 18%, #000 42%, transparent 72%);
  animation: focus 0.35s steps(3) infinite;
  pointer-events: none;
}

.sparkle {
  position: absolute;
  z-index: 3;
  width: 34px;
  aspect-ratio: 1;
  background: var(--white);
  clip-path: var(--star);
  animation: twinkle 1.8s ease-in-out infinite;
}

.sparkle.s1 { top: 14%; right: 14%; }
.sparkle.s2 { top: 60%; left: 8%; width: 22px; background: var(--lemon); animation-delay: -0.6s; }
.sparkle.s3 { bottom: 18%; right: 30%; width: 46px; animation-delay: -1.1s; }
.sparkle.s4 { top: 30%; left: 30%; width: 16px; background: var(--lemon); animation-delay: -0.3s; }

/* Pointer sparkle trail (created by app.js). */
.trail {
  position: fixed;
  z-index: 50;
  width: 16px;
  aspect-ratio: 1;
  clip-path: var(--star);
  pointer-events: none;
  animation: trail 0.8s ease-out forwards;
}

/* Impact frame + announcement chime when a room announces. */
.try-stage { position: relative; }

.impact {
  position: absolute;
  inset: -2% -6%;
  z-index: 0;
  background: repeating-conic-gradient(from 0deg at 65% 45%, transparent 0deg 4deg, var(--plum) 4deg 5deg);
  -webkit-mask-image: radial-gradient(circle at 65% 45%, transparent 22%, #000 60%);
  mask-image: radial-gradient(circle at 65% 45%, transparent 22%, #000 60%);
  opacity: 0;
  pointer-events: none;
}

.try-stage > .phone, .try-stage > .house { position: relative; z-index: 1; }

.try-stage.is-announcing .impact { animation: impact 0.5s ease-out; }

.sfx-chime {
  top: -12px;
  right: 0;
  font-size: clamp(1.4rem, 3.4vw, 2.8rem);
  color: var(--lemon);
  opacity: 0;
  transform: rotate(-6deg) scale(0.4);
  transition: opacity 0.2s, transform 0.4s cubic-bezier(0.3, 1.8, 0.5, 1);
}

.try-stage.is-announcing .sfx-chime { opacity: 1; transform: rotate(-6deg); }

/* Lawn under the house. */
.house { padding-bottom: 22px; }

.house::after {
  content: "";
  position: absolute;
  inset: auto -24px 0;
  height: 22px;
  border-top: 4px solid var(--plum);
  border-radius: 6px;
  background: #3fbf7f;
}

.room.garden { border-bottom: 0; }

/* Episode labels on the steps. */
.ep {
  display: inline-block;
  margin-bottom: 0.4rem;
  padding: 2px 10px;
  border-radius: 6px;
  background: var(--plum);
  color: var(--white);
  font-family: var(--display);
  font-size: 1.05rem;
}

/* Screentone inside the feature panels. */
.stickers > div {
  background-image: radial-gradient(rgba(43, 20, 70, 0.16) 1.1px, transparent 1.4px);
  background-size: 8px 8px;
}

.stickers .s-violet { background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.1px, transparent 1.4px); }

.stickers dt { font-family: var(--display); font-weight: 400; font-size: clamp(1.2rem, 1.9vw, 1.55rem); line-height: 1.2; }

/* Footer title logo. */
.wordmark {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.4rem, 10.4vw, 12rem);
  letter-spacing: -0.02em;
  -webkit-text-stroke: 0.04em var(--plum);
  paint-order: stroke fill;
  text-shadow: 0.05em 0.05em 0 var(--pink);
  margin-bottom: 0;
}

.kana-footer {
  display: block;
  margin: 0 0 clamp(24px, 4vw, 48px);
  text-align: right;
  font-size: clamp(1.6rem, 5vw, 4rem);
}

/* ───────── Motion ───────── */

@keyframes ring {
  0% { transform: translate(-50%, -50%) scale(0.75); opacity: 0.9; }
  100% { transform: translate(-50%, -50%) scale(2.3); opacity: 0; }
}

@keyframes eq {
  0%, 100% { transform: scaleY(0.25); }
  50% { transform: scaleY(1); }
}

@keyframes ping {
  0% { transform: scale(1); opacity: 0.9; }
  100% { transform: scale(2.2); opacity: 0; }
}

@keyframes belt { to { transform: translateX(-50%); } }

@keyframes don {
  from { transform: rotate(12deg) scale(3); opacity: 0; }
  to { transform: rotate(12deg) scale(1); opacity: 1; }
}

@keyframes throb {
  0%, 100% { transform: rotate(12deg) scale(1); }
  50% { transform: rotate(9deg) scale(1.08); }
}

@keyframes tremble {
  0% { translate: 0 0; }
  50% { translate: 2px -1px; }
  100% { translate: -1px 2px; }
}

@keyframes focus {
  0% { transform: rotate(0deg); }
  33% { transform: rotate(1.3deg); }
  66% { transform: rotate(-1deg); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.2) rotate(0deg); opacity: 0.3; }
  50% { transform: scale(1) rotate(45deg); opacity: 1; }
}

@keyframes trail {
  from { transform: translate(-50%, -50%) scale(1) rotate(0deg); opacity: 1; }
  to { transform: translate(-50%, 30px) scale(0) rotate(180deg); opacity: 0; }
}

@keyframes impact {
  0% { opacity: 0.9; transform: scale(1.1); }
  100% { opacity: 0; transform: scale(1); }
}

@keyframes pop {
  from { transform: scale(0.7) rotate(-3deg); opacity: 0; }
  to { transform: none; opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ring, .bars i, .belt-track, .room.is-announcing .ping, .chat details p,
  .sfx-don, .sfx-gogo, .speedlines, .sparkle, .try-stage.is-announcing .impact { animation: none; }
  .sfx-chime { transition: none; }
  .ring { opacity: 0; }
  .bars i { transform: scaleY(0.6); }
  .bubble, .stickers > div, .send, .chat summary, .store-button { transition: none; }
  .soon[open] { animation: none; }
}

/* ───────── Breakpoints ───────── */

@media (max-width: 1000px) {
  .hero { grid-template-columns: minmax(0, 1fr); grid-template-areas: "title" "kana" "speaker" "copy"; }
  .hero-speaker { min-height: 0; padding: 48px 0 24px; }
  .hero-speaker img, .ring { width: min(260px, 60%); }
  .sticker-music { left: 0; bottom: 10%; }
  .sfx-don { left: auto; right: var(--gutter); }
  .kana { grid-area: kana; justify-self: end; margin: 0.5em 0 0; }
  .sticker > span { width: clamp(118px, 30vw, 170px); padding: 25%; font-size: 0.72rem; }
  .sfx-don { top: 8px; right: 16px; font-size: 2.4rem; }
  .sfx-gogo { top: 34%; right: auto; left: 12px; }
  .try-stage { grid-template-columns: minmax(0, 1fr); justify-items: center; }
  .house { width: 100%; }
}

@media (max-width: 720px) {
  .site-header nav a:not(:first-child) { display: none; }
  .hero-copy { grid-template-columns: minmax(0, 1fr); }
  .house { grid-template-columns: minmax(0, 1fr); grid-template-areas: "roof" "floors" "garden"; }
  .room.garden { margin-top: 16px; }
  .steps li:nth-child(n) { margin-left: 0; }
  .steps li { padding-left: 96px; }
  .stickers > div { flex-basis: 100%; --shift: 0px; }
  .chat details p { margin-left: 50px; }
  .chat details p::before { left: -50px; width: 38px; height: 38px; }
}
