:root {
  --pink: #ff65b3;
  --rose: #ff9bcf;
  --cream: #fff7fd;
  --lavender: #d9c0ff;
  --sky: #b8f1ff;
  --mint: #bdf8df;
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
}

body {
  overflow: hidden;
  color: var(--cream);
  font-family: ui-rounded, "Arial Rounded MT Bold", "Trebuchet MS", system-ui, sans-serif;
}

.dreamscape {
  position: relative;
  display: grid;
  width: 100vw;
  min-height: 100vh;
  place-items: center;
  isolation: isolate;
  overflow: hidden;
  background:
    radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.95) 0 7%, transparent 18%),
    radial-gradient(circle at 80% 22%, rgba(255, 246, 253, 0.88) 0 5%, transparent 16%),
    radial-gradient(circle at 72% 78%, rgba(189, 248, 223, 0.55) 0 8%, transparent 22%),
    linear-gradient(145deg, #ffaad8 0%, #ffc9e8 33%, #c9f4ff 68%, #fff4ba 100%);
}

.dreamscape::before,
.dreamscape::after {
  position: absolute;
  inset: auto auto 7vh 6vw;
  width: min(44vw, 520px);
  aspect-ratio: 1;
  content: "";
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.42), transparent 66%);
  filter: blur(10px);
  animation: float-glow 8s ease-in-out infinite alternate;
  z-index: 0;
}

.dreamscape::after {
  inset: 8vh 8vw auto auto;
  width: min(38vw, 440px);
  background: radial-gradient(circle, rgba(255, 112, 181, 0.3), transparent 68%);
  animation-duration: 10s;
}

.clouds,
.sparkles {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.clouds {
  z-index: 1;
}

.sparkles {
  z-index: 3;
}

.cloud {
  --cloud-size: 1;
  --cloud-y: 20vh;
  --cloud-speed: 28s;
  position: absolute;
  top: var(--cloud-y);
  left: -26vw;
  width: calc(150px * var(--cloud-size));
  height: calc(56px * var(--cloud-size));
  border-radius: 999px;
  background:
    radial-gradient(circle at 26% 20%, #ffffff 0 28%, transparent 30%),
    radial-gradient(circle at 48% 0%, #fff7fd 0 34%, transparent 36%),
    radial-gradient(circle at 71% 24%, #ffffff 0 29%, transparent 31%),
    linear-gradient(#ffffff, #ffe8f5);
  box-shadow:
    0 calc(10px * var(--cloud-size)) calc(20px * var(--cloud-size)) rgba(255, 96, 174, 0.14),
    inset 0 calc(-8px * var(--cloud-size)) calc(14px * var(--cloud-size)) rgba(255, 155, 207, 0.18);
  filter: drop-shadow(0 12px 16px rgba(129, 89, 171, 0.12));
  opacity: var(--cloud-alpha, 0.9);
  transform: translateX(0);
  animation: drift var(--cloud-speed) linear infinite;
  animation-delay: var(--cloud-delay, 0s);
}

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

.cloud::before {
  inset: 34% 10% -20% 6%;
  filter: blur(1px);
}

.cloud::after {
  inset: 42% 20% -32% 26%;
  background: rgba(255, 193, 227, 0.44);
  filter: blur(12px);
}

.sparkles::before,
.sparkles::after,
.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  content: "";
  background: #fffefa;
  clip-path: polygon(50% 0, 62% 36%, 100% 50%, 62% 64%, 50% 100%, 38% 64%, 0 50%, 38% 36%);
  filter: drop-shadow(0 0 10px rgba(255, 255, 255, 0.9));
  opacity: 0.75;
  animation: twinkle 2.8s ease-in-out infinite;
}

.sparkles::before {
  top: 24%;
  left: 23%;
}

.sparkles::after {
  right: 18%;
  bottom: 24%;
  width: 16px;
  height: 16px;
  animation-delay: -1.2s;
}

.sparkle:nth-child(1) {
  top: 14%;
  right: 34%;
  width: 12px;
  height: 12px;
  animation-delay: -0.4s;
}

.sparkle:nth-child(2) {
  bottom: 18%;
  left: 17%;
  width: 14px;
  height: 14px;
  animation-delay: -2s;
}

.sparkle:nth-child(3) {
  top: 63%;
  right: 12%;
  width: 8px;
  height: 8px;
  animation-delay: -1.6s;
}

.name {
  position: relative;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  max-width: min(92vw, 1100px);
  margin: 0;
  padding: clamp(1rem, 4vw, 2.6rem);
  color: #fffaff;
  font-size: clamp(3.6rem, 11vw, 9rem);
  font-weight: 900;
  letter-spacing: 0;
  line-height: 0.86;
  text-align: center;
  text-shadow:
    0 5px 0 #ff80c4,
    0 10px 0 #ff55ad,
    0 16px 26px rgba(192, 61, 145, 0.34),
    0 0 34px rgba(255, 255, 255, 0.85);
  animation: name-breathe 4.5s ease-in-out infinite;
  z-index: 2;
}

.name::before {
  position: absolute;
  inset: 15% 1% 0;
  content: "";
  border-radius: 50%;
  background: radial-gradient(ellipse, rgba(255, 104, 181, 0.24), transparent 72%);
  filter: blur(24px);
  transform: translateY(18%);
  z-index: -1;
}

.name span {
  display: inline-block;
  padding: 0.02em 0.015em 0.13em;
  transform-origin: 50% 70%;
  animation: letter-bob 2.4s cubic-bezier(0.42, 0, 0.2, 1) infinite;
  animation-delay: calc(var(--i) * 0.075s);
}

.name span:nth-child(2n) {
  color: #ffe8f6;
}

.name span:nth-child(3n) {
  color: #ffffff;
  text-shadow:
    0 5px 0 #ff9bd2,
    0 10px 0 #ff65b3,
    0 16px 26px rgba(192, 61, 145, 0.34),
    0 0 34px rgba(255, 255, 255, 0.85);
}

.name .space {
  width: 0.22em;
}

@keyframes drift {
  to {
    transform: translateX(136vw);
  }
}

@keyframes twinkle {
  0%,
  100% {
    opacity: 0.35;
    transform: scale(0.68) rotate(0deg);
  }

  50% {
    opacity: 1;
    transform: scale(1.35) rotate(18deg);
  }
}

@keyframes letter-bob {
  0%,
  100% {
    transform: translateY(0) rotate(-1deg) scale(1);
  }

  48% {
    transform: translateY(-0.11em) rotate(2deg) scale(1.045);
  }
}

@keyframes name-breathe {
  0%,
  100% {
    filter: saturate(1);
  }

  50% {
    filter: saturate(1.16);
  }
}

@keyframes float-glow {
  to {
    transform: translate3d(4vw, -3vh, 0) scale(1.08);
  }
}

@media (max-width: 620px) {
  .name {
    flex-wrap: wrap;
    max-width: 95vw;
    font-size: clamp(3.2rem, 21vw, 6.7rem);
    line-height: 0.92;
  }

  .name .space {
    flex-basis: 100%;
    width: 0;
    height: 0.14em;
  }

  .cloud {
    left: -58vw;
  }

  @keyframes drift {
    to {
      transform: translateX(174vw);
    }
  }
}

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