:root {
  --bg: #fff8f8;
  --cream: #fff3ed;
  --soft: #ffe5ec;
  --pink: #ff9fbd;
  --pink-2: #ff6f9f;
  --hot: #f04c7f;
  --rose: #d83f71;
  --plum: #6f2554;
  --ink: #24313c;
  --muted: #6f737d;
  --white: #fff;
  --card: rgba(255, 255, 255, 0.76);
  --shadow: 0 24px 80px rgba(216, 63, 113, 0.2);
  --line: rgba(111, 37, 84, 0.12);
  --radius: 32px;
  --header: 74px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Quicksand", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at top left, rgba(255, 159, 189, 0.34), transparent 28rem),
    radial-gradient(circle at 80% 20%, rgba(255, 237, 130, 0.2), transparent 20rem),
    linear-gradient(135deg, #fff8f8 0%, #fff4f6 42%, #fff8ef 100%);
  overflow-x: hidden;
}

body::before,
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -3;
  pointer-events: none;
}

body::before {
  background-image:
    radial-gradient(circle, rgba(255, 111, 159, 0.15) 0 2px, transparent 2.6px),
    radial-gradient(circle, rgba(216, 63, 113, 0.1) 0 1.4px, transparent 2px);
  background-size: 64px 64px, 42px 42px;
  animation: driftBg 18s linear infinite;
}

body::after {
  background:
    linear-gradient(120deg, transparent 0 48%, rgba(255, 255, 255, 0.35) 50%, transparent 52% 100%);
  opacity: 0.7;
}

@keyframes driftBg {
  from {
    background-position: 0 0, 0 0;
  }

  to {
    background-position: 64px 64px, -42px 42px;
  }
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
}

button {
  font: inherit;
}

code {
  background: rgba(255, 159, 189, 0.18);
  border: 1px solid rgba(216, 63, 113, 0.12);
  padding: 0.14rem 0.42rem;
  border-radius: 10px;
  font-size: 0.92em;
}

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

.loader {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, #fff0f5, #ffe3ed 48%, #fff7dd);
  transition: opacity 0.7s ease, visibility 0.7s ease;
  overflow: hidden;
}

.loader.hide {
  opacity: 0;
  visibility: hidden;
}

.loader-card {
  width: min(92vw, 560px);
  padding: clamp(1.5rem, 5vw, 3.2rem);
  text-align: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 44px;
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
  position: relative;
}

.loader-card h1 {
  margin: 0.25rem 0 0.8rem;
  font-family: "Pacifico", cursive;
  color: var(--rose);
  font-size: clamp(2rem, 7vw, 4rem);
  line-height: 1.1;
}

.loader-card p {
  color: var(--plum);
  font-weight: 600;
}

.loader-heart {
  width: 88px;
  height: 88px;
  margin: 0 auto 1rem;
  display: grid;
  place-items: center;
  background: #fff;
  border-radius: 50%;
  font-size: 3rem;
  box-shadow: 0 16px 42px rgba(216, 63, 113, 0.22);
  animation: heartbeat 1.45s infinite;
}

.mini-title {
  text-transform: uppercase;
  letter-spacing: 0.36em;
  font-size: 0.78rem;
  margin: 0;
}

.bubble {
  position: absolute;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.5);
  filter: blur(0.5px);
  animation: bubbleFloat 7s ease-in-out infinite;
}

.b1 {
  width: 190px;
  height: 190px;
  left: 6vw;
  bottom: 12vh;
}

.b2 {
  width: 120px;
  height: 120px;
  right: 12vw;
  top: 18vh;
  animation-delay: -2s;
}

.b3 {
  width: 70px;
  height: 70px;
  right: 28vw;
  bottom: 18vh;
  animation-delay: -4s;
}

@keyframes heartbeat {

  0%,
  100% {
    transform: scale(1);
  }

  16% {
    transform: scale(1.12) rotate(-4deg);
  }

  28% {
    transform: scale(0.98) rotate(3deg);
  }

  44% {
    transform: scale(1.08);
  }
}

@keyframes bubbleFloat {

  0%,
  100% {
    transform: translateY(0) translateX(0);
  }

  50% {
    transform: translateY(-34px) translateX(18px);
  }
}

.site-header {
  height: var(--header);
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 clamp(1rem, 4vw, 4.5rem);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(20px);
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  font-weight: 800;
}

.logo span {
  width: 42px;
  height: 42px;
  border-radius: 15px;
  display: grid;
  place-items: center;
  background: linear-gradient(135deg, var(--pink), #ffe7a3);
  color: #fff;
  box-shadow: 0 12px 28px rgba(240, 76, 127, 0.22);
  font-family: "Pacifico", cursive;
}

.logo small {
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-size: 0.72rem;
  color: var(--plum);
}

.nav-links {
  display: flex;
  gap: clamp(0.7rem, 2.4vw, 1.8rem);
  align-items: center;
}

.nav-links a {
  font-weight: 800;
  color: var(--ink);
  position: relative;
  padding: 0.55rem 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  border-radius: 999px;
  background: var(--pink-2);
  transform: scaleX(0);
  transition: transform 0.25s ease;
}

.nav-links a:hover::after {
  transform: scaleX(1);
}

.menu-toggle {
  display: none;
  border: 0;
  background: transparent;
  font-size: 1.7rem;
  color: var(--plum);
}

.section {
  min-height: 100svh;
  padding: calc(var(--header) + 3rem) clamp(1rem, 5vw, 5.8rem) 4.2rem;
  position: relative;
  overflow: hidden;
}

.snap-section {
  scroll-margin-top: var(--header);
}

.hero {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(300px, 1.1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 7rem);
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.sticker {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0.8rem 0.38rem;
  background: #fff7d1;
  color: #b96e16;
  border: 2px solid rgba(184, 110, 22, 0.18);
  border-radius: 999px;
  box-shadow: 0 10px 0 rgba(184, 110, 22, 0.18);
  font-family: "Chewy", cursive;
  font-size: clamp(1.4rem, 4vw, 2.4rem);
  text-shadow: 0 2px #fff;
  transform: rotate(-5deg);
}

.sticker.small {
  font-size: clamp(1.2rem, 2.5vw, 2rem);
  margin-bottom: 1rem;
}

.floaty {
  animation: floaty 3.2s ease-in-out infinite;
}

.rotate-left {
  transform: rotate(-5deg);
}

.rotate-right {
  transform: rotate(4deg);
}

@keyframes floaty {

  0%,
  100% {
    transform: rotate(-5deg) translateY(0);
  }

  50% {
    transform: rotate(-2deg) translateY(-12px);
  }
}

.eyebrow {
  margin: 3rem 0 1rem;
  font-weight: 800;
  letter-spacing: 0.38em;
  color: var(--muted);
  font-size: clamp(1rem, 2vw, 1.3rem);
}

.hero-title {
  margin: 0;
  font-family: "Fredoka", sans-serif;
  font-weight: 700;
  font-size: clamp(4.2rem, 10vw, 9.7rem);
  line-height: 0.92;
  letter-spacing: -0.06em;
  color: var(--ink);
}

.hero-title span {
  color: var(--rose);
  letter-spacing: -0.14em;
}

.hero-subtitle {
  min-height: 3.4rem;
  width: min(680px, 100%);
  color: var(--plum);
  font-size: clamp(1.05rem, 2vw, 1.4rem);
  font-weight: 700;
  line-height: 1.6;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  margin-top: 1.4rem;
}

.primary-btn,
.ghost-btn {
  border: 0;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 52px;
  padding: 0 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  letter-spacing: 0.04em;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.primary-btn {
  color: #fff;
  background: linear-gradient(135deg, var(--hot), var(--pink));
  box-shadow: 0 16px 32px rgba(240, 76, 127, 0.28);
}

.ghost-btn {
  color: var(--plum);
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid var(--line);
  box-shadow: 0 12px 28px rgba(111, 37, 84, 0.08);
}

.primary-btn:hover,
.ghost-btn:hover {
  transform: translateY(-3px) rotate(-1deg);
}

.primary-btn:active,
.ghost-btn:active {
  transform: translateY(0) scale(0.98);
}

.hero-art {
  position: relative;
  min-height: min(72vh, 680px);
  display: grid;
  place-items: center;
}

.frame {
  position: absolute;
  border: 18px solid rgba(255, 255, 255, 0.92);
  border-radius: 8px;
  width: 82%;
  height: 78%;
  box-shadow: 0 30px 80px rgba(111, 37, 84, 0.1);
}

.frame-one {
  transform: translate(-4%, -3%);
}

.frame-two {
  transform: translate(4%, 5%);
  border-color: rgba(255, 255, 255, 0.5);
}

.rose-bouquet {
  position: relative;
  z-index: 2;
  width: min(72%, 540px);
  filter: drop-shadow(0 30px 45px rgba(111, 37, 84, 0.2));
  transform-origin: bottom center;
  animation: bouquetSway 5s ease-in-out infinite;
}

@keyframes bouquetSway {

  0%,
  100% {
    transform: rotate(-2deg);
  }

  50% {
    transform: rotate(3deg) translateY(-8px);
  }
}

.sparkle {
  position: absolute;
  z-index: 4;
  font-size: clamp(2rem, 4vw, 4rem);
  color: var(--hot);
  animation: sparklePulse 2.2s ease-in-out infinite;
}

.s1 {
  top: 18%;
  left: 8%;
}

.s2 {
  bottom: 18%;
  right: 12%;
  animation-delay: -0.8s;
}

.s3 {
  top: 9%;
  right: 18%;
  animation-delay: -1.6s;
  color: var(--plum);
}

@keyframes sparklePulse {

  0%,
  100% {
    transform: scale(0.8) rotate(0deg);
    opacity: 0.55;
  }

  50% {
    transform: scale(1.22) rotate(12deg);
    opacity: 1;
  }
}

.scroll-cue {
  position: absolute;
  right: 2rem;
  bottom: 2rem;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 2.4rem;
  background: rgba(255, 255, 255, 0.72);
  color: var(--plum);
  box-shadow: 0 18px 32px rgba(111, 37, 84, 0.14);
  animation: bounce 1.8s infinite;
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(9px);
  }
}

.section-heading {
  max-width: 850px;
  margin-bottom: clamp(2rem, 4vw, 3.5rem);
}

.section-heading.center {
  margin-inline: auto;
  text-align: center;
}

.section-heading h2,
.gift-text h2,
.closing-card h2 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(2.4rem, 5.7vw, 5.2rem);
  line-height: 0.98;
  letter-spacing: -0.06em;
  margin: 0 0 1rem;
  color: var(--ink);
}

.section-heading p:not(.sticker),
.gift-text p,
.closing-card p {
  color: var(--plum);
  font-size: clamp(1rem, 1.5vw, 1.22rem);
  line-height: 1.75;
  font-weight: 650;
}

.letter-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.34), rgba(255, 229, 236, 0.36));
}

.letter-preview {
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(280px, 1.05fr);
  gap: clamp(1.5rem, 4vw, 3rem);
  align-items: stretch;
}

.letter-cover,
.photo-card,
.memory-card,
.crossword-card,
.closing-card,
.gift-shell {
  background: var(--card);
  border: 1px solid rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.letter-cover {
  border-radius: 38px;
  padding: clamp(1.4rem, 4vw, 3rem);
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  min-height: 440px;
  position: relative;
  overflow: hidden;
}

.letter-cover::before {
  content: "";
  position: absolute;
  width: 300px;
  height: 300px;
  background: radial-gradient(circle, rgba(255, 159, 189, 0.34), transparent 70%);
  right: -90px;
  top: -90px;
}

.letter-cover img {
  width: 132px;
  margin-bottom: 1.2rem;
  filter: drop-shadow(0 16px 26px rgba(111, 37, 84, 0.18));
}

.letter-cover h3 {
  font-size: clamp(2rem, 4vw, 3.7rem);
  margin: 0 0 0.8rem;
  font-family: "Pacifico", cursive;
  color: var(--rose);
}

.letter-cover p {
  font-size: 1.1rem;
  line-height: 1.7;
  color: var(--plum);
  font-weight: 700;
}

.photo-card {
  min-height: 440px;
  border-radius: 38px;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
}

.photo-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
}

.photo-card::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 12px solid rgba(255, 255, 255, 0.7);
  border-radius: 28px;
  pointer-events: none;
}

.photo-placeholder {
  display: none;
  padding: 2rem;
  text-align: center;
  color: var(--plum);
  font-weight: 800;
  line-height: 1.65;
  position: relative;
  z-index: 2;
}

.photo-placeholder span {
  display: block;
  font-size: 3.4rem;
  margin-bottom: 0.8rem;
}

.missing-photo {
  display: none !important;
}

.missing-photo+.photo-placeholder {
  display: block;
}

.coupons-section {
  background: linear-gradient(135deg, rgba(255, 225, 235, 0.38), rgba(255, 251, 235, 0.52));
}

.coupon-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: clamp(1rem, 3vw, 2.2rem);
}

.coupon {
  min-height: 208px;
  border-radius: 24px;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr 116px;
  position: relative;
  box-shadow: 0 24px 48px rgba(111, 37, 84, 0.12);
  transform: translateY(0) rotate(var(--tilt, 0deg));
  transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}

.coupon:hover {
  transform: translateY(-8px) rotate(calc(var(--tilt, 0deg) * -1));
  box-shadow: 0 34px 70px rgba(111, 37, 84, 0.18);
}

.coupon-main {
  padding: clamp(1.2rem, 3vw, 2rem);
  background: var(--coupon-main, #f35c76);
  color: #fff;
  position: relative;
}

.coupon-main::after {
  content: "";
  position: absolute;
  right: -13px;
  top: 0;
  bottom: 0;
  border-right: 3px dashed rgba(255, 255, 255, 0.6);
}

.coupon-kicker {
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 0.8rem;
  opacity: 0.9;
}

.coupon h3 {
  font-family: "Fredoka", sans-serif;
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  line-height: 1;
  margin: 1.1rem 0 0.8rem;
  text-transform: uppercase;
}

.coupon p {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
  opacity: 0.94;
}

.coupon-stub {
  background: var(--coupon-stub, #16384b);
  color: #fff;
  display: grid;
  place-items: center;
  position: relative;
  padding: 1rem;
}

.coupon-stub::before,
.coupon-stub::after {
  content: "";
  position: absolute;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--bg);
  left: -21px;
}

.coupon-stub::before {
  top: -21px;
}

.coupon-stub::after {
  bottom: -21px;
}

.coupon-number {
  writing-mode: vertical-rl;
  text-orientation: mixed;
  font-weight: 900;
  letter-spacing: 0.18em;
  font-size: 1.2rem;
}

.claim-btn {
  position: absolute;
  left: 1.3rem;
  bottom: 1.2rem;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--plum);
  font-weight: 900;
  padding: 0.58rem 1rem;
  cursor: pointer;
}

.coupon.claimed {
  filter: saturate(0.88);
}

.coupon.claimed::after {
  content: "CLAIMED 💗";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.48);
  font-family: "Fredoka", sans-serif;
  font-weight: 900;
  font-size: clamp(1.8rem, 5vw, 3rem);
  color: var(--rose);
  transform: rotate(-12deg);
  text-shadow: 0 2px #fff;
}

.gift-section {
  display: grid;
  place-items: center;
  background:
    radial-gradient(circle at 20% 50%, rgba(255, 159, 189, 0.26), transparent 22rem),
    radial-gradient(circle at 80% 45%, rgba(255, 224, 126, 0.28), transparent 20rem);
}

.gift-shell {
  width: min(1120px, 100%);
  border-radius: 44px;
  padding: clamp(1.5rem, 5vw, 4.4rem);
  display: grid;
  grid-template-columns: minmax(280px, 0.92fr) minmax(260px, 0.85fr);
  gap: clamp(1.5rem, 4vw, 4rem);
  align-items: center;
  position: relative;
  overflow: hidden;
}

.gift-shell::before {
  content: "";
  position: absolute;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  right: -110px;
  top: -110px;
  background: rgba(255, 159, 189, 0.22);
}

.gift-box {
  width: min(320px, 76vw);
  height: 280px;
  border: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  margin: auto;
  animation: giftWiggle 2.8s ease-in-out infinite;
  filter: drop-shadow(0 28px 36px rgba(111, 37, 84, 0.22));
}

@keyframes giftWiggle {

  0%,
  100% {
    transform: rotate(0deg);
  }

  8% {
    transform: rotate(-4deg);
  }

  16% {
    transform: rotate(4deg);
  }

  24% {
    transform: rotate(0deg);
  }
}

.gift-body,
.gift-lid,
.gift-ribbon,
.gift-bow {
  position: absolute;
  display: block;
}

.gift-body {
  left: 38px;
  right: 38px;
  bottom: 20px;
  height: 160px;
  border-radius: 16px 16px 24px 24px;
  background: linear-gradient(135deg, #ff6f9f, #f9abc4);
}

.gift-lid {
  left: 18px;
  right: 18px;
  top: 72px;
  height: 70px;
  border-radius: 18px;
  background: linear-gradient(135deg, #ff8cb4, #ff5d91);
  transform-origin: 12% 100%;
  transition: transform 0.55s ease;
}

.gift-ribbon.vertical {
  top: 72px;
  bottom: 20px;
  left: 50%;
  width: 38px;
  transform: translateX(-50%);
  background: #fff5c4;
  border-radius: 12px;
}

.gift-ribbon.horizontal {
  left: 38px;
  right: 38px;
  top: 156px;
  height: 34px;
  background: #fff5c4;
  border-radius: 12px;
}

.gift-bow {
  width: 84px;
  height: 60px;
  top: 28px;
  background: #fff5c4;
  border-radius: 50% 50% 44% 56%;
}

.gift-bow.left {
  left: 72px;
  transform: rotate(28deg);
}

.gift-bow.right {
  right: 72px;
  transform: rotate(-28deg);
}

.gift-box.open .gift-lid {
  transform: rotate(-18deg) translate(-16px, -50px);
}

.gift-reveal {
  grid-column: 1 / -1;
  background: rgba(255, 255, 255, 0.78);
  border: 1px solid rgba(255, 255, 255, 0.88);
  border-radius: 30px;
  padding: 1.5rem;
  animation: popIn 0.45s ease both;
}

.gift-reveal h3 {
  font-size: 1.8rem;
  color: var(--rose);
  margin: 0 0 0.8rem;
  font-family: "Fredoka", sans-serif;
}

.gift-reveal li {
  margin: 0.6rem 0;
  font-weight: 750;
  color: var(--plum);
}

@keyframes popIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.97);
  }

  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.memories-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 241, 214, 0.36));
}

.memory-gallery {
  display: grid;
  grid-template-columns: 1.08fr 0.92fr;
  grid-auto-rows: 310px;
  gap: clamp(1rem, 3vw, 2rem);
}

.memory-card {
  border-radius: 34px;
  overflow: hidden;
  padding: 1.2rem;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  min-height: 290px;
}

.memory-card.tall {
  grid-row: span 2;
}

.memory-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.memory-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(36, 49, 60, 0.74), rgba(36, 49, 60, 0.08) 65%);
  pointer-events: none;
}

.memory-card h3,
.memory-card p {
  position: relative;
  z-index: 2;
  color: #fff;
}

.memory-card h3 {
  margin: 0 0 0.3rem;
  font-family: "Pacifico", cursive;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
}

.memory-card p {
  margin: 0;
  font-weight: 700;
  line-height: 1.55;
}

.memory-card .photo-placeholder {
  color: var(--plum);
}

.memory-card:has(.missing-photo)::after {
  display: none;
}

.memory-card:has(.missing-photo) h3,
.memory-card:has(.missing-photo) p {
  color: var(--plum);
}

/* Video section: responsive 16:9 container */
.video-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(255, 241, 214, 0.16));
  overflow: visible;
}

.video-wrapper {
  width: min(calc(100vw - 2rem), calc((100svh - var(--header) - 15rem) * 16 / 9));
  max-width: 1200px;
  margin: 0 auto 2.4rem;
  padding: 0;
}

.responsive-video {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  max-height: calc(100svh - var(--header) - 15rem);
  background: #000;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, 0.88);
}

.responsive-video video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.video-section {
  padding-left: 1rem;
  padding-right: 1rem;
}

.timeline-section {
  background: linear-gradient(135deg, rgba(255, 229, 236, 0.38), rgba(255, 255, 255, 0.5));
}

.wish-cloud {
  display: grid;
  grid-template-columns: repeat(4, minmax(160px, 1fr));
  gap: 1rem;
}

.wish-pill {
  min-height: 120px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 1.2rem;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 38px rgba(111, 37, 84, 0.08);
  font-weight: 900;
  color: var(--plum);
  transition: transform 0.2s ease;
}

.wish-pill:hover {
  transform: translateY(-6px) rotate(-1deg);
}

.wish-pill span {
  display: block;
  font-size: 2rem;
  margin-bottom: 0.4rem;
}

.crossword-section {
  background: linear-gradient(180deg, rgba(255, 241, 214, 0.32), rgba(255, 229, 236, 0.45));
}

.crossword-card {
  max-width: 900px;
  border-radius: 38px;
  padding: clamp(1.2rem, 4vw, 2.5rem);
}

.puzzle-list {
  display: grid;
  gap: 1rem;
  margin-bottom: 1.4rem;
}

.puzzle-item {
  display: grid;
  grid-template-columns: 1.1fr minmax(180px, 260px);
  gap: 1rem;
  align-items: center;
  padding: 1rem;
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(111, 37, 84, 0.08);
}

.puzzle-item label {
  font-weight: 800;
  color: var(--plum);
  line-height: 1.55;
}

.puzzle-item input {
  width: 100%;
  min-height: 48px;
  border: 2px solid rgba(216, 63, 113, 0.16);
  border-radius: 16px;
  padding: 0 1rem;
  outline: none;
  font-weight: 900;
  text-transform: uppercase;
  color: var(--ink);
  background: rgba(255, 255, 255, 0.9);
}

.puzzle-item input:focus {
  border-color: var(--pink-2);
  box-shadow: 0 0 0 4px rgba(255, 111, 159, 0.14);
}

.puzzle-status {
  font-weight: 900;
  color: var(--rose);
  min-height: 1.6rem;
}

.closing-section {
  display: grid;
  place-items: center;
  min-height: 90svh;
}

.closing-card {
  width: min(780px, 100%);
  border-radius: 46px;
  padding: clamp(1.5rem, 6vw, 4rem);
  text-align: center;
}

.closing-card img {
  width: 120px;
  margin: 0 auto 1.2rem;
}

.closing-card .eyebrow {
  margin: 0 0 1rem;
}

.modal {
  width: min(92vw, 680px);
  max-height: min(86svh, 850px);
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: transparent;
  box-shadow: var(--shadow);
  overflow: visible;
}

.modal::backdrop {
  background: rgba(36, 49, 60, 0.55);
  backdrop-filter: blur(8px);
}

.modal-close {
  position: absolute;
  right: 1rem;
  top: 0.8rem;
  z-index: 2;
  width: 38px;
  height: 38px;
  border: 0;
  border-radius: 50%;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.65);
  color: var(--plum);
  font-size: 1.5rem;
  font-weight: 900;
}

.letter-paper {
  max-height: min(86svh, 850px);
  overflow: auto;
  padding: clamp(1.2rem, 5vw, 3rem);
  border-radius: 28px;
  background:
    linear-gradient(rgba(255, 255, 255, 0.74), rgba(255, 255, 255, 0.74)),
    repeating-linear-gradient(#ffb7cd 0 1px, transparent 1px 36px),
    #ffd3df;
  color: #26151f;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.95);
}

.letter-paper h2 {
  font-family: "Pacifico", cursive;
  color: var(--rose);
  font-size: clamp(2rem, 5vw, 3.2rem);
  margin: 0.2rem 0 0.8rem;
}

.letter-paper p {
  font-weight: 650;
  line-height: 1.8;
}

.letter-paper .letter-intro {
  font-weight: 800;
  color: var(--plum);
}

.letter-paper hr {
  border: 0;
  height: 2px;
  background: rgba(111, 37, 84, 0.12);
  margin: 1.6rem 0;
}

.signature {
  font-family: "Pacifico", cursive;
  color: var(--rose);
  font-size: 1.35rem;
}

.floating {
  position: fixed;
  right: 1.2rem;
  z-index: 70;
  width: 56px;
  height: 56px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.8);
  color: var(--plum);
  box-shadow: 0 16px 36px rgba(111, 37, 84, 0.16);
  backdrop-filter: blur(16px);
  cursor: pointer;
  font-weight: 900;
  font-size: 1.3rem;
}

.music {
  bottom: 1.2rem;
}

.top {
  bottom: 5.3rem;
  transform: translateY(110px);
  opacity: 0;
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.top.show {
  transform: translateY(0);
  opacity: 1;
}

.music.playing {
  background: linear-gradient(135deg, var(--hot), var(--pink));
  color: #fff;
  animation: heartbeat 1.6s infinite;
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 1.2rem;
  transform: translate(-50%, 120px);
  opacity: 0;
  z-index: 120;
  max-width: min(92vw, 520px);
  padding: 0.9rem 1.1rem;
  border-radius: 999px;
  background: rgba(36, 49, 60, 0.92);
  color: #fff;
  text-align: center;
  font-weight: 800;
  box-shadow: 0 18px 44px rgba(36, 49, 60, 0.24);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.toast.show {
  transform: translate(-50%, 0);
  opacity: 1;
}

.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 960px) {
  :root {
    --header: 68px;
  }

  .menu-toggle {
    display: block;
  }

  .nav-links {
    position: fixed;
    top: var(--header);
    left: 1rem;
    right: 1rem;
    display: grid;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.94);
    border: 1px solid var(--line);
    border-radius: 24px;
    box-shadow: var(--shadow);
    transform: translateY(-18px);
    opacity: 0;
    pointer-events: none;
    transition: 0.22s ease;
  }

  .nav-links.open {
    transform: translateY(0);
    opacity: 1;
    pointer-events: auto;
  }

  .hero,
  .letter-preview,
  .gift-shell {
    grid-template-columns: 1fr;
  }

  .hero {
    padding-top: calc(var(--header) + 2rem);
  }

  .hero-art {
    min-height: 520px;
    order: -1;
  }

  .rose-bouquet {
    width: min(72%, 420px);
  }

  .eyebrow {
    margin-top: 1.2rem;
  }

  .coupon-grid {
    grid-template-columns: 1fr;
  }

  .memory-gallery {
    grid-template-columns: 1fr;
    grid-auto-rows: 330px;
  }

  .memory-card.tall {
    grid-row: span 1;
  }

  .wish-cloud {
    grid-template-columns: repeat(2, minmax(140px, 1fr));
  }

  .video-wrapper {
    padding: 0;
    width: min(calc(100vw - 1.5rem), calc((100svh - var(--header) - 15rem) * 16 / 9));
  }

  .responsive-video {
    border-radius: 16px;
  }
}

@media (max-width: 620px) {
  .section {
    padding-inline: 1rem;
  }

  .hero-art {
    min-height: 430px;
  }

  .frame {
    border-width: 10px;
  }

  .hero-title {
    font-size: clamp(3.8rem, 21vw, 6rem);
  }

  .hero-actions {
    align-items: stretch;
  }

  .primary-btn,
  .ghost-btn {
    width: 100%;
  }

  .coupon {
    grid-template-columns: 1fr 76px;
    min-height: 230px;
  }

  .coupon-number {
    font-size: 0.95rem;
  }

  .claim-btn {
    left: 1rem;
    bottom: 1rem;
  }

  .puzzle-item {
    grid-template-columns: 1fr;
  }

  .video-wrapper {
    width: min(calc(100vw - 1.5rem), calc((100svh - var(--header) - 15rem) * 16 / 9));
    margin: 0 auto 1.2rem;
  }

  .responsive-video {
    border-radius: 14px;
  }

  .wish-cloud {
    grid-template-columns: 1fr;
  }

  .floating {
    right: 0.8rem;
    width: 50px;
    height: 50px;
  }

  .scroll-cue {
    right: 1rem;
    bottom: 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }
}