:root {
  --ink: #17324a;
  --sand: #ffe69a;
  --sun: #ffce4e;
  --coral: #ff6f61;
  --hibiscus: #ff4f93;
  --ocean: #1fb8c9;
  --deep-ocean: #0b6f92;
  --leaf: #20a77a;
  --leaf-dark: #0c6d5b;
  --cloud: #fff7d9;
  --shadow: rgba(11, 42, 64, 0.28);
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
  background: #0c7898;
}

body {
  min-height: 100vh;
  margin: 0;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Trebuchet MS", "Arial Rounded MT Bold", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 14%, rgba(255, 245, 184, 0.95) 0 52px, transparent 54px),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.28) 0 34px, transparent 36px),
    linear-gradient(180deg, #23bfd2 0%, #18a6c1 48%, #0c7898 72%, #086481 100%);
  background-size: auto, auto, 100% 110%;
  animation: lagoon-light 12s ease-in-out infinite alternate;
}

.postcard {
  position: relative;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 100vh;
  padding: clamp(18px, 3vw, 34px);
  isolation: isolate;
}

.postcard::before,
.postcard::after {
  position: fixed;
  inset: auto -8vw -13vh -8vw;
  z-index: -2;
  height: 31vh;
  min-height: 190px;
  content: "";
  pointer-events: none;
}

.postcard::before {
  background:
    radial-gradient(ellipse at 18% 60%, #ffe58d 0 18%, transparent 18.5%),
    radial-gradient(ellipse at 45% 74%, #ffd970 0 22%, transparent 22.5%),
    radial-gradient(ellipse at 78% 64%, #ffe58d 0 20%, transparent 20.5%),
    linear-gradient(180deg, transparent 0 44%, #f4c85f 45% 100%);
  animation: sand-breathe 9s ease-in-out infinite alternate;
}

.postcard::after {
  inset: auto -10vw -17vh -10vw;
  z-index: -3;
  height: 37vh;
  background:
    radial-gradient(ellipse at 50% 0%, rgba(255, 255, 255, 0.38) 0 11%, transparent 11.5%),
    repeating-linear-gradient(92deg, rgba(255, 255, 255, 0.1) 0 18px, transparent 18px 44px),
    linear-gradient(180deg, #1fb8c9 0%, #0f83a7 100%);
  background-position: 0 0, 0 0, 0 0;
  animation: wave-slide 7s linear infinite;
}

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

.cloud {
  position: absolute;
  width: clamp(140px, 17vw, 260px);
  height: clamp(44px, 5vw, 72px);
  background: rgba(255, 250, 223, 0.66);
  border-radius: 999px;
  filter: drop-shadow(0 10px 0 rgba(6, 83, 105, 0.1));
}

.cloud::before,
.cloud::after {
  position: absolute;
  content: "";
  background: inherit;
  border-radius: 50%;
}

.cloud::before {
  width: 42%;
  aspect-ratio: 1;
  left: 16%;
  bottom: 32%;
}

.cloud::after {
  width: 34%;
  aspect-ratio: 1;
  right: 18%;
  bottom: 42%;
}

.cloud-a {
  top: 10%;
  left: -18%;
  animation: cloud-drift 34s linear infinite;
}

.cloud-b {
  top: 33%;
  right: -20%;
  scale: 0.74;
  opacity: 0.48;
  animation: cloud-drift-reverse 42s linear infinite;
}

.comet {
  position: absolute;
  top: 18%;
  left: -20%;
  width: 150px;
  height: 3px;
  background: linear-gradient(90deg, transparent, rgba(255, 248, 203, 0.96), transparent);
  border-radius: 999px;
  transform: rotate(-18deg);
  opacity: 0;
  filter: drop-shadow(0 0 8px rgba(255, 242, 143, 0.55));
  animation: comet-pass 8s ease-in-out infinite;
}

.star,
.spark {
  position: absolute;
  width: 18px;
  height: 18px;
  background: var(--cloud);
  transform: rotate(45deg);
  filter: drop-shadow(0 3px 0 rgba(12, 87, 112, 0.22));
}

.star::before,
.star::after,
.spark::before,
.spark::after {
  position: absolute;
  inset: 5px -5px;
  content: "";
  background: inherit;
  border-radius: 999px;
}

.star::after,
.spark::after {
  inset: -5px 5px;
}

.star-a {
  top: 18%;
  left: 16%;
}

.star-b {
  top: 27%;
  right: 16%;
  width: 14px;
  height: 14px;
}

.star-c {
  right: 28%;
  bottom: 26%;
  width: 12px;
  height: 12px;
}

.spark {
  width: 10px;
  height: 10px;
  background: #ffef94;
}

.spark-a {
  top: 42%;
  left: 9%;
}

.spark-b {
  top: 54%;
  right: 9%;
}

.leaf {
  position: absolute;
  width: clamp(140px, 20vw, 250px);
  aspect-ratio: 1 / 1.45;
  background:
    linear-gradient(76deg, transparent 0 45%, rgba(255, 255, 255, 0.22) 46% 49%, transparent 50% 100%),
    repeating-linear-gradient(116deg, transparent 0 18px, rgba(12, 109, 91, 0.32) 19px 22px, transparent 23px 42px),
    linear-gradient(135deg, var(--leaf) 0%, var(--leaf-dark) 100%);
  border-radius: 100% 0 100% 0;
  opacity: 0.94;
  filter: drop-shadow(0 12px 0 rgba(7, 81, 94, 0.18));
}

.leaf-left {
  top: 18%;
  left: max(-70px, -5vw);
  transform: rotate(25deg);
  transform-origin: 0 100%;
  animation: leaf-sway-left 5.8s ease-in-out infinite;
}

.leaf-right {
  right: max(-76px, -5vw);
  bottom: 18%;
  transform: rotate(210deg);
  transform-origin: 100% 100%;
  animation: leaf-sway-right 6.4s ease-in-out infinite;
}

.flower {
  position: absolute;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 8px 0 rgba(11, 76, 95, 0.18));
}

.flower::before,
.flower::after {
  position: absolute;
  inset: 22px;
  content: "";
  background: var(--sun);
  border-radius: 50%;
  box-shadow:
    0 -30px 0 10px var(--hibiscus),
    26px -15px 0 10px #ff7aa9,
    26px 15px 0 10px var(--hibiscus),
    0 30px 0 10px #ff7aa9,
    -26px 15px 0 10px var(--hibiscus),
    -26px -15px 0 10px #ff7aa9;
}

.flower::after {
  inset: 31px;
  background: #f9b642;
  box-shadow: none;
}

.flower-a {
  left: 8%;
  bottom: 14%;
  transform: rotate(-12deg);
  animation: flower-bob-a 4.8s ease-in-out infinite;
}

.flower-b {
  top: 16%;
  right: 7%;
  transform: scale(0.82) rotate(18deg);
  animation: flower-bob-b 5.4s ease-in-out infinite;
}

.confetti {
  position: absolute;
  width: 10px;
  height: 18px;
  border-radius: 3px;
  opacity: 0.78;
  filter: drop-shadow(0 4px 0 rgba(7, 72, 92, 0.16));
}

.confetti-a {
  top: 9%;
  left: 32%;
  background: #ffef6d;
  animation: confetti-fall 7.5s ease-in-out infinite;
}

.confetti-b {
  top: 4%;
  right: 33%;
  background: #ff6f61;
  animation: confetti-fall 8.3s ease-in-out 1.1s infinite;
}

.confetti-c {
  top: 20%;
  left: 73%;
  background: #ffffff;
  animation: confetti-fall 9.2s ease-in-out 2.2s infinite;
}

.bouquet-garden {
  position: absolute;
  right: 0;
  bottom: -2px;
  left: 0;
  height: clamp(150px, 24vh, 260px);
  overflow: hidden;
}

.bouquet {
  position: absolute;
  bottom: -18px;
  width: clamp(126px, 15vw, 205px);
  height: clamp(146px, 18vw, 232px);
  transform-origin: 50% 100%;
  filter: drop-shadow(0 12px 0 rgba(7, 64, 78, 0.16));
}

.bouquet::before {
  position: absolute;
  right: 12%;
  bottom: 0;
  left: 12%;
  height: 86%;
  content: "";
  background:
    linear-gradient(70deg, transparent 0 38%, #0d7a5f 39% 42%, transparent 43% 100%),
    linear-gradient(112deg, transparent 0 38%, #0b664f 39% 42%, transparent 43% 100%),
    linear-gradient(84deg, transparent 0 44%, #138c6d 45% 48%, transparent 49% 100%),
    linear-gradient(98deg, transparent 0 52%, #0d7a5f 53% 56%, transparent 57% 100%),
    radial-gradient(ellipse at 18% 65%, rgba(32, 167, 122, 0.82) 0 16%, transparent 17%),
    radial-gradient(ellipse at 82% 66%, rgba(12, 109, 91, 0.82) 0 16%, transparent 17%),
    radial-gradient(ellipse at 50% 89%, #ffef6d 0 16%, #ff6f61 17% 29%, transparent 30%);
  border-radius: 0 0 42px 42px;
}

.bouquet::after {
  position: absolute;
  top: 3%;
  left: 50%;
  width: 100%;
  height: 72%;
  content: "";
  background:
    radial-gradient(ellipse at 17% 74%, #20a77a 0 13%, transparent 14%),
    radial-gradient(ellipse at 83% 76%, #0c6d5b 0 13%, transparent 14%),
    radial-gradient(ellipse at 36% 70%, #20a77a 0 10%, transparent 11%),
    radial-gradient(ellipse at 66% 68%, #0c6d5b 0 10%, transparent 11%),
    radial-gradient(ellipse at 24% 42%, #ff4f93 0 8%, transparent 8.8%),
    radial-gradient(ellipse at 24% 33%, #ff7aa9 0 7%, transparent 7.8%),
    radial-gradient(ellipse at 38% 20%, #ffef6d 0 8%, transparent 8.8%),
    radial-gradient(ellipse at 50% 42%, #30d1df 0 9%, transparent 9.8%),
    radial-gradient(ellipse at 62% 18%, #ff6f61 0 8%, transparent 8.8%),
    radial-gradient(ellipse at 75% 39%, #fff7d9 0 8%, transparent 8.8%),
    radial-gradient(ellipse at 68% 56%, #ff4f93 0 7%, transparent 7.8%),
    linear-gradient(180deg, transparent 0 58%, rgba(32, 167, 122, 0.14) 59% 100%);
  border-radius: 42% 42% 34% 34%;
  transform: translateX(-50%);
}

.bouquet-a {
  left: -2%;
  scale: 1.08;
  animation: bouquet-sway-a 6.2s ease-in-out infinite;
}

.bouquet-b {
  left: 11%;
  scale: 0.84;
  animation: bouquet-sway-b 5.6s ease-in-out 0.4s infinite;
}

.bouquet-c {
  left: 25%;
  scale: 1.02;
  animation: bouquet-sway-a 6.6s ease-in-out 0.9s infinite;
}

.bouquet-d {
  left: 42%;
  scale: 0.92;
  animation: bouquet-sway-b 5.9s ease-in-out 0.2s infinite;
}

.bouquet-e {
  right: 25%;
  scale: 1.05;
  animation: bouquet-sway-a 6.4s ease-in-out 0.7s infinite;
}

.bouquet-f {
  right: 10%;
  scale: 0.86;
  animation: bouquet-sway-b 6s ease-in-out 1s infinite;
}

.bouquet-g {
  right: -3%;
  scale: 1.12;
  animation: bouquet-sway-a 6.9s ease-in-out 0.3s infinite;
}

.sign {
  position: relative;
  justify-self: center;
  width: min(920px, 100%);
  margin: 0 auto clamp(22px, 4vh, 42px);
  padding: clamp(12px, 2vw, 18px) clamp(22px, 5vw, 58px) clamp(18px, 2.4vw, 26px);
  text-align: center;
  color: #23445a;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.2), transparent 22% 78%, rgba(255, 255, 255, 0.18)),
    linear-gradient(180deg, #ffdc6b 0%, #f4ad4e 100%);
  border: 4px solid #8b5a2b;
  border-radius: 8px;
  box-shadow:
    0 10px 0 #6b3d1d,
    0 22px 32px var(--shadow);
  transform: rotate(-1.2deg);
  animation: sign-drop 780ms cubic-bezier(.2, .9, .24, 1.18) both, sign-float 4.8s ease-in-out 900ms infinite;
}

.sign::before,
.sign::after {
  position: absolute;
  top: -34px;
  width: 5px;
  height: 40px;
  content: "";
  background: linear-gradient(180deg, #6b3d1d, #2a4f61);
  border-radius: 999px;
  box-shadow: 0 2px 0 rgba(255, 255, 255, 0.36) inset;
}

.sign::before {
  left: 17%;
}

.sign::after {
  right: 17%;
}

.birthday-name,
.birthday-wish {
  display: block;
  text-shadow:
    0 3px 0 rgba(255, 255, 255, 0.5),
    0 6px 0 rgba(111, 73, 33, 0.16);
}

.birthday-name {
  position: relative;
  z-index: 2;
  width: max-content;
  max-width: 100%;
  margin: 0 auto;
  font-size: clamp(3.2rem, 10vw, 7.6rem);
  line-height: 0.86;
  letter-spacing: 0;
  color: #fffce0;
  text-shadow:
    0 0 12px rgba(255, 255, 190, 0.95),
    0 0 28px rgba(45, 207, 226, 0.72),
    0 5px 0 rgba(27, 74, 92, 0.28),
    0 10px 20px rgba(13, 65, 88, 0.28);
  animation: name-glow 2.8s ease-in-out infinite;
}

.birthday-name::before {
  position: absolute;
  inset: 8% -8% 2%;
  z-index: -1;
  content: "";
  background: radial-gradient(ellipse, rgba(27, 184, 201, 0.48), transparent 68%);
  border-radius: 50%;
  filter: blur(4px);
}

.birthday-wish {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  min-width: min(100%, 760px);
  margin-top: clamp(10px, 1.6vw, 16px);
  padding: clamp(12px, 2vw, 18px) clamp(42px, 7vw, 92px);
  font-size: clamp(1.7rem, 5.8vw, 4.25rem);
  line-height: 0.95;
  color: #17324a;
  background:
    radial-gradient(circle at 14% 50%, rgba(255, 255, 255, 0.44), transparent 30%),
    radial-gradient(circle at 86% 50%, rgba(255, 255, 255, 0.44), transparent 30%),
    linear-gradient(90deg, rgba(255, 247, 185, 0.1), rgba(255, 247, 185, 0.48), rgba(255, 247, 185, 0.1));
  border-radius: 999px;
}

.wish-text {
  position: relative;
  z-index: 2;
  display: block;
  letter-spacing: 0;
  text-wrap: balance;
}

.birthday-wish::before,
.birthday-wish::after,
.wish-text::before,
.wish-text::after {
  position: absolute;
  z-index: 1;
  width: clamp(42px, 8vw, 74px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffc64b 0 18%, transparent 19%),
    radial-gradient(circle at 50% 9%, #ff4f93 0 19%, transparent 20%),
    radial-gradient(circle at 86% 32%, #ff7aa9 0 18%, transparent 19%),
    radial-gradient(circle at 76% 78%, #ff4f93 0 18%, transparent 19%),
    radial-gradient(circle at 24% 78%, #ff7aa9 0 18%, transparent 19%),
    radial-gradient(circle at 14% 32%, #ff4f93 0 18%, transparent 19%);
  filter: drop-shadow(0 5px 0 rgba(11, 76, 95, 0.16));
}

.birthday-wish::before {
  left: clamp(4px, 1.6vw, 18px);
  top: 50%;
  transform: translateY(-50%) rotate(-15deg);
}

.birthday-wish::after {
  right: clamp(4px, 1.6vw, 18px);
  top: 50%;
  transform: translateY(-50%) rotate(17deg);
}

.wish-text::before {
  top: -62%;
  left: 17%;
  width: clamp(30px, 5vw, 48px);
  transform: rotate(12deg);
}

.wish-text::after {
  right: 15%;
  bottom: -70%;
  width: clamp(30px, 5vw, 48px);
  transform: rotate(-18deg);
}

.video-shell {
  display: grid;
  place-items: center;
  width: 100%;
  min-height: 0;
  padding-bottom: clamp(24px, 5vh, 52px);
}

.video-frame {
  position: relative;
  overflow: hidden;
  width: min(980px, 100%);
  padding: clamp(8px, 1.5vw, 14px);
  background:
    linear-gradient(135deg, #fff3b0 0 12%, transparent 12% 88%, #fff3b0 88% 100%),
    linear-gradient(180deg, #ff865f 0%, #e94f64 100%);
  border: 5px solid #103c58;
  border-radius: 8px;
  box-shadow:
    0 12px 0 #103c58,
    0 26px 42px rgba(3, 36, 54, 0.35);
  animation: frame-rise 820ms ease-out 120ms both;
}

.video-frame::before {
  position: absolute;
  inset: 0;
  z-index: 2;
  content: "";
  background: linear-gradient(115deg, transparent 0 34%, rgba(255, 255, 255, 0.42) 45%, transparent 56% 100%);
  opacity: 0;
  translate: -70% 0;
  pointer-events: none;
  animation: frame-shine 5.5s ease-in-out 1.2s infinite;
}

.birthday-video {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #092e45;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 4px;
}

.finale-overlay {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: grid;
  place-items: center;
  padding: clamp(20px, 5vw, 60px);
  overflow: hidden;
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 239, 109, 0.22), transparent 22%),
    radial-gradient(circle at 78% 20%, rgba(255, 79, 147, 0.2), transparent 24%),
    radial-gradient(circle at 50% 80%, rgba(31, 184, 201, 0.2), transparent 30%),
    rgba(4, 34, 55, 0.72);
  opacity: 0;
  pointer-events: none;
  transition: opacity 420ms ease;
}

.finale-overlay.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.fireworks {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firework {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  opacity: 0;
  background: #fff6b8;
  box-shadow:
    0 -74px 0 4px #ffef6d,
    52px -52px 0 3px #ff6f61,
    74px 0 0 4px #fff7d9,
    52px 52px 0 3px #ff4f93,
    0 74px 0 4px #30d1df,
    -52px 52px 0 3px #ffef6d,
    -74px 0 0 4px #ff7aa9,
    -52px -52px 0 3px #fff7d9;
  transform: scale(0.2);
}

.finale-overlay.is-visible .firework {
  animation: firework-pop 1.45s ease-out infinite;
}

.firework-a {
  top: 22%;
  left: 18%;
}

.firework-b {
  top: 18%;
  right: 20%;
  animation-delay: 0.28s;
}

.firework-c {
  top: 48%;
  left: 12%;
  scale: 0.75;
  animation-delay: 0.55s;
}

.firework-d {
  top: 54%;
  right: 13%;
  scale: 0.85;
  animation-delay: 0.84s;
}

.firework-e {
  top: 32%;
  left: 50%;
  scale: 0.68;
  animation-delay: 1.12s;
}

.flower-title-wrap {
  position: relative;
  display: grid;
  place-items: center;
  width: min(1040px, 100%);
  padding: clamp(34px, 6vw, 74px) clamp(14px, 4vw, 44px);
  text-align: center;
  transform: translateY(24px) scale(0.94);
  opacity: 0;
}

.finale-overlay.is-visible .flower-title-wrap {
  animation: finale-title-in 760ms cubic-bezier(.2, .9, .2, 1.16) 180ms both;
}

.flower-title {
  position: relative;
  z-index: 2;
  max-width: 100%;
  color: transparent;
  font-size: clamp(3rem, 12vw, 8.8rem);
  font-weight: 900;
  line-height: 0.9;
  letter-spacing: 0;
  text-wrap: balance;
  text-transform: uppercase;
  background:
    radial-gradient(circle at 16px 16px, #ffce4e 0 5px, transparent 6px),
    radial-gradient(circle at 16px 2px, #ff4f93 0 7px, transparent 8px),
    radial-gradient(circle at 29px 9px, #ff7aa9 0 7px, transparent 8px),
    radial-gradient(circle at 24px 26px, #ff4f93 0 7px, transparent 8px),
    radial-gradient(circle at 8px 26px, #ff7aa9 0 7px, transparent 8px),
    radial-gradient(circle at 3px 9px, #ff4f93 0 7px, transparent 8px),
    linear-gradient(180deg, #fff7d9, #ffef6d);
  background-size: 42px 42px, 42px 42px, 42px 42px, 42px 42px, 42px 42px, 42px 42px, auto;
  -webkit-background-clip: text;
  background-clip: text;
  filter:
    drop-shadow(0 8px 0 rgba(13, 63, 86, 0.62))
    drop-shadow(0 0 20px rgba(255, 247, 217, 0.45));
}

.flower-title::before {
  position: absolute;
  inset: -8% -2%;
  z-index: -1;
  content: attr(aria-label);
  color: rgba(255, 247, 217, 0.92);
  text-shadow:
    0 0 18px rgba(255, 255, 255, 0.62),
    0 0 44px rgba(255, 79, 147, 0.5),
    0 0 70px rgba(48, 209, 223, 0.42);
}

.title-flower {
  position: absolute;
  z-index: 3;
  width: clamp(58px, 9vw, 108px);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle, #ffc64b 0 17%, transparent 18%),
    radial-gradient(circle at 50% 8%, #ff4f93 0 19%, transparent 20%),
    radial-gradient(circle at 86% 32%, #ff7aa9 0 18%, transparent 19%),
    radial-gradient(circle at 76% 78%, #ff4f93 0 18%, transparent 19%),
    radial-gradient(circle at 24% 78%, #ff7aa9 0 18%, transparent 19%),
    radial-gradient(circle at 14% 32%, #ff4f93 0 18%, transparent 19%);
  filter: drop-shadow(0 9px 0 rgba(4, 34, 55, 0.22));
}

.finale-overlay.is-visible .title-flower {
  animation: title-flower-spin 4.6s ease-in-out infinite;
}

.title-flower-a {
  top: 6%;
  left: 5%;
}

.title-flower-b {
  top: 4%;
  right: 7%;
  scale: 0.86;
  animation-delay: 0.4s;
}

.title-flower-c {
  bottom: 7%;
  left: 12%;
  scale: 0.74;
  animation-delay: 0.75s;
}

.title-flower-d {
  right: 9%;
  bottom: 8%;
  scale: 0.78;
  animation-delay: 1s;
}

.replay-button {
  position: absolute;
  right: clamp(18px, 4vw, 42px);
  bottom: clamp(18px, 4vw, 42px);
  min-width: 116px;
  min-height: 44px;
  padding: 10px 18px;
  color: #17324a;
  font: inherit;
  font-weight: 800;
  background: linear-gradient(180deg, #fff7d9, #ffce4e);
  border: 3px solid #17324a;
  border-radius: 8px;
  box-shadow: 0 6px 0 rgba(5, 45, 68, 0.85);
  cursor: pointer;
  opacity: 0;
  transform: translateY(12px);
}

.finale-overlay.is-visible .replay-button {
  animation: replay-in 520ms ease-out 820ms both;
}

.replay-button:active {
  transform: translateY(16px);
  box-shadow: 0 2px 0 rgba(5, 45, 68, 0.85);
}

@media (max-width: 720px) {
  .postcard {
    padding: 14px;
  }

  .sign {
    margin-bottom: 18px;
    box-shadow:
      0 7px 0 #6b3d1d,
      0 16px 24px var(--shadow);
  }

  .leaf {
    opacity: 0.58;
  }

  .flower {
    width: 62px;
    height: 62px;
  }

  .flower-a {
    bottom: 8%;
  }

  .bouquet-garden {
    height: 150px;
  }

  .bouquet {
    bottom: -30px;
    width: 116px;
    height: 138px;
  }

  .bouquet-b,
  .bouquet-f {
    display: none;
  }

  .video-frame {
    border-width: 4px;
    box-shadow:
      0 8px 0 #103c58,
      0 18px 28px rgba(3, 36, 54, 0.34);
  }

  .flower-title-wrap {
    padding-inline: 8px;
  }

  .replay-button {
    right: 16px;
    bottom: 16px;
  }
}

@media (prefers-reduced-motion: no-preference) {
  .star,
  .spark {
    animation: twinkle 3.4s ease-in-out infinite;
  }

  .star-b,
  .spark-a {
    animation-delay: 1.2s;
  }

  .star-c,
  .spark-b {
    animation-delay: 2s;
  }
}

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

  .finale-overlay {
    transition: none;
  }
}

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

  to {
    background-position: 12px 8px, -16px 10px, 0 100%;
  }
}

@keyframes sand-breathe {
  from {
    transform: translateY(0);
  }

  to {
    transform: translateY(8px);
  }
}

@keyframes wave-slide {
  to {
    background-position: 0 0, 64px 0, 0 0;
  }
}

@keyframes cloud-drift {
  from {
    translate: 0 0;
  }

  to {
    translate: 140vw 0;
  }
}

@keyframes cloud-drift-reverse {
  from {
    translate: 0 0;
  }

  to {
    translate: -140vw 0;
  }
}

@keyframes comet-pass {
  0%,
  56% {
    opacity: 0;
    translate: 0 0;
  }

  64% {
    opacity: 0.95;
  }

  77%,
  100% {
    opacity: 0;
    translate: 136vw 42vh;
  }
}

@keyframes leaf-sway-left {
  0%,
  100% {
    transform: rotate(23deg);
  }

  50% {
    transform: rotate(30deg) translateY(-6px);
  }
}

@keyframes leaf-sway-right {
  0%,
  100% {
    transform: rotate(208deg);
  }

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

@keyframes flower-bob-a {
  0%,
  100% {
    transform: rotate(-12deg) translateY(0);
  }

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

@keyframes flower-bob-b {
  0%,
  100% {
    transform: scale(0.82) rotate(18deg) translateY(0);
  }

  50% {
    transform: scale(0.82) rotate(11deg) translateY(8px);
  }
}

@keyframes confetti-fall {
  0% {
    opacity: 0;
    transform: translateY(-20px) rotate(0deg);
  }

  18%,
  68% {
    opacity: 0.86;
  }

  100% {
    opacity: 0;
    transform: translateY(180px) rotate(210deg);
  }
}

@keyframes bouquet-sway-a {
  0%,
  100% {
    transform: rotate(-2deg) translateY(0);
  }

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

@keyframes bouquet-sway-b {
  0%,
  100% {
    transform: rotate(3deg) translateY(0);
  }

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

@keyframes sign-drop {
  from {
    opacity: 0;
    transform: translateY(-28px) rotate(-4deg) scale(0.96);
  }

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

@keyframes sign-float {
  0%,
  100% {
    transform: rotate(-1.2deg) translateY(0);
  }

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

@keyframes name-glow {
  0%,
  100% {
    filter: brightness(1);
    text-shadow:
      0 0 12px rgba(255, 255, 190, 0.95),
      0 0 28px rgba(45, 207, 226, 0.72),
      0 5px 0 rgba(27, 74, 92, 0.28),
      0 10px 20px rgba(13, 65, 88, 0.28);
  }

  50% {
    filter: brightness(1.12);
    text-shadow:
      0 0 18px rgba(255, 255, 220, 1),
      0 0 42px rgba(45, 207, 226, 0.96),
      0 0 58px rgba(255, 79, 147, 0.42),
      0 5px 0 rgba(27, 74, 92, 0.22),
      0 12px 24px rgba(13, 65, 88, 0.24);
  }
}

@keyframes frame-rise {
  from {
    opacity: 0;
    transform: translateY(22px) scale(0.985);
  }

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

@keyframes frame-shine {
  0%,
  62% {
    opacity: 0;
    translate: -80% 0;
  }

  74% {
    opacity: 0.72;
  }

  100% {
    opacity: 0;
    translate: 85% 0;
  }
}

@keyframes firework-pop {
  0% {
    opacity: 0;
    transform: scale(0.2);
  }

  18% {
    opacity: 1;
  }

  62% {
    opacity: 0.95;
    transform: scale(1);
  }

  100% {
    opacity: 0;
    transform: scale(1.3);
  }
}

@keyframes finale-title-in {
  from {
    opacity: 0;
    transform: translateY(24px) scale(0.94);
  }

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

@keyframes title-flower-spin {
  0%,
  100% {
    transform: rotate(-8deg) translateY(0);
  }

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

@keyframes replay-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.55;
    scale: 0.88;
  }

  50% {
    opacity: 1;
    scale: 1.08;
  }
}
