:root {
  color-scheme: light;
  --ink: #174b43;
  --muted: #55746d;
  --mint: #bcebdd;
  --deep-mint: #3e9e87;
  --paper: #f7fcf9;
}

* { box-sizing: border-box; }

html { overflow-x: clip; scroll-behavior: smooth; }

body {
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  background: var(--paper);
  font-family: 'DM Sans', sans-serif;
}

.welcome-intro {
  position: fixed;
  z-index: 8;
  inset: 0;
  display: grid;
  place-items: center;
  padding: 1.5rem;
  background: rgb(247 252 249 / 76%);
  backdrop-filter: blur(6px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

body.show-welcome-intro .welcome-intro {
  opacity: 1;
  visibility: visible;
  animation: welcome-intro-exit .65s ease 4.15s forwards;
}

.welcome-card {
  position: relative;
  display: grid;
  width: min(calc(100vw - 2rem), 50rem);
  min-height: min(78svh, 39rem);
  place-items: center;
  overflow: hidden;
  border: 1px solid rgb(255 255 255 / 78%);
  border-radius: 1.25rem;
  background: linear-gradient(145deg, #fffdf4, #f8e5d8 60%, #d9f2e7);
  box-shadow: 0 28px 90px rgb(23 75 67 / 24%), inset 0 0 0 8px rgb(255 255 255 / 38%);
  opacity: 0;
  transform: translateY(1.5rem) scale(.9) rotate(-3deg);
  animation: welcome-card-enter .65s cubic-bezier(.2, .75, .25, 1) .08s forwards;
}

.welcome-card::before {
  position: absolute;
  z-index: 2;
  inset: 0 0 auto;
  height: 58%;
  background: linear-gradient(145deg, #f5c9bf, #f7d8bc 55%, #f4c6c7);
  clip-path: polygon(0 0, 100% 0, 50% 100%);
  content: '';
  transform: rotateX(0);
  transform-origin: top center;
  backface-visibility: hidden;
  animation: welcome-flap-open .75s cubic-bezier(.3, .75, .35, 1) .78s forwards;
}

.welcome-card-content {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  color: #55746d;
  opacity: 0;
  animation: welcome-message-show .5s ease 1.23s forwards;
}

.welcome-card-content p { margin: .4rem 0 .55rem; color: #438a78; font-size: .7rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.welcome-card-content strong { color: #174b43; font-family: 'Playfair Display', Georgia, serif; font-size: clamp(3.5rem, 12vw, 6rem); letter-spacing: -.05em; line-height: 1; }
.welcome-card-content small { margin-top: 1.2rem; font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; }
main { position: relative; z-index: 1; }

.ambient-background {
  position: fixed;
  z-index: 0;
  inset: 0;
  overflow: hidden;
  background: radial-gradient(ellipse at 20% 20%, #f2fbf5 0%, transparent 55%),
    radial-gradient(ellipse at 80% 75%, #f5faf0 0%, transparent 60%), var(--paper);
  background-size: 140% 140%;
  animation: background-breathe 24s ease-in-out infinite alternate;
  pointer-events: none;
}

.ambient-orb {
  position: absolute;
  display: block;
  width: clamp(15rem, 32vw, 31rem);
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: .38;
  filter: blur(2px);
  transition: translate 1.2s cubic-bezier(.2, .7, .2, 1);
  will-change: transform, translate;
  animation: orb-drift 17s ease-in-out infinite alternate;
}

.orb-mint { top: -13rem; left: -8rem; background: radial-gradient(circle at 65% 55%, #9ee4c8 0%, #c9f1df 48%, transparent 72%); }
.orb-aqua { top: 24%; right: -15rem; background: radial-gradient(circle at 35% 45%, #9bded7 0%, #d5f2e8 50%, transparent 73%); animation-delay: -6s; }
.orb-sage { bottom: -18rem; left: 22%; background: radial-gradient(circle at 50% 35%, #d2edaa 0%, #e8f4c8 48%, transparent 72%); animation-delay: -10s; }
.orb-peach { top: 48%; left: 8%; width: clamp(9rem, 19vw, 19rem); opacity: .2; background: radial-gradient(circle, #f7d4bd 0%, #fae8d8 50%, transparent 74%); animation-delay: -3s; }

.ambient-cursor {
  position: absolute;
  top: -20rem;
  left: -20rem;
  width: 30rem;
  aspect-ratio: 1;
  border-radius: 50%;
  opacity: 0;
  background: radial-gradient(circle, rgb(112 201 167 / 22%) 0%, rgb(188 235 221 / 11%) 38%, transparent 72%);
  transform: translate(-50%, -50%);
  transition: opacity .5s ease, top .5s ease-out, left .5s ease-out;
}

.ambient-background.has-pointer .ambient-cursor { opacity: 1; }
.ambient-star { position: absolute; color: #65ad96; opacity: .42; animation: star-float 6s ease-in-out infinite; }
.star-one { top: 18%; left: 38%; font-size: 1.2rem; }
.star-three { top: 83%; left: 11%; font-size: 1rem; animation-delay: -4s; }

.ambient-balloon {
  position: absolute;
  bottom: -6rem;
  width: 2.15rem;
  height: 2.8rem;
  opacity: 0;
  animation: balloon-float 25s ease-in infinite;
  pointer-events: none;
}

.ambient-balloon::before {
  position: absolute;
  inset: 0 0 auto;
  height: 2.3rem;
  border-radius: 50% 50% 47% 47%;
  background: radial-gradient(circle at 31% 24%, rgb(255 255 255 / 74%), transparent 18%), var(--balloon-color);
  box-shadow: inset -5px -5px 9px rgb(23 75 67 / 10%), 0 5px 14px rgb(23 75 67 / 9%);
  clip-path: polygon(0 0, 100% 0, 100% 78%, 58% 88%, 50% 100%, 42% 88%, 0 78%);
  content: '';
}

.ambient-balloon::after {
  position: absolute;
  top: 2.7rem;
  left: 50%;
  height: 3.5rem;
  border-left: 1px solid rgb(85 116 109 / 38%);
  content: '';
  transform: rotate(3deg);
  transform-origin: top;
}

.balloon-one { left: 8%; --balloon-color: linear-gradient(145deg, #f5a9a7, #e97f8c); animation-delay: -11s; }
.balloon-two { left: 27%; width: 1.8rem; --balloon-color: linear-gradient(145deg, #f7d78e, #eebc65); animation-delay: -20s; animation-duration: 30s; }
.balloon-three { right: 23%; --balloon-color: linear-gradient(145deg, #a9dcca, #62b89b); animation-delay: -4s; animation-duration: 28s; }
.balloon-four { right: 7%; width: 1.9rem; --balloon-color: linear-gradient(145deg, #c7b9e8, #9e8bcf); animation-delay: -16s; animation-duration: 32s; }

button, a { font: inherit; }
button:focus-visible, a:focus-visible { outline: 3px solid #247864; outline-offset: 5px; }

.page-glow {
  position: absolute;
  z-index: -1;
  width: 28rem;
  height: 28rem;
  border-radius: 50%;
  filter: blur(2px);
  pointer-events: none;
}

.page-glow-one { top: -12rem; left: -12rem; background: #d8f5e9; }
.page-glow-two { top: 14rem; right: -18rem; background: #e8f6da; }

.hero {
  position: relative;
  display: flex;
  min-height: min(790px, 100svh);
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 5rem 1.5rem 4rem;
  text-align: center;
}

.eyebrow {
  margin: 0;
  color: #438a78;
  font-size: .76rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
}

.hero h1 {
  margin: 1.15rem 0 .9rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(4.3rem, 11vw, 8.5rem);
  font-weight: 800;
  letter-spacing: -.065em;
  line-height: .91;
}

.hero h1 span { color: #55a88f; }
.hero h1 .name-line { display: inline-block; margin-top: .12em; color: var(--ink); }

.intro {
  max-width: 29rem;
  margin: 1rem auto 1.7rem;
  color: var(--muted);
  font-size: clamp(1rem, 2.3vw, 1.15rem);
  line-height: 1.7;
}

.gift-hint {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
  color: #367c6b;
  font-size: .92rem;
  font-weight: 700;
  text-decoration: none;
}

.party-button {
  margin-top: 1.3rem;
  padding: .9rem 1.35rem;
  border: 0;
  border-radius: 999px;
  color: #fff;
  background: #438f7a;
  box-shadow: 0 8px 20px rgb(50 124 103 / 20%);
  cursor: pointer;
  font-weight: 700;
  transition: transform .2s ease, background .2s ease, box-shadow .2s ease;
}

.party-button:hover { transform: translateY(-3px); background: #317a67; box-shadow: 0 12px 24px rgb(50 124 103 / 25%); }
.party-button span { display: inline-block; margin-left: .25rem; transition: transform .2s ease; }
.party-button:hover span { transform: rotate(18deg) scale(1.2); }

.song-toggle {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: .8rem;
  padding: .55rem .9rem;
  border: 1px solid #a6d9c9;
  border-radius: 999px;
  color: #367c6b;
  background: rgb(255 255 255 / 65%);
  cursor: pointer;
  font-size: .82rem;
  font-weight: 700;
  transition: background .2s ease, transform .2s ease;
}

.song-toggle:hover { transform: translateY(-2px); background: white; }
.song-toggle-icon { min-width: .8rem; font-size: .72rem; }

.hint-icon {
  display: grid;
  width: 2rem;
  height: 2rem;
  place-items: center;
  border: 1px solid #a6d9c9;
  border-radius: 50%;
  animation: nudge 1.6s ease-in-out infinite;
}

.music-section { padding: 0 1.25rem 4rem; background: transparent; }
.music-player {
  display: grid;
  width: min(100%, 760px);
  grid-template-columns: 5.5rem minmax(0, 1fr);
  align-items: center;
  gap: 1.3rem;
  margin: 0 auto;
  padding: 1.25rem 1.5rem;
  border: 1px solid rgb(255 255 255 / 18%);
  border-radius: 1.25rem;
  color: white;
  background: linear-gradient(125deg, #174b43, #347c6b 70%, #4c9c83);
  box-shadow: 0 18px 42px rgb(23 75 67 / 20%);
}

.record-art {
  display: grid;
  width: 5.5rem;
  aspect-ratio: 1;
  place-items: center;
  border: 5px solid rgb(255 255 255 / 14%);
  border-radius: 50%;
  background: repeating-radial-gradient(circle, #203f3b 0 3px, #182f2d 4px 6px);
  box-shadow: 0 5px 14px rgb(0 0 0 / 18%);
}

.record-art span { display: grid; width: 2rem; aspect-ratio: 1; place-items: center; border: 3px solid #e6c98f; border-radius: 50%; background: #fbf0d5; font-size: .85rem; }
.record-art.is-playing { animation: record-spin 5s linear infinite; }
.music-kicker { margin: 0 0 .2rem; color: #bcebdd; font-size: .65rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; }
.music-content h2 { margin: 0; color: white; font-family: 'Playfair Display', Georgia, serif; font-size: 1.5rem; }
.music-status { min-height: 1.1rem; margin: .15rem 0 .75rem; color: rgb(255 255 255 / 72%); font-size: .75rem; }
.music-controls { display: grid; grid-template-columns: 2.5rem minmax(4rem, 1fr) 1.7rem 5.5rem; align-items: center; gap: .6rem; }
.music-play, .music-volume-icon { display: grid; place-items: center; border: 0; color: #174b43; background: #d9f5ed; cursor: pointer; }
.music-play { width: 2.5rem; aspect-ratio: 1; border-radius: 50%; font-size: .85rem; transition: transform .2s ease, background .2s ease; }
.music-play:hover { transform: scale(1.08); background: white; }
.music-volume-icon { width: 1.7rem; aspect-ratio: 1; border-radius: 50%; font-size: .85rem; }
.music-progress, .music-volume { width: 100%; height: 4px; margin: 0; accent-color: #bcebdd; cursor: pointer; }
.music-progress { background: linear-gradient(to right, #bcebdd 0 var(--progress, 0%), rgb(255 255 255 / 28%) var(--progress, 0%) 100%); appearance: none; }
.music-progress::-webkit-slider-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; appearance: none; background: #fff; }
.music-progress::-moz-range-thumb { width: 10px; height: 10px; border: 0; border-radius: 50%; background: #fff; }
.music-times { display: flex; justify-content: space-between; margin-top: .25rem; color: rgb(255 255 255 / 70%); font-size: .62rem; font-variant-numeric: tabular-nums; }
.music-tip { margin: .65rem auto 0; color: #678279; font-size: .72rem; text-align: center; }
.music-tip code { padding: .1rem .3rem; border-radius: .25rem; background: #eaf4ee; color: #367c6b; }

.memories-section {
  padding: 5.5rem 1.25rem 5rem;
  background: rgb(251 253 249 / 78%);
  text-align: center;
}

.photo-carousel {
  display: grid;
  width: min(100%, 620px);
  grid-template-columns: 3rem minmax(0, 1fr) 3rem;
  align-items: center;
  gap: 1rem;
  margin: 2rem auto 0;
}

.carousel-stage { min-width: 0; touch-action: pan-y; cursor: grab; }
.carousel-stage:active { cursor: grabbing; }
.carousel-stage:focus-visible { outline: 3px solid #247864; outline-offset: 6px; }

.polaroid-slide {
  position: relative;
  width: min(100%, 370px);
  margin: 0 auto;
  padding: 1rem 1rem 3.5rem;
  background: #fffefa;
  box-shadow: 0 16px 40px rgb(50 78 65 / 15%), 0 2px 7px rgb(50 78 65 / 8%);
  transform: rotate(-2deg);
}

.polaroid-slide::before {
  position: absolute;
  z-index: 2;
  top: -.5rem;
  left: 50%;
  width: 4.4rem;
  height: 1.15rem;
  border: 1px solid rgb(210 175 125 / 26%);
  background: repeating-linear-gradient(135deg, rgb(255 255 255 / 27%) 0 5px, transparent 5px 10px), rgb(235 202 151 / 72%);
  box-shadow: 0 2px 5px rgb(68 71 54 / 9%);
  content: '';
  transform: translateX(-50%) rotate(-4deg);
}

.polaroid-slide:nth-child(2)::before, .polaroid-slide:nth-child(5)::before { background-color: rgb(191 225 208 / 78%); }
.polaroid-slide:nth-child(3)::before, .polaroid-slide:nth-child(6)::before { background-color: rgb(238 190 193 / 76%); }
.polaroid-slide:nth-child(4)::before, .polaroid-slide:nth-child(7)::before { background-color: rgb(204 195 229 / 78%); }
.polaroid-slide:nth-child(even)::before { transform: translateX(-50%) rotate(3deg); }

.polaroid-slide:nth-child(2) { transform: rotate(1.8deg); }
.polaroid-slide:nth-child(3) { transform: rotate(-1deg); }
.polaroid-slide.is-active { animation: polaroid-in .35s ease both; }

.polaroid-photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background: #d7eee3;
}

.photo-one { background: linear-gradient(145deg, #bee9d8, #f1e7c9); }
.photo-two { background: linear-gradient(145deg, #f8d9ca, #f4e6b7); }
.photo-three { background: linear-gradient(145deg, #d9d2ed, #d0eee1); }
.photo-four { background: linear-gradient(145deg, #f5dfac, #f3cfc8); }
.photo-five { background: linear-gradient(145deg, #c5e8dc, #d9d0ec); }

.photo-placeholder {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: .7rem;
  color: #456d63;
}

.photo-placeholder span { font-size: 3.7rem; }
.photo-placeholder small { font-size: .8rem; font-weight: 600; }
.polaroid-photo img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.polaroid-photo.has-image img { display: block; }
.polaroid-slide figcaption { padding: 1rem .2rem 0; color: #365f55; font-family: 'Playfair Display', Georgia, serif; font-size: 1.2rem; }
.polaroid-slide figcaption span { padding-left: .25rem; color: #d88282; }

.carousel-arrow {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #b8d9cc;
  border-radius: 50%;
  color: #367c6b;
  background: #f3fbf6;
  cursor: pointer;
  font-size: 1.4rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.carousel-arrow:hover { transform: scale(1.07); color: white; background: #438f7a; }
.carousel-footer { display: flex; grid-column: 2; align-items: center; justify-content: center; gap: 1rem; margin-top: .35rem; }
.carousel-dots { display: flex; align-items: center; gap: .55rem; }
.carousel-dot { width: .6rem; height: .6rem; padding: 0; border: 0; border-radius: 50%; background: #bdd8cc; cursor: pointer; transition: transform .2s ease, background .2s ease; }
.carousel-dot.is-active { transform: scale(1.35); background: #438f7a; }
.photo-tip { margin: 1.35rem auto 0; color: #678279; font-size: .8rem; line-height: 1.7; }
.photo-tip code { padding: .12rem .35rem; border-radius: .3rem; background: #eaf4ee; color: #367c6b; }

.reminders-section {
  padding: 5.5rem 1.25rem;
  background: rgb(237 248 242 / 78%);
  text-align: center;
}

.reminders-grid {
  display: grid;
  width: min(100%, 1180px);
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: .85rem;
  margin: 2rem auto 0;
  text-align: left;
}

.reminder-card[hidden] { display: none; }

.reminders-controls { display: flex; align-items: center; justify-content: center; gap: 1rem; margin-top: 1.5rem; }
.reminder-arrow {
  display: grid;
  width: 2.8rem;
  height: 2.8rem;
  place-items: center;
  border: 1px solid #b8d9cc;
  border-radius: 50%;
  color: #367c6b;
  background: #f3fbf6;
  cursor: pointer;
  font-size: 1.6rem;
  transition: color .2s ease, background .2s ease, transform .2s ease;
}

.reminder-arrow:hover:not(:disabled) { transform: scale(1.07); color: white; background: #438f7a; }
.reminder-arrow:disabled { cursor: not-allowed; opacity: .45; }
.reminders-page { min-width: 3.5rem; color: #55746d; font-size: .85rem; font-weight: 700; }

.reminder-card {
  overflow: hidden;
  border: 1px solid rgb(23 75 67 / 8%);
  border-radius: 1.25rem;
  background: #fffefa;
  box-shadow: 0 12px 30px rgb(29 83 69 / 7%);
}

.reminder-photo {
  position: relative;
  display: grid;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  place-items: center;
  background: #d6efe3;
}

.reminder-sea { background: linear-gradient(140deg, #9fd9db, #d6f0e4); }
.reminder-cactus { background: linear-gradient(140deg, #c5e5c8, #f5e7bd); }
.reminder-bts { background: linear-gradient(140deg, #d7c4ee, #f3d8e8); }
.reminder-hunger-games { background: linear-gradient(140deg, #f4c9a9, #eacb9c); }
.reminder-vaiana { background: linear-gradient(140deg, #70c9c1, #ffe1a8); }
.reminder-little-nightmares { background: linear-gradient(140deg, #77758f, #d9c1aa); }
.reminder-nightmare-christmas { background: linear-gradient(140deg, #263c38, #aa5550); }
.reminder-nightmare-christmas img { object-fit: contain; background: #101a2a; }
.reminder-pomeranians { background: linear-gradient(140deg, #f4c9a9, #fff0d8); }
.reminder-lovebird { background: linear-gradient(140deg, #b8df9a, #f5d16f); }
.reminder-paddleboard { background: linear-gradient(140deg, #79c6db, #a8e3d1); }
.reminder-teal { background: linear-gradient(140deg, #59b6ad, #b5e2d7); }
.reminder-sun { background: linear-gradient(140deg, #ffe08a, #f7ad78); }
.reminder-bobs-burgers { background: linear-gradient(140deg, #f4b477, #f5d98c); }
.reminder-hilda { background: linear-gradient(140deg, #9bc7b0, #c8d7ef); }
.reminder-photo img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.reminder-photo.has-image img { display: block; }
.reminder-photo.has-image .photo-placeholder { display: none; }

.reminder-copy { padding: .8rem .85rem .95rem; }
.reminder-tag { margin: 0 0 .25rem; color: #438a78; font-size: .58rem; font-weight: 700; letter-spacing: .09em; text-transform: uppercase; }
.reminder-copy h3 { margin: 0; color: var(--ink); font-family: 'Playfair Display', Georgia, serif; font-size: 1.18rem; line-height: 1.2; }

.wish-section {
  padding: 5.5rem 1.25rem;
  background: #fffaf0;
  text-align: center;
}

.birthday-cake { position: relative; width: min(100%, 360px); height: 270px; margin: 2.25rem auto .5rem; }
.cake-plate { position: absolute; z-index: 1; bottom: 0; left: -2%; width: 104%; height: 4.2rem; border: 2px solid #087e98; border-radius: 50%; background: linear-gradient(180deg, #27abc0 0 38%, #078ba5 40% 75%, #066780); box-shadow: 0 7px 0 #07566e, 0 13px 18px rgb(31 72 83 / 18%); }
.cake-side { position: absolute; z-index: 2; right: 15%; bottom: 2rem; left: 15%; height: 7.5rem; border-radius: 0 0 1.25rem 1.25rem; background: linear-gradient(90deg, rgb(119 39 76 / 18%), transparent 13% 85%, rgb(119 39 76 / 18%)), repeating-linear-gradient(to bottom, #ffc2c5 0 13px, #f62f63 13px 26px); box-shadow: inset 0 -8px rgb(142 45 80 / 13%), 0 8px 14px rgb(133 44 76 / 13%); }
.cake-top { position: absolute; z-index: 3; bottom: 7.8rem; left: 15%; width: 70%; height: 4rem; border: 2px solid rgb(231 150 154 / 55%); border-radius: 50%; background: radial-gradient(ellipse at 50% 28%, #ffe9ce 0 48%, #ffd9c4 73%, #f7b3b4); box-shadow: inset 0 -6px rgb(222 125 143 / 20%), 0 4px 7px rgb(128 63 75 / 12%); }
.cake-top-berries { position: absolute; inset: 0; }
.cake-top-berries span, .cake-bottom-berries span { position: absolute; display: block; border: 1px solid #d4114d; border-radius: 50%; background: radial-gradient(circle at 32% 28%, #ff7a91 0 12%, #ed174d 40%, #bd0d42 100%); box-shadow: inset -2px -2px 3px rgb(117 6 49 / 25%), 0 2px 3px rgb(105 36 55 / 25%); }
.cake-top-berries span::after, .cake-bottom-berries span::after { position: absolute; top: 18%; left: 18%; width: 28%; height: 22%; border-radius: 50%; background: rgb(255 196 200 / 85%); content: ''; transform: rotate(-28deg); }
.cake-top-berries span { width: .85rem; height: .85rem; }
.cake-top-berries span:nth-child(1) { top: 43%; left: 2%; }
.cake-top-berries span:nth-child(2) { top: 62%; left: 11%; }
.cake-top-berries span:nth-child(3) { top: 75%; left: 24%; }
.cake-top-berries span:nth-child(4) { top: 81%; left: 38%; }
.cake-top-berries span:nth-child(5) { top: 82%; left: 53%; }
.cake-top-berries span:nth-child(6) { top: 76%; left: 68%; }
.cake-top-berries span:nth-child(7) { top: 63%; left: 81%; }
.cake-top-berries span:nth-child(8) { top: 42%; left: 92%; }
.cake-top-berries span:nth-child(9) { top: 23%; left: 48%; }
.cake-bottom-berries { position: absolute; z-index: 4; right: 15%; bottom: 1.75rem; left: 15%; height: 1.65rem; }
.cake-bottom-berries span { width: 1.4rem; height: 1.4rem; }
.cake-bottom-berries span:nth-child(1) { top: 0; left: -3%; }
.cake-bottom-berries span:nth-child(2) { top: .34rem; left: 7%; }
.cake-bottom-berries span:nth-child(3) { top: .55rem; left: 17%; }
.cake-bottom-berries span:nth-child(4) { top: .7rem; left: 27%; }
.cake-bottom-berries span:nth-child(5) { top: .78rem; left: 38%; }
.cake-bottom-berries span:nth-child(6) { top: .78rem; left: 50%; }
.cake-bottom-berries span:nth-child(7) { top: .68rem; left: 61%; }
.cake-bottom-berries span:nth-child(8) { top: .5rem; left: 72%; }
.cake-bottom-berries span:nth-child(9) { top: .3rem; left: 83%; }
.cake-bottom-berries span:nth-child(10) { top: 0; left: 94%; }
.cake-candles { position: absolute; z-index: 5; inset: 0; pointer-events: none; }
.wish-candle { position: absolute; bottom: 9.4rem; display: flex; flex-direction: column; align-items: center; gap: .22rem; width: 1.8rem; padding: .1rem; border: 0; background: transparent; cursor: pointer; pointer-events: auto; transform-origin: center bottom; }
.wish-candle:nth-child(1) { left: 29%; transform: translateX(-50%) rotate(-9deg); }
.wish-candle:nth-child(2) { left: 44%; transform: translateX(-50%) rotate(-3deg); }
.wish-candle:nth-child(3) { left: 56%; transform: translateX(-50%) rotate(3deg); }
.wish-candle:nth-child(4) { left: 71%; transform: translateX(-50%) rotate(9deg); }
.wish-candle:focus-visible { outline: 3px solid #087e98; outline-offset: 3px; border-radius: .5rem; }
.candle-flame { position: relative; display: block; width: .85rem; height: 1.1rem; border-radius: 50% 50% 50% 0; background: linear-gradient(145deg, #fff9bd 5%, #ffc04d 53%, #ef694d); box-shadow: 0 0 .9rem rgb(255 172 81 / 70%); transform: rotate(-45deg); transform-origin: 50% 90%; animation: candle-flicker .75s ease-in-out infinite; }
.candle-flame::after { position: absolute; top: 24%; left: 50%; width: .34rem; height: .56rem; border-radius: 50% 50% 50% 0; background: #fff9d8; content: ''; transform: translateX(-50%) rotate(-4deg); }
.candle-body { display: block; width: .78rem; height: 4rem; border: 1px solid rgb(1 94 116 / 38%); border-radius: .08rem .08rem .12rem .12rem; background: repeating-linear-gradient(120deg, #087891 0 .34rem, #53c8cb .34rem .62rem); box-shadow: inset -3px 0 4px rgb(0 64 83 / 28%), 0 2px 4px rgb(17 61 68 / 22%); }
.wish-candle:not(.wish-candle-number) .candle-body { border-color: rgb(146 21 76 / 40%); background: repeating-linear-gradient(120deg, #b91954 0 .34rem, #ff91ad .34rem .62rem); box-shadow: inset -3px 0 4px rgb(89 14 52 / 22%), 0 2px 4px rgb(105 36 55 / 22%); }
.wish-candle-number { width: 2.35rem; }
.candle-number { width: 2rem; height: 4rem; border: 0; border-radius: 0; background: repeating-linear-gradient(120deg, #087891 0 .34rem, #53c8cb .34rem .62rem); background-clip: text; box-shadow: none; -webkit-background-clip: text; color: transparent; font-family: Arial, sans-serif; font-size: 3.8rem; font-weight: 900; line-height: 4rem; text-align: center; -webkit-text-fill-color: transparent; -webkit-text-stroke: .8px #087891; filter: drop-shadow(1px 2px 1px rgb(0 64 83 / 24%)); }
.wish-candle:nth-child(2) .candle-flame { animation-delay: -.18s; animation-duration: .68s; }
.wish-candle:nth-child(3) .candle-flame { animation-delay: -.42s; animation-duration: .82s; }
.wish-candle:nth-child(4) .candle-flame { animation-delay: -.27s; animation-duration: .72s; }
.wish-candle:nth-child(5) .candle-flame { animation-delay: -.54s; animation-duration: .88s; }
.wish-candle.is-selected .candle-flame { animation-duration: .48s; }
.wish-message { max-width: 34rem; min-height: 3.5rem; margin: 1.1rem auto 0; color: #55746d; font-family: 'Playfair Display', Georgia, serif; font-size: 1.15rem; line-height: 1.7; }

.reasons-section {
  padding: 5.5rem 1.25rem;
  background: rgb(241 248 243 / 78%);
  text-align: center;
}

.reasons-list {
  display: grid;
  width: min(100%, 1050px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.35rem;
  margin: 2.4rem auto 0;
  padding: 2rem;
  border: .7rem solid #94613f;
  border-radius: 1.1rem;
  background-color: #bd8258;
  background-image:
    radial-gradient(circle at 20% 30%, rgb(255 235 198 / 28%) 0 1px, transparent 1.5px),
    radial-gradient(circle at 70% 60%, rgb(91 48 28 / 18%) 0 1px, transparent 1.6px),
    linear-gradient(135deg, #ca9062, #b87850 55%, #c58a5c);
  background-size: 13px 15px, 17px 19px, auto;
  box-shadow: inset 0 0 0 3px rgb(255 226 186 / 20%), 0 18px 38px rgb(82 53 35 / 17%);
  list-style: none;
  text-align: left;
}

.reasons-list li {
  position: relative;
  display: flex;
  min-height: 158px;
  flex-direction: column;
  align-items: flex-start;
  padding: 1.35rem 1.15rem 1.8rem;
  border: 0;
  border-radius: 2px 2px 3px 2px;
  background: #fff0a8;
  box-shadow: 0 5px 10px rgb(61 38 25 / 22%);
  color: #45665d;
  font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  font-size: .9rem;
  line-height: 1.55;
  transition: transform .2s ease, box-shadow .2s ease;
}

.reasons-list li::before {
  position: absolute;
  top: -.48rem;
  left: calc(50% - .42rem);
  width: .84rem;
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 25%, #ffe9c7 0 9%, #e96e64 25%, #b83c42 75%);
  box-shadow: 0 2px 3px rgb(50 33 26 / 32%);
  content: '';
}

.reasons-list li:nth-child(4n + 2) { background: #d8efd4; transform: rotate(1.4deg); }
.reasons-list li:nth-child(4n + 3) { background: #f9dfe0; transform: rotate(-1.2deg); }
.reasons-list li:nth-child(4n) { background: #e4def5; transform: rotate(1deg); }
.reasons-list li:nth-child(4n + 1) { transform: rotate(-.8deg); }

.reasons-list.is-animating > li {
  opacity: 0;
  translate: var(--entry-x, 0) var(--entry-y, 0);
  transition: opacity .42s ease, translate .42s cubic-bezier(.2, .75, .25, 1);
}

.reasons-list.is-animating > li.is-revealed {
  opacity: 1;
  translate: 0 0;
}

.reasons-list.is-animating > li:nth-child(6n + 1) { --entry-x: -42px; --entry-y: 8px; }
.reasons-list.is-animating > li:nth-child(6n + 2) { --entry-x: 42px; --entry-y: 8px; }
.reasons-list.is-animating > li:nth-child(6n + 3) { --entry-x: -8px; --entry-y: -36px; }
.reasons-list.is-animating > li:nth-child(6n + 4) { --entry-x: 8px; --entry-y: 36px; }
.reasons-list.is-animating > li:nth-child(6n + 5) { --entry-x: -34px; --entry-y: -28px; }
.reasons-list.is-animating > li:nth-child(6n) { --entry-x: 34px; --entry-y: 28px; }

.reasons-list.is-animating > li::before {
  opacity: 0;
  transform: translateY(-.65rem) scale(.65);
}

.reasons-list.is-animating > li.is-revealed::before {
  animation: thumbtack-press .24s cubic-bezier(.2, .8, .25, 1) .42s both;
}

.reasons-list li:hover { z-index: 1; box-shadow: 0 10px 18px rgb(61 38 25 / 28%); transform: translateY(-4px) rotate(0); }
.reason-number { margin-bottom: .65rem; color: #438a78; font-family: 'DM Sans', sans-serif; font-size: .72rem; font-weight: 700; letter-spacing: .08em; }

.letter-section {
  padding: 5.5rem 1.25rem 6rem;
  background: rgb(251 253 249 / 78%);
  text-align: center;
}

.letter-grid {
  display: grid;
  width: min(100%, 1050px);
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.2rem;
  margin: 2.5rem auto 0;
  text-align: left;
}

.mini-letter {
  overflow: hidden;
  border: 1px solid #e9e2cb;
  border-radius: .8rem;
  background: #fffdf4;
  box-shadow: 0 9px 24px rgb(54 74 61 / 8%);
  cursor: pointer;
  transition: transform .22s ease, box-shadow .22s ease;
}

.mini-letter:hover, .mini-letter:focus-visible { transform: translateY(-5px) rotate(-.5deg); box-shadow: 0 16px 30px rgb(54 74 61 / 15%); }

.mini-letter-photo {
  position: relative;
  display: grid;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  place-items: center;
  background: linear-gradient(145deg, #d6efe3, #f3e7c9);
}

.mini-letter-photo img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.mini-letter-photo.has-image img { display: block; }
.mini-letter-photo.has-image .photo-placeholder { display: none; }

.mini-letter-note {
  min-height: 142px;
  padding: 1rem 1.1rem 1.15rem;
  background-color: #fffdf4;
  background-image: repeating-linear-gradient(transparent 0 1.8rem, rgb(131 174 157 / 14%) 1.8rem 1.84rem);
  color: #49685d;
  font-family: 'Segoe Print', 'Bradley Hand', 'Comic Sans MS', cursive;
  font-size: .82rem;
  line-height: 1.8rem;
}

.mini-letter-number { display: block; margin-bottom: .25rem; color: #438a78; font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.mini-letter-note p {
  display: -webkit-box;
  overflow: hidden;
  margin: 0;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.mini-letter-note::after { display: block; margin-top: .45rem; color: #438a78; content: 'Pulsa para abrir ↗'; font-family: 'DM Sans', sans-serif; font-size: .65rem; font-weight: 700; }

.gifts-section {
  padding: 5.5rem max(1.25rem, calc((100% - 1050px) / 2)) 4rem;
  background: rgb(237 248 242 / 78%);
  text-align: center;
}

.section-heading h2, .gift-dialog h2 {
  margin: .55rem 0 .6rem;
  font-family: 'Playfair Display', Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.3rem);
  letter-spacing: -.04em;
}

.section-heading > p:last-child { margin: 0; color: var(--muted); }

.gift-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1.25rem;
  margin: 2.6rem auto 0;
}

.gift-card {
  position: relative;
  display: flex;
  min-height: 260px;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid rgb(23 75 67 / 8%);
  border-radius: 1.5rem;
  box-shadow: 0 12px 30px rgb(29 83 69 / 7%);
  color: var(--ink);
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.gift-card:hover { transform: translateY(-7px) rotate(-1deg); box-shadow: 0 20px 36px rgb(29 83 69 / 13%); }
.gift-card:active { transform: translateY(-2px) scale(.99); }
.gift-mint { background: #d3f0e4; }
.gift-peach { background: #fae5d8; }
.gift-lilac { background: #e8e2f5; }

.gift-number {
  position: absolute;
  top: 1.15rem;
  left: 1.25rem;
  color: rgb(23 75 67 / 55%);
  font-size: .75rem;
  font-weight: 700;
  letter-spacing: .1em;
}

.gift-emoji { font-size: 5rem; filter: drop-shadow(0 8px 8px rgb(23 75 67 / 10%)); transition: transform .25s ease; }
.gift-card:hover .gift-emoji { transform: translateY(-5px) rotate(5deg) scale(1.08); }
.gift-label { margin-top: .8rem; color: #456d63; font-size: .83rem; font-weight: 600; }
.random-gift { margin-top: 1.7rem; padding: .75rem 1.2rem; border: 1px solid #a9d6c6; border-radius: 999px; color: #367c6b; background: transparent; cursor: pointer; font-weight: 700; transition: color .2s ease, background .2s ease, transform .2s ease; }
.random-gift:hover { transform: translateY(-2px); color: white; background: #438f7a; }
.random-gift span { margin-right: .35rem; }
.closing-note { margin: 2.6rem 0 0; color: #438a78; font-family: 'Playfair Display', Georgia, serif; font-size: 1.3rem; }

.gift-dialog {
  position: fixed;
  width: min(440px, calc(100% - 2rem));
  max-width: none;
  padding: 2.8rem 2rem 2rem;
  border: 1px solid rgb(23 75 67 / 10%);
  border-radius: 1.5rem;
  color: var(--ink);
  background: #fbfffc;
  box-shadow: 0 24px 90px rgb(15 57 48 / 25%);
  text-align: center;
}

.gift-dialog[open] { animation: pop-in .25s ease-out both; }
.gift-dialog::backdrop { background: rgb(17 49 43 / 45%); backdrop-filter: blur(4px); }
.dialog-close { position: absolute; top: .8rem; right: 1rem; border: 0; color: #55746d; background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }
.dialog-sparkle { margin-bottom: .7rem; color: #e6a84e; font-size: 2.5rem; }
.gift-dialog h2 { margin-top: .6rem; font-size: 2.2rem; }
.dialog-message { margin: 1rem 0 1.5rem; color: var(--muted); line-height: 1.75; }
.dialog-done { padding: .85rem 1.25rem; border: 0; border-radius: 999px; color: white; background: #438f7a; cursor: pointer; font-weight: 700; transition: background .2s ease, transform .2s ease; }
.dialog-done:hover { transform: translateY(-2px); background: #317a67; }

.letter-dialog {
  position: fixed;
  width: min(480px, calc(100% - 2rem));
  max-width: none;
  max-height: min(90vh, 760px);
  overflow-y: auto;
  padding: 2.7rem 1.7rem 1.7rem;
  border: 1px solid rgb(23 75 67 / 10%);
  border-radius: 1.4rem;
  color: var(--ink);
  background: #fbfffc;
  box-shadow: 0 24px 90px rgb(15 57 48 / 25%);
  text-align: center;
}

.letter-dialog[open] { animation: pop-in .25s ease-out both; }
.letter-dialog::backdrop { background: rgb(17 49 43 / 48%); backdrop-filter: blur(4px); }
.letter-dialog-close { position: absolute; z-index: 1; top: .7rem; right: 1rem; border: 0; color: #55746d; background: transparent; cursor: pointer; font-size: 2rem; line-height: 1; }
.letter-dialog-photo { position: relative; display: grid; aspect-ratio: 16 / 9; overflow: hidden; place-items: center; margin-bottom: 1.3rem; border-radius: .8rem; background: linear-gradient(145deg, #d6efe3, #f3e7c9); }
.letter-dialog-photo img { position: absolute; inset: 0; display: none; width: 100%; height: 100%; object-fit: cover; }
.letter-dialog-photo.has-image img { display: block; }
.letter-dialog-photo.has-image .photo-placeholder { display: none; }
.letter-dialog h2 { margin: .5rem 0; font-family: 'Playfair Display', Georgia, serif; font-size: 2rem; }
.letter-dialog-message { margin: 1rem 0 1.4rem; color: var(--muted); font-family: 'Segoe Print', 'Bradley Hand', cursive; line-height: 1.8; }
.letter-dialog-message.is-long-letter { font-size: .92rem; text-align: left; white-space: pre-line; }
.letter-dialog-done { padding: .75rem 1.15rem; border: 0; border-radius: 999px; color: white; background: #438f7a; cursor: pointer; font-weight: 700; }

.confetti-layer { position: fixed; z-index: 5; inset: 0; overflow: hidden; pointer-events: none; }
.confetti { position: absolute; top: -1rem; width: var(--size); height: calc(var(--size) * 1.5); border-radius: 2px; background: var(--color); opacity: .9; animation: fall var(--duration) linear var(--delay) forwards; }
.section-reveal { opacity: 0; transform: translateY(24px); transition: opacity .75s ease, transform .75s cubic-bezier(.2, .7, .2, 1); }
.section-reveal.is-visible { opacity: 1; transform: translateY(0); }

@keyframes fall {
  to { transform: translate3d(var(--drift), 110vh, 0) rotate(var(--spin)); opacity: .2; }
}
@keyframes pop-in { from { opacity: 0; transform: translateY(12px) scale(.96); } to { opacity: 1; transform: translateY(0) scale(1); } }
@keyframes nudge { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(4px); } }
@keyframes polaroid-in { from { opacity: 0; translate: 0 8px; } to { opacity: 1; translate: 0 0; } }
@keyframes thumbtack-press {
  0% { opacity: 0; transform: translateY(-.65rem) scale(.65); }
  55% { opacity: 1; transform: translateY(.12rem) scale(1.18); }
  78% { transform: translateY(-.04rem) scale(.96); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}
@keyframes orb-drift { from { transform: translate3d(-1.5rem, -1rem, 0) scale(.98); } to { transform: translate3d(1.5rem, 1.4rem, 0) scale(1.04); } }
@keyframes background-breathe { from { background-position: 0% 0%; } to { background-position: 100% 100%; } }
@keyframes star-float { 0%, 100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-12px) rotate(12deg); } }
@keyframes welcome-card-enter { to { opacity: 1; transform: translateY(0) scale(1) rotate(0); } }
@keyframes welcome-flap-open { to { transform: rotateX(180deg); } }
@keyframes welcome-message-show { to { opacity: 1; transform: translateY(-.15rem); } }
@keyframes welcome-intro-exit { to { opacity: 0; visibility: hidden; } }
@keyframes balloon-float {
  0% { opacity: 0; transform: translate3d(0, 0, 0) rotate(-7deg); }
  12%, 86% { opacity: .52; }
  50% { transform: translate3d(1rem, -60vh, 0) rotate(7deg); }
  100% { opacity: 0; transform: translate3d(-.7rem, -125vh, 0) rotate(-8deg); }
}
@keyframes candle-flicker {
  0%, 100% { transform: rotate(-45deg) translateY(0) scale(.96, 1); filter: brightness(.96); box-shadow: 0 0 .6rem rgb(255 151 57 / 65%); }
  22% { transform: rotate(-40deg) translate(1px, -1px) scale(1, 1.08); filter: brightness(1.12); box-shadow: 0 0 1rem rgb(255 181 72 / 88%); }
  48% { transform: rotate(-48deg) translate(-1px, 0) scale(.94, .96); filter: brightness(1.02); }
  73% { transform: rotate(-42deg) translate(1px, -1px) scale(1.04, 1.1); filter: brightness(1.16); box-shadow: 0 0 1.1rem rgb(255 172 65 / 90%); }
}
@keyframes record-spin { to { rotate: 360deg; } }

@media (max-width: 700px) {
  .hero { min-height: 690px; min-height: 90svh; }
  .hero h1 { font-size: clamp(2.5rem, 14vw, 6rem); }
  .eyebrow { font-size: .66rem; letter-spacing: .12em; }
  .welcome-intro { padding: 1rem; }
  .welcome-card { width: min(100%, 27rem); min-height: min(52svh, 18rem); border-radius: 1rem; }
  .welcome-card::before { height: 48%; }
  .welcome-card-content strong { font-size: clamp(3.2rem, 16vw, 4.6rem); }
  .welcome-card-content p { font-size: .62rem; letter-spacing: .11em; }
  .welcome-card-content small { margin-top: 1rem; font-size: 1rem; }
  .page-glow-two { display: none; }
  .balloon-two, .balloon-three { display: none; }
  .balloon-one { left: 2%; }
  .balloon-four { right: 2%; }
  .music-section { padding: 0 1rem 3rem; }
  .music-player { grid-template-columns: 3.8rem minmax(0, 1fr); gap: .9rem; padding: 1rem; }
  .record-art { width: 3.8rem; border-width: 3px; }
  .record-art span { width: 1.6rem; border-width: 2px; }
  .music-controls { grid-template-columns: 2.3rem minmax(3rem, 1fr) 1.5rem 3.5rem; gap: .4rem; }
  .music-play { width: 2.3rem; }
  .music-volume-icon { width: 1.5rem; }
  .music-volume { width: 3.5rem; }
  .music-content h2 { font-size: 1.2rem; }
  .memories-section { padding: 4rem 1rem; }
  .reminders-section { padding: 4rem 1rem; }
  .reminders-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 620px; gap: .9rem; margin-top: 1.8rem; }
  .reminder-copy { padding: .75rem; }
  .reminder-tag { font-size: .54rem; }
  .reminder-copy h3 { font-size: 1.05rem; }
  .wish-section { padding: 4rem 1rem; }
  .birthday-cake { max-width: 300px; }
  .photo-carousel { grid-template-columns: 2.4rem minmax(0, 1fr) 2.4rem; gap: .35rem; }
  .carousel-arrow { width: 2.3rem; height: 2.3rem; font-size: 1.1rem; }
  .polaroid-slide { padding: .75rem .75rem 2.8rem; }
  .polaroid-slide figcaption { font-size: 1rem; }
  .photo-tip { max-width: 27rem; }
  .reasons-section { padding: 4rem 1rem; }
  .reasons-list { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.8rem; padding: 1.2rem; border-width: .45rem; }
  .reasons-list li { min-height: 148px; padding: 1.1rem .8rem 1.6rem; font-size: .86rem; }
  .letter-section { padding: 4rem 1rem 4.5rem; }
  .letter-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; margin-top: 1.8rem; }
  .mini-letter-note { min-height: 155px; padding: .8rem; font-size: .76rem; line-height: 1.6rem; }
  .gifts-section { padding-top: 4rem; }
  .gift-grid { grid-template-columns: 1fr; max-width: 390px; gap: 1rem; margin-top: 2rem; }
  .gift-card { min-height: 205px; }
  .gift-emoji { font-size: 4rem; }
  .party-button { padding: .85rem 1.1rem; }
}

@media (max-width: 420px) {
  .letter-grid { grid-template-columns: 1fr; max-width: 340px; }
  .mini-letter-note { min-height: 0; padding: .9rem 1rem 1rem; font-size: .84rem; line-height: 1.75rem; }
}

@media (max-width: 360px) {
  .music-player { grid-template-columns: 1fr; }
  .record-art { display: none; }
  .music-controls { grid-template-columns: 2.3rem minmax(3rem, 1fr) 1.5rem; }
  .music-volume { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .ambient-orb, .ambient-star, .ambient-balloon, .ambient-background { animation: none; }
  .ambient-balloon { display: none; }
}
