@import url("https://fonts.googleapis.com/css2?family=Fredoka:wght@500;600;700&family=Nunito:wght@400;600;700&display=swap");
:root {
  --purple: #6c63ff;
  --pink: #ff5f8f;
  --yellow: #ffc94a;
  --mint: #35c6a1;
  --ink: #352a55;
}
* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  color: var(--ink);
  font-family: Nunito, sans-serif;
  overflow-x: hidden;
}
h1,
h2 {
  font-family: Fredoka, sans-serif;
}
button {
  font: inherit;
  cursor: pointer;
}
.moving-bg {
  position: fixed;
  inset: 0;
  z-index: -3;
  background: linear-gradient(-45deg, #fff0f6, #eaf4ff, #fff7d9, #edfff9);
  background-size: 400% 400%;
  animation: bgMove 12s ease infinite;
}
.sparkles {
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}
.sparkles i {
  position: absolute;
  width: 6px;
  height: 6px;
  background: white;
  border-radius: 50%;
  box-shadow: 0 0 13px 4px #fff;
  animation: twinkle 2s infinite;
}
.sparkles i:nth-child(3n) {
  width: 10px;
  height: 10px;
  background: #ffd75e;
}
.sparkles i:nth-child(4n) {
  background: #ff91b2;
}
.sparkles i:nth-child(1) {
  left: 8%;
  top: 12%;
}
.sparkles i:nth-child(2) {
  left: 22%;
  top: 26%;
  animation-delay: 0.4s;
}
.sparkles i:nth-child(3) {
  left: 40%;
  top: 10%;
  animation-delay: 0.8s;
}
.sparkles i:nth-child(4) {
  left: 65%;
  top: 20%;
}
.sparkles i:nth-child(5) {
  left: 88%;
  top: 9%;
  animation-delay: 1s;
}
.sparkles i:nth-child(6) {
  left: 78%;
  top: 44%;
}
.sparkles i:nth-child(7) {
  left: 14%;
  top: 55%;
  animation-delay: 0.6s;
}
.sparkles i:nth-child(8) {
  left: 50%;
  top: 67%;
}
.sparkles i:nth-child(n + 9) {
  left: calc((var(--n, 5)) * 10%);
  top: 80%;
}
.balloons {
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
}
.balloons span {
  position: absolute;
  bottom: -150px;
  left: calc(8% + var(--i) * 17%);
  width: 58px;
  height: 72px;
  border-radius: 52% 48% 50% 50%;
  background: var(--c);
  box-shadow: inset -12px -10px 20px #0002;
  animation: fly calc(9s + var(--i) * 1.3s) linear infinite;
  animation-delay: calc(var(--i) * -2s);
}
.balloons span:after {
  content: "";
  position: absolute;
  left: 50%;
  top: 69px;
  height: 95px;
  border-left: 1px solid #786a86;
}
.balloons span:before {
  content: "";
  position: absolute;
  bottom: -3px;
  left: 24px;
  border: 6px solid transparent;
  border-bottom-color: var(--c);
}

.color-welcome {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 30px 20px;
}
.badge,
.mini-tag {
  background: #ffffffbd;
  border: 1px solid #fff;
  border-radius: 99px;
  padding: 8px 16px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--purple);
  box-shadow: 0 8px 30px #6c63ff1a;
}
.gift-pop {
  position: relative;
  border: 0;
  background: none;
  font-size: 100px;
  margin: 18px 0 10px;
  filter: drop-shadow(0 22px 17px #663c7033);
  animation: giftBounce 1.6s ease-in-out infinite;
}
.gift-pop i,
.gift-pop b {
  position: absolute;
  inset: 50%;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--yellow);
  z-index: -1;
  animation: orbit 2s linear infinite;
}
.gift-pop b {
  background: var(--pink);
  animation-delay: -1s;
}
.color-welcome h1 {
  font-size: clamp(48px, 10vw, 82px);
  line-height: 0.9;
  margin: 5px 0 13px;
  color: #46366b;
}
.color-welcome em,
.pop-title em,
.color-final em {
  font-style: normal;
  background: linear-gradient(90deg, var(--pink), var(--purple), #23a9ed);
  -webkit-background-clip: text;
  color: transparent;
}
.color-welcome p {
  color: #75698f;
}
.rainbow-btn {
  border: 0;
  border-radius: 99px;
  padding: 15px 25px;
  background: linear-gradient(90deg, var(--pink), var(--purple));
  color: white;
  font-weight: 800;
  box-shadow: 0 14px 35px #6c63ff45;
  transition: 0.25s;
  animation: buttonGlow 2s infinite;
}
.rainbow-btn:hover {
  transform: translateY(-4px) scale(1.03);
}

.color-hero {
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 70px 20px;
}
.photo-ring {
  width: min(65vw, 280px);
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 8px;
  background: conic-gradient(
    var(--pink),
    var(--yellow),
    var(--mint),
    #55b8ff,
    var(--purple),
    var(--pink)
  );
  animation: photoMove 3s ease-in-out infinite;
  margin: 25px 0;
}
.photo-ring > div {
  width: 100%;
  height: 100%;
  padding: 7px;
  border-radius: 50%;
  background: white;
  position: relative;
  overflow: hidden;
}
.photo-ring img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  position: relative;
  z-index: 1;
  animation: reverseSpin 8s linear infinite;
}
.photo-ring span {
  position: absolute;
  inset: 7px;
  border-radius: 50%;
  display: grid;
  place-content: center;
  background: #ffe8f1;
  color: var(--pink);
  font-size: 54px;
}
.photo-ring small {
  display: block;
  font-size: 10px;
}
.pop-title {
  font-size: clamp(52px, 12vw, 84px);
  line-height: 0.84;
  margin: 8px 0 18px;
  animation: titlePop 0.8s both;
}
.color-hero > p {
  max-width: 480px;
  font-size: 17px;
  line-height: 1.7;
}
.scroll-cue {
  margin-top: 23px;
  font-size: 12px;
  color: #776b90;
}
.scroll-cue b {
  display: block;
  font-size: 25px;
  animation: down 1.3s infinite;
}

.color-letter {
  padding: 95px 20px;
  background: linear-gradient(135deg, #6c63ff, #a75be8);
}
.color-letter article {
  max-width: 650px;
  margin: auto;
  background: #fffdf8;
  border-radius: 30px;
  padding: clamp(34px, 7vw, 65px);
  box-shadow: 0 25px 80px #34206a55;
  position: relative;
  transform: rotate(-0.5deg);
}
.tape {
  position: absolute;
  top: -18px;
  left: 50%;
  transform: translateX(-50%) rotate(1deg);
  background: var(--yellow);
  padding: 9px 20px;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.color-letter h2 {
  font-size: 43px;
  margin: 6px 0 20px;
  color: #5d46a8;
}
.color-letter p {
  font-size: 17px;
  line-height: 1.8;
  color: #665b72;
}
.color-letter strong {
  display: block;
  text-align: right;
  color: var(--pink);
  font-size: 17px;
  margin-top: 25px;
}

.cake-zone {
  min-height: 760px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 20px;
}
.cake-zone h2 {
  font-size: 62px;
  margin: 14px 0 4px;
  color: #513e82;
}
.cake {
  position: relative;
  width: 300px;
  height: 270px;
}
.icing {
  position: absolute;
  left: 30px;
  bottom: 92px;
  width: 240px;
  height: 76px;
  border-radius: 50% 50% 15px 15px;
  background: #ff9fbd;
  color: white;
  padding-top: 27px;
  z-index: 3;
}
.cake-body {
  position: absolute;
  left: 30px;
  bottom: 50px;
  width: 240px;
  height: 110px;
  background: repeating-linear-gradient(
    90deg,
    #8a72ff 0 40px,
    #9e89ff 40px 80px
  );
  border-radius: 15px;
  z-index: 2;
}
.plate {
  position: absolute;
  left: 5px;
  bottom: 37px;
  width: 290px;
  height: 25px;
  border-radius: 50%;
  background: #5bd1bf;
}
.candle {
  position: absolute;
  bottom: 164px;
  width: 11px;
  height: 55px;
  background: repeating-linear-gradient(45deg, #fff 0 5px, #ff678f 5px 10px);
  z-index: 4;
}
.candle i {
  position: absolute;
  top: -23px;
  width: 13px;
  height: 20px;
  border-radius: 50% 50% 45%;
  background: #ffaf22;
  box-shadow: 0 0 22px 6px #ffc642;
  animation: flame 0.45s alternate infinite;
}
.candle.out i {
  animation: flameOut 0.5s forwards;
}
.wish-text {
  font: 700 27px Fredoka;
  color: var(--pink);
  animation: titlePop 0.65s both;
}

.color-final {
  min-height: 85vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 80px 25px;
  background: linear-gradient(135deg, #45307c, #792b72);
  color: white;
  position: relative;
  overflow: hidden;
}
.heart-beat {
  font-size: 80px;
  animation: heart 1.1s infinite;
}
.color-final h2 {
  font-size: clamp(52px, 10vw, 85px);
  line-height: 0.88;
  margin: 10px 0 25px;
}
.color-final p {
  max-width: 550px;
  font-size: 18px;
  color: #f1deff;
}
.color-final small {
  margin: 10px 0 28px;
  color: #e1bcf0;
}
.color-final button {
  border: 1px solid #ffffff80;
  border-radius: 99px;
  background: #ffffff17;
  color: white;
  padding: 13px 21px;
  font-weight: 800;
}
.music {
  position: fixed;
  right: 15px;
  bottom: 15px;
  z-index: 20;
  border: 2px solid white;
  border-radius: 99px;
  background: #5744ba;
  color: white;
  padding: 8px 12px 8px 8px;
  display: flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 8px 25px #2d1c1940;
}
.music span {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--pink);
  animation: heart 1.5s infinite;
}
.music b {
  font-size: 9px;
  text-transform: uppercase;
}
.confetti {
  position: fixed;
  inset: 0;
  z-index: 50;
  pointer-events: none;
  overflow: hidden;
}
.confetti i {
  position: absolute;
  top: -20px;
  left: var(--x);
  width: 10px;
  height: 17px;
  background: var(--c);
  transform: rotate(var(--r));
  animation: fall 4s var(--d) ease-in forwards;
}

@keyframes bgMove {
  0%,
  100% {
    background-position: 0 50%;
  }
  50% {
    background-position: 100% 50%;
  }
}
@keyframes twinkle {
  50% {
    opacity: 0.2;
    transform: scale(0.3);
  }
}
@keyframes fly {
  to {
    transform: translateY(-125vh) rotate(12deg);
  }
}
@keyframes giftBounce {
  50% {
    transform: translateY(-12px) rotate(4deg);
  }
}
@keyframes orbit {
  to {
    transform: rotate(360deg) translateX(90px);
  }
}
@keyframes buttonGlow {
  50% {
    box-shadow: 0 16px 45px #ff5f8f80;
  }
}
@keyframes spinRing {
  to {
    transform: rotate(360deg);
  }
}
@keyframes reverseSpin {
  to {
    transform: rotate(-360deg);
  }
}
@keyframes titlePop {
  from {
    opacity: 0;
    transform: scale(0.7);
  }
  70% {
    transform: scale(1.06);
  }
}
@keyframes down {
  50% {
    transform: translateY(7px);
  }
}
@keyframes flame {
  to {
    transform: scaleX(0.65) rotate(8deg);
  }
}
@keyframes flameOut {
  to {
    opacity: 0;
    transform: translateY(-12px) scale(0.1);
  }
}
@keyframes heart {
  50% {
    transform: scale(1.14);
  }
}
@keyframes fall {
  to {
    top: 110vh;
    transform: rotate(900deg) translateX(55px);
  }
}
@media (max-width: 480px) {
  .gift-pop {
    font-size: 84px;
  }
  .color-welcome h1 {
    font-size: 47px;
  }
  .photo-ring {
    width: 225px;
  }
  .cake-zone {
    min-height: 650px;
  }
  .music b {
    display: none;
  }
  .music {
    padding-right: 8px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    animation: none !important;
  }
}

.grow-journey {
  position: fixed;
  inset: 0;
  z-index: 15;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 24px;
  background: linear-gradient(160deg, #fff5cf, #ffd8eb 45%, #dcd7ff);
  overflow: hidden;
}
.journey-stars {
  position: absolute;
  top: 8%;
  font-size: 26px;
  color: #ffae35;
  letter-spacing: 12px;
  animation: twinkle 1.5s infinite;
}
.journey-kicker {
  text-transform: uppercase;
  letter-spacing: 0.2em;
  font-size: 10px;
  font-weight: 800;
  color: #8b64c9;
  margin: 0;
}
.grow-journey h2 {
  font-size: clamp(31px, 7vw, 54px);
  margin: 8px 0 18px;
  color: #503777;
}
.age-track {
  width: min(520px, 86vw);
  display: flex;
  justify-content: space-between;
  position: relative;
  font-size: 9px;
  font-weight: 800;
  color: #8f789c;
  margin-bottom: 12px;
}
.age-track:before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 21px;
  height: 4px;
  background: #ffffffa8;
  border-radius: 10px;
}
.age-track i {
  position: absolute;
  left: 0;
  top: 18px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--pink);
  box-shadow: 0 0 12px var(--pink);
  animation: ageDot 8s linear forwards;
}
.girl-stage {
  width: 320px;
  height: 340px;
  position: relative;
  display: grid;
  place-items: end center;
}
.cartoon-girl {
  position: absolute;
  bottom: 35px;
  left: 50%;
  width: 120px;
  height: 240px;
  transform-origin: bottom center;
  animation:
    growGirl 8s ease-in-out forwards,
    girlDance 0.65s 7.1s infinite alternate;
}
.girl-head {
  position: absolute;
  top: 31px;
  left: 28px;
  width: 64px;
  height: 70px;
  border-radius: 48% 48% 45% 45%;
  background: #f5bf9a;
  z-index: 3;
}
.girl-hair.back {
  position: absolute;
  top: 18px;
  left: 19px;
  width: 83px;
  height: 102px;
  border-radius: 50% 50% 42% 42%;
  background: #4a2d35;
  z-index: 1;
  animation: hairGrow 8s forwards;
}
.girl-hair.fringe {
  position: absolute;
  top: 25px;
  left: 29px;
  width: 62px;
  height: 31px;
  border-radius: 50% 50% 30% 30%;
  background: #4a2d35;
  z-index: 4;
  clip-path: polygon(0 0, 100% 0, 100% 45%, 70% 35%, 58% 85%, 42% 40%, 0 65%);
}
.eye {
  position: absolute;
  top: 30px;
  width: 5px;
  height: 7px;
  border-radius: 50%;
  background: #382b3d;
}
.eye.left {
  left: 17px;
}
.eye.right {
  right: 17px;
}
.smile {
  position: absolute;
  left: 26px;
  top: 47px;
  width: 13px;
  height: 7px;
  border-bottom: 2px solid #b75a67;
  border-radius: 50%;
}
.girl-neck {
  position: absolute;
  top: 94px;
  left: 51px;
  width: 18px;
  height: 16px;
  background: #f5bf9a;
  z-index: 2;
}
.girl-dress {
  position: absolute;
  top: 105px;
  left: 25px;
  width: 70px;
  height: 92px;
  background: linear-gradient(145deg, #ff5f8f, #9b64ed);
  clip-path: polygon(25% 0, 75% 0, 100% 100%, 0 100%);
  z-index: 3;
  animation: dressChange 8s forwards;
}
.girl-dress i {
  position: absolute;
  left: 22px;
  top: 20px;
  width: 27px;
  height: 27px;
  border: 3px solid #ffffffaa;
  border-radius: 50%;
}
.girl-arm {
  position: absolute;
  top: 110px;
  width: 16px;
  height: 83px;
  background: #f5bf9a;
  border-radius: 12px;
  z-index: 2;
  transform-origin: top;
}
.girl-arm.left {
  left: 24px;
  transform: rotate(15deg);
  animation: waveLeft 0.65s 7s infinite alternate;
}
.girl-arm.right {
  right: 24px;
  transform: rotate(-15deg);
  animation: waveRight 0.65s 7s infinite alternate;
}
.girl-leg {
  position: absolute;
  top: 190px;
  width: 18px;
  height: 49px;
  background: #f5bf9a;
  border-radius: 0 0 10px 10px;
  z-index: 2;
}
.girl-leg.left {
  left: 39px;
}
.girl-leg.right {
  right: 39px;
}
.tiny-cake {
  position: absolute;
  right: 15px;
  bottom: 37px;
  font-size: 70px;
  opacity: 0;
  animation: cakeArrive 0.7s 6.7s forwards;
}
.party-pop {
  position: absolute;
  left: 15px;
  top: 80px;
  font-size: 58px;
  opacity: 0;
  animation: cakeArrive 0.6s 7.4s forwards;
}
.journey-line {
  font-weight: 700;
  color: #664e76;
  opacity: 0;
  animation: lineReveal 0.7s 7.7s forwards;
  margin: 5px 0;
}
.skip-journey {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 0;
  background: #ffffff8c;
  color: #715a84;
  border-radius: 99px;
  padding: 9px 14px;
  font-size: 10px;
}
@keyframes ageDot {
  to {
    left: calc(100% - 11px);
  }
}
@keyframes growGirl {
  0% {
    transform: scale(0.42) translateX(-60px);
  }
  25% {
    transform: scale(0.62) translateX(-30px);
  }
  50% {
    transform: scale(0.8);
  }
  75%,
  100% {
    transform: scale(1);
  }
}
@keyframes hairGrow {
  0%,
  25% {
    height: 72px;
  }
  55% {
    height: 91px;
  }
  100% {
    height: 122px;
  }
}
@keyframes dressChange {
  0%,
  30% {
    background: #ffc94a;
  }
  50% {
    background: #55b8ff;
  }
  75%,
  100% {
    background: linear-gradient(145deg, #ff5f8f, #9b64ed);
  }
}
@keyframes girlDance {
  to {
    transform: scale(1) rotate(3deg) translateY(-5px);
  }
}
@keyframes waveLeft {
  to {
    transform: rotate(55deg);
  }
}
@keyframes waveRight {
  to {
    transform: rotate(-55deg);
  }
}
@keyframes cakeArrive {
  from {
    opacity: 0;
    transform: translateY(30px) scale(0.5);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes lineReveal {
  to {
    opacity: 1;
  }
}
@media (max-width: 480px) {
  .girl-stage {
    transform: scale(0.86);
    margin: -22px 0;
  }
  .grow-journey h2 {
    font-size: 33px;
  }
  .journey-stars {
    top: 4%;
  }
}
[hidden] {
  display: none !important;
}
.scroll-cue {
  margin-top: 26px;
  border: 0;
  background: rgba(255, 255, 255, 0.88);
  color: #5e478a;
  border-radius: 22px;
  padding: 10px 22px 7px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 12px 34px rgba(82, 55, 120, 0.16);
  animation: scrollFloat 1.45s ease-in-out infinite;
  position: relative;
  z-index: 4;
}
.scroll-cue span {
  font-size: 13px;
  font-weight: 800;
}
.scroll-cue small {
  font-size: 9px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: #a179a8;
  margin-top: 2px;
}
.scroll-cue b {
  font-size: 27px;
  line-height: 0.7;
  color: var(--pink);
  animation: chevronBounce 0.8s ease-in-out infinite;
}
.scroll-cue:hover {
  background: white;
  transform: translateY(-3px);
}
@keyframes scrollFloat {
  50% {
    transform: translateY(7px);
  }
}
@keyframes chevronBounce {
  50% {
    transform: translateY(4px);
  }

@keyframes photoMove {
    0%, 100% {
        transform: scale(1) translateY(0);
    }

    50% {
        transform: scale(1.06) translateY(-6px);
    }
}


}
@media (max-width: 480px) {
  .color-hero {
    min-height: 94svh;
    padding-bottom: 30px;
  }
  .scroll-cue {
    margin-top: 18px;
    padding: 9px 25px 6px;
  }
}
.color-hero {
  position: relative;
  padding-bottom: 105px;
}
.scroll-cue {
  position: absolute;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  margin: 0;
  transform: translateX(-50%);
  white-space: nowrap;
  animation: scrollDock 1.4s ease-in-out infinite;
}
.scroll-cue:hover {
  transform: translateX(-50%) translateY(-3px);
}
@keyframes scrollDock {
  0%,
  100% {
    transform: translateX(-50%) translateY(0);
  }
  50% {
    transform: translateX(-50%) translateY(7px);
  }
}
@media (max-width: 480px) {
  .color-hero {
    min-height: 100svh;
    padding-top: 28px;
    padding-bottom: 90px;
  }
  .photo-ring {
    width: min(52vw, 210px);
    margin: 14px 0;
  }
  .pop-title {
    font-size: clamp(42px, 11vw, 58px);
    margin: 5px 0 10px;
  }
  .color-hero > p {
    font-size: 14px;
    line-height: 1.5;
    margin: 0;
  }
  .scroll-cue {
    bottom: max(12px, env(safe-area-inset-bottom));
    padding: 7px 22px 5px;
  }
  .scroll-cue span {
    font-size: 12px;
  }
  .scroll-cue b {
    font-size: 22px;
  }
}
