@import url('https://fonts.googleapis.com/css2?family=Pacifico&family=Montserrat:wght@300;500;700&display=swap');

* { margin: 0; padding: 0; box-sizing: border-box; }

body {
  background: linear-gradient(135deg, #1a0033 0%, #2d1b4e 30%, #4a0e4e 60%, #1a0033 100%);
  color: #fff;
  font-family: 'Montserrat', sans-serif;
  min-height: 100vh;
  overflow-x: hidden;
  position: relative;
}

/* Звёзды */
.stars {
  position: fixed;
  top: 0; left: 0;
  width: 100%; height: 100%;
  pointer-events: none;
  z-index: 0;
}
.star {
  position: absolute;
  background: #fff;
  border-radius: 50%;
  animation: twinkle 3s infinite ease-in-out;
}
@keyframes twinkle {
  0%, 100% { opacity: 0.2; transform: scale(1); }
  50% { opacity: 1; transform: scale(1.3); }
}

/* Конфетти */
.confetti {
  position: fixed;
  width: 10px; height: 10px;
  pointer-events: none;
  z-index: 1;
  animation: fall linear infinite;
}
@keyframes fall {
  0% { transform: translateY(-100px) rotate(0deg); opacity: 1; }
  100% { transform: translateY(105vh) rotate(720deg); opacity: 0.6; }
}

/* Фейерверк */
.firework {
  position: fixed;
  width: 4px; height: 4px;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
}
@keyframes firework-burst {
  0% { transform: scale(0); opacity: 1; }
  100% { transform: scale(1); opacity: 0; }
}
.fw-particle {
  position: absolute;
  width: 5px; height: 5px;
  border-radius: 50%;
  animation: fw-fly 1s ease-out forwards;
}
@keyframes fw-fly {
  0% { transform: translate(0, 0) scale(1); opacity: 1; }
  100% { transform: translate(var(--tx), var(--ty)) scale(0); opacity: 0; }
}

/* Контейнер */
.container {
  position: relative;
  z-index: 2;
  max-width: 800px;
  margin: 0 auto;
  padding: 60px 20px 100px;
  text-align: center;
}

/* Заголовок */
.hero {
  margin-bottom: 60px;
}
.hero h1 {
  font-family: 'Pacifico', cursive;
  font-size: clamp(2.5rem, 7vw, 5rem);
  background: linear-gradient(90deg, #ffd700, #ff6ec7, #ffd700, #ff6ec7);
  background-size: 300% auto;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  animation: shimmer 4s linear infinite;
  text-shadow: none;
  margin-bottom: 20px;
}
@keyframes shimmer {
  0% { background-position: 0% center; }
  100% { background-position: 300% center; }
}
.hero .subtitle {
  font-size: 1.1rem;
  color: rgba(255,255,255,0.7);
  font-weight: 300;
  letter-spacing: 2px;
  text-transform: uppercase;
}

/* Торт */
.cake {
  margin: 40px auto;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: 14px;
  height: 120px;
}
.candle {
  position: relative;
  width: 14px;
  height: 50px;
  background: linear-gradient(to right, #ff6ec7 30%, #fff 50%, #ff6ec7 70%);
  border-radius: 3px;
}
.flame {
  position: absolute;
  top: -22px; left: 50%;
  transform: translateX(-50%);
  width: 12px; height: 22px;
  background: radial-gradient(ellipse at center bottom, #fff 10%, #ffd700 30%, #ff8c00 70%, transparent);
  border-radius: 50% 50% 20% 20%;
  animation: flicker 0.4s infinite alternate;
  filter: blur(1px);
  box-shadow: 0 0 20px #ffd700, 0 0 40px #ff8c00;
}
@keyframes flicker {
  0% { transform: translateX(-50%) scaleY(1) scaleX(1); opacity: 0.9; }
  100% { transform: translateX(-50%) scaleY(1.15) scaleX(0.9); opacity: 1; }
}

/* Карточки куплетов */
.verse {
  background: rgba(255,255,255,0.08);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255,215,0,0.25);
  border-radius: 20px;
  padding: 35px 30px;
  margin-bottom: 30px;
  transition: transform 0.4s ease, box-shadow 0.4s ease, opacity 0.8s ease;
  opacity: 0;
  transform: translateY(40px);
}
.verse.visible {
  opacity: 1;
  transform: translateY(0);
}
.verse:hover {
  transform: translateY(-6px);
  box-shadow: 0 20px 60px rgba(255,110,199,0.25), 0 0 30px rgba(255,215,0,0.15);
  border-color: rgba(255,215,0,0.5);
}
.verse p {
  font-size: 1.05rem;
  line-height: 2;
  color: rgba(255,255,255,0.92);
  font-weight: 300;
}
.verse p strong {
  font-weight: 700;
  color: #ffd700;
  display: block;
  margin-top: 10px;
  font-size: 1.15rem;
  text-shadow: 0 0 20px rgba(255,215,0,0.4);
}

/* Финальный припев */
.final {
  background: linear-gradient(135deg, rgba(255,215,0,0.12), rgba(255,110,199,0.12));
  border: 2px solid rgba(255,215,0,0.4);
  border-radius: 24px;
  padding: 45px 30px;
  margin-top: 40px;
  box-shadow: 0 0 50px rgba(255,110,199,0.2);
  opacity: 0;
  transform: translateY(40px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}
.final.visible {
  opacity: 1;
  transform: translateY(0);
}
.final p {
  font-size: 1.1rem;
  line-height: 2.2;
  font-weight: 300;
  color: rgba(255,255,255,0.95);
}
.final p strong {
  font-weight: 700;
  color: #ffd700;
  display: block;
  margin-top: 12px;
  font-size: 1.3rem;
  text-shadow: 0 0 25px rgba(255,215,0,0.5);
}

footer {
  margin-top: 60px;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.4);
  font-weight: 300;
}

@media (max-width: 500px) {
  .container { padding: 40px 15px 80px; }
  .verse { padding: 25px 20px; }
  .verse p { font-size: 0.95rem; }
  .candle { width: 10px; height: 40px; }
}
