/* ═══════════════════════════════════════════════════════════
   HARUKA — "OPEN THE TOY BOX"
   Palette law: pink lives ONLY inside the sticker art.
   ═══════════════════════════════════════════════════════════ */
:root {
  --cream: #F7F1E6;
  --navy: #22293B;
  --yellow: #FFC53D;
  --blue: #3D7BF7;
  --green: #3FAF7E;
  --red: #FF5A38;
  --apricot: #F49E5C;
  --day-t: 0.5;
  --sky-color: #3D7BF7;
  --font-display: "Baloo 2", "Nunito", sans-serif;
  --font-body: "Nunito", sans-serif;
  --font-yue: "Noto Sans HK", "Nunito", sans-serif;
  --shadow-hard: 0 6px 0 var(--navy);
  --shadow-soft: 0 14px 40px rgba(34, 41, 59, 0.18);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { overscroll-behavior-y: none; }
body {
  background: var(--cream);
  color: var(--navy);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  overflow-x: hidden;
}
body.no-cursor, body.no-cursor a, body.no-cursor button { cursor: none; }
img { user-select: none; -webkit-user-drag: none; }
[lang="yue"] { font-family: var(--font-yue); font-weight: 700; }

.sr-only {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

::selection { background: var(--yellow); color: var(--navy); }

:focus-visible {
  outline: 3px solid var(--navy); outline-offset: 3px; border-radius: 6px;
  box-shadow: 0 0 0 7px var(--yellow);
}

/* ── type scale ─────────────────────────────────────────── */
.display {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(52px, 8vw, 118px); line-height: 0.97;
  text-shadow: 4px 4px 0 var(--yellow);
  letter-spacing: -0.01em;
}
.h2 {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(38px, 5.6vw, 84px); line-height: 1.02;
  text-shadow: 4px 4px 0 var(--yellow);
  margin-bottom: 18px;
}
.h2 .hl { text-shadow: none; background: linear-gradient(transparent 55%, var(--yellow) 55%); padding: 0 4px; }
.lede {
  font-weight: 600; font-size: clamp(17px, 1.6vw, 21px);
  max-width: 38em; margin-bottom: 8px;
}
.panel-label {
  font-family: var(--font-display); font-weight: 700; font-size: 22px;
  letter-spacing: 0.02em;
}
.footnote, .fine-print, .trust-line {
  font-weight: 700; font-size: 13px; letter-spacing: 0.04em;
  opacity: 0.75; margin-top: 26px;
}
[data-split] .word { display: inline-block; white-space: nowrap; }
[data-split] .ch { display: inline-block; white-space: pre; will-change: transform; }

/* ── stickers ───────────────────────────────────────────── */
.sticker {
  display: block;
  filter: drop-shadow(0 10px 18px rgba(34, 41, 59, 0.22));
  will-change: transform;
  pointer-events: none;
}

/* ── speech bubbles ─────────────────────────────────────── */
.bubble {
  position: absolute;
  background: #fff;
  border: 3px solid var(--navy);
  border-radius: 18px;
  padding: 12px 16px;
  font-size: 17px;
  line-height: 1.45;
  box-shadow: 4px 4px 0 rgba(34, 41, 59, 0.9);
  max-width: 300px;
  opacity: 0;
  transform: scale(0);
  z-index: 5;
}
.bubble::after {
  content: ""; position: absolute; bottom: -12px; left: 32px;
  width: 18px; height: 18px; background: #fff;
  border-right: 3px solid var(--navy); border-bottom: 3px solid var(--navy);
  transform: rotate(45deg) skew(8deg, 8deg);
}
.bubble.thought { border-radius: 50px; }
.bubble.thought::after {
  border: 3px solid var(--navy); border-radius: 50%;
  width: 10px; height: 10px; bottom: -18px; left: 24px; transform: none;
}
.bubble i { display: block; font-size: 12.5px; font-style: normal; font-weight: 700; opacity: 0.78; margin-top: 2px; }
.bubble [lang="yue"] { font-size: 17px; }

.tape-tag {
  position: absolute; top: -12px; right: 14px;
  background: rgba(255, 197, 61, 0.92);
  border: 2px solid var(--navy);
  font-size: 10px; font-weight: 800; letter-spacing: 0.06em;
  padding: 1px 8px; border-radius: 3px;
  transform: rotate(3deg);
}
.tape-tag [lang="yue"] { font-size: 10px; }

/* flip-tape EN gloss */
.gloss-tab {
  display: inline-block; margin-top: 6px;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 5px;
  font-family: var(--font-body); font-size: 11px; font-weight: 800;
  letter-spacing: 0.1em; padding: 4px 12px; min-height: 24px; cursor: pointer;
  transform: rotate(-2deg);
}
.gloss-en {
  display: none; font-size: 13px; font-weight: 700; opacity: 0.7; margin-top: 4px;
}
.bubble.gloss-open .gloss-en { display: block; }
.bubble.gloss-open .gloss-tab { background: var(--green); color: var(--navy); }

/* ── toy buttons / CTA system ───────────────────────────── */
.cta {
  position: relative;
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800;
  border: 3px solid var(--navy); border-radius: 999px;
  text-decoration: none;
  box-shadow: var(--shadow-hard);
  transition: box-shadow 0.12s, transform 0.12s;
  will-change: transform;
}
.cta:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--navy); }
.cta em {
  font-style: normal; font-family: var(--font-yue); font-size: 0.62em;
  background: var(--yellow); color: var(--navy);
  padding: 2px 9px; border-radius: 8px; border: 2px solid var(--navy);
}
.cta-nav { background: #C93D1B; } /* deeper toy red — 4.5:1 with the 15px label */
.apple-glyph { width: 1.2em; height: 1.2em; flex: none; }

.cta-big { font-size: 21px; padding: 16px 30px; }
.cta-giant { font-size: clamp(22px, 2.4vw, 30px); padding: 22px 44px; }
.cta-nav { font-size: 15px; padding: 9px 20px; gap: 8px; }
.cta-nav-short { display: none; }
.cta-nav.shrunk .cta-nav-full { display: none; }
.cta-nav.shrunk .cta-nav-short { display: inline; }
.nav-time-dot {
  width: 10px; height: 10px; border-radius: 50%;
  background: var(--sky-color); border: 2px solid #fff;
  display: none;
}
.cta-nav.shrunk .nav-time-dot { display: inline-block; }

.chip {
  display: block; width: 100%; text-align: left;
  background: #fff; border: 3px solid var(--navy); border-radius: 14px;
  font-family: var(--font-body); font-size: 16px; font-weight: 700;
  color: var(--navy);
  padding: 12px 16px; cursor: pointer;
  box-shadow: 0 5px 0 var(--navy);
  transition: transform 0.1s, box-shadow 0.1s;
}
.chip:active, .chip.pressed { transform: translateY(4px); box-shadow: 0 1px 0 var(--navy); }
.chip i { display: block; font-size: 12px; font-style: normal; opacity: 0.6; }
.chip.spent { background: var(--cream); opacity: 0.65; }

/* ── toy panels ─────────────────────────────────────────── */
.toy-panel {
  background: var(--yellow);
  border: 4px solid var(--navy);
  border-radius: 26px;
  box-shadow: 0 10px 0 var(--navy), var(--shadow-soft);
  padding: 26px;
}

/* ═══ LOADER ═════════════════════════════════════════════ */
#loader {
  position: fixed; inset: 0; z-index: 100;
  background: var(--cream);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 28px;
}
.loader-box { position: relative; width: 180px; height: 150px; perspective: 700px; }
.loader-body {
  position: absolute; inset: 30px 0 0 0;
  background: #E0A858; border: 4px solid var(--navy); border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.loader-tape {
  position: absolute; top: 0; bottom: 0; left: 50%; width: 34px;
  transform: translateX(-50%);
  background: rgba(255, 197, 61, 0.85); border-left: 3px solid var(--navy); border-right: 3px solid var(--navy);
}
.loader-seal { border-radius: 14px; border: 3px solid var(--navy); position: relative; z-index: 2; }
.loader-lid {
  position: absolute; top: 14px; left: -8px; right: -8px; height: 26px;
  background: #C98E4F; border: 4px solid var(--navy); border-radius: 8px;
  transform-origin: top center; z-index: 3;
}
.loader-line { font-weight: 800; font-size: 17px; }
.loader-line-2 { font-weight: 700; font-size: 14px; opacity: 0; }

/* ═══ WORLD CANVAS + SKY ═════════════════════════════════ */
#world {
  position: fixed; inset: 0; z-index: -2;
  width: 100%; height: 100%;
  display: block;
  opacity: 0.72; /* the room is a soft backdrop — copy always wins */
}
#sky-tint {
  position: fixed; inset: 0; z-index: -1;
  background: var(--sky-color);
  opacity: 0.08; pointer-events: none;
}

/* ═══ CURSOR ═════════════════════════════════════════════ */
#cursor { position: fixed; top: 0; left: 0; z-index: 99; pointer-events: none; display: none; }
body.no-cursor #cursor { display: block; }
.cursor-block {
  position: absolute; top: -7px; left: -7px; width: 14px; height: 14px;
  background: var(--navy); border-radius: 4px;
}
.cursor-ring {
  position: absolute; top: -19px; left: -19px; width: 38px; height: 38px;
  border: 3px solid var(--yellow); border-radius: 12px;
  opacity: 0; transform: scale(0.6);
  transition: opacity 0.18s, transform 0.18s;
}
#cursor.hovering .cursor-ring { opacity: 1; transform: scale(1) rotate(8deg); }

/* ═══ PROGRESS RAIL ══════════════════════════════════════ */
#rail {
  position: fixed; left: 18px; top: 50%; transform: translateY(-50%);
  z-index: 50; width: 26px; height: min(46vh, 420px);
}
.rail-track {
  position: absolute; inset: 0;
  border: 3px solid var(--navy); border-radius: 13px;
  background: rgba(255, 255, 255, 0.65);
  overflow: hidden;
  display: flex; flex-direction: column-reverse;
}
.rail-blocks { display: flex; flex-direction: column-reverse; }
.rail-blocks b {
  height: 0; transition: height 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
  border-top: 2px solid var(--navy);
}
.rail-blocks b.on { height: calc(min(46vh, 420px) / 9 - 1px); }
.rail-blocks b:nth-child(4n+1) { background: var(--yellow); }
.rail-blocks b:nth-child(4n+2) { background: var(--blue); }
.rail-blocks b:nth-child(4n+3) { background: var(--green); }
.rail-blocks b:nth-child(4n+4) { background: var(--red); }
.rail-buddy {
  position: absolute; left: 30px; top: 0; width: 34px;
  filter: drop-shadow(0 3px 5px rgba(34, 41, 59, 0.3));
}
.rail-tip {
  position: absolute; left: 38px; bottom: -8px;
  font-size: 11px; font-weight: 800; white-space: nowrap;
  background: #fff; border: 2px solid var(--navy); border-radius: 6px;
  padding: 2px 8px; opacity: 0; transition: opacity 0.25s;
}
#rail:hover .rail-tip { opacity: 1; }

/* ═══ NAV ════════════════════════════════════════════════ */
#nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; gap: 26px;
  padding: 14px 28px;
}
#nav.scrolled {
  background: rgba(247, 241, 230, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 3px solid var(--navy);
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  color: var(--navy); text-decoration: none;
}
.nav-brand img { border-radius: 10px; border: 2px solid var(--navy); }
.nav-links { display: flex; gap: 18px; margin-left: auto; }
.nav-links a {
  color: var(--navy); text-decoration: none; font-weight: 800; font-size: 14px;
  padding: 4px 2px; border-bottom: 3px solid transparent;
}
.nav-links a:hover { border-bottom-color: var(--yellow); }

/* ═══ SECTION SHELL + tear dividers ══════════════════════ */
section { position: relative; }
.panel-sec { padding: clamp(90px, 12vh, 150px) 0; }
.sec-inner { width: min(1120px, 92vw); margin: 0 auto; position: relative; }

.tear-top { margin-top: -2px; }
.tear-top::before {
  content: ""; display: block; height: 26px; margin-bottom: clamp(40px, 6vh, 80px);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='56' height='26' viewBox='0 0 56 26'%3E%3Cpath d='M0 26 L14 4 L28 22 L42 2 L56 26 Z' fill='%2322293B' opacity='0.10'/%3E%3C/svg%3E");
  background-repeat: repeat-x;
}

/* ═══ S0 HERO ════════════════════════════════════════════ */
#hero { min-height: 100svh; display: flex; flex-direction: column; justify-content: center; padding: 120px 0 40px; }
.hero-grid {
  width: min(1180px, 92vw); margin: 0 auto;
  display: grid; grid-template-columns: 1.25fr 0.75fr; gap: 30px; align-items: center;
}
.hero-copy { position: relative; }
.hero-copy::before {
  content: ""; position: absolute; inset: -8% -12%; z-index: -1;
  background: radial-gradient(ellipse at 40% 45%, rgba(247, 241, 230, 0.85) 35%, rgba(247, 241, 230, 0) 72%);
}
.hero-copy .lede { margin: 26px 0 30px; }
.hero-cta-row { display: flex; align-items: center; gap: 18px; }
.trust-line { margin-top: 18px; }

.hero-haruka { position: relative; height: min(60vh, 560px); }
.hero-box { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 270px; height: 110px; z-index: 4; }
.hero-flap {
  position: absolute; top: 0; width: 46%; height: 36px;
  background: #C98E4F; border: 4px solid var(--navy);
  transform-origin: bottom center;
  z-index: 1;
}
.hero-box::after {
  content: ""; position: absolute; inset: 0; z-index: 2;
  background: #E0A858; border: 4px solid var(--navy); border-radius: 0 0 12px 12px;
}
.hf-l { left: 2%; border-radius: 8px 0 0 0; transform-origin: left bottom; }
.hf-r { right: 2%; border-radius: 0 8px 0 0; transform-origin: right bottom; }
.hero-waving {
  position: absolute; bottom: 70px; left: 50%;
  width: min(300px, 26vw); transform: translateX(-50%);
  z-index: 3;
}
.hero-b1 { top: 6%; right: 4%; }
.hero-b2 { top: 30%; left: -4%; }
.hero-egg { top: -4%; left: 22%; }
.scroll-hint {
  text-align: center; font-weight: 800; font-size: 14px; opacity: 0.7;
  margin-top: clamp(20px, 5vh, 60px);
  animation: hint-bob 1.8s ease-in-out infinite;
}
@keyframes hint-bob { 50% { transform: translateY(6px); } }

/* ═══ S1 CHAT ════════════════════════════════════════════ */
.chat-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 40px;
  margin-top: 44px; align-items: start;
}
.walkie { position: relative; }
.walkie::before {
  content: ""; position: absolute; top: -26px; left: 36px; width: 14px; height: 30px;
  background: var(--navy); border-radius: 7px 7px 0 0;
}
.walkie .panel-label { margin-bottom: 18px; }
.chips { display: grid; gap: 14px; }
.chat-typing { margin-top: 18px; font-weight: 800; font-size: 14px; opacity: 0; }
.chat-typing .dots b { animation: dot-bounce 1s infinite; display: inline-block; }
.chat-typing .dots b:nth-child(2) { animation-delay: 0.15s; }
.chat-typing .dots b:nth-child(3) { animation-delay: 0.3s; }
@keyframes dot-bounce { 30% { transform: translateY(-5px); } }

.chat-stage { position: relative; min-height: 420px; }
.chat-haruka { width: min(270px, 24vw); margin: 0 auto; }
.chat-reply { top: -10px; left: 50%; margin-left: -40px; max-width: 320px; }

/* ═══ S2 ROOM (pinned) ═══════════════════════════════════ */
#room { min-height: 100vh; }
.room-pin {
  height: 100svh; display: flex; flex-direction: column;
  justify-content: center; align-items: center; gap: clamp(4px, 1vh, 12px);
  padding: 86px 4vw 16px;
  overflow: hidden;
}
.room-head .lede { font-size: clamp(15px, 1.8vh, 19px); }
.room-head { text-align: center; }
.room-head .lede { margin: 0 auto; }
.zone-words { display: flex; gap: clamp(16px, 4vw, 50px); margin: 18px 0 6px; }
.zone-word {
  font-family: var(--font-display); font-weight: 800;
  font-size: clamp(22px, 3.4vw, 44px); color: var(--navy);
  background: rgba(247, 241, 230, 0.72); border: none; cursor: pointer;
  border-radius: 12px;
  position: relative; padding: 0 10px; opacity: 0.65;
  transition: opacity 0.3s;
}
.zone-word::before {
  content: ""; position: absolute; inset: 55% 0 6% 0; z-index: -1;
  background: var(--yellow); transform: scaleX(0); transform-origin: left;
  transition: transform 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.zone-word.active { opacity: 1; }
.zone-word.active::before { transform: scaleX(1); }

.room-haruka-wrap { position: relative; height: clamp(160px, 24vh, 260px); }
.room-haruka { height: 100%; width: auto; }
.room-caption { left: 80%; top: 4%; white-space: nowrap; max-width: none; }
.zzz { position: absolute; top: -8%; left: 64%; opacity: 0; }
.zzz b {
  position: absolute; font-family: var(--font-display); font-weight: 800; color: var(--blue);
  animation: zzz-float 2.2s ease-in-out infinite;
}
.zzz b:nth-child(1) { font-size: 30px; }
.zzz b:nth-child(2) { font-size: 22px; left: 22px; top: -16px; animation-delay: 0.4s; }
.zzz b:nth-child(3) { font-size: 16px; left: 40px; top: -30px; animation-delay: 0.8s; }
@keyframes zzz-float { 50% { transform: translateY(-8px) rotate(8deg); } }

.clock-rig { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.clock-dial { width: clamp(92px, 12vh, 130px); cursor: grab; touch-action: none; border-radius: 50%; }
.clock-dial:active { cursor: grabbing; }
.dial-face { fill: #fff; stroke: var(--navy); stroke-width: 6; }
.dial-ticks line { stroke: var(--navy); stroke-width: 3; stroke-linecap: round; }
.dial-hand { fill: var(--red); }
.dial-hub { fill: var(--navy); }
#dial-hand { transform-origin: 60px 60px; }
.dial-label { font-weight: 800; font-size: 13px; letter-spacing: 0.06em; }
.live-line {
  font-weight: 700; font-size: 14px;
  background: #fff; border: 3px solid var(--navy); border-radius: 999px;
  padding: 6px 18px; box-shadow: 0 4px 0 var(--navy);
}
.room-tagline { font-weight: 800; font-size: 13px; letter-spacing: 0.04em; opacity: 0.75; }

/* ═══ S3 MEMORY ══════════════════════════════════════════ */
.memory-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 50px;
  margin-top: 44px; align-items: start;
}
.memory-left .panel-label { margin-bottom: 14px; }
.mem-chips { margin-bottom: 30px; }
.mem-chips .chip [lang="yue"] { font-size: 13px; opacity: 0.7; }

.notebook {
  position: relative;
  background: #fff; border: 4px solid var(--navy); border-radius: 16px;
  box-shadow: 0 8px 0 var(--navy);
  min-height: 220px; padding: 20px 20px 20px 130px;
}
.notebook::before {
  content: ""; position: absolute; left: 108px; top: 0; bottom: 0; width: 3px;
  background: var(--red); opacity: 0.5;
}
.notebook-haruka { position: absolute; left: -30px; bottom: -16px; width: 150px; }
.notebook-page {
  position: relative; height: 100%; min-height: 180px;
  background-image: repeating-linear-gradient(transparent, transparent 30px, rgba(34,41,59,0.18) 31px);
  font-weight: 700; font-size: 17px;
}
.notebook-fact { display: block; padding-top: 8px; }
.ink-stamp {
  position: absolute; top: 60px; left: 10px;
  font-family: var(--font-yue); font-weight: 700; font-size: 26px;
  color: var(--green); border: 4px solid var(--green); border-radius: 10px;
  padding: 4px 14px; transform: rotate(-8deg) scale(0); opacity: 0;
}
.memo-note {
  position: absolute; font-size: 13px;
  background: var(--yellow); border: 2px solid var(--navy); border-radius: 4px;
  padding: 4px 10px; box-shadow: 2px 3px 0 rgba(34,41,59,0.6);
  transition: transform 0.25s;
}
.memo-note:hover { transform: rotate(-6deg) translateY(-4px); }
.mn-1 { top: -16px; right: 30px; rotate: 4deg; }
.mn-2 { bottom: -14px; right: 60px; rotate: -3deg; }
.mn-3 { bottom: 30px; right: -24px; rotate: 7deg; }

.calendar { position: relative; width: 130px; height: 130px; margin: 0 0 26px auto; }
.calendar-page, .calendar-under {
  position: absolute; inset: 0;
  background: #fff; border: 4px solid var(--navy); border-radius: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--font-display);
}
.calendar-page { z-index: 2; }
.calendar-page b { background: var(--red); color: #fff; width: 100%; text-align: center; border-radius: 9px 9px 0 0; position: absolute; top: 0; padding: 2px 0; }
.calendar-page span { font-size: 52px; font-weight: 800; margin-top: 16px; }
.calendar-under b { font-size: 15px; font-weight: 800; text-align: center; padding: 0 8px; }
.memory-stage { position: relative; min-height: 340px; }
.memory-haruka { width: 220px; margin-left: auto; opacity: 0; }
.memory-reply { top: -20px; right: 56%; max-width: 320px; }

/* ═══ S4 PHOTOS ══════════════════════════════════════════ */
.photo-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 40px; margin-top: 44px; }
.photo-desk { position: relative; display: flex; gap: 0; padding: 30px 0; min-height: 320px; align-items: flex-start; }
.polaroid {
  width: 190px; background: #fff;
  border: 3px solid var(--navy); border-radius: 8px;
  padding: 10px 10px 8px; cursor: grab;
  box-shadow: var(--shadow-soft);
  touch-action: pan-y; /* a thumb on a polaroid must still scroll the page */
  position: relative; z-index: 2;
}
.polaroid:active { cursor: grabbing; }
.polaroid svg, .polaroid img { width: 100%; height: auto; border-radius: 4px; display: block; border: 2px solid rgba(34,41,59,0.25); }
.polaroid figcaption { font-weight: 700; font-size: 13px; text-align: center; padding-top: 7px; }
.polaroid:nth-child(1) { rotate: -6deg; }
.polaroid:nth-child(2) { rotate: 3deg; margin-left: -40px; top: 24px; }
.polaroid:nth-child(3) { rotate: -2deg; margin-left: -40px; top: 6px; }
.polaroid.sent { cursor: default; }

.photo-stage { position: relative; min-height: 420px; }
.drop-zone {
  position: absolute; top: 0; left: 0; width: 220px; height: 190px;
  border: 4px dashed var(--navy); border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; opacity: 0.6;
}
.photo-haruka { position: absolute; right: 4%; bottom: 0; width: 240px; }
.photo-study { right: 18%; top: 16%; }
.photo-reply { right: 24%; top: 2%; max-width: 320px; }
.starburst { position: absolute; right: 16%; top: 26%; width: 10px; height: 10px; }
.starburst b {
  position: absolute; width: 12px; height: 12px;
  background: var(--yellow); border: 2px solid var(--navy);
  border-radius: 3px; opacity: 0;
}
.starburst b:nth-child(2n) { background: var(--red); border-radius: 50%; }
.starburst b:nth-child(3n) { background: var(--green); }

/* ═══ S5 MUSIC ═══════════════════════════════════════════ */
.music-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 50px; margin-top: 44px; align-items: center; }
.boombox {
  background: var(--navy); border: 4px solid var(--navy); border-radius: 26px;
  box-shadow: 0 10px 0 rgba(34,41,59,0.5), var(--shadow-soft);
  padding: 20px; color: var(--cream);
}
.ticker-window {
  background: #161B29; border-radius: 10px; overflow: hidden;
  border: 3px solid rgba(247,241,230,0.2);
  margin-bottom: 16px; white-space: nowrap;
}
.ticker { display: inline-flex; font-family: var(--font-display); font-weight: 700; font-size: 15px; color: var(--yellow); padding: 6px 0; }
.ticker span { padding-right: 6px; }
.boombox-face { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; padding: 6px 4px 16px; }
.spool {
  width: 74px; height: 74px; border-radius: 50%;
  background: var(--yellow); border: 4px solid rgba(34,41,59,0.85);
  display: flex; align-items: center; justify-content: center;
  position: relative;
}
.spool i {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--navy);
  position: relative;
}
.spool i::before, .spool i::after {
  content: ""; position: absolute; background: var(--yellow);
  width: 6px; height: 10px; border-radius: 3px; top: 8px;
}
.spool i::before { left: -1px; } .spool i::after { right: -1px; }
.eq { display: flex; align-items: flex-end; gap: 7px; height: 70px; justify-content: center; }
.eq b { width: 12px; height: 100%; border-radius: 6px 6px 0 0; transform-origin: bottom; transform: scaleY(0.15); }
.eq b:nth-child(4n+1) { background: var(--yellow); }
.eq b:nth-child(4n+2) { background: var(--red); }
.eq b:nth-child(4n+3) { background: var(--green); }
.eq b:nth-child(4n+4) { background: var(--blue); }
.play-btn {
  display: block; width: 100%;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 22px;
  border: 3px solid rgba(34,41,59,0.9); border-radius: 16px;
  padding: 14px; cursor: pointer;
  box-shadow: 0 6px 0 rgba(0,0,0,0.45);
  transition: transform 0.1s, box-shadow 0.1s;
}
.play-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 rgba(0,0,0,0.45); }

.music-stage { position: relative; min-height: 380px; }
.music-haruka { width: 230px; margin: auto; }
.vibe-label {
  position: absolute; bottom: 4%; left: 50%; transform: translateX(-50%) rotate(-3deg);
  background: var(--green); color: #fff; font-weight: 800; font-size: 13px;
  border: 2px solid var(--navy); border-radius: 6px; padding: 2px 10px;
  opacity: 0;
}
.music-dream { position: absolute; top: -22%; right: -6%; width: 120px; opacity: 0; }
.music-thought { top: -20%; right: 26%; }
.music-stop { top: 6%; left: 0; max-width: 270px; }

/* ═══ S6 SEARCH & THINK ══════════════════════════════════ */
.mode-toggle-row { display: flex; justify-content: center; margin: 40px 0 26px; }
.mode-toggle {
  display: flex; align-items: center; gap: 16px;
  background: #fff; border: 4px solid var(--navy); border-radius: 999px;
  padding: 10px 22px; cursor: pointer;
  box-shadow: 0 7px 0 var(--navy);
  font-family: var(--font-display);
}
.mt-label { font-weight: 800; font-size: 22px; color: var(--navy); opacity: 0.35; transition: opacity 0.3s; }
.mode-toggle[aria-checked="false"] .mt-search { opacity: 1; }
.mode-toggle[aria-checked="true"] .mt-think { opacity: 1; }
.mt-knob {
  width: 58px; height: 34px; border-radius: 999px;
  background: var(--blue); border: 3px solid var(--navy);
  position: relative;
}
.mt-knob::after {
  content: ""; position: absolute; top: 2px; left: 3px;
  width: 24px; height: 24px; border-radius: 50%;
  background: #fff; border: 3px solid var(--navy); box-sizing: border-box;
  transition: left 0.35s cubic-bezier(0.65, 0, 0.35, 1.4);
}
.mode-toggle[aria-checked="true"] .mt-knob { background: var(--navy); }
.mode-toggle[aria-checked="true"] .mt-knob::after { left: calc(100% - 27px); }

.mode-stage { position: relative; min-height: 440px; overflow: hidden; }
.think-dim {
  position: absolute; inset: 0; background: rgba(34, 41, 59, 0.55);
  opacity: 0; pointer-events: none; z-index: 1; border-radius: 20px;
}
.mode-search, .mode-think { position: absolute; inset: 26px; }
.mode-think { opacity: 0; visibility: hidden; z-index: 2; }
.query-line {
  background: #fff; border: 3px solid var(--navy); border-radius: 12px;
  font-weight: 700; font-size: 17px; padding: 12px 16px;
  width: min(440px, 90%);
  box-shadow: 0 5px 0 var(--navy);
}
.query-caret { animation: caret 0.9s steps(1) infinite; font-weight: 400; }
@keyframes caret { 50% { opacity: 0; } }
.search-haruka { position: absolute; left: 2%; bottom: 0; width: 210px; }
.search-runner { position: absolute; left: 30%; bottom: 0; width: 190px; opacity: 0; }
.search-answer { right: 4%; top: 22%; max-width: 330px; }
.receipts {
  position: absolute; right: 6%; bottom: 12%;
  display: flex; gap: 10px; align-items: center;
}
.receipts span {
  background: #fff; border: 3px solid var(--navy); border-radius: 8px;
  font-weight: 800; font-size: 13px; padding: 5px 12px;
  box-shadow: 0 4px 0 var(--navy);
  opacity: 0; transform: scale(0) rotate(-8deg);
}
.receipts em { font-style: normal; font-weight: 700; font-size: 12px; opacity: 0; }
.think-haruka { position: absolute; left: 4%; bottom: 0; width: 210px; }
.think-loader { left: 26%; top: 8%; }
.think-line { position: absolute; right: 6%; top: 10%; font-weight: 700; color: var(--cream); font-size: 15px; max-width: 200px; text-align: right; }
.think-card {
  position: absolute; right: 5%; bottom: 14%;
  background: #fff; border: 3px solid var(--navy); border-radius: 14px;
  width: min(320px, 60%); padding: 16px 18px;
  box-shadow: 0 6px 0 var(--navy);
  transform-origin: top; opacity: 0;
}
.think-card b { font-family: var(--font-display); font-size: 18px; }
.think-card p { font-size: 14.5px; font-weight: 600; margin-top: 4px; }

/* ═══ S7 PLAY ════════════════════════════════════════════ */
.play-frame {
  position: relative; margin-top: 44px;
  border: 5px solid var(--navy); border-radius: 30px;
  background: rgba(255, 255, 255, 0.5);
  box-shadow: 0 12px 0 var(--navy), var(--shadow-soft);
  padding: 24px; overflow: hidden;
}
.play-frame .panel-label { position: absolute; top: 16px; left: 26px; z-index: 3; }
.score-sticker {
  position: absolute; top: 14px; right: 22px; z-index: 3;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  border: 3px solid var(--navy); border-radius: 12px;
  padding: 6px 16px; rotate: 3deg;
  box-shadow: 0 4px 0 var(--navy);
}
.play-floor { position: relative; height: 440px; }
.hotspot {
  position: absolute; background: none; border: none; cursor: pointer;
  border-radius: 20px;
}
.hotspot::after {
  content: ""; position: absolute; inset: -8px;
  border: 3px dashed rgba(34,41,59,0.35); border-radius: 24px;
  animation: hs-pulse 2s ease-in-out infinite;
}
@keyframes hs-pulse { 50% { transform: scale(1.06); opacity: 0.5; } }
.hs-her { left: 38%; bottom: 8%; }
.play-haruka { width: 220px; }
.hs-lamp { left: 8%; bottom: 12%; }
.lamp-toy { position: relative; display: block; width: 90px; height: 200px; }
.lamp-shade {
  position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 90px; height: 60px; background: var(--yellow);
  border: 4px solid var(--navy);
  clip-path: polygon(18% 0, 82% 0, 100% 100%, 0 100%);
  display: block; z-index: 2;
}
.lamp-pole { position: absolute; top: 58px; left: 50%; width: 10px; height: 105px; transform: translateX(-50%); background: var(--navy); display: block; }
.lamp-base { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 64px; height: 16px; background: var(--navy); border-radius: 8px; display: block; }
.lamp-glow {
  position: absolute; top: -30px; left: 50%; transform: translateX(-50%);
  width: 170px; height: 170px; border-radius: 50%;
  background: radial-gradient(circle, rgba(255,197,61,0.8), transparent 65%);
  opacity: 0; display: block; pointer-events: none;
}
.hs-plush { right: 10%; bottom: 10%; }
.plushie { position: relative; display: block; width: 110px; height: 130px; }
.pl-head { position: absolute; top: 28px; left: 50%; transform: translateX(-50%); width: 74px; height: 64px; background: var(--green); border: 4px solid var(--navy); border-radius: 50%; display: block; }
.pl-body { position: absolute; bottom: 0; left: 50%; transform: translateX(-50%); width: 86px; height: 56px; background: var(--green); border: 4px solid var(--navy); border-radius: 40px 40px 30px 30px; display: block; }
.pl-ear { position: absolute; top: 0; left: 22px; width: 20px; height: 42px; background: var(--green); border: 4px solid var(--navy); border-radius: 10px; display: block; }
.pl-ear.pr { left: auto; right: 22px; }
.play-bubble { left: 48%; top: 6%; }
.record-burst {
  position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%) scale(0) rotate(-6deg);
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: clamp(26px, 4vw, 44px);
  border: 5px solid var(--navy); border-radius: 20px;
  padding: 14px 30px; opacity: 0; z-index: 6;
  box-shadow: 0 8px 0 var(--navy);
}
.sheet-tab {
  position: absolute; right: -5px; top: 40%;
  writing-mode: vertical-rl;
  background: var(--blue); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 15px;
  border: 3px solid var(--navy); border-radius: 12px 0 0 12px;
  padding: 16px 8px; cursor: pointer; z-index: 4;
}
.sheet-tab [lang="yue"] { font-size: 14px; }
.sheet-drawer {
  position: absolute; inset: 0; z-index: 5;
  background: rgba(247, 241, 230, 0.96);
  display: flex; flex-wrap: wrap; align-content: center; justify-content: center; gap: 4px;
  visibility: hidden; opacity: 0;
  padding: 30px;
}
.sheet-drawer img {
  width: 92px; cursor: grab; touch-action: none;
  filter: drop-shadow(0 4px 8px rgba(34,41,59,0.25));
}
.sheet-drawer img:active { cursor: grabbing; }
.sheet-close {
  position: absolute; top: 14px; right: 14px;
  background: var(--red); color: #fff; border: 3px solid var(--navy);
  border-radius: 10px; font-family: var(--font-display); font-weight: 800;
  padding: 6px 14px; cursor: pointer;
}

/* ═══ S8 TAKE HER HOME ═══════════════════════════════════ */
#home { padding-top: 40px; }
.home-pin {
  min-height: 100svh; display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 30px;
  padding: 110px 4vw 30px; text-align: center;
}
.home-pin .lede { margin: 0 auto; }
.pack-stage { position: relative; }
.pack-box {
  position: relative; width: min(360px, 76vw); aspect-ratio: 1;
  perspective: 900px;
}
.pack-room {
  position: absolute; inset: 0; overflow: hidden;
  background: #E0A858; border: 5px solid var(--navy); border-radius: 18px;
  display: flex; align-items: flex-end; justify-content: center;
}
.pack-waving { width: 62%; margin-bottom: -4%; }
.pack-slipper { position: absolute; top: 12%; left: 12%; font-size: 34px; rotate: -20deg; }
.pack-flap {
  position: absolute; background: #C98E4F; border: 4px solid var(--navy);
  opacity: 0.97;
}
.pf-t { top: 0; left: 0; right: 0; height: 50%; transform-origin: top; transform: rotateX(88deg); border-radius: 18px 18px 0 0; }
.pf-b { bottom: 0; left: 0; right: 0; height: 50%; transform-origin: bottom; transform: rotateX(-88deg); border-radius: 0 0 18px 18px; }
.pf-l { top: 0; bottom: 0; left: 0; width: 50%; transform-origin: left; transform: rotateY(-88deg); border-radius: 18px 0 0 18px; }
.pf-r { top: 0; bottom: 0; right: 0; width: 50%; transform-origin: right; transform: rotateY(88deg); border-radius: 0 18px 18px 0; }
.pack-face {
  position: absolute; inset: 0;
  background: #E0A858; border: 5px solid var(--navy); border-radius: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px;
  opacity: 0; visibility: hidden;
  padding: 26px;
}
.pack-face img { border-radius: 24px; border: 4px solid var(--navy); }
.pack-face b { font-family: var(--font-display); font-weight: 800; font-size: 38px; }
.pack-face > span { font-weight: 800; font-size: 13px; letter-spacing: 0.08em; }
.pack-side { font-style: normal; font-size: 12.5px; font-weight: 700; opacity: 0.8; max-width: 250px; }
.price-sticker {
  position: absolute; top: -18px; left: -22px;
  background: var(--red); color: #fff;
  font-family: var(--font-display); font-weight: 800; font-size: 19px;
  border: 4px solid var(--navy); padding: 10px 16px;
  border-radius: 50% 46% 52% 48% / 48% 52% 46% 54%;
  rotate: -6deg; transform: scale(0); opacity: 0;
  box-shadow: 0 5px 0 var(--navy);
}
.price-sticker i { font-style: normal; }
.echo-bubble { right: -40px; top: -30px; max-width: 300px; text-align: left; }

.home-cta-row { display: flex; align-items: center; gap: 28px; flex-wrap: wrap; justify-content: center; }
.store-badge { display: inline-block; border-radius: 10px; }
.fine-print { text-align: center; }

/* marquee */
.marquee {
  position: relative; overflow: hidden;
  border-top: 4px solid var(--navy);
  background: var(--yellow);
  padding: 18px 0 14px; margin-top: 70px;
}
.marquee-track { display: inline-flex; gap: 54px; white-space: nowrap; will-change: transform; }
.marquee-track span { font-family: var(--font-display); font-weight: 800; font-size: 26px; }
.marquee-walker { position: absolute; bottom: 2px; left: 12%; width: 64px; }

.footer { text-align: center; font-weight: 700; font-size: 14px; padding: 26px 0 90px; }
.footer a { color: var(--navy); font-weight: 800; }

/* idle easter egg */
.idle-egg {
  position: fixed; right: 26px; bottom: -180px; z-index: 70;
  width: 120px; pointer-events: none;
}
.idle-egg .sticker { width: 100%; }
.idle-egg .bubble { top: -56px; left: -80px; }

/* confetti */
#confetti-layer { position: fixed; inset: 0; pointer-events: none; z-index: 95; }
#confetti-layer img, #confetti-layer b {
  position: absolute; will-change: transform;
}
#confetti-layer b { width: 14px; height: 14px; border: 2px solid var(--navy); border-radius: 4px; }

/* ═══ RESPONSIVE ═════════════════════════════════════════ */
@media (max-width: 980px) {
  .hero-grid, .chat-grid, .memory-grid, .photo-grid, .music-grid { grid-template-columns: 1fr; }
  .hero-haruka { height: 380px; order: -1; }
  .nav-links { display: none; }
  #rail { display: none; }
  .chat-stage, .memory-stage, .photo-stage, .music-stage { min-height: 360px; }
  .photo-desk { flex-wrap: wrap; justify-content: center; }
  .echo-bubble { right: 0; }
}
@media (max-width: 600px) {
  body { font-size: 16px; }
  .display { text-shadow: 3px 3px 0 var(--yellow); }
  .cta-nav-full { display: none; }
  .cta-nav .cta-nav-short { display: inline; }
  .polaroid { width: 150px; }
  .play-floor { height: 360px; }
  .hs-lamp { left: 2%; }
  .hs-plush { right: 2%; }
  .play-haruka { width: 170px; }
  .bubble { max-width: 230px; font-size: 15px; }
  .mode-stage { min-height: 520px; }
  .search-haruka, .think-haruka { width: 150px; }
  .search-answer { right: 2%; top: 30%; }
  .home-cta-row { gap: 16px; }
}

/* ═══ STATIC STORY — reduced motion OR no GSAP/JS ════════
   The page must tell the whole story with zero animation.
   html.no-anim is added by JS for both bail-out paths;
   the media block repeats the rules for the JS-dead case. */
html.no-anim { scroll-behavior: auto; }
html.no-anim *, html.no-anim *::before, html.no-anim *::after { animation: none !important; transition: none !important; }
html.no-anim #world, html.no-anim #cursor, html.no-anim #rail, html.no-anim #loader { display: none !important; }
html.no-anim .bubble { opacity: 1 !important; transform: none !important; }
html.no-anim .gloss-en { display: block !important; }
html.no-anim .sticker, html.no-anim .memory-haruka, html.no-anim .vibe-label, html.no-anim .music-dream,
html.no-anim .receipts span, html.no-anim .receipts em, html.no-anim .think-card, html.no-anim .pack-face,
html.no-anim .ink-stamp, html.no-anim .price-sticker {
  opacity: 1 !important; visibility: visible !important; transform: none !important;
}
html.no-anim .chat-typing, html.no-anim .search-runner, html.no-anim .dial-label, html.no-anim .calendar-page { display: none !important; }
html.no-anim .mode-think { position: relative; opacity: 1 !important; visibility: visible !important; margin-top: 380px; }
html.no-anim .think-line { color: var(--navy); }
html.no-anim .pack-flap, html.no-anim .pack-room { display: none; }
html.no-anim .ink-stamp { transform: rotate(-8deg) !important; }
html.no-anim .price-sticker { transform: none !important; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  #world, #cursor, #rail, #loader { display: none !important; }
  .bubble { opacity: 1 !important; transform: none !important; }
  .gloss-en { display: block !important; }
  .sticker, .memory-haruka, .vibe-label, .music-dream, .receipts span, .receipts em,
  .think-card, .pack-face, .ink-stamp, .price-sticker {
    opacity: 1 !important; visibility: visible !important; transform: none !important;
  }
  .chat-typing, .search-runner, .dial-label, .calendar-page { display: none !important; }
  .mode-think { position: relative; opacity: 1 !important; visibility: visible !important; margin-top: 380px; }
  .think-line { color: var(--navy); }
  .pack-flap, .pack-room { display: none; }
  .ink-stamp { transform: rotate(-8deg) !important; }
  .price-sticker { transform: none !important; }
}
