:root {
  font-family: 'Host Grotesk', system-ui, -apple-system, BlinkMacSystemFont,
    'Segoe UI', sans-serif;
  color: #f6f2ff;
  background-color: #0a0013;
  --bg-gradient: radial-gradient(circle at top, #6e3bff, #150026 50%);
  --card-bg: rgba(20, 0, 40, 0.75);
  --glass: rgba(255, 255, 255, 0.08);
  --border: rgba(246, 242, 255, 0.25);
  --primary: #c084fc;
  --primary-strong: #e4b4ff;
  --carousel-gap: clamp(0.6rem, 1.6vw, 1.1rem);
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg-gradient) fixed;
  color: inherit;
  overflow-x: hidden;
}

body.locked {
  overflow: hidden;
}

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

.glow {
  position: fixed;
  inset: 0;
  background: radial-gradient(circle at 30% 20%, rgba(215, 162, 255, 0.35), transparent 45%),
    radial-gradient(circle at 70% 10%, rgba(108, 99, 255, 0.3), transparent 40%),
    radial-gradient(circle at 80% 60%, rgba(255, 161, 218, 0.2), transparent 45%);
  filter: blur(50px);
  opacity: 0.9;
  z-index: 1;
}

.orb {
  position: fixed;
  border-radius: 50%;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.3), rgba(128, 90, 213, 0.3));
  filter: blur(0px);
  animation: float 18s ease-in-out infinite;
  mix-blend-mode: screen;
  z-index: 2;
}

.orb-one {
  width: 280px;
  height: 280px;
  top: 10%;
  left: 8%;
}

.orb-two {
  width: 360px;
  height: 360px;
  bottom: 8%;
  right: 5%;
  animation-duration: 22s;
}

.orb-three {
  width: 180px;
  height: 180px;
  bottom: 30%;
  left: 15%;
  animation-duration: 16s;
}

@keyframes float {
  0% {
    transform: translate3d(0, 0, 0) scale(1);
  }
  50% {
    transform: translate3d(20px, -30px, 0) scale(1.05);
  }
  100% {
    transform: translate3d(-10px, 20px, 0) scale(1);
  }
}

.shell {
  position: relative;
  z-index: 3;
  max-width: 1100px;
  margin: 0 auto;
  padding: 6rem clamp(1.5rem, 5vw, 4rem) 5rem;
}

.hero {
  text-align: left;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 2rem;
  padding: clamp(2rem, 4vw, 3.5rem);
  box-shadow: 0 25px 80px rgba(10, 0, 20, 0.6);
  backdrop-filter: blur(20px);
  animation: floatCard 16s ease-in-out infinite;
}

@keyframes floatCard {
  0% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-12px);
  }
  100% {
    transform: translateY(0px);
  }
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.3em;
  font-size: 0.8rem;
  color: var(--primary-strong);
  margin: 0 0 0.8rem;
}

.hero h1 {
  font-size: clamp(2.8rem, 6vw, 4.5rem);
  line-height: 1.05;
  margin: 0 0 1rem;
}

.lede {
  font-size: 1.2rem;
  max-width: 560px;
  color: rgba(246, 242, 255, 0.85);
}

.photo-carousel {
  margin-top: 3.5rem;
  width: 100vw;
  margin-left: calc(50% - 50vw);
  border: none;
  border-radius: 0;
  padding: 1.25rem 0;
  position: relative;
  overflow: hidden;
}

.photo-carousel::before,
.photo-carousel::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: clamp(20px, 8vw, 80px);
  pointer-events: none;
  z-index: 3;
}

.photo-carousel::before {
  left: 0;
  background: linear-gradient(90deg, rgba(10, 0, 20, 1), rgba(10, 0, 20, 0));
}

.photo-carousel::after {
  right: 0;
  background: linear-gradient(270deg, rgba(10, 0, 20, 1), rgba(10, 0, 20, 0));
}

.carousel-window {
  width: 100%;
  overflow: hidden;
}

.carousel-track {
  display: flex;
  gap: var(--carousel-gap);
  will-change: transform;
  transition: transform 500ms cubic-bezier(0.33, 1, 0.68, 1);
}

.carousel-card {
  flex: 0 0 calc((100% - (var(--carousel-gap) * 4)) / 5);
  min-width: 150px;
  aspect-ratio: 9 / 16;
  border-radius: 1.5rem;
  border: 1px solid rgba(255, 255, 255, 0.25);
  background: linear-gradient(160deg, rgba(148, 93, 214, 0.45), rgba(12, 0, 24, 0.8));
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  overflow: hidden;
  box-shadow: inset 0 0 25px rgba(255, 255, 255, 0.08),
    0 15px 30px rgba(0, 0, 0, 0.4);
}

.carousel-card::before {
  content: '';
  position: absolute;
  top: 0.35rem;
  left: 50%;
  transform: translateX(-50%);
  width: 40%;
  height: 0.35rem;
  border-radius: 999px;
  background: rgba(5, 0, 10, 0.7);
}

.carousel-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 1.2rem;
  filter: contrast(1.05) saturate(1.05);
}

@media (max-width: 1100px) {
  .carousel-card {
    flex: 0 0 calc((100% - (var(--carousel-gap) * 2)) / 3);
  }
}

button {
  font-family: inherit;
  border: none;
  border-radius: 999px;
  padding: 0.95rem 1.75rem;
  font-size: 1rem;
  cursor: pointer;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

button:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 15px 25px rgba(0, 0, 0, 0.25);
}

.primary {
  background: linear-gradient(120deg, #c084fc, #a855f7, #9333ea);
  color: #1a002b;
  font-weight: 600;
}

.secondary {
  background: rgba(255, 255, 255, 0.1);
  color: #f6f2ff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}


.sparkles {
  position: fixed;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #fff, rgba(255, 255, 255, 0));
  pointer-events: none;
  animation: sparkle 1s ease-out forwards;
  box-shadow: 0 0 15px rgba(255, 255, 255, 0.8);
  transform: translate(-50%, -50%);
}

@keyframes sparkle {
  0% {
    transform: scale(0.2);
    opacity: 1;
  }
  100% {
    transform: scale(8);
    opacity: 0;
  }
}

@media (max-width: 720px) {
  .shell {
    padding-top: 4rem;
  }

  .hero,
  .story-card,
  .wish-panel {
    border-radius: 1.5rem;
    padding: 2rem;
  }

  .fun-facts,
  .wish-buttons {
    grid-template-columns: 1fr;
  }
}
.gate {
  position: fixed;
  inset: 0;
  background: #05000f;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 10;
  transition: opacity 450ms ease, visibility 450ms ease;
}

.gate.gate-open {
  opacity: 0;
  visibility: hidden;
}

.gate-card {
  width: min(320px, 80vw);
  background: rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1rem;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.gate-card input {
  border-radius: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(10, 0, 20, 0.8);
  padding: 0.85rem 1rem;
  color: inherit;
  font-size: 1rem;
}

.gate-card button {
  width: 100%;
}

.gate-hint {
  margin: 0;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.75);
  min-height: 1.2rem;
  text-align: center;
}

.gate-hint.gate-hint-big {
  font-size: 1.15rem;
}

.gate-hint.error {
  color: #f87171;
}

.cake-popup {
  position: fixed;
  inset: 0;
  background: rgba(5, 0, 15, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 250ms ease;
  z-index: 11;
}

.cake-popup.show {
  opacity: 1;
  pointer-events: auto;
}

.cake-popup-card {
  background: rgba(16, 0, 30, 0.95);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 1.5rem;
  padding: 2rem 2.5rem;
  text-align: center;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.45);
  animation: popUp 400ms ease;
}

.cake-emoji {
  font-size: clamp(3rem, 10vw, 5rem);
  margin-bottom: 1rem;
}

.cake-message {
  margin: 0 0 1.5rem;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.85);
}

.cake-popup button {
  width: 100%;
}

@keyframes popUp {
  from {
    transform: translateY(15px) scale(0.95);
    opacity: 0;
  }
  to {
    transform: translateY(0) scale(1);
    opacity: 1;
  }
}

.flash-photo {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.8);
  z-index: 9;
  opacity: 0;
  pointer-events: none;
  transition: opacity 200ms ease;
}

.flash-photo img {
  width: min(340px, 70vw);
  border-radius: 1.5rem;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.flash-photo.show {
  opacity: 1;
}
.message {
  margin: 3rem auto 0;
  max-width: 640px;
  font-size: 1.2rem;
  text-align: center;
  color: #fdf2ff;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.6;
}
