* {
  box-sizing: border-box;
}

html, body {
  height: 100%;
}

body {
  margin: 0;
  font-family: 'Poppins', system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, 'Apple Color Emoji', 'Segoe UI Emoji';
  color: #1f1a1c;
  background: radial-gradient(1400px 900px at 20% 10%, #ffc2d4 0%, transparent 60%),
              radial-gradient(1300px 900px at 80% 0%, #ffe3ef 0%, transparent 60%),
              linear-gradient(180deg, #fff3fb 0%, #fff8fc 60%, #ffe6f1 100%);
  overflow-x: hidden;
}

.aurora {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background: radial-gradient(1000px 600px at 10% 90%, rgba(255, 160, 197, 0.35), transparent 60%),
              radial-gradient(1200px 700px at 90% 30%, rgba(255, 220, 242, 0.55), transparent 60%),
              radial-gradient(800px 500px at 50% 10%, rgba(255, 81, 145, 0.25), transparent 60%);
  filter: blur(40px) saturate(1.1);
  z-index: 0;
  animation: auroraShift 20s ease-in-out infinite alternate;
}

@keyframes auroraShift {
  0% { transform: translateY(0); }
  100% { transform: translateY(-30px); }
}

.hearts-layer {
  position: fixed;
  inset: 0;
  z-index: 1;
  pointer-events: none;
}

.container {
  position: relative;
  z-index: 2;
  max-width: 1000px;
  margin: 0 auto;
  padding: 56px 20px 120px;
}

.hero {
  text-align: center;
  margin-top: 12px;
}

.title {
  font-family: 'Playfair Display', serif;
  font-weight: 700;
  font-size: clamp(36px, 6vw, 72px);
  letter-spacing: 0.5px;
  color: #cf1f6b;
  text-shadow: 0 8px 40px rgba(215, 38, 113, 0.25);
}

.subtitle {
  margin-top: 8px;
  font-size: clamp(16px, 2.4vw, 22px);
  color: #6a3a5a;
}

.cta {
  display: grid;
  place-items: center;
  margin: 40px 0 24px;
}

.heart-button {
  --size: 120px;
  position: relative;
  display: inline-grid;
  place-items: center;
  width: var(--size);
  height: var(--size);
  border-radius: 999px;
  border: none;
  background: conic-gradient(from 180deg at 50% 50%, #ff5da4, #ff8dbc, #ffc1d8, #ff5da4);
  color: white;
  cursor: pointer;
  box-shadow: 0 20px 50px rgba(255, 93, 164, 0.35);
  transition: transform 200ms ease, box-shadow 200ms ease;
  isolation: isolate;
}

.heart-button:hover { transform: translateY(-4px) scale(1.03); box-shadow: 0 28px 70px rgba(255, 93, 164, 0.5); }
.heart-button:active { transform: translateY(0) scale(0.98); }

.heart-shape {
  width: 56px;
  height: 56px;
  background: radial-gradient(circle at 30% 30%, #fffafc 0%, #ffd1e3 60%, #ff6fa1 100%);
  position: relative;
  transform: rotate(-45deg);
  border-radius: 16px;
  box-shadow: inset 0 8px 18px rgba(255,255,255,0.6), inset 0 -10px 20px rgba(215, 38, 113, 0.25);
}

.heart-shape::before,
.heart-shape::after {
  content: '';
  position: absolute;
  width: 56px;
  height: 56px;
  background: inherit;
  border-radius: 50%;
}

.heart-shape::before { top: -28px; left: 0; }
.heart-shape::after { left: 28px; top: 0; }

.label {
  position: absolute;
  bottom: -34px;
  font-weight: 600;
  color: #7a3d63;
}

.hint { color: #8f597a; margin-top: 46px; }

.reveal.hidden { display: none; }

.love-letter {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 155, 195, 0.35);
  border-radius: 20px;
  padding: 28px 22px;
  box-shadow: 0 10px 30px rgba(215, 38, 113, 0.15);
}

.script {
  font-family: 'Great Vibes', cursive;
  font-size: clamp(28px, 5vw, 44px);
  color: #b4165a;
  margin: 8px 0 12px;
  text-align: center;
}

.typewriter {
  font-size: clamp(16px, 2.2vw, 20px);
  line-height: 1.8;
  color: #411a2f;
  min-height: 5lh;
}

/* stats removed */

/* gallery removed */

.actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin-top: 16px;
}

.poetry {
  margin-top: 26px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(255, 155, 195, 0.35);
  border-radius: 20px;
  padding: 20px 18px;
  box-shadow: 0 10px 24px rgba(215, 38, 113, 0.12);
}

.poem p {
  margin: 10px 0;
  font-size: clamp(15px, 2.1vw, 19px);
  color: #472039;
  opacity: 0;
  transform: translateY(8px);
  animation: lineIn 600ms ease forwards;
}

.poem p:nth-child(1) { animation-delay: 0ms; }
.poem p:nth-child(2) { animation-delay: 80ms; }
.poem p:nth-child(3) { animation-delay: 160ms; }
.poem p:nth-child(4) { animation-delay: 240ms; }
.poem p:nth-child(5) { animation-delay: 320ms; }
.poem p:nth-child(6) { animation-delay: 400ms; }
.poem p:nth-child(7) { animation-delay: 480ms; }
.poem p:nth-child(8) { animation-delay: 560ms; }

@keyframes lineIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.action-btn {
  padding: 10px 16px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 195, 0.4);
  background: white;
  color: #a22a67;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(215, 38, 113, 0.15);
}

.action-btn:hover { background: #fff0f6; }

.confetti-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 3;
}

.signature {
  position: fixed;
  bottom: 10px;
  right: 14px;
  color: #bb4e80;
  font-size: 12px;
  opacity: 0.7;
  z-index: 4;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(255, 155, 195, 0.35);
}

.brand {
  font-family: 'Great Vibes', cursive;
  font-size: 26px;
  color: #cf1f6b;
}

.nav-links { display: flex; gap: 8px; }
.nav-btn {
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 155, 195, 0.45);
  background: white;
  color: #a22a67;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(215, 38, 113, 0.12);
}
.nav-btn:hover { background: #fff0f6; }

.sparkles-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 2;
  mix-blend-mode: screen;
  opacity: 0.6;
}

@media (max-width: 480px) {
  .heart-button { --size: 100px; }
  .label { bottom: -30px; }
}


