*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --pink-light:  #ffd6e7;
  --pink-mid:    #ff85b3;
  --pink-hot:    #ff2d78;
  --pink-deep:   #c4155a;
  --gold:        #ffd700;
  --gold-light:  #fff3a0;
  --text-glow:   #ffe0ef;
  --bg-deep:     #020308;
}

html, body {
  width: 100%; height: 100%;
  overflow: hidden;
}

body {
  background:
    radial-gradient(ellipse 100% 60% at 50% 110%, #1a0a1e 0%, transparent 60%),
    radial-gradient(ellipse 60% 40% at 20% 10%, #0a0518 0%, transparent 55%),
    linear-gradient(160deg, #010206 0%, #03060f 35%, #060210 65%, #020108 100%);
  font-family: 'Cormorant Garamond', Georgia, serif;
  color: white;
  text-align: center;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  height: 100dvh;
  max-height: 100dvh;
  padding-bottom: 80px;
  overflow: hidden;
}

#particles {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* 🌙 LUNA */
.moon {
  position: fixed;
  top: clamp(12px, 2.5vh, 28px);
  left: clamp(12px, 3vw, 28px);
  z-index: 15;
  pointer-events: none;
  animation: moonFloat 8s ease-in-out infinite;
}

.moon svg {
  filter:
    drop-shadow(0 0 14px rgba(255,220,80,1))
    drop-shadow(0 0 36px rgba(255,190,40,.7))
    drop-shadow(0 0 80px rgba(255,160,20,.35))
    drop-shadow(0 0 140px rgba(255,140,0,.18));
  animation: moonGlow 6s ease-in-out infinite;
}

@keyframes moonFloat {
  0%,100% { transform: translateY(0px); }
  50%      { transform: translateY(-8px); }
}

@keyframes moonGlow {
  0%,100% {
    filter:
      drop-shadow(0 0 14px rgba(255,220,80,1))
      drop-shadow(0 0 36px rgba(255,190,40,.7))
      drop-shadow(0 0 80px rgba(255,160,20,.35));
  }
  50% {
    filter:
      drop-shadow(0 0 28px rgba(255,240,100,1))
      drop-shadow(0 0 65px rgba(255,210,60,.85))
      drop-shadow(0 0 130px rgba(255,175,30,.5))
      drop-shadow(0 0 200px rgba(255,140,0,.25));
  }
}

/* ORBS */
.orb {
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  animation: orbFloat var(--od, 12s) ease-in-out infinite;
}
.orb-1 {
  width: clamp(140px, 35vw, 280px);
  height: clamp(140px, 35vw, 280px);
  top: -80px; right: -60px;
  background: radial-gradient(circle at 40% 40%,
    rgba(255,50,120,.12) 0%, rgba(200,20,80,.06) 45%, transparent 70%);
  --od: 14s;
}
.orb-2 {
  width: clamp(100px, 28vw, 220px);
  height: clamp(100px, 28vw, 220px);
  bottom: 15%; left: -50px;
  background: radial-gradient(circle at 60% 60%,
    rgba(120,60,220,.10) 0%, rgba(80,20,160,.05) 50%, transparent 70%);
  --od: 17s;
  animation-delay: -5s;
}
.orb-3 {
  width: clamp(80px, 22vw, 180px);
  height: clamp(80px, 22vw, 180px);
  top: 30%; right: -30px;
  background: radial-gradient(circle at 50% 50%,
    rgba(255,180,50,.08) 0%, transparent 65%);
  --od: 10s;
  animation-delay: -8s;
}
@keyframes orbFloat {
  0%,100% { transform: translateY(0) scale(1); }
  33%     { transform: translateY(-18px) scale(1.04); }
  66%     { transform: translateY(10px) scale(.97); }
}

/* 💬 POEMA */
.poem-wrapper {
  position: relative;
  z-index: 20;
  margin-top: clamp(8px, 2vh, 20px);
  padding: clamp(6px, 1.5vw, 14px) clamp(14px, 4vw, 36px);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  width: min(560px, 96vw);
  flex-shrink: 0;
}

.poem-line-decor {
  width: 60%;
  height: 1px;
  background: linear-gradient(90deg,
    transparent, rgba(255,130,180,.5), rgba(255,200,120,.7),
    rgba(255,130,180,.5), transparent);
  margin: 0 auto;
}

.glow-text {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 0px;
  padding: 8px 0;
}

.line {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: clamp(15px, 3.8vw, 22px);
  font-weight: 400;
  color: var(--text-glow);
  line-height: 1.6;
  text-shadow:
    0 0 10px rgba(255,150,180,.8),
    0 0 24px rgba(255,80,140,.5),
    0 0 48px rgba(255,30,100,.22);
  opacity: 0;
  transform: translateY(10px);
  transition: opacity .9s ease, transform .9s ease;
  letter-spacing: 0.04em;
}

.line.visible {
  opacity: 1;
  transform: translateY(0);
}

.line.spacer {
  height: clamp(3px, 1vw, 7px);
  opacity: 1 !important;
  transform: none !important;
}

.line.accent {
  font-style: italic;
  font-weight: 300;
  color: var(--pink-mid);
  text-shadow:
    0 0 12px rgba(255,100,160,.9),
    0 0 28px rgba(255,50,130,.6),
    0 0 55px rgba(255,20,100,.28);
}

.line.italic {
  font-style: italic;
}

.sparkle {
  display: inline-block;
  animation: sparkleSpin 3s ease-in-out infinite;
}

.heart-icon {
  display: inline-block;
  animation: heartBeat 1.4s ease-in-out infinite;
}

@keyframes sparkleSpin {
  0%,100% { transform: rotate(0deg) scale(1); }
  50%     { transform: rotate(20deg) scale(1.3); }
}

@keyframes heartBeat {
  0%,100% { transform: scale(1); }
  14%     { transform: scale(1.35); }
  28%     { transform: scale(1); }
  42%     { transform: scale(1.2); }
}

/* 🌺 RAMO */
.bouquet-container {
  position: relative;
  width: 100%;
  flex: 1;
  min-height: 0;
  overflow: hidden;
  z-index: 10;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.bouquet {
  position: relative;
  width: 100%;
  height: 100%;
  overflow: hidden;
}

.bouquet-base {
  width: clamp(80px, 22vw, 160px);
  height: clamp(14px, 3vw, 24px);
  background: radial-gradient(ellipse at 50% 30%,
    rgba(200,60,100,.20) 0%, rgba(100,20,50,.08) 60%, transparent 100%);
  border-radius: 50%;
  margin-top: -4px;
  filter: blur(4px);
  flex-shrink: 0;
}

/* 🎵 BOTÓN */
.music-btn {
  position: fixed;
  bottom: clamp(14px, 3vh, 26px);
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  gap: 10px;
  padding: clamp(10px, 1.8vh, 15px) clamp(24px, 6vw, 46px);
  border: 1px solid rgba(255,130,180,.35);
  border-radius: 60px;
  background: linear-gradient(135deg,
    rgba(220,40,100,.88) 0%,
    rgba(180,20,80,.92) 40%,
    rgba(220,40,100,.88) 100%);
  backdrop-filter: blur(12px);
  color: white;
  font-size: clamp(14px, 3.5vw, 18px);
  font-family: 'Cormorant Garamond', serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  cursor: pointer;
  box-shadow:
    0 8px 32px rgba(255,40,110,.55),
    0 2px 12px rgba(255,100,160,.35),
    inset 0 1px 0 rgba(255,255,255,.15);
  transition: all .35s cubic-bezier(.34,1.56,.64,1);
  z-index: 100;
  white-space: nowrap;
}

.music-btn:hover:not(:disabled) {
  transform: translateX(-50%) translateY(-5px) scale(1.05);
  box-shadow:
    0 16px 48px rgba(255,40,110,.65),
    0 4px 20px rgba(255,100,160,.45);
}

.music-btn:active:not(:disabled) {
  transform: translateX(-50%) scale(0.97);
}

.music-btn:disabled {
  background: linear-gradient(135deg,
    rgba(60,160,140,.85) 0%,
    rgba(40,130,110,.9) 100%);
  box-shadow: 0 8px 28px rgba(40,160,140,.4);
  cursor: default;
  border-color: rgba(100,200,180,.3);
}

.btn-icon {
  font-size: 1.15em;
  animation: iconPulse 2s ease-in-out infinite;
}

@keyframes iconPulse {
  0%,100% { transform: scale(1); }
  50%     { transform: scale(1.2); }
}

/* PÉTALOS CAYENDO */
.falling-petal {
  position: fixed;
  pointer-events: none;
  z-index: 6;
  animation: petalFall var(--pd, 6s) ease-in var(--delay, 0s) infinite;
  opacity: 0;
}

@keyframes petalFall {
  0%   { transform: translateY(-20px) rotate(0deg) scale(.8); opacity: 0; }
  10%  { opacity: .75; }
  80%  { opacity: .6; }
  100% { transform: translateY(110vh) rotate(540deg) scale(.6); opacity: 0; }
}