/* A little spotlight for the two moments that deserve it most. */
.moment-shade { position: fixed; inset: 0; z-index: 130; background: #34202b9e; opacity: 0; pointer-events: none; transition: opacity .65s ease; }
.proposal-spotlight .moment-shade, .final-spotlight .moment-shade { opacity: 1; }
.proposal-spotlight #storyChapter4 { z-index: 141; box-shadow: 0 0 0 5px #f7dfb45c, 0 20px 70px #29131d55; }
.proposal-spotlight .story-us-photos figure:first-child { transform: rotate(-3deg) scale(1.18); }
.story-us-photos figure { transition: transform 1s ease; }
.final-spotlight #finalMessageCard { position: relative; z-index: 141; }
.final-cover.is-introducing > :not(.final-intro) { display: none; }
.final-intro { padding: 16px 12px; animation: moment-arrive .7s ease both; }
.final-intro-heart { display: block; font: 52px/1.2 var(--serif); color: var(--rose); margin-bottom: 20px; }
.final-intro p { color: var(--ink); font: 400 clamp(24px,4vw,35px)/1.5 var(--serif); max-width: 580px; margin: auto; }
.final-intro .button { margin-top: 24px; }
#finalPlayHint { margin: 7px 10px 14px; color: var(--rose); }
.is-wishing .cake-status { color: var(--rose); }
.is-wishing .cake-scene { filter: drop-shadow(0 0 25px #efbdcf99); transition: filter .5s; }
#blowCandles:disabled { opacity: .8; }
@keyframes moment-arrive { from { opacity: 0; transform: translateY(9px); } to { opacity: 1; transform: translateY(0); } }
@media (prefers-reduced-motion: reduce) {
  .moment-shade, .story-us-photos figure, .is-wishing .cake-scene { transition: none; }
  .final-intro { animation: none; }
  .proposal-spotlight .story-us-photos figure:first-child { transform: none; }
}

/* Consistent chapter spacing and content-aligned navigation on every screen. */
html { scroll-padding-top: 24px; }
main > section { scroll-margin-top: 0; }
.section-space { padding-block: clamp(42px, 5vw, 64px); }
main > section > *, .page-width > *, .hero-copy, .cake-copy, .letter-layout > *, .soundtrack-layout > * { min-width: 0; }
.section-heading { margin-bottom: 32px; }
.section-heading p { margin-top: 14px; }
.section-next { margin-top: 30px; padding-inline: 0; }
.chapter-link { width: 100%; }
.chapter-link > span:first-child { min-width: 0; }
.scrapbook-notes { margin-top: 36px; }
.distance-section { column-gap: 40px; row-gap: 22px; }
.story-player { padding: 18px 24px; }
.story-stage { min-height: 0; }
.story-chapter { min-height: 260px; padding: 25px 32px; }
.story-chapter h3 { margin-block: 10px 12px; }
.story-chapter-number { margin-bottom: 10px; }
.story-chapter-note { margin-top: 12px; }
.story-proposal { min-height: 0; padding: 25px 32px; }
.story-proposal h3 { font-size: 38px; }
.story-controls { margin-top: 14px; }
.story-us-photos { margin-top: 18px; }
#storyTogether { margin-top: 20px; }
.final-video-wrap video { width: auto; max-width: 100%; height: auto; max-height: 70svh; }
@media (max-width: 760px) {
  .section-space { padding-block: 40px; }
  .page-width { padding-inline: 22px; }
  .section-heading { margin-bottom: 26px; }
  .section-next { margin-top: 28px; }
  .story-player { padding: 16px; }
  .story-chapter { min-height: 0; padding: 22px; }
  .story-proposal { padding: 25px 20px; }
  .story-proposal h3 { font-size: 35px; }
  .story-stage { min-height: 0; }
  .story-us-photos { gap: 24px; }
  .album-tabs { flex-wrap: wrap; justify-content: center; }
  .hero { padding-top: 36px; padding-bottom: 40px; }
  .final-message-card { width: 100%; margin-top: 26px; }
  .final-video-tools { flex-wrap: wrap; }
  #birthday .button { max-width: 100%; white-space: normal; }
}
@media (max-width: 380px) {
  .page-width { padding-inline: 18px; }
  .story-chapter { padding-inline: 16px; }
  .chapter-link { gap: 12px; padding-inline: 16px; }
  .chapter-link strong { font-size: 15px; }
}

/* Small moments across the miles. */
.hold-hug { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; margin-top: 24px; }
.hold-heart { --hug-fill: 0%; position: relative; width: 136px; height: 136px; border: 1px solid #ebc6ce; border-radius: 50%; background: #fff7f8; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; box-shadow: 0 8px 30px #c65c7920; }
.hold-heart span { position: absolute; inset: 0; display: grid; place-items: center; font: 100px/1 Georgia,serif; }
.heart-outline { color: #eed5dc; }
.heart-fill { color: #bd5572; clip-path: inset(calc(100% - var(--hug-fill)) 0 0 0); }
.hold-heart.is-holding { box-shadow: 0 0 0 10px #efd2dc55; }
.hold-heart.hug-received { box-shadow: 0 0 0 12px #efd2dc55, 0 8px 30px #c65c7933; }
.hold-heart:focus-visible,.hug-tap:focus-visible { outline: 3px solid #a74665; outline-offset: 5px; }
.hug-tap { background: none; border: 0; color: #8c4b60; padding: 8px; text-decoration: underline; cursor: pointer; font: inherit; font-size: 12px; }
.secret-hint { display: block; text-align: center; padding: 0 8px 12px; color: #975169; font-size: 11px; }
.photo-secret { text-align: center; color: #f6d2de; font-family: Georgia,serif; font-size: clamp(17px,3vw,23px); line-height: 1.5; max-width: 580px; margin: 16px auto 4px; padding: 0 24px; }
.final-after h3 { font: clamp(32px,6vw,52px)/1.15 Georgia,serif; color: #8d405a; margin: 16px 0; }
.final-after .button { margin: 12px 6px; }
.final-after .small-note { max-width: 330px; margin: 8px auto; }

.welcome-moment #unlockForm,.welcome-moment #passwordHint,.welcome-moment .lock-footer { display: none; }
.welcome-moment .unlock-success { display: block; padding: 26px 0; font-size: clamp(26px,5vw,36px); }
.birthday-keepsake { margin: 26px 0; padding: 22px; border: 1px solid #ebc6ce; border-radius: 16px; background: #fff9f7; text-align: center; }
.birthday-keepsake img { display: block; width: min(100%,210px); height: auto; margin: 18px auto; box-shadow: 0 8px 24px #8d405a22; }
.birthday-keepsake .small-note { margin-top: 14px; }
.moment-replays { margin: 36px auto 20px; border-top: 1px solid #ebc6ce; padding-top: 24px; max-width: 650px; }
.final-after .moment-replays h3 { font-size: clamp(25px,4vw,32px); }
.moment-replays > div { display:flex; justify-content:center; flex-wrap:wrap; gap:8px; }
.moment-replays .button { margin: 0; }
