:root {
  --rose-900: #5f1f38;
  --rose-700: #9f315b;
  --rose-500: #e85d91;
  --rose-300: #ff9cbd;
  --rose-100: #ffe3ee;
  --cream: #fff8f4;
  --gold: #f7c76b;
  --shadow: 0 24px 80px rgba(149, 36, 82, 0.25);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  color: var(--rose-900);
  font-family: "Poppins", Arial, sans-serif;
  background:
    radial-gradient(circle at 12% 18%, rgba(255, 255, 255, 0.9), transparent 24rem),
    linear-gradient(135deg, #fff4f8 0%, #ffcfe0 46%, #f58bae 100%);
  overflow-x: hidden;
}

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

.birthday-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 18px;
}

.hero {
  width: min(1120px, 100%);
  min-height: min(760px, calc(100vh - 64px));
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(320px, 1.06fr);
  gap: 32px;
  align-items: center;
}

.hero__content {
  position: relative;
  z-index: 2;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  color: var(--rose-900);
  font-family: "Great Vibes", cursive;
  font-size: 6rem;
  line-height: 0.88;
  font-weight: 400;
  text-wrap: balance;
}

.subtitle {
  width: min(540px, 100%);
  margin: 24px 0 0;
  color: #73304a;
  font-size: clamp(1rem, 2.4vw, 1.2rem);
  line-height: 1.8;
}

.message-box {
  width: min(540px, 100%);
  margin-top: 28px;
  padding: 22px 24px;
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 8px;
  background: rgba(255, 248, 252, 0.72);
  box-shadow: 0 18px 50px rgba(169, 45, 93, 0.16);
  backdrop-filter: blur(16px);
}

.message-label {
  margin: 0 0 8px;
  color: var(--rose-700);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.message-box p:last-child {
  margin: 0;
  color: #6e2a45;
  font-size: 1rem;
  line-height: 1.75;
}

.slider {
  position: relative;
  z-index: 2;
  width: 100%;
  aspect-ratio: 4 / 5;
  min-height: 480px;
  max-height: 740px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--rose-100);
}

.slider__viewport,
.slide {
  width: 100%;
  height: 100%;
}

.slider__viewport {
  position: relative;
}

.slide {
  position: absolute;
  inset: 0;
  object-fit: cover;
  opacity: 0;
  transform: scale(1.04);
  transition: opacity 700ms ease, transform 1200ms ease;
}

.slide.is-active {
  opacity: 1;
  transform: scale(1);
}

.slider::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 52%, rgba(95, 31, 56, 0.24));
  pointer-events: none;
}

.slider__button {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  color: var(--rose-900);
  font-size: 2rem;
  line-height: 1;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: 0 10px 30px rgba(95, 31, 56, 0.18);
  cursor: pointer;
  transform: translateY(-50%);
}

.slider__button:hover {
  background: #fff;
}

.slider__button--prev {
  left: 16px;
}

.slider__button--next {
  right: 16px;
}

.slider__dots {
  position: absolute;
  left: 50%;
  bottom: 18px;
  z-index: 3;
  display: flex;
  gap: 8px;
  transform: translateX(-50%);
}

.slider__dot {
  width: 10px;
  height: 10px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.58);
  cursor: pointer;
}

.slider__dot.is-active {
  width: 28px;
  background: var(--cream);
}

@media (max-width: 860px) {
  .birthday-page {
    padding: 24px 14px;
  }

  .hero {
    min-height: auto;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .slider {
    min-height: 390px;
    aspect-ratio: 4 / 5;
  }
}

@media (max-width: 520px) {
  h1 {
    font-size: clamp(3.6rem, 18vw, 5.2rem);
  }

  .message-box {
    padding: 18px;
  }

  .slider {
    min-height: 330px;
  }
}
