:root {
  --ink: #0b070a;
  --ink-soft: #140b11;
  --rose: #f3a7bb;
  --rose-hot: #ee7f9f;
  --blush: #ffd7e2;
  --cream: #fff4ed;
  --gold: #e7c49b;
  --gold-bright: #f6dfc0;
  --muted: rgba(255, 239, 243, 0.64);
  --muted-dim: rgba(255, 239, 243, 0.42);
  --line: rgba(255, 225, 233, 0.16);
  --serif: "Songti SC", "STSong", "SimSun", "Noto Serif SC", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans SC", "Helvetica Neue", Arial, sans-serif;
  --display: "Bodoni MT", "Didot", "Cormorant Garamond", "Times New Roman", serif;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  height: 100%;
  margin: 0;
  padding: 0;
}

html {
  background: var(--ink);
}

body {
  position: fixed;
  inset: 0;
  overflow: hidden;
  color: var(--cream);
  font-family: var(--sans);
  font-weight: 300;
  background: var(--ink);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overscroll-behavior: none;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
  color: inherit;
}

::selection {
  color: #1a0a11;
  background: var(--rose);
}

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

/* ------------------------------------------------------------------ */
/* Atmosphere                                                          */
/* ------------------------------------------------------------------ */

.atmosphere {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(ellipse 70% 60% at 24% 12%, rgba(240, 123, 158, 0.22), transparent 56%),
    radial-gradient(ellipse 58% 58% at 82% 20%, rgba(183, 132, 209, 0.14), transparent 58%),
    radial-gradient(ellipse 80% 60% at 56% 100%, rgba(245, 156, 178, 0.15), transparent 55%),
    linear-gradient(155deg, #160a10 0%, #210d17 36%, #130a10 68%, #080509 100%);
}

.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.5;
  transform: translate3d(0, 0, 0);
  will-change: transform;
  mix-blend-mode: screen;
}

.aurora--rose {
  width: 52vw;
  height: 52vw;
  left: -14vw;
  top: 2vh;
  background: radial-gradient(circle at 50% 50%, rgba(241, 116, 153, 0.52), transparent 67%);
  animation: aurora-drift-a 26s ease-in-out infinite alternate;
}

.aurora--plum {
  width: 48vw;
  height: 48vw;
  right: -12vw;
  top: -10vh;
  background: radial-gradient(circle at 50% 50%, rgba(160, 106, 196, 0.34), transparent 68%);
  animation: aurora-drift-b 31s ease-in-out infinite alternate;
}

.aurora--blush {
  width: 62vw;
  height: 38vw;
  left: 24vw;
  bottom: -18vh;
  background: radial-gradient(circle at 50% 50%, rgba(255, 176, 194, 0.28), transparent 66%);
  animation: aurora-drift-c 24s ease-in-out infinite alternate;
}

@keyframes aurora-drift-a {
  from { transform: translate3d(-2%, -3%, 0) scale(0.95); }
  to { transform: translate3d(8%, 6%, 0) scale(1.12); }
}

@keyframes aurora-drift-b {
  from { transform: translate3d(3%, 0, 0) scale(1.05); }
  to { transform: translate3d(-7%, 8%, 0) scale(0.92); }
}

@keyframes aurora-drift-c {
  from { transform: translate3d(0, 2%, 0) scale(1); }
  to { transform: translate3d(-6%, -6%, 0) scale(1.15); }
}

.stars {
  position: absolute;
  inset: 0;
  overflow: hidden;
}

.star {
  position: absolute;
  width: 1px;
  height: 1px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 7px 1px rgba(255, 197, 215, 0.82);
  opacity: 0;
  animation: twinkle var(--dur, 5s) ease-in-out var(--delay, 0s) infinite;
}

.star--big {
  width: 2px;
  height: 2px;
  box-shadow: 0 0 13px 3px rgba(255, 191, 212, 0.78);
}

@keyframes twinkle {
  0%, 100% { opacity: 0.08; transform: scale(0.7); }
  42% { opacity: var(--peak, 0.75); transform: scale(1); }
  62% { opacity: 0.26; transform: scale(0.86); }
}

.grain {
  position: absolute;
  inset: -40%;
  opacity: 0.055;
  pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='240' height='240'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='0.7'/%3E%3C/svg%3E");
  background-size: 240px 240px;
  mix-blend-mode: soft-light;
  animation: grain-shift 0.7s steps(2) infinite;
}

@keyframes grain-shift {
  0% { transform: translate3d(0, 0, 0); }
  25% { transform: translate3d(-1.5%, 1%, 0); }
  50% { transform: translate3d(1%, -1.5%, 0); }
  75% { transform: translate3d(-0.5%, -0.5%, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 80% 72% at 50% 45%, transparent 40%, rgba(4, 2, 4, 0.26) 78%, rgba(4, 2, 4, 0.66) 100%),
    linear-gradient(180deg, rgba(4, 2, 4, 0.22), transparent 16%, transparent 74%, rgba(4, 2, 4, 0.4));
}

/* ------------------------------------------------------------------ */
/* Canvases                                                            */
/* ------------------------------------------------------------------ */

#scene {
  position: fixed;
  inset: 0;
  z-index: 3;
  display: block;
  width: 100%;
  height: 100%;
  outline: none;
  touch-action: none;
  opacity: 0;
  filter: blur(0);
  transition: opacity 1.4s ease, filter 1.5s var(--ease);
  cursor: grab;
}

body:not(.entered) #scene {
  filter: blur(10px) brightness(0.64) saturate(0.86);
}

body.entered #scene {
  filter: none;
  transition: opacity 1.4s ease;
}

body.scene-ready #scene {
  opacity: 1;
}

body.dragging #scene {
  cursor: grabbing;
}

#fx {
  position: fixed;
  inset: 0;
  z-index: 7;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

/* ------------------------------------------------------------------ */
/* Chrome                                                              */
/* ------------------------------------------------------------------ */

.progress {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: 1px;
  z-index: 20;
  background: rgba(255, 255, 255, 0.06);
}

.progress span {
  display: block;
  width: 0%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(244, 171, 190, 0.95));
  box-shadow: 0 0 10px rgba(244, 150, 177, 0.7);
  transition: width 1s var(--ease);
}

.topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 14;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 26px 34px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-8px);
  transition: opacity 0.9s ease 0.25s, transform 0.9s var(--ease) 0.25s;
}

body.entered .topbar {
  opacity: 1;
  transform: none;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  pointer-events: auto;
  text-decoration: none;
  color: inherit;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border: 1px solid rgba(244, 188, 203, 0.45);
  border-radius: 50%;
  color: var(--blush);
  font-family: var(--display);
  font-size: 21px;
  font-style: italic;
  line-height: 1;
  box-shadow: inset 0 0 18px rgba(244, 155, 180, 0.08);
}

.brand-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 235, 240, 0.56);
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.26em;
}

.brand-meta i,
.top-center i {
  width: 18px;
  height: 1px;
  background: rgba(231, 196, 155, 0.5);
}

.top-center {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(255, 235, 240, 0.4);
  font-size: 8px;
  letter-spacing: 0.32em;
  white-space: nowrap;
}

.top-center i {
  width: 26px;
}

.sound-toggle {
  pointer-events: auto;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 38px;
  padding: 0 12px;
  border: 1px solid rgba(255, 225, 233, 0.17);
  border-radius: 999px;
  background: rgba(18, 9, 14, 0.34);
  color: rgba(255, 237, 242, 0.7);
  cursor: pointer;
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  transition: border-color 0.3s ease, background 0.3s ease, color 0.3s ease;
}

.sound-toggle:hover {
  border-color: rgba(244, 172, 193, 0.5);
  color: var(--cream);
  background: rgba(31, 14, 23, 0.5);
}

.sound-toggle:focus-visible,
.brand:focus-visible,
.btn:focus-visible,
.text-btn:focus-visible,
.chapter-nav button:focus-visible,
.enter-btn:focus-visible {
  outline: 2px solid rgba(255, 197, 214, 0.9);
  outline-offset: 4px;
}

.sound-label {
  font-size: 8px;
  letter-spacing: 0.2em;
}

.eq {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 2px;
  width: 14px;
  height: 13px;
}

.eq i,
.np-eq i {
  display: block;
  width: 2px;
  height: 5px;
  border-radius: 2px;
  background: var(--rose);
  animation: eq 0.9s ease-in-out infinite alternate;
  transform-origin: bottom;
}

.eq i:nth-child(2),
.np-eq i:nth-child(2) { animation-delay: -0.35s; height: 10px; }
.eq i:nth-child(3),
.np-eq i:nth-child(3) { animation-delay: -0.7s; height: 7px; }
.eq i:nth-child(4) { animation-delay: -0.2s; height: 12px; }

@keyframes eq {
  from { transform: scaleY(0.35); opacity: 0.5; }
  to { transform: scaleY(1); opacity: 1; }
}

body.music-paused .eq i,
body.music-paused .np-eq i {
  animation-play-state: paused;
  transform: scaleY(0.35);
  opacity: 0.4;
}

body.music-paused .sound-toggle {
  color: rgba(255, 235, 240, 0.42);
}

/* ------------------------------------------------------------------ */
/* Chapters                                                            */
/* ------------------------------------------------------------------ */

#experience {
  position: fixed;
  inset: 0;
  z-index: 5;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s;
}

body.entered #experience {
  opacity: 1;
  visibility: visible;
}

.chapter {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
  padding: 0 7vw max(12vh, 84px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.72s ease, visibility 0.72s;
}

.chapter.is-active {
  opacity: 1;
  visibility: visible;
}

/* The full-screen story stays transparent to cake drags; its visible
   content must explicitly opt back into mouse and touch interaction. */
.chapter.is-active .chapter-inner {
  pointer-events: auto;
}

.cake-status {
  position: fixed;
  right: 10vw;
  top: 25%;
  z-index: 6;
  max-width: 240px;
  color: var(--muted);
  font-size: 12px;
  pointer-events: none;
}

body:not(.entered) .cake-status,
.cake-status:empty {
  display: none;
}

#cake-fallback {
  position: fixed;
  z-index: 3;
  width: min(52vw, 66vh);
  right: 7vw;
  top: 13vh;
  margin: 0;
  pointer-events: none;
}

#cake-fallback img {
  display: block;
  width: 100%;
  border-radius: 28px;
}

body:not(.entered) #cake-fallback {
  visibility: hidden;
}

@media (max-width: 760px) {
  .cake-status { top: 18%; right: 12%; }
  #cake-fallback { width: 62vw; right: 19vw; top: 9vh; }
}

@media (min-width: 761px) {
  .chapter::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 58%;
    height: 88%;
    pointer-events: none;
    background:
      radial-gradient(ellipse 76% 72% at 16% 86%, rgba(7, 3, 6, 0.72) 0%, rgba(7, 3, 6, 0.44) 40%, transparent 72%),
      linear-gradient(90deg, rgba(7, 3, 6, 0.34), transparent 70%);
  }
}

.chapter-inner {
  position: relative;
  z-index: 1;
  width: min(440px, 38vw);
  padding-bottom: 2px;
  text-shadow: 0 2px 30px rgba(5, 2, 4, 0.55);
}

.chapter-inner--wide {
  width: min(520px, 44vw);
}

@media (min-width: 761px) {
  .chapter-inner--wide h2 {
    font-size: clamp(36px, 3.55vw, 50px);
  }
}

.chapter--wish .chapter-inner {
  width: min(440px, 38vw);
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 20px;
  color: var(--gold);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.25em;
  line-height: 1.4;
}

.eyebrow span {
  color: rgba(255, 239, 243, 0.5);
}

.eyebrow i {
  display: block;
  width: 25px;
  height: 1px;
  background: rgba(231, 196, 155, 0.42);
}

h2 {
  margin: 0;
  font-family: var(--serif);
  font-size: clamp(36px, 4.1vw, 58px);
  font-weight: 400;
  letter-spacing: 0.015em;
  line-height: 1.18;
  color: var(--cream);
  text-shadow: 0 2px 18px rgba(5, 2, 4, 0.78), 0 0 42px rgba(5, 2, 4, 0.42);
}

@media (min-width: 761px) {
  .chapter[data-chapter="1"] h2 {
    font-size: clamp(35px, 3.8vw, 52px);
  }
}

h2 em {
  position: relative;
  color: var(--rose);
  font-style: normal;
}

h2 em::after {
  content: "";
  position: absolute;
  right: 0.08em;
  bottom: 0.04em;
  left: 0.02em;
  height: 1px;
  background: linear-gradient(90deg, rgba(243, 167, 187, 0.55), transparent);
}

.lead {
  margin: 24px 0 0;
  color: rgba(255, 241, 244, 0.9);
  font-family: var(--serif);
  font-size: clamp(16px, 1.42vw, 20px);
  line-height: 1.8;
  letter-spacing: 0.04em;
}

.body {
  margin: 17px 0 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 300;
  line-height: 2;
  letter-spacing: 0.055em;
}

.body em {
  color: var(--gold-bright);
  font-style: normal;
}

.actions {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 30px;
}

.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  min-height: 48px;
  padding: 0 22px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, #ffd8e2 0%, #f3a9bd 52%, #ec8fa9 100%);
  color: #271019;
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.12em;
  white-space: nowrap;
  cursor: pointer;
  box-shadow:
    0 12px 40px rgba(238, 127, 159, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.62);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease), filter 0.4s ease;
}

.btn::after {
  content: "";
  position: absolute;
  top: -40%;
  left: -70%;
  width: 45%;
  height: 180%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.5), transparent);
  transform: skewX(-20deg);
  transition: left 0.65s var(--ease);
}

.btn:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow:
    0 18px 55px rgba(238, 127, 159, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.btn:hover::after {
  left: 130%;
}

.btn:active {
  transform: translateY(0) scale(0.985);
}

.btn > span {
  position: relative;
  z-index: 1;
  font-size: 14px;
  line-height: 1;
}

.btn--glow {
  min-width: 176px;
}

.btn--glow .sparkle {
  color: #5b2437;
  font-size: 11px;
  transition: transform 0.6s var(--ease);
}

.btn--glow:hover .sparkle {
  transform: rotate(90deg) scale(1.2);
}

.btn--small {
  min-height: 42px;
  padding: 0 18px;
  font-size: 11px;
}

.hint {
  margin: 14px 0 0;
  color: var(--muted-dim);
  font-size: 9px;
  letter-spacing: 0.16em;
}

/* chapter 01 date watermark */
.chapter-stamp {
  position: absolute;
  left: 6.5vw;
  top: 15vh;
  display: flex;
  align-items: baseline;
  gap: 4px;
  color: rgba(255, 219, 229, 0.05);
  font-family: var(--display);
  font-size: clamp(100px, 14vw, 200px);
  font-style: italic;
  font-weight: 400;
  letter-spacing: -0.04em;
  line-height: 0.8;
  pointer-events: none;
  user-select: none;
}

.chapter-stamp i {
  font-size: 0.35em;
  font-style: normal;
}

.chapter-stamp small {
  position: absolute;
  right: 0.7em;
  bottom: -1.9em;
  color: rgba(231, 196, 155, 0.16);
  font-family: var(--sans);
  font-size: 8px;
  font-style: normal;
  letter-spacing: 0.3em;
}

/* ------------------------------------------------------------------ */
/* Duo colour cards                                                    */
/* ------------------------------------------------------------------ */

.duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 11px;
  margin: 27px 0 0;
}

.swatch {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 144px;
  padding: 15px 15px 16px;
  overflow: hidden;
  border-radius: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.swatch::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), transparent 45%);
  pointer-events: none;
}

.swatch--pink {
  color: #31131e;
  background:
    radial-gradient(circle at 80% 12%, rgba(255, 255, 255, 0.38), transparent 42%),
    linear-gradient(145deg, #ffdbe4 0%, #f5b3c4 55%, #e994ad 100%);
  box-shadow: 0 16px 38px rgba(238, 127, 159, 0.12);
}

.swatch--black {
  color: rgba(255, 241, 244, 0.9);
  background:
    radial-gradient(circle at 20% 10%, rgba(240, 145, 173, 0.17), transparent 48%),
    linear-gradient(145deg, #26141e 0%, #100a0d 65%, #080608 100%);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.22);
}

.swatch-code {
  position: absolute;
  top: 14px;
  left: 15px;
  color: rgba(49, 19, 30, 0.46);
  font-size: 8px;
  letter-spacing: 0.24em;
}

.swatch--black .swatch-code {
  color: rgba(243, 167, 187, 0.46);
}

.swatch strong {
  position: relative;
  z-index: 1;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 400;
  letter-spacing: 0.08em;
  line-height: 1.15;
}

.swatch small {
  position: relative;
  z-index: 1;
  margin-top: 6px;
  color: rgba(49, 19, 30, 0.55);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.swatch--black small {
  color: rgba(255, 239, 243, 0.42);
}

/* ------------------------------------------------------------------ */
/* Wish list                                                           */
/* ------------------------------------------------------------------ */

.wish-list {
  margin: 25px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line);
}

.wish-list li {
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 4px;
  padding: 12px 0 11px;
  border-bottom: 1px solid var(--line);
}

.wish-num {
  padding-top: 5px;
  color: rgba(231, 196, 155, 0.55);
  font-family: var(--display);
  font-size: 11px;
  font-style: italic;
  letter-spacing: 0.1em;
}

.wish-list strong {
  display: block;
  color: rgba(255, 244, 237, 0.95);
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  letter-spacing: 0.11em;
}

.wish-list p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 11.5px;
  line-height: 1.65;
  letter-spacing: 0.04em;
}

/* ------------------------------------------------------------------ */
/* Wish / final state                                                  */
/* ------------------------------------------------------------------ */

.wish-post {
  display: none;
  outline: none;
}

.wish-post:focus,
.wish-post:focus-visible {
  outline: none;
}

body.is-blown .chapter--wish::before {
  background:
    radial-gradient(ellipse 72% 78% at 17% 82%, rgba(5, 2, 4, 0.84) 0%, rgba(5, 2, 4, 0.5) 44%, transparent 74%),
    linear-gradient(90deg, rgba(5, 2, 4, 0.48), transparent 68%);
}

body.is-blown .wish-pre {
  display: none;
}

body.is-blown .wish-post {
  display: block;
  animation: post-in 1s var(--ease) both;
}

@keyframes post-in {
  from { opacity: 0; transform: translateY(18px); }
  to { opacity: 1; transform: none; }
}

.wish-post h2 {
  font-size: clamp(40px, 4.6vw, 64px);
}

.post-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 27px;
}

.text-btn {
  padding: 4px 0;
  border: 0;
  border-bottom: 1px solid rgba(255, 228, 235, 0.24);
  background: none;
  color: rgba(255, 239, 243, 0.6);
  font-size: 10px;
  letter-spacing: 0.12em;
  cursor: pointer;
  transition: color 0.3s ease, border-color 0.3s ease;
}

.text-btn:hover {
  color: var(--cream);
  border-color: rgba(255, 228, 235, 0.6);
}

.gold {
  color: var(--gold-bright) !important;
}

/* ------------------------------------------------------------------ */
/* Chapter navigation                                                  */
/* ------------------------------------------------------------------ */

.chapter-nav {
  position: fixed;
  top: 50%;
  right: 30px;
  z-index: 12;
  display: flex;
  flex-direction: column;
  gap: 19px;
  transform: translateY(-50%);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.9s ease 0.5s;
}

body.entered .chapter-nav {
  opacity: 1;
  pointer-events: auto;
}

.chapter-nav button {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
  padding: 0;
  border: 0;
  background: none;
  color: rgba(255, 239, 243, 0.58);
  cursor: pointer;
  transition: color 0.3s ease;
  filter: drop-shadow(0 1px 5px rgba(5, 2, 4, 0.55));
}

.chapter-nav button span {
  font-family: var(--display);
  font-size: 9px;
  font-style: italic;
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateX(5px);
  transition: opacity 0.35s ease, transform 0.35s var(--ease);
}

.chapter-nav button i {
  display: block;
  width: 18px;
  height: 1px;
  background: rgba(255, 239, 243, 0.38);
  transition: width 0.4s var(--ease), background 0.4s ease, box-shadow 0.4s ease;
}

.chapter-nav button b {
  position: absolute;
  right: 32px;
  padding: 4px 8px;
  border-radius: 4px;
  background: rgba(14, 8, 12, 0.7);
  color: rgba(255, 239, 243, 0.72);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.14em;
  opacity: 0;
  pointer-events: none;
  transform: translateX(4px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

.chapter-nav button:hover {
  color: var(--blush);
}

.chapter-nav button:hover b,
.chapter-nav button:hover span {
  opacity: 1;
  transform: none;
}

.chapter-nav button.is-active {
  color: var(--blush);
}

.chapter-nav button.is-active span {
  opacity: 0.86;
  transform: none;
}

.chapter-nav button.is-active i {
  width: 38px;
  background: var(--blush);
  box-shadow: 0 0 9px rgba(243, 167, 187, 0.7);
}

/* ------------------------------------------------------------------ */
/* Now playing                                                         */
/* ------------------------------------------------------------------ */

.now-playing {
  position: fixed;
  left: 34px;
  bottom: 30px;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 10px;
  color: rgba(255, 239, 243, 0.46);
  opacity: 0;
  transform: translateY(5px);
  pointer-events: none;
  transition: opacity 1s ease 0.8s, transform 1s var(--ease) 0.8s;
}

body.entered .now-playing {
  opacity: 1;
  transform: none;
}

.vinyl {
  position: relative;
  display: grid;
  place-items: center;
  width: 29px;
  height: 29px;
  border-radius: 50%;
  background:
    repeating-radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 4px),
    #130b10;
  border: 1px solid rgba(255, 226, 234, 0.16);
  animation: spin 9s linear infinite;
}

.vinyl i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--rose);
  box-shadow: 0 0 0 3px rgba(243, 167, 187, 0.12);
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

body.music-paused .vinyl {
  animation-play-state: paused;
}

.now-playing div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.now-playing b {
  color: rgba(255, 239, 243, 0.7);
  font-family: var(--serif);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.12em;
}

.now-playing small {
  color: rgba(255, 239, 243, 0.34);
  font-size: 8px;
  letter-spacing: 0.1em;
}

.np-eq {
  display: flex;
  align-items: flex-end;
  gap: 2px;
  height: 10px;
  margin-left: 2px;
}

.np-eq i {
  width: 1px;
  height: 4px;
  background: rgba(243, 167, 187, 0.6);
}

.np-eq i:nth-child(2) { height: 8px; animation-delay: -0.4s; }
.np-eq i:nth-child(3) { height: 6px; animation-delay: -0.15s; }

/* ------------------------------------------------------------------ */
/* Cover                                                               */
/* ------------------------------------------------------------------ */

.cover {
  position: fixed;
  inset: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background:
    radial-gradient(ellipse 62% 55% at 50% 42%, rgba(13, 7, 11, 0.5), rgba(9, 5, 8, 0.82) 72%, rgba(7, 4, 6, 0.95) 100%);
  transition: opacity 1.2s var(--ease), visibility 1.2s;
}

body.entered .cover {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.cover::before {
  content: "";
  position: absolute;
  width: min(56vw, 620px);
  height: min(56vw, 620px);
  border: 1px solid rgba(255, 218, 228, 0.07);
  border-radius: 50%;
  box-shadow:
    0 0 0 42px rgba(255, 218, 228, 0.023),
    0 0 0 110px rgba(255, 218, 228, 0.014);
  pointer-events: none;
}

.cover::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 1px;
  height: 72vh;
  background: linear-gradient(180deg, transparent, rgba(231, 196, 155, 0.15), transparent);
  transform: translate(-50%, -50%) rotate(24deg);
  pointer-events: none;
}

.cover-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(90vw, 620px);
  padding: 3vh 0 4vh;
  text-align: center;
}

.cover-kicker {
  margin: 0 0 clamp(20px, 3.6vh, 38px);
  color: rgba(255, 235, 240, 0.48);
  font-size: 8px;
  font-weight: 400;
  letter-spacing: 0.42em;
  text-transform: uppercase;
}

.cover-kicker span {
  color: var(--rose);
}

.seal {
  position: relative;
  display: grid;
  place-items: center;
  width: clamp(82px, 9.5vh, 104px);
  height: clamp(82px, 9.5vh, 104px);
  margin-bottom: clamp(20px, 3.2vh, 32px);
  border-radius: 50%;
  background:
    radial-gradient(circle at 34% 26%, rgba(255, 224, 230, 0.92), rgba(242, 157, 177, 0.94) 45%, rgba(183, 94, 120, 0.92) 100%);
  box-shadow:
    0 18px 46px rgba(192, 86, 116, 0.22),
    inset 0 2px 8px rgba(255, 255, 255, 0.35),
    inset 0 -8px 16px rgba(108, 40, 58, 0.25);
  transform: rotate(-7deg);
  animation: seal-float 6s ease-in-out infinite;
}

.seal::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(90, 31, 47, 0.22);
  border-radius: 50%;
}

.seal-ring {
  position: absolute;
  inset: -9px;
  border: 1px dashed rgba(255, 215, 225, 0.23);
  border-radius: 50%;
  animation: spin 28s linear infinite reverse;
}

.seal-letter {
  color: #3d1422;
  font-family: var(--display);
  font-size: clamp(38px, 4.8vh, 52px);
  font-style: italic;
  line-height: 0.75;
  transform: translateY(-3px);
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.34);
}

.seal-year {
  position: absolute;
  bottom: 18%;
  color: rgba(61, 20, 34, 0.62);
  font-size: 7px;
  letter-spacing: 0.24em;
}

@keyframes seal-float {
  0%, 100% { transform: rotate(-7deg) translateY(0); }
  50% { transform: rotate(-4deg) translateY(-6px); }
}

.cover h1 {
  margin: 0;
  color: var(--cream);
  font-family: var(--serif);
  font-size: clamp(52px, 7.4vw, 98px);
  font-weight: 400;
  letter-spacing: 0.025em;
  line-height: 1.08;
}

.cover h1 em {
  color: var(--rose);
  font-style: normal;
  text-shadow: 0 0 42px rgba(242, 143, 169, 0.18);
}

.cover-d {
  color: var(--gold-bright);
  font-family: var(--display);
  font-style: italic;
}

.cover-sub {
  margin: clamp(19px, 3vh, 28px) 0 0;
  color: rgba(255, 240, 244, 0.64);
  font-family: var(--serif);
  font-size: clamp(13px, 1.4vw, 16px);
  line-height: 1.9;
  letter-spacing: 0.13em;
}

.cover-date {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: clamp(17px, 2.7vh, 25px) 0 clamp(22px, 3.5vh, 34px);
  color: rgba(255, 239, 243, 0.47);
  font-family: var(--display);
  font-size: 16px;
  font-style: italic;
  letter-spacing: 0.12em;
}

.cover-date i {
  color: rgba(231, 196, 155, 0.42);
  font-size: 9px;
  font-style: normal;
}

.enter-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 18px;
  min-height: 55px;
  padding: 0 13px 0 27px;
  overflow: hidden;
  border: 1px solid rgba(255, 239, 243, 0.12);
  border-radius: 999px;
  background: rgba(28, 13, 21, 0.5);
  color: var(--cream);
  font-size: 12px;
  letter-spacing: 0.16em;
  cursor: pointer;
  box-shadow: 0 18px 50px rgba(0, 0, 0, 0.16);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  transition: border-color 0.4s ease, background 0.4s ease, transform 0.4s var(--ease);
}

.enter-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(110deg, transparent 20%, rgba(255, 216, 226, 0.12), transparent 80%);
  transform: translateX(-100%);
  transition: transform 0.8s var(--ease);
}

.enter-btn:hover {
  border-color: rgba(255, 205, 219, 0.4);
  background: rgba(48, 21, 34, 0.6);
  transform: translateY(-2px);
}

.enter-btn:hover::before {
  transform: translateX(100%);
}

.enter-btn span {
  position: relative;
  z-index: 1;
}

.enter-btn i {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border-radius: 50%;
  background: var(--rose);
  color: #2a0f19;
  font-size: 14px;
  font-style: normal;
  transition: transform 0.4s var(--ease);
}

.enter-btn:hover i {
  transform: translateX(2px);
}

.cover-hint {
  margin: 17px 0 0;
  color: rgba(255, 239, 243, 0.3);
  font-size: 8px;
  letter-spacing: 0.16em;
}

.cover-foot {
  position: absolute;
  bottom: 26px;
  left: 50%;
  margin: 0;
  color: rgba(255, 239, 243, 0.18);
  font-size: 7px;
  letter-spacing: 0.38em;
  white-space: nowrap;
  transform: translateX(-50%);
}

.cover-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(55px);
  pointer-events: none;
}

.cover-orb--one {
  width: 34vw;
  height: 34vw;
  left: -7vw;
  bottom: -9vw;
  background: rgba(238, 127, 159, 0.13);
}

.cover-orb--two {
  width: 28vw;
  height: 28vw;
  right: -4vw;
  top: -5vw;
  background: rgba(203, 152, 255, 0.09);
}

/* ------------------------------------------------------------------ */
/* Reveal animation                                                    */
/* ------------------------------------------------------------------ */

.chapter .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition:
    opacity 0.9s ease,
    transform 1s var(--ease);
}

.chapter.is-active .reveal {
  opacity: 1;
  transform: none;
}

.chapter.is-active .reveal:nth-child(1) { transition-delay: 0.08s; }
.chapter.is-active .reveal:nth-child(2) { transition-delay: 0.16s; }
.chapter.is-active .reveal:nth-child(3) { transition-delay: 0.25s; }
.chapter.is-active .reveal:nth-child(4) { transition-delay: 0.34s; }
.chapter.is-active .reveal:nth-child(5) { transition-delay: 0.43s; }
.chapter.is-active .reveal:nth-child(6) { transition-delay: 0.5s; }

/* ------------------------------------------------------------------ */
/* Responsive                                                          */
/* ------------------------------------------------------------------ */

@media (max-width: 980px) {
  .top-center {
    display: none;
  }

  .chapter-inner,
  .chapter-inner--wide,
  .chapter--wish .chapter-inner {
    width: min(460px, 52vw);
  }
}

@media (max-width: 760px) {
  .topbar {
    padding: max(18px, env(safe-area-inset-top)) 18px 0;
  }

  .brand-mark {
    width: 33px;
    height: 33px;
    font-size: 19px;
  }

  .brand-meta {
    font-size: 8px;
  }

  .sound-label {
    display: none;
  }

  .sound-toggle {
    min-width: 38px;
    padding: 0 12px;
  }

  .chapter {
    align-items: flex-end;
    padding: 0 23px calc(76px + env(safe-area-inset-bottom));
  }

  .chapter::after {
    content: "";
    position: absolute;
    inset: 38% 0 0;
    background: linear-gradient(to top, rgba(8, 4, 7, 0.9) 12%, rgba(8, 4, 7, 0.58) 52%, transparent 100%);
    pointer-events: none;
  }

  .chapter-inner,
  .chapter-inner--wide,
  .chapter--wish .chapter-inner {
    width: 100%;
    padding-bottom: 0;
  }

  .eyebrow {
    margin-bottom: 14px;
    font-size: 8px;
  }

  h2 {
    font-size: clamp(34px, 10vw, 46px);
    line-height: 1.17;
  }

  .lead {
    margin-top: 17px;
    font-size: 15px;
    line-height: 1.75;
  }

  .body {
    margin-top: 12px;
    font-size: 12px;
    line-height: 1.9;
  }

  .actions {
    margin-top: 22px;
  }

  .btn {
    min-height: 46px;
    padding: 0 20px;
  }

  .duo {
    margin-top: 21px;
    gap: 9px;
  }

  .swatch {
    height: 118px;
    padding: 12px;
    border-radius: 15px;
  }

  .swatch strong {
    font-size: 22px;
  }

  .swatch-code {
    top: 11px;
    left: 12px;
  }

  .wish-list {
    margin-top: 19px;
  }

  .wish-list li {
    grid-template-columns: 32px 1fr;
    padding: 9px 0 8px;
  }

  .wish-list strong {
    font-size: 16px;
  }

  .wish-list p {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.55;
  }

  .chapter-stamp {
    display: none;
  }

  .chapter-nav {
    top: auto;
    right: auto;
    bottom: calc(23px + env(safe-area-inset-bottom));
    left: 50%;
    flex-direction: row;
    gap: 15px;
    transform: translateX(-50%);
    padding: 7px 12px;
    border: 1px solid rgba(255, 225, 233, 0.1);
    border-radius: 999px;
    background: rgba(12, 7, 10, 0.42);
    -webkit-backdrop-filter: blur(10px);
    backdrop-filter: blur(10px);
  }

  .chapter-nav button {
    gap: 0;
  }

  .chapter-nav button span,
  .chapter-nav button b {
    display: none;
  }

  .chapter-nav button i {
    width: 15px;
    height: 2px;
    border-radius: 2px;
  }

  .chapter-nav button.is-active i {
    width: 26px;
  }

  .now-playing {
    display: none;
  }

  .cover-content {
    padding: max(28px, env(safe-area-inset-top)) 20px max(26px, env(safe-area-inset-bottom));
  }

  .cover::before {
    width: 92vw;
    height: 92vw;
  }

  .cover h1 {
    font-size: clamp(48px, 14.5vw, 66px);
  }

  .cover-sub {
    font-size: 12px;
  }

  .cover-foot {
    display: none;
  }

  .cover-kicker {
    margin-bottom: 20px;
    font-size: 7px;
    letter-spacing: 0.3em;
  }

  .seal {
    margin-bottom: 21px;
  }

  .cover-date {
    margin: 18px 0 22px;
  }

  .enter-btn {
    min-height: 52px;
  }

  .cover-hint {
    font-size: 7px;
  }

  .wish-post h2 {
    font-size: clamp(38px, 11.5vw, 48px);
  }

  .post-actions {
    margin-top: 21px;
    gap: 15px;
  }
}

@media (max-width: 390px) {
  .chapter {
    padding-right: 19px;
    padding-left: 19px;
  }

  .duo {
    gap: 8px;
  }

  .swatch {
    height: 108px;
  }

  .swatch strong {
    font-size: 20px;
  }

  .swatch small {
    font-size: 8px;
  }

  .wish-list p {
    font-size: 10.5px;
  }
}

@media (max-height: 700px) and (max-width: 760px) {
  .chapter {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .seal {
    width: 74px;
    height: 74px;
    margin-bottom: 14px;
  }

  .cover-kicker {
    margin-bottom: 13px;
  }

  .cover h1 {
    font-size: 46px;
  }

  .cover-sub {
    margin-top: 12px;
    font-size: 11px;
  }

  .cover-date {
    margin: 12px 0 15px;
  }

  .cover-hint {
    margin-top: 10px;
  }

  h2 {
    font-size: 32px;
  }

  .wish-list li {
    padding: 7px 0 6px;
  }

  .wish-list p {
    line-height: 1.45;
  }

  .actions {
    margin-top: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }

  .chapter .reveal {
    opacity: 1;
    transform: none;
  }
}
