* {
  box-sizing: border-box;
}

:root {
  --bg-1: #140022;
  --bg-2: #2a0057;
  --bg-3: #510080;
  --accent: #ffe45e;
  --accent-2: #ff6ec7;
  --accent-3: #66fcf1;
  --text: #ffffff;
  --glass: rgba(255, 255, 255, 0.11);
}

html,
body {
  margin: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  font-family: "Poppins", sans-serif;
  background: radial-gradient(circle at 20% 20%, #5912a0 0%, transparent 40%),
    radial-gradient(circle at 80% 30%, #7f1be3 0%, transparent 35%),
    linear-gradient(135deg, var(--bg-1), var(--bg-2), var(--bg-3));
  color: var(--text);
}

#confetti {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
}

.stage {
  position: relative;
  width: 100%;
  height: 100%;
  display: grid;
  place-items: center;
  isolation: isolate;
}

.ambient-glow {
  position: absolute;
  width: min(80vmin, 760px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: conic-gradient(
    from 90deg,
    rgba(255, 255, 255, 0.1),
    rgba(255, 110, 199, 0.4),
    rgba(102, 252, 241, 0.45),
    rgba(255, 228, 94, 0.4),
    rgba(255, 255, 255, 0.08)
  );
  filter: blur(40px);
  opacity: 0.7;
  animation: spin 18s linear infinite;
  z-index: -2;
}

.card {
  position: relative;
  z-index: 2;
  width: min(92vw, 760px);
  padding: clamp(1.4rem, 2.2vw, 2.5rem);
  border-radius: 26px;
  text-align: center;
  background: linear-gradient(
      160deg,
      rgba(255, 255, 255, 0.24),
      rgba(255, 255, 255, 0.05)
    ),
    var(--glass);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 18px 70px rgba(0, 0, 0, 0.45), inset 0 0 50px rgba(255, 255, 255, 0.09);
  animation: cardIn 1200ms ease-out both;
}

.subtitle {
  margin: 0 0 0.6rem;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  font-weight: 600;
  font-size: clamp(0.66rem, 1.5vw, 0.95rem);
  opacity: 0.8;
}

.title {
  margin: 0;
  display: grid;
  gap: 0.2rem;
  line-height: 0.95;
  text-transform: uppercase;
}

.title span {
  font-size: clamp(2.2rem, 8.3vw, 6rem);
  font-weight: 900;
  letter-spacing: 0.03em;
  text-shadow: 0 0 16px rgba(255, 255, 255, 0.6), 0 0 44px rgba(255, 110, 199, 0.65);
  animation: pulseGlow 2s ease-in-out infinite alternate;
}

.title .name {
  margin-top: 0.35rem;
  font-family: "Great Vibes", cursive;
  text-transform: none;
  letter-spacing: 0;
  font-weight: 400;
  font-size: clamp(1.5rem, 5vw, 3.5rem);
  color: var(--accent);
  text-shadow: 0 0 25px rgba(255, 228, 94, 0.7);
  animation-duration: 1600ms;
}

.message {
  margin: 1rem auto 1.45rem;
  width: min(90%, 560px);
  font-size: clamp(0.95rem, 1.8vw, 1.18rem);
  opacity: 0.92;
}

.boost-btn {
  border: 0;
  border-radius: 999px;
  padding: 0.85rem 1.3rem;
  font-size: 0.98rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  color: #220038;
  background: linear-gradient(130deg, var(--accent), #fff5bb 60%, #ffd166);
  cursor: pointer;
  box-shadow: 0 10px 30px rgba(255, 228, 94, 0.5);
  transition: transform 220ms ease, filter 220ms ease;
}

.boost-btn:hover {
  transform: translateY(-2px) scale(1.02);
  filter: brightness(1.06);
}

.boost-btn:active {
  transform: translateY(1px) scale(0.99);
}

.balloons {
  position: absolute;
  inset: 0;
  overflow: hidden;
  z-index: 0;
}

.balloon {
  position: absolute;
  width: clamp(38px, 5vw, 62px);
  aspect-ratio: 0.85;
  border-radius: 50% 50% 44% 44%;
  box-shadow: inset -8px -12px 18px rgba(0, 0, 0, 0.16), 0 10px 20px rgba(0, 0, 0, 0.2);
  animation: floatUp linear infinite;
}

.balloon::after {
  content: "";
  position: absolute;
  left: 50%;
  top: calc(100% - 1px);
  width: 2px;
  height: clamp(52px, 8vh, 82px);
  background: rgba(255, 255, 255, 0.6);
  transform: translateX(-50%);
}

.spark-ring {
  position: absolute;
  width: min(94vmin, 860px);
  aspect-ratio: 1;
  border-radius: 50%;
  border: 1px dashed rgba(255, 255, 255, 0.35);
  transform: scale(0.6);
  animation: ringPulse 4.5s ease-in-out infinite;
  z-index: -1;
}

@keyframes floatUp {
  from {
    transform: translateY(105vh) translateX(0) rotate(0deg);
  }
  to {
    transform: translateY(-130vh) translateX(var(--drift, 0px)) rotate(10deg);
  }
}

@keyframes pulseGlow {
  from {
    transform: scale(1);
    filter: hue-rotate(0deg);
  }
  to {
    transform: scale(1.03);
    filter: hue-rotate(10deg);
  }
}

@keyframes ringPulse {
  0%,
  100% {
    opacity: 0.25;
    transform: scale(0.65);
  }
  50% {
    opacity: 0.8;
    transform: scale(1);
  }
}

@keyframes spin {
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(16px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  * {
    animation-duration: 1ms !important;
    animation-iteration-count: 1 !important;
    transition: none !important;
  }
}
