:root {
  --rose: #cf6f7f;
  --rose-deep: #8c4455;
  --peach: #f5b48c;
  --champagne: #ffe7c8;
  --cream: #fff8f1;
  --paper: rgba(255, 249, 241, 0.88);
  --ink: #4b3040;
  --sky: #194b67;
  --glow: rgba(255, 218, 178, 0.72);
  --shadow: 0 24px 60px rgba(71, 31, 35, 0.16);
}

* {
  box-sizing: border-box;
}

[v-cloak] {
  display: none !important;
}

#app:not([v-cloak]) + .site-loading {
  display: none;
}

html {
  height: 100%;
  scroll-behavior: smooth;
  overflow: hidden;
  overflow-anchor: none;
}

body {
  margin: 0;
  height: 100%;
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 219, 194, 0.7), transparent 28%),
    linear-gradient(180deg, #fff8f1 0%, #fdebe1 40%, #fff7f0 100%);
  color: var(--ink);
  font-family: "PingFang SC", "Microsoft YaHei", sans-serif;
  overflow-anchor: none;
  overscroll-behavior: none;
}

body.gift-modal-open {
  overflow: hidden;
}

body.gift-modal-open #app,
body.photo-modal-open #app {
  overflow: hidden;
}

.site-loading {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top, rgba(255, 219, 194, 0.72), transparent 32%),
    linear-gradient(180deg, #fff8f1 0%, #fdebe1 100%);
  color: var(--rose-deep);
  text-align: center;
}

.loading-card {
  display: grid;
  justify-items: center;
  gap: 0.8rem;
}

.start-gate {
  position: fixed;
  inset: 0;
  z-index: 180;
  display: grid;
  place-items: center;
  padding: 2rem;
  background:
    radial-gradient(circle at top, rgba(255, 219, 194, 0.72), transparent 32%),
    linear-gradient(180deg, #fff8f1 0%, #fdebe1 100%);
  color: var(--rose-deep);
  text-align: center;
}

.start-card {
  width: min(100%, 18rem);
}

.start-button {
  width: 100%;
  margin-top: 0.65rem;
}

.start-button:disabled {
  cursor: wait;
  opacity: 0.58;
  box-shadow: none;
}

.start-gate-transition-leave-active {
  transition:
    opacity 760ms ease,
    filter 760ms ease;
}

.start-gate-transition-leave-active .start-card {
  transition:
    opacity 620ms ease,
    transform 760ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.start-gate-transition-leave-to {
  opacity: 0;
  filter: blur(8px);
}

.start-gate-transition-leave-to .start-card {
  opacity: 0;
  transform: translateY(-0.8rem) scale(0.96);
}

.loading-heart {
  display: grid;
  place-items: center;
  width: 3.2rem;
  height: 3.2rem;
  border-radius: 50%;
  color: #fffaf5;
  background: linear-gradient(135deg, var(--rose) 0%, #eb8f76 100%);
  box-shadow: 0 16px 32px rgba(140, 68, 85, 0.24);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.6rem;
  animation: loading-pulse 1.5s ease-in-out infinite;
}

.loading-card p {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.6;
}

button {
  border: 0;
  cursor: pointer;
  font: inherit;
  -webkit-tap-highlight-color: transparent;
}

button:focus {
  outline: none;
}

button:focus-visible {
  outline: 2px solid rgba(238, 144, 127, 0.88);
  outline-offset: 3px;
}

img {
  display: block;
  max-width: 100%;
}

.music-audio {
  display: none;
}

.music-button {
  position: fixed;
  top: 0.8rem;
  right: 0.8rem;
  top: calc(0.8rem + env(safe-area-inset-top));
  right: calc(0.8rem + env(safe-area-inset-right));
  z-index: 120;
  display: grid;
  place-items: center;
  width: 3rem;
  height: 3rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #191218;
  box-shadow:
    0 0 0 2px rgba(255, 248, 241, 0.9),
    0 0 0 4px rgba(207, 111, 127, 0.35),
    0 8px 16px rgba(38, 16, 22, 0.34);
  opacity: 0;
  pointer-events: none;
  transform: translateY(-0.35rem) scale(0.82);
  transition:
    transform 520ms cubic-bezier(0.2, 0.72, 0.2, 1),
    opacity 420ms ease;
}

.music-button.visible {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0) scale(1);
  transition-delay: 420ms;
}

.music-button.visible:active {
  transform: scale(0.95);
}

.record-icon {
  display: block;
  width: 2.65rem;
  height: 2.65rem;
  border-radius: 50%;
  object-fit: contain;
  transform-origin: 50% 50%;
}

.music-button.playing .record-icon {
  animation: record-spin 1.8s linear infinite;
}

#app {
  height: 100svh;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-behavior: smooth;
  scroll-snap-type: y mandatory;
  overscroll-behavior-y: contain;
  -webkit-overflow-scrolling: touch;
  touch-action: pan-y;
}

.page-shell {
  height: auto;
  overflow: visible;
  overflow-anchor: none;
  opacity: 0;
  transform: scale(1.012);
  transition:
    opacity 820ms ease 140ms,
    transform 960ms cubic-bezier(0.2, 0.72, 0.2, 1) 140ms;
}

.page-shell.ready {
  opacity: 1;
  transform: scale(1);
}

.hero {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  display: flex;
  align-items: flex-end;
  padding: 0 1.25rem calc(4rem + env(safe-area-inset-bottom));
  overflow: hidden;
  overflow-anchor: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.hero-image,
.hero-overlay,
.petal-layer {
  position: absolute;
  inset: 0;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  background:
    linear-gradient(180deg, rgba(12, 28, 43, 0.1) 0%, rgba(32, 22, 28, 0.2) 38%),
    linear-gradient(180deg, rgba(40, 22, 34, 0.05) 35%, rgba(37, 14, 22, 0.72) 100%);
}

.hero-copy {
  position: relative;
  z-index: 2;
  width: min(100%, 31rem);
  color: #fff7f1;
}

.eyebrow,
.section-kicker,
.wish-label,
.moment-no,
.hero-hint {
  letter-spacing: 0;
}

.eyebrow {
  margin: 0 0 0.8rem;
  font-size: 0.86rem;
  color: rgba(255, 243, 231, 0.85);
}

.hero h1 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(2.5rem, 7vw, 4.3rem);
  line-height: 1.06;
}

.hero-lead {
  margin: 1rem 0 0;
  max-width: 24rem;
  font-size: 1rem;
  line-height: 1.8;
  color: rgba(255, 244, 237, 0.92);
}

.hero-actions,
.final-actions {
  display: flex;
  gap: 0.8rem;
  margin-top: 1.6rem;
  flex-wrap: wrap;
}

.primary-btn,
.ghost-btn,
.seal-button,
.circle-btn,
.dot {
  transition:
    transform 180ms ease,
    box-shadow 180ms ease,
    background-color 180ms ease,
    opacity 180ms ease;
}

.primary-btn,
.ghost-btn {
  min-height: 3rem;
  padding: 0 1.2rem;
  border-radius: 999px;
  font-size: 0.96rem;
}

.primary-btn {
  color: #fffaf5;
  background: linear-gradient(135deg, var(--rose) 0%, #eb8f76 100%);
  box-shadow: 0 16px 32px rgba(140, 68, 85, 0.28);
}

.ghost-btn {
  color: #fff8f1;
  background: rgba(255, 245, 236, 0.12);
  border: 1px solid rgba(255, 240, 228, 0.36);
  backdrop-filter: blur(10px);
}

.primary-btn:active,
.ghost-btn:active,
.seal-button:active,
.circle-btn:active,
.dot:active {
  transform: scale(0.97);
}

.hero-hint {
  position: absolute;
  left: 1.25rem;
  bottom: 2.85rem;
  z-index: 2;
  font-size: 0.82rem;
  color: rgba(255, 239, 228, 0.82);
}

.icp-link {
  position: absolute;
  right: 0.9rem;
  bottom: calc(0.65rem + env(safe-area-inset-bottom));
  z-index: 3;
  max-width: calc(100vw - 1.8rem);
  padding: 0.34rem 0.58rem;
  color: rgba(75, 48, 64, 0.72);
  background: rgba(255, 248, 241, 0.66);
  border: 1px solid rgba(255, 248, 241, 0.52);
  border-radius: 999px;
  backdrop-filter: blur(8px);
  box-shadow: 0 8px 18px rgba(55, 20, 35, 0.12);
  font-size: 0.72rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}

.icp-link:focus-visible {
  outline: 2px solid rgba(255, 248, 241, 0.86);
  outline-offset: 4px;
  border-radius: 999px;
}

.band {
  position: relative;
  height: 100svh;
  min-height: 100svh;
  padding: 4.5rem 1.25rem;
  overflow: hidden;
  overflow-anchor: none;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.section-intro {
  width: min(100%, 34rem);
  margin: 0 auto 1.8rem;
  text-align: center;
}

.section-kicker {
  margin: 0 0 0.5rem;
  color: var(--rose);
  font-size: 0.84rem;
}

.section-intro h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(2rem, 6vw, 3rem);
  line-height: 1.14;
}

.section-copy {
  margin: 0.95rem auto 0;
  max-width: 29rem;
  font-size: 0.98rem;
  line-height: 1.8;
  color: rgba(75, 48, 64, 0.82);
}

.letter-band {
  background:
    radial-gradient(circle at top, rgba(255, 221, 191, 0.55), transparent 30%),
    linear-gradient(180deg, #fff7ef 0%, #fdebe0 100%);
}

.seal-button {
  display: grid;
  place-items: center;
  width: 8rem;
  height: 8rem;
  margin: 0 auto 1.6rem;
  padding: 1rem;
  border-radius: 50%;
  color: #fff8f1;
  background:
    radial-gradient(circle at 30% 30%, #f3c796 0%, #d58569 45%, #b85f61 100%);
  box-shadow: 0 18px 36px rgba(184, 95, 97, 0.25);
  text-align: center;
}

.seal-icon {
  display: block;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 2.35rem;
  line-height: 1;
  transform: translateY(-0.05rem);
}

.letter-paper {
  width: min(100%, 36rem);
  margin: 0 auto;
  padding: 0 1.4rem;
  max-height: 0;
  overflow: hidden;
  border-radius: 1.25rem;
  background: transparent;
  box-shadow: none;
  opacity: 0;
  transform: translateY(0.6rem);
  will-change: max-height, opacity, transform;
  transition:
    max-height 960ms cubic-bezier(0.2, 0.72, 0.2, 1),
    padding 900ms ease,
    opacity 820ms ease 120ms,
    transform 920ms cubic-bezier(0.2, 0.72, 0.2, 1);
}

.letter-paper.open {
  max-height: 40rem;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--shadow);
  opacity: 1;
  transform: translateY(0);
}

.letter-paper p {
  margin: 0 0 1rem;
  font-size: 1rem;
  line-height: 1.95;
}

.letter-character {
  display: inline-block;
  opacity: 0;
  filter: blur(5px);
  transform: translateY(0.18rem);
  transition:
    opacity 850ms ease,
    filter 850ms ease,
    transform 850ms ease;
}

.letter-character.visible {
  opacity: 1;
  filter: blur(0);
  transform: translateY(0);
}

.signature {
  display: flex;
  margin-top: 1.8rem;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  color: rgba(75, 48, 64, 0.82);
  visibility: hidden;
  opacity: 0;
  transform: translateY(0.35rem);
  transition:
    opacity 520ms ease,
    transform 520ms ease;
}

.signature.visible {
  visibility: visible;
  opacity: 1;
  transform: translateY(0);
}

.signature strong {
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.08rem;
  color: var(--rose-deep);
}

.moments-band {
  background:
    radial-gradient(circle at top right, rgba(255, 202, 182, 0.45), transparent 22%),
    linear-gradient(180deg, #fff3e6 0%, #fde0d8 100%);
}

.moment-viewer {
  width: min(100%, 38rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 0.8rem;
}

.circle-btn {
  width: 2.8rem;
  height: 2.8rem;
  border-radius: 50%;
  background: rgba(255, 249, 241, 0.78);
  color: var(--rose-deep);
  box-shadow: 0 10px 20px rgba(134, 79, 87, 0.14);
  font-size: 1.5rem;
}

.moment-frame {
  min-width: 0;
  overflow: hidden;
  border-radius: 1.4rem;
  box-shadow: var(--shadow);
  transform: translateZ(0);
}

.moment-track {
  display: flex;
  width: 100%;
  will-change: transform;
  transform: translate3d(0, 0, 0);
  transition: transform 680ms cubic-bezier(0.2, 0.72, 0.16, 1);
  backface-visibility: hidden;
}

.moment-card {
  flex: 0 0 100%;
  min-width: 100%;
  min-height: 20rem;
  padding: 1.5rem;
  border-radius: 1.4rem;
  background:
    linear-gradient(180deg, rgba(255, 251, 247, 0.96) 0%, rgba(255, 243, 233, 0.88) 100%);
  transform: translateZ(0);
  contain: layout paint;
}

.moment-no {
  margin: 0;
  color: rgba(207, 111, 127, 0.74);
  font-size: 0.92rem;
}

.moment-card h3,
.wish-card h3 {
  margin: 0.5rem 0 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.55rem;
}

.moment-text,
.wish-card p,
.final-question,
.response-line {
  line-height: 1.85;
}

.moment-text {
  margin: 1rem 0 0;
  font-size: 0.98rem;
}

.moment-note {
  margin: 1rem 0 0;
  color: rgba(140, 68, 85, 0.82);
  font-size: 0.92rem;
}

.dot-row {
  display: flex;
  justify-content: center;
  gap: 0.65rem;
  margin-top: 1.2rem;
}

.dot {
  width: 0.8rem;
  height: 0.8rem;
  border-radius: 50%;
  background: rgba(180, 115, 122, 0.24);
}

.dot.active {
  width: 2rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--rose) 0%, #ef9a7d 100%);
}

.photos-band {
  background:
    radial-gradient(circle at top left, rgba(191, 220, 210, 0.58), transparent 30%),
    linear-gradient(180deg, #f7fbf8 0%, #e9f2ef 100%);
}

.photo-grid {
  width: min(100%, 45rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.photo-memory {
  min-width: 0;
  margin: 0;
  overflow: hidden;
  border-radius: 0.5rem;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 32px rgba(45, 74, 68, 0.12);
}

.photo-frame {
  position: relative;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #dfe9e5;
}

.photo-zoom-button {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  padding: 0;
  overflow: hidden;
  background: transparent;
  cursor: zoom-in;
}

.photo-frame img,
.photo-placeholder {
  width: 100%;
  height: 100%;
}

.photo-frame img {
  object-fit: cover;
  transition:
    transform 420ms ease,
    filter 420ms ease;
}

.photo-zoom-button:active img,
.photo-zoom-button:hover img {
  transform: scale(1.045);
  filter: saturate(1.04);
}

.photo-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 255, 255, 0.88);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.82rem;
}

.photo-tone-1 .photo-placeholder {
  background: linear-gradient(145deg, #77998c, #d2b5a3);
}

.photo-tone-2 .photo-placeholder {
  background: linear-gradient(145deg, #668ba1, #d9a88e);
}

.photo-tone-3 .photo-placeholder {
  background: linear-gradient(145deg, #705a75, #c77f78);
}

.photo-tone-4 .photo-placeholder {
  background: linear-gradient(145deg, #608d85, #b5c6a8);
}

.photo-memory figcaption {
  padding: 0.85rem 1rem 1rem;
}

.photo-memory figcaption span {
  display: block;
  color: rgba(74, 111, 104, 0.7);
  font-size: 0.76rem;
}

.photo-memory figcaption strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.25rem;
  color: #355f59;
}

.photo-memory figcaption p {
  margin: 0.45rem 0 0;
  color: rgba(53, 77, 72, 0.76);
  font-size: 0.85rem;
  line-height: 1.6;
}

.promise-band {
  background:
    linear-gradient(180deg, rgba(255, 244, 231, 0.92), rgba(255, 250, 245, 0.95)),
    linear-gradient(120deg, rgba(252, 198, 173, 0.34), transparent 35%);
}

.wish-grid {
  width: min(100%, 42rem);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.wish-card {
  min-height: 12.5rem;
  padding: 1.25rem;
  border-radius: 1.25rem;
  background:
    linear-gradient(180deg, rgba(255, 252, 248, 0.95) 0%, rgba(255, 240, 225, 0.85) 100%);
  box-shadow: 0 18px 34px rgba(112, 58, 51, 0.1);
}

.wish-label {
  margin: 0;
  color: rgba(207, 111, 127, 0.76);
  font-size: 0.85rem;
}

.wish-card p {
  margin: 0.8rem 0 0;
  font-size: 0.95rem;
}

.future-band {
  background:
    radial-gradient(circle at top right, rgba(179, 205, 190, 0.45), transparent 28%),
    linear-gradient(180deg, #f8f5ee 0%, #edf3e9 100%);
}

.future-list {
  width: min(100%, 40rem);
  margin: 0 auto;
  border-top: 1px solid rgba(75, 102, 86, 0.18);
}

.future-item {
  display: grid;
  grid-template-columns: 3rem minmax(0, 1fr);
  gap: 1rem;
  align-items: start;
  padding: 1.15rem 0;
  border-bottom: 1px solid rgba(75, 102, 86, 0.18);
}

.future-no {
  color: rgba(75, 112, 93, 0.58);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1.05rem;
}

.future-item h3 {
  margin: 0;
  color: #3f6250;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.35rem;
}

.future-item p {
  margin: 0.4rem 0 0;
  color: rgba(54, 76, 64, 0.78);
  font-size: 0.9rem;
  line-height: 1.65;
}

.final-band {
  overflow: hidden;
  background:
    radial-gradient(circle at top, rgba(255, 214, 191, 0.72), transparent 32%),
    linear-gradient(180deg, #fff2e6 0%, #f8d7ca 100%);
  text-align: center;
}

.final-band .ghost-btn {
  color: var(--rose-deep);
  background: rgba(255, 250, 244, 0.7);
  border: 1px solid rgba(184, 95, 97, 0.26);
  backdrop-filter: none;
}

.final-question {
  width: min(100%, 30rem);
  margin: 0 auto;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 5.5vw, 2.6rem);
}

.response-line {
  min-height: 3.8rem;
  width: min(100%, 28rem);
  margin: 1rem auto 0;
  color: rgba(91, 53, 67, 0.86);
  font-size: 0.98rem;
}

.final-actions {
  justify-content: center;
}

.petal,
.spark {
  position: absolute;
  display: block;
  border-radius: 999px 999px 999px 0;
  transform: rotate(12deg);
}

.petal {
  background: linear-gradient(180deg, rgba(255, 199, 212, 0.88), rgba(248, 124, 150, 0.7));
  filter: blur(0.4px);
  opacity: 0.65;
  animation: petal-fall linear infinite;
}

.sparkle-layer {
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0;
  transition: opacity 200ms ease;
}

.sparkle-layer.show {
  opacity: 1;
}

.spark {
  width: 0.8rem;
  height: 0.8rem;
  background: radial-gradient(circle, rgba(255, 250, 230, 0.95) 0%, rgba(255, 201, 132, 0.2) 70%);
  border-radius: 50%;
  animation: sparkle-rise ease-in-out infinite;
}

.photo-modal {
  position: fixed;
  inset: 0;
  z-index: 55;
  display: grid;
  place-items: center;
  padding:
    calc(1rem + env(safe-area-inset-top))
    1rem
    calc(1rem + env(safe-area-inset-bottom));
  background: rgba(42, 24, 34, 0.82);
  backdrop-filter: blur(14px);
}

.photo-close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff8f1;
  background: rgba(255, 248, 241, 0.13);
  border: 1px solid rgba(255, 248, 241, 0.24);
  font-size: 1.75rem;
  line-height: 1;
}

.photo-lightbox {
  width: min(100%, 56rem);
  max-height: 100%;
  margin: 0;
  display: grid;
  gap: 0.9rem;
  color: #fff8f1;
}

.photo-lightbox-image {
  width: 100%;
  max-height: min(72svh, 42rem);
  object-fit: contain;
  border-radius: 0.65rem;
  background: rgba(255, 248, 241, 0.08);
  box-shadow: 0 24px 60px rgba(16, 8, 12, 0.34);
}

.photo-lightbox figcaption {
  text-align: center;
}

.photo-lightbox figcaption span {
  display: block;
  color: rgba(255, 220, 194, 0.82);
  font-size: 0.78rem;
}

.photo-lightbox figcaption strong {
  display: block;
  margin-top: 0.3rem;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.45rem;
}

.photo-lightbox figcaption p {
  width: min(100%, 32rem);
  margin: 0.45rem auto 0;
  color: rgba(255, 244, 237, 0.82);
  font-size: 0.9rem;
  line-height: 1.65;
}

.photo-modal-enter-active,
.photo-modal-leave-active {
  transition: opacity 240ms ease;
}

.photo-modal-enter-active .photo-lightbox,
.photo-modal-leave-active .photo-lightbox {
  transition:
    opacity 260ms ease,
    transform 320ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.photo-modal-enter-from,
.photo-modal-leave-to,
.photo-modal-enter-from .photo-lightbox,
.photo-modal-leave-to .photo-lightbox {
  opacity: 0;
}

.photo-modal-enter-from .photo-lightbox {
  transform: translateY(0.8rem) scale(0.97);
}

.gift-modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding:
    calc(1.25rem + env(safe-area-inset-top))
    1.25rem
    calc(1.25rem + env(safe-area-inset-bottom));
  overflow: hidden;
  background: rgba(48, 21, 34, 0.78);
  backdrop-filter: blur(12px);
}

.gift-close {
  position: absolute;
  top: calc(1rem + env(safe-area-inset-top));
  right: 1rem;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  color: #fff8f1;
  background: rgba(255, 248, 241, 0.12);
  border: 1px solid rgba(255, 248, 241, 0.24);
  font-size: 1.75rem;
  line-height: 1;
}

.gift-confetti-layer {
  position: absolute;
  inset: 0;
  z-index: 1;
  overflow: hidden;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.gift-confetti-layer.show {
  opacity: 1;
}

.gift-confetti {
  position: absolute;
  top: 14%;
  display: block;
  width: 0.48rem;
  height: 0.85rem;
  border-radius: 0.16rem;
  opacity: 0;
  transform: translate3d(0, -1rem, 0) rotate(0deg);
  animation: gift-confetti-fall ease-out forwards;
}

.gift-stage {
  position: relative;
  z-index: 2;
  width: min(100%, 32rem);
  max-height: 100%;
  overflow-y: auto;
  overscroll-behavior: contain;
  color: #fff8f1;
  text-align: center;
  scrollbar-width: none;
}

.gift-stage::-webkit-scrollbar {
  display: none;
}

.gift-kicker {
  margin: 0 0 0.5rem;
  color: rgba(255, 220, 194, 0.88);
  font-size: 0.84rem;
}

.gift-stage h2 {
  margin: 0;
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: clamp(1.8rem, 6vw, 2.6rem);
  line-height: 1.25;
}

.gift-tip {
  margin: 0.65rem 0 0;
  color: rgba(255, 244, 237, 0.8);
  font-size: 0.92rem;
  line-height: 1.65;
}

.scratch-card {
  position: relative;
  width: min(100%, 21rem);
  aspect-ratio: 16 / 10;
  margin: 1.25rem auto 0;
  overflow: hidden;
  border: 1px solid rgba(255, 236, 217, 0.34);
  border-radius: 0.6rem;
  background: rgba(255, 248, 241, 0.08);
  box-shadow: 0 20px 42px rgba(20, 8, 14, 0.32);
  transform: translateZ(0);
}

.scratch-prize,
.scratch-layer,
.gift-image,
.gift-placeholder {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.scratch-prize {
  background:
    radial-gradient(circle at top, rgba(255, 231, 192, 0.3), transparent 48%),
    rgba(255, 248, 241, 0.08);
}

.gift-image {
  box-sizing: border-box;
  object-fit: contain;
  padding: 0.55rem;
  filter: drop-shadow(0 18px 24px rgba(48, 18, 24, 0.24));
}

.gift-placeholder {
  display: grid;
  place-items: center;
  color: rgba(255, 244, 237, 0.82);
  background:
    linear-gradient(135deg, rgba(234, 139, 128, 0.44), rgba(142, 67, 86, 0.64)),
    rgba(255, 248, 241, 0.08);
  font-family: "STKaiti", "KaiTi", "Noto Serif SC", serif;
  font-size: 1.2rem;
}

.scratch-layer {
  z-index: 2;
  display: block;
  touch-action: none;
  cursor: crosshair;
  opacity: 1;
  filter: blur(0);
  transform: scale(1);
  transition:
    opacity 1s ease,
    filter 1s ease,
    transform 1s ease;
}

.scratch-layer.revealing {
  pointer-events: none;
  opacity: 0;
  filter: blur(8px);
  transform: scale(1.035);
}

.scratch-card.revealed {
  animation: scratch-reveal 1.15s cubic-bezier(0.2, 0.75, 0.2, 1);
}

.scratch-result {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(0.65rem);
  transition:
    max-height 1s ease,
    opacity 900ms ease 180ms,
    transform 900ms ease 180ms;
}

.scratch-result.show {
  max-height: 12rem;
  opacity: 1;
  transform: translateY(0);
}

.scratch-result p {
  width: min(100%, 25rem);
  margin: 0.85rem auto 1rem;
  color: rgba(255, 244, 237, 0.88);
  font-size: 0.92rem;
  line-height: 1.7;
}

.scratch-result .primary-btn {
  min-width: 12rem;
}

@keyframes scratch-reveal {
  0% {
    transform: scale(0.97);
    box-shadow: 0 12px 28px rgba(20, 8, 14, 0.24);
  }

  55% {
    transform: scale(1.025);
    box-shadow: 0 24px 52px rgba(255, 190, 142, 0.28);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 20px 42px rgba(20, 8, 14, 0.32);
  }
}

@keyframes gift-confetti-fall {
  0% {
    opacity: 0;
    transform: translate3d(0, -1.6rem, 0) rotate(0deg) scale(0.75);
  }

  12% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate3d(var(--confetti-drift), 13rem, 0) rotate(var(--confetti-rotate)) scale(1);
  }
}

.gift-modal-enter-active,
.gift-modal-leave-active {
  transition: opacity 280ms ease;
}

.gift-modal-enter-active .gift-stage,
.gift-modal-leave-active .gift-stage {
  transition:
    opacity 280ms ease,
    transform 360ms cubic-bezier(0.2, 0.75, 0.2, 1);
}

.gift-modal-enter-from,
.gift-modal-leave-to,
.gift-modal-enter-from .gift-stage,
.gift-modal-leave-to .gift-stage {
  opacity: 0;
}

.gift-modal-enter-from .gift-stage {
  transform: translateY(1rem) scale(0.96);
}

@keyframes petal-fall {
  0% {
    transform: translate3d(0, -8vh, 0) rotate(12deg);
    opacity: 0;
  }

  12% {
    opacity: 0.7;
  }

  100% {
    transform: translate3d(4vw, 104vh, 0) rotate(230deg);
    opacity: 0;
  }
}

@keyframes sparkle-rise {
  0% {
    transform: scale(0.2) translateY(2rem);
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  100% {
    transform: scale(1.3) translateY(-5rem);
    opacity: 0;
  }
}

@keyframes loading-pulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.86;
  }

  50% {
    transform: scale(1.08);
    opacity: 1;
  }
}

@keyframes record-spin {
  to {
    transform: rotate(360deg);
  }
}

@media (max-width: 640px) {
  .hero,
  .band {
    height: 100svh;
    min-height: 100svh;
    overflow: hidden;
  }

  .hero {
    padding: 0 1.25rem calc(4.5rem + env(safe-area-inset-bottom));
  }

  .band {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: calc(2rem + env(safe-area-inset-top)) 1.25rem
      calc(2rem + env(safe-area-inset-bottom));
  }

  .section-intro {
    margin-bottom: 1rem;
  }

  .section-kicker {
    margin-bottom: 0.35rem;
    font-size: 0.78rem;
  }

  .section-intro h2 {
    font-size: 1.85rem;
    line-height: 1.12;
  }

  .section-copy {
    margin-top: 0.65rem;
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .eyebrow {
    font-size: 0.82rem;
  }

  .hero h1 {
    font-size: 2.25rem;
  }

  .hero-lead {
    font-size: 0.94rem;
    line-height: 1.7;
  }

  .hero-actions,
  .final-actions {
    flex-direction: column;
    gap: 0.7rem;
    margin-top: 1.2rem;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
    min-height: 2.8rem;
  }

  .seal-button {
    width: 6.4rem;
    height: 6.4rem;
    margin-bottom: 1rem;
  }

  .seal-icon {
    font-size: 2rem;
  }

  .letter-paper.open {
    height: 23rem;
    max-height: 23rem;
    padding: 1rem;
    overflow: hidden;
  }

  .letter-paper p {
    margin-bottom: 0.7rem;
    font-size: 0.9rem;
    line-height: 1.72;
    min-height: 4.65rem;
  }

  .signature {
    margin-top: 0.8rem;
    font-size: 0.82rem;
  }

  .moment-viewer {
    grid-template-columns: minmax(0, 1fr);
  }

  .circle-btn {
    display: none;
  }

  .moment-frame {
    border-radius: 1rem;
  }

  .moment-card {
    min-height: 17rem;
    padding: 1.15rem;
    border-radius: 1rem;
  }

  .moment-card h3,
  .wish-card h3 {
    font-size: 1.28rem;
  }

  .moment-text {
    font-size: 0.9rem;
    line-height: 1.65;
  }

  .moment-note {
    font-size: 0.82rem;
    line-height: 1.6;
  }

  .dot-row {
    margin-top: 0.9rem;
  }

  .photo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .photo-frame {
    aspect-ratio: 4 / 3;
  }

  .photo-memory figcaption {
    min-height: 7.7rem;
    padding: 0.65rem 0.7rem 0.75rem;
  }

  .photo-memory figcaption span {
    font-size: 0.68rem;
  }

  .photo-memory figcaption strong {
    margin-top: 0.2rem;
    font-size: 1rem;
    line-height: 1.2;
  }

  .photo-memory figcaption p {
    margin-top: 0.35rem;
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .wish-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.65rem;
  }

  .wish-card {
    min-height: 9.6rem;
    padding: 0.85rem;
    border-radius: 1rem;
  }

  .wish-label {
    font-size: 0.76rem;
  }

  .wish-card p {
    margin-top: 0.55rem;
    font-size: 0.78rem;
    line-height: 1.55;
  }

  .future-list {
    border-top-color: rgba(75, 102, 86, 0.16);
  }

  .future-item {
    grid-template-columns: 2.2rem minmax(0, 1fr);
    gap: 0.65rem;
    padding: 0.8rem 0;
  }

  .future-no {
    font-size: 0.82rem;
  }

  .future-item h3 {
    font-size: 1.08rem;
  }

  .future-item p {
    margin-top: 0.25rem;
    font-size: 0.78rem;
    line-height: 1.5;
  }

  .final-question {
    font-size: 1.75rem;
    line-height: 1.8;
  }

  .response-line {
    min-height: 3.2rem;
    font-size: 0.92rem;
    line-height: 1.65;
  }

  .gift-stage h2 {
    font-size: 1.75rem;
  }

  .scratch-card {
    width: min(100%, 19rem);
    margin-top: 1rem;
  }

  .scratch-result p {
    margin-top: 0.7rem;
    margin-bottom: 0.8rem;
  }

  .signature {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (min-width: 760px) {
  .hero {
    padding-left: 2.4rem;
  }

  .hero-hint {
    left: 2.4rem;
  }

  .band {
    padding-left: 2.4rem;
    padding-right: 2.4rem;
  }
}
