:root {
  --bg1: #fff7fb;
  --bg2: #f8f4ff;
  --bg3: #f2fbff;
  --text: #5f5675;
  --shadow: rgba(164, 144, 196, 0.18);
  --cloud-bg: rgba(255, 255, 255, 0.9);
  --cloud-bg-alt: rgba(255, 255, 255, 0.95);
  --cloud-shadow: rgba(171, 160, 198, 0.14);
  --card-bg: rgba(255, 255, 255, 0.6);
  --card-border: rgba(255, 255, 255, 0.75);
  --sparkle-bg: rgba(255, 255, 255, 0.8);
  --sparkle-glow: rgba(255, 255, 255, 0.75);
  --subtitle: #7a7193;
  --arc1: #ffd6e5;
  --arc2: #ffe7c7;
  --arc3: #fff4bf;
  --arc4: #dff5d1;
  --arc5: #d2edff;
  --arc6: #e7d8ff;
  --aurora1: rgba(255, 204, 221, 0.18);
  --aurora2: rgba(255, 235, 196, 0.22);
  --aurora3: rgba(223, 245, 209, 0.2);
  --aurora4: rgba(208, 235, 255, 0.2);
  --aurora5: rgba(229, 216, 255, 0.22);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  overflow: hidden;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 20% 20%, rgba(255, 214, 236, 0.8), transparent 28%),
    radial-gradient(circle at 80% 25%, rgba(214, 240, 255, 0.85), transparent 28%),
    radial-gradient(circle at 50% 80%, rgba(232, 222, 255, 0.8), transparent 30%),
    linear-gradient(135deg, var(--bg1), var(--bg2), var(--bg3));
  background-size: 140% 140%;
  animation: floatBackground 14s ease-in-out infinite alternate;
}

.aurora {
  position: fixed;
  inset: -20%;
  background: conic-gradient(
    from 180deg,
    var(--aurora1),
    var(--aurora2),
    var(--aurora3),
    var(--aurora4),
    var(--aurora5),
    var(--aurora1)
  );
  filter: blur(60px);
  animation: drift 18s ease-in-out infinite alternate;
  pointer-events: none;
}

.card {
  position: relative;
  width: min(92vw, 760px);
  padding: 40px 28px 46px;
  border-radius: 32px;
  background: var(--card-bg);
  backdrop-filter: blur(16px);
  box-shadow: 0 18px 50px var(--shadow);
  text-align: center;
  border: 1px solid var(--card-border);
}

.rainbow-wrap {
  display: grid;
  place-items: center;
  margin-bottom: 20px;
}

.rainbow {
  position: relative;
  width: min(62vw, 340px);
  aspect-ratio: 2 / 1.15;
  overflow: hidden;
  animation: bob 4.5s ease-in-out infinite;
}

.arc {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  border-radius: 999px 999px 0 0;
  border: 14px solid transparent;
  border-bottom: 0;
  opacity: 0.95;
}

.arc1 { width: 100%; height: 100%; border-color: var(--arc1); }
.arc2 { width: 84%; height: 84%; top: 8%; border-color: var(--arc2); }
.arc3 { width: 68%; height: 68%; top: 16%; border-color: var(--arc3); }
.arc4 { width: 52%; height: 52%; top: 24%; border-color: var(--arc4); }
.arc5 { width: 36%; height: 36%; top: 32%; border-color: var(--arc5); }
.arc6 { width: 20%; height: 20%; top: 40%; border-color: var(--arc6); }

.cloud {
  position: absolute;
  bottom: 0;
  width: 82px;
  height: 42px;
  background: var(--cloud-bg);
  border-radius: 999px;
  box-shadow: 0 8px 20px var(--cloud-shadow);
}

.cloud::before,
.cloud::after {
  content: "";
  position: absolute;
  background: var(--cloud-bg-alt);
  border-radius: 50%;
}

.cloud::before {
  width: 34px;
  height: 34px;
  left: 10px;
  bottom: 16px;
}

.cloud::after {
  width: 44px;
  height: 44px;
  right: 10px;
  bottom: 14px;
}

.cloud.left { left: 6px; }
.cloud.right { right: 6px; }

h1 {
  margin: 0;
  font-size: clamp(2.2rem, 6vw, 4.8rem);
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.04em;
  background: linear-gradient(90deg, var(--arc1), var(--arc2), var(--arc3), var(--arc4), var(--arc5), var(--arc6));
  background-size: 200% 100%;
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  animation: shimmer 8s linear infinite;
}

p {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2.2vw, 1.18rem);
  color: var(--subtitle);
}

.sparkle {
  position: absolute;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--sparkle-bg);
  box-shadow: 0 0 18px var(--sparkle-glow);
  animation: twinkle 3s ease-in-out infinite;
}

.s1 { top: 18%; left: 16%; animation-delay: 0s; }
.s2 { top: 24%; right: 18%; animation-delay: 1s; }
.s3 { bottom: 22%; left: 20%; animation-delay: 2s; }
.s4 { bottom: 18%; right: 16%; animation-delay: 0.7s; }

@keyframes shimmer {
  from { background-position: 0% 50%; }
  to { background-position: 200% 50%; }
}

@keyframes bob {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes twinkle {
  0%, 100% { transform: scale(0.7); opacity: 0.45; }
  50% { transform: scale(1.2); opacity: 1; }
}

@keyframes drift {
  from { transform: translate3d(-2%, -1%, 0) rotate(0deg) scale(1); }
  to { transform: translate3d(2%, 1%, 0) rotate(10deg) scale(1.06); }
}

@keyframes floatBackground {
  from { background-position: 0% 50%; }
  to { background-position: 100% 50%; }
}