:root {
  --sky: #7ec8ff;
  --light-sky: #ddf4ff;
  --blue: #238fe8;
  --deep-blue: #156bb2;
  --yellow: #ffd23f;
  --ink: #533821;
  --white: #ffffff;
  --sand: #fff3d8;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  color: var(--ink);
  background:
    radial-gradient(circle at 12% 16%, rgba(255, 255, 255, .95) 0 78px, transparent 80px),
    radial-gradient(circle at 86% 74%, rgba(255, 242, 189, .65) 0 86px, transparent 88px),
    linear-gradient(135deg, #eaf9ff, #b9e4ff 48%, #ffffff);
  font-family: Poppins, Arial, sans-serif;
}

.invitation {
  width: min(100vw, 430px);
  height: min(100vh, 790px);
  margin: 0 auto;
  position: relative;
  overflow: hidden;
  background: var(--white);
  box-shadow: 0 24px 70px rgba(30, 112, 181, .22);
}

.scene {
  position: absolute;
  inset: 0;
  min-height: 100%;
  overflow: hidden;
  padding: 22px 24px 96px;
  isolation: isolate;
  opacity: 0;
  transform: translateX(24px) scale(.985);
  transition: opacity 950ms ease, transform 950ms ease;
  pointer-events: none;
  background:
    radial-gradient(circle at 24% 12%, rgba(255, 255, 255, .95) 0 78px, transparent 80px),
    radial-gradient(circle at 82% 34%, rgba(221, 244, 255, .85) 0 92px, transparent 94px),
    radial-gradient(circle at 13% 72%, rgba(126, 200, 255, .26) 0 98px, transparent 100px),
    linear-gradient(180deg, #dff5ff 0%, #ffffff 30%, #ffffff 66%, #cdeeff 100%);
}

.scene.is-active {
  opacity: 1;
  transform: translateX(0) scale(1);
  pointer-events: auto;
}

.sparkles {
  position: absolute;
  inset: 0;
  z-index: -1;
  opacity: .55;
  background-image:
    radial-gradient(circle, rgba(255, 255, 255, .95) 0 2px, transparent 2.8px),
    radial-gradient(circle, rgba(35, 143, 232, .28) 0 1.4px, transparent 2.2px);
  background-size: 48px 48px, 31px 31px;
  animation: sparkle 10s linear infinite;
}

.bunting {
  position: absolute;
  top: 9px;
  left: 44px;
  right: 40px;
  height: 65px;
  display: flex;
  justify-content: space-around;
  border-top: 2px solid rgba(21, 107, 178, .38);
  transform: rotate(-1deg);
}

.bunting span {
  width: 34px;
  height: 42px;
  background: var(--sky);
  clip-path: polygon(0 0, 100% 0, 100% 76%, 50% 100%, 0 76%);
  animation: sway 3.5s ease-in-out infinite;
  transform-origin: top center;
}

.bunting span:nth-child(2),
.bunting span:nth-child(4) {
  background:
    radial-gradient(circle, #fff 0 2.5px, transparent 3px),
    #a9ddff;
  background-size: 13px 13px;
  animation-delay: -.9s;
}

.bunting span:nth-child(3) {
  background: #5eb7f8;
  animation-delay: -1.6s;
}

.cover-copy {
  position: relative;
  z-index: 3;
  margin-top: 146px;
  text-align: center;
}

.cover-copy p {
  width: min(100%, 320px);
  margin: 0 auto 6px;
  color: #5b351f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.03rem, 4.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1.12;
  text-transform: uppercase;
}

.cover .cover-copy p {
  animation: datePop 3.2s ease-in-out infinite;
}

.cover h1 {
  animation: headlineFloat 2.7s ease-in-out infinite;
}

h1,
h2,
.baby-name {
  margin: 0;
  color: var(--blue);
  font-family: "Great Vibes", "Pacifico", cursive;
  font-weight: 400;
  text-align: center;
  text-shadow: 0 2px 0 #fff, 0 8px 18px rgba(35, 143, 232, .22);
}

h1 {
  font-size: clamp(4.4rem, 18vw, 5.8rem);
  line-height: .82;
}

h2 {
  font-size: clamp(3.2rem, 14vw, 4.7rem);
  line-height: .92;
}

.photo-ring {
  position: relative;
  z-index: 3;
  width: min(70vw, 292px);
  aspect-ratio: 1;
  margin: 38px auto 0;
  overflow: hidden;
  border: 7px solid #fff;
  border-radius: 50%;
  outline: 4px solid var(--blue);
  background: var(--light-sky);
  box-shadow: 0 16px 38px rgba(39, 128, 204, .25);
  animation: photoFloat 5.8s ease-in-out infinite;
}

.photo-ring::after,
.baby-peek::after {
  content: "";
  position: absolute;
  inset: -7px;
  z-index: 2;
  border-radius: inherit;
  border: 3px dashed rgba(255, 210, 63, .85);
  pointer-events: none;
  animation: haloSpin 13s linear infinite;
}

.photo-ring::before,
.baby-peek::before {
  content: "";
  position: absolute;
  inset: -10px;
  z-index: 0;
  background-position: center;
  background-size: cover;
  filter: blur(10px) saturate(1.08);
  transform: scale(1.08);
}

.main-photo::before {
  background-image: url("baby-floral.png");
}

.closing-photo::before,
.baby-peek::before {
  background-image: url("baby-cake.png");
}

.photo-ring img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.main-photo img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  animation: photoZoomGlow 5s ease-in-out infinite;
}

.closing-photo {
  margin-top: 42px;
}

.closing-photo img {
  object-fit: contain;
  object-position: center center;
  transform: none;
  animation: photoZoomGlow 5.2s ease-in-out infinite;
}

.baby-name {
  position: relative;
  z-index: 3;
  margin-top: 34px;
  font-size: clamp(3.4rem, 15vw, 5rem);
  line-height: .8;
}

.closing-name {
  margin-top: 34px;
  font-size: clamp(3rem, 13vw, 4.4rem);
}

.cover .baby-name,
.closing-name {
  animation: nameWave 3s ease-in-out infinite;
}

.date-block {
  position: relative;
  z-index: 3;
  margin-top: 104px;
  text-align: center;
}

.date,
.time {
  margin: 10px 0 0;
  color: #5b351f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.32rem, 5vw, 1.7rem);
  font-weight: 800;
  line-height: 1.06;
  text-transform: uppercase;
}

.time {
  margin-top: 7px;
  font-size: clamp(1.1rem, 4.6vw, 1.42rem);
}

.details {
  padding: 18px 18px 88px;
  background:
    radial-gradient(circle at 10% 4%, rgba(255, 241, 189, .78) 0 34px, transparent 35px),
    radial-gradient(circle at 20% 7%, rgba(126, 200, 255, .9) 0 39px, transparent 40px),
    radial-gradient(circle at 8% 14%, rgba(183, 227, 255, .88) 0 28px, transparent 29px),
    radial-gradient(circle at 88% 94%, rgba(126, 200, 255, .38) 0 94px, transparent 96px),
    linear-gradient(180deg, #f9fdff 0%, #ffffff 52%, #e8f8ff 100%);
}

.details .bunting {
  top: 10px;
  left: 110px;
  right: 48px;
  height: 54px;
}

.details .bunting span {
  width: 30px;
  height: 36px;
}

.details .rainbow-small {
  top: 46px;
  opacity: .42;
  transform: translateX(-50%) scale(1.7);
}

.details .balloon-pair-details {
  right: -20px;
  top: 386px;
  transform: scale(.58) rotate(8deg);
  z-index: 1;
}

.details .balloon-spray-detail-one {
  left: -16px;
  top: 4px;
  bottom: auto;
  transform: scale(.82) rotate(-8deg);
  z-index: 3;
}

.details .date-block {
  margin-top: 92px;
}

.save-title {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  column-gap: .2em;
  row-gap: .05em;
  color: var(--blue);
  font-size: clamp(3.15rem, 13vw, 4.35rem);
  line-height: .82;
  overflow-wrap: normal;
  text-wrap: balance;
}

.save-title > span {
  display: inline-block;
  animation: letterDance 1.9s ease-in-out infinite;
}

.animated-word {
  display: inline-block;
  white-space: nowrap;
}

.animated-letter {
  display: inline-block;
  transform-origin: center bottom;
  animation: letterBounce 2.4s ease-in-out infinite;
}

.save-title .animated-word {
  animation: none;
}

.save-title > span:nth-child(2) { animation-delay: .06s; }
.save-title > span:nth-child(3) { animation-delay: .12s; }
.save-title > span:nth-child(4) { animation-delay: .18s; margin-right: .18em; }
.save-title > span:nth-child(5) { animation-delay: .24s; }
.save-title > span:nth-child(6) { animation-delay: .3s; }
.save-title > span:nth-child(7) { animation-delay: .36s; margin-right: .18em; }
.save-title > span:nth-child(8) { animation-delay: .42s; }
.save-title > span:nth-child(9) { animation-delay: .48s; }
.save-title > span:nth-child(10) { animation-delay: .54s; }
.save-title > span:nth-child(11) { animation-delay: .6s; }

.details .date {
  margin-top: 14px;
  font-size: clamp(1.28rem, 5vw, 1.6rem);
  letter-spacing: .02em;
}

.details .time {
  font-size: clamp(1.03rem, 4.5vw, 1.32rem);
}

.details .details-layout {
  width: min(100%, 380px);
  margin-top: 16px;
}

.details .event-card {
  width: 100%;
  min-height: 112px;
  margin-top: 0;
  grid-template-columns: 116px 1fr;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.details .event-card.reception {
  grid-template-columns: 118px 1fr;
  margin-top: 0;
}

.details .event-copy p {
  font-size: .9rem;
}

.details .event-copy strong {
  margin-top: 4px;
  font-size: clamp(1.2rem, 5vw, 1.58rem);
}

.details .event-copy em {
  font-size: .78rem;
}

.details .church-art,
.details .pool-art {
  height: 104px;
}

.details .church-art::before {
  left: 34px;
  width: 50px;
  height: 64px;
  border-width: 4px;
}

.details .church-art::after {
  left: 17px;
  bottom: 58px;
  width: 84px;
  height: 48px;
}

.details .church-art span {
  left: 57px;
  height: 34px;
}

.details .church-art span::before {
  top: 11px;
}

.details .pool-art::before {
  left: 20px;
  bottom: 11px;
  width: 84px;
  height: 52px;
}

.details .pool-art::after {
  left: 38px;
  top: 16px;
  width: 56px;
  height: 38px;
}

.details .pool-art span {
  left: 48px;
  top: 30px;
}

.route-scene {
  position: relative;
  z-index: 4;
  height: 104px;
  margin: -4px 0 2px;
}

.road-line {
  position: absolute;
  left: 50px;
  bottom: 16px;
  width: 170px;
  height: 58px;
  border-left: 20px solid #4d3b33;
  border-bottom: 20px solid #4d3b33;
  border-radius: 0 0 0 28px;
}

.road-line::before {
  content: "";
  position: absolute;
  left: -11px;
  top: 12px;
  width: 3px;
  height: 11px;
  border-radius: 99px;
  background: rgba(255, 255, 255, .8);
  box-shadow: 0 28px 0 rgba(255, 255, 255, .8), 46px 45px 0 rgba(255, 255, 255, .8), 94px 45px 0 rgba(255, 255, 255, .8);
}

.moving-car {
  position: absolute;
  left: 0;
  bottom: 20px;
  width: 70px;
  height: 48px;
  animation: carDrive 4.2s ease-in-out infinite;
}

.car-body {
  position: absolute;
  left: 7px;
  top: 15px;
  width: 54px;
  height: 25px;
  border-radius: 16px 16px 9px 9px;
  background: #65c1ad;
  box-shadow: inset -8px -6px 0 rgba(24, 116, 99, .14);
}

.car-body::before {
  content: "";
  position: absolute;
  right: -5px;
  top: 13px;
  width: 7px;
  height: 6px;
  border-radius: 999px;
  background: #ff9859;
}

.car-window {
  position: absolute;
  left: 22px;
  top: 5px;
  width: 27px;
  height: 19px;
  border-radius: 14px 14px 3px 3px;
  background: #dcf7ff;
  border: 4px solid #65c1ad;
}

.wheel {
  position: absolute;
  bottom: 3px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #3f3f3f;
  box-shadow: inset 0 0 0 3px #eef8ff;
  animation: wheelSpin .65s linear infinite;
}

.wheel-left { left: 16px; }
.wheel-right { right: 16px; }

.pool-building {
  position: absolute;
  right: 30px;
  bottom: 16px;
  width: 104px;
  height: 68px;
  border-radius: 8px 8px 5px 5px;
  background:
    linear-gradient(#7bb4da 0 23px, transparent 23px),
    linear-gradient(90deg, #d8f2ff 0 22px, #7cb6d8 22px 27px, #d8f2ff 27px 49px, #7cb6d8 49px 54px, #d8f2ff 54px 76px, #7cb6d8 76px 81px, #d8f2ff 81px);
  border: 4px solid #8cb1c5;
  box-shadow: 0 11px 0 -4px #6cc8f0;
}

.pool-building::before,
.pool-building::after {
  content: "";
  position: absolute;
  bottom: -8px;
  width: 24px;
  height: 28px;
  border-radius: 50% 50% 8px 8px;
  background: #62be7c;
  transform: rotate(-16deg);
}

.pool-building::before { left: -18px; }
.pool-building::after {
  right: -20px;
  transform: rotate(14deg);
}

.pool-building span {
  position: absolute;
  left: 50%;
  bottom: -18px;
  width: 86px;
  height: 22px;
  border-radius: 50%;
  background: #67c7f8;
  border: 4px solid #f5d8ad;
  transform: translateX(-50%);
}

.details .baby-peek {
  position: absolute;
  right: 12px;
  bottom: 58px;
  width: 118px;
  margin: 0;
  border-width: 4px;
  outline-width: 3px;
}

.event-card {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 86px 1fr;
  gap: 10px;
  align-items: center;
  width: min(100%, 350px);
  margin: 22px auto 0;
  padding: 10px 12px;
  border: 2px solid rgba(126, 200, 255, .28);
  border-radius: 18px;
  background: rgba(255, 255, 255, .72);
  box-shadow: 0 12px 28px rgba(39, 128, 204, .12);
  backdrop-filter: blur(3px);
}

.details-layout {
  position: relative;
  z-index: 3;
  width: min(100%, 360px);
  margin: 0 auto;
}

.event-card.reception {
  margin-top: 12px;
}

.event-copy {
  text-align: center;
  text-transform: uppercase;
}

.event-copy p {
  margin: 0;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .9rem;
  font-weight: 800;
}

.event-copy strong {
  display: block;
  margin-top: 5px;
  color: var(--blue);
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(1.02rem, 4.5vw, 1.28rem);
  font-weight: 800;
  line-height: 1;
}

.event-copy em {
  display: block;
  margin-top: 6px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: .76rem;
  font-weight: 700;
}

.church-art,
.pool-art {
  position: relative;
  height: 74px;
}

.church-art::before {
  content: "";
  position: absolute;
  left: 22px;
  bottom: 0;
  width: 42px;
  height: 46px;
  border: 3px solid #b98554;
  border-radius: 7px 7px 3px 3px;
  background: #fff7e9;
}

.church-art::after {
  content: "";
  position: absolute;
  left: 13px;
  bottom: 41px;
  width: 60px;
  height: 40px;
  background: #9a673f;
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.church-art span {
  position: absolute;
  left: 38px;
  top: 0;
  width: 7px;
  height: 24px;
  border-radius: 99px;
  background: #6a432b;
  z-index: 2;
}

.church-art span::before {
  content: "";
  position: absolute;
  left: -8px;
  top: 8px;
  width: 23px;
  height: 6px;
  border-radius: 99px;
  background: #6a432b;
}

.pool-art::before {
  content: "";
  position: absolute;
  left: 11px;
  bottom: 8px;
  width: 68px;
  height: 44px;
  border-radius: 10px;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, .85) 0 12%, transparent 12% 24%, rgba(255, 255, 255, .65) 24% 36%, transparent 36%),
    #68c5f7;
  border: 4px solid #f4d6a9;
  transform: perspective(100px) rotateX(12deg) rotateZ(-2deg);
}

.pool-art::after {
  content: "";
  position: absolute;
  left: 24px;
  top: 12px;
  width: 42px;
  height: 30px;
  background: #eef8ff;
  border: 3px solid #7baed0;
  box-shadow: 0 12px 0 #e7c28b;
}

.pool-art span {
  position: absolute;
  left: 32px;
  top: 22px;
  width: 28px;
  height: 10px;
  background: var(--sky);
}

.baby-peek {
  position: relative;
  z-index: 3;
  width: min(66vw, 260px);
  aspect-ratio: 1;
  height: auto;
  margin: 16px auto 0;
  overflow: hidden;
  border: 6px solid #fff;
  border-radius: 50%;
  outline: 4px solid rgba(35, 143, 232, .88);
  background: var(--light-sky);
  box-shadow: 0 15px 34px rgba(39, 128, 204, .2);
  animation: photoFloat 5.2s ease-in-out infinite;
}

.baby-peek img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  animation: pictureGlow 4.4s ease-in-out infinite;
}

.baby-peek figcaption {
  display: none;
}

.see-you {
  position: relative;
  z-index: 3;
  margin-top: 142px;
  font-size: clamp(3.4rem, 15vw, 5rem);
  animation: headlineFloat 2.8s ease-in-out infinite;
}

.thanks {
  position: relative;
  z-index: 3;
  width: min(100%, 310px);
  margin: 18px auto 0;
  color: #5b351f;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.28;
  text-align: center;
  animation: thanksGlow 3.4s ease-in-out infinite;
}

.cloud-floor {
  position: absolute;
  left: -30px;
  right: -30px;
  bottom: -10px;
  height: 128px;
  z-index: 1;
  background:
    radial-gradient(circle at 8% 50%, rgba(255, 255, 255, .96) 0 34px, transparent 35px),
    radial-gradient(circle at 24% 40%, rgba(255, 255, 255, .96) 0 48px, transparent 49px),
    radial-gradient(circle at 46% 56%, rgba(255, 255, 255, .96) 0 40px, transparent 41px),
    radial-gradient(circle at 66% 42%, rgba(255, 255, 255, .96) 0 52px, transparent 53px),
    radial-gradient(circle at 86% 55%, rgba(255, 255, 255, .96) 0 42px, transparent 43px),
    radial-gradient(circle at 98% 44%, rgba(255, 255, 255, .96) 0 44px, transparent 45px);
}

.cloud {
  position: absolute;
  z-index: 1;
  width: 132px;
  height: 70px;
  opacity: .82;
  background:
    radial-gradient(circle at 20% 62%, #fff 0 28px, transparent 29px),
    radial-gradient(circle at 44% 42%, #fff 0 38px, transparent 39px),
    radial-gradient(circle at 73% 62%, #fff 0 31px, transparent 32px);
  animation: drift 7s ease-in-out infinite;
}

.cloud-top-left { left: -32px; top: 86px; }
.cloud-top-right { right: -44px; top: 130px; animation-delay: -2s; }
.cloud-mid-left { left: -44px; top: 202px; }
.cloud-mid-right { right: -46px; top: 64px; animation-delay: -1.8s; }
.cloud-bottom-left { left: -48px; top: 294px; }
.cloud-bottom-right { right: -42px; top: 100px; animation-delay: -2.4s; }

.balloons {
  position: absolute;
  z-index: 2;
  width: 120px;
  height: 124px;
  background:
    radial-gradient(circle at 32% 30%, #fff1bd 0 20px, transparent 21px),
    radial-gradient(circle at 52% 22%, #7ec8ff 0 27px, transparent 28px),
    radial-gradient(circle at 74% 42%, #b7e3ff 0 27px, transparent 28px),
    radial-gradient(circle at 39% 64%, #9bd7ff 0 25px, transparent 26px);
  animation: floaty 4.8s ease-in-out infinite;
}

.balloons::after {
  content: "";
  position: absolute;
  left: 55px;
  top: 76px;
  width: 1px;
  height: 56px;
  background: rgba(91, 53, 31, .34);
  box-shadow: -22px -10px 0 rgba(91, 53, 31, .24), 22px -8px 0 rgba(91, 53, 31, .24);
  transform: rotate(7deg);
}

.balloons-left { top: 18px; left: -24px; }
.balloons-right { top: 132px; right: -48px; transform: scale(.72); animation-delay: -1.3s; }
.balloons-bottom { right: -28px; bottom: 100px; transform: scale(.92); animation-delay: -1s; }

.balloons::before {
  content: "";
  position: absolute;
  left: 24px;
  top: 11px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  box-shadow: 30px -8px 0 rgba(255, 255, 255, .62), 58px 13px 0 rgba(255, 255, 255, .56);
}

.balloon-pair {
  position: absolute;
  z-index: 2;
  width: 86px;
  height: 130px;
  animation: bobble 5.4s ease-in-out infinite;
}

.balloon-pair span {
  position: absolute;
  top: 0;
  width: 42px;
  height: 54px;
  border-radius: 50% 50% 46% 46%;
  background: #ffd23f;
  box-shadow: inset -8px -11px 0 rgba(214, 149, 35, .14), 0 10px 18px rgba(39, 128, 204, .12);
}

.balloon-pair span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 9px;
  width: 10px;
  height: 15px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .68);
  transform: rotate(24deg);
}

.balloon-pair span::after {
  content: "";
  position: absolute;
  left: 19px;
  top: 52px;
  width: 1px;
  height: 73px;
  background: rgba(91, 53, 31, .32);
}

.balloon-pair span:nth-child(1) {
  left: 6px;
  background: #7ec8ff;
  transform: rotate(-8deg);
}

.balloon-pair span:nth-child(2) {
  right: 4px;
  top: 18px;
  background: #fff1bd;
  transform: rotate(8deg);
}

.balloon-pair-cover {
  left: 4px;
  top: 530px;
  transform: scale(.78) rotate(-6deg);
  animation-delay: -1.6s;
}

.balloon-pair-details {
  right: -12px;
  top: 420px;
  transform: scale(.7) rotate(8deg);
  animation-delay: -2.4s;
}

.balloon-pair-closing {
  left: -6px;
  top: 128px;
  transform: scale(.76) rotate(-3deg);
  animation-delay: -.8s;
}

.balloon-spray {
  position: absolute;
  z-index: 4;
  width: 96px;
  height: 148px;
  animation: floaty 4.9s ease-in-out infinite;
}

.balloon-spray span {
  position: absolute;
  width: 38px;
  height: 50px;
  border-radius: 50% 50% 45% 45%;
  background: #7ec8ff;
  box-shadow: inset -7px -10px 0 rgba(21, 107, 178, .13), 0 10px 18px rgba(35, 143, 232, .12);
}

.balloon-spray span::before {
  content: "";
  position: absolute;
  left: 9px;
  top: 8px;
  width: 9px;
  height: 13px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .72);
  transform: rotate(22deg);
}

.balloon-spray span::after {
  content: "";
  position: absolute;
  left: 18px;
  top: 48px;
  width: 1px;
  height: 88px;
  background: rgba(91, 53, 31, .3);
  transform-origin: top;
}

.balloon-spray span:nth-child(1) {
  left: 3px;
  top: 25px;
  background: #fff1bd;
  transform: rotate(-10deg);
}

.balloon-spray span:nth-child(1)::after {
  transform: rotate(12deg);
}

.balloon-spray span:nth-child(2) {
  left: 29px;
  top: 0;
  width: 42px;
  height: 56px;
  background: #7ec8ff;
}

.balloon-spray span:nth-child(3) {
  right: 4px;
  top: 32px;
  background: #b7e3ff;
  transform: rotate(10deg);
}

.balloon-spray span:nth-child(3)::after {
  transform: rotate(-12deg);
}

.balloon-spray-left {
  top: 112px;
  left: 8px;
  transform: scale(.82) rotate(-8deg);
}

.balloon-spray-right {
  top: 160px;
  right: 8px;
  transform: scale(.74) rotate(8deg);
  animation-delay: -1.4s;
}

.balloon-spray-detail-one {
  left: 18px;
  bottom: 62px;
  transform: scale(.72) rotate(-5deg);
  animation-delay: -1.1s;
}

.balloon-spray-detail-two {
  right: 16px;
  top: 292px;
  transform: scale(.66) rotate(8deg);
  animation-delay: -2s;
}

.balloon-spray-close-one {
  left: 20px;
  bottom: 70px;
  transform: scale(.78) rotate(-8deg);
  animation-delay: -1.8s;
}

.balloon-spray-close-two {
  right: 16px;
  bottom: 148px;
  transform: scale(.72) rotate(7deg);
  animation-delay: -1s;
}

.cute-bear {
  position: absolute;
  z-index: 4;
  width: 74px;
  height: 92px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 38% 40%, #3e281a 0 2px, transparent 2.8px),
    radial-gradient(circle at 62% 40%, #3e281a 0 2px, transparent 2.8px),
    radial-gradient(circle at 50% 52%, #805436 0 5px, transparent 5.8px),
    #c99668;
  box-shadow:
    inset 0 -19px 0 rgba(130, 80, 45, .16),
    0 12px 18px rgba(50, 92, 130, .16);
  animation: bearBounce 4.6s ease-in-out infinite;
}

.cute-bear::before,
.cute-bear::after {
  content: "";
  position: absolute;
  top: 4px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background:
    radial-gradient(circle, #f3c79c 0 9px, transparent 10px),
    #c99668;
  z-index: -1;
}

.cute-bear::before {
  left: -8px;
}

.cute-bear::after {
  right: -8px;
}

.cute-bear span {
  position: absolute;
  left: 18px;
  bottom: 12px;
  width: 38px;
  height: 24px;
  border-radius: 50%;
  background: rgba(255, 241, 189, .8);
}

.cute-bear span::before,
.cute-bear span::after {
  content: "";
  position: absolute;
  bottom: -3px;
  width: 17px;
  height: 18px;
  border-radius: 50%;
  background: #b87d55;
}

.cute-bear span::before {
  left: -13px;
}

.cute-bear span::after {
  right: -13px;
}

.bear-cover {
  left: 24px;
  bottom: 78px;
  transform: scale(.72) rotate(-7deg);
}

.bear-closing {
  left: 30px;
  bottom: 66px;
  transform: scale(.78) rotate(-7deg);
  animation-delay: -1.3s;
}

.sleepy-moon {
  position: absolute;
  z-index: 3;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: #ffe7a6;
  box-shadow:
    -9px 0 0 0 #fff7d9 inset,
    0 8px 16px rgba(191, 126, 32, .15);
  animation: moonRock 5.4s ease-in-out infinite;
}

.sleepy-moon::before {
  content: "";
  position: absolute;
  left: 17px;
  top: 18px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8a6038;
  box-shadow: 14px 0 0 #8a6038;
}

.sleepy-moon::after {
  content: "";
  position: absolute;
  left: 21px;
  top: 29px;
  width: 14px;
  height: 7px;
  border-bottom: 2px solid #8a6038;
  border-radius: 0 0 99px 99px;
}

.moon-cover {
  right: 34px;
  top: 72px;
  transform: rotate(8deg) scale(.8);
}

.moon-closing {
  right: 40px;
  top: 152px;
  transform: rotate(-10deg) scale(.78);
  animation-delay: -1.8s;
}

.rainbow {
  position: absolute;
  z-index: 2;
  width: 98px;
  height: 58px;
  display: grid;
  place-items: center;
  opacity: .82;
}

.rainbow i {
  position: absolute;
  border: 7px solid transparent;
  border-bottom: 0;
  border-top-left-radius: 90px;
  border-top-right-radius: 90px;
}

.rainbow i:nth-child(1) {
  width: 92px;
  height: 50px;
  border-color: var(--blue);
  border-bottom: 0;
}

.rainbow i:nth-child(2) {
  width: 68px;
  height: 37px;
  border-color: #9ad8ff;
  border-bottom: 0;
}

.rainbow i:nth-child(3) {
  width: 44px;
  height: 24px;
  border-color: #ffe6a4;
  border-bottom: 0;
}

.rainbow-top { top: 87px; left: 50%; transform: translateX(-50%); }
.rainbow-small { top: 52px; left: 50%; transform: translateX(-50%) scale(.82); }
.rainbow-bottom { top: 80px; left: 50%; transform: translateX(-50%) scale(.86); }

.star {
  position: absolute;
  z-index: 3;
  width: 28px;
  height: 28px;
  background: #ffc95a;
  clip-path: polygon(50% 0, 61% 35%, 98% 35%, 68% 56%, 80% 94%, 50% 71%, 20% 94%, 32% 56%, 2% 35%, 39% 35%);
  filter: drop-shadow(0 5px 8px rgba(191, 126, 32, .2));
  animation: twinkle 2.8s ease-in-out infinite;
}

.star-a { left: 28px; top: 390px; }
.star-b { right: 27px; top: 350px; animation-delay: -1.2s; }
.star-c { left: 38px; bottom: 70px; animation-delay: -1.4s; }
.star-d { left: 38px; top: 316px; }
.star-e { right: 34px; top: 332px; animation-delay: -1.5s; }

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

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

.scene.is-active .reveal:nth-of-type(2) {
  transition-delay: 120ms;
}

.scene.is-active .reveal:nth-of-type(3) {
  transition-delay: 220ms;
}

.music-button {
  position: fixed;
  top: 18px;
  right: max(18px, calc((100vw - 430px) / 2 + 18px));
  z-index: 40;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 10px 28px rgba(35, 143, 232, .34);
  font: 800 .72rem/1 Poppins, Arial, sans-serif;
  cursor: pointer;
}

.start-screen {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  background: rgba(221, 244, 255, .72);
  backdrop-filter: blur(8px);
  transition: opacity 450ms ease, visibility 450ms ease;
}

.start-screen.is-hidden {
  opacity: 0;
  visibility: hidden;
}

.start-screen button {
  border: 0;
  border-radius: 999px;
  padding: 15px 28px;
  color: #fff;
  background: var(--blue);
  box-shadow: 0 16px 38px rgba(35, 143, 232, .32);
  font: 800 1rem/1 Poppins, Arial, sans-serif;
  cursor: pointer;
}

.details {
  padding: 18px 20px 84px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .08), rgba(221, 244, 255, .2)),
    url("Screenshot 2026-07-11 201059.png") center / cover no-repeat;
}

.details .sparkles {
  opacity: 0;
}

.details .poster-wash,
.details .poster-balloons,
.details .teddy-bucket,
.details .poster-star,
.details .bunting,
.details .rainbow-small,
.details .cloud-floor,
.details .star-c {
  display: none;
}

.poster-wash {
  position: absolute;
  left: -18px;
  right: -18px;
  z-index: 0;
  pointer-events: none;
}

.poster-wash-top {
  top: -10px;
  height: 144px;
  background:
    radial-gradient(circle at 8% 28%, rgba(126, 200, 255, .52) 0 38px, transparent 40px),
    radial-gradient(circle at 26% 18%, rgba(189, 226, 255, .46) 0 50px, transparent 52px),
    radial-gradient(circle at 49% 25%, rgba(126, 200, 255, .34) 0 44px, transparent 46px),
    radial-gradient(circle at 78% 20%, rgba(183, 227, 255, .42) 0 54px, transparent 56px);
  filter: blur(3px);
}

.poster-wash-bottom {
  bottom: -5px;
  height: 130px;
  background:
    radial-gradient(circle at 10% 68%, #fff 0 34px, transparent 35px),
    radial-gradient(circle at 28% 55%, #fff 0 44px, transparent 45px),
    radial-gradient(circle at 48% 70%, #fff 0 38px, transparent 39px),
    radial-gradient(circle at 72% 56%, #fff 0 48px, transparent 49px),
    radial-gradient(circle at 94% 68%, #fff 0 36px, transparent 37px),
    linear-gradient(180deg, rgba(190, 230, 255, .26), rgba(184, 225, 250, .7));
}

.poster-balloons {
  position: absolute;
  z-index: 2;
  width: 118px;
  height: 110px;
  pointer-events: none;
  animation: bobble 5.2s ease-in-out infinite;
}

.poster-balloons-top {
  left: -12px;
  top: 0;
  background:
    radial-gradient(circle at 16% 45%, #f7ecd0 0 17px, transparent 18px),
    radial-gradient(circle at 32% 24%, #9ed8ff 0 22px, transparent 23px),
    radial-gradient(circle at 54% 32%, #d9efff 0 20px, transparent 21px),
    radial-gradient(circle at 71% 52%, #7ec8ff 0 21px, transparent 22px),
    radial-gradient(circle at 45% 62%, #fff1bd 0 18px, transparent 19px);
}

.teddy-bucket {
  position: absolute;
  left: 12px;
  top: 126px;
  z-index: 3;
  width: 58px;
  height: 72px;
  animation: floaty 4.8s ease-in-out infinite;
}

.teddy-bucket::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 5px;
  width: 30px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 42%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 68% 42%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 50% 58%, #7a5134 0 4px, transparent 5px),
    #c99668;
  box-shadow: -12px -1px 0 -4px #c99668, 12px -1px 0 -4px #c99668;
}

.teddy-bucket::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 2px;
  width: 42px;
  height: 42px;
  border-radius: 7px 7px 18px 18px;
  background: #d7ad80;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, .28);
}

.teddy-bucket span {
  position: absolute;
  left: 1px;
  top: 24px;
  width: 28px;
  height: 9px;
  border-radius: 999px;
  background: #7ec8ff;
  transform: rotate(-28deg);
  z-index: 2;
}

.poster-star {
  position: absolute;
  z-index: 3;
  width: 36px;
  height: 36px;
  background: #ffd877;
  clip-path: polygon(50% 0, 62% 33%, 97% 26%, 73% 54%, 90% 86%, 55% 72%, 28% 96%, 31% 59%, 0 42%, 37% 34%);
  filter: drop-shadow(0 5px 7px rgba(177, 129, 54, .16));
  animation: twinkle 3.2s ease-in-out infinite;
}

.poster-star::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #855d35;
  box-shadow: 10px 0 0 #855d35;
}

.poster-star::after {
  content: "";
  position: absolute;
  left: 14px;
  top: 20px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #855d35;
  border-radius: 0 0 99px 99px;
}

.poster-star-one { left: 82px; top: 117px; }
.poster-star-two { right: 22px; top: 105px; animation-delay: -1.1s; }
.poster-star-three { right: 40px; bottom: 52px; animation-delay: -1.9s; }

.details .bunting {
  top: 13px;
  left: 112px;
  right: 34px;
  z-index: 3;
  height: 58px;
  border-top-color: rgba(111, 150, 174, .48);
}

.details .bunting span {
  width: 31px;
  height: 39px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .8) 0 2px, transparent 3px),
    #94cdf2;
  background-size: 14px 14px;
}

.details .rainbow-small {
  top: 60px;
  z-index: 1;
  opacity: .7;
  transform: translateX(-50%) scale(1.3);
}

.details .rainbow-small i {
  border-width: 6px;
}

.details .cloud,
.details .balloon-pair-details,
.details .balloon-spray-detail-one {
  display: none;
}

.details .date-block {
  margin-top: 152px;
}

.save-title {
  color: var(--blue);
  font-size: clamp(3.15rem, 13vw, 4.35rem);
  line-height: .86;
  text-shadow: 0 2px 0 #fff, 0 5px 10px rgba(35, 143, 232, .18);
}

.details .date,
.details .time {
  margin-top: 14px;
  color: #4d2d1f;
  font-size: clamp(1.26rem, 5vw, 1.58rem);
  letter-spacing: .01em;
  animation: datePop 3s ease-in-out infinite;
}

.details .time {
  margin-top: 8px;
  font-size: clamp(1.08rem, 4.5vw, 1.34rem);
  animation-delay: .18s;
}

.details .details-layout {
  width: min(100%, 388px);
  margin-top: 18px;
}

.details .event-card {
  width: 100%;
  min-height: 112px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.details .ceremony-card {
  grid-template-columns: 146px 1fr;
  align-items: end;
}

.details .event-card.reception {
  grid-template-columns: 154px 1fr;
  align-items: center;
  margin-top: 2px;
  min-height: 96px;
}

.details .event-copy {
  text-align: center;
}

.details .event-copy p {
  color: #3b261d;
  font-size: .9rem;
}

.details .event-copy strong {
  margin-top: 3px;
  color: var(--blue);
  font-size: clamp(1.28rem, 5.3vw, 1.62rem);
  line-height: .9;
  animation: textPulse 2.4s ease-in-out infinite;
}

.details .reception strong {
  font-size: clamp(1.18rem, 4.9vw, 1.46rem);
}

.details .event-copy em {
  margin-top: 5px;
  color: #5a3828;
  font-size: .78rem;
}

.details .church-art {
  height: 122px;
  filter: drop-shadow(0 12px 11px rgba(76, 51, 35, .18));
}

.details .church-art::before {
  left: 34px;
  bottom: 0;
  width: 76px;
  height: 78px;
  border: 4px solid #a67653;
  border-radius: 8px 8px 5px 5px;
  background:
    radial-gradient(circle at 50% 26%, #c5efff 0 8px, #6ebee7 9px 10px, transparent 11px),
    linear-gradient(90deg, transparent 0 13px, #c49b75 13px 16px, transparent 16px 60px, #c49b75 60px 63px, transparent 63px),
    linear-gradient(180deg, transparent 0 41px, #8a5b3f 41px 44px, transparent 44px),
    linear-gradient(90deg, transparent 29px, #6f432e 29px 47px, transparent 47px),
    linear-gradient(180deg, #fffdf3 0%, #f1dfc9 100%);
  box-shadow:
    inset 0 -9px 0 rgba(164, 109, 73, .16),
    inset 0 0 0 3px rgba(255, 255, 255, .5);
}

.details .church-art::after {
  left: 22px;
  bottom: 72px;
  width: 100px;
  height: 54px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, .18) 0 23%, transparent 24%),
    linear-gradient(180deg, #7b4f34 0%, #5f3927 100%);
  clip-path: polygon(50% 0, 100% 100%, 0 100%);
}

.details .church-art span {
  left: 66px;
  top: 1px;
  width: 10px;
  height: 42px;
  border-radius: 99px;
  background: linear-gradient(180deg, #5d3727, #7b4a31);
  box-shadow: 0 34px 0 20px #f7ead7;
}

.details .church-art span::before {
  left: -10px;
  top: 12px;
  width: 30px;
  height: 7px;
  background: #6b432b;
}

.details .church-art span::after {
  content: "";
  position: absolute;
  left: -48px;
  top: 83px;
  width: 31px;
  height: 37px;
  border: 3px solid #b98862;
  border-radius: 15px 15px 4px 4px;
  background:
    linear-gradient(90deg, transparent 47%, rgba(255, 255, 255, .75) 47% 53%, transparent 53%),
    linear-gradient(180deg, #c8f1ff 0%, #73bfe7 100%);
  box-shadow:
    78px 0 0 -3px #c8f1ff,
    78px 0 0 0 #b98862,
    39px 35px 0 -8px #6f432e;
}

.route-scene {
  height: 114px;
  margin: -2px 0 0;
}

.road-line {
  left: 55px;
  bottom: 23px;
  width: 164px;
  height: 62px;
  border-left-width: 22px;
  border-bottom-width: 22px;
  border-color: #4d3b33;
}

.moving-car {
  bottom: 27px;
}

.pool-building {
  right: 36px;
  bottom: 22px;
  transform: scale(1.05);
}

.details .pool-art {
  display: none;
}

.details .event-card.reception {
  grid-template-columns: 1fr;
  row-gap: 4px;
  align-items: center;
}

.reception-house {
  display: block;
  grid-column: 1;
  justify-self: center;
  align-self: center;
  width: 178px;
  max-height: 132px;
  object-fit: contain;
  filter: drop-shadow(0 10px 13px rgba(72, 112, 137, .18));
  animation: pictureFloatTilt 4.8s ease-in-out infinite;
}

.details .baby-peek {
  position: absolute;
  right: 2px;
  bottom: 24px;
  width: 96px;
  aspect-ratio: .58;
  border: 0;
  border-radius: 46% 46% 22px 22px;
  outline: 0;
  background: transparent;
  box-shadow: none;
  animation: pictureFloatTilt 4.8s ease-in-out infinite;
}

.details .baby-peek::before,
.details .baby-peek::after {
  display: none;
}

.details .baby-peek img {
  object-fit: cover;
  object-position: 27% center;
  border-radius: inherit;
  filter: drop-shadow(0 12px 18px rgba(82, 68, 58, .18));
  animation: pictureGlow 4.2s ease-in-out infinite;
}

.details .star-c {
  left: 186px;
  bottom: 26px;
}

.details .cloud-floor {
  height: 98px;
  bottom: -6px;
  z-index: 1;
}

.cover {
  padding: 26px 24px 44px;
  background:
    radial-gradient(circle at 15% 43%, rgba(255, 255, 255, .82) 0 5px, transparent 6px),
    radial-gradient(circle at 24% 64%, rgba(255, 255, 255, .72) 0 4px, transparent 5px),
    radial-gradient(circle at 84% 64%, rgba(255, 255, 255, .78) 0 5px, transparent 6px),
    radial-gradient(circle at 33% 86%, rgba(255, 255, 255, .75) 0 4px, transparent 5px),
    linear-gradient(180deg, #b6e8f6 0%, #83c7e5 46%, #4c9bc7 100%);
}

.cover .sparkles {
  opacity: 0;
}

.cover .cover-wash,
.cover .cover-balloon-cloud,
.cover .cover-teddy-basket,
.cover .cover-teddy-float,
.cover .cover-cute-star,
.cover .bunting,
.cover .rainbow-top,
.cover .cloud,
.cover .cute-bear,
.cover .sleepy-moon,
.cover .cloud-floor,
.cover .star-a,
.cover .star-b {
  display: none;
}

.cover::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  background:
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, .75) 45% 55%, transparent 55%) 12% 43% / 22px 22px no-repeat,
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, .75) 45% 55%, transparent 55%) 12% 43% / 22px 22px no-repeat,
    linear-gradient(45deg, transparent 45%, rgba(255, 255, 255, .72) 45% 55%, transparent 55%) 84% 64% / 24px 24px no-repeat,
    linear-gradient(-45deg, transparent 45%, rgba(255, 255, 255, .72) 45% 55%, transparent 55%) 84% 64% / 24px 24px no-repeat,
    radial-gradient(circle, rgba(255, 255, 255, .38) 0 1.4px, transparent 2.2px) 0 0 / 42px 42px;
  opacity: .8;
  pointer-events: none;
}

.cover-wash {
  position: absolute;
  left: -20px;
  right: -20px;
  z-index: 0;
  pointer-events: none;
}

.cover-wash-top {
  top: -8px;
  height: 178px;
  background:
    radial-gradient(circle at 7% 30%, rgba(126, 200, 255, .5) 0 42px, transparent 44px),
    radial-gradient(circle at 28% 18%, rgba(190, 229, 255, .58) 0 52px, transparent 54px),
    radial-gradient(circle at 56% 22%, rgba(126, 200, 255, .32) 0 48px, transparent 50px),
    radial-gradient(circle at 82% 18%, rgba(195, 232, 255, .52) 0 58px, transparent 60px);
  filter: blur(3px);
}

.cover-wash-bottom {
  bottom: -8px;
  height: 160px;
  background:
    radial-gradient(circle at 7% 70%, #fff 0 32px, transparent 33px),
    radial-gradient(circle at 23% 56%, #fff 0 47px, transparent 48px),
    radial-gradient(circle at 45% 70%, #fff 0 38px, transparent 39px),
    radial-gradient(circle at 68% 56%, #fff 0 52px, transparent 53px),
    radial-gradient(circle at 91% 70%, #fff 0 39px, transparent 40px),
    linear-gradient(180deg, rgba(186, 227, 255, .18), rgba(181, 223, 250, .72));
}

.cover-balloon-cloud {
  position: absolute;
  left: -18px;
  top: 2px;
  z-index: 3;
  width: 134px;
  height: 116px;
  background:
    radial-gradient(circle at 18% 36%, #f7ecd0 0 18px, transparent 19px),
    radial-gradient(circle at 32% 18%, #9ed8ff 0 24px, transparent 25px),
    radial-gradient(circle at 56% 29%, #d9efff 0 22px, transparent 23px),
    radial-gradient(circle at 75% 48%, #7ec8ff 0 23px, transparent 24px),
    radial-gradient(circle at 47% 65%, #fff1bd 0 19px, transparent 20px);
  animation: bobble 5.1s ease-in-out infinite;
}

.cover .bunting {
  top: 8px;
  left: 116px;
  right: 32px;
  z-index: 4;
  height: 60px;
  border-top-color: rgba(111, 150, 174, .5);
}

.cover .bunting span {
  width: 31px;
  height: 40px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, .86) 0 2px, transparent 3px),
    #94cdf2;
  background-size: 14px 14px;
}

.cover .rainbow-top {
  top: 74px;
  z-index: 1;
  opacity: .66;
  transform: translateX(-50%) scale(1.25);
}

.cover .balloons,
.cover .balloon-pair,
.cover .balloon-spray {
  display: none;
}

.cover-prayer,
.baptism-heading,
.cover-name-block,
.cover-copy,
.cover .main-photo {
  position: relative;
  z-index: 3;
}

.cover-prayer {
  text-align: center;
}

.cover-cross {
  position: relative;
  width: 7px;
  height: 54px;
  margin: 0 auto 14px;
  border-radius: 2px;
  background: linear-gradient(90deg, #8c5413 0 18%, #ffd971 18% 78%, #a45d14 78%);
  box-shadow: 0 2px 0 rgba(255, 255, 255, .8), 0 5px 10px rgba(82, 61, 30, .18);
}

.cover-cross::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 12px;
  width: 34px;
  height: 6px;
  border-radius: 2px;
  background: inherit;
  transform: translateX(-50%);
}

.cover-prayer p {
  margin: 0;
  color: #13293a;
  font-family: "Great Vibes", cursive;
  font-size: clamp(1.2rem, 4.25vw, 1.38rem);
  line-height: 1.28;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .56);
}

.cover-prayer span,
.baptism-heading p,
.baptism-heading span,
.cover-name-block span,
.cover-copy p {
  display: block;
  color: #133247;
  font-family: Poppins, Arial, sans-serif;
}

.cover-prayer span {
  margin-top: 5px;
  font-size: .68rem;
  letter-spacing: .02em;
}

.baptism-heading {
  margin-top: 27px;
  text-align: center;
}

.baptism-heading p {
  margin: 0 0 1px;
  font-size: .68rem;
  font-weight: 500;
}

.cover h1 {
  color: #f29b22;
  font-family: Poppins, Arial, sans-serif;
  font-size: clamp(2rem, 8.7vw, 2.55rem);
  font-weight: 500;
  letter-spacing: .08em;
  line-height: .86;
  text-transform: uppercase;
  text-shadow: 0 1px 0 rgba(255, 255, 255, .7);
}

.baptism-heading span {
  margin-top: 0;
  font-size: .73rem;
  line-height: 1;
}

.cover .main-photo {
  width: min(50vw, 196px);
  margin-top: 20px;
  border-width: 6px;
  outline: 4px solid #2693df;
  background: #ccefff;
  box-shadow:
    0 0 0 8px rgba(255, 255, 255, .38),
    0 16px 28px rgba(22, 85, 124, .24);
}

.cover .baby-name {
  margin-top: 17px;
  color: #f5a229;
  font-family: "Pacifico", "Great Vibes", cursive;
  font-size: clamp(1.88rem, 7.5vw, 2.38rem);
  line-height: .9;
  text-shadow: 0 2px 0 rgba(255, 255, 255, .42), 0 6px 12px rgba(32, 88, 120, .16);
  white-space: nowrap;
}

.cover-name-block {
  text-align: center;
}

.cover-name-block span {
  margin-top: 4px;
  font-size: .62rem;
  line-height: 1.28;
}

.cover-copy {
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 43px;
  text-align: center;
}

.cover-copy p {
  width: min(100%, 260px);
  margin: 0 auto 8px;
  color: #ecf9ff;
  font-size: .64rem;
  font-weight: 600;
  line-height: 1.1;
  text-transform: uppercase;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 1px 3px rgba(20, 70, 101, .32);
}

.cover-copy h2 {
  color: #ffffff;
  font-family: Georgia, "Times New Roman", serif;
  font-size: clamp(.95rem, 3.6vw, 1.12rem);
  font-weight: 400;
  letter-spacing: .1em;
  line-height: 1;
  text-decoration: underline;
  text-underline-offset: 4px;
  text-shadow: 0 2px 5px rgba(20, 70, 101, .34);
}

.cover-angel {
  position: absolute;
  top: 239px;
  z-index: 4;
  width: 104px;
  height: auto;
  object-fit: contain;
  filter: drop-shadow(0 8px 8px rgba(53, 103, 133, .18));
}

.cover-angel-left {
  left: 20px;
}

.cover-angel-right {
  right: 20px;
}

.cover-teddy-basket {
  position: absolute;
  left: 16px;
  top: 128px;
  z-index: 4;
  width: 60px;
  height: 76px;
  animation: floaty 4.7s ease-in-out infinite;
}

.cover-teddy-basket::before {
  content: "";
  position: absolute;
  left: 15px;
  top: 5px;
  width: 31px;
  height: 32px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 32% 42%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 68% 42%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 50% 58%, #7a5134 0 4px, transparent 5px),
    #c99668;
  box-shadow: -12px -1px 0 -4px #c99668, 12px -1px 0 -4px #c99668;
}

.cover-teddy-basket::after {
  content: "";
  position: absolute;
  left: 9px;
  bottom: 2px;
  width: 44px;
  height: 43px;
  border-radius: 7px 7px 18px 18px;
  background: #d7ad80;
  box-shadow: inset 0 8px 0 rgba(255, 255, 255, .28);
}

.cover-teddy-basket span {
  position: absolute;
  left: 1px;
  top: 26px;
  z-index: 2;
  width: 29px;
  height: 10px;
  border-radius: 999px;
  background: #7ec8ff;
  transform: rotate(-29deg);
}

.cover-teddy-float {
  position: absolute;
  right: 20px;
  top: 146px;
  z-index: 4;
  width: 76px;
  height: 116px;
  animation: bearBounce 4.8s ease-in-out infinite;
}

.cover-teddy-float::before {
  content: "";
  position: absolute;
  left: 21px;
  bottom: 13px;
  width: 42px;
  height: 50px;
  border-radius: 50% 50% 42% 42%;
  background:
    radial-gradient(circle at 35% 37%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 65% 37%, #4f3422 0 2px, transparent 3px),
    radial-gradient(circle at 50% 53%, #7a5134 0 4px, transparent 5px),
    #c99668;
  box-shadow: -13px -6px 0 -5px #c99668, 13px -6px 0 -5px #c99668;
}

.cover-teddy-float::after {
  content: "";
  position: absolute;
  right: 1px;
  top: 4px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background:
    radial-gradient(circle at 37% 33%, rgba(255, 255, 255, .8) 0 3px, transparent 4px),
    #7ec8ff;
  box-shadow: -34px 17px 0 -4px #ffd877;
}

.cover-teddy-float span {
  position: absolute;
  right: 22px;
  top: 42px;
  width: 1px;
  height: 48px;
  background: rgba(91, 53, 31, .35);
  transform: rotate(12deg);
}

.cover-cute-star {
  position: absolute;
  z-index: 4;
  width: 34px;
  height: 34px;
  background: #ffd877;
  clip-path: polygon(50% 0, 62% 33%, 97% 26%, 73% 54%, 90% 86%, 55% 72%, 28% 96%, 31% 59%, 0 42%, 37% 34%);
  filter: drop-shadow(0 5px 7px rgba(177, 129, 54, .16));
  animation: twinkle 3s ease-in-out infinite;
}

.cover-cute-star::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 13px;
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: #855d35;
  box-shadow: 10px 0 0 #855d35;
}

.cover-cute-star::after {
  content: "";
  position: absolute;
  left: 13px;
  top: 20px;
  width: 10px;
  height: 5px;
  border-bottom: 2px solid #855d35;
  border-radius: 0 0 99px 99px;
}

.cover-cute-star-one { right: 66px; top: 92px; }
.cover-cute-star-two { left: 16px; bottom: 278px; animation-delay: -1.2s; }
.cover-cute-star-three { right: 22px; bottom: 112px; animation-delay: -1.8s; }

.cover .cloud-floor {
  height: 118px;
  bottom: -7px;
  z-index: 1;
}

.closing {
  background: url("children-s-photo-zone-christening-blue-balloons-children-s-christening-photo-zone-blue-balloons-cake-sweets-272982030.webp") center / cover no-repeat;
}

.closing .sparkles {
  opacity: 0;
}

.closing .bunting,
.closing .cloud,
.closing .balloons,
.closing .balloon-pair,
.closing .balloon-spray,
.closing .rainbow,
.closing .cute-bear,
.closing .sleepy-moon,
.closing .cloud-floor,
.closing .star {
  display: none;
}

@keyframes sparkle {
  from { background-position: 0 0, 0 0; }
  to { background-position: 48px 48px, -31px 31px; }
}

@keyframes sway {
  0%, 100% { transform: rotate(-4deg); }
  50% { transform: rotate(5deg); }
}

@keyframes drift {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}

@keyframes floaty {
  0%, 100% { translate: 0 0; }
  50% { translate: 0 -12px; }
}

@keyframes bobble {
  0%, 100% { translate: 0 0; }
  35% { translate: 5px -10px; }
  70% { translate: -4px -5px; }
}

@keyframes bearBounce {
  0%, 100% {
    translate: 0 0;
  }
  50% {
    translate: 0 -9px;
  }
}

@keyframes moonRock {
  0%, 100% {
    translate: 0 0;
    rotate: -4deg;
  }
  50% {
    translate: 0 -7px;
    rotate: 7deg;
  }
}

@keyframes letterDance {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  35% { transform: translateY(-6px) rotate(-2deg); }
  65% { transform: translateY(2px) rotate(2deg); }
}

@keyframes letterBounce {
  0%, 100% {
    transform: translateY(0) rotate(0deg) scale(1);
  }
  38% {
    transform: translateY(-5px) rotate(-1.5deg) scale(1.03);
  }
  68% {
    transform: translateY(1px) rotate(1.5deg) scale(.99);
  }
}

@keyframes datePop {
  0%, 100% {
    transform: scale(1);
    text-shadow: 0 1px 0 #fff;
  }
  45% {
    transform: scale(1.035);
    text-shadow: 0 2px 0 #fff, 0 7px 12px rgba(83, 56, 33, .16);
  }
}

@keyframes headlineFloat {
  0%, 100% {
    translate: 0 0;
    rotate: 0deg;
    text-shadow: 0 2px 0 #fff, 0 8px 18px rgba(35, 143, 232, .22);
  }
  50% {
    translate: 0 -7px;
    rotate: -1deg;
    text-shadow: 0 2px 0 #fff, 0 14px 22px rgba(35, 143, 232, .3);
  }
}

@keyframes nameWave {
  0%, 100% {
    translate: 0 0;
    scale: 1;
  }
  45% {
    translate: 0 -5px;
    scale: 1.035;
  }
}

@keyframes photoZoomGlow {
  0%, 100% {
    transform: scale(1);
    filter: saturate(1) brightness(1);
  }
  50% {
    transform: scale(1.035);
    filter: saturate(1.1) brightness(1.05);
  }
}

@keyframes thanksGlow {
  0%, 100% {
    translate: 0 0;
    text-shadow: 0 1px 0 #fff;
  }
  50% {
    translate: 0 -4px;
    text-shadow: 0 1px 0 #fff, 0 8px 16px rgba(83, 56, 33, .18);
  }
}

@keyframes textPulse {
  0%, 100% {
    transform: translateY(0);
    text-shadow: 0 2px 0 #fff;
  }
  50% {
    transform: translateY(-3px);
    text-shadow: 0 2px 0 #fff, 0 8px 12px rgba(35, 143, 232, .22);
  }
}

@keyframes pictureFloatTilt {
  0%, 100% {
    translate: 0 0;
    rotate: -1deg;
  }
  50% {
    translate: 0 -7px;
    rotate: 2deg;
  }
}

@keyframes carDrive {
  0% {
    transform: translate(28px, 0);
    opacity: 0;
  }
  12% {
    opacity: 1;
  }
  50% {
    transform: translate(108px, -2px);
  }
  88% {
    opacity: 1;
  }
  100% {
    transform: translate(182px, 0);
    opacity: 0;
  }
}

@keyframes wheelSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes photoFloat {
  0%, 100% {
    translate: 0 0;
    box-shadow: 0 16px 38px rgba(39, 128, 204, .25);
  }
  50% {
    translate: 0 -8px;
    box-shadow: 0 22px 44px rgba(39, 128, 204, .3);
  }
}

@keyframes pictureGlow {
  0%, 100% { filter: saturate(1) brightness(1); }
  50% { filter: saturate(1.08) brightness(1.04); }
}

@keyframes haloSpin {
  from { rotate: 0deg; }
  to { rotate: 360deg; }
}

@keyframes twinkle {
  0%, 100% { transform: scale(.9) rotate(-8deg); opacity: .78; }
  50% { transform: scale(1.08) rotate(9deg); opacity: 1; }
}

@media (max-width: 380px) {
  .scene {
    padding-inline: 18px;
  }

  .cover {
    padding: 22px 18px 40px;
  }

  .cover-prayer p {
    font-size: 1.06rem;
  }

  .cover-cross {
    height: 48px;
    margin-bottom: 12px;
  }

  .baptism-heading {
    margin-top: 23px;
  }

  .cover h1 {
    font-size: 2rem;
  }

  .cover .main-photo {
    width: min(50vw, 166px);
    margin-top: 18px;
  }

  .cover-angel {
    top: 232px;
    width: 88px;
  }

  .cover-angel-left {
    left: 3px;
  }

  .cover-angel-right {
    right: 3px;
  }

  .cover .baby-name {
    font-size: 1.78rem;
  }

  .cover-copy {
    left: 18px;
    right: 18px;
    bottom: 37px;
  }

  .photo-ring {
    width: min(70vw, 260px);
  }

  .event-card {
    grid-template-columns: 78px 1fr;
    gap: 10px;
    padding: 9px 10px;
  }

  .event-copy strong {
    font-size: 1.08rem;
  }

  .baby-peek {
    width: min(67vw, 238px);
    height: auto;
  }

  .balloon-pair-cover {
    top: 502px;
    transform: scale(.66) rotate(-6deg);
  }

  .bear-cover {
    left: 14px;
    bottom: 72px;
    transform: scale(.6) rotate(-7deg);
  }

  .bear-closing {
    left: 18px;
    bottom: 58px;
    transform: scale(.64) rotate(-7deg);
  }

  .moon-cover {
    right: 22px;
    top: 70px;
    transform: scale(.68) rotate(8deg);
  }

  .moon-closing {
    right: 24px;
    top: 144px;
    transform: scale(.66) rotate(-10deg);
  }

  .balloon-pair-details {
    top: 394px;
    right: -22px;
    transform: scale(.62) rotate(8deg);
  }

  .details {
    padding-inline: 14px;
  }

  .details .date-block {
    margin-top: 146px;
  }

  .save-title {
    font-size: 2.95rem;
  }

  .details .event-card,
  .details .event-card.reception {
    grid-template-columns: 128px 1fr;
    min-height: 104px;
    padding-inline: 0;
  }

  .details .event-card.reception {
    grid-template-columns: 1fr;
  }

  .reception-house {
    width: 148px;
    max-height: 112px;
  }

  .route-scene {
    transform: scale(.9);
    transform-origin: left center;
  }

  .details .baby-peek {
    width: 88px;
    right: 2px;
    bottom: 24px;
  }
}

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