:root {
  --bg-deep: #120b1f;
  --bg-mid: #2a0f2e;
  --bg-soft: #3a0f22;
  --bg-glow: #fca5a5;
  --red-dark: #7f0d1c;
  --red: #dc2626;
  --red-light: #fecaca;
  --gold: #f8d17a;
  --leaf: #15803d;
  --white: #f8fafc;
  --shadow: rgba(9, 6, 16, 0.65);
  --vignette: rgba(10, 6, 18, 0.55);
}

* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: "Cormorant Garamond", "Georgia", serif;
  color: var(--white);
  background:
    radial-gradient(circle at 50% 24%, rgba(252, 165, 165, 0.45), transparent 34%),
    radial-gradient(circle at 50% 60%, var(--bg-soft), var(--bg-mid) 52%, var(--bg-deep) 100%);
  overflow: hidden;
}

.scene {
  position: relative;
  height: 100%;
  display: grid;
  grid-template-rows: 1fr auto;
  padding: 6vh 8vw 6vh;
  justify-items: center;
}

.sky {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 15% 20%, rgba(255,255,255,0.35), transparent 35%),
    radial-gradient(circle at 85% 15%, rgba(255,255,255,0.2), transparent 35%),
    radial-gradient(circle at 60% 35%, rgba(255,255,255,0.25), transparent 45%);
  animation: drift 16s ease-in-out infinite alternate;
  z-index: 0;
}

.glow {
  position: absolute;
  inset: -10% 0 0;
  background: radial-gradient(circle at 50% 20%, rgba(252, 165, 165, 0.5), transparent 60%);
  filter: blur(12px);
  z-index: 0;
}

.hero {
  position: relative;
  z-index: 2;
  max-width: 760px;
  width: min(760px, 100%);
  background: rgba(10, 5, 16, 0.62);
  border: 1px solid rgba(248, 250, 252, 0.12);
  border-radius: 24px;
  padding: 30px 36px 34px;
  box-shadow: 0 22px 70px var(--shadow);
  backdrop-filter: blur(6px);
  animation: float 6s ease-in-out infinite;
}

.hero h1 {
  font-size: clamp(2.2rem, 4vw, 4.1rem);
  margin: 0 0 12px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold);
}

.hero p {
  font-size: clamp(1.05rem, 2.2vw, 1.35rem);
  line-height: 1.65;
  margin: 0;
}

.actions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: flex-start;
}

.btn {
  appearance: none;
  border: none;
  background: linear-gradient(135deg, var(--red), #ef4444);
  color: var(--white);
  padding: 12px 20px;
  border-radius: 999px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 12px 25px rgba(220, 38, 38, 0.4);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  position: relative;
  overflow: hidden;
}

.btn:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 30px rgba(220, 38, 38, 0.55);
}

.btn::before {
  content: "";
  position: absolute;
  inset: -40%;
  background: radial-gradient(circle, rgba(255,255,255,0.55), transparent 55%);
  opacity: 0;
  transform: translateX(-60%);
  transition: opacity 0.25s ease, transform 0.35s ease;
}

.btn:hover::before {
  opacity: 0.45;
  transform: translateX(10%);
}

.btn.is-playing {
  filter: saturate(1.15) brightness(1.05);
  box-shadow:
    0 0 0 6px rgba(239, 68, 68, 0.2),
    0 18px 40px rgba(220, 38, 38, 0.55);
  animation: pulse 2.2s ease-in-out infinite;
}

.btn .spark {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(circle, rgba(255,255,255,0.85), rgba(255,255,255,0) 60%);
  transform: scale(0);
  opacity: 0;
}

.btn.sparked .spark {
  animation: pop 0.7s ease-out;
}


.note {
  font-size: 0.9rem;
  opacity: 0.8;
}

.mono {
  font-family: "Courier New", monospace;
}

.garden {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 48vh;
  display: flex;
  align-items: flex-end;
  justify-content: space-evenly;
  z-index: 1;
  pointer-events: none;
}

.rose {
  width: clamp(90px, 12vw, 160px);
  height: clamp(170px, 24vw, 260px);
  position: relative;
  background-image: url("rose.png");
  background-repeat: no-repeat;
  background-position: bottom center;
  background-size: contain;
  animation: sway 5.5s ease-in-out infinite;
  filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45));
  transform-origin: center bottom;
}

.r1 { animation-delay: 0s; transform: rotate(-2deg) scale(1.02); }
.r2 { animation-delay: -1s; transform: rotate(2deg) scale(0.96); filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45)) brightness(0.95); }
.r3 { animation-delay: -2s; transform: rotate(-1deg) scale(1.08); filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45)) saturate(1.1); }
.r4 { animation-delay: -1.5s; transform: rotate(1deg) scale(0.92) scaleX(-1); filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45)) brightness(1.05); }
.r5 { animation-delay: -0.5s; transform: rotate(-3deg) scale(1.04); filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45)) contrast(1.05); }
.r6 { animation-delay: -2.4s; transform: rotate(3deg) scale(0.9) scaleX(-1); filter: drop-shadow(0 16px 22px rgba(6, 4, 10, 0.45)) saturate(0.95); }



.petals {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.party {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 2;
}

.party-item {
  position: absolute;
  font-size: clamp(1.4rem, 2.6vw, 2.4rem);
  opacity: 0.7;
  filter: drop-shadow(0 8px 14px rgba(8, 5, 12, 0.6));
  animation: floaty 10s ease-in-out infinite;
}

.p1 { top: 8%; left: 10%; animation-delay: 0s; }
.p2 { top: 18%; right: 12%; animation-delay: -1s; }
.p3 { top: 60%; left: 6%; animation-delay: -2s; }
.p4 { top: 70%; right: 8%; animation-delay: -3s; }
.p5 { top: 40%; right: 22%; animation-delay: -1.5s; }
.p6 { top: 32%; left: 22%; animation-delay: -2.5s; }

.petal {
  position: absolute;
  width: 16px;
  height: 16px;
  background: radial-gradient(circle at 30% 30%, #ffd1d1, var(--red));
  border-radius: 60% 40% 70% 30%;
  opacity: 0.85;
  animation: fall linear infinite;
}

.signature {
  position: relative;
  z-index: 2;
  margin-top: auto;
  font-weight: 600;
  letter-spacing: 3px;
  text-transform: uppercase;
  color: rgba(248, 250, 252, 0.7);
  text-align: center;
}

.scene::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 50%, transparent 35%, var(--vignette) 80%);
  z-index: 0;
  pointer-events: none;
}

@keyframes sway {
  0%, 100% { transform: rotate(-2deg); }
  50% { transform: rotate(2deg); }
}

@keyframes float {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(-8px); }
}

@keyframes fall {
  from { transform: translateY(-10vh) rotate(0deg); }
  to { transform: translateY(110vh) rotate(360deg); }
}

@keyframes drift {
  from { transform: translateX(-2%); }
  to { transform: translateX(2%); }
}

@keyframes floaty {
  0%, 100% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-10px) rotate(2deg); }
}

@keyframes pulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-1px) scale(1.03); }
}

@keyframes pop {
  0% { transform: scale(0.2); opacity: 0.8; }
  100% { transform: scale(2.2); opacity: 0; }
}


@media (max-width: 820px) {
  .scene {
    padding: 5vh 6vw 6vh;
  }

  .hero {
    padding: 22px 24px;
  }

  .garden {
    height: 38vh;
  }
}

@media (max-width: 520px) {
  .hero {
    border-radius: 18px;
  }

  .signature {
    font-size: 0.85rem;
  }
}
