:root {
  --bg-top: #f8e7dc;
  --bg-bottom: #cc8f73;
  --ink: #6a4738;
  --ink-soft: rgba(106, 71, 56, 0.76);
  --accent: #d97a57;
  --accent-strong: #bf6343;
  --chip: rgba(255, 248, 242, 0.52);
  --line: rgba(136, 97, 78, 0.18);
  --shadow-frame: 0 28px 68px rgba(87, 56, 41, 0.22);
  --shadow-float: 0 14px 28px rgba(84, 49, 34, 0.12);
  --radius-frame: 34px;
  --radius-pill: 999px;
  --transition: 320ms cubic-bezier(0.2, 0.75, 0, 1);
  --drag-shift: 0px;
  --audio-energy: 0;
  --audio-bass: 0;
  --audio-mid: 0;
  --audio-treble: 0;
  --audio-pulse: 0;
  --audio-bloom: 0;
  --audio-shimmer: 0;
  --audio-drift: 0;
  --audio-accent: 0;
  --meter-energy: 0;
  --meter-bass: 0;
  --meter-treble: 0;
  --meter-pulse: 0;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: 'Hiragino Sans GB', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top, rgba(255, 255, 255, 0.84), transparent 34%),
    linear-gradient(180deg, var(--bg-top) 0%, #efc1aa 38%, var(--bg-bottom) 100%);
  overflow-x: clip;
}

button,
input,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.page-shell {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: calc(10px + env(safe-area-inset-top, 0px)) 12px calc(14px + env(safe-area-inset-bottom, 0px));
}

.scene-viewport {
  width: min(100%, 390px);
}

.scene-shell {
  --copy-top: 14%;
  --copy-left: 18%;
  --copy-width: 60%;
  --prose-rotate: 0deg;
  --prose-offset-x: 0px;
  --prose-offset-y: 0px;
  --prose-origin: left top;
  --copy-ink: #6b4a3b;
  --copy-meta-ink: rgba(107, 74, 59, 0.78);
  --copy-soft-ink: rgba(107, 74, 59, 0.74);
  --copy-lead-ink: #b06b52;
  --copy-hint-ink: #c87454;
  --copy-shadow: none;
  --copy-align: left;
  --lead-size: 13px;
  --title-size: clamp(26px, 7vw, 34px);
  --body-size: 14px;
  --footnote-size: 12px;
  --hint-size: 12px;
  --card-top: 68px;
  --card-left: 18px;
  --card-width: min(32%, 118px);
  --card-paper: rgba(255, 248, 242, 0.72);
  --card-paper-strong: rgba(247, 226, 209, 0.9);
  --card-ink: #684737;
  --card-soft-ink: rgba(104, 71, 55, 0.72);
  --subtitle-left: 16px;
  --subtitle-right: 16px;
  --subtitle-bottom: 18px;
  --subtitle-paper: rgba(255, 247, 240, 0.72);
  --subtitle-paper-strong: rgba(249, 231, 216, 0.82);
  --subtitle-ink: rgba(87, 60, 47, 0.92);
  --subtitle-accent: #d98260;
  display: grid;
  gap: 14px;
  transform: translateY(10px);
  opacity: 0;
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.scene-shell.is-entered {
  transform: translateY(0);
  opacity: 1;
}

.scene-figure {
  position: relative;
  margin: 0;
  height: clamp(614px, calc(100svh - 170px), 698px);
  overflow: hidden;
  border-radius: var(--radius-frame);
  box-shadow: var(--shadow-frame);
  background: #e7b290;
  isolation: isolate;
}

.scene-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  transform: scale(1.012);
  transition:
    transform 420ms cubic-bezier(0.2, 0.7, 0, 1),
    filter 420ms cubic-bezier(0.2, 0.7, 0, 1);
}

.scene-shell[data-complete='true'] .scene-art {
  transform: scale(1.02);
  filter: saturate(1.04) brightness(1.02);
}

.scene-transition,
.scene-reactive-wash,
.scene-scrim,
.title-card,
.scene-subtitle {
  position: absolute;
  pointer-events: none;
  display: none;
}

.scene-transition {
  inset: 0;
  z-index: 2;
  opacity: 0;
  overflow: hidden;
  border-radius: inherit;
}

.scene-ghost-art {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}

.scene-transition__wash {
  position: absolute;
  inset: -10%;
  background:
    radial-gradient(circle at 30% 28%, rgba(255, 248, 230, 0.48), rgba(255, 248, 230, 0) 30%),
    radial-gradient(circle at 72% 68%, rgba(255, 214, 186, 0.24), rgba(255, 214, 186, 0) 32%),
    linear-gradient(118deg, rgba(255, 255, 255, 0) 18%, rgba(255, 242, 222, 0.22) 46%, rgba(255, 216, 188, 0.3) 60%, rgba(255, 255, 255, 0) 78%);
  mix-blend-mode: screen;
  filter: blur(24px);
  opacity: 0;
  transform: scale(0.9);
}

.scene-reactive-wash {
  inset: -8%;
  z-index: 3;
  display: none;
  opacity: 0;
  mix-blend-mode: screen;
  filter:
    blur(calc(16px + var(--audio-bloom) * 18px))
    saturate(calc(1 + var(--audio-shimmer) * 0.9));
  transform:
    translate3d(calc(var(--audio-accent) * 9px), calc(var(--audio-drift) * -7px), 0)
    scale(calc(1 + var(--audio-bloom) * 0.08));
  transition:
    opacity 180ms linear,
    filter 220ms linear,
    transform 220ms ease-out;
}

.scene-scrim {
  inset: 0;
  z-index: 3;
  background:
    linear-gradient(180deg, rgba(48, 23, 12, 0.06) 0%, rgba(48, 23, 12, 0) 22%, rgba(48, 23, 12, 0.08) 100%);
  pointer-events: none;
  opacity: calc(1 - var(--audio-bloom) * 0.08);
  transition: opacity 180ms linear;
}

.scene-hud {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  z-index: 7;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.title-card {
  top: var(--card-top);
  left: var(--card-left);
  z-index: 7;
  width: var(--card-width);
  padding: 10px 12px 10px 14px;
  border-radius: 18px 14px 18px 13px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.34), rgba(255, 255, 255, 0) 24%),
    linear-gradient(180deg, rgba(255, 248, 241, 0.8), rgba(247, 230, 216, 0.92));
  border: 1px solid rgba(232, 210, 193, 0.78);
  box-shadow:
    0 10px 18px rgba(84, 51, 35, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.54);
  color: var(--card-ink);
  overflow: hidden;
  opacity: 0;
  transform: translateY(12px) rotate(-4deg);
}

.title-card::before,
.title-card::after {
  content: '';
  position: absolute;
  pointer-events: none;
}

.title-card::before {
  top: 8px;
  right: 10px;
  width: 34px;
  height: 10px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgba(247, 205, 185, 0.78), rgba(230, 171, 140, 0.38));
  opacity: 0.74;
  transform: rotate(12deg);
}

.title-card::after {
  inset: 0;
  background:
    linear-gradient(116deg, rgba(255, 255, 255, 0) 20%, rgba(255, 244, 227, 0.16) 46%, rgba(255, 221, 193, calc(0.04 + var(--audio-shimmer) * 0.1)) 62%, rgba(255, 255, 255, 0) 82%);
  mix-blend-mode: soft-light;
  opacity: 0.8;
}

.title-card__meta {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 8px;
}

.title-card__step,
.title-card__eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 19px;
  padding: 0 7px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: var(--card-soft-ink);
  font-family: 'Songti SC', 'STSong', 'Source Han Serif SC', serif;
  font-size: 8px;
  letter-spacing: 0.1em;
}

.title-card__title {
  position: relative;
  z-index: 1;
  margin: 8px 0 0;
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-size: 12px;
  line-height: 1.32;
  letter-spacing: 0.05em;
  color: var(--card-ink);
  mix-blend-mode: multiply;
  text-shadow: 0 1px 0 rgba(255, 251, 247, 0.22);
}

.scene-subtitle {
  display: none !important;
  left: 18px;
  right: 18px;
  bottom: var(--subtitle-bottom);
  z-index: 7;
  display: flex;
  align-items: center;
  gap: 10px;
  width: auto;
  padding: 8px 12px;
  border-radius: 12px 12px 10px 10px;
  background:
    linear-gradient(180deg, rgba(252, 245, 237, 0.9), rgba(243, 229, 214, 0.88));
  border: 1px solid rgba(226, 205, 187, 0.76);
  box-shadow: 0 8px 16px rgba(79, 47, 32, 0.08);
  color: var(--subtitle-ink);
  transform: translateY(14px);
  overflow: hidden;
  opacity: 0;
}

.scene-subtitle::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    linear-gradient(118deg, rgba(255, 255, 255, 0) 12%, rgba(255, 241, 226, 0.08) 46%, rgba(255, 224, 196, calc(0.04 + var(--audio-pulse) * 0.1)) 62%, rgba(255, 255, 255, 0) 82%);
  mix-blend-mode: soft-light;
  opacity: 0.76;
  pointer-events: none;
}

.scene-subtitle__marker {
  position: relative;
  z-index: 1;
  flex: 0 0 auto;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(255, 252, 238, 1), rgba(255, 215, 175, 0.88) 58%, rgba(255, 215, 175, 0) 100%);
  box-shadow:
    0 0 0 calc(3px + var(--audio-pulse) * 3px) rgba(255, 226, 203, 0.14),
    0 0 calc(10px + var(--audio-bloom) * 14px) rgba(255, 205, 157, 0.36);
  transform: scale(calc(0.94 + var(--audio-pulse) * 0.28));
}

.scene-subtitle__line {
  position: relative;
  z-index: 1;
  margin: 0;
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-size: 11px;
  line-height: 1.48;
  letter-spacing: 0.03em;
  color: var(--subtitle-ink);
  text-wrap: balance;
}

.progress-dots {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 248, 242, 0.68);
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float);
}

.progress-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(174, 128, 103, 0.38);
  transition:
    width var(--transition),
    background var(--transition),
    transform var(--transition);
}

.progress-dot.is-active {
  width: 26px;
  border-radius: 999px;
  background: linear-gradient(90deg, #f5c4ac 0%, #d7714f 100%);
  transform: translateY(-1px);
}

.audio-toggle {
  position: relative;
  min-height: 38px;
  width: 44px;
  min-width: 44px;
  padding: 0;
  border-radius: var(--radius-pill);
  background: rgba(255, 249, 244, 0.8);
  color: transparent;
  text-align: center;
  font-size: 0;
  white-space: nowrap;
  backdrop-filter: blur(12px);
  box-shadow: var(--shadow-float);
  overflow: hidden;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    color var(--transition);
}

.audio-toggle::before {
  content: '';
  position: absolute;
  left: 50%;
  top: 11px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(201, 121, 90, 0.36);
  box-shadow: 0 0 0 6px rgba(255, 236, 225, 0.62);
  transform: translateX(-50%) scale(calc(0.92 + var(--meter-pulse) * 0.62));
}

.audio-toggle::after {
  content: '';
  position: absolute;
  inset: 6px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 244, 235, 0.12), rgba(255, 244, 235, 0) 56%),
    linear-gradient(112deg, rgba(255, 255, 255, 0) 16%, rgba(255, 238, 224, calc(0.08 + var(--meter-energy) * 0.26)) 52%, rgba(255, 255, 255, 0) 84%);
  opacity: 0.94;
  mix-blend-mode: screen;
}

.audio-toggle[aria-pressed='true'] {
  background: rgba(255, 245, 238, 0.92);
  color: var(--accent-strong);
  box-shadow: 0 12px 28px rgba(196, 106, 76, 0.24);
}

.audio-toggle[aria-pressed='true']::before {
  background: var(--accent);
  box-shadow:
    0 0 0 calc(5px + var(--meter-bass) * 5px) rgba(253, 227, 214, 0.72),
    0 0 calc(14px + var(--meter-treble) * 18px) rgba(221, 124, 88, 0.38);
}

.motion-layer,
.interaction-layer {
  position: absolute;
  inset: 0;
}

.motion-layer {
  z-index: 5;
  pointer-events: none;
}

.interaction-layer {
  z-index: 4;
  background: transparent;
  cursor: pointer;
  touch-action: none;
}

.interaction-layer::after {
  content: '';
  position: absolute;
  inset: auto 20px 112px;
  height: 36px;
  border-radius: 999px;
  background:
    radial-gradient(circle at center, rgba(255, 250, 246, 0.42), rgba(255, 250, 246, 0)),
    linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 246, 240, 0.38), rgba(255, 255, 255, 0));
  transform: translateX(calc(var(--drag-shift) * 0.15));
  opacity: 0;
  transition:
    opacity var(--transition),
    transform var(--transition);
}

.interaction-layer.is-dragging::after,
.interaction-layer[data-complete='true']::after {
  opacity: 1;
}

.scene-copy {
  position: absolute;
  inset: 0;
  z-index: 6;
  pointer-events: none;
  display: none;
}

.ending-envelope {
  position: absolute;
  inset: 0;
  z-index: 8;
  display: grid;
  place-items: end center;
  padding: 0 22px 42px;
  pointer-events: none;
}

.ending-envelope[hidden] {
  display: none;
}

.ending-envelope__glow,
.ending-envelope__body,
.ending-envelope__flap,
.ending-envelope__paper,
.ending-envelope__seal {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.ending-envelope__glow {
  bottom: 14px;
  width: min(90%, 336px);
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 208, 0.34), rgba(255, 240, 208, 0));
  filter: blur(20px);
  animation: ending-glow-breathe 2.6s ease-in-out infinite;
}

.ending-envelope__body {
  bottom: 26px;
  width: min(86%, 320px);
  height: 208px;
  border-radius: 26px 26px 30px 30px;
  background:
    linear-gradient(180deg, rgba(244, 217, 188, 0.98), rgba(226, 188, 149, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0));
  box-shadow:
    0 24px 44px rgba(80, 48, 33, 0.22),
    inset 0 1px 0 rgba(255, 250, 244, 0.5);
  overflow: hidden;
  opacity: 0;
  transform: translateX(-50%) translateY(36px) scale(0.92);
  animation: ending-envelope-arrive 460ms cubic-bezier(0.24, 0.82, 0, 1) both;
}

.ending-envelope__body::before,
.ending-envelope__body::after {
  content: '';
  position: absolute;
  inset: auto 0 0;
  height: 72%;
  background: linear-gradient(135deg, rgba(231, 199, 165, 0.96), rgba(215, 176, 140, 0.94));
}

.ending-envelope__body::before {
  clip-path: polygon(0 100%, 0 12%, 50% 68%, 100% 12%, 100% 100%);
}

.ending-envelope__body::after {
  inset: auto 14px 18px;
  height: 8px;
  border-radius: 999px;
  background: rgba(170, 119, 87, 0.14);
  filter: blur(4px);
}

.ending-envelope__flap {
  bottom: 124px;
  width: min(86%, 320px);
  height: 152px;
  clip-path: polygon(0 100%, 50% 0, 100% 100%);
  background:
    linear-gradient(180deg, rgba(245, 221, 196, 0.98), rgba(223, 185, 149, 0.96)),
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0));
  transform-origin: center bottom;
  box-shadow: 0 12px 24px rgba(104, 67, 47, 0.16);
  opacity: 0;
  animation: ending-flap-open 860ms cubic-bezier(0.24, 0.82, 0, 1) 120ms both;
}

.ending-envelope__paper {
  bottom: 68px;
  width: min(75%, 278px);
  min-height: 258px;
  padding: 34px 26px 30px 32px;
  border-radius: 18px 19px 22px 16px;
  background:
    radial-gradient(circle at 18% 14%, rgba(255, 255, 255, 0.5), rgba(255, 255, 255, 0) 26%),
    radial-gradient(circle at 78% 82%, rgba(228, 194, 162, 0.16), rgba(228, 194, 162, 0) 30%),
    linear-gradient(180deg, rgba(255, 250, 242, 0.98), rgba(244, 231, 212, 0.96)),
    repeating-linear-gradient(
      180deg,
      rgba(176, 125, 91, 0.06) 0,
      rgba(176, 125, 91, 0.06) 1px,
      transparent 1px,
      transparent 28px
    );
  border: 1px solid rgba(196, 150, 118, 0.22);
  box-shadow:
    0 20px 38px rgba(82, 53, 37, 0.18),
    0 3px 0 rgba(222, 189, 156, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.72);
  transform: translateX(-50%) rotate(-6.2deg) translateY(118px) scale(0.92);
  opacity: 0;
  animation: ending-paper-rise 920ms cubic-bezier(0.2, 0.84, 0, 1) 260ms both;
}

.ending-envelope__paper::before {
  content: '';
  position: absolute;
  inset: 14px 16px 16px 14px;
  border: 1px solid rgba(185, 139, 104, 0.12);
  border-radius: 14px;
  pointer-events: none;
}

.ending-envelope__paper::after {
  content: '';
  position: absolute;
  top: 18px;
  right: 22px;
  width: 56px;
  height: 15px;
  border-radius: 5px;
  background:
    linear-gradient(180deg, rgba(245, 206, 188, 0.42), rgba(233, 186, 161, 0.24));
  opacity: 0.85;
  transform: rotate(10deg);
  box-shadow:
    -172px 168px 0 -8px rgba(223, 189, 156, 0.18),
    -164px 172px 0 -11px rgba(255, 255, 255, 0.26);
  pointer-events: none;
}

.ending-envelope__eyebrow,
.ending-envelope__greeting,
.ending-envelope__footer {
  position: relative;
  margin: 0;
  color: #6a4636;
  text-align: center;
  mix-blend-mode: multiply;
}

.ending-envelope__eyebrow {
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-size: 14px;
  letter-spacing: 0.16em;
  text-align: left;
  transform: translateX(-12px) rotate(-3.4deg);
  opacity: 0.62;
}

.ending-envelope__greeting {
  margin-top: 30px;
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-size: clamp(25px, 6.2vw, 31px);
  line-height: 1.5;
  letter-spacing: 0.08em;
  text-align: left;
  color: rgba(86, 56, 44, 0.88);
  text-shadow:
    0 1px 0 rgba(255, 249, 241, 0.3),
    0 0 0.35px rgba(92, 57, 43, 0.18);
  transform: translateX(2px) rotate(-5.6deg);
}

.ending-envelope__line {
  display: block;
  width: max-content;
}

.ending-envelope__line:nth-child(1) {
  transform: translateX(-2px) rotate(-2.2deg);
}

.ending-envelope__line:nth-child(2) {
  margin-top: 16px;
  transform: translateX(18px) rotate(-6.8deg);
}

.ending-envelope__footer {
  margin-top: 30px;
  font-family: 'Songti SC', 'STSong', 'Source Han Serif SC', serif;
  font-size: 13px;
  letter-spacing: 0.12em;
  text-align: right;
  transform: translateX(8px) rotate(2.4deg);
  opacity: 0.58;
}

.ending-envelope__seal {
  bottom: 198px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 35% 35%, rgba(255, 214, 199, 0.98), rgba(194, 93, 74, 0.94) 72%);
  color: #fff5ef;
  box-shadow:
    0 12px 24px rgba(163, 78, 56, 0.24),
    inset 0 1px 0 rgba(255, 235, 225, 0.6);
  transform: translateX(-50%) rotate(-4deg);
  opacity: 0;
  animation: ending-seal-release 780ms cubic-bezier(0.22, 0.8, 0, 1) 100ms both;
}

.ending-envelope__seal-text {
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', serif;
  font-size: 22px;
  letter-spacing: 0.08em;
}

.copy-stack {
  position: absolute;
  top: var(--copy-top);
  left: var(--copy-left);
  width: var(--copy-width);
  color: var(--copy-ink);
  text-align: var(--copy-align);
  text-shadow: var(--copy-shadow);
  display: grid;
  gap: 7px;
  transform: translateY(calc(var(--drag-shift) * 0.02));
  transition:
    transform var(--transition),
    opacity var(--transition);
}

.scene-shell[data-complete='true'] .copy-stack {
  transform: translateY(-3px);
}

.scene-shell[data-ending='opening'] .scene-art,
.scene-shell[data-ending='open'] .scene-art {
  filter: saturate(0.88) brightness(0.78) blur(0.15px);
}

.scene-shell[data-ending='opening'] .scene-copy,
.scene-shell[data-ending='opening'] .title-card,
.scene-shell[data-ending='opening'] .scene-subtitle,
.scene-shell[data-ending='opening'] .motion-layer,
.scene-shell[data-ending='opening'] .interaction-layer,
.scene-shell[data-ending='open'] .scene-copy,
.scene-shell[data-ending='open'] .title-card,
.scene-shell[data-ending='open'] .scene-subtitle,
.scene-shell[data-ending='open'] .motion-layer,
.scene-shell[data-ending='open'] .interaction-layer {
  opacity: 0;
}

.scene-shell[data-ending='opening'] .interaction-layer,
.scene-shell[data-ending='open'] .interaction-layer {
  pointer-events: none;
}

.copy-meta {
  display: none;
}

.copy-prose {
  display: none;
}

.scene-tag,
.scene-step,
.scene-lead,
.scene-body,
.scene-footnote,
.interaction-hint {
  margin: 0;
}

.scene-step,
.scene-tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: var(--radius-pill);
  background: rgba(255, 249, 244, 0.48);
  border: 1px solid rgba(255, 255, 255, 0.34);
  font-size: 11px;
  letter-spacing: 0.08em;
  color: var(--copy-meta-ink);
  box-shadow: 0 8px 18px rgba(100, 62, 45, 0.08);
}

.chip-rail {
  display: none;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: var(--radius-pill);
  background: var(--chip);
  border: 1px solid rgba(255, 255, 255, 0.42);
  color: var(--copy-soft-ink);
  font-size: 10px;
  letter-spacing: 0.04em;
}

.scene-lead {
  color: var(--copy-lead-ink);
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-size: var(--lead-size);
  letter-spacing: 0.06em;
  line-height: 1.55;
  opacity: 0.92;
}

.scene-title {
  margin: 0;
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', 'STSong', serif;
  font-size: var(--title-size);
  line-height: 1.08;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-shadow: 0 1px 0 rgba(255, 248, 240, 0.18);
  opacity: 0.96;
  mix-blend-mode: multiply;
}

.title-line {
  display: block;
}

.title-line + .title-line {
  margin-top: 0.08em;
}

.scene-body {
  font-family: 'Songti SC', 'STSong', 'Source Han Serif SC', serif;
  font-size: var(--body-size);
  line-height: 1.68;
  letter-spacing: 0.01em;
  mix-blend-mode: multiply;
  opacity: 0.9;
}

.scene-footnote {
  font-family: 'Songti SC', 'STSong', 'Source Han Serif SC', serif;
  font-size: var(--footnote-size);
  line-height: 1.56;
  color: var(--copy-soft-ink);
  mix-blend-mode: multiply;
  opacity: 0.84;
}

.interaction-hint {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--copy-hint-ink);
  font-size: var(--hint-size);
  line-height: 1.45;
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  opacity: 0.86;
}

.interaction-hint::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  box-shadow: 0 0 0 6px rgba(255, 232, 221, 0.42);
}

.scene-shell[data-stage='opening-letter'] .scene-lead,
.scene-shell[data-stage='opening-letter'] .scene-title,
.scene-shell[data-stage='opening-letter'] .scene-body,
.scene-shell[data-stage='opening-letter'] .scene-footnote,
.scene-shell[data-stage='opening-letter'] .interaction-hint,
.scene-shell[data-stage='unfurling-pages'] .scene-lead,
.scene-shell[data-stage='unfurling-pages'] .scene-title,
.scene-shell[data-stage='unfurling-pages'] .scene-body,
.scene-shell[data-stage='unfurling-pages'] .scene-footnote,
.scene-shell[data-stage='unfurling-pages'] .interaction-hint,
.scene-shell[data-stage='fragrance-drift'] .scene-lead,
.scene-shell[data-stage='fragrance-drift'] .scene-title,
.scene-shell[data-stage='fragrance-drift'] .scene-body,
.scene-shell[data-stage='fragrance-drift'] .scene-footnote,
.scene-shell[data-stage='fragrance-drift'] .interaction-hint,
.scene-shell[data-stage='signature-line'] .scene-lead,
.scene-shell[data-stage='signature-line'] .scene-title,
.scene-shell[data-stage='signature-line'] .scene-body,
.scene-shell[data-stage='signature-line'] .scene-footnote,
.scene-shell[data-stage='signature-line'] .interaction-hint,
.scene-shell[data-stage='candle-glow'] .scene-lead,
.scene-shell[data-stage='candle-glow'] .scene-title,
.scene-shell[data-stage='candle-glow'] .scene-body,
.scene-shell[data-stage='candle-glow'] .scene-footnote,
.scene-shell[data-stage='candle-glow'] .interaction-hint,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-lead,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-title,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-body,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-footnote,
.scene-shell[data-stage='bubu-cheer-beat'] .interaction-hint {
  color: #3b302a;
  text-shadow:
    0 0 0.35px rgba(28, 20, 17, 0.56),
    0 0 0.8px rgba(28, 20, 17, 0.14);
}

.scene-shell[data-stage='opening-letter'] .scene-title,
.scene-shell[data-stage='unfurling-pages'] .scene-title,
.scene-shell[data-stage='fragrance-drift'] .scene-title,
.scene-shell[data-stage='signature-line'] .scene-title,
.scene-shell[data-stage='candle-glow'] .scene-title,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-title {
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-weight: 600;
  letter-spacing: 0.04em;
}

.scene-shell[data-stage='opening-letter'] .scene-body,
.scene-shell[data-stage='unfurling-pages'] .scene-body,
.scene-shell[data-stage='fragrance-drift'] .scene-body,
.scene-shell[data-stage='signature-line'] .scene-body,
.scene-shell[data-stage='candle-glow'] .scene-body,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-body,
.scene-shell[data-stage='opening-letter'] .scene-footnote,
.scene-shell[data-stage='unfurling-pages'] .scene-footnote,
.scene-shell[data-stage='fragrance-drift'] .scene-footnote,
.scene-shell[data-stage='signature-line'] .scene-footnote,
.scene-shell[data-stage='candle-glow'] .scene-footnote,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-footnote,
.scene-shell[data-stage='opening-letter'] .interaction-hint,
.scene-shell[data-stage='unfurling-pages'] .interaction-hint,
.scene-shell[data-stage='fragrance-drift'] .interaction-hint,
.scene-shell[data-stage='signature-line'] .interaction-hint,
.scene-shell[data-stage='candle-glow'] .interaction-hint,
.scene-shell[data-stage='bubu-cheer-beat'] .interaction-hint {
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-weight: 500;
  letter-spacing: 0.03em;
}

.scene-controls {
  display: grid;
  gap: 10px;
}

.secondary-controls {
  display: block;
}

.next-button,
.ghost-button {
  min-height: 48px;
  border-radius: var(--radius-pill);
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    opacity var(--transition),
    background var(--transition),
    color var(--transition);
}

.next-button {
  color: #fffaf6;
  background: linear-gradient(180deg, #ee9a70 0%, var(--accent-strong) 100%);
  box-shadow: 0 16px 32px rgba(207, 104, 71, 0.26);
}

.next-button:disabled {
  opacity: 0.68;
  box-shadow: none;
}

.next-button:not(:disabled) {
  animation: button-breathe 2.2s ease-in-out infinite;
}

.next-button:active:not(:disabled),
.ghost-button:active,
.audio-toggle:active {
  transform: translateY(1px) scale(0.995);
}

.ghost-button {
  min-height: 42px;
  background: rgba(255, 248, 243, 0.76);
  color: var(--ink-soft);
  box-shadow: 0 10px 24px rgba(79, 47, 32, 0.1);
}

.motion-petal,
.motion-spark,
.motion-flame,
.motion-glow,
.motion-confetti,
.motion-dust,
.motion-chalk,
.motion-beam,
.motion-heart,
.motion-letter-sweep,
.motion-seal-glint,
.motion-page-glint,
.motion-bookmark-tail,
.motion-ripple,
.motion-twinkle,
.motion-board-halo,
.motion-cheer-wave,
.motion-ember,
.motion-tassel-trail,
.motion-ink-bloom,
.motion-aura,
.motion-star,
.motion-candle-bloom,
.motion-ribbon-sway,
.motion-ribbon-glint,
.motion-note-shimmer {
  position: absolute;
  pointer-events: none;
  z-index: 3;
  will-change: transform, opacity;
}

.motion-petal {
  width: 24px;
  height: 16px;
  border-radius: 70% 30% 68% 32%;
  background: linear-gradient(135deg, rgba(255, 221, 214, 0.92), rgba(246, 155, 144, 0.62));
  opacity: calc(0.42 + var(--audio-drift) * 0.42);
  box-shadow: 0 0 calc(10px + var(--audio-shimmer) * 12px) rgba(255, 192, 179, 0.26);
  animation: petal-drift linear infinite;
}

.motion-spark,
.motion-glow {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: rgba(255, 244, 196, 0.98);
  box-shadow:
    0 0 calc(18px + var(--audio-bloom) * 24px) rgba(255, 228, 132, 0.78),
    0 0 calc(36px + var(--audio-bloom) * 22px) rgba(255, 215, 120, 0.26);
  opacity: calc(0.38 + var(--audio-bloom) * 0.46);
  mix-blend-mode: screen;
  animation: sparkle 1.45s ease-in-out infinite;
}

.motion-dust,
.motion-chalk {
  border-radius: 50%;
  mix-blend-mode: screen;
  animation: dust-float 7.2s ease-in-out infinite;
}

.motion-dust {
  background: radial-gradient(circle at 35% 35%, rgba(255, 250, 236, 0.96), rgba(255, 225, 176, 0.22) 62%, rgba(255, 225, 176, 0) 100%);
  filter: blur(var(--particle-blur, 0.8px));
  opacity: var(--particle-opacity, 0.34);
}

.motion-chalk {
  background: radial-gradient(circle at 50% 50%, rgba(255, 251, 246, 0.92), rgba(237, 229, 219, 0.18) 70%, rgba(237, 229, 219, 0) 100%);
  filter: blur(var(--particle-blur, 0.35px));
  opacity: var(--particle-opacity, 0.28);
  animation-name: chalk-float;
}

.motion-beam {
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 251, 236, 0.72), rgba(255, 239, 201, 0.26) 54%, rgba(255, 239, 201, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(7px);
  opacity: var(--beam-opacity, 0.42);
  animation: beam-sway 6.8s ease-in-out infinite;
}

.motion-confetti {
  width: 18px;
  height: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 205, 118, 0.96), rgba(255, 126, 116, 0.82));
  box-shadow: 0 0 12px rgba(255, 188, 133, 0.3);
  animation: confetti-float 1.9s ease-in-out infinite;
}

.motion-heart {
  width: 18px;
  height: 18px;
  background: linear-gradient(135deg, rgba(255, 178, 193, 0.95), rgba(241, 120, 144, 0.74));
  transform: rotate(-45deg);
  filter: drop-shadow(0 0 calc(12px + var(--audio-pulse) * 18px) rgba(242, 129, 153, 0.58));
  opacity: 0.88;
  animation: heart-beat 1.7s ease-in-out infinite;
}

.motion-heart::before,
.motion-heart::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.motion-heart::before {
  left: 0;
  top: -50%;
}

.motion-heart::after {
  left: 50%;
  top: 0;
}

.motion-flame {
  width: 22px;
  height: 40px;
  border-radius: 60% 60% 72% 72%;
  background: radial-gradient(circle at 50% 28%, rgba(255, 246, 216, 0.98), rgba(255, 165, 86, 0.92) 56%, rgba(255, 113, 86, 0.58) 100%);
  transform-origin: center bottom;
  filter:
    blur(0.15px)
    drop-shadow(0 0 calc(10px + var(--audio-bloom) * 22px) rgba(255, 171, 74, 0.52))
    drop-shadow(0 0 calc(18px + var(--audio-pulse) * 14px) rgba(255, 220, 164, 0.22));
  opacity: calc(0.72 + var(--audio-bloom) * 0.24);
  animation: flame-sway 1.05s ease-in-out infinite;
}

.motion-glow {
  width: 106px;
  height: 106px;
  background: radial-gradient(circle, rgba(255, 244, 216, 0.62), rgba(255, 244, 216, 0));
  box-shadow: none;
  opacity: calc(0.26 + var(--audio-bloom) * 0.62);
  animation: pulse-glow 2s ease-in-out infinite;
}

.motion-letter-sweep,
.motion-page-glint {
  border-radius: 999px;
  mix-blend-mode: screen;
}

.motion-letter-sweep {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 246, 218, 0.74), rgba(255, 255, 255, 0));
  filter: blur(10px);
  opacity: calc(0.18 + var(--audio-shimmer) * 0.6);
  animation: letter-sweep 4.8s ease-in-out infinite;
}

.motion-seal-glint {
  border-radius: 50%;
  border: 1.8px solid rgba(255, 237, 186, 0.72);
  box-shadow:
    0 0 0 calc(4px + var(--audio-pulse) * 4px) rgba(255, 242, 205, 0.14),
    0 0 calc(16px + var(--audio-shimmer) * 14px) rgba(255, 226, 150, 0.34);
  opacity: calc(0.2 + var(--audio-shimmer) * 0.56);
  animation: seal-glint 3.2s ease-in-out infinite;
}

.motion-page-glint {
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 248, 229, 0.9), rgba(255, 255, 255, 0));
  filter: blur(5px);
  opacity: calc(0.2 + var(--audio-shimmer) * 0.58);
  animation: page-glint 4.6s ease-in-out infinite;
}

.motion-bookmark-tail,
.motion-tassel-trail {
  border-radius: 999px;
  mix-blend-mode: screen;
}

.motion-bookmark-tail {
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.72), rgba(255, 194, 170, 0.08) 70%, rgba(255, 255, 255, 0));
  filter: blur(7px);
  opacity: calc(0.18 + var(--audio-drift) * 0.48);
  animation: bookmark-tail 3.8s ease-in-out infinite;
}

.motion-ripple,
.motion-cheer-wave {
  border-radius: 50%;
}

.motion-ripple {
  border: 2px solid rgba(255, 219, 196, 0.62);
  box-shadow: 0 0 calc(18px + var(--audio-bloom) * 18px) rgba(255, 205, 174, 0.24);
  opacity: 0;
  animation: ripple-expand 3.3s ease-out infinite;
}

.motion-twinkle,
.motion-star {
  background: radial-gradient(circle, rgba(255, 252, 228, 0.98), rgba(255, 222, 135, 0.64) 55%, rgba(255, 222, 135, 0) 100%);
  clip-path: polygon(50% 0%, 61% 38%, 100% 50%, 61% 62%, 50% 100%, 39% 62%, 0% 50%, 39% 38%);
  mix-blend-mode: screen;
}

.motion-twinkle {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 calc(8px + var(--audio-pulse) * 14px) rgba(255, 221, 140, 0.58));
  opacity: 0.86;
  animation: twinkle-burst 1.8s ease-in-out infinite;
}

.motion-board-halo {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 240, 187, 0.24), rgba(255, 240, 187, 0.08) 45%, rgba(255, 240, 187, 0) 76%);
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity: calc(0.2 + var(--audio-bass) * 0.5);
  animation: board-breathe 4.8s ease-in-out infinite;
}

.motion-cheer-wave {
  border: 2px solid rgba(255, 231, 171, 0.78);
  box-shadow:
    0 0 0 calc(6px + var(--audio-pulse) * 8px) rgba(255, 217, 136, 0.16),
    0 0 calc(18px + var(--audio-bloom) * 22px) rgba(255, 195, 120, 0.38);
  opacity: 0;
  animation: cheer-wave 2s ease-out infinite;
}

.motion-ember {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 252, 221, 1), rgba(255, 200, 104, 0.86) 58%, rgba(255, 156, 91, 0.18) 78%, rgba(255, 156, 91, 0) 100%);
  mix-blend-mode: screen;
  filter: blur(0.25px) drop-shadow(0 0 calc(10px + var(--audio-bloom) * 16px) rgba(255, 190, 106, 0.42));
  opacity: 0;
  animation: ember-rise 2.8s ease-out infinite;
}

.motion-tassel-trail {
  background: linear-gradient(180deg, rgba(255, 212, 196, 0.76), rgba(246, 170, 160, 0.12) 70%, rgba(255, 255, 255, 0));
  filter: blur(6px);
  opacity: calc(0.18 + var(--audio-drift) * 0.48);
  animation: tassel-trail 4.2s ease-in-out infinite;
}

.motion-ink-bloom {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(86, 54, 41, 0.22), rgba(86, 54, 41, 0.14) 46%, rgba(86, 54, 41, 0) 78%);
  mix-blend-mode: multiply;
  filter: blur(9px);
  opacity: calc(0.04 + var(--audio-bass) * 0.18);
  animation: ink-bloom 4.2s ease-in-out infinite;
}

.motion-aura {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 242, 205, 0.34), rgba(255, 221, 169, 0.16) 42%, rgba(255, 221, 169, 0) 78%);
  mix-blend-mode: screen;
  filter: blur(16px);
  opacity: calc(0.22 + var(--audio-bloom) * 0.56);
  animation: aura-float 4.6s ease-in-out infinite;
}

.motion-star {
  width: 14px;
  height: 14px;
  filter: drop-shadow(0 0 calc(10px + var(--audio-pulse) * 16px) rgba(255, 225, 144, 0.66));
  opacity: 0.88;
  animation: star-drift 3.6s ease-in-out infinite;
}

.motion-candle-bloom {
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 247, 219, 0.58), rgba(255, 215, 150, 0.18) 44%, rgba(255, 215, 150, 0) 76%);
  mix-blend-mode: screen;
  filter: blur(18px);
  opacity: calc(0.16 + var(--audio-bloom) * 0.52);
  animation: candle-bloom 2.4s ease-in-out infinite;
}

.motion-ribbon-sway {
  border-radius: 42% 18% 44% 18%;
  clip-path: polygon(20% 0, 92% 6%, 78% 100%, 34% 96%, 6% 70%, 10% 16%);
  background: linear-gradient(180deg, rgba(199, 120, 96, 0.18), rgba(171, 93, 71, 0.14) 44%, rgba(135, 71, 54, 0.08) 74%, rgba(135, 71, 54, 0));
  mix-blend-mode: multiply;
  filter: blur(1.6px) saturate(1.02);
  opacity: calc(0.05 + var(--audio-drift) * 0.16);
  transform-origin: top center;
  animation: ribbon-sway 3.8s ease-in-out infinite;
}

.motion-ribbon-glint {
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0), rgba(255, 247, 232, 0.88), rgba(255, 226, 188, 0.54), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  filter: blur(4px);
  opacity: calc(0.12 + var(--audio-shimmer) * 0.38);
  animation: ribbon-glint 3.2s ease-in-out infinite;
}

.motion-note-shimmer {
  border-radius: 18px;
  background: linear-gradient(112deg, rgba(255, 255, 255, 0), rgba(255, 246, 225, 0.72), rgba(255, 223, 189, 0.3), rgba(255, 255, 255, 0));
  mix-blend-mode: screen;
  filter: blur(8px);
  opacity: calc(0.14 + var(--audio-shimmer) * 0.44);
  animation: note-shimmer 4.6s ease-in-out infinite;
}

.scene-shell[data-stage='opening-letter'] {
  --copy-top: 13%;
  --copy-left: 21%;
  --copy-width: 49%;
  --prose-rotate: 6.2deg;
  --prose-offset-x: -4px;
  --prose-offset-y: 6px;
  --title-size: clamp(25px, 6.4vw, 31px);
  --body-size: 14px;
  --card-top: 70px;
  --card-left: 18px;
  --subtitle-left: 20px;
  --subtitle-right: 20px;
}

.scene-shell[data-stage='unfurling-pages'] {
  --copy-top: 23%;
  --copy-left: 39%;
  --copy-width: 39%;
  --prose-rotate: 5.4deg;
  --prose-offset-x: -4px;
  --prose-offset-y: 2px;
  --title-size: clamp(22px, 5.8vw, 28px);
  --card-top: 76px;
  --card-width: min(52%, 202px);
}

.scene-shell[data-stage='unfurling-pages'] .scene-art,
.scene-shell[data-stage='unfurling-pages'][data-complete='true'] .scene-art {
  transform: none;
}

.scene-shell[data-stage='opening-letter'] .scene-art,
.scene-shell[data-stage='opening-letter'][data-complete='true'] .scene-art,
.scene-shell[data-stage='unfurling-pages'] .scene-art,
.scene-shell[data-stage='unfurling-pages'][data-complete='true'] .scene-art,
.scene-shell[data-stage='fragrance-drift'] .scene-art,
.scene-shell[data-stage='fragrance-drift'][data-complete='true'] .scene-art,
.scene-shell[data-stage='at-the-desk'] .scene-art,
.scene-shell[data-stage='at-the-desk'][data-complete='true'] .scene-art,
.scene-shell[data-stage='bubu-cheer-beat'] .scene-art,
.scene-shell[data-stage='bubu-cheer-beat'][data-complete='true'] .scene-art,
.scene-shell[data-stage='candle-glow'] .scene-art,
.scene-shell[data-stage='candle-glow'][data-complete='true'] .scene-art,
.scene-shell[data-stage='signature-line'] .scene-art,
.scene-shell[data-stage='signature-line'][data-complete='true'] .scene-art,
.scene-shell[data-stage='final-wish'] .scene-art,
.scene-shell[data-stage='final-wish'][data-complete='true'] .scene-art {
  transform: none;
  filter: none;
}

.scene-shell[data-stage='unfurling-pages'] .scene-art {
  transform:
    translate3d(calc(var(--drag-shift) * 0.055), calc(var(--drag-shift) * -0.012), 0)
    rotate(calc(var(--drag-shift) * 0.018deg));
  transform-origin: 34% 60%;
}

.scene-shell[data-stage='at-the-desk'] .scene-art {
  transform:
    translate3d(calc(var(--drag-shift) * 0.04), 0, 0)
    rotate(calc(var(--drag-shift) * 0.012deg));
  transform-origin: 48% 44%;
}

.scene-shell[data-stage='signature-line'] .scene-art {
  transform:
    translate3d(calc(var(--drag-shift) * 0.03), calc(var(--drag-shift) * -0.014), 0)
    scale(calc(1 + var(--drag-shift) * 0.00018));
  transform-origin: 50% 70%;
}

.scene-shell[data-stage='fragrance-drift'] {
  --copy-top: 43%;
  --copy-left: 23%;
  --copy-width: 52%;
  --prose-rotate: 4.4deg;
  --prose-offset-x: -2px;
  --prose-offset-y: 2px;
  --title-size: clamp(22px, 5.8vw, 28px);
  --card-top: 72px;
  --subtitle-left: 20px;
  --subtitle-right: 20px;
}

.scene-shell[data-stage='at-the-desk'] {
  --copy-top: 15.5%;
  --copy-left: 18.5%;
  --copy-width: 54%;
  --copy-ink: rgba(248, 240, 224, 0.96);
  --copy-meta-ink: rgba(251, 245, 234, 0.88);
  --copy-soft-ink: rgba(248, 240, 224, 0.78);
  --copy-lead-ink: rgba(255, 224, 202, 0.92);
  --copy-hint-ink: rgba(255, 233, 210, 0.94);
  --copy-shadow: 0 1px 0 rgba(35, 19, 11, 0.18);
  --lead-size: 12px;
  --title-size: clamp(20px, 5.7vw, 26px);
  --body-size: 13px;
  --footnote-size: 11px;
  --hint-size: 11px;
  --card-paper: rgba(45, 30, 22, 0.72);
  --card-paper-strong: rgba(77, 54, 43, 0.88);
  --card-ink: rgba(250, 239, 225, 0.94);
  --card-soft-ink: rgba(244, 230, 214, 0.76);
  --subtitle-paper: rgba(44, 29, 21, 0.72);
  --subtitle-paper-strong: rgba(75, 51, 39, 0.86);
  --subtitle-ink: rgba(247, 238, 229, 0.92);
  --subtitle-accent: #f2c6a0;
}

.scene-shell[data-stage='at-the-desk'] .scene-step,
.scene-shell[data-stage='at-the-desk'] .scene-tag,
.scene-shell[data-stage='at-the-desk'] .chip {
  background: rgba(255, 250, 242, 0.1);
  border-color: rgba(255, 255, 255, 0.1);
  color: rgba(251, 245, 234, 0.88);
  box-shadow: none;
}

.scene-shell[data-stage='at-the-desk'] .scene-title,
.scene-shell[data-stage='at-the-desk'] .scene-body,
.scene-shell[data-stage='at-the-desk'] .scene-footnote,
.scene-shell[data-stage='at-the-desk'] .interaction-hint,
.scene-shell[data-stage='at-the-desk'] .scene-lead {
  color: rgba(247, 244, 236, 0.94);
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
  font-weight: 500;
  letter-spacing: 0.05em;
  mix-blend-mode: normal;
  transform: none;
  text-shadow:
    0 0 0.55px rgba(255, 255, 255, 0.92),
    0 0 2px rgba(255, 255, 255, 0.2),
    -0.25px 0.15px 0 rgba(255, 255, 255, 0.3),
    0.25px -0.15px 0 rgba(255, 255, 255, 0.22);
  opacity: 0.9;
}

.scene-shell[data-stage='at-the-desk'] .scene-title {
  font-size: clamp(21px, 5.8vw, 27px);
  line-height: 1.14;
}

.scene-shell[data-stage='at-the-desk'] .scene-body {
  line-height: 1.72;
}

.scene-shell[data-stage='at-the-desk'] .interaction-hint::before {
  box-shadow: 0 0 0 6px rgba(244, 240, 231, 0.18);
}

.scene-shell[data-stage='bubu-cheer-beat'] {
  --copy-top: 8%;
  --copy-left: 12.5%;
  --copy-width: 74%;
  --copy-align: center;
  --title-size: clamp(18px, 5.3vw, 24px);
  --body-size: 13px;
  --footnote-size: 11px;
  --hint-size: 11px;
  --card-paper: rgba(255, 244, 236, 0.76);
  --card-paper-strong: rgba(255, 220, 192, 0.88);
  --subtitle-paper: rgba(255, 246, 240, 0.78);
  --subtitle-paper-strong: rgba(255, 223, 194, 0.88);
  --subtitle-accent: #f1a448;
}

.scene-shell[data-stage='bubu-cheer-beat'] .copy-meta,
.scene-shell[data-stage='candle-glow'] .copy-meta {
  justify-content: center;
}

.scene-shell[data-stage='candle-glow'] {
  --copy-top: 9.5%;
  --copy-left: 19%;
  --copy-width: 62%;
  --prose-rotate: 0.6deg;
  --copy-align: center;
  --title-size: clamp(23px, 6vw, 28px);
  --card-paper: rgba(255, 244, 230, 0.74);
  --card-paper-strong: rgba(248, 212, 179, 0.9);
  --subtitle-paper: rgba(255, 245, 231, 0.78);
  --subtitle-paper-strong: rgba(247, 214, 183, 0.88);
  --subtitle-accent: #efac5d;
}

.scene-shell[data-stage='signature-line'] {
  --copy-top: 14.5%;
  --copy-left: 27%;
  --copy-width: 48%;
  --copy-ink: #684435;
  --copy-soft-ink: rgba(104, 68, 53, 0.74);
  --copy-lead-ink: #bf7758;
  --copy-hint-ink: #c27c5d;
  --copy-shadow: none;
  --copy-align: center;
  --lead-size: 11px;
  --title-size: clamp(16px, 4.6vw, 19px);
  --body-size: 11px;
  --footnote-size: 10px;
  --hint-size: 10px;
  --prose-rotate: -4.4deg;
  --prose-offset-x: -1px;
  --prose-offset-y: 0px;
  --card-top: 76px;
  --card-paper: rgba(255, 247, 241, 0.8);
  --card-paper-strong: rgba(248, 227, 211, 0.94);
  --subtitle-paper: rgba(255, 247, 240, 0.82);
  --subtitle-paper-strong: rgba(248, 224, 204, 0.92);
}

.scene-shell[data-stage='signature-line'] .scene-art,
.scene-shell[data-stage='signature-line'][data-complete='true'] .scene-art {
  transform: none;
  filter: none;
}

.scene-shell[data-stage='signature-line'] .scene-scrim {
  background:
    radial-gradient(circle at 50% 25%, rgba(255, 247, 237, 0.18), rgba(255, 247, 237, 0) 31%),
    linear-gradient(180deg, rgba(54, 29, 16, 0.04) 0%, rgba(54, 29, 16, 0.02) 28%, rgba(54, 29, 16, 0.12) 100%);
}

.scene-shell[data-stage='signature-line'] .scene-copy {
  display: block;
}

.scene-shell[data-stage='signature-line'] .copy-stack {
  padding: 0;
  background: none;
  border: none;
  box-shadow: none;
  transform: translate3d(-2px, calc(var(--drag-shift) * -0.018), 0) rotate(-5.6deg);
  transform-origin: left top;
}

.scene-shell[data-stage='signature-line'][data-complete='true'] .copy-stack {
  transform: translate3d(-2px, -6px, 0) rotate(-5.6deg);
}

.scene-shell[data-stage='signature-line'] .copy-prose {
  display: grid;
  gap: 7px;
}

.scene-shell[data-stage='signature-line'] .scene-lead,
.scene-shell[data-stage='signature-line'] .scene-body,
.scene-shell[data-stage='signature-line'] .scene-footnote,
.scene-shell[data-stage='signature-line'] .interaction-hint {
  display: none;
}

.scene-shell[data-stage='signature-line'] .chip-rail {
  display: none;
}

.scene-shell[data-stage='signature-line'] .scene-title {
  line-height: 1.16;
  letter-spacing: 0.02em;
}

.scene-shell[data-stage='signature-line'] .title-line {
  white-space: nowrap;
}

.scene-shell[data-stage='signature-line'] .scene-body {
  line-height: 1.6;
}

.scene-shell[data-stage='signature-line'] .interaction-hint::before {
  box-shadow: 0 0 0 6px rgba(255, 231, 214, 0.22);
}

.scene-shell[data-stage='final-wish'] {
  --copy-top: 0;
  --copy-left: 0;
  --copy-width: 100%;
  --title-size: clamp(16px, 4.7vw, 22px);
  --body-size: 12px;
  --footnote-size: 11px;
  --hint-size: 11px;
  --card-top: 72px;
  --card-width: min(50%, 188px);
  --subtitle-left: 14px;
  --subtitle-right: 14px;
  --subtitle-bottom: 22px;
}

.scene-shell[data-stage='final-wish'] .copy-stack {
  display: none;
}

.scene-shell[data-stage='final-wish'] .copy-prose {
  display: none;
}

.scene-shell[data-stage='final-wish'] .copy-meta,
.scene-shell[data-stage='final-wish'] .chip-rail,
.scene-shell[data-stage='final-wish'] .scene-lead,
.scene-shell[data-stage='final-wish'] .scene-title,
.scene-shell[data-stage='final-wish'] .scene-body,
.scene-shell[data-stage='final-wish'] .scene-footnote,
.scene-shell[data-stage='final-wish'] .interaction-hint {
  position: absolute;
}

.scene-shell[data-stage='final-wish'] .copy-meta {
  top: 6.5%;
  left: 50%;
  width: 33%;
  justify-content: flex-start;
}

.scene-shell[data-stage='final-wish'] .chip-rail {
  top: 12%;
  left: 50%;
  width: 33%;
}

.scene-shell[data-stage='final-wish'] .scene-lead {
  top: 17.5%;
  left: 50%;
  width: 33%;
}

.scene-shell[data-stage='final-wish'] .scene-title {
  top: 21.5%;
  left: 50%;
  width: 33%;
  writing-mode: vertical-rl;
  text-orientation: mixed;
  line-height: 1.2;
  letter-spacing: 0.08em;
  transform: none;
  color: #3a2e28;
  text-shadow:
    0 0 0.35px rgba(28, 20, 17, 0.56),
    0 0 0.8px rgba(28, 20, 17, 0.14);
}

.scene-shell[data-stage='final-wish'] .scene-body {
  top: 77.8%;
  left: 15%;
  width: 50%;
}

.scene-shell[data-stage='final-wish'] .scene-footnote {
  top: 87.6%;
  left: 15%;
  width: 50%;
}

.scene-shell[data-stage='final-wish'] .interaction-hint {
  top: 92.2%;
  left: 15%;
  width: 50%;
}

.scene-shell[data-stage='final-wish'] .scene-body,
.scene-shell[data-stage='final-wish'] .scene-footnote,
.scene-shell[data-stage='final-wish'] .interaction-hint {
  mix-blend-mode: multiply;
  color: #40342d;
  text-shadow:
    0 0 0.35px rgba(28, 20, 17, 0.46),
    0 0 0.7px rgba(28, 20, 17, 0.12);
  font-family: 'Kaiti SC', 'STKaiti', 'KaiTi', 'Songti SC', serif;
}

.scene-shell[data-stage='opening-letter'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 24% 16%, rgba(255, 243, 224, 0.7), rgba(255, 243, 224, 0) 26%),
    linear-gradient(116deg, rgba(255, 247, 236, 0.16) 12%, rgba(255, 229, 208, 0.42) 48%, rgba(255, 247, 236, 0) 76%);
}

.scene-shell[data-stage='unfurling-pages'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 18% 56%, rgba(255, 241, 215, 0.28), rgba(255, 241, 215, 0) 28%),
    linear-gradient(108deg, rgba(255, 248, 236, 0) 14%, rgba(255, 239, 212, 0.34) 46%, rgba(255, 255, 255, 0) 74%);
}

.scene-shell[data-stage='fragrance-drift'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 30% 72%, rgba(255, 210, 196, 0.32), rgba(255, 210, 196, 0) 30%),
    radial-gradient(circle at 72% 22%, rgba(255, 239, 220, 0.28), rgba(255, 239, 220, 0) 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0) 16%, rgba(255, 225, 214, 0.18) 56%, rgba(255, 255, 255, 0) 88%);
}

.scene-shell[data-stage='at-the-desk'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 72% 18%, rgba(255, 232, 176, 0.52), rgba(255, 232, 176, 0) 26%),
    radial-gradient(circle at 48% 44%, rgba(255, 230, 159, 0.24), rgba(255, 230, 159, 0) 30%);
}

.scene-shell[data-stage='bubu-cheer-beat'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 68% 72%, rgba(255, 204, 92, 0.42), rgba(255, 204, 92, 0) 24%),
    radial-gradient(circle at 22% 82%, rgba(255, 237, 196, 0.24), rgba(255, 237, 196, 0) 26%),
    linear-gradient(126deg, rgba(255, 232, 182, 0) 20%, rgba(255, 197, 124, 0.34) 54%, rgba(255, 232, 182, 0) 82%);
}

.scene-shell[data-stage='candle-glow'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 50% 76%, rgba(255, 208, 118, 0.46), rgba(255, 208, 118, 0) 22%),
    radial-gradient(circle at 18% 82%, rgba(255, 235, 196, 0.22), rgba(255, 235, 196, 0) 22%);
}

.scene-shell[data-stage='signature-line'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 54% 62%, rgba(255, 218, 186, 0.28), rgba(255, 218, 186, 0) 24%),
    linear-gradient(112deg, rgba(255, 247, 235, 0) 14%, rgba(255, 226, 204, 0.28) 52%, rgba(255, 247, 235, 0) 84%);
}

.scene-shell[data-stage='final-wish'] .scene-reactive-wash {
  background:
    radial-gradient(circle at 36% 56%, rgba(255, 228, 184, 0.24), rgba(255, 228, 184, 0) 26%),
    radial-gradient(circle at 68% 72%, rgba(255, 219, 188, 0.34), rgba(255, 219, 188, 0) 30%),
    linear-gradient(180deg, rgba(255, 244, 227, 0.12), rgba(255, 244, 227, 0));
}

@keyframes petal-drift {
  0% {
    transform: translate3d(0, 0, 0) rotate(0deg);
    opacity: 0;
  }

  12% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(34px, 172px, 0) rotate(240deg);
    opacity: 0;
  }
}

@keyframes sparkle {
  0%,
  100% {
    opacity: 0.34;
    transform: scale(0.8);
  }

  50% {
    opacity: 1;
    transform: scale(1.45);
  }
}

@keyframes dust-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.84);
    opacity: var(--particle-opacity, 0.34);
  }

  50% {
    transform: translate3d(var(--float-x, 18px), var(--float-y, -16px), 0) scale(1.34);
    opacity: calc(var(--particle-opacity, 0.34) + 0.14);
  }
}

@keyframes chalk-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(0.82);
    opacity: var(--particle-opacity, 0.28);
  }

  50% {
    transform: translate3d(var(--float-x, 14px), var(--float-y, -12px), 0) scale(1.16);
    opacity: calc(var(--particle-opacity, 0.28) + 0.12);
  }
}

@keyframes beam-sway {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--beam-rotate, -12deg)) scaleY(0.96);
    opacity: var(--beam-opacity, 0.42);
  }

  50% {
    transform: translate(calc(-50% + var(--beam-shift-x, 12px)), calc(-50% + var(--beam-shift-y, 24px))) rotate(var(--beam-rotate, -12deg)) scaleY(1.14);
    opacity: calc(var(--beam-opacity, 0.42) + 0.14);
  }
}

@keyframes confetti-float {
  0%,
  100% {
    transform: translateY(0) rotate(-7deg) scale(0.94);
  }

  50% {
    transform: translateY(-14px) rotate(10deg) scale(1.12);
  }
}

@keyframes heart-beat {
  0%,
  100% {
    transform: rotate(-45deg) scale(0.88);
    opacity: 0.7;
  }

  50% {
    transform: rotate(-45deg) scale(1.28);
    opacity: 0.92;
  }
}

@keyframes flame-sway {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(-11deg) scaleY(0.88) scaleX(0.94);
  }

  50% {
    transform: translate(calc(-50% + 1px), calc(-50% - 4px)) rotate(13deg) scaleY(1.2) scaleX(1.08);
  }
}

@keyframes pulse-glow {
  0%,
  100% {
    opacity: 0.52;
    transform: scale(0.9);
  }

  50% {
    opacity: 1;
    transform: scale(1.24);
  }
}

@keyframes letter-sweep {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--sweep-rotate, -10deg)) scaleX(0.8);
    opacity: 0.12;
  }

  50% {
    transform: translate(calc(-50% + 24px), calc(-50% - 10px)) rotate(var(--sweep-rotate, -10deg)) scaleX(1.14);
    opacity: 0.9;
  }
}

@keyframes seal-glint {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.86) rotate(0deg);
    opacity: 0.18;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.1) rotate(14deg);
    opacity: 0.9;
  }
}

@keyframes page-glint {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--glint-rotate, 12deg)) scaleX(0.74);
    opacity: 0.08;
  }

  50% {
    transform: translate(calc(-50% + 18px), calc(-50% - 4px)) rotate(var(--glint-rotate, 12deg)) scaleX(1.18);
    opacity: 0.96;
  }
}

@keyframes bookmark-tail {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--tail-rotate, -6deg)) scaleY(0.82);
    opacity: 0.22;
  }

  50% {
    transform: translate(calc(-50% + 10px), calc(-50% + 16px)) rotate(calc(var(--tail-rotate, -6deg) + 8deg)) scaleY(1.08);
    opacity: 0.84;
  }
}

@keyframes ripple-expand {
  0% {
    transform: translate(-50%, -50%) scale(0.3);
    opacity: 0;
  }

  28% {
    opacity: 0.72;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.5);
    opacity: 0;
  }
}

@keyframes twinkle-burst {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.72);
    opacity: 0.26;
  }

  50% {
    transform: translate(-50%, -50%) rotate(26deg) scale(1.28);
    opacity: 1;
  }
}

@keyframes board-breathe {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.24;
  }

  50% {
    transform: translate(-50%, -50%) scale(1.12);
    opacity: 0.78;
  }
}

@keyframes cheer-wave {
  0% {
    transform: translate(-50%, -50%) scale(0.24);
    opacity: 0;
  }

  35% {
    opacity: 0.9;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.36);
    opacity: 0;
  }
}

@keyframes ember-rise {
  0% {
    transform: translate(-50%, -50%) scale(0.72);
    opacity: 0;
  }

  18% {
    opacity: 0.9;
  }

  100% {
    transform: translate(calc(-50% + 10px), calc(-50% - 86px)) scale(1.22);
    opacity: 0;
  }
}

@keyframes candle-bloom {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.88);
    opacity: 0.18;
  }

  50% {
    transform: translate(calc(-50% + 2px), calc(-50% - 3px)) scale(1.14);
    opacity: 0.9;
  }
}

@keyframes tassel-trail {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--trail-rotate, 8deg)) scaleY(0.84);
    opacity: 0.22;
  }

  50% {
    transform: translate(calc(-50% + 8px), calc(-50% + 20px)) rotate(calc(var(--trail-rotate, 8deg) - 10deg)) scaleY(1.1);
    opacity: 0.82;
  }
}

@keyframes ink-bloom {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.62);
    opacity: 0;
  }

  45% {
    opacity: 0.38;
  }

  100% {
    transform: translate(-50%, -50%) scale(1.26);
    opacity: 0;
  }
}

@keyframes aura-float {
  0%,
  100% {
    transform: translate(-50%, -50%) scale(0.92);
    opacity: 0.32;
  }

  50% {
    transform: translate(calc(-50% + 8px), calc(-50% - 6px)) scale(1.14);
    opacity: 0.9;
  }
}

@keyframes ribbon-sway {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--ribbon-rotate, -8deg)) skewX(-3deg) scaleY(0.92);
    opacity: 0.16;
  }

  50% {
    transform: translate(calc(-50% + 10px), calc(-50% + 16px)) rotate(calc(var(--ribbon-rotate, -8deg) + 10deg)) skewX(2deg) scaleY(1.06);
    opacity: 0.82;
  }
}

@keyframes ribbon-glint {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--ribbon-glint-rotate, -18deg)) scaleX(0.72);
    opacity: 0.08;
  }

  50% {
    transform: translate(calc(-50% + 16px), calc(-50% - 6px)) rotate(var(--ribbon-glint-rotate, -18deg)) scaleX(1.18);
    opacity: 0.94;
  }
}

@keyframes note-shimmer {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(var(--note-rotate, -10deg)) scaleX(0.78);
    opacity: 0.08;
  }

  50% {
    transform: translate(calc(-50% + 16px), calc(-50% - 4px)) rotate(var(--note-rotate, -10deg)) scaleX(1.14);
    opacity: 0.9;
  }
}

@keyframes star-drift {
  0%,
  100% {
    transform: translate(-50%, -50%) rotate(0deg) scale(0.84);
    opacity: 0.34;
  }

  50% {
    transform: translate(calc(-50% + 10px), calc(-50% - 14px)) rotate(28deg) scale(1.34);
    opacity: 1;
  }
}

@keyframes button-breathe {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 16px 32px rgba(207, 104, 71, 0.26);
  }

  50% {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(207, 104, 71, 0.34);
  }
}

@keyframes ending-envelope-arrive {
  0% {
    transform: translateX(-50%) translateY(36px) scale(0.92);
    opacity: 0;
  }

  65% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes ending-paper-rise {
  0% {
    transform: translateX(-50%) rotate(-6.2deg) translateY(118px) scale(0.92);
    opacity: 0;
  }

  72% {
    transform: translateX(-50%) rotate(-6.2deg) translateY(-8px) scale(1.02);
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) rotate(-6.2deg) translateY(0) scale(1);
    opacity: 1;
  }
}

@keyframes ending-flap-open {
  0% {
    transform: translateX(-50%) rotateX(0deg) scaleY(1);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  70% {
    transform: translateX(-50%) rotateX(190deg) scaleY(1.02);
    opacity: 0.96;
  }

  100% {
    transform: translateX(-50%) rotateX(176deg) scaleY(1);
    opacity: 0.92;
  }
}

@keyframes ending-seal-release {
  0% {
    transform: translateX(-50%) translateY(22px) rotate(-4deg) scale(0.7);
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  100% {
    transform: translateX(-50%) translateY(0) rotate(-4deg) scale(1.02);
    opacity: 1;
  }
}

@keyframes ending-glow-breathe {
  0%,
  100% {
    opacity: 0.36;
    transform: translateX(-50%) scale(0.94);
  }

  50% {
    opacity: 0.82;
    transform: translateX(-50%) scale(1.06);
  }
}

@media (max-width: 420px) {
  .page-shell {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 10px calc(12px + env(safe-area-inset-bottom, 0px));
  }

  .scene-figure {
    height: clamp(598px, calc(100svh - 162px), 678px);
  }

  .scene-hud {
    top: 12px;
    left: 12px;
    right: 12px;
  }

  .copy-stack {
    gap: 7px;
  }

  .scene-title {
    font-size: clamp(24px, 6.8vw, 30px);
  }

  .scene-body {
    font-size: 13px;
  }

  .scene-footnote,
  .interaction-hint {
    font-size: 11px;
  }

  .audio-toggle {
    min-height: 36px;
    width: 42px;
    min-width: 42px;
  }

  .title-card {
    width: min(60%, 206px);
    padding: 13px 14px 13px 16px;
  }

  .title-card__title {
    font-size: 15px;
  }

  .scene-subtitle {
    left: 14px;
    right: 14px;
    bottom: 14px;
    padding: 11px 12px;
  }

  .scene-subtitle__line {
    font-size: 11px;
  }

  .ending-envelope {
    padding: 0 18px 36px;
  }

  .ending-envelope__paper {
    width: min(80%, 276px);
    min-height: 232px;
    padding: 28px 22px 24px;
  }

  .ending-envelope__seal {
    bottom: 190px;
  }

  .ending-envelope__greeting {
    margin-top: 28px;
    font-size: clamp(22px, 5.8vw, 28px);
  }

  .ending-envelope__footer {
    margin-top: 28px;
    font-size: 12px;
  }

  .scene-shell[data-stage='final-wish'] .copy-meta,
  .scene-shell[data-stage='final-wish'] .chip-rail,
  .scene-shell[data-stage='final-wish'] .scene-lead,
  .scene-shell[data-stage='final-wish'] .scene-title {
    left: 49%;
    width: 34%;
  }

  .scene-shell[data-stage='final-wish'] .scene-body,
  .scene-shell[data-stage='final-wish'] .scene-footnote,
  .scene-shell[data-stage='final-wish'] .interaction-hint {
    left: 14%;
    width: 52%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  .scene-shell,
  .scene-art,
  .scene-transition,
  .scene-transition__wash,
  .scene-reactive-wash,
  .progress-dot,
  .audio-toggle,
  .title-card,
  .scene-subtitle,
  .interaction-layer::after,
  .copy-stack,
  .next-button,
  .ghost-button {
    transition-duration: 0s !important;
  }

  .next-button:not(:disabled) {
    animation: none !important;
  }

  .ending-envelope__glow,
  .ending-envelope__body,
  .ending-envelope__flap,
  .ending-envelope__paper,
  .ending-envelope__seal {
    animation: none !important;
  }
}
