:root {
  --rose: #ff5b8d;
  --rose-deep: #e0437a;
  --peach: #ffb6a3;
  --blush: #ffe0e9;
  --cream: #fff5f0;
  --gold: #d4a574;
  --ink: #4a2c3a;
  --ink-soft: #7a5566;
  --card-bg: rgba(255, 255, 255, 0.55);
  --card-border: rgba(255, 255, 255, 0.75);
  --shadow-rose: 0 20px 60px rgba(255, 91, 141, 0.18);
  --shadow-soft: 0 8px 24px rgba(74, 44, 58, 0.06);
}

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

html,
body {
  min-height: 100%;
}

body {
  font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 20% 10%, #ffd1dc 0%, transparent 45%),
    radial-gradient(circle at 85% 90%, #ffe5d0 0%, transparent 50%),
    linear-gradient(135deg, #fff5f0 0%, #ffe0e9 50%, #ffd1dc 100%);
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 2rem 1.25rem;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Floating background hearts */
.hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.heart-float {
  position: absolute;
  bottom: -40px;
  color: var(--rose);
  user-select: none;
  will-change: transform, opacity;
  animation: float linear infinite;
}

@keyframes float {
  0% {
    transform: translateY(0) translateX(0) rotate(0deg);
    opacity: 0;
  }
  10% {
    opacity: var(--target-opacity);
  }
  90% {
    opacity: var(--target-opacity);
  }
  100% {
    transform: translateY(-110vh) translateX(60px) rotate(360deg);
    opacity: 0;
  }
}

/* Card */
.card {
  position: relative;
  z-index: 1;
  background: var(--card-bg);
  backdrop-filter: blur(24px) saturate(140%);
  -webkit-backdrop-filter: blur(24px) saturate(140%);
  border: 1px solid var(--card-border);
  border-radius: 28px;
  padding: 3.25rem 2.5rem;
  text-align: center;
  max-width: 520px;
  width: 100%;
  box-shadow: var(--shadow-rose), var(--shadow-soft);
  animation: cardIn 1.1s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(20px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.kicker {
  font-size: 0.72rem;
  letter-spacing: 0.35em;
  text-transform: uppercase;
  color: var(--rose);
  font-weight: 500;
  margin-bottom: 1.25rem;
}

.names {
  font-family: 'Potta One', 'Cormorant Garamond', 'Times New Roman', Georgia, serif;
  font-size: clamp(2rem, 5.5vw, 3.1rem);
  font-weight: 400;
  line-height: 1.1;
  margin-bottom: 2rem;
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4em;
  flex-wrap: wrap;
  letter-spacing: 0.01em;
}

.name {
  display: inline-block;
}

.heart {
  display: inline-block;
  color: var(--rose);
  font-size: 0.85em;
  transform-origin: center;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%,
  100% {
    transform: scale(1);
  }
  20% {
    transform: scale(1.18);
  }
  40% {
    transform: scale(1);
  }
  60% {
    transform: scale(1.1);
  }
}

/* Counter */
.counter {
  margin: 1.25rem 0 1.5rem;
}

.number {
  display: block;
  font-family: 'Potta One', 'Inter', sans-serif;
  font-weight: 400;
  font-size: clamp(4.5rem, 16vw, 7.5rem);
  line-height: 0.95;
  letter-spacing: 0.005em;
  background: linear-gradient(135deg, var(--rose) 0%, var(--gold) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  font-variant-numeric: tabular-nums;
  transition: transform 0.3s ease;
}

.number.bump {
  transform: scale(1.04);
}

.label {
  display: block;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 500;
  color: var(--ink-soft);
  margin-top: 0.65rem;
  letter-spacing: 0.01em;
}

/* Breakdown */
.breakdown {
  display: flex;
  justify-content: center;
  gap: clamp(1rem, 4vw, 2.25rem);
  margin: 1.75rem 0;
  padding: 1.1rem 0;
  border-top: 1px solid rgba(255, 91, 141, 0.18);
  border-bottom: 1px solid rgba(255, 91, 141, 0.18);
}

.breakdown-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 60px;
}

.breakdown-num {
  font-family: 'Potta One', 'Inter', sans-serif;
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--rose-deep);
  font-variant-numeric: tabular-nums;
  line-height: 1;
  letter-spacing: 0.01em;
}

.breakdown-label {
  font-size: 0.66rem;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--ink-soft);
  margin-top: 0.4rem;
}

/* Quote */
.quote {
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.1rem;
  font-style: italic;
  color: var(--ink-soft);
  margin-top: 1.5rem;
  line-height: 1.5;
}

/* Footer */
footer {
  position: relative;
  z-index: 1;
  margin-top: 2.25rem;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--ink-soft);
  opacity: 0.7;
}

.heart-mini {
  color: var(--rose);
  display: inline-block;
  animation: pulse 1.6s ease-in-out infinite;
}

/* Mobile */
@media (max-width: 480px) {
  .card {
    padding: 2.25rem 1.4rem;
    border-radius: 22px;
  }
  .breakdown {
    gap: 0.85rem;
  }
  .breakdown-num {
    font-size: 1.4rem;
  }
  .breakdown-label {
    font-size: 0.6rem;
  }
  .quote {
    font-size: 1rem;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .heart,
  .heart-mini,
  .heart-float {
    animation: none !important;
  }
  .card {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
