:root {
  --rose: #e77b96;
  --rose-soft: #f7dbe2;
  --cream: #fff8ef;
  --wine: #7a2941;
  --plum: #6d4a76;
  --lilac: #d9c6f1;
  --ink: #3c2430;
  --muted: #765b66;
  --glass: rgba(255, 255, 255, 0.54);
  --glass-strong: rgba(255, 255, 255, 0.72);
  --shadow: 0 24px 70px rgba(122, 41, 65, 0.18);
  --radius: 28px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  min-width: 320px;
  margin: 0;
  color: var(--ink);
  font-family: "Inter", system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 18% 8%, rgba(255, 255, 255, 0.95) 0 12%, transparent 28%),
    radial-gradient(circle at 90% 10%, rgba(217, 198, 241, 0.62) 0 14%, transparent 30%),
    linear-gradient(145deg, #fff8ef 0%, #f8d8df 38%, #ead9fb 72%, #fff3e1 100%);
  overflow-x: hidden;
}

body::before {
  position: fixed;
  inset: 0;
  z-index: -2;
  content: "";
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.24) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.18) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.4), transparent 80%);
}

main {
  position: relative;
  z-index: 1;
}

.ambient {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
}

.sparkle,
.heart {
  position: absolute;
  display: grid;
  place-items: center;
  opacity: 0.54;
  animation: float 8s ease-in-out infinite;
}

.sparkle {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 0 22px rgba(255, 255, 255, 0.9);
}

.heart {
  color: rgba(122, 41, 65, 0.22);
  font-size: 34px;
  font-family: "Cormorant Garamond", serif;
}

.sparkle-one {
  top: 12%;
  left: 14%;
}

.sparkle-two {
  top: 42%;
  right: 10%;
  animation-delay: -2s;
}

.sparkle-three {
  bottom: 16%;
  left: 22%;
  animation-delay: -4s;
}

.heart-one {
  top: 18%;
  right: 14%;
  animation-delay: -1s;
}

.heart-two {
  top: 64%;
  left: 8%;
  animation-delay: -3s;
}

.heart-three {
  bottom: 10%;
  right: 22%;
  animation-delay: -5s;
}

.section {
  width: min(100%, 980px);
  margin: 0 auto;
  padding: 72px 20px;
}

.hero {
  display: grid;
  min-height: 100svh;
  padding-top: max(28px, env(safe-area-inset-top));
  padding-bottom: 52px;
  place-items: center;
}

.hero-content,
.letter-shell,
.song-card,
.surprise-card {
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: var(--radius);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.68), rgba(255, 255, 255, 0.38));
  box-shadow: var(--shadow);
  backdrop-filter: blur(18px);
}

.hero-content {
  max-width: 560px;
  padding: 28px 20px 24px;
  text-align: center;
  animation: heroIn 900ms ease both;
}

.hero-photo {
  position: relative;
  width: min(76vw, 300px);
  aspect-ratio: 1;
  margin: 0 auto 22px;
  padding: 9px;
  border-radius: 50%;
  background:
    linear-gradient(#fff8ef, #fff8ef) padding-box,
    linear-gradient(135deg, var(--rose), var(--lilac), #fff1bd) border-box;
  border: 2px solid transparent;
  box-shadow: 0 26px 54px rgba(122, 41, 65, 0.2);
  animation: softFloat 5s ease-in-out infinite;
}

.hero-photo img,
.photo-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
}

.hero-photo img {
  display: block;
  object-fit: cover;
}

.photo-placeholder {
  position: absolute;
  inset: 9px;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 28px;
  color: var(--wine);
  font-weight: 700;
  line-height: 1.4;
  background:
    radial-gradient(circle at 34% 24%, rgba(255, 255, 255, 0.92), transparent 30%),
    linear-gradient(135deg, rgba(255, 218, 229, 0.98), rgba(238, 223, 255, 0.98));
}

.hero-photo.is-missing img {
  display: none;
}

.hero-photo.is-missing .photo-placeholder {
  display: flex;
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--wine);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2 {
  margin: 0;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 700;
  line-height: 0.95;
}

h1 {
  font-size: clamp(3.4rem, 18vw, 6.4rem);
}

h2 {
  font-size: clamp(2.15rem, 11vw, 4.2rem);
}

.subtitle {
  margin: 8px 0 0;
  color: var(--plum);
  font-size: 1rem;
  font-weight: 700;
}

.hero-phrase {
  max-width: 34rem;
  margin: 18px auto 24px;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.7;
}

.soft-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  overflow: hidden;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  background: linear-gradient(135deg, #b64862, #d96a86 55%, #9d6ac1);
  box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  transition:
    transform 180ms ease,
    box-shadow 180ms ease;
}

.soft-button:active {
  transform: scale(0.97);
}

.soft-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 42px rgba(122, 41, 65, 0.28);
}

.button-shine {
  position: absolute;
  inset: -80% auto -80% -40%;
  z-index: -1;
  width: 42%;
  transform: rotate(18deg);
  background: rgba(255, 255, 255, 0.24);
  animation: shine 3.5s ease-in-out infinite;
}

.soft-button.secondary {
  color: var(--wine);
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 16px 34px rgba(122, 41, 65, 0.14);
}

.soft-button.compact {
  width: 100%;
  margin-top: 18px;
}

.soft-button.is-disabled {
  opacity: 0.68;
  pointer-events: none;
}

.section-heading {
  max-width: 680px;
  margin: 0 auto 24px;
  text-align: center;
}

.section-heading h2 {
  color: var(--ink);
}

.counter-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.counter-pill {
  min-height: 106px;
  padding: 16px 10px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  text-align: center;
  background: rgba(255, 255, 255, 0.54);
  box-shadow: 0 14px 34px rgba(122, 41, 65, 0.1);
  backdrop-filter: blur(14px);
  transition: transform 240ms ease;
}

.counter-pill.tick {
  transform: translateY(-3px);
}

.counter-pill strong {
  display: block;
  color: var(--wine);
  font-size: clamp(1.8rem, 10vw, 3rem);
  line-height: 1;
}

.counter-pill span {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.letter-shell {
  padding: 24px 18px;
}

.closed-letter {
  display: grid;
  justify-items: center;
  gap: 18px;
}

.envelope {
  position: relative;
  width: min(72vw, 310px);
  aspect-ratio: 1.42;
  filter: drop-shadow(0 18px 28px rgba(122, 41, 65, 0.18));
  animation: softFloat 5s ease-in-out infinite;
}

.envelope::before,
.envelope::after,
.envelope-flap,
.envelope-paper {
  position: absolute;
  content: "";
}

.envelope::before {
  inset: 24% 0 0;
  border-radius: 18px;
  background: linear-gradient(145deg, #fff7ee, #f5c7d4);
}

.envelope::after {
  inset: 24% 0 0;
  clip-path: polygon(0 0, 50% 58%, 100% 0, 100% 100%, 0 100%);
  border-radius: 18px;
  background: linear-gradient(145deg, rgba(224, 99, 129, 0.65), rgba(255, 250, 240, 0.9));
}

.envelope-flap {
  inset: 24% 0 auto;
  height: 58%;
  clip-path: polygon(0 0, 50% 70%, 100% 0);
  background: linear-gradient(145deg, #f6dbe4, #f3afc2);
  transform-origin: top;
}

.envelope-paper {
  left: 11%;
  right: 11%;
  top: 0;
  height: 64%;
  border-radius: 14px;
  background:
    linear-gradient(rgba(122, 41, 65, 0.1) 1px, transparent 1px) 0 38px / 100% 18px,
    linear-gradient(#fffefa, #fff8ef);
}

.envelope-heart {
  position: absolute;
  left: 50%;
  top: 57%;
  z-index: 2;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: linear-gradient(135deg, #ba4965, #e87a94);
  transform: translate(-50%, -50%);
  box-shadow: 0 10px 22px rgba(122, 41, 65, 0.24);
}

.letter-card {
  max-width: 680px;
  margin: 4px auto 0;
  padding: 24px 18px;
  border: 1px solid rgba(122, 41, 65, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(rgba(122, 41, 65, 0.07) 1px, transparent 1px) 0 44px / 100% 26px,
    linear-gradient(160deg, #fffefa, #fff4e7);
  box-shadow: 0 18px 40px rgba(122, 41, 65, 0.12);
  transform-origin: top center;
}

.letter-card.is-open {
  animation: unfold 620ms ease both;
}

.letter-text {
  color: #4b2e3a;
  font-size: 1rem;
  line-height: 1.8;
  white-space: pre-line;
}

.gallery-grid {
  column-count: 1;
  column-gap: 16px;
}

.memory-card {
  display: inline-block;
  width: 100%;
  height: auto;
  margin: 0 0 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(122, 41, 65, 0.12);
  backdrop-filter: blur(14px);
  break-inside: avoid;
  vertical-align: top;
  transition:
    box-shadow 220ms ease,
    transform 220ms ease;
}

.memory-card:hover {
  box-shadow: 0 22px 46px rgba(122, 41, 65, 0.16);
}

.memory-button {
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  cursor: pointer;
}

.memory-image {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at 26% 20%, rgba(255, 255, 255, 0.88), transparent 30%),
    linear-gradient(135deg, rgba(255, 213, 225, 0.94), rgba(224, 209, 255, 0.94));
}

.memory-image img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: initial;
  transition: transform 360ms ease;
}

.memory-image.has-ratio {
  aspect-ratio: var(--photo-ratio);
}

.memory-image.has-ratio img {
  height: 100%;
  object-fit: cover;
}

.memory-card:hover .memory-image.has-ratio img {
  transform: scale(1.04);
}

.memory-image.is-missing {
  min-height: 220px;
  aspect-ratio: 4 / 5;
}

.memory-image.is-missing img {
  display: none;
}

.memory-image.is-missing::after {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--wine);
  font-weight: 800;
  text-align: center;
  content: "Foto pendiente";
}

.memory-caption {
  margin: 0;
  padding: 14px 16px 16px;
  color: var(--muted);
  font-size: 0.94rem;
  font-weight: 700;
  line-height: 1.45;
}

.song-card {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  max-width: 760px;
  margin: 0 auto;
  padding: 28px 18px 22px;
  text-align: center;
  background:
    radial-gradient(circle at 16% 18%, rgba(255, 255, 255, 0.86), transparent 26%),
    radial-gradient(circle at 88% 4%, rgba(217, 198, 241, 0.58), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.7), rgba(255, 225, 236, 0.48));
}

.song-card::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.54);
  border-radius: calc(var(--radius) - 8px);
  content: "";
}

.song-glow,
.music-wave,
.song-heart {
  position: absolute;
  pointer-events: none;
}

.song-glow {
  z-index: -2;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  filter: blur(20px);
  opacity: 0.56;
}

.song-glow-one {
  left: -82px;
  bottom: -58px;
  background: rgba(231, 123, 150, 0.42);
}

.song-glow-two {
  right: -86px;
  top: -74px;
  background: rgba(157, 106, 193, 0.36);
}

.music-wave {
  width: 92px;
  height: 92px;
  border: 1px solid rgba(122, 41, 65, 0.16);
  border-radius: 50%;
  opacity: 0.52;
  animation: wavePulse 3.8s ease-in-out infinite;
}

.music-wave-one {
  left: 18px;
  top: 38px;
}

.music-wave-two {
  right: 18px;
  bottom: 34px;
  animation-delay: -1.8s;
}

.song-heart {
  color: rgba(122, 41, 65, 0.22);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.55rem;
  animation: float 7.5s ease-in-out infinite;
}

.song-heart-one {
  left: 13%;
  bottom: 26%;
}

.song-heart-two {
  right: 14%;
  top: 24%;
  animation-delay: -3s;
}

.music-icon {
  display: grid;
  width: 76px;
  height: 76px;
  margin: 0 auto 16px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 2.4rem;
  font-weight: 800;
  background:
    radial-gradient(circle at 30% 25%, rgba(255, 255, 255, 0.48), transparent 26%),
    linear-gradient(135deg, #b64862, #d96a86, #9d6ac1);
  box-shadow:
    0 16px 34px rgba(122, 41, 65, 0.22),
    0 0 0 8px rgba(255, 255, 255, 0.3);
  animation: softFloat 5s ease-in-out infinite;
}

.song-card h2 {
  color: var(--wine);
  font-size: clamp(2.35rem, 11vw, 4rem);
}

.song-copy p {
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 700;
}

.song-subtitle {
  max-width: 28rem;
  margin-right: auto !important;
  margin-left: auto !important;
  line-height: 1.6;
}

.song-artist {
  display: inline-flex;
  margin-top: 12px !important;
  border: 1px solid rgba(122, 41, 65, 0.1);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--wine) !important;
  font-size: 0.82rem;
  background: rgba(255, 255, 255, 0.54);
}

.song-actions {
  display: grid;
  gap: 10px;
  margin: 20px auto 0;
}

.song-primary-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 999px;
  padding: 0 18px;
  font: inherit;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.song-primary-button {
  border: 0;
  color: #fff;
  background: linear-gradient(135deg, #9f3a56, #de6f8c 56%, #8c63ba);
  box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
}

.song-primary-button:hover {
  transform: translateY(-2px);
}

.song-primary-button:active {
  transform: scale(0.97);
}

.song-primary-button.is-disabled {
  opacity: 0.7;
  cursor: not-allowed;
}

.song-player {
  margin-top: 18px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 22px;
  padding: 16px;
  background:
    radial-gradient(circle at 18% 20%, rgba(255, 255, 255, 0.82), transparent 28%),
    rgba(255, 255, 255, 0.44);
  box-shadow: 0 16px 34px rgba(122, 41, 65, 0.12);
  backdrop-filter: blur(12px);
}

.song-progress-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.song-progress {
  width: 100%;
  height: 18px;
  margin: 0;
  accent-color: var(--rose);
  cursor: pointer;
  appearance: none;
  background: transparent;
}

.song-progress::-webkit-slider-runnable-track {
  height: 9px;
  border-radius: 999px;
  background:
    linear-gradient(90deg, rgba(182, 72, 98, 0.72), rgba(157, 106, 193, 0.64))
      0 / var(--progress-fill, 0%) 100% no-repeat,
    rgba(122, 41, 65, 0.12);
}

.song-progress::-webkit-slider-thumb {
  width: 20px;
  height: 20px;
  margin-top: -5.5px;
  border: 3px solid #fff8ef;
  border-radius: 50%;
  appearance: none;
  background: linear-gradient(135deg, #b64862, #9d6ac1);
  box-shadow: 0 8px 16px rgba(122, 41, 65, 0.22);
}

.song-progress::-moz-range-track {
  height: 9px;
  border-radius: 999px;
  background: rgba(122, 41, 65, 0.12);
}

.song-progress::-moz-range-progress {
  height: 9px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(182, 72, 98, 0.72), rgba(157, 106, 193, 0.64));
}

.song-progress::-moz-range-thumb {
  width: 16px;
  height: 16px;
  border: 3px solid #fff8ef;
  border-radius: 50%;
  background: linear-gradient(135deg, #b64862, #9d6ac1);
  box-shadow: 0 8px 16px rgba(122, 41, 65, 0.22);
}

.song-time-row {
  display: flex;
  justify-content: space-between;
  margin-top: 7px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.song-error {
  margin: 12px 0 0;
  color: var(--wine);
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
}

.song-card.is-playing .music-icon {
  animation: musicBounce 900ms ease-in-out infinite;
  box-shadow:
    0 18px 38px rgba(122, 41, 65, 0.28),
    0 0 0 10px rgba(255, 255, 255, 0.34),
    0 0 34px rgba(231, 123, 150, 0.28);
}

.song-card.is-playing .music-wave {
  animation-duration: 1.8s;
  border-color: rgba(182, 72, 98, 0.28);
}

.song-card.is-playing .song-heart {
  color: rgba(182, 72, 98, 0.36);
  animation-duration: 4.8s;
}

.song-card.is-playing .song-glow {
  opacity: 0.78;
}

.surprise-section {
  width: min(100%, 820px);
  padding-top: 58px;
}

.surprise-card {
  position: relative;
  isolation: isolate;
  max-width: 720px;
  margin: 0 auto max(28px, env(safe-area-inset-bottom));
  overflow: hidden;
  padding: 28px 18px 24px;
  text-align: center;
  background:
    radial-gradient(circle at 18% 12%, rgba(255, 255, 255, 0.86), transparent 26%),
    radial-gradient(circle at 88% 8%, rgba(217, 198, 241, 0.66), transparent 28%),
    linear-gradient(145deg, rgba(255, 255, 255, 0.68), rgba(255, 226, 235, 0.48));
}

.surprise-card::before {
  position: absolute;
  inset: 12px;
  z-index: -1;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: calc(var(--radius) - 8px);
  content: "";
}

.surprise-glow,
.tiny-heart,
.particle-field {
  position: absolute;
  pointer-events: none;
}

.surprise-glow {
  z-index: -2;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  filter: blur(18px);
  opacity: 0.58;
}

.surprise-glow-one {
  left: -72px;
  top: -64px;
  background: rgba(231, 123, 150, 0.45);
}

.surprise-glow-two {
  right: -86px;
  bottom: 48px;
  background: rgba(157, 106, 193, 0.34);
}

.tiny-heart {
  color: rgba(122, 41, 65, 0.2);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.8rem;
  animation: float 7s ease-in-out infinite;
}

.tiny-heart-one {
  left: 10%;
  top: 22%;
}

.tiny-heart-two {
  right: 12%;
  top: 16%;
  animation-delay: -2s;
}

.tiny-heart-three {
  right: 18%;
  bottom: 26%;
  animation-delay: -4s;
}

.surprise-copy {
  position: relative;
  z-index: 1;
  max-width: 31rem;
  margin: 0 auto;
}

.surprise-copy h2 {
  color: var(--wine);
  font-size: clamp(2.4rem, 12vw, 4.4rem);
}

.surprise-copy > p:last-child {
  margin: 12px auto 0;
  color: var(--muted);
  font-weight: 600;
  line-height: 1.65;
}

.love-box {
  position: relative;
  width: 128px;
  height: 112px;
  margin: 24px auto 18px;
  filter: drop-shadow(0 18px 26px rgba(122, 41, 65, 0.18));
  animation: softFloat 5s ease-in-out infinite;
}

.box-lid,
.box-body,
.box-heart {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
}

.box-lid {
  top: 18px;
  width: 112px;
  height: 34px;
  border-radius: 17px 17px 10px 10px;
  background: linear-gradient(135deg, #fff5f8, #d96a86);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.box-lid::before,
.box-lid::after {
  position: absolute;
  top: -15px;
  width: 36px;
  height: 34px;
  border: 10px solid rgba(185, 72, 101, 0.88);
  border-radius: 50% 50% 10px 50%;
  content: "";
}

.box-lid::before {
  left: 24px;
  transform: rotate(42deg);
}

.box-lid::after {
  right: 24px;
  transform: scaleX(-1) rotate(42deg);
}

.box-body {
  bottom: 7px;
  width: 96px;
  height: 66px;
  border-radius: 14px 14px 22px 22px;
  background:
    linear-gradient(90deg, transparent 45%, rgba(255, 255, 255, 0.45) 45% 55%, transparent 55%),
    linear-gradient(145deg, #b64862, #e87a94 58%, #9d6ac1);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.46);
}

.box-heart {
  top: 50px;
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  background: rgba(122, 41, 65, 0.86);
  box-shadow: 0 10px 20px rgba(122, 41, 65, 0.22);
}

.surprise-button {
  position: relative;
  isolation: isolate;
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border: 0;
  border-radius: 999px;
  padding: 0 22px;
  color: #fff;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(135deg, #9f3a56, #de6f8c 56%, #8c63ba);
  box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  animation: tenderPulse 2.7s ease-in-out infinite;
  transition:
    box-shadow 180ms ease,
    transform 180ms ease;
}

.surprise-button:active {
  transform: scale(0.97);
}

.surprise-button.is-glowing {
  animation: buttonGlow 680ms ease both;
}

.surprise-button-icon {
  display: grid;
  width: 28px;
  height: 28px;
  place-items: center;
  border-radius: 50%;
  color: #9f3a56;
  background: rgba(255, 255, 255, 0.88);
  font-size: 1.1rem;
}

.love-note {
  position: relative;
  max-width: 520px;
  min-height: 124px;
  margin: 20px auto 0;
  padding: 22px 18px;
  border: 1px solid rgba(122, 41, 65, 0.1);
  border-radius: 22px;
  background:
    linear-gradient(rgba(122, 41, 65, 0.07) 1px, transparent 1px) 0 38px / 100% 23px,
    linear-gradient(160deg, rgba(255, 254, 250, 0.96), rgba(255, 241, 231, 0.94));
  box-shadow: 0 18px 38px rgba(122, 41, 65, 0.14);
  transform-origin: center;
}

.love-note::before {
  position: absolute;
  top: 14px;
  left: 18px;
  width: 34px;
  height: 4px;
  border-radius: 999px;
  background: rgba(231, 123, 150, 0.32);
  content: "";
}

.love-note.is-changing {
  animation: noteOut 190ms ease both;
}

.love-note.is-open {
  animation: noteIn 460ms cubic-bezier(0.2, 1.4, 0.34, 1) both;
}

.surprise-text {
  margin: 0;
  color: var(--wine);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.55rem, 7.4vw, 2.7rem);
  font-weight: 700;
  line-height: 1.08;
}

.surprise-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin: 16px auto 0;
}

.surprise-chips span {
  border: 1px solid rgba(122, 41, 65, 0.1);
  border-radius: 999px;
  padding: 7px 12px;
  color: var(--wine);
  font-size: 0.78rem;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.56);
}

.surprise-count,
.surprise-footer {
  margin: 12px auto 0;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 700;
}

.surprise-footer {
  max-width: 25rem;
  font-weight: 600;
  line-height: 1.55;
}

.particle-field {
  left: 50%;
  top: 56%;
  z-index: 3;
  width: 1px;
  height: 1px;
}

.love-particle {
  position: absolute;
  left: 0;
  top: 0;
  color: rgba(185, 72, 101, 0.9);
  font-size: 1rem;
  opacity: 0;
  animation: particleRise 900ms ease-out var(--delay) forwards;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(34, 19, 28, 0.82);
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
}

.lightbox.is-open {
  opacity: 1;
  pointer-events: auto;
}

.lightbox img {
  max-width: min(92vw, 820px);
  max-height: 72vh;
  border-radius: 24px;
  object-fit: contain;
  box-shadow: 0 22px 70px rgba(0, 0, 0, 0.36);
}

.lightbox p {
  max-width: 34rem;
  margin: 14px 0 0;
  color: #fff8ef;
  font-weight: 700;
  text-align: center;
}

.lightbox-close {
  position: absolute;
  top: max(16px, env(safe-area-inset-top));
  right: 16px;
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  color: #fff;
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.16);
  cursor: pointer;
}

.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition:
    opacity 700ms ease,
    transform 700ms ease;
}

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

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

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

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

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

@keyframes float {
  0%,
  100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }

  50% {
    transform: translate3d(12px, -22px, 0) rotate(8deg);
  }
}

@keyframes shine {
  0%,
  40% {
    transform: translateX(0) rotate(18deg);
  }

  100% {
    transform: translateX(420%) rotate(18deg);
  }
}

@keyframes unfold {
  from {
    opacity: 0;
    transform: rotateX(-18deg) translateY(-16px);
  }

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

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

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

@keyframes tenderPulse {
  0%,
  100% {
    box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
  }

  50% {
    box-shadow:
      0 16px 34px rgba(122, 41, 65, 0.24),
      0 0 0 8px rgba(231, 123, 150, 0.1);
  }
}

@keyframes buttonGlow {
  0% {
    transform: scale(1);
    box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
  }

  45% {
    transform: scale(1.035);
    box-shadow:
      0 18px 38px rgba(122, 41, 65, 0.3),
      0 0 0 12px rgba(231, 123, 150, 0.16),
      0 0 34px rgba(255, 255, 255, 0.8);
  }

  100% {
    transform: scale(1);
    box-shadow: 0 16px 34px rgba(122, 41, 65, 0.24);
  }
}

@keyframes noteOut {
  from {
    opacity: 1;
    transform: translateY(0) scale(1);
  }

  to {
    opacity: 0;
    transform: translateY(10px) scale(0.97);
  }
}

@keyframes noteIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.94) rotate(-1deg);
  }

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

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

  18% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    transform: translate(calc(-50% + var(--x)), -96px) scale(1.15) rotate(18deg);
  }
}

@keyframes wavePulse {
  0%,
  100% {
    opacity: 0.18;
    transform: scale(0.86);
  }

  50% {
    opacity: 0.5;
    transform: scale(1.08);
  }
}

@keyframes musicBounce {
  0%,
  100% {
    transform: translateY(0) rotate(0deg);
  }

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

@media (min-width: 640px) {
  .section {
    padding-right: 28px;
    padding-left: 28px;
  }

  .hero-content,
  .letter-shell,
  .song-card,
  .surprise-card {
    border-radius: 34px;
  }

  .hero-content {
    padding: 34px 30px 30px;
  }

  .counter-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .gallery-grid {
    column-count: 2;
  }

  .song-card {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 20px;
    text-align: left;
  }

  .song-actions {
    grid-column: 1 / -1;
    grid-template-columns: minmax(0, auto);
    justify-content: center;
    margin-top: 0;
  }

  .song-player {
    grid-column: 1 / -1;
  }

  .song-subtitle {
    margin-left: 0 !important;
  }

  .music-icon {
    margin: 0;
  }

  .soft-button.compact {
    width: auto;
    margin-top: 0;
  }
}

@media (min-width: 920px) {
  .gallery-grid {
    column-count: 3;
  }
}

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