/* Wavumi website. Brand: the app icon's sticker-book world.
   Cream paper, plum ink outlines, pastel mochi, chunky offset shadows. */

@font-face {
  font-family: "Bricolage Grotesque";
  src: url(assets/fonts/bricolage.woff2) format("woff2");
  font-weight: 500 800; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Nunito";
  src: url(assets/fonts/nunito.woff2) format("woff2");
  font-weight: 500 900; font-display: swap;
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  color-scheme: light;
  --cream: #fff4e0;
  --paper: #fffaf1;
  --ink: #2b1145;
  --ink-2: #6a5480;
  --ink-3: #9a88ad;
  --lav: #e8dcff;
  --lav-d: #8f6bff;
  --pink: #ffc6dd;
  --hot: #ff5f9e;
  --hot-d: #e8417f;
  --sun: #ffe08a;
  --sun-d: #ffcc33;
  --sky: #c9f1ff;
  --sky-d: #2fb3ea;
  --mint: #c9f3dc;
  --mint-d: #27b26e;
  --night: #1d0b31;
  --night-2: #2b1145;

  --display: "Bricolage Grotesque", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, sans-serif;
  --body: "Nunito", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", system-ui, -apple-system, sans-serif;

  --line: 3px;
  --r: 26px;
  --r-sm: 16px;
  --pop: 5px 5px 0 var(--ink);
  --pop-lg: 8px 8px 0 var(--ink);
  --gutter: 16px;
  --ease: cubic-bezier(.34, 1.56, .64, 1);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--cream); color: var(--ink);
  font-family: var(--body); font-size: 17px; line-height: 1.55; font-weight: 600;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
html, body { overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3 { font-family: var(--display); line-height: 1.02; letter-spacing: -0.03em; margin: 0; font-weight: 800; }
:lang(zh) h1, :lang(zh) h2, :lang(zh) h3 { letter-spacing: 0; line-height: 1.18; }
p { margin: 0; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 10px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--hot); outline-offset: 3px; border-radius: 8px; }

.wrap { width: 100%; max-width: 1160px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.narrow { max-width: 760px; }
.section { position: relative; padding: 88px 0; }
.kicker {
  display: inline-block; font-family: var(--display); font-weight: 800; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
  color: var(--hot-d); margin-bottom: 14px;
}
:lang(zh) .kicker { letter-spacing: .2em; }
.section h2 { font-size: clamp(36px, 8.4vw, 68px); max-width: 15ch; }
:lang(zh) .section h2 { max-width: 13em; }
.sub { font-size: clamp(17px, 2.2vw, 20px); color: var(--ink-2); max-width: 58ch; margin-top: 18px; }
.fine { font-size: 13.5px; color: var(--ink-3); margin-top: 14px; max-width: 52ch; }

/* polka dots, as on the icon */
.dots {
  position: absolute; inset: 0; pointer-events: none; z-index: 0; opacity: .9;
  background-image:
    radial-gradient(circle, #ffc9de 4px, transparent 4.5px),
    radial-gradient(circle, #d9c8ff 4px, transparent 4.5px),
    radial-gradient(circle, #c9f1ff 4px, transparent 4.5px);
  background-size: 96px 96px; background-position: 0 0, 32px 48px, 64px 0;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
  mask-image: linear-gradient(to bottom, #000 0%, #000 60%, transparent 100%);
}
.dots-soft { opacity: .5; }
.dots-night {
  background-image:
    radial-gradient(circle, rgba(255,95,158,.35) 3px, transparent 3.5px),
    radial-gradient(circle, rgba(143,107,255,.35) 3px, transparent 3.5px),
    radial-gradient(circle, rgba(47,179,234,.3) 3px, transparent 3.5px);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px;
  border: var(--line) solid var(--ink); border-radius: 999px; background: #fff; color: var(--ink);
  font-family: var(--display); font-weight: 800; font-size: 17px; text-decoration: none; cursor: pointer;
  box-shadow: 4px 4px 0 var(--ink); transition: transform .15s var(--ease), box-shadow .15s ease; white-space: nowrap;
  -webkit-tap-highlight-color: transparent;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; box-shadow: 3px 3px 0 var(--ink); }
.btn-ink { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--hot); }
.btn-ink:hover { box-shadow: 5px 5px 0 var(--hot); }
.btn-hot { background: var(--hot); color: #fff; }
.btn-lav { background: var(--lav); }
.btn-ghost { background: var(--paper); }
.btn-ghost-light { background: transparent; color: #fff; border-color: #fff; box-shadow: 4px 4px 0 var(--hot); }
.btn-ghost-light:hover { box-shadow: 6px 6px 0 var(--hot); }

.store {
  display: inline-flex; align-items: center; gap: 10px; height: 56px; padding: 0 22px 0 16px; border-radius: 16px;
  background: var(--ink); color: #fff; text-decoration: none; border: var(--line) solid var(--ink);
  box-shadow: 4px 4px 0 var(--hot); transition: transform .15s var(--ease), box-shadow .15s ease;
}
.store:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--hot); }
.store svg { width: 28px; height: 28px; }
.store span { display: flex; flex-direction: column; line-height: 1.05; }
.store small { font-size: 11.5px; font-weight: 700; opacity: .85; }
.store b { font-family: var(--display); font-size: 21px; letter-spacing: -0.01em; }
.store-lg { height: 64px; border-color: #fff; }
.store-lg b { font-size: 24px; }

.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px; border: 2px solid var(--ink); border-radius: 999px;
  background: #fff; font-size: 14px; font-weight: 800; box-shadow: 3px 3px 0 var(--ink);
}
.spark { color: var(--sun-d); -webkit-text-stroke: 1px var(--ink); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50; display: flex; align-items: center; gap: 12px;
  padding: 10px var(--gutter); padding-top: max(10px, env(safe-area-inset-top));
  background: rgba(255, 244, 224, .82); -webkit-backdrop-filter: blur(14px) saturate(1.4); backdrop-filter: blur(14px) saturate(1.4);
  border-bottom: 2px solid transparent; transition: border-color .2s;
}
.nav.scrolled { border-bottom-color: var(--ink); }
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.brand-mark { width: 46px; height: 34px; display: block; }
.brand-word { font-family: var(--display); font-weight: 800; font-size: 26px; letter-spacing: -0.04em; }
.nav-links { display: none; gap: 4px; margin: 0 auto; }
.nav-links a { text-decoration: none; font-weight: 800; padding: 8px 14px; border-radius: 999px; font-size: 15.5px; }
.nav-links a:hover { background: #fff; box-shadow: inset 0 0 0 2px var(--ink); }
.nav-end { display: flex; align-items: center; gap: 8px; margin-left: auto; }
.lang {
  border: 2px solid var(--ink); background: transparent; border-radius: 999px; height: 40px; min-width: 52px; padding: 0 12px;
  font-weight: 800; font-size: 14px; cursor: pointer; white-space: nowrap; flex: none;
  display: inline-flex; align-items: center; justify-content: center; text-decoration: none;
}
@media (max-width: 380px) {
  .brand-word { font-size: 22px; }
  .brand-mark { width: 40px; height: 30px; }
  .nav .btn-sm { padding: 0 12px; font-size: 14px; }
}
.lang:hover { background: #fff; }
/* The web app (/app/): beside "Get Wavumi" where there's room, and a line under the hero's buttons. */
.nav-web { display: none; }
@media (min-width: 640px) { .nav-web { display: inline-flex; } }
.web-line { margin: 14px 0 0; font-weight: 800; }
.web-line a { color: inherit; text-decoration: underline; text-underline-offset: 3px; }
.web-line a:hover { color: var(--hot); }

/* ---------- hero ---------- */
.hero {
  position: relative; display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; padding: 28px var(--gutter) 64px; max-width: 1240px; margin: 0 auto;
  overflow: visible;
}
.hero-copy, .hero-stage { position: relative; z-index: 1; }
.hero h1 { font-size: clamp(48px, 13.5vw, 108px); margin-top: 20px; }
:lang(zh) .hero h1 { font-size: clamp(44px, 12vw, 92px); }
.hl {
  color: var(--hot); padding: 0 .04em;
  background: linear-gradient(var(--sun), var(--sun)) 0 92% / 100% .2em no-repeat;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
.lede { font-size: clamp(18px, 2.4vw, 21px); color: var(--ink-2); margin-top: 22px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; align-items: center; }
.cta-row.center { justify-content: center; }
.hero-proof { list-style: none; padding: 0; margin: 34px 0 0; display: flex; gap: 22px; flex-wrap: wrap; }
.hero-proof li { display: flex; align-items: baseline; gap: 8px; font-size: 14.5px; color: var(--ink-2); }
.hero-proof b { font-family: var(--display); font-size: 34px; color: var(--ink); line-height: 1; }

.hero-stage { display: flex; justify-content: center; padding: 10px 0 0; min-height: 600px; }
.float-sticker { position: absolute; width: 92px; z-index: 2; filter: drop-shadow(0 10px 8px rgba(90, 43, 138, .25)); }
.float-sticker.s1 { left: max(-4px, calc(50% - 230px)); top: 10px; animation: bob 5s ease-in-out infinite; transform: rotate(-10deg); }
.float-sticker.s2 { right: max(-4px, calc(50% - 230px)); bottom: -14px; animation: bob 5.6s ease-in-out -2s infinite; }
.star { position: absolute; font-size: 38px; color: var(--sun-d); -webkit-text-stroke: 2px var(--ink); z-index: 2; animation: twinkle 3s ease-in-out infinite; }
.st1 { left: calc(50% - 190px); top: 4px; }
.st2 { right: calc(50% - 205px); top: 120px; color: var(--hot); font-size: 26px; animation-delay: -1s; }
.st3 { left: calc(50% - 215px); bottom: 30px; color: var(--sky-d); font-size: 22px; animation-delay: -2s; }

@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
@keyframes twinkle { 0%, 100% { scale: 1; rotate: 0deg; } 50% { scale: .7; rotate: 25deg; } }

/* ---------- phone ---------- */
.phone {
  position: relative; width: min(330px, 86vw); height: 640px; border-radius: 46px; background: var(--paper);
  border: var(--line) solid var(--ink); box-shadow: var(--pop-lg), inset 0 0 0 8px #fff; overflow: hidden;
  display: flex; flex-direction: column;
}
.phone-notch { position: absolute; top: 12px; left: 50%; width: 92px; height: 26px; translate: -50% 0; background: var(--ink); border-radius: 20px; z-index: 3; }
.phone-top {
  display: flex; align-items: center; gap: 8px; padding: 50px 16px 12px; border-bottom: 2px solid #f0e4d4; background: #fff;
  position: relative; z-index: 2;
}
.ph-back { font-size: 30px; line-height: 1; color: var(--ink-3); margin-top: -4px; }
.ph-avatars { display: flex; }
.ph-avatars .av + .av { margin-left: -9px; }
.ph-title { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; flex: 1; }
.ph-title b { font-family: var(--display); font-size: 16.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-title small { font-size: 12px; color: var(--mint-d); font-weight: 800; }
.ph-call { width: 36px; height: 36px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; }
.ph-call svg { width: 18px; }
.ph-badge { font-size: 11.5px; font-weight: 900; padding: 4px 9px; border-radius: 999px; background: var(--lav); border: 2px solid var(--ink); white-space: nowrap; }
.phone-body { flex: 1; overflow: hidden; position: relative; padding: 14px 12px; display: flex; flex-direction: column; gap: 8px; justify-content: flex-end; }

.av {
  display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; border: 2px solid var(--ink);
  font-style: normal; font-size: 13px; font-weight: 900; font-family: var(--display); flex: none; background: #fff;
}
.av-lav { background: var(--lav); } .av-pink { background: var(--pink); } .av-sun { background: var(--sun); }
.av-sky { background: var(--sky); } .av-mint { background: var(--mint); }

/* chat bubbles */
.bubble {
  max-width: 84%; padding: 9px 13px; border-radius: 20px; font-size: 14.5px; line-height: 1.35; border: 2px solid var(--ink);
  background: #fff; animation: pop .45s var(--ease) both;
}
.b-me { align-self: flex-end; background: var(--lav); border-bottom-right-radius: 6px; }
.b-them { align-self: flex-start; background: #fff; border-bottom-left-radius: 6px; }
.b-bot { align-self: flex-start; background: var(--sun); border-bottom-left-radius: 6px; }
.msg { display: flex; gap: 6px; align-items: flex-end; animation: pop .45s var(--ease) both; }
.msg.me { justify-content: flex-end; }
.msg .bubble { animation: none; }
@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.92); } to { opacity: 1; transform: none; } }

.build {
  align-self: flex-start; width: 84%; border: 2px solid var(--ink); border-radius: 18px; background: #fff; padding: 10px 12px; font-size: 13px;
  animation: pop .45s var(--ease) both;
}
.build b { font-family: var(--display); font-size: 14px; display: flex; align-items: center; gap: 6px; }
.build .bar { height: 10px; border-radius: 99px; border: 2px solid var(--ink); margin: 8px 0 6px; overflow: hidden; background: var(--cream); }
.build .bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--hot) 0 8px, #ff86b6 8px 16px); transition: width .5s ease; }
.build .stepline { color: var(--ink-2); font-weight: 700; min-height: 1.4em; }

.app-card {
  align-self: flex-start; width: 84%; border: 2px solid var(--ink); border-radius: 20px; background: var(--lav); padding: 12px;
  display: grid; grid-template-columns: 48px 1fr; gap: 10px; align-items: center; box-shadow: 3px 3px 0 var(--ink);
  animation: pop .5s var(--ease) both;
}
.app-card .ico { width: 48px; height: 48px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; font-size: 26px; }
.app-card b { font-family: var(--display); font-size: 16px; display: block; line-height: 1.1; }
.app-card small { font-size: 12px; color: var(--ink-2); }
.app-card .play { grid-column: 1 / -1; text-align: center; background: var(--ink); color: #fff; border-radius: 12px; padding: 7px; font-weight: 900; font-size: 14px; }

/* hero game overlay */
.game-sheet {
  position: absolute; inset: 0; background: var(--paper); z-index: 1; padding: 14px; display: flex; flex-direction: column; gap: 12px;
  animation: slideUp .5s var(--ease) both;
}
@keyframes slideUp { from { transform: translateY(100%); } to { transform: none; } }
.gs-title { font-family: var(--display); font-weight: 800; font-size: 20px; text-align: center; margin-top: 6px; }
.gs-quote { border: 2px solid var(--ink); border-radius: 20px; background: #fff; padding: 22px 16px; text-align: center; font-family: var(--display); font-size: 21px; line-height: 1.2; box-shadow: 4px 4px 0 var(--ink); }
.gs-choices { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gs-choices span { border: 2px solid var(--ink); border-radius: 16px; padding: 12px; text-align: center; font-weight: 900; background: #fff; transition: transform .2s var(--ease), background .2s; }
.gs-choices span.picked { background: var(--pink); transform: scale(1.06) rotate(-2deg); }
.gs-reveal { text-align: center; font-family: var(--display); font-weight: 800; font-size: 18px; color: var(--hot-d); min-height: 26px; }
.pip {
  position: absolute; right: 12px; top: 12px; width: 86px; height: 112px; border-radius: 20px; border: 2px solid var(--ink); background: var(--pink);
  overflow: hidden; z-index: 3; box-shadow: 3px 3px 0 var(--ink); animation: pop .5s var(--ease) both; display: grid; place-items: center;
}
.pip > div { width: 78px; margin-top: 18px; }
.pip::after { content: "Leo"; position: absolute; left: 6px; bottom: 5px; font-size: 10px; font-weight: 900; background: rgba(255,255,255,.85); border-radius: 6px; padding: 0 5px; }
.pip-wave { position: absolute; left: 8px; top: 8px; display: flex; gap: 2px; align-items: center; height: 14px; }
.pip-wave i { width: 3px; background: var(--ink); border-radius: 2px; animation: wave .9s ease-in-out infinite; }
.pip-wave i:nth-child(2) { animation-delay: -.3s; } .pip-wave i:nth-child(3) { animation-delay: -.6s; }
@keyframes wave { 0%, 100% { height: 4px; } 50% { height: 13px; } }
.overlay-msg { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 3; display: flex; flex-direction: column; gap: 6px; }

/* ---------- marquee ---------- */
.marquee { background: var(--ink); color: #fff; padding: 16px 0; overflow: hidden; border-block: var(--line) solid var(--ink); transform: rotate(-1.5deg); margin: 0 -20px; position: relative; z-index: 2; }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 60s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  white-space: nowrap; font-family: var(--display); font-weight: 700; font-size: 19px; padding: 6px 16px; border-radius: 999px;
  background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.18);
}
.marquee-track span::before { content: "@Wavumi "; color: var(--hot); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- what ---------- */
.what { padding-top: 110px; }
.equation { display: grid; grid-template-columns: 1fr auto 1fr; gap: 12px; align-items: center; margin-top: 44px; }
.eq-card {
  border: var(--line) solid var(--ink); border-radius: var(--r); background: #fff; padding: 20px 16px; box-shadow: var(--pop);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; min-height: 150px; justify-content: center;
}
.eq-card b { font-family: var(--display); font-size: 20px; line-height: 1.1; }
.eq-card small { color: var(--ink-2); font-size: 14px; }
.eq-emoji { font-size: 38px; line-height: 1; margin-bottom: 6px; }
.eq-op { font-family: var(--display); font-weight: 800; font-size: 34px; color: var(--hot); text-align: center; }
.equation > .eq-card:nth-of-type(3) { grid-column: 1 / -1; }
.equation > .eq-op:nth-of-type(2) { grid-column: 1 / -1; }
.equation > .eq-op:nth-of-type(3) { grid-column: 1 / -1; }
.eq-result { grid-column: 1 / -1; background: var(--ink); color: #fff; box-shadow: 8px 8px 0 var(--hot); }
.eq-result b { font-size: 32px; letter-spacing: -0.03em; }
.eq-result small { color: #d9c8ff; }
.eq-mochi { width: 110px; height: 80px; }
.c-lav { background: var(--lav); } .c-sun { background: var(--sun); } .c-sky { background: var(--sky); }
.c-pink { background: var(--pink); } .c-mint { background: var(--mint); }

/* ---------- demo ---------- */
.demo { background: var(--paper); border-block: var(--line) solid var(--ink); overflow: hidden; }
.demo-grid { display: grid; gap: 40px; }
.idea {
  display: flex; align-items: center; gap: 8px; margin-top: 28px; background: #fff; border: var(--line) solid var(--ink); border-radius: 22px;
  padding: 7px 7px 7px 14px; box-shadow: var(--pop); flex-wrap: wrap;
}
.idea-at { font-weight: 900; color: var(--hot-d); font-size: 15px; }
.idea input { flex: 1; min-width: 150px; border: 0; outline: 0; background: transparent; font-size: 17px; font-weight: 700; padding: 10px 0; }
.idea input::placeholder { color: var(--ink-3); }
.idea .btn { min-height: 46px; padding: 0 18px; box-shadow: none; }
.idea .btn:hover { box-shadow: 3px 3px 0 var(--ink); }
.suggest { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 18px; }
.suggest button {
  border: 2px solid var(--ink); background: #fff; border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 14.5px; cursor: pointer;
  transition: transform .15s var(--ease), background .15s;
}
.suggest button:hover { background: var(--sun); transform: rotate(-2deg) scale(1.03); }
.demo-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.phone-demo { height: 600px; }
.demo-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.app-screen { justify-content: flex-start; padding: 16px 14px; background: var(--paper); }
.empty-state { margin: auto; text-align: center; color: var(--ink-3); display: flex; flex-direction: column; align-items: center; gap: 10px; font-weight: 800; }
.empty-state > div { width: 130px; animation: bob 4s ease-in-out infinite; }

.building { margin: auto 0; display: flex; flex-direction: column; gap: 14px; }
.building .bmochi { width: 110px; align-self: center; animation: squish .7s ease-in-out infinite alternate; transform-origin: bottom; }
@keyframes squish { from { transform: scale(1.06, .92); } to { transform: scale(.96, 1.05); } }
.building ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.building li { display: flex; gap: 10px; align-items: center; font-weight: 800; color: var(--ink-3); transition: color .2s; }
.building li::before { content: ""; width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; flex: none; }
.building li.on { color: var(--ink); }
.building li.on::before { border-color: var(--ink); border-top-color: transparent; animation: spin .7s linear infinite; }
.building li.done { color: var(--ink); }
.building li.done::before { content: "✓"; display: grid; place-items: center; background: var(--mint-d); color: #fff; border-color: var(--ink); font-size: 12px; animation: none; }
@keyframes spin { to { transform: rotate(360deg); } }

/* mini apps */
.mini { display: flex; flex-direction: column; gap: 12px; height: 100%; animation: pop .5s var(--ease) both; }
.mini h4 { margin: 0; font-family: var(--display); font-size: 22px; text-align: center; letter-spacing: -0.02em; }
.mini .hint { text-align: center; font-size: 13.5px; color: var(--ink-2); }
.mini .result { text-align: center; font-family: var(--display); font-weight: 800; font-size: 19px; min-height: 28px; color: var(--hot-d); }
.mini .bigbtn { align-self: center; }
.mini-from { font-size: 12px; color: var(--ink-3); text-align: center; font-weight: 700; }

.wheel-wrap { position: relative; width: 236px; height: 236px; align-self: center; margin-top: 6px; }
.wheel { width: 100%; height: 100%; border-radius: 50%; border: var(--line) solid var(--ink); position: relative; transition: transform 4s cubic-bezier(.17, .89, .2, 1); box-shadow: 4px 4px 0 var(--ink); }
.wheel span { position: absolute; left: 50%; top: 50%; width: 50%; transform-origin: 0 50%; font-size: 12px; font-weight: 900; padding-left: 26px; height: 20px; margin-top: -10px; line-height: 20px; white-space: nowrap; }
.wheel-pin { position: absolute; top: -12px; left: 50%; translate: -50% 0; width: 0; height: 0; border-left: 13px solid transparent; border-right: 13px solid transparent; border-top: 24px solid var(--ink); z-index: 2; }
.wheel-hub { position: absolute; inset: 50%; width: 46px; height: 46px; margin: -23px; border-radius: 50%; background: #fff; border: var(--line) solid var(--ink); display: grid; place-items: center; font-size: 20px; }

.quiz-q { border: 2px solid var(--ink); border-radius: 18px; padding: 16px; background: #fff; font-family: var(--display); font-weight: 800; font-size: 19px; line-height: 1.2; text-align: center; box-shadow: 3px 3px 0 var(--ink); }
.quiz-opts { display: flex; flex-direction: column; gap: 8px; }
.quiz-opts button { border: 2px solid var(--ink); border-radius: 14px; background: #fff; padding: 11px; font-weight: 800; cursor: pointer; text-align: left; transition: transform .15s var(--ease), background .2s; }
.quiz-opts button:hover:not(:disabled) { transform: translateX(4px); background: var(--cream); }
.quiz-opts button.right { background: var(--mint); }
.quiz-opts button.wrong { background: var(--pink); }
.quiz-meta { display: flex; justify-content: space-between; align-items: center; font-size: 13px; font-weight: 800; color: var(--ink-2); }

.race { display: flex; flex-direction: column; gap: 14px; margin-top: 4px; }
.lane { position: relative; height: 64px; border: 2px solid var(--ink); border-radius: 18px; background: repeating-linear-gradient(90deg, #fff 0 22px, var(--cream) 22px 44px); overflow: hidden; }
.lane::after { content: "🏁"; position: absolute; right: 6px; top: 50%; translate: 0 -50%; font-size: 24px; }
.runner { position: absolute; left: 4px; top: 4px; width: 58px; transition: left .12s ease-out; }
.lane-label { position: absolute; left: 8px; bottom: 2px; font-size: 10px; font-weight: 900; color: var(--ink-2); z-index: 1; }
.race-btns { display: grid; grid-template-columns: 1fr; gap: 8px; }
.tap {
  border: var(--line) solid var(--ink); border-radius: 20px; background: var(--hot); color: #fff; font-family: var(--display); font-weight: 800; font-size: 22px; padding: 18px;
  cursor: pointer; box-shadow: 4px 4px 0 var(--ink); touch-action: manipulation; user-select: none; -webkit-user-select: none;
}
.tap:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--ink); }
.presence { display: flex; align-items: center; gap: 6px; justify-content: center; font-size: 12.5px; font-weight: 800; color: var(--mint-d); }
.presence::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--mint-d); animation: blink 1.2s infinite; }
@keyframes blink { 50% { opacity: .3; } }

.memo { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.memo button {
  aspect-ratio: 1 / 1.15; border: 2px solid var(--ink); border-radius: 14px; background: var(--lav); font-size: 28px; cursor: pointer; padding: 0;
  transition: transform .35s var(--ease), background .2s; transform-style: preserve-3d; display: grid; place-items: center;
}
.memo button span { opacity: 0; transition: opacity .15s; }
.memo button.open, .memo button.got { background: #fff; transform: rotateY(180deg); }
.memo button.open span, .memo button.got span { opacity: 1; transform: rotateY(180deg); }
.memo button.got { background: var(--mint); }
.memo-big button { font-size: 34px; }

.confetti { position: absolute; inset: 0; pointer-events: none; overflow: hidden; z-index: 5; }
.confetti i { position: absolute; top: -10px; width: 9px; height: 14px; border-radius: 2px; animation: fall 1.4s ease-in forwards; }
@keyframes fall { to { transform: translateY(640px) rotate(540deg); opacity: .6; } }

/* ---------- how ---------- */
.steps { list-style: none; padding: 0; margin: 56px 0 0; display: flex; flex-direction: column; gap: 44px; counter-reset: s; }
.step { display: grid; gap: 22px; align-items: center; }
.step-copy h3 { font-size: clamp(30px, 5vw, 44px); margin: 6px 0 10px; }
.step-copy p { color: var(--ink-2); font-size: 18px; max-width: 32em; }
.step-n { font-family: var(--display); font-weight: 800; font-size: 15px; background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 999px; }
.step-art {
  position: relative; border: var(--line) solid var(--ink); border-radius: var(--r); background: #fff; box-shadow: var(--pop-lg);
  padding: 22px; min-height: 250px; display: flex; flex-direction: column; justify-content: center; gap: 12px; overflow: hidden;
}
.step:nth-child(1) .step-art { background: var(--paper); }
.step:nth-child(2) .step-art { background: var(--lav); }
.step:nth-child(3) .step-art { background: var(--sun); }
.step:nth-child(4) .step-art { background: var(--sky); }
.step:nth-child(5) .step-art { background: var(--pink); }
.step-art .bubble { animation: none; font-size: 15px; }
.build-bar { height: 14px; border: 2px solid var(--ink); border-radius: 99px; overflow: hidden; background: #fff; width: 70%; align-self: center; }
.build-bar i { display: block; height: 100%; width: 0; background: repeating-linear-gradient(-45deg, var(--hot) 0 8px, #ff86b6 8px 16px); }
.step.in .build-bar i { animation: fill 2.2s ease-out .3s forwards; }
@keyframes fill { to { width: 100%; } }
.mini-card {
  display: grid; grid-template-columns: auto 1fr; column-gap: 12px; align-items: center; border: 2px solid var(--ink); border-radius: 18px; padding: 12px 14px;
  box-shadow: 3px 3px 0 var(--ink); max-width: 300px; align-self: center; width: 100%;
}
.mini-card span:first-child { grid-row: span 2; font-size: 30px; width: 50px; height: 50px; border-radius: 14px; background: #fff; border: 2px solid var(--ink); display: grid; place-items: center; }
.mini-card b { font-family: var(--display); font-size: 17px; }
.mini-card small { font-size: 12.5px; color: var(--ink-2); font-weight: 800; }
.art-say .mini-card { opacity: 0; transform: scale(.8); }
.step.in .art-say .mini-card { animation: pop .5s var(--ease) 2.5s forwards; }
.remix-arrow { text-align: center; font-weight: 800; font-size: 15px; color: var(--ink); }
.art-remix .mini-card:first-child { transform: rotate(-2deg); background: #fff; }
.art-remix .mini-card:last-child { transform: rotate(1.5deg); }
.invite-card { background: #fff; border: 2px solid var(--ink); border-radius: 22px; padding: 18px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 4px; max-width: 280px; align-self: center; box-shadow: 4px 4px 0 var(--ink); transform: rotate(-2deg); }
.ic-pair { width: 100px; height: 72px; }
.invite-card b { font-family: var(--display); font-size: 19px; }
.invite-card small { color: var(--ink-2); margin-bottom: 8px; }
.play-board { background: #fff; border: 2px solid var(--ink); border-radius: 20px; padding: 16px; display: flex; flex-direction: column; gap: 10px; box-shadow: 4px 4px 0 var(--ink); }
.pb-q { font-family: var(--display); font-size: 18px; font-weight: 800; line-height: 1.2; }
.pb-ans { display: flex; align-items: center; gap: 8px; }
.pb-lock { background: var(--cream); border: 2px dashed var(--ink-3); border-radius: 12px; padding: 6px 10px; font-size: 14px; font-weight: 800; color: var(--ink-2); flex: 1; }
.typing { display: inline-flex; gap: 4px; background: var(--cream); border-radius: 12px; padding: 10px 12px; border: 2px solid var(--ink); }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); animation: typing 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes typing { 0%, 60%, 100% { transform: none; opacity: .4; } 30% { transform: translateY(-4px); opacity: 1; } }
.art-talk { min-height: 270px; }
.talk-game { position: absolute; inset: 22px 22px 22px 22px; border: 2px solid var(--ink); border-radius: 20px; background: #fff; display: grid; place-items: center; font-size: 80px; box-shadow: 4px 4px 0 var(--ink); }
.talk-vid { position: absolute; width: 78px; height: 78px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--lav); overflow: hidden; z-index: 1; padding: 10px 6px 0; }
.talk-vid.v1 { left: 10px; top: 10px; animation: bob 4s ease-in-out infinite; }
.talk-vid.v2 { right: 10px; top: 46px; background: #fff0f6; animation: bob 4.6s ease-in-out -1s infinite; }
.talk-msg { position: absolute; left: 30px; bottom: 30px; z-index: 1; box-shadow: 3px 3px 0 var(--ink); }

/* ---------- circles ---------- */
.circles { background: var(--paper); border-block: var(--line) solid var(--ink); }
.tabs { display: flex; gap: 8px; margin-top: 34px; overflow-x: auto; padding: 4px 4px 10px; margin-inline: -4px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: none; border: var(--line) solid var(--ink); border-radius: 999px; background: #fff; padding: 10px 18px; font-family: var(--display); font-weight: 800; font-size: 16.5px;
  cursor: pointer; transition: transform .15s var(--ease), background .15s;
}
.tab[aria-selected="true"] { background: var(--ink); color: #fff; box-shadow: 3px 3px 0 var(--hot); }
.tab:hover:not([aria-selected="true"]) { transform: translateY(-2px); }
.circle-panel { margin-top: 22px; display: grid; gap: 18px; }
.cp-story { border: var(--line) solid var(--ink); border-radius: var(--r); padding: 24px; box-shadow: var(--pop-lg); animation: pop .45s var(--ease) both; display: flex; flex-direction: column; gap: 12px; }
.cp-people { display: flex; align-items: center; gap: 10px; font-weight: 800; color: var(--ink-2); font-size: 15px; }
.cp-people .avs { display: flex; } .cp-people .avs .av + .av { margin-left: -8px; }
.cp-story h3 { font-size: clamp(28px, 5vw, 42px); }
.cp-story p { color: var(--ink); font-size: 17.5px; max-width: 34em; }
.cp-flow { display: grid; gap: 12px; animation: pop .45s var(--ease) .08s both; }
.cp-box { border: var(--line) solid var(--ink); border-radius: var(--r); background: #fff; padding: 18px; box-shadow: var(--pop); display: flex; flex-direction: column; gap: 10px; }
.cp-box .label { font-size: 12px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cp-box .bubble { animation: none; max-width: 100%; }
.cp-moment { display: flex; gap: 12px; align-items: center; font-weight: 800; font-size: 16px; }
.cp-moment .em { font-size: 32px; flex: none; }

/* ---------- night ---------- */
.night { background: var(--night); color: #fff; overflow: hidden; }
.night .sub { color: #d6c8e8; }
.kicker-night { color: #ff86b6; }
.night h2 em { font-style: normal; color: var(--sun-d); }
.night-grid { display: grid; gap: 48px; align-items: center; }
.night-copy, .night-stage { position: relative; z-index: 1; }
.pills { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.pills li { border: 2px solid rgba(255,255,255,.3); border-radius: 999px; padding: 8px 14px; font-weight: 800; font-size: 15px; background: rgba(255,255,255,.06); }
.tv {
  position: relative; border: var(--line) solid #fff; border-radius: 34px; background: var(--night-2); aspect-ratio: 4 / 5; max-width: 460px; margin: 0 auto;
  box-shadow: 10px 10px 0 var(--hot); overflow: hidden;
}
.tv-game { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; }
.ttt { display: grid; grid-template-columns: repeat(3, var(--cell, 58px)); grid-template-rows: repeat(3, var(--cell, 58px)); gap: 8px; }
@media (min-width: 420px) { .ttt { --cell: 72px; } }
@media (max-width: 419px) { .vid { width: 84px; height: 84px; } .vid-b { bottom: 70px; right: 10px; } .vid-a { left: 10px; top: 10px; } }
.ttt span { border-radius: 16px; background: rgba(255,255,255,.08); border: 2px solid rgba(255,255,255,.25); display: grid; place-items: center; font-family: var(--display); font-weight: 800; font-size: 40px; }
.ttt span.x { color: var(--hot); animation: pop .4s var(--ease) both; }
.ttt span.o { color: var(--sky-d); animation: pop .4s var(--ease) both; }
.tv-score { display: flex; align-items: center; gap: 10px; font-family: var(--display); font-weight: 800; font-size: 22px; }
.tv-score .av { color: var(--ink); }
.vid { position: absolute; width: 104px; height: 104px; border-radius: 50%; border: var(--line) solid #fff; overflow: visible; z-index: 2; }
.vid > div { width: 100%; height: 100%; border-radius: 50%; overflow: hidden; padding: 14px 8px 0; }
.vid-a { left: 16px; top: 16px; } .vid-a > div { background: #4b2a78; }
.vid-b { right: 16px; bottom: 96px; } .vid-b > div { background: #6a1f4a; }
.ring { position: absolute; inset: -8px; border-radius: 50%; border: 3px solid var(--mint-d); animation: ring 1.6s ease-out infinite; }
.vid-b .ring { animation-delay: -.8s; border-color: var(--sun-d); }
@keyframes ring { from { transform: scale(.92); opacity: 1; } to { transform: scale(1.22); opacity: 0; } }
.float-msg { position: absolute; z-index: 3; background: #fff; color: var(--ink); border-radius: 18px 18px 18px 6px; padding: 8px 13px; font-weight: 800; font-size: 14px; border: 2px solid var(--ink); box-shadow: 3px 3px 0 var(--hot); }
.fm1 { left: 18px; bottom: 74px; animation: msgIn 6s ease-in-out infinite; }
.fm2 { right: 18px; top: 130px; background: var(--lav); border-radius: 18px 18px 6px 18px; animation: msgIn 6s ease-in-out 1.6s infinite; }
@keyframes msgIn { 0%, 5% { opacity: 0; transform: translateY(12px); } 12%, 80% { opacity: 1; transform: none; } 92%, 100% { opacity: 0; transform: translateY(-8px); } }
.reactions { position: absolute; inset: 0; pointer-events: none; z-index: 4; }
.reactions span { position: absolute; bottom: -40px; font-size: 30px; animation: floatUp 3.2s ease-out forwards; }
@keyframes floatUp { to { transform: translateY(-420px) rotate(var(--rot, 20deg)); opacity: 0; } }

/* ---------- memories ---------- */
.mem-grid { display: grid; gap: 40px; align-items: center; }
.scrapbook { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; position: relative; }
.scrapbook::before { content: ""; position: absolute; left: 34px; top: 20px; bottom: 20px; border-left: 3px dashed var(--ink-3); }
.mem {
  position: relative; display: grid; grid-template-columns: 70px 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 12px;
  background: #fff; border: var(--line) solid var(--ink); border-radius: 20px; padding: 12px 16px 12px 0; box-shadow: var(--pop); transform: rotate(var(--r, 0deg));
  transition: transform .25s var(--ease);
}
.mem:hover { transform: rotate(0deg) scale(1.02); }
.mem-emoji { grid-row: span 2; font-size: 34px; justify-self: center; background: var(--cream); width: 52px; height: 52px; border-radius: 50%; border: 2px solid var(--ink); display: grid; place-items: center; }
.mem-date { font-size: 12px; font-weight: 900; color: var(--hot-d); text-transform: uppercase; letter-spacing: .08em; }
.mem b { font-family: var(--display); font-size: 18px; line-height: 1.2; }

/* ---------- vs ---------- */
.vs { padding-top: 40px; }
.vs-table { margin-top: 36px; border: var(--line) solid var(--ink); border-radius: var(--r); overflow: hidden; background: #fff; box-shadow: var(--pop-lg); }
.vs-row { display: grid; grid-template-columns: .8fr 1fr 1fr; border-top: 2px solid #f0e4d4; }
.vs-row > span { padding: 16px 14px; font-weight: 800; font-size: 16px; }
.vs-row > span:first-child { color: var(--ink-3); font-size: 13px; text-transform: uppercase; letter-spacing: .08em; align-self: center; }
.vs-row > span:nth-child(2) { color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(43,17,69,.3); }
.vs-row .vs-w { background: var(--lav); font-family: var(--display); font-size: 18px; }
.vs-head { border-top: 0; }
.vs-head > span { font-family: var(--display); font-weight: 800; font-size: 18px !important; text-decoration: none !important; color: var(--ink) !important; text-transform: none !important; letter-spacing: 0 !important; }
.vs-head .vs-w { background: var(--ink); color: #fff; }

/* ---------- gallery ---------- */
.gallery { background: var(--paper); border-block: var(--line) solid var(--ink); }
.cards { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 40px; }
.card {
  perspective: 900px; border: 0; padding: 0; background: none; cursor: pointer; text-align: left; height: 220px;
}
.card-in { position: relative; width: 100%; height: 100%; transition: transform .6s var(--ease); transform-style: preserve-3d; }
.card.flip .card-in { transform: rotateY(180deg); }
.card-face {
  position: absolute; inset: 0; border: var(--line) solid var(--ink); border-radius: 22px; padding: 14px; box-shadow: var(--pop);
  backface-visibility: hidden; -webkit-backface-visibility: hidden; display: flex; flex-direction: column; gap: 6px;
}
.card-face .em { font-size: 44px; line-height: 1; margin: 4px 0 auto; }
.card-face b { font-family: var(--display); font-size: 18px; line-height: 1.1; }
.card-face small { font-size: 12.5px; color: var(--ink-2); font-weight: 800; }
.card-face .rm { position: absolute; top: 12px; right: 12px; font-size: 12px; font-weight: 900; background: #fff; border: 2px solid var(--ink); border-radius: 999px; padding: 3px 9px; }
.card-back { transform: rotateY(180deg); background: var(--ink); color: #fff; justify-content: center; }
.card-back .lbl { font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: #ff86b6; font-weight: 900; }
.card-back ul { list-style: none; padding: 0; margin: 4px 0 0; display: flex; flex-direction: column; gap: 6px; }
.card-back li { font-size: 14px; font-weight: 800; line-height: 1.25; }
.card-back li::before { content: "🔁 "; }

/* ---------- private ---------- */
.private-grid { display: grid; gap: 40px; align-items: center; }
.lock-art { display: grid; place-items: center; }
.lock-ring {
  width: 250px; height: 250px; border-radius: 50%; border: var(--line) solid var(--ink); background: var(--lav); display: grid; place-items: center;
  box-shadow: var(--pop-lg); position: relative;
}
.lock-ring::before { content: ""; position: absolute; inset: 18px; border-radius: 50%; border: 3px dashed var(--ink); animation: spin 30s linear infinite; }
.lock-ring span { width: 170px; height: 124px; }
.checks { list-style: none; padding: 0; margin: 28px 0 0; display: flex; flex-direction: column; gap: 16px; }
.checks li { padding-left: 42px; position: relative; font-size: 17.5px; color: var(--ink-2); }
.checks li b { color: var(--ink); font-family: var(--display); font-size: 19px; }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; border-radius: 50%; background: var(--mint); border: 2px solid var(--ink); display: grid; place-items: center; font-weight: 900; color: var(--ink); font-size: 14px; }

/* ---------- invite ---------- */
.invite { overflow: hidden; }
.invite-grid { display: grid; gap: 36px; align-items: center; position: relative; z-index: 1; }
.who { margin-top: 26px; display: flex; flex-direction: column; gap: 14px; }
.who input {
  border: var(--line) solid var(--ink); border-radius: 18px; padding: 14px 18px; font-family: var(--display); font-size: 24px; font-weight: 800; background: #fff;
  box-shadow: var(--pop); outline: 0; width: 100%; max-width: 420px;
}
.who input:focus { box-shadow: 5px 5px 0 var(--hot); }
.who-kinds { display: flex; flex-wrap: wrap; gap: 8px; }
.who-kinds button { border: 2px solid var(--ink); border-radius: 999px; background: #fff; padding: 8px 14px; font-weight: 800; cursor: pointer; font-size: 15px; }
.who-kinds button[aria-checked="true"] { background: var(--sun); box-shadow: 2px 2px 0 var(--ink); }
.invite-out { display: flex; flex-direction: column; align-items: center; gap: 18px; }
.note {
  position: relative; width: 100%; max-width: 400px; background: #fff; border: var(--line) solid var(--ink); border-radius: 26px; padding: 28px 22px 20px;
  box-shadow: var(--pop-lg); transform: rotate(-1.5deg); display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center;
}
.note::before { content: ""; position: absolute; top: -14px; left: 50%; width: 90px; height: 26px; translate: -50% 0; rotate: 3deg; background: rgba(255, 204, 51, .75); border: 2px solid rgba(43,17,69,.15); }
.note-pair { width: 120px; height: 86px; }
.note p { font-family: var(--display); font-size: 21px; font-weight: 700; line-height: 1.3; min-height: 2.6em; }
.note-link { font-size: 13.5px; font-weight: 800; color: var(--ink-2); background: var(--cream); border-radius: 999px; padding: 6px 12px; border: 2px dashed var(--ink-3); }
.invite-actions { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; }
.invite-out .fine { text-align: center; }

/* ---------- faq ---------- */
.faq h2 { margin-bottom: 34px; }
.qa { border: var(--line) solid var(--ink); border-radius: 20px; background: #fff; margin-bottom: 12px; box-shadow: 4px 4px 0 var(--ink); overflow: hidden; }
.qa summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 20px; font-family: var(--display); font-weight: 800; font-size: 19px; position: relative; line-height: 1.25; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; position: absolute; right: 16px; top: 50%; translate: 0 -50%; width: 30px; height: 30px; border-radius: 50%; background: var(--sun); border: 2px solid var(--ink); display: grid; place-items: center; font-size: 20px; transition: rotate .25s var(--ease); }
.qa[open] summary::after { rotate: 45deg; background: var(--pink); }
.qa p { padding: 0 20px 20px; color: var(--ink-2); font-size: 17px; }

/* ---------- final ---------- */
.final { background: var(--ink); color: #fff; text-align: center; overflow: hidden; padding: 100px 0 110px; }
.final::before {
  content: ""; position: absolute; inset: 0; opacity: .5;
  background: radial-gradient(60% 50% at 50% 0%, rgba(255,95,158,.45), transparent 70%), radial-gradient(50% 50% at 50% 100%, rgba(143,107,255,.45), transparent 70%);
}
.final-inner { display: flex; flex-direction: column; align-items: center; }
.final h2 { margin: 18px auto 0; max-width: 14ch; }
.final .sub { color: #d6c8e8; margin-inline: auto; }
.final-pair { width: 220px; height: 160px; animation: bob 4s ease-in-out infinite; }

.foot { background: var(--night); color: #cbb9e0; padding: 34px 0 calc(34px + env(safe-area-inset-bottom)); }
.foot-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; align-items: center; justify-content: space-between; }
.foot .brand { color: #fff; }
.foot-small { font-size: 13.5px; }
.foot-links { display: flex; gap: 18px; font-size: 14.5px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(24px + env(safe-area-inset-bottom)); translate: -50% calc(100% + 80px); visibility: hidden; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 999px;
  font-weight: 800; z-index: 90; transition: translate .35s var(--ease), visibility 0s .35s; box-shadow: 4px 4px 0 var(--hot); max-width: calc(100vw - 32px); text-align: center;
}
.toast.show { translate: -50% 0; visibility: visible; transition: translate .35s var(--ease); }

/* ---------- mochi ---------- */
.mochi { width: 100%; height: auto; overflow: visible; }
.mochi .eyes { transform-box: fill-box; transform-origin: center; animation: blinkEye 5s infinite; }
@keyframes blinkEye { 0%, 46%, 50%, 100% { transform: scaleY(1); } 48% { transform: scaleY(.1); } }

/* ---------- reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* =============== larger screens =============== */
@media (min-width: 600px) {
  :root { --gutter: 28px; }
  .equation { grid-template-columns: 1fr auto 1fr auto 1fr; }
  .equation > .eq-card:nth-of-type(3), .equation > .eq-op:nth-of-type(2) { grid-column: auto; }
  .equation > .eq-op:nth-of-type(3) { grid-column: 1 / -1; }
  .cards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .race-btns { grid-template-columns: 1fr; }
}

@media (min-width: 900px) {
  body { font-size: 18px; }
  .section { padding: 120px 0; }
  .nav { padding-inline: 32px; }
  .nav-links { display: flex; }
  .nav-end { margin-left: 0; }
  .hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); align-items: center; padding: 40px 32px 90px; min-height: calc(100vh - 64px); }
  .hero-stage { min-height: 680px; }
  .phone { height: 660px; }
  .float-sticker { width: 124px; }
  .float-sticker.s1 { left: -24px; top: 170px; }
  .float-sticker.s2 { right: -34px; bottom: 36px; }
  .st1 { left: 40px; } .st2 { right: 10px; } .st3 { left: 10px; }

  .equation { grid-template-columns: 1fr auto 1fr auto 1fr auto 1.25fr; gap: 14px; }
  .equation > .eq-op:nth-of-type(3) { grid-column: auto; }
  .eq-result { grid-column: auto; min-height: 190px; }
  .eq-card { min-height: 190px; }

  .demo-grid { grid-template-columns: 1fr 1fr; align-items: center; gap: 60px; }

  .steps { gap: 80px; }
  .step { grid-template-columns: 1fr 1fr; gap: 70px; }
  .step:nth-child(even) .step-art { order: 2; }
  .step-art { min-height: 320px; padding: 34px; }
  .art-talk { min-height: 320px; }

  .circle-panel { grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: stretch; }
  .cp-story { padding: 36px; justify-content: center; }

  .night-grid { grid-template-columns: 1fr 1fr; gap: 70px; }
  .mem-grid { grid-template-columns: 1fr 1fr; gap: 80px; }
  .cards { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .card { height: 240px; }
  .private-grid { grid-template-columns: .8fr 1.2fr; gap: 80px; }
  .lock-ring { width: 320px; height: 320px; }
  .lock-ring span { width: 210px; height: 152px; }
  .invite-grid { grid-template-columns: 1fr 1fr; gap: 60px; }
  .vs-row > span { padding: 20px 26px; font-size: 18px; }
  .vs-row .vs-w { font-size: 21px; }
}

@media (min-width: 900px) {
  .hero h1 { font-size: clamp(64px, 7.4vw, 104px); }  :lang(zh) .hero h1 { font-size: clamp(52px, 5.4vw, 80px); }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; padding: 0 16px; }
}
