:root {
  color-scheme: dark;
  --bg-1: #07133a;
  --bg-2: #17124f;
  --bg-3: #101a5c;
  --enter-duration: 0.6s;
  --enter-scale: 1.02;
  --glow-yellow: rgba(255, 216, 80, 0.95);
  --glow-gold: rgba(255, 193, 84, 0.9);
  --glow-white: rgba(255, 255, 255, 0.85);
  --glow-purple: rgba(200, 165, 255, 0.8);
  --line-soft: rgba(255, 255, 255, 0.12);
  --toast-bg: rgba(14, 16, 38, 0.9);
  --toast-text: #f5f7ff;
  --copy-white: rgba(255, 255, 255, 0.95);
  --copy-yellow: rgba(255, 243, 190, 0.95);
  --copy-purple: rgba(226, 198, 255, 0.95);
  --copy-shadow: rgba(28, 16, 72, 0.42);
}

* {
  box-sizing: border-box;
}

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

body {
  display: flex;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(circle at 18% 16%, rgba(124, 105, 255, 0.18), transparent 22%),
    radial-gradient(circle at 80% 9%, rgba(90, 173, 255, 0.12), transparent 20%),
    linear-gradient(180deg, var(--bg-1) 0%, var(--bg-2) 58%, var(--bg-3) 100%);
  font-family: -apple-system, BlinkMacSystemFont, "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
}

.app-shell {
  width: 100vw;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}

.phone-stage {
  position: relative;
  width: min(100vw, calc(100vh * 940 / 1672));
  height: min(100vh, calc(100vw * 1672 / 940));
  max-width: 100vw;
  max-height: 100vh;
  overflow: hidden;
  background: #02030a;
}

.page {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translate3d(var(--enter-x, 0px), var(--enter-y, 0px), 0) scale(var(--enter-scale, 1.02));
  pointer-events: none;
  user-select: none;
  overflow: hidden;
  will-change: opacity, transform;
  --enter-x: 0px;
  --enter-y: 0px;
  --enter-scale: 1.02;
  --exit-x: 0px;
  --exit-y: 0px;
  --exit-scale: 1;
}

.page.is-visible {
  pointer-events: auto;
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.page.is-entering {
  animation: page-enter var(--enter-duration) cubic-bezier(0.22, 0.95, 0.24, 1) both;
}

.page.is-exiting {
  animation: page-exit var(--enter-duration) cubic-bezier(0.22, 0.95, 0.24, 1) both;
}

.page.is-reveal {
  animation: page-reveal var(--enter-duration) cubic-bezier(0.22, 0.95, 0.24, 1) both;
}

.page.is-clicking {
  animation: page-click 0.2s ease-out both;
}

@keyframes page-enter {
  0% {
    opacity: 0;
    transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(1.02);
  }
  70% {
    opacity: 0.98;
    transform: translate3d(calc(var(--enter-x) * 0.12), calc(var(--enter-y) * 0.15), 0) scale(0.995);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-exit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 0;
    transform: translate3d(var(--exit-x), var(--exit-y), 0) scale(var(--exit-scale, 1));
  }
}

@keyframes page-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.985);
  }
  55% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-click {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(0, 0, 0) scale(0.994);
  }
  100% {
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.page img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  pointer-events: none;
  -webkit-user-drag: none;
}

.effects-layer {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  overflow: hidden;
}

.text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
}

.ambient-layer,
.particles-layer,
.special-layer,
.ripple-layer,
.flash-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.ambient-layer {
  z-index: 1;
}

.particles-layer {
  z-index: 2;
}

.special-layer {
  z-index: 3;
}

.ripple-layer {
  z-index: 4;
}

.flash-layer {
  z-index: 5;
}

.copy-line {
  position: absolute;
  left: var(--copy-left);
  top: var(--copy-top);
  width: min(var(--copy-width), calc(100% - 48px));
  max-width: calc(100% - 48px);
  color: var(--copy-color, var(--copy-white));
  font-family: "Microsoft YaHei", "PingFang SC", "Hiragino Sans GB", sans-serif;
  font-size: var(--copy-size, clamp(14px, 2vw, 20px));
  line-height: 1.45;
  text-align: var(--copy-align, center);
  letter-spacing: 0.02em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.24), 0 0 14px var(--copy-shadow);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.05));
  opacity: 0;
  transform: translate3d(0, 30px, 0) scale(0.82);
  animation: copy-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--copy-delay, 0s);
}

.copy-line__text {
  display: inline-block;
}

.copy-line--multiline .copy-line__text {
  white-space: pre-line;
  word-break: keep-all;
}

.copy-line--nowrap .copy-line__text {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line--hero {
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: none;
  -webkit-text-stroke: 1px rgba(188, 157, 255, 0.52);
}

.copy-line--hero .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff5cf 48%, #e0c8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(75, 38, 168, 0.22),
    0 0 16px rgba(255, 248, 223, 0.24),
    0 0 26px rgba(204, 169, 255, 0.24);
}

.copy-line--page3-title .copy-line__text {
  background: linear-gradient(180deg, #fff7ff 0%, #d9b3ff 48%, #7a4cff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 232, 190, 0.5);
  text-shadow:
    0 2px 0 rgba(77, 36, 150, 0.24),
    0 0 18px rgba(255, 242, 201, 0.24),
    0 0 22px rgba(170, 130, 255, 0.28);
}

.copy-line--sub {
  font-weight: 700;
  letter-spacing: 0.02em;
  opacity: 0.94;
}

.copy-line--tight {
  line-height: 1.3;
}

.copy-line--title {
  font-weight: 900;
  letter-spacing: 0.04em;
}

.copy-line--subtitle {
  font-weight: 800;
  letter-spacing: 0.03em;
}

.copy-line--body {
  font-weight: 700;
  letter-spacing: 0.015em;
}

.copy-line--tag {
  font-size: clamp(14px, 1.7vw, 20px);
  font-weight: 800;
  letter-spacing: 0.16em;
  color: rgba(255, 245, 216, 0.96);
}

.copy-line--fade-up {
  animation:
    copy-reveal 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-fade-up 4.2s ease-in-out infinite 1.2s;
}

.copy-line--slide-left {
  animation:
    copy-slide-left 0.82s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-fade-up 4.2s ease-in-out infinite 1.2s;
}

.copy-line--pop {
  animation:
    copy-pop 0.88s cubic-bezier(0.22, 1.05, 0.25, 1) forwards,
    copy-fade-up 4.4s ease-in-out infinite 1.15s;
}

.copy-line--wiggle-small {
  animation:
    copy-reveal 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-wiggle-small 4.2s ease-in-out infinite 1.1s;
}

@keyframes copy-slide-left {
  0% {
    opacity: 0;
    transform: translate3d(-42px, 14px, 0) scale(0.82);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes copy-fade-up {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2px, -1px, 0);
  }
}

@keyframes copy-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 26px, 0) scale(0.7);
    filter: blur(1px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.05);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes copy-wiggle-small {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-3px, 0, 0);
  }
  50% {
    transform: translate3d(3px, 0, 0);
  }
  75% {
    transform: translate3d(-2px, 0, 0);
  }
}

@keyframes copy-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 30px, 0) scale(0.82);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

.hotspot {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  margin: 0;
  padding: 0.78rem 1.05rem;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(121, 76, 255, 0.92) 0%, rgba(91, 45, 221, 0.92) 100%);
  color: #fff8d8;
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 800;
  letter-spacing: 0.08em;
  line-height: 1;
  text-shadow: 0 1px 0 rgba(60, 18, 114, 0.4);
  box-shadow:
    0 10px 24px rgba(38, 11, 93, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  z-index: 6;
  overflow: hidden;
  transform: translateZ(0);
  animation: button-breathe 2.8s ease-in-out infinite;
  opacity: 0;
  animation-fill-mode: both;
}

.hotspot--intro {
  animation:
    hotspot-rise 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    button-breathe 2.8s ease-in-out infinite 0.1s;
}

.hotspot--rise {
  animation:
    hotspot-rise 0.78s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    button-breathe 2.8s ease-in-out infinite 0.1s;
}

@keyframes hotspot-rise {
  0% {
    opacity: 0;
    transform: translate3d(0, 20px, 0) scale(0.94);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

.hotspot:focus-visible {
  outline: 2px solid rgba(255, 244, 210, 0.92);
  outline-offset: 3px;
}

.hotspot::before {
  content: "";
  position: absolute;
  inset: 1px;
  border-radius: inherit;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0));
  pointer-events: none;
}

.hotspot--secondary {
  background: linear-gradient(180deg, rgba(255, 209, 117, 0.96) 0%, rgba(255, 178, 55, 0.96) 100%);
  color: #5d2d00;
  text-shadow: none;
  box-shadow:
    0 12px 24px rgba(122, 64, 0, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.42);
}

.hotspot--ghost {
  opacity: 0;
  background: transparent;
  box-shadow: none;
  color: transparent;
  animation: none;
}

.hotspot--ghost::before {
  display: none;
}

.hotspot--box {
  background: transparent;
  box-shadow: none;
  color: transparent;
  padding: 0;
}

.hotspot--box::before {
  display: none;
}

.debug-hotspots .hotspot {
  border: 2px solid rgba(255, 56, 56, 0.9);
  background: rgba(255, 56, 56, 0.14);
}

.particle,
.glow,
.sweep,
.meteor,
.ripple,
.burst,
.spark-star {
  position: absolute;
  pointer-events: none;
}

.particle {
  left: var(--x);
  top: var(--y);
  width: var(--size);
  height: var(--size);
  transform: translate(-50%, -50%);
}

.particle__glyph {
  display: block;
  width: 100%;
  height: 100%;
  animation:
    particle-float var(--dur) ease-in-out infinite alternate,
    particle-flicker calc(var(--dur) * 0.72) ease-in-out infinite;
  animation-delay: var(--delay), var(--delay);
  will-change: transform, opacity, filter;
}

.particle--spark .particle__glyph {
  clip-path: polygon(50% 0%, 60% 34%, 100% 50%, 60% 66%, 50% 100%, 40% 66%, 0% 50%, 40% 34%);
  background: var(--particle-color, rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 10px var(--particle-glow, rgba(255, 255, 255, 0.35));
}

.particle--orb .particle__glyph {
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(255, 255, 255, 0.95), var(--particle-color, rgba(255, 255, 255, 0.35)) 42%, transparent 74%);
  box-shadow: 0 0 14px var(--particle-glow, rgba(255, 255, 255, 0.3));
}

.particle--burst .particle__glyph {
  clip-path: polygon(50% 0%, 61% 32%, 100% 50%, 61% 68%, 50% 100%, 39% 68%, 0% 50%, 39% 32%);
  background: var(--particle-color, rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 12px var(--particle-glow, rgba(255, 255, 255, 0.5));
  animation:
    burst-fly var(--dur) cubic-bezier(0.2, 0.8, 0.2, 1) forwards,
    particle-flicker calc(var(--dur) * 0.9) ease-out forwards;
  animation-delay: var(--delay), var(--delay);
}

.particle--confetti .particle__glyph {
  clip-path: polygon(50% 0%, 61% 32%, 100% 50%, 61% 68%, 50% 100%, 39% 68%, 0% 50%, 39% 32%);
  background: var(--particle-color, rgba(255, 255, 255, 0.9));
  box-shadow: 0 0 11px var(--particle-glow, rgba(255, 255, 255, 0.5));
  animation:
    confetti-fly var(--dur) ease-out forwards,
    particle-flicker calc(var(--dur) * 0.8) ease-out forwards;
  animation-delay: var(--delay), var(--delay);
}

@keyframes particle-float {
  from {
    transform: translate3d(0, 0, 0) scale(0.88);
  }
  to {
    transform: translate3d(var(--float-x, 0px), var(--float-y, 0px), 0) scale(1.1);
  }
}

@keyframes particle-flicker {
  0%,
  100% {
    opacity: 0.42;
  }
  50% {
    opacity: 1;
  }
}

@keyframes burst-fly {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8) rotate(0deg);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--burst-x, 0px), var(--burst-y, 0px), 0) scale(1.2) rotate(var(--burst-rotate, 0deg));
    opacity: 0;
  }
}

@keyframes confetti-fly {
  0% {
    transform: translate3d(0, 0, 0) scale(0.8);
    opacity: 0;
  }
  14% {
    opacity: 1;
  }
  100% {
    transform: translate3d(var(--burst-x, 0px), var(--burst-y, 0px), 0) scale(1);
    opacity: 0;
  }
}

.glow {
  border-radius: 999px;
  background: radial-gradient(circle at 50% 50%, var(--glow-inner, rgba(255, 255, 255, 0.18)), rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 18px var(--glow-shadow, rgba(255, 255, 255, 0.2));
  opacity: var(--glow-opacity, 0.18);
  animation: glow-breathe var(--glow-duration, 1.8s) ease-in-out infinite;
  transform-origin: center;
}

.glow--soft {
  --glow-opacity: 0.12;
}

.glow--medium {
  --glow-opacity: 0.18;
}

.glow--strong {
  --glow-opacity: 0.26;
}

.glow--yellow {
  --glow-inner: rgba(255, 223, 113, 0.24);
  --glow-shadow: rgba(255, 221, 95, 0.28);
}

.glow--gold {
  --glow-inner: rgba(255, 200, 96, 0.22);
  --glow-shadow: rgba(255, 199, 91, 0.25);
}

.glow--purple {
  --glow-inner: rgba(201, 164, 255, 0.2);
  --glow-shadow: rgba(201, 164, 255, 0.22);
}

.glow--button {
  inset: auto;
  filter: blur(0.15px);
}

@keyframes glow-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: calc(var(--glow-opacity, 0.18) * 0.82);
  }
  50% {
    transform: scale(1.05);
    opacity: var(--glow-opacity, 0.18);
  }
}

.sweep {
  overflow: hidden;
}

.sweep::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 28%, rgba(255, 244, 191, 0.24) 47%, rgba(255, 255, 255, 0.26) 50%, rgba(255, 244, 191, 0.2) 53%, transparent 72%);
  transform: translateX(-140%);
  animation: sweep-pass var(--sweep-duration, 3s) ease-in-out infinite;
}

.sweep--once::before {
  animation-iteration-count: 1;
  animation-fill-mode: forwards;
}

@keyframes sweep-pass {
  0% {
    transform: translateX(-150%);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    opacity: 1;
  }
  100% {
    transform: translateX(150%);
    opacity: 0;
  }
}

.meteor {
  width: 14%;
  height: 0.2rem;
  border-radius: 999px;
  background: linear-gradient(90deg, transparent 0%, rgba(255, 255, 255, 0.12) 12%, rgba(255, 243, 193, 0.92) 45%, rgba(255, 255, 255, 0.9) 68%, transparent 100%);
  box-shadow: 0 0 10px rgba(255, 248, 208, 0.8);
  opacity: 0;
  animation: meteor-pass 4s linear infinite;
}

@keyframes meteor-pass {
  0% {
    transform: translate3d(-18%, 0, 0) rotate(12deg);
    opacity: 0;
  }
  8% {
    opacity: 1;
  }
  18% {
    transform: translate3d(28vw, 12vh, 0) rotate(12deg);
    opacity: 0.9;
  }
  100% {
    transform: translate3d(60vw, 28vh, 0) rotate(12deg);
    opacity: 0;
  }
}

.ripple {
  left: var(--x);
  top: var(--y);
  width: var(--size, 18px);
  height: var(--size, 18px);
  transform: translate(-50%, -50%);
  border-radius: 50%;
  border: 2px solid rgba(255, 226, 128, 0.9);
  box-shadow: 0 0 0 2px rgba(255, 247, 206, 0.06), 0 0 18px rgba(255, 220, 117, 0.4);
  animation: ripple-pop 0.52s ease-out forwards;
}

.ripple::after {
  content: "";
  position: absolute;
  inset: 20%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.9), rgba(255, 221, 113, 0.2) 56%, transparent 70%);
  opacity: 0.8;
}

@keyframes ripple-pop {
  0% {
    transform: translate(-50%, -50%) scale(0.26);
    opacity: 0;
  }
  18% {
    opacity: 1;
  }
  100% {
    transform: translate(-50%, -50%) scale(2.9);
    opacity: 0;
  }
}

.flash-overlay {
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
}

.flash-overlay--box-open {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 247, 215, 0.72) 16%, rgba(255, 227, 132, 0.2) 33%, rgba(255, 255, 255, 0) 60%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.58), rgba(255, 255, 255, 0.05));
  animation: flash-box 0.5s ease-out forwards;
}

.flash-overlay--reveal {
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.92) 0%, rgba(255, 248, 214, 0.74) 15%, rgba(255, 226, 130, 0.26) 34%, rgba(255, 255, 255, 0) 64%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.64), rgba(255, 255, 255, 0.04));
  animation: flash-reveal 0.68s ease-out forwards;
}

@keyframes flash-box {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  20% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.02);
  }
}

@keyframes flash-reveal {
  0% {
    opacity: 0.96;
  }
  100% {
    opacity: 0;
  }
}

.halo-ring {
  position: absolute;
  border-radius: 50%;
  border: 1.5px solid rgba(255, 233, 163, 0.52);
  box-shadow:
    0 0 22px rgba(255, 220, 109, 0.22),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.02) 50%, rgba(255, 255, 255, 0) 72%);
  opacity: 0.92;
  mix-blend-mode: screen;
  animation: halo-ring-breathe var(--ring-duration, 2.9s) ease-in-out infinite;
  transform-origin: center;
}

.halo-ring::before {
  content: "";
  position: absolute;
  inset: -10%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 237, 180, 0.18) 0%, rgba(255, 237, 180, 0.04) 42%, rgba(255, 255, 255, 0) 70%);
  filter: blur(8px);
}

.halo-ring.is-burst {
  animation: halo-ring-burst 0.8s ease-out forwards;
}

@keyframes halo-ring-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.68;
  }
  50% {
    transform: scale(1.03);
    opacity: 0.98;
  }
}

@keyframes halo-ring-burst {
  0% {
    transform: scale(1);
    opacity: 0.96;
  }
  100% {
    transform: scale(1.18);
    opacity: 0;
  }
}

.toast {
  position: absolute;
  left: 50%;
  bottom: 8.3%;
  transform: translateX(-50%) translateY(14px) scale(0.98);
  min-width: 44%;
  max-width: 82%;
  padding: 0.82rem 1.1rem;
  border-radius: 999px;
  background: var(--toast-bg);
  color: var(--toast-text);
  font-size: clamp(14px, 2vw, 18px);
  line-height: 1.2;
  text-align: center;
  opacity: 0;
  pointer-events: none;
  z-index: 20;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.is-visible {
  opacity: 1;
  transform: translateX(-50%) translateY(0) scale(1);
}

.copy-line--tag {
  font-size: clamp(14px, 1.75vw, 20px);
  font-weight: 800;
  letter-spacing: 0.18em;
  color: rgba(255, 245, 216, 0.96);
}

.copy-line--title {
  font-size: clamp(36px, 5vw, 74px);
}

.copy-line--subtitle {
  font-size: clamp(18px, 2.4vw, 30px);
  font-weight: 800;
}

.copy-line--body {
  font-size: clamp(14px, 1.9vw, 21px);
  font-weight: 700;
}

.copy-line--wiggle {
  animation:
    copy-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-wiggle 3.6s ease-in-out infinite 1.2s;
}

.copy-line--float {
  animation:
    copy-reveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-float 4.3s ease-in-out infinite 1.1s;
}

.copy-line--pop {
  animation:
    copy-pop 0.86s cubic-bezier(0.22, 1.05, 0.25, 1) forwards,
    copy-wiggle 4s ease-in-out infinite 1.2s;
}

.copy-line--slide-left {
  animation:
    copy-in-left 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-float 4.5s ease-in-out infinite 1.15s;
}

.copy-line--slide-right {
  animation:
    copy-in-right 0.75s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-float 4.5s ease-in-out infinite 1.15s;
}

.copy-line--hero.copy-line--title .copy-line__text {
  -webkit-text-stroke: 1px rgba(183, 151, 255, 0.58);
}

@keyframes copy-in-left {
  0% {
    opacity: 0;
    transform: translate3d(-44px, 18px, 0) scale(0.84);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes copy-in-right {
  0% {
    opacity: 0;
    transform: translate3d(44px, 18px, 0) scale(0.84);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes copy-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.72);
    filter: blur(1px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.04);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes copy-wiggle {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  25% {
    transform: translate3d(-4px, 0, 0);
  }
  50% {
    transform: translate3d(4px, 0, 0);
  }
  75% {
    transform: translate3d(-2px, 0, 0);
  }
}

@keyframes copy-float {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(2px, -1px, 0);
  }
}

@keyframes button-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0) scale(1);
    box-shadow:
      0 10px 24px rgba(38, 11, 93, 0.28),
      inset 0 1px 0 rgba(255, 255, 255, 0.22);
  }
  50% {
    transform: translate3d(0, -1px, 0) scale(1.03);
    box-shadow:
      0 14px 30px rgba(38, 11, 93, 0.38),
      0 0 28px rgba(255, 228, 126, 0.22),
      inset 0 1px 0 rgba(255, 255, 255, 0.28);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hotspot {
    animation: none;
  }

  .copy-line--wiggle,
  .copy-line--float,
  .copy-line--pop,
  .copy-line--slide-left,
  .copy-line--slide-right {
    animation: copy-reveal 0.01ms linear both;
  }
}

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

  .page,
  .copy-line {
    opacity: 1 !important;
    transform: none !important;
  }
}

@media (max-aspect-ratio: 940 / 1672) {
  .phone-stage {
    width: 100vw;
    height: auto;
    aspect-ratio: 940 / 1672;
  }
}

@media (min-aspect-ratio: 940 / 1672) {
  .phone-stage {
    height: 100vh;
    width: auto;
    aspect-ratio: 940 / 1672;
  }
}

:root {
  --enter-duration: 0.82s;
  --title-sway-duration: 2.4s;
  --copy-gold: #ffe08c;
  --copy-rose: #f2c9ff;
  --copy-deep: #7f53ff;
}

.copy-line {
  opacity: 0;
  transform: translate3d(0, 24px, 0) scale(0.82);
  animation: copy-fade-up 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  will-change: transform, opacity, filter;
}

.copy-line__text {
  display: inline-block;
  transform-origin: center;
}

.copy-line__segment {
  display: inline-block;
}

.copy-line__segment--gold {
  color: var(--copy-gold);
  text-shadow: 0 0 12px rgba(255, 228, 150, 0.32);
}

.copy-line--tag {
  font-size: clamp(16px, 2.4vw, 24px);
  font-weight: 800;
  letter-spacing: 0.18em;
}

.copy-line--body {
  font-size: clamp(18px, 2.4vw, 26px);
  font-weight: 700;
  line-height: 1.34;
}

.copy-line--subtitle {
  font-size: clamp(30px, 5vw, 58px);
  font-weight: 900;
  line-height: 1.02;
}

.copy-line--title {
  font-size: clamp(54px, 9vw, 110px);
  font-weight: 900;
  line-height: 0.98;
  letter-spacing: 0.02em;
}

.copy-line--hero .copy-line__text {
  -webkit-text-stroke: 1px rgba(198, 166, 255, 0.55);
}

.copy-line--title .copy-line__text {
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 0.92s;
}

.copy-line--tag.copy-line--slide-left {
  animation:
    copy-slide-left 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    title-sway var(--title-sway-duration) ease-in-out infinite 1.1s;
}

.copy-line--body.copy-line--fade-up {
  animation:
    copy-fade-up 0.74s cubic-bezier(0.22, 1, 0.36, 1) forwards,
    copy-breathe 3.8s ease-in-out infinite 1.15s;
}

.copy-line--pop {
  animation: copy-pop 0.72s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.copy-line--page1-main .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff4d5 42%, #ead8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(75, 38, 168, 0.24),
    0 0 18px rgba(255, 248, 223, 0.3),
    0 0 28px rgba(204, 169, 255, 0.22);
}

.copy-line--page1-sub .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #ffe9b2 50%, #e8d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(75, 38, 168, 0.22),
    0 0 14px rgba(255, 248, 223, 0.24);
}

.copy-line--page2-number .copy-line__text {
  background: linear-gradient(180deg, #fff8c8 0%, #ffd76b 42%, #ffbb42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(132, 83, 0, 0.26),
    0 0 18px rgba(255, 221, 121, 0.34);
  white-space: nowrap;
  line-height: 0.92;
  font-size: clamp(56px, 8.6vw, 94px) !important;
}

.copy-line--page2-title .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #f4eeff 48%, #dfccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(77, 36, 150, 0.22),
    0 0 18px rgba(255, 248, 223, 0.2),
    0 0 24px rgba(170, 130, 255, 0.24);
  white-space: nowrap;
  line-height: 0.96;
  font-size: clamp(38px, 6.5vw, 68px) !important;
}

.copy-line--page3-title .copy-line__text {
  background: linear-gradient(180deg, #fff8ff 0%, #dfb7ff 42%, #8b59ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 235, 193, 0.56);
  text-shadow:
    0 2px 0 rgba(77, 36, 150, 0.18),
    0 0 18px rgba(255, 242, 201, 0.22),
    0 0 20px rgba(170, 130, 255, 0.26);
  white-space: nowrap;
  line-height: 0.96;
  font-size: clamp(38px, 6.8vw, 72px) !important;
}

.copy-line--page4-title .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff4cf 38%, #ead0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(109, 56, 182, 0.22),
    0 0 18px rgba(255, 245, 214, 0.3),
    0 0 28px rgba(233, 200, 255, 0.26);
  line-height: 0.94;
  font-size: clamp(38px, 6.4vw, 68px) !important;
}

.copy-line--page4-sub .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #f2ddff 42%, #ffd48f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(81, 35, 139, 0.2),
    0 0 16px rgba(255, 245, 214, 0.22);
  white-space: nowrap;
  font-size: clamp(16px, 2.2vw, 26px) !important;
}

.copy-line--page5-main .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff1c8 46%, #e8d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(102, 61, 184, 0.24),
    0 0 18px rgba(255, 245, 214, 0.3),
    0 0 24px rgba(233, 200, 255, 0.24);
  line-height: 0.95;
  font-size: clamp(48px, 7.4vw, 88px) !important;
}

.copy-line--page5-sub .copy-line__text {
  background: linear-gradient(180deg, #fff8ff 0%, #e3c2ff 38%, #ffd978 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(94, 42, 166, 0.22),
    0 0 18px rgba(255, 243, 197, 0.24);
}

.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page5-main .copy-line__text,
.copy-line--page5-sub .copy-line__text,
.copy-line--page2-title .copy-line__text,
.copy-line--page2-number .copy-line__text,
.copy-line--page1-main .copy-line__text,
.copy-line--page1-sub .copy-line__text {
  display: inline-block;
}

.copy-line--page5-main .copy-line__text,
.copy-line--page2-number .copy-line__text {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line--multiline .copy-line__text {
  white-space: pre-line;
  word-break: keep-all;
}

.copy-line--page3-title.copy-line--multiline .copy-line__text {
  white-space: pre-line;
  word-break: keep-all;
  line-height: 0.95;
}

.hotspot {
  min-height: 3.4rem;
  padding: 0.94rem 1.2rem;
  border-radius: 999px;
  font-size: clamp(15px, 2vw, 20px);
  letter-spacing: 0.08em;
  border: 1px solid rgba(255, 241, 205, 0.3);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  box-shadow:
    0 12px 30px rgba(35, 7, 85, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.22);
}

.hotspot--primary {
  background: linear-gradient(180deg, rgba(255, 187, 114, 0.98) 0%, rgba(255, 113, 205, 0.94) 100%);
  color: #31144e;
  text-shadow: none;
  box-shadow:
    0 14px 32px rgba(88, 23, 108, 0.3),
    0 0 20px rgba(255, 226, 153, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.hotspot--secondary {
  background: linear-gradient(180deg, rgba(255, 231, 155, 0.98) 0%, rgba(255, 178, 59, 0.98) 100%);
  color: #623200;
  text-shadow: none;
  box-shadow:
    0 14px 32px rgba(109, 61, 0, 0.24),
    0 0 20px rgba(255, 219, 129, 0.3),
    inset 0 1px 0 rgba(255, 255, 255, 0.46);
}

.hotspot--intro {
  animation:
    hotspot-pop-in 0.72s cubic-bezier(0.22, 1, 0.36, 1) both,
    button-breathe 2.8s ease-in-out infinite 0.12s;
}

.hotspot--rise {
  animation:
    hotspot-pop-in 0.78s cubic-bezier(0.22, 1, 0.36, 1) both,
    button-breathe 2.8s ease-in-out infinite 0.12s;
}

.hotspot--ghost {
  opacity: 0;
  background: transparent;
  box-shadow: none;
  border: 0;
  color: transparent;
  animation: none;
}

.hotspot--ghost::before,
.hotspot--box::before {
  display: none;
}

.hotspot--box {
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.page.is-reveal {
  animation: page-reveal 0.82s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.page.is-clicking {
  animation: page-click 0.22s ease-out both;
}

.halo-ring {
  border: 1.5px solid rgba(255, 230, 162, 0.62);
  box-shadow:
    0 0 24px rgba(255, 217, 108, 0.28),
    inset 0 0 12px rgba(255, 255, 255, 0.12);
  background: radial-gradient(circle, rgba(255, 255, 255, 0.08) 0%, rgba(255, 255, 255, 0.03) 52%, rgba(255, 255, 255, 0) 74%);
  opacity: 0.9;
  mix-blend-mode: screen;
  animation: halo-ring-breathe var(--ring-duration, 3s) ease-in-out infinite;
}

.halo-ring--outer {
  filter: blur(0.2px);
}

.halo-ring--inner {
  border-color: rgba(255, 242, 196, 0.72);
  box-shadow:
    0 0 18px rgba(255, 225, 112, 0.24),
    inset 0 0 10px rgba(255, 255, 255, 0.14);
}

.halo-ring.is-burst {
  animation: halo-ring-burst 0.82s ease-out forwards;
}

.glow--strong {
  --glow-opacity: 0.34;
}

.flash-overlay--box-open {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 246, 205, 0.86) 13%, rgba(255, 219, 120, 0.5) 28%, rgba(255, 255, 255, 0) 56%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.86), rgba(255, 255, 255, 0.06));
  mix-blend-mode: screen;
  animation: flash-box 0.68s ease-out forwards;
}

.flash-overlay--reveal {
  background:
    radial-gradient(circle at 50% 44%, rgba(255, 255, 255, 0.98) 0%, rgba(255, 248, 216, 0.82) 12%, rgba(255, 226, 134, 0.46) 30%, rgba(255, 255, 255, 0) 58%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.84), rgba(255, 255, 255, 0.06));
  mix-blend-mode: screen;
  animation: flash-reveal 0.82s ease-out forwards;
}

@keyframes copy-fade-up {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.82);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes copy-slide-left {
  0% {
    opacity: 0;
    transform: translate3d(-36px, 16px, 0) scale(0.82);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes copy-pop {
  0% {
    opacity: 0;
    transform: translate3d(0, 28px, 0) scale(0.82);
    filter: blur(1px);
  }
  68% {
    opacity: 1;
    transform: translate3d(0, -2px, 0) scale(1.06);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes title-sway {
  0%,
  100% {
    transform: translateX(-4px) rotate(-1deg);
  }
  50% {
    transform: translateX(4px) rotate(1deg);
  }
}

@keyframes copy-breathe {
  0%,
  100% {
    transform: translate3d(0, 0, 0);
  }
  50% {
    transform: translate3d(1px, -1px, 0);
  }
}

@keyframes hotspot-pop-in {
  0% {
    opacity: 0;
    transform: translate3d(0, 24px, 0) scale(0.92);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-reveal {
  0% {
    opacity: 0;
    transform: translate3d(0, 0, 0) scale(0.96);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.02);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-click {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(0.995);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes halo-ring-breathe {
  0%,
  100% {
    transform: scale(0.98);
    opacity: 0.66;
  }
  50% {
    transform: scale(1.04);
    opacity: 1;
  }
}

@keyframes halo-ring-burst {
  0% {
    transform: scale(1);
    opacity: 0.96;
  }
  100% {
    transform: scale(1.34);
    opacity: 0;
  }
}

@keyframes flash-box {
  0% {
    opacity: 0;
    transform: scale(0.98);
  }
  16% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: scale(1.04);
  }
}

@keyframes flash-reveal {
  0% {
    opacity: 0.98;
  }
  100% {
    opacity: 0;
  }
}

.toast {
  bottom: 9.2%;
  padding: 0.84rem 1.1rem;
  font-size: clamp(14px, 2vw, 18px);
  letter-spacing: 0.02em;
}

body.is-record .page-dots,
body.is-record .pagination,
body.is-record .pagination-dots,
body.is-record .music-button,
body.is-record .restart-button,
body.is-record .auto-button,
body.is-record .debug-button,
body.is-record .controls,
body.is-record .toolbar,
body.is-record .floating-ui {
  display: none !important;
}

@media (prefers-reduced-motion: reduce) {
  .copy-line,
  .copy-line--title .copy-line__text,
  .hotspot,
  .halo-ring,
  .flash-overlay,
  .sweep,
  .particle__glyph {
    animation: none !important;
    transition: none !important;
  }
}

.page .ui-layer {
  position: absolute;
  inset: 0;
  z-index: 4;
  pointer-events: none;
  overflow: hidden;
}

.page .text-layer {
  position: absolute;
  inset: 0;
  z-index: 3;
  pointer-events: none;
  overflow: hidden;
}

.overlay-layer {
  position: absolute;
  inset: 0;
  z-index: 30;
  pointer-events: none;
}

body.is-record {
  cursor: none;
}

body.is-record * {
  cursor: none !important;
}

.anniv-badge {
  position: absolute;
  top: 5.2%;
  right: 6.8%;
  padding: 0.5rem 0.78rem;
  border-radius: 999px;
  border: 1px solid rgba(255, 240, 198, 0.32);
  background: linear-gradient(180deg, rgba(255, 244, 195, 0.22), rgba(255, 255, 255, 0.06));
  color: #fff7d8;
  font-size: clamp(11px, 1.4vw, 14px);
  font-weight: 800;
  letter-spacing: 0.18em;
  text-shadow: 0 0 12px rgba(255, 236, 175, 0.28);
  box-shadow: 0 0 24px rgba(255, 224, 123, 0.12);
  animation: badge-float 3.6s ease-in-out infinite;
}

.page-hint {
  position: absolute;
  left: 7.8%;
  bottom: 11%;
  padding: 0.5rem 0.9rem;
  border-radius: 999px;
  background: rgba(17, 15, 42, 0.36);
  border: 1px solid rgba(255, 242, 199, 0.22);
  color: rgba(255, 248, 230, 0.98);
  font-size: clamp(13px, 1.55vw, 16px);
  letter-spacing: 0.08em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  max-width: calc(100% - 48px);
}

.timeline-wrap {
  position: absolute;
  inset: 0;
}

.timeline-svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}

.timeline-path {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-path--base {
  stroke: rgba(255, 243, 202, 0.18);
  stroke-width: 4;
  filter: drop-shadow(0 0 8px rgba(255, 230, 160, 0.12));
}

.timeline-path--progress {
  stroke: #ffe29c;
  stroke-width: 5;
  stroke-dasharray: 1000;
  stroke-dashoffset: 1000;
  transition: stroke-dashoffset 0.9s ease;
  filter: drop-shadow(0 0 12px rgba(255, 228, 140, 0.42));
}

.timeline-wrap.is-drawing .timeline-path--progress {
  stroke-dashoffset: 0;
}

.timeline-nodes {
  position: absolute;
  inset: 0;
}

.timeline-node {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.18rem;
  transform: translate(-50%, -50%) scale(0.84);
  opacity: 0;
  padding: 0;
  border: 0;
  background: transparent;
  pointer-events: auto;
  animation: node-pop 0.7s cubic-bezier(0.22, 1, 0.36, 1) forwards;
  animation-delay: var(--delay, 0s);
}

.timeline-node__year {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 4.1rem;
  min-height: 4.1rem;
  border-radius: 50%;
  border: 1px solid rgba(255, 245, 214, 0.3);
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.84), rgba(255, 225, 132, 0.38) 42%, rgba(105, 61, 221, 0.58) 100%);
  color: #fff8de;
  font-size: clamp(13px, 1.5vw, 16px);
  font-weight: 800;
  letter-spacing: 0.08em;
  box-shadow: 0 0 18px rgba(255, 221, 126, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.timeline-node__label {
  padding: 0.4rem 0.65rem;
  border-radius: 999px;
  background: rgba(16, 18, 45, 0.18);
  border: 1px solid rgba(255, 244, 202, 0.12);
  color: rgba(255, 247, 217, 0.96);
  font-size: clamp(12px, 1.45vw, 15px);
  font-weight: 700;
  letter-spacing: 0.04em;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 0 18px rgba(255, 221, 126, 0.06);
}

.timeline-node.is-active .timeline-node__year {
  transform: scale(1.08);
  box-shadow:
    0 0 24px rgba(255, 230, 150, 0.42),
    0 0 36px rgba(255, 255, 255, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.4);
}

.timeline-node.is-complete .timeline-node__year {
  filter: saturate(1.1);
}

.timeline-note {
  position: absolute;
  max-width: 28%;
  padding: 0.6rem 0.8rem;
  border-radius: 1rem;
  background: rgba(42, 24, 86, 0.46);
  border: 1px solid rgba(255, 240, 207, 0.2);
  color: rgba(255, 248, 233, 0.98);
  font-size: clamp(11px, 1.35vw, 14px);
  line-height: 1.45;
  opacity: 0;
  transform: translate3d(0, 10px, 0) scale(0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(255, 220, 118, 0.1);
  transition: opacity 0.2s ease, transform 0.2s ease;
}

.timeline-note.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.wish-prompt {
  position: absolute;
  left: 7.8%;
  top: 47.2%;
  color: rgba(255, 247, 218, 0.96);
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.16em;
  text-shadow: 0 0 12px rgba(255, 232, 170, 0.24);
  display: none;
}

.wish-grid {
  position: absolute;
  left: 7.8%;
  top: 51.6%;
  width: 40%;
  display: grid;
  gap: 0.7rem;
}

.wish-card {
  display: flex;
  align-items: center;
  gap: 0.72rem;
  width: 100%;
  padding: 0.84rem 0.98rem;
  border-radius: 1rem;
  border: 1px solid rgba(255, 248, 221, 0.2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.15), rgba(255, 255, 255, 0.06)),
    radial-gradient(circle at 20% 20%, color-mix(in srgb, var(--wish-color) 58%, transparent), transparent 55%);
  color: rgba(255, 247, 223, 0.98);
  text-align: left;
  pointer-events: auto;
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 20px color-mix(in srgb, var(--wish-color) 20%, transparent);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transform: translateZ(0);
  transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.wish-card__icon {
  width: 2rem;
  height: 2rem;
  flex: 0 0 auto;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--wish-color) 78%, white) 52%, transparent 78%);
  color: #fff8df;
  font-size: 1rem;
  box-shadow: 0 0 16px color-mix(in srgb, var(--wish-color) 40%, transparent);
}

.wish-card__text {
  font-size: clamp(14px, 1.9vw, 18px);
  font-weight: 800;
  letter-spacing: 0.08em;
}

.wish-card.is-selected {
  transform: scale(1.06);
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.12) inset,
    0 0 28px color-mix(in srgb, var(--wish-color) 48%, transparent);
}

.wish-card.is-dimmed {
  opacity: 0.42;
  filter: saturate(0.8);
}

.wish-trail {
  position: absolute;
  left: 8%;
  top: 66%;
  width: 34%;
  height: 12%;
  pointer-events: none;
  opacity: 0.9;
}

.wish-trail span {
  position: absolute;
  width: 1rem;
  height: 1rem;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0) 72%);
  box-shadow: 0 0 18px rgba(255, 255, 255, 0.28);
  animation: wish-trail-float 4.8s ease-in-out infinite;
}

.wish-trail span:nth-child(1) { left: 8%; top: 18%; background: radial-gradient(circle, rgba(255, 211, 108, 0.94), rgba(255, 211, 108, 0) 72%); }
.wish-trail span:nth-child(2) { left: 38%; top: 48%; background: radial-gradient(circle, rgba(184, 137, 255, 0.94), rgba(184, 137, 255, 0) 72%); animation-delay: -1.4s; }
.wish-trail span:nth-child(3) { left: 68%; top: 10%; background: radial-gradient(circle, rgba(255, 185, 227, 0.94), rgba(255, 185, 227, 0) 72%); animation-delay: -2.6s; }

.wish-summary {
  position: absolute;
  left: 7.8%;
  top: 43.4%;
  max-width: 42%;
  padding: 0.68rem 0.86rem;
  border-radius: 1rem;
  background: rgba(41, 28, 87, 0.34);
  border: 1px solid rgba(255, 243, 210, 0.2);
  color: rgba(255, 247, 220, 0.98);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: 0 0 24px rgba(255, 220, 118, 0.1);
}

.wish-summary__row {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  align-items: center;
  gap: 0.6rem;
  padding: 0.18rem 0;
  font-size: clamp(13px, 1.7vw, 16px);
}

.wish-summary__row span,
.wish-summary__row strong {
  white-space: nowrap;
  color: #fff4ca;
  font-weight: 800;
}

.result-identity {
  position: absolute;
  left: 7.8%;
  top: 39.2%;
  max-width: 38%;
  display: grid;
  gap: 0.4rem;
}

.result-identity__label {
  color: rgba(255, 245, 216, 0.9);
  font-size: clamp(13px, 1.7vw, 16px);
  letter-spacing: 0.14em;
}

.result-identity__title {
  color: #fff8df;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(80, 41, 152, 0.2),
    0 0 18px rgba(255, 242, 195, 0.22);
}

.result-card {
  position: absolute;
  left: 7.8%;
  top: 57.6%;
  width: 42%;
  padding: 0.86rem 0.96rem;
  border-radius: 1.2rem;
  border: 1px solid rgba(255, 244, 210, 0.2);
  background: linear-gradient(180deg, rgba(60, 39, 112, 0.52), rgba(36, 21, 73, 0.36));
  box-shadow:
    0 0 0 1px rgba(255, 255, 255, 0.04) inset,
    0 0 28px rgba(255, 222, 130, 0.1);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.result-card__row {
  display: grid;
  grid-template-columns: 5.4rem 1fr;
  align-items: center;
  gap: 0.8rem;
  padding: 0.26rem 0;
  color: rgba(255, 247, 222, 0.95);
  font-size: clamp(12px, 1.45vw, 15px);
}

.result-card__row span,
.result-card__row strong {
  white-space: nowrap;
  color: #fff7cf;
  font-weight: 800;
}

.share-mask {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
}

.share-sheet {
  position: absolute;
  left: 50%;
  bottom: 6.5%;
  width: min(88%, 520px);
  transform: translateX(-50%) translateY(20px) scale(0.96);
  padding: 1rem 1.1rem 1.08rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.1)),
    rgba(16, 18, 45, 0.38);
  border: 1px solid rgba(255, 240, 206, 0.2);
  color: rgba(255, 247, 223, 0.98);
  opacity: 0;
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 16px 40px rgba(4, 8, 24, 0.28), 0 0 28px rgba(255, 225, 132, 0.1);
  pointer-events: auto;
}

.share-sheet.is-visible {
  animation: share-rise 0.42s ease-out forwards;
}

.share-sheet__title {
  font-size: clamp(15px, 2vw, 20px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.share-sheet__identity {
  margin-top: 0.46rem;
  font-size: clamp(22px, 3.1vw, 32px);
  font-weight: 900;
  color: #fff4cb;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.share-sheet__meta {
  margin-top: 0.62rem;
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  font-size: clamp(12px, 1.6vw, 15px);
  color: rgba(255, 247, 223, 0.92);
}

.share-sheet__footer {
  margin-top: 0.8rem;
  padding-top: 0.66rem;
  border-top: 1px solid rgba(255, 244, 210, 0.16);
  font-size: clamp(12px, 1.5vw, 14px);
  letter-spacing: 0.12em;
  color: rgba(255, 240, 211, 0.86);
}

.orbit-star {
  position: absolute;
  left: var(--cx);
  top: var(--cy);
  width: 0;
  height: 0;
  transform: translate(-50%, -50%) rotate(var(--orbit-angle));
  animation: orbit-spin var(--orbit-duration, 6s) linear infinite;
  pointer-events: none;
}

.orbit-star__glyph {
  display: block;
  width: var(--orbit-size, 8px);
  height: var(--orbit-size, 8px);
  transform: translateX(var(--orbit-radius, 82px));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.95), color-mix(in srgb, var(--orbit-color) 82%, white) 52%, rgba(255, 255, 255, 0) 74%);
  box-shadow: 0 0 16px color-mix(in srgb, var(--orbit-color) 52%, transparent);
}

@keyframes badge-float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-4px);
  }
}

@keyframes node-pop {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) scale(0.72);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
}

@keyframes wish-trail-float {
  0%,
  100% {
    transform: translateY(0) scale(0.95);
    opacity: 0.7;
  }
  50% {
    transform: translateY(-6px) scale(1.05);
    opacity: 1;
  }
}

@keyframes share-rise {
  0% {
    opacity: 0;
    transform: translateX(-50%) translateY(24px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) translateY(0) scale(1);
  }
}

@keyframes orbit-spin {
  from {
    transform: translate(-50%, -50%) rotate(var(--orbit-angle));
  }
  to {
    transform: translate(-50%, -50%) rotate(calc(var(--orbit-angle) + 360deg));
  }
}

:root {
  --enter-duration: 1.12s;
  --title-sway-duration: 3.4s;
}

.page {
  overflow: hidden;
}

.content-safe,
.text-layer,
.title,
.subtitle,
.desc,
.tag,
.result-card,
.timeline,
.wish-panel,
.wish-summary,
.result-identity,
.result-subtitle,
.share-sheet,
.timeline-note,
.wish-prompt {
  max-width: calc(100% - 48px);
}

.identity-title,
.result-identity__title,
.share-sheet__identity,
.result-card__row strong {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line,
.anniv-badge,
.page-hint,
.result-subtitle,
.timeline-note,
.wish-summary,
.wish-prompt,
.result-card,
.share-sheet,
.wish-card,
.timeline-node {
  opacity: 0;
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
}

.enter-left,
.enter-right,
.enter-top,
.enter-bottom,
.flyInLeft,
.flyInRight,
.dropBounce,
.flashPop,
.riseCard {
  opacity: 0;
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
}

.enter-left,
.flyInLeft {
  animation: enterFromLeft 1.0s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.enter-right,
.flyInRight {
  animation: enterFromRight 1.0s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.enter-top {
  animation: enterFromTop 1.0s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.enter-bottom,
.riseCard {
  animation: enterFromBottom 1.04s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.dropBounce {
  animation: dropBounce 1.12s cubic-bezier(0.2, 0.95, 0.2, 1) both;
}

.flashPop {
  animation: flashPop 1.0s cubic-bezier(0.2, 1.02, 0.24, 1) both;
}

.copy-line--title .copy-line__text {
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.1s;
}

.copy-line--page5-main .copy-line__text,
.copy-line--page2-number .copy-line__text,
.result-identity__title,
.share-sheet__identity {
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.1s;
}

.copy-line--page3-title .copy-line__text {
  text-shadow:
    0 2px 0 rgba(77, 36, 150, 0.2),
    0 0 18px rgba(255, 242, 201, 0.24),
    0 0 24px rgba(170, 130, 255, 0.28);
}

.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page5-main .copy-line__text,
.copy-line--page5-sub .copy-line__text,
.copy-line--page2-title .copy-line__text,
.copy-line--page2-number .copy-line__text,
.copy-line--page1-main .copy-line__text,
.copy-line--page1-sub .copy-line__text {
  display: inline-block;
}

.copy-line--page5-main .copy-line__text,
.copy-line--page2-number .copy-line__text,
.result-identity__title,
.share-sheet__identity {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line--page1-main .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff4d5 42%, #ead8ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(75, 38, 168, 0.24),
    0 0 18px rgba(255, 248, 223, 0.3),
    0 0 28px rgba(204, 169, 255, 0.22);
}

.copy-line--page1-sub .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #ffe9b2 50%, #e8d6ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(75, 38, 168, 0.22),
    0 0 14px rgba(255, 248, 223, 0.24);
}

.copy-line--page2-number .copy-line__text {
  background: linear-gradient(180deg, #fff8c8 0%, #ffd76b 42%, #ffbb42 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(132, 83, 0, 0.26),
    0 0 18px rgba(255, 221, 121, 0.34);
  font-size: clamp(56px, 8.6vw, 94px) !important;
  line-height: 0.92;
}

.copy-line--page2-title .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #f4eeff 48%, #dfccff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(77, 36, 150, 0.22),
    0 0 18px rgba(255, 248, 223, 0.2),
    0 0 24px rgba(170, 130, 255, 0.24);
  font-size: clamp(38px, 6.5vw, 68px) !important;
  line-height: 0.96;
}

.copy-line--page3-title .copy-line__text {
  background: linear-gradient(180deg, #fff8ff 0%, #dfb7ff 42%, #8b59ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-stroke: 1px rgba(255, 235, 193, 0.56);
  font-size: clamp(38px, 6.8vw, 72px) !important;
  line-height: 0.96;
}

.copy-line--page4-title .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff4cf 38%, #ead0ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(109, 56, 182, 0.22),
    0 0 18px rgba(255, 245, 214, 0.3),
    0 0 28px rgba(233, 200, 255, 0.26);
  font-size: clamp(38px, 6.4vw, 68px) !important;
  line-height: 0.94;
}

.copy-line--page4-sub .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #f2ddff 42%, #ffd48f 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(81, 35, 139, 0.2),
    0 0 16px rgba(255, 245, 214, 0.22);
  font-size: clamp(16px, 2.2vw, 26px) !important;
}

.copy-line--page5-main .copy-line__text {
  background: linear-gradient(180deg, #ffffff 0%, #fff1c8 46%, #e8d2ff 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  text-shadow:
    0 2px 0 rgba(102, 61, 184, 0.24),
    0 0 18px rgba(255, 245, 214, 0.3),
    0 0 24px rgba(233, 200, 255, 0.24);
  font-size: clamp(48px, 7.4vw, 88px) !important;
  line-height: 0.95;
}

.result-subtitle {
  position: absolute;
  left: 7.8%;
  top: 46%;
  display: grid;
  gap: 0.2rem;
  color: rgba(255, 247, 223, 0.98);
  font-size: clamp(15px, 1.95vw, 22px);
  line-height: 1.3;
  letter-spacing: 0.02em;
  text-shadow:
    0 2px 0 rgba(79, 43, 150, 0.2),
    0 0 16px rgba(255, 242, 199, 0.22);
  max-width: 42%;
}

.result-subtitle span {
  display: block;
}

.timeline-runner {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  mix-blend-mode: screen;
  opacity: 0.72;
}

.timeline-runner path {
  fill: none;
  stroke: transparent;
}

.timeline-runner circle {
  filter: drop-shadow(0 0 14px rgba(255, 230, 150, 0.42));
}

.wish-card {
  min-height: 40px;
  font-size: clamp(13px, 1.9vw, 18px);
}

.hotspot.enter-bottom {
  animation:
    enterFromBottom 1.08s cubic-bezier(0.2, 0.9, 0.2, 1) both,
    button-breathe 3.8s ease-in-out infinite;
}

.wish-card.enter-bottom {
  animation: enterFromBottom 1.04s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.wish-card.flashPop {
  animation: flashPop 0.78s cubic-bezier(0.2, 1.02, 0.24, 1) both;
}

.wish-card.is-selected {
  transform: scale(1.06);
}

.wish-summary,
.timeline-note,
.result-card,
.share-sheet,
.anniv-badge,
.wish-prompt {
  border-color: rgba(255, 244, 206, 0.24);
}

.timeline-note {
  background: rgba(52, 28, 96, 0.52);
  color: rgba(255, 250, 236, 0.98);
  box-shadow: 0 0 26px rgba(255, 220, 118, 0.12);
  font-size: clamp(11px, 1.4vw, 14px);
}

.wish-summary {
  background: rgba(50, 31, 92, 0.48);
  color: rgba(255, 248, 224, 0.98);
  font-size: clamp(13px, 1.7vw, 16px);
}

.wish-prompt {
  color: rgba(255, 248, 224, 0.98);
  text-shadow: 0 0 14px rgba(255, 230, 168, 0.26);
}

.result-card,
.share-sheet {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
}

.result-card::before,
.share-sheet::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 245, 210, 0.14) 46%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 245, 210, 0.14) 54%, transparent 66%);
  transform: translateX(-32%);
  animation: card-sweep 4.2s ease-in-out infinite;
  pointer-events: none;
}

.result-card::after,
.share-sheet::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 206, 0.12),
    inset 0 0 24px rgba(255, 223, 132, 0.08);
  pointer-events: none;
}

.result-card.enter-bottom {
  animation: enterFromBottom 1.1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.share-sheet.enter-bottom {
  animation: enterFromBottom 1.08s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.result-identity.enter-right {
  animation: enterFromRight 1.0s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.result-identity__title {
  display: inline-block;
  font-size: clamp(22px, 3.4vw, 38px);
  font-weight: 900;
  letter-spacing: 0.08em;
  white-space: nowrap;
  text-shadow:
    0 2px 0 rgba(80, 41, 152, 0.2),
    0 0 18px rgba(255, 242, 195, 0.22);
}

.share-sheet__identity {
  display: inline-block;
  font-size: clamp(22px, 3.1vw, 32px);
  font-weight: 900;
  color: #fff4cb;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.anniv-badge {
  animation: enterFromRight 1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.page-hint {
  animation: enterFromBottom 1s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.copy-line__text {
  transform-origin: center;
}

@keyframes enterFromLeft {
  0% {
    transform: translateX(-120vw);
    opacity: 0;
  }
  78% {
    transform: translateX(10px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes enterFromRight {
  0% {
    transform: translateX(120vw);
    opacity: 0;
  }
  78% {
    transform: translateX(-10px);
    opacity: 1;
  }
  100% {
    transform: translateX(0);
    opacity: 1;
  }
}

@keyframes enterFromTop {
  0% {
    transform: translateY(-100vh);
    opacity: 0;
  }
  78% {
    transform: translateY(10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes enterFromBottom {
  0% {
    transform: translateY(100vh);
    opacity: 0;
  }
  78% {
    transform: translateY(-10px);
    opacity: 1;
  }
  100% {
    transform: translateY(0);
    opacity: 1;
  }
}

@keyframes dropBounce {
  0% {
    opacity: 0;
    transform: translate3d(0, -80px, 0) scale(0.9);
    filter: blur(1px);
  }
  64% {
    opacity: 1;
    transform: translate3d(0, 8px, 0) scale(1.06);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes flashPop {
  0% {
    opacity: 0;
    transform: scale(0.65);
    filter: brightness(1.8);
  }
  70% {
    opacity: 1;
    transform: scale(1.12);
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes title-sway {
  0%,
  100% {
    transform: translateX(-4px) rotate(-0.8deg);
  }
  50% {
    transform: translateX(4px) rotate(0.8deg);
  }
}

@keyframes card-sweep {
  0%,
  100% {
    transform: translateX(-35%);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  50% {
    transform: translateX(18%);
    opacity: 1;
  }
  62% {
    opacity: 0.26;
  }
}

.overlay-layer.is-share-open {
  pointer-events: auto;
}

.share-overlay {
  position: absolute;
  inset: 0;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(10, 8, 55, 0.32);
  backdrop-filter: blur(2px);
  -webkit-backdrop-filter: blur(2px);
  pointer-events: auto;
}

.share-card {
  position: absolute;
  left: 50%;
  top: 46%;
  width: min(82vw, 330px);
  max-width: calc(100% - 52px);
  height: clamp(280px, 28vh, 318px);
  padding: 1rem 1rem 0.82rem;
  border-radius: 1.4rem;
  border: 1px solid rgba(255, 240, 206, 0.26);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.05)),
    rgba(43, 28, 92, 0.68);
  color: rgba(255, 247, 223, 0.98);
  box-shadow:
    0 18px 44px rgba(4, 8, 24, 0.3),
    0 0 32px rgba(255, 225, 132, 0.12);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  overflow: hidden;
  isolation: isolate;
  transform: translate(-50%, -50%) translateY(26px) scale(0.96);
  pointer-events: auto;
}

.share-card::before {
  content: "";
  position: absolute;
  inset: -24% -42%;
  background: linear-gradient(115deg, transparent 36%, rgba(255, 245, 210, 0.16) 46%, rgba(255, 255, 255, 0.2) 50%, rgba(255, 245, 210, 0.15) 54%, transparent 64%);
  transform: translateX(-34%);
  animation: card-sweep 4.6s ease-in-out infinite;
  pointer-events: none;
}

.share-card.is-visible {
  animation: share-card-rise 0.58s cubic-bezier(0.2, 0.9, 0.2, 1) both;
}

.share-card > * {
  position: relative;
  z-index: 1;
}

.share-card__title {
  text-align: center;
  font-size: clamp(13px, 1.6vw, 17px);
  font-weight: 900;
  letter-spacing: 0.08em;
}

.share-card__identity {
  margin-top: 0.5rem;
  color: #fff5cf;
  font-size: clamp(20px, 2.8vw, 28px);
  font-weight: 900;
  line-height: 1.04;
  white-space: nowrap;
  text-align: left;
}

.share-card__meta {
  margin-top: 0.64rem;
  display: grid;
  gap: 0.28rem;
  font-size: clamp(11px, 1.4vw, 14px);
}

.share-card__row {
  display: grid;
  grid-template-columns: 5.7rem minmax(0, 1fr);
  gap: 0.64rem;
  align-items: start;
  line-height: 1.3;
}

.share-card__row span {
  color: rgba(255, 243, 208, 0.92);
  white-space: nowrap;
  font-weight: 800;
}

.share-card__row strong {
  min-width: 0;
  color: #fff7d6;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  text-align: left;
  font-weight: 900;
}

.share-card__footer {
  position: absolute;
  left: 1rem;
  right: 1rem;
  bottom: 3.2rem;
  padding-top: 0.52rem;
  border-top: 1px solid rgba(255, 244, 210, 0.16);
  font-size: clamp(11px, 1.25vw, 12px);
  letter-spacing: 0.12em;
  color: rgba(255, 243, 210, 0.88);
}

.share-card__close {
  position: absolute;
  right: 0.9rem;
  bottom: 0.75rem;
  border: 0;
  border-radius: 999px;
  padding: 0.36rem 0.7rem;
  background: rgba(255, 243, 210, 0.18);
  color: #fff8e4;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
  cursor: pointer;
}

.page[data-scene="result"].is-share-open .result-identity,
.page[data-scene="result"].is-share-open .result-subtitle,
.page[data-scene="result"].is-share-open .result-card,
.page[data-scene="result"].is-share-open .hotspot {
  opacity: 0.14;
  filter: blur(1px) saturate(0.82);
  pointer-events: none;
}

.page[data-scene="result"].is-share-open .result-card,
.page[data-scene="result"].is-share-open .hotspot {
  visibility: hidden;
}

@keyframes share-card-rise {
  0% {
    opacity: 0;
    transform: translate(-50%, -50%) translateY(34px) scale(0.96);
  }
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) translateY(0) scale(1);
  }
}

.page[data-scene="result"] .share-sheet--final {
  top: 44.2% !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(calc(100% - 48px), 410px) !important;
  max-width: calc(100% - 48px) !important;
  padding: 0.82rem 0.92rem 0.9rem !important;
  transform: translateX(-50%) translateY(8px) scale(0.97) !important;
}

.page[data-scene="result"] .share-sheet--final.is-visible {
  animation: share-rise 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) forwards !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__title {
  font-size: clamp(13px, 1.65vw, 17px) !important;
  line-height: 1.22 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__identity {
  margin-top: 0.34rem !important;
  font-size: clamp(18px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__meta {
  margin-top: 0.42rem !important;
  gap: 0.16rem !important;
  font-size: clamp(10.5px, 1.32vw, 13px) !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__footer {
  margin-top: 0.52rem !important;
  padding-top: 0.44rem !important;
  font-size: clamp(10.5px, 1.22vw, 12px) !important;
}

.page[data-scene="result"] .share-sheet--final {
  top: 44.2% !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(calc(100% - 48px), 410px) !important;
  max-width: calc(100% - 48px) !important;
  padding: 0.82rem 0.92rem 0.9rem !important;
  transform: translateX(-50%) translateY(8px) scale(0.97) !important;
}

.page[data-scene="result"] .share-sheet--final.is-visible {
  animation: share-rise 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) forwards !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__title {
  font-size: clamp(13px, 1.65vw, 17px) !important;
  line-height: 1.22 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__identity {
  margin-top: 0.34rem !important;
  font-size: clamp(18px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__meta {
  margin-top: 0.42rem !important;
  gap: 0.16rem !important;
  font-size: clamp(10.5px, 1.32vw, 13px) !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__footer {
  margin-top: 0.52rem !important;
  padding-top: 0.44rem !important;
  font-size: clamp(10.5px, 1.22vw, 12px) !important;
}

.page[data-scene="result"] .copy-line--page5-main .copy-line__text {
  font-size: clamp(42px, 6.3vw, 76px) !important;
  text-shadow:
    0 1px 0 rgba(102, 61, 184, 0.18),
    0 0 12px rgba(255, 245, 214, 0.16),
    0 0 16px rgba(233, 200, 255, 0.12);
}

.page[data-scene="result"] .result-identity--final {
  left: 7.8%;
  top: 41.4%;
  max-width: 39.6%;
  gap: 0.68rem;
}

.page[data-scene="result"] .result-identity--final .result-identity__label {
  font-size: clamp(12px, 1.55vw, 15px);
  letter-spacing: 0.12em;
}

.page[data-scene="result"] .result-identity--final .result-identity__title {
  font-size: clamp(20px, 3.05vw, 34px);
  line-height: 1.04;
  text-shadow:
    0 1px 0 rgba(80, 41, 152, 0.16),
    0 0 12px rgba(255, 242, 195, 0.16);
}

.page[data-scene="result"] .result-subtitle {
  top: 49.2%;
  max-width: 39.6%;
}

.page[data-scene="result"] .result-card--final {
  left: 7.8%;
  top: 58.9%;
  width: 45.4%;
  max-width: 45.4%;
  padding: 0.98rem 1.04rem;
}

.page[data-scene="result"] .result-card--final .result-card__row {
  grid-template-columns: 5.05rem minmax(0, 1fr);
  gap: 0.9rem;
  align-items: center;
  padding: 0.22rem 0;
  line-height: 1.34;
}

.page[data-scene="result"] .result-card--final .result-card__label,
.page[data-scene="result"] .result-card--final .result-card__row > span {
  min-width: 5.05rem;
  white-space: nowrap;
  color: #fff6d0;
  font-weight: 800;
}

.page[data-scene="result"] .result-card--final .result-card__value,
.page[data-scene="result"] .result-card--final .result-card__row > strong {
  min-width: 0;
  text-align: left;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: clip;
  font-size: clamp(11px, 1.28vw, 14px);
  line-height: 1.28;
  letter-spacing: 0.01em;
}

.page[data-scene="result"] .result-card--final .result-card__value--code,
.page[data-scene="result"] .result-card--final .result-card__row:nth-child(3) > strong {
  font-size: clamp(10px, 1.18vw, 13px);
  letter-spacing: 0.02em;
}

.page[data-scene="result"] .result-card--final .result-card__value--stars,
.page[data-scene="result"] .result-card--final .result-card__row:nth-child(4) > strong {
  letter-spacing: 0.06em;
}

.page[data-scene="result"] .share-sheet--final {
  left: 50%;
  top: 44.2%;
  bottom: auto;
  width: min(calc(100% - 48px), 410px);
  max-width: calc(100% - 48px);
  padding: 0.82rem 0.92rem 0.9rem;
  transform: translateX(-50%) translateY(8px) scale(0.97);
  z-index: 18;
}

.page[data-scene="result"] .share-sheet--final.is-visible {
  animation: share-rise 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) forwards;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__title {
  font-size: clamp(13px, 1.65vw, 17px);
  line-height: 1.22;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__identity {
  margin-top: 0.34rem;
  font-size: clamp(18px, 2.45vw, 25px);
  line-height: 1.02;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__meta {
  margin-top: 0.42rem;
  gap: 0.16rem;
  font-size: clamp(10.5px, 1.32vw, 13px);
}

.page[data-scene="result"] .share-sheet--final .share-sheet__footer {
  margin-top: 0.52rem;
  padding-top: 0.44rem;
  font-size: clamp(10.5px, 1.22vw, 12px);
}

.page[data-scene="result"] .hotspot {
  white-space: nowrap;
  font-size: clamp(12px, 1.45vw, 15px);
}

:root {
  --enter-duration: 1.18s;
  --title-sway-duration: 3.6s;
  --copy-enter-ease: cubic-bezier(0.18, 0.72, 0.22, 1);
}

.page {
  overflow: hidden;
}

.page.is-entering {
  animation: page-enter var(--enter-duration) var(--copy-enter-ease) both;
}

.page.is-exiting {
  animation: page-exit var(--enter-duration) var(--copy-enter-ease) both;
}

.page.is-reveal {
  animation: page-reveal 0.96s var(--copy-enter-ease) both;
}

.copy-line {
  opacity: 1;
  transform: none;
  animation: none !important;
  overflow: visible;
}

.copy-line__text {
  display: inline-block;
  animation: none !important;
  transform-origin: center;
}

.motion-wrap {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
  animation-duration: var(--motion-duration, 1.24s);
  animation-delay: var(--motion-delay, 0s);
  animation-timing-function: var(--copy-enter-ease);
}

.motion-inner {
  display: block;
  width: 100%;
  transform-origin: center;
}

.motion-inner.gentle-sway {
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.18s;
}

.motion-wrap.enter-left,
.motion-wrap.flyInLeft {
  animation-name: enterFromLeft;
}

.motion-wrap.enter-right,
.motion-wrap.flyInRight {
  animation-name: enterFromRight;
}

.motion-wrap.enter-top {
  animation-name: enterFromTop;
}

.motion-wrap.enter-bottom,
.motion-wrap.riseCard {
  animation-name: enterFromBottom;
}

.motion-wrap.dropBounce {
  animation-name: dropBounce;
}

.motion-wrap.flashPop {
  animation-name: flashPop;
}

.copy-line--page1-main .copy-line__text,
.copy-line--page1-sub .copy-line__text,
.copy-line--page2-number .copy-line__text,
.copy-line--page2-title .copy-line__text,
.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page4-sub .copy-line__text,
.copy-line--page5-main .copy-line__text {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page5-main .copy-line__text {
  line-height: 0.96;
}

.copy-line--page4-title .copy-line__text {
  font-size: clamp(24px, 4vw, 44px) !important;
}

.copy-line--page4-title--secondary .copy-line__text {
  font-size: clamp(20px, 3.3vw, 34px) !important;
  letter-spacing: 0.03em;
}

.copy-line--page4-sub .copy-line__text {
  font-size: clamp(14px, 1.95vw, 20px) !important;
}

.copy-line--page5-main .copy-line__text {
  font-size: clamp(44px, 7vw, 80px) !important;
}

.hotspot,
.hotspot.enter-bottom,
.hotspot--intro,
.hotspot--rise {
  animation-duration: 3.2s;
}

.hotspot.enter-bottom {
  animation:
    enterFromBottom 1.24s var(--copy-enter-ease) both,
    button-breathe 3.2s ease-in-out infinite;
}

.hotspot--intro,
.hotspot--rise {
  animation:
    hotspot-pop-in 1.12s var(--copy-enter-ease) both,
    button-breathe 3.2s ease-in-out infinite 0.12s;
}

.hotspot.flashPop {
  animation:
    flashPop 0.88s var(--copy-enter-ease) both,
    button-breathe 3.2s ease-in-out infinite 0.12s;
}

.wish-card.enter-bottom {
  animation: enterFromBottom 1.2s var(--copy-enter-ease) both;
}

.wish-card.flashPop {
  animation: flashPop 0.88s var(--copy-enter-ease) both;
}

.wish-summary.riseCard,
.timeline-note.riseCard,
.result-card.enter-bottom,
.share-sheet.enter-bottom {
  animation-duration: 1.22s;
  animation-timing-function: var(--copy-enter-ease);
}

.timeline-note {
  max-width: 30%;
}

.wish-summary {
  top: 41.8%;
  max-width: 39%;
}

.result-identity {
  top: 36.2%;
  max-width: 40%;
}

.result-identity__title {
  font-size: clamp(20px, 3vw, 34px);
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.18s;
}

.result-subtitle {
  top: 45.8%;
  max-width: 40%;
}

.result-card {
  top: 58.8%;
  width: 40%;
  padding: 0.82rem 0.92rem;
}

.result-card__row {
  grid-template-columns: 5rem 1fr;
  gap: 0.68rem;
  font-size: clamp(12px, 1.35vw, 14px);
}

.share-sheet {
  bottom: 5.4%;
  width: min(86%, 500px);
}

.share-sheet__title {
  font-size: clamp(14px, 1.9vw, 18px);
}

.share-sheet__identity {
  font-size: clamp(20px, 2.8vw, 30px);
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.18s;
}

@keyframes page-enter {
  0% {
    opacity: 1;
    transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(1.015);
  }
  72% {
    opacity: 1;
    transform: translate3d(calc(var(--enter-x) * 0.05), calc(var(--enter-y) * 0.07), 0) scale(0.998);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-exit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--exit-x), var(--exit-y), 0) scale(0.998);
  }
}

@keyframes page-reveal {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.985);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

:root {
  --enter-duration: 1.18s;
  --title-sway-duration: 3.6s;
  --copy-enter-ease: cubic-bezier(0.18, 0.72, 0.22, 1);
}

.page {
  overflow: hidden;
}

.page.is-entering {
  animation: page-enter var(--enter-duration) var(--copy-enter-ease) both;
}

.page.is-exiting {
  animation: page-exit var(--enter-duration) var(--copy-enter-ease) both;
}

.page.is-reveal {
  animation: page-reveal 0.96s var(--copy-enter-ease) both;
}

.copy-line {
  opacity: 1;
  transform: none;
  animation: none !important;
  overflow: visible;
}

.copy-line__text {
  display: inline-block;
  animation: none !important;
  transform-origin: center;
}

.motion-wrap {
  display: block;
  width: 100%;
  opacity: 0;
  transform: translate3d(0, 0, 0);
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
  animation-duration: var(--motion-duration, 1.24s);
  animation-delay: var(--motion-delay, 0s);
  animation-timing-function: var(--copy-enter-ease);
}

.motion-inner {
  display: block;
  width: 100%;
  transform-origin: center;
}

.motion-inner.gentle-sway {
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.18s;
}

.motion-wrap.enter-left,
.motion-wrap.flyInLeft {
  animation-name: enterFromLeft;
}

.motion-wrap.enter-right,
.motion-wrap.flyInRight {
  animation-name: enterFromRight;
}

.motion-wrap.enter-top {
  animation-name: enterFromTop;
}

.motion-wrap.enter-bottom,
.motion-wrap.riseCard {
  animation-name: enterFromBottom;
}

.motion-wrap.dropBounce {
  animation-name: dropBounce;
}

.motion-wrap.flashPop {
  animation-name: flashPop;
}

.copy-line--page1-main .copy-line__text,
.copy-line--page1-sub .copy-line__text,
.copy-line--page2-number .copy-line__text,
.copy-line--page2-title .copy-line__text,
.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page4-sub .copy-line__text,
.copy-line--page5-main .copy-line__text {
  white-space: nowrap;
  word-break: keep-all;
}

.copy-line--page3-title .copy-line__text,
.copy-line--page4-title .copy-line__text,
.copy-line--page5-main .copy-line__text {
  line-height: 0.96;
}

.copy-line--page4-title .copy-line__text {
  font-size: clamp(24px, 4vw, 44px) !important;
}

.copy-line--page4-title--secondary .copy-line__text {
  font-size: clamp(20px, 3.3vw, 34px) !important;
  letter-spacing: 0.03em;
}

.copy-line--page4-sub .copy-line__text {
  font-size: clamp(14px, 1.95vw, 20px) !important;
}

.copy-line--page5-main .copy-line__text {
  font-size: clamp(44px, 7vw, 80px) !important;
}

.hotspot,
.hotspot.enter-bottom,
.hotspot--intro,
.hotspot--rise {
  animation-duration: 3.2s;
}

.hotspot.enter-bottom {
  animation:
    enterFromBottom 1.24s var(--copy-enter-ease) both,
    button-breathe 3.2s ease-in-out infinite;
}

.hotspot--intro,
.hotspot--rise {
  animation:
    hotspot-pop-in 1.12s var(--copy-enter-ease) both,
    button-breathe 3.2s ease-in-out infinite 0.12s;
}

.wish-card.enter-bottom {
  animation: enterFromBottom 1.2s var(--copy-enter-ease) both;
}

.wish-card.flashPop {
  animation: flashPop 0.88s var(--copy-enter-ease) both;
}

.wish-summary.riseCard,
.timeline-note.riseCard,
.result-card.enter-bottom,
.share-sheet.enter-bottom {
  animation-duration: 1.22s;
  animation-timing-function: var(--copy-enter-ease);
}

.timeline-note {
  max-width: 30%;
}

.wish-summary {
  top: 41.8%;
  max-width: 39%;
}

.result-identity {
  top: 36.2%;
  max-width: 40%;
}

.result-identity__title {
  font-size: clamp(20px, 3vw, 34px);
}

.result-subtitle {
  top: 45.8%;
  max-width: 40%;
}

.result-card {
  top: 58.8%;
  width: 40%;
  padding: 0.82rem 0.92rem;
}

.result-card__row {
  grid-template-columns: 5rem 1fr;
  gap: 0.68rem;
  font-size: clamp(12px, 1.35vw, 14px);
}

.share-sheet {
  bottom: 5.4%;
  width: min(86%, 500px);
}

.share-sheet__title {
  font-size: clamp(14px, 1.9vw, 18px);
}

.share-sheet__identity {
  font-size: clamp(20px, 2.8vw, 30px);
}

@keyframes page-enter {
  0% {
    opacity: 1;
    transform: translate3d(var(--enter-x), var(--enter-y), 0) scale(1.015);
  }
  72% {
    opacity: 1;
    transform: translate3d(calc(var(--enter-x) * 0.05), calc(var(--enter-y) * 0.07), 0) scale(0.998);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes page-exit {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
  100% {
    opacity: 1;
    transform: translate3d(var(--exit-x), var(--exit-y), 0) scale(0.998);
  }
}

@keyframes page-reveal {
  0% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(0.985);
  }
  60% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1.01);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

/* 统一的进场动画：可用于文字、按钮、卡片、节点 */
.flyInLeft,
.flyInRight,
.dropBounce,
.flashPop,
.riseCard {
  opacity: 0;
  will-change: transform, opacity, filter;
  animation-fill-mode: both;
}

.flyInLeft {
  animation: flyInLeft 0.74s cubic-bezier(0.2, 0.95, 0.2, 1) both;
}

.flyInRight {
  animation: flyInRight 0.74s cubic-bezier(0.2, 0.95, 0.2, 1) both;
}

.dropBounce {
  animation: dropBounce 0.82s cubic-bezier(0.2, 1, 0.24, 1) both;
}

.flashPop {
  animation: flashPop 0.72s cubic-bezier(0.2, 1.05, 0.24, 1) both;
}

.riseCard {
  animation: riseCard 0.72s cubic-bezier(0.2, 0.95, 0.24, 1) both;
}

.copy-line.dropBounce,
.copy-line.flyInLeft,
.copy-line.flyInRight,
.copy-line.flashPop,
.copy-line.riseCard {
  opacity: 0;
}

.copy-line.flyInLeft,
.copy-line.flyInRight,
.copy-line.dropBounce,
.copy-line.flashPop,
.copy-line.riseCard {
  transform-origin: center;
}

.copy-line.flashPop,
.copy-line.dropBounce {
  text-shadow:
    0 2px 0 rgba(71, 32, 139, 0.24),
    0 0 18px rgba(255, 242, 201, 0.24),
    0 0 24px rgba(170, 130, 255, 0.2);
}

.copy-line--title.flyInLeft .copy-line__text,
.copy-line--title.flyInRight .copy-line__text,
.copy-line--title.dropBounce .copy-line__text,
.copy-line--title.flashPop .copy-line__text {
  display: inline-block;
}

.hotspot.flashPop {
  animation:
    flashPop 0.88s cubic-bezier(0.2, 1.05, 0.24, 1) both,
    button-breathe 3.2s ease-in-out infinite 0.12s;
}

.wish-card.riseCard {
  animation: riseCard 0.72s cubic-bezier(0.2, 0.95, 0.24, 1) both;
}

.wish-card.flashPop {
  animation: flashPop 0.88s cubic-bezier(0.2, 1.05, 0.24, 1) both;
}

.timeline-node.flashPop {
  animation: flashPop 0.78s cubic-bezier(0.2, 1.05, 0.24, 1) both;
}

.timeline-note.riseCard,
.wish-summary.riseCard,
.result-card.riseCard,
.share-sheet.riseCard {
  animation: riseCard 1.22s cubic-bezier(0.2, 0.95, 0.24, 1) both;
}

.anniv-badge.flyInLeft,
.page-hint.riseCard,
.wish-prompt.flyInLeft,
.wish-summary.flyInLeft,
.result-identity.flyInRight {
  animation-fill-mode: both;
}

.result-identity__title {
  display: inline-block;
  white-space: nowrap;
  animation: title-sway var(--title-sway-duration) ease-in-out infinite 1.18s;
}

.result-card {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
}

.result-card::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 245, 210, 0.18) 46%, rgba(255, 255, 255, 0.22) 50%, rgba(255, 245, 210, 0.16) 54%, transparent 62%);
  transform: translateX(-35%);
  animation: card-sweep 3.4s ease-in-out infinite;
  pointer-events: none;
}

.result-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow:
    inset 0 0 0 1px rgba(255, 244, 206, 0.12),
    inset 0 0 24px rgba(255, 223, 132, 0.08);
  pointer-events: none;
}

.result-card__row {
  position: relative;
  z-index: 1;
}

.share-sheet {
  position: absolute;
  overflow: hidden;
  isolation: isolate;
}

.share-sheet::before {
  content: "";
  position: absolute;
  inset: -20% -40%;
  background: linear-gradient(115deg, transparent 34%, rgba(255, 245, 210, 0.14) 46%, rgba(255, 255, 255, 0.18) 50%, rgba(255, 245, 210, 0.14) 54%, transparent 66%);
  transform: translateX(-32%);
  animation: card-sweep 4s ease-in-out infinite;
  pointer-events: none;
}

.share-sheet > * {
  position: relative;
  z-index: 1;
}

.timeline-note,
.wish-summary,
.share-sheet,
.result-card {
  border-color: rgba(255, 244, 206, 0.24);
}

.timeline-note {
  background: rgba(52, 28, 96, 0.52);
  color: rgba(255, 250, 236, 0.98);
  box-shadow: 0 0 26px rgba(255, 220, 118, 0.12);
}

.wish-summary {
  background: rgba(50, 31, 92, 0.48);
  color: rgba(255, 248, 224, 0.98);
}

.wish-prompt {
  color: rgba(255, 248, 224, 0.98);
  text-shadow: 0 0 14px rgba(255, 230, 168, 0.26);
}

.timeline-node__year,
.timeline-node__label {
  text-shadow: 0 0 12px rgba(255, 244, 214, 0.14);
}

@keyframes flyInLeft {
  0% {
    opacity: 0;
    transform: translate3d(-120%, 0, 0) scale(0.95);
    filter: blur(1px);
  }
  70% {
    opacity: 1;
    transform: translate3d(8px, 0, 0) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes flyInRight {
  0% {
    opacity: 0;
    transform: translate3d(120%, 0, 0) scale(0.95);
    filter: blur(1px);
  }
  70% {
    opacity: 1;
    transform: translate3d(-8px, 0, 0) scale(1.01);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
    filter: blur(0);
  }
}

@keyframes dropBounce {
  0% {
    opacity: 0;
    transform: translate3d(0, -80px, 0) scale(0.9);
    filter: blur(1px);
  }
  64% {
    opacity: 1;
    transform: translate3d(0, 8px, 0) scale(1.06);
    filter: blur(0);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0) scale(1);
  }
}

@keyframes flashPop {
  0% {
    opacity: 0;
    transform: scale(0.65);
    filter: brightness(1.8);
  }
  70% {
    opacity: 1;
    transform: scale(1.12);
    filter: brightness(1.3);
  }
  100% {
    opacity: 1;
    transform: scale(1);
    filter: brightness(1);
  }
}

@keyframes riseCard {
  0% {
    opacity: 0;
    transform: translate3d(0, 45px, 0);
    filter: blur(1px);
  }
  100% {
    opacity: 1;
    transform: translate3d(0, 0, 0);
    filter: blur(0);
  }
}

@keyframes card-sweep {
  0%,
  100% {
    transform: translateX(-35%);
    opacity: 0;
  }
  38% {
    opacity: 1;
  }
  50% {
    transform: translateX(18%);
    opacity: 1;
  }
  62% {
    opacity: 0.26;
  }
}

.page[data-scene="result"] .share-sheet--final {
  top: 44.2% !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(calc(100% - 48px), 410px) !important;
  max-width: calc(100% - 48px) !important;
  padding: 0.82rem 0.92rem 0.9rem !important;
  transform: translateX(-50%) translateY(8px) scale(0.97) !important;
}

.page[data-scene="result"] .share-sheet--final.is-visible {
  animation: share-rise 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) forwards !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__title {
  font-size: clamp(13px, 1.65vw, 17px) !important;
  line-height: 1.22 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__identity {
  margin-top: 0.34rem !important;
  font-size: clamp(18px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__meta {
  margin-top: 0.42rem !important;
  gap: 0.16rem !important;
  font-size: clamp(10.5px, 1.32vw, 13px) !important;
}

.page[data-scene="result"] .share-sheet--final .share-sheet__footer {
  margin-top: 0.52rem !important;
  padding-top: 0.44rem !important;
  font-size: clamp(10.5px, 1.22vw, 12px) !important;
}

.share-sheet--final {
  top: 44.2% !important;
  bottom: auto !important;
  left: 50% !important;
  width: min(calc(100% - 48px), 410px) !important;
  max-width: calc(100% - 48px) !important;
  padding: 0.82rem 0.92rem 0.9rem !important;
  transform: translateX(-50%) translateY(8px) scale(0.97) !important;
}

.share-sheet--final.is-visible {
  animation: share-rise 0.52s cubic-bezier(0.2, 0.9, 0.2, 1) forwards !important;
}

.share-sheet--final .share-sheet__title {
  font-size: clamp(13px, 1.65vw, 17px) !important;
  line-height: 1.22 !important;
}

.share-sheet--final .share-sheet__identity {
  margin-top: 0.34rem !important;
  font-size: clamp(18px, 2.45vw, 25px) !important;
  line-height: 1.02 !important;
}

.share-sheet--final .share-sheet__meta {
  margin-top: 0.42rem !important;
  gap: 0.16rem !important;
  font-size: clamp(10.5px, 1.32vw, 13px) !important;
}

.share-sheet--final .share-sheet__footer {
  margin-top: 0.52rem !important;
  padding-top: 0.44rem !important;
  font-size: clamp(10.5px, 1.22vw, 12px) !important;
}
