:root {
  --dark-color: #000;
  --fl-speed: 0.8s;
  --speed-leaf: 2s;
  --white: #f6f1e9;
  --blue: #1d3557;
  --dblue: #0b1d13;
  --lteal: #1b4332;
  --dteal: #081c15;
  --purple: #7b2cbf;
  --green: #2d6a4f;
  --pink: #c77dff;
  --night-glow: #f4e285;
  --moon-white: #fff8e7;
  --music-deep: #3a1f13;
  --music-green: #d9822b;
  --music-gold: #f4c56e;
  --music-lilac: #8ecae6;
  --prince-sky:
    radial-gradient(circle at 11% 18%, rgba(255, 244, 194, 0.9) 0 1px, transparent 2px),
    radial-gradient(circle at 16% 22%, rgba(244, 197, 110, 0.65) 0 1px, transparent 2px),
    radial-gradient(circle at 23% 12%, rgba(255, 244, 194, 0.78) 0 1px, transparent 2px),
    radial-gradient(circle at 68% 16%, rgba(255, 244, 194, 0.68) 0 1px, transparent 2px),
    radial-gradient(circle at 82% 24%, rgba(244, 197, 110, 0.62) 0 1px, transparent 2px),
    radial-gradient(ellipse at 50% 100%, rgba(255, 244, 194, 0.13), transparent 36%),
    radial-gradient(ellipse at 18% 92%, rgba(142, 202, 230, 0.14), transparent 28%),
    radial-gradient(ellipse at 86% 88%, rgba(255, 239, 196, 0.12), transparent 30%),
    linear-gradient(180deg, #050814 0%, #10183c 42%, #193b58 72%, #071713 100%);
}

* {
  box-sizing: border-box;
}
html,
body {
  height: 100%;
  min-height: 100vh;
  background-color: #050814;
  overflow: hidden;
  overscroll-behavior: none;
}

html {
  min-height: 100vh;
  background: var(--prince-sky);
  scroll-behavior: auto;
}

html::after {
  content: none;
}

*,
*::after,
*::before {
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

body {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  min-height: 100vh;
  background: var(--prince-sky);
  overflow: hidden;
  perspective: 1000px;
  font-family:
    system-ui,
    -apple-system,
    "Segoe UI",
    Roboto,
    "Helvetica Neue",
    Arial;
  position: relative;
}

body::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image:
    radial-gradient(2px 2px at 20px 30px, var(--moon-white), transparent),
    radial-gradient(2px 2px at 40px 70px, var(--moon-white), transparent),
    radial-gradient(1px 1px at 90px 40px, var(--moon-white), transparent),
    radial-gradient(1px 1px at 130px 80px, var(--moon-white), transparent),
    radial-gradient(2px 2px at 160px 30px, var(--moon-white), transparent);
  background-repeat: repeat;
  background-size: 200px 100px;
  opacity: 0.8;
  pointer-events: none;
  z-index: -1;
}

body::after {
  content: "";
  position: absolute;
  top: 8%;
  right: 15%;
  width: 80px;
  height: 80px;
  background: var(--moon-white);
  border-radius: 50%;
  box-shadow:
    0 0 20px var(--moon-white),
    0 0 40px rgba(240, 248, 255, 0.5),
    inset -10px -5px 0 rgba(200, 200, 220, 0.3);
  pointer-events: none;
  z-index: -1;
}

.shooting-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden !important;
  pointer-events: none;
  z-index: 1;
}

.shooting-star {
  position: absolute;
  width: 4px;
  height: 4px;
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 0 6px 2px rgba(255, 255, 255, 0.8);
  opacity: 0;
  animation: shootingStar 3s linear infinite;
}

.shooting-star::before {
  content: "";
  position: absolute;
  top: 50%;
  right: 0;
  transform: translateY(-50%);
  width: 0;
  height: 2px;
  background: linear-gradient(
    90deg,
    rgba(255, 255, 255, 0) 0%,
    rgba(255, 255, 255, 1) 100%
  );
  animation: shootingStarTail 3s linear infinite;
}

.shooting-star:nth-child(1) {
  top: 5%;
  left: -10%;
  animation-delay: 0s;
  animation-duration: 2.5s;
}
.shooting-star:nth-child(2) {
  top: 15%;
  left: -10%;
  animation-delay: 2s;
  animation-duration: 3s;
}
.shooting-star:nth-child(3) {
  top: 25%;
  left: -10%;
  animation-delay: 4s;
  animation-duration: 2.8s;
}
.shooting-star:nth-child(4) {
  top: 0%;
  left: -10%;
  animation-delay: 6s;
  animation-duration: 3.2s;
}
.shooting-star:nth-child(5) {
  top: 35%;
  left: -10%;
  animation-delay: 8s;
  animation-duration: 2.7s;
}
.shooting-star:nth-child(6) {
  top: 8%;
  left: -10%;
  animation-delay: 10s;
  animation-duration: 3.1s;
}
.shooting-star:nth-child(7) {
  top: 45%;
  left: -10%;
  animation-delay: 12s;
  animation-duration: 2.9s;
}
.shooting-star:nth-child(8) {
  top: 3%;
  left: -10%;
  animation-delay: 14s;
  animation-duration: 3.3s;
}

@keyframes shootingStar {
  0% {
    opacity: 0;
    transform: translateX(0) translateY(0) rotate(45deg);
  }
  10% {
    opacity: 1;
  }
  90% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translateX(120vw) translateY(60vh) rotate(10deg);
  }
}

@keyframes shootingStarTail {
  0% {
    width: 0;
  }
  30% {
    width: 100px;
  }
  100% {
    width: 0;
  }
}

.flowers {
  position: relative;
  transform: scale(0.7);
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  margin-bottom: -5vh;
  min-height: 80vh;
}

.flower {
  position: absolute;
  bottom: 10vmin;
  transform-origin: bottom center;
  z-index: 100;
}

.flower--1 {
  animation: moving-flower-1 4s linear infinite;
}
.flower--1 .flower__line {
  height: 70vmin;
  animation-delay: 0.3s;
}
.flower--1 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 1.6s backwards;
}
.flower--1 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 1.4s backwards;
}
.flower--1 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 1.2s backwards;
}
.flower--1 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1s backwards;
}

.flower--2 {
  left: 50%;
  transform: rotate(20deg);
  animation: moving-flower-2 4s linear infinite;
}
.flower--2 .flower__line {
  height: 60vmin;
  animation-delay: 0.6s;
}
.flower--2 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 1.9s backwards;
}
.flower--2 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 1.7s backwards;
}
.flower--2 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 1.5s backwards;
}
.flower--2 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1.3s backwards;
}

.flower--3 {
  left: -95%;
  transform: rotate(-25deg);
  animation: moving-flower-3 4s linear infinite;
}
.flower--3 .flower__line {
  height: 80vmin;
  animation-delay: 0.9s;
}
.flower--3 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 2.5s backwards;
}
.flower--3 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.3s backwards;
}
.flower--3 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.1s backwards;
}
.flower--3 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 1.9s backwards;
}

.flower--4 {
  left: -25%;
  z-index: -6;
  transform: rotate(10deg);
  animation: moving-flower-4 3.5s linear infinite;
}
.flower--4 .flower__line {
  height: 80vmin;
  animation-delay: 1.2s;
}
.flower--4 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 2.8s backwards;
}
.flower--4 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.6s backwards;
}
.flower--4 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.4s backwards;
}
.flower--4 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.2s backwards;
}

.flower--5 {
  left: 75%;
  z-index: -7;
  transform: rotate(-25deg);
  animation: moving-flower-5 4.5s linear infinite;
}
.flower--5 .flower__line {
  height: 85vmin;
  animation-delay: 1.9s;
}
.flower--5 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 2.7s backwards;
}
.flower--5 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.5s backwards;
}
.flower--5 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.3s backwards;
}
.flower--5 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.1s backwards;
}

.flower--6 {
  left: -40%;
  z-index: -8;
  transform: rotate(15deg);
  animation: moving-flower-6 4.2s linear infinite;
}
.flower--6 .flower__line {
  height: 95vmin;
  animation-delay: 1.5s;
}
.flower--6 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 3s backwards;
}
.flower--6 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 2.8s backwards;
}
.flower--6 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.6s backwards;
}
.flower--6 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.4s backwards;
}
.flower__leafs--6 {
  animation-delay: 2.3s;
}

.flower--7 {
  left: 60%;
  z-index: -5;
  transform: rotate(-10deg);
  animation: moving-flower-7 3.8s linear infinite;
}
.flower--7 .flower__line {
  height: 65vmin;
  animation-delay: 1.8s;
}
.flower--7 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 3.2s backwards;
}
.flower--7 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 3s backwards;
}
.flower--7 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 2.8s backwards;
}
.flower--7 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.6s backwards;
}
.flower__leafs--7 {
  animation-delay: 2.6s;
}

.flower--8 {
  left: 80%;
  z-index: -9;
  transform: rotate(23deg);
  animation: moving-flower-8 4.5s linear infinite;
}
.flower--8 .flower__line {
  height: 80vmin;
  animation-delay: 2.1s;
}
.flower--8 .flower__line__leaf--1 {
  animation: blooming-leaf-right var(--fl-speed) 3.4s backwards;
}
.flower--8 .flower__line__leaf--2 {
  animation: blooming-leaf-right var(--fl-speed) 3.2s backwards;
}
.flower--8 .flower__line__leaf--3 {
  animation: blooming-leaf-left var(--fl-speed) 3s backwards;
}
.flower--8 .flower__line__leaf--4 {
  animation: blooming-leaf-left var(--fl-speed) 2.8s backwards;
}
.flower__leafs--8 {
  animation-delay: 2.9s;
}
.flower__leafs {
  position: relative;
  animation: blooming-flower 2s backwards;
}
@keyframes moving-flower-6 {
  0%,
  100% {
    transform: rotate(15deg);
  }
  50% {
    transform: rotate(12deg) rotateY(-5deg);
  }
}
@keyframes moving-flower-7 {
  0%,
  100% {
    transform: rotate(-10deg);
  }
  50% {
    transform: rotate(-13deg) rotateY(8deg);
  }
}
@keyframes moving-flower-8 {
  0%,
  100% {
    transform: rotate(20deg);
  }
  50% {
    transform: rotate(23deg) rotateY(10deg);
  }
}
.flower__leafs--1 {
  animation-delay: 1.1s;
}
.flower__leafs--2 {
  animation-delay: 1.4s;
}
.flower__leafs--3 {
  animation-delay: 1.7s;
}
.flower__leafs--4 {
  animation-delay: 2s;
}
.flower__leafs--5 {
  animation-delay: 2s;
}

.flower__leafs::after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  transform: translate(-50%, -100%);
  width: 8vmin;
  height: 8vmin;
  background-color: #9370db;
  filter: blur(10vmin);
}

.flower__leaf {
  position: absolute;
  bottom: 0;
  left: 50%;
  width: 9vmin;
  height: 15vmin;
  background: radial-gradient(
    circle at 50% 20%,
    #e0b3ff 0%,
    #a259e6 30%,
    #6c0a4e 60%,
    #4b0066 80%,
    #1a0033 100%
  );
  border-radius: 50% 50% 40% 40% / 60% 60% 40% 40%;
  transform-origin: bottom center;
  opacity: 0.97;
  z-index: 2;
  border: 1.5px solid #4b0066;
  will-change: transform;
  box-shadow:
    0 0 1vmin #9370db,
    0 0 0.5vmin #b19cd9,
    inset 0 0 1.5vmin rgba(75, 0, 102, 0.6);
}

.flower__leaf:nth-child(1) {
  transform: translate(-50%, -5%) rotate(-22deg);
  z-index: 1;
}
.flower__leaf:nth-child(2) {
  transform: translate(-50%, -5%) rotate(22deg);
  z-index: 1;
}
.flower__leaf:nth-child(3) {
  transform: translate(-50%, -10%) rotate(0deg);
  z-index: 2;
}

.flower__leaf:nth-child(4),
.flower__leaf:nth-child(5),
.flower__leaf:nth-child(6) {
  width: 7vmin;
  height: 12vmin;
  background: radial-gradient(
    circle at 50% 20%,
    #f4e0ff 0%,
    #e0b3ff 30%,
    #a259e6 55%,
    #6c0a4e 80%,
    #1a0033 100%
  );
  opacity: 0.96;
  border: 1px solid #6c0a4e;
  border-radius: 50% 50% 45% 45% / 65% 65% 35% 35%;
  box-shadow:
    0 0 0.8vmin #b19cd9,
    inset 0 0 1vmin rgba(147, 112, 219, 0.4);
  z-index: 3;
}

.flower__leaf:nth-child(4) {
  transform: translate(-50%, -8%) rotate(-10deg);
}
.flower__leaf:nth-child(5) {
  transform: translate(-50%, -8%) rotate(10deg);
}
.flower__leaf:nth-child(6) {
  transform: translate(-50%, -12%) rotate(0deg);
}

.flower__white-circle {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 3vmin;
  height: 3vmin;
  border-radius: 50%;
  background: radial-gradient(circle at 40% 40%, #1a0033, #0a0015);
  box-shadow:
    inset 0 0 0.8vmin rgba(147, 112, 219, 0.4),
    0 0 1vmin rgba(147, 112, 219, 0.5),
    0 0 0.3vmin rgba(160, 100, 200, 0.6);
  z-index: 1;
}

.flower__line {
  height: 55vmin;
  width: 2vmin;
  background-image:
    linear-gradient(
      to left,
      rgb(0, 0, 0, 0.3),
      transparent,
      rgba(255, 255, 255, 0.2)
    ),
    linear-gradient(to top, transparent 10%, #2d5016, #4a7c23, #6b8e23);
  box-shadow: inset 0 0 2px rgba(0, 0, 0, 0.7);
  animation: grow-flower-tree 4s backwards;
}

.flower__line__leaf {
  --w: 8vmin;
  --h: calc(var(--w) + 3vmin);
  position: absolute;
  top: 20%;
  left: 90%;
  width: var(--w);
  height: var(--h);
  will-change: transform;
  border-top-right-radius: var(--h);
  border-bottom-left-radius: var(--h);
  background-image: linear-gradient(
    to top,
    rgba(45, 80, 22, 0.6),
    #4a7c23,
    #6b8e23
  );
  box-shadow: inset 0 0 1vmin rgba(0, 0, 0, 0.3);
}

.flower__line__leaf--1 {
  transform: rotate(70deg) rotateY(30deg);
}
.flower__line__leaf--2 {
  top: 45%;
  transform: rotate(70deg) rotateY(30deg);
}
.flower__line__leaf--3,
.flower__line__leaf--4 {
  border-top-right-radius: 0;
  border-bottom-left-radius: 0;
  border-top-left-radius: var(--h);
  border-bottom-right-radius: var(--h);
  left: -460%;
  top: 12%;
  transform: rotate(-70deg) rotateY(30deg);
}
.flower__line__leaf--4 {
  top: 40%;
}

.flower__grass {
  --c: #4a7c23;
  --line-w: 2vmin;
  position: absolute;
  bottom: 12vmin;
  left: -7vmin;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  z-index: 20;
  transform-origin: bottom center;
  transform: rotate(-48deg) rotateY(40deg);
}

.flower__grass--1 {
  left: 50%;
  bottom: 12vmin;
  transform: translateX(-50%) rotate(-48deg);
  opacity: 0.9;
  z-index: 20;
  animation: moving-grass 2s linear infinite;
}

.flower__grass--2 {
  left: 52%;
  bottom: 10vmin;
  transform: translateX(-50%) scale(0.5) rotate(75deg) rotateX(10deg)
    rotateY(-200deg);
  opacity: 0.8;
  z-index: 0;
  animation: moving-grass--2 1.5s linear infinite;
}

.flower__grass--3 {
  left: 48%;
  bottom: 8vmin;
  transform: translateX(-50%) scale(0.7) rotate(-30deg) rotateY(45deg);
  opacity: 0.9;
  z-index: 15;
  animation: moving-grass--3 2.2s linear infinite;
}

.flower__grass--4 {
  left: 45%;
  bottom: 15vmin;
  transform: translateX(-50%) scale(0.4) rotate(60deg) rotateX(15deg)
    rotateY(-180deg);
  opacity: 0.7;
  z-index: 5;
  animation: moving-grass--4 1.8s linear infinite;
}

.flower__grass--5 {
  left: 47%;
  bottom: 6vmin;
  transform: translateX(-50%) scale(0.6) rotate(-60deg) rotateY(60deg);
  opacity: 0.85;
  z-index: 12;
  animation: moving-grass--5 2.5s linear infinite;
}

.flower__grass--6 {
  left: 55%;
  bottom: 9vmin;
  transform: translateX(-50%) scale(0.65) rotate(35deg) rotateY(-45deg);
  opacity: 0.9;
  z-index: 15;
  animation: moving-grass--6 2.3s linear infinite;
}

.flower__grass--7 {
  left: 58%;
  bottom: 14vmin;
  transform: translateX(-50%) scale(0.45) rotate(-70deg) rotateX(20deg)
    rotateY(170deg);
  opacity: 0.75;
  z-index: 8;
  animation: moving-grass--7 1.9s linear infinite;
}

.flower__grass--8 {
  left: 53%;
  bottom: 5vmin;
  transform: translateX(-50%) scale(0.55) rotate(50deg) rotateY(-70deg);
  opacity: 0.8;
  z-index: 10;
  animation: moving-grass--8 2.1s linear infinite;
}

.flower__grass--9 {
  left: 42%;
  bottom: 20vmin;
  transform: translateX(-50%) scale(0.3) rotate(20deg) rotateY(90deg);
  opacity: 0.6;
  z-index: 2;
  animation: moving-grass--9 1.6s linear infinite;
}

.flower__grass--10 {
  left: 62%;
  bottom: 18vmin;
  transform: translateX(-50%) scale(0.35) rotate(-45deg) rotateY(-120deg);
  opacity: 0.65;
  z-index: 3;
  animation: moving-grass--10 2s linear infinite;
}

.flower__grass--top {
  width: 7vmin;
  height: 10vmin;
  border-top-right-radius: 100%;
  border-right: var(--line-w) solid var(--c);
  transform-origin: bottom center;
  transform: translateX(-50%) rotate(-2deg);
}

.flower__grass--bottom {
  margin-top: -2px;
  width: var(--line-w);
  height: 25vmin;
  background-image: linear-gradient(to top, transparent, var(--c));
}

.flower__grass__leaf {
  --size: 10vmin;
  position: absolute;
  width: calc(var(--size) * 2.1);
  height: var(--size);
  border-top-left-radius: var(--size);
  border-top-right-radius: var(--size);
  background-image: linear-gradient(
    to top,
    transparent,
    transparent 30%,
    var(--c)
  );
  z-index: 100;
}

.flower__grass__leaf--1 {
  top: -6%;
  left: 30%;
  --size: 6vmin;
  transform: rotate(-20deg);
  animation: growing-grass-ans--1 var(--speed-leaf) 2.6s backwards;
}
.flower__grass__leaf--2 {
  top: -5%;
  left: -110%;
  --size: 6vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--2 var(--speed-leaf) 2.4s linear backwards;
}
.flower__grass__leaf--3 {
  top: 5%;
  left: 60%;
  --size: 8vmin;
  transform: rotate(-18deg) rotateX(-20deg);
  animation: growing-grass-ans--3 var(--speed-leaf) 2.2s linear backwards;
}
.flower__grass__leaf--4 {
  top: 6%;
  left: -135%;
  --size: 8vmin;
  transform: rotate(2deg);
  animation: growing-grass-ans--4 var(--speed-leaf) 2s linear backwards;
}
.flower__grass__leaf--5 {
  top: 20%;
  left: 60%;
  --size: 10vmin;
  transform: rotate(-24deg) rotateX(-20deg);
  animation: growing-grass-ans--5 var(--speed-leaf) 1.8s linear backwards;
}
.flower__grass__leaf--6 {
  top: 22%;
  left: -180%;
  --size: 10vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--6 var(--speed-leaf) 1.6s linear backwards;
}
.flower__grass__leaf--7 {
  top: 39%;
  left: 70%;
  --size: 10vmin;
  transform: rotate(-10deg);
  animation: growing-grass-ans--7 var(--speed-leaf) 1.4s linear backwards;
}
.flower__grass__leaf--8 {
  top: 40%;
  left: -215%;
  --size: 11vmin;
  transform: rotate(10deg);
  animation: growing-grass-ans--8 var(--speed-leaf) 1.2s linear backwards;
}

.flower__grass__overlay {
  position: absolute;
  top: -10%;
  right: 0%;
  width: 100%;
  height: 100%;
  background-color: rgba(63, 63, 63, 0.207);
  filter: blur(1.5vmin);
  z-index: 100;
}

.grow-ans {
  animation: grow-ans 2s var(--d) backwards;
}
.growing-grass {
  animation: growing-grass-ans 1s 2s backwards;
}

.not-loaded * {
  animation-play-state: paused !important;
}

.flower,
.shooting-star {
  will-change: transform;
  transform: translateZ(0);
}

.flower__leafs,
.flower__line {
  backface-visibility: hidden;
}

@keyframes grow-ans {
  0% {
    transform: scale(0);
    opacity: 0;
  }
}

@keyframes growing-grass-ans {
  0% {
    transform: scale(0);
  }
}

@keyframes growing-grass-ans--1 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-20deg) scale(0);
  }
}
@keyframes growing-grass-ans--2 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}
@keyframes growing-grass-ans--3 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-18deg) rotateX(-20deg) scale(0);
  }
}
@keyframes growing-grass-ans--4 {
  0% {
    transform-origin: bottom right;
    transform: rotate(2deg) scale(0);
  }
}
@keyframes growing-grass-ans--5 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-24deg) rotateX(-20deg) scale(0);
  }
}
@keyframes growing-grass-ans--6 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}
@keyframes growing-grass-ans--7 {
  0% {
    transform-origin: bottom left;
    transform: rotate(-10deg) scale(0);
  }
}
@keyframes growing-grass-ans--8 {
  0% {
    transform-origin: bottom right;
    transform: rotate(10deg) scale(0);
  }
}

@keyframes moving-flower-1 {
  0%,
  100% {
    transform: rotate(2deg);
  }
  50% {
    transform: rotate(-2deg);
  }
}
@keyframes moving-flower-2 {
  0%,
  100% {
    transform: rotate(18deg);
  }
  50% {
    transform: rotate(14deg);
  }
}
@keyframes moving-flower-3 {
  0%,
  100% {
    transform: rotate(-23deg);
  }
  50% {
    transform: rotate(-25deg) rotateY(-10deg);
  }
}
@keyframes moving-flower-4 {
  0%,
  100% {
    transform: rotate(9deg);
  }
  50% {
    transform: rotate(12deg) rotateY(9deg);
  }
}
@keyframes moving-flower-5 {
  0%,
  100% {
    transform: rotate(-5deg);
  }
  50% {
    transform: rotate(-11deg) rotateY(5deg);
  }
}

@keyframes blooming-leaf-right {
  0% {
    transform-origin: left;
    transform: rotate(70deg) rotateY(30deg) scale(0);
  }
}
@keyframes blooming-leaf-left {
  0% {
    transform-origin: right;
    transform: rotate(-70deg) rotateY(30deg) scale(0);
  }
}
@keyframes grow-flower-tree {
  0% {
    height: 0;
    border-radius: 1vmin;
  }
}
@keyframes blooming-flower {
  0% {
    transform: scale(0);
  }
}

@keyframes moving-grass {
  0%,
  100% {
    transform: rotate(-48deg) rotateY(40deg);
  }
  50% {
    transform: rotate(-50deg) rotateY(40deg);
  }
}
@keyframes moving-grass--2 {
  0%,
  100% {
    transform: scale(0.5) rotate(75deg) rotateX(10deg) rotateY(-200deg);
  }
  50% {
    transform: scale(0.5) rotate(79deg) rotateX(10deg) rotateY(-200deg);
  }
}
@keyframes moving-grass--3 {
  0%,
  100% {
    transform: scale(0.7) rotate(-30deg) rotateY(45deg);
  }
  50% {
    transform: scale(0.7) rotate(-33deg) rotateY(50deg);
  }
}
@keyframes moving-grass--4 {
  0%,
  100% {
    transform: scale(0.4) rotate(60deg) rotateX(15deg) rotateY(-180deg);
  }
  50% {
    transform: scale(0.4) rotate(63deg) rotateX(18deg) rotateY(-175deg);
  }
}
@keyframes moving-grass--5 {
  0%,
  100% {
    transform: scale(0.6) rotate(-60deg) rotateY(60deg);
  }
  50% {
    transform: scale(0.6) rotate(-57deg) rotateY(65deg);
  }
}
@keyframes moving-grass--6 {
  0%,
  100% {
    transform: scale(0.65) rotate(35deg) rotateY(-45deg);
  }
  50% {
    transform: scale(0.65) rotate(38deg) rotateY(-40deg);
  }
}
@keyframes moving-grass--7 {
  0%,
  100% {
    transform: scale(0.45) rotate(-70deg) rotateX(20deg) rotateY(170deg);
  }
  50% {
    transform: scale(0.45) rotate(-67deg) rotateX(23deg) rotateY(175deg);
  }
}
@keyframes moving-grass--8 {
  0%,
  100% {
    transform: scale(0.55) rotate(50deg) rotateY(-70deg);
  }
  50% {
    transform: scale(0.55) rotate(53deg) rotateY(-65deg);
  }
}
@keyframes moving-grass--9 {
  0%,
  100% {
    transform: scale(0.3) rotate(20deg) rotateY(90deg);
  }
  50% {
    transform: scale(0.3) rotate(23deg) rotateY(95deg);
  }
}
@keyframes moving-grass--10 {
  0%,
  100% {
    transform: scale(0.35) rotate(-45deg) rotateY(-120deg);
  }
  50% {
    transform: scale(0.35) rotate(-42deg) rotateY(-115deg);
  }
}

.morita-text {
  position: absolute;
  top: 3%;
  left: 50%;
  transform: translateX(-50%);
  font-family: "Playfair Display", "Georgia", serif;
  font-weight: 500;
  font-style: italic;
  font-size: clamp(2.8rem, 5vw, 5.5rem);
  text-align: center;
  letter-spacing: 5px;

  color: #a855f7;

  text-shadow:
    0 0 6px rgba(0, 0, 0, 0.8),
    0 0 12px rgba(75, 0, 130, 0.6),
    0 0 20px rgba(138, 43, 226, 0.5),
    0 0 35px rgba(148, 0, 211, 0.4);
  animation: moritaAppear 3.5s ease-out forwards;

  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.5));
  opacity: 1;
  z-index: 20;
}

@keyframes moritaAppear {
  0% {
    opacity: 0;
    transform: translateX(-50%) scale(0.9);
    text-shadow: none;
  }
  30% {
    opacity: 0;
    transform: translateX(-50%) scale(1.02);
    text-shadow:
      0 0 10px rgba(0, 0, 0, 0.8),
      0 0 20px rgba(75, 0, 130, 0.8),
      0 0 30px rgba(138, 43, 226, 0.6),
      0 0 40px rgba(148, 0, 211, 0.5);
  }
  100% {
    opacity: 1;
    transform: translateX(-50%) scale(1);
    text-shadow:
      0 0 6px rgba(0, 0, 0, 0.8),
      0 0 12px rgba(75, 0, 130, 0.6),
      0 0 20px rgba(138, 43, 226, 0.5),
      0 0 35px rgba(148, 0, 211, 0.4);
  }
}

.envelope-wrapper {
  z-index: 20;
}
body.letter-open .morita-text {
  z-index: 1;
}

.flower-wrapping {
  position: absolute;
  bottom: -15vmin;
  left: 50%;
  transform: translateX(-50%);
  width: 130vmin;
  height: 100vmin;
  background-image: url("../images/ramo.png");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: bottom center;
  z-index: -99;
}

.music-control {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 800;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.music-btn {
  width: 52px;
  height: 52px;
  background:
    radial-gradient(ellipse at 48% 78%, rgba(142, 202, 230, 0.24), transparent 40%),
    linear-gradient(145deg, rgba(255, 244, 194, 0.26), transparent 44%),
    linear-gradient(135deg, #050814 0%, #10183c 44%, #d9822b 76%, #3a1f13 100%);
  border: 1px solid rgba(255, 244, 194, 0.9);
  position: relative;
  border-radius: 8px;
  cursor: pointer;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow:
    0 0 0 1px rgba(142, 202, 230, 0.26),
    0 8px 18px rgba(0, 0, 0, 0.42),
    0 0 18px rgba(244, 197, 110, 0.24);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease,
    border-color 0.3s ease;
  color: var(--music-gold);
  font-size: 1.2rem;
  text-shadow: 0 0 8px rgba(255, 244, 194, 0.45);
  animation: musicButtonGlow 3.8s ease-in-out infinite;
}

.music-btn::before {
  content: "";
  position: absolute;
  inset: 7px;
  border: 1px solid rgba(142, 202, 230, 0.45);
  border-radius: 6px;
  pointer-events: none;
}

.music-btn::after {
  content: none;
}

.music-btn i {
  position: relative;
  z-index: 2;
  width: 24px;
  height: 24px;
  color: #fff;
  font-size: 0;
  line-height: 0;
  text-shadow: none;
}

.music-btn #playIcon::before,
.music-btn #pauseIcon::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  filter: drop-shadow(0 0 5px rgba(244, 197, 110, 0.58));
}

.music-btn #playIcon::before {
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 16px solid #fff4c2;
  transform: translate(-42%, -50%);
}

.music-btn #pauseIcon::before {
  width: 16px;
  height: 20px;
  border-radius: 2px;
  background: linear-gradient(
    to right,
    #fff4c2 0 5px,
    transparent 5px 11px,
    #fff4c2 11px 16px
  );
  transform: translate(-50%, -50%);
}

.music-btn:hover {
  transform: translateY(-2px) scale(1.04);
  border-color: rgba(142, 202, 230, 0.95);
  box-shadow:
    0 0 0 1px rgba(255, 244, 194, 0.46),
    0 10px 22px rgba(0, 0, 0, 0.46),
    0 0 24px rgba(142, 202, 230, 0.28);
}

.music-btn:active {
  transform: translateY(0) scale(0.97);
}

.music-btn:focus-visible {
  outline: 2px solid var(--music-gold);
  outline-offset: 3px;
}

@keyframes musicButtonGlow {
  0%,
  100% {
    filter: drop-shadow(0 0 2px rgba(244, 197, 110, 0.26));
  }
  50% {
    filter: drop-shadow(0 0 8px rgba(142, 202, 230, 0.28));
  }
}

.volume-control {
  width: 120px;
  background: linear-gradient(
    180deg,
    rgba(255, 249, 222, 0.94),
    rgba(244, 197, 110, 0.88)
  );
  padding: 10px;
  border-radius: 8px;
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.35),
    0 0 14px rgba(216, 130, 43, 0.14);
  border: 1px solid rgba(142, 202, 230, 0.72);
  margin-top: 10px;
  display: none;
  opacity: 0;
  transform: translateY(-10px);
  transition:
    opacity 0.3s ease,
    transform 0.3s ease;
}

.volume-control.visible {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.volume-control input {
  width: 100%;
  height: 8px;
  background: linear-gradient(
    90deg,
    var(--music-green),
    var(--music-gold),
    var(--music-lilac)
  );
  border-radius: 4px;
  outline: none;
  cursor: pointer;
  -webkit-appearance: none;
}

.volume-control input::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  background: var(--music-gold);
  border: 1px solid #8ecae6;
  border-radius: 8px;
  box-shadow:
    0 2px 5px rgba(0, 0, 0, 0.3),
    0 0 8px rgba(244, 226, 133, 0.45);
}

.volume-control input::-moz-range-thumb {
  width: 16px;
  height: 16px;
  background: var(--music-gold);
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
  border: 1px solid #8ecae6;
}

@media (max-width: 768px) {
  .music-control {
    right: 15px;
    top: 15px;
  }

  .music-btn {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }

  .volume-control {
    width: 100px;
    margin-top: 8px;
  }

  .volume-control input {
    height: 6px;
  }

  .volume-control input::-webkit-slider-thumb {
    width: 14px;
    height: 14px;
  }

  .volume-control input::-moz-range-thumb {
    width: 14px;
    height: 14px;
  }
  @media (max-width: 768px) {
    .shooting-stars {
      animation-duration: 5s;
    }
    .flower {
      animation-duration: 6s;
    }
    .flower__grass {
      animation-play-state: paused;
    }

    .flower__leafs::after {
      filter: blur(4vmin);
    }
  }
}

@media (max-width: 576px) {
  .music-btn {
    width: 35px;
    height: 35px;
    font-size: 0.9rem;
  }

  .volume-control {
    width: 90px;
  }
}

@media (max-width: 768px) {
  .flowers {
    margin-bottom: 10vh;
    min-height: 90vh;
    transform: scale(0.65);
  }
  .flower {
    bottom: 8vmin;
  }
  .flower__grass {
    bottom: 8vmin;
  }

  .morita-text {
    top: 5%;
    font-size: clamp(2rem, 6vw, 3.5rem);
  }
}

@media (max-width: 480px) {
  .flowers {
    transform: scale(1);
    min-height: 85vh;
  }
}

@media all and (orientation: landscape) and (max-height: 500px) {
  .flowers {
    margin-bottom: 0vh;
  }
}

body {
  height: 100vh;
  min-height: 100vh;
  background: var(--prince-sky);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image:
    radial-gradient(3px 3px at 28px 42px, #fff4c2, transparent),
    radial-gradient(2px 2px at 78px 96px, rgba(255, 244, 194, 0.92), transparent),
    radial-gradient(2px 2px at 130px 28px, rgba(244, 197, 110, 0.9), transparent),
    radial-gradient(1px 1px at 178px 116px, rgba(255, 255, 255, 0.82), transparent),
    radial-gradient(2px 2px at 226px 76px, rgba(255, 244, 194, 0.9), transparent);
  background-repeat: repeat;
  background-size: 260px 150px;
  opacity: 0.72;
}

body::after {
  content: none;
}

@media (max-width: 768px) {
  :root {
    --prince-sky:
      radial-gradient(circle at 14% 17%, rgba(255, 244, 194, 0.9) 0 1px, transparent 2px),
      radial-gradient(circle at 28% 13%, rgba(244, 197, 110, 0.7) 0 1px, transparent 2px),
      radial-gradient(circle at 73% 18%, rgba(255, 244, 194, 0.7) 0 1px, transparent 2px),
      radial-gradient(ellipse at 50% 100%, rgba(255, 244, 194, 0.13), transparent 36%),
      linear-gradient(180deg, #050814 0%, #10183c 44%, #193b58 74%, #071713 100%);
  }

  body {
    background: var(--prince-sky);
  }
}

.flower__leafs::after {
  background-color: #f4e285;
  filter: blur(8vmin);
  opacity: 0.22;
}

.flower__leaf {
  background: radial-gradient(
    circle at 50% 20%,
    #ffe7d6 0%,
    #ff8f9d 18%,
    #e63946 42%,
    #9d1026 70%,
    #3c0714 100%
  );
  border: 1.5px solid #7a1021;
  box-shadow:
    0 0 1vmin rgba(230, 57, 70, 0.5),
    0 0 2.2vmin rgba(244, 226, 133, 0.22),
    inset 0 0 1.2vmin rgba(255, 246, 220, 0.18);
}

.flower__leaf:nth-child(4),
.flower__leaf:nth-child(5),
.flower__leaf:nth-child(6) {
  background: radial-gradient(
    circle at 50% 20%,
    #fff1c7 0%,
    #ffb0a6 18%,
    #ff5a6f 38%,
    #c81d36 62%,
    #6f0d21 84%,
    #2b0711 100%
  );
  border: 1px solid #8a1026;
  box-shadow:
    0 0 1vmin rgba(244, 226, 133, 0.3),
    0 0 0.8vmin rgba(255, 90, 111, 0.48),
    inset 0 0 0.9vmin rgba(255, 255, 255, 0.18);
}

.flower__white-circle {
  background: radial-gradient(
    circle at 40% 40%,
    #fff4c2 0%,
    #f4e285 38%,
    #d8a92a 62%,
    #6b251d 100%
  );
  box-shadow:
    0 0 1.1vmin rgba(244, 226, 133, 0.75),
    0 0 1.8vmin rgba(230, 57, 70, 0.28),
    inset 0 0 0.5vmin rgba(255, 255, 255, 0.22);
}

.flower__line {
  background: linear-gradient(to bottom, #6fbf73, #2d6a4f 38%, #0b2f22 100%);
  box-shadow:
    0 0 0.45vmin rgba(111, 191, 115, 0.22),
    inset 0 0 0.25vmin rgba(255, 255, 255, 0.1);
}

.flower__line__leaf {
  background: linear-gradient(to bottom, #b7e4c7, #52b788 62%, #1b4332 100%);
  box-shadow: 0 0 0.6vmin rgba(116, 198, 157, 0.32);
}

.flower__grass {
  --c: #74c69d;
}

.flowers {
  filter:
    drop-shadow(0 0 10px rgba(244, 226, 133, 0.1))
    drop-shadow(0 0 8px rgba(230, 57, 70, 0.08));
}

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

.firefly {
  position: absolute;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #f4e285;
  box-shadow:
    0 0 6px #f4e285,
    0 0 12px rgba(244, 226, 133, 0.95),
    0 0 22px rgba(244, 226, 133, 0.55);
  opacity: 0;
  animation: floatFirefly 7s ease-in-out infinite;
}

.firefly:nth-child(1) {
  left: 8%;
  top: 78%;
  animation-delay: 0s;
}
.firefly:nth-child(2) {
  left: 18%;
  top: 70%;
  animation-delay: 1.2s;
}
.firefly:nth-child(3) {
  left: 28%;
  top: 82%;
  animation-delay: 2.4s;
}
.firefly:nth-child(4) {
  left: 42%;
  top: 68%;
  animation-delay: 0.8s;
}
.firefly:nth-child(5) {
  left: 55%;
  top: 80%;
  animation-delay: 1.8s;
}
.firefly:nth-child(6) {
  left: 67%;
  top: 72%;
  animation-delay: 2.8s;
}
.firefly:nth-child(7) {
  left: 76%;
  top: 84%;
  animation-delay: 0.4s;
}
.firefly:nth-child(8) {
  left: 86%;
  top: 74%;
  animation-delay: 3.2s;
}
.firefly:nth-child(9) {
  left: 50%;
  top: 60%;
  animation-delay: 1.5s;
}
.firefly:nth-child(10) {
  left: 32%;
  top: 64%;
  animation-delay: 2.1s;
}

@keyframes floatFirefly {
  0% {
    transform: translate(0, 0) scale(0.7);
    opacity: 0;
  }
  15% {
    opacity: 1;
  }
  50% {
    transform: translate(20px, -40px) scale(1);
    opacity: 0.95;
  }
  85% {
    opacity: 0.7;
  }
  100% {
    transform: translate(-15px, -90px) scale(0.75);
    opacity: 0;
  }
}

.morita-text {
  color: #fff4c2 !important;
  text-shadow:
    0 0 8px rgba(244, 226, 133, 0.4),
    0 0 18px rgba(199, 125, 255, 0.25);
}

.special-stars {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 5;
}

.special-stars::after {
  content: "";
  position: absolute;
  top: 3%;
  right: 4%;
  width: clamp(118px, 13vw, 170px);
  height: clamp(118px, 13vw, 170px);
  background: url("../images/rosa-lua.png") center / contain no-repeat;
  filter: brightness(1.35) contrast(1.12) saturate(1.08)
    drop-shadow(0 0 18px rgba(255, 244, 194, 0.28));
  opacity: 1;
  transform: rotate(-7deg);
  transform-origin: center;
}

@keyframes moveRay {
  0%,
  100% {
    transform: translate(0, 0);
  }
  50% {
    transform: translate(6px, -6px);
  }
}

/* ===== CARTA PERSONALIZADA ===== */

.titulo-carta {
  font-family: "Great Vibes", "Caveat", cursive;
  text-align: center;
  font-size: 42px;
  margin-bottom: 12px;
  color: #3a1f13;
  letter-spacing: 0;

  text-shadow:
    0 0 8px rgba(244, 226, 133, 0.72),
    0 0 14px rgba(142, 202, 230, 0.22),
    0 1px 0 rgba(255, 248, 231, 0.9);
}

.imagem-carta {
  display: block;
  margin: 0 auto 12px;
  width: 100%;
  max-width: 300px;
  border: 2px solid rgba(244, 226, 133, 0.8);
  border-radius: 8px;
  object-fit: cover;

  box-shadow:
    0 6px 15px rgba(8, 28, 21, 0.28),
    0 0 12px rgba(199, 125, 255, 0.18);

  animation: fadeInImage 1.5s ease;
}

.text {
  text-align: left;
}

.text p {
  margin-bottom: 10px;
}

.text em {
  display: block;
  text-align: center;
  color: #1d3557;
  font-size: 18px;
  margin-top: 10px;
  text-shadow:
    0 0 6px rgba(244, 226, 133, 0.38),
    0 1px 0 rgba(255, 248, 231, 0.72);
}

@keyframes fadeInImage {
  from {
    opacity: 0;
    transform: scale(0.9);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 768px) {
  .titulo-carta {
    font-size: 16px;
    margin-bottom: 8px;
  }

  .imagem-carta {
    max-width: 200px;
    margin-bottom: 8px;
    border-radius: 10px;
  }

  .text p {
    font-size: 10px;
    line-height: 14px;
  }

  .text em {
    font-size: 11px;
  }
}
