* { box-sizing: border-box; }
:root {
  --bg: #fff6f8;
  --fg: #2d2a32;
  --pink: #ff6ea9;
  --rose: #ff3c7e;
  --card: #ffffff;
  --muted: #6b6770;
}
html, body { height: 100%; }
body {
  margin: 0;
  font-family: Inter, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, "Apple Color Emoji", "Segoe UI Emoji";
  color: var(--fg);
  background: radial-gradient(1200px 800px at 80% -200px, #ffe0ec 0%, transparent 60%),
              radial-gradient(900px 600px at -200px 100%, #ffe7f1 0%, transparent 50%),
              var(--bg);
}
.bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; opacity: .8; }
.bg svg { width: 100%; height: 100%; display: block; }
.bg .float { opacity: .35; transform: translate(var(--tx), var(--ty)) scale(var(--s)); animation: bob var(--dur, 12s) ease-in-out infinite alternate; will-change: transform; }
@media (prefers-reduced-motion: reduce) {
  .bg .float { animation: none; }
}
@keyframes bob {
  0%   { transform: translate(var(--tx), var(--ty)) scale(var(--s)); }
  100% { transform: translate(var(--tx), calc(var(--ty) - 16px)) scale(var(--s)) rotate(3deg); }
}
.app {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  position: relative;
  z-index: 1;
}
.card {
  background: var(--card);
  width: min(720px, 95vw);
  border-radius: 20px;
  box-shadow: 0 10px 40px rgba(0,0,0,0.08);
  padding: 28px;
  position: relative;
  overflow: hidden;
}
.header {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
}
.badge {
  padding: 6px 10px;
  background: #ffe6f0;
  color: var(--rose);
  border-radius: 999px;
  font-weight: 600;
  font-size: 12px;
}
.title {
  font-family: Pacifico, cursive;
  font-size: 42px;
  margin: 8px 0 2px;
  color: var(--rose);
}
.subtitle { color: var(--muted); margin: 0 0 16px; }

.media {
  width: 100%;
  height: clamp(220px, 55vh, 520px);
  border-radius: 14px;
  overflow: hidden;
  background: #f6f3f5;
  display: grid;
  place-items: center;
  margin: 14px 0 18px;
}
.media img { width: 100%; height: 100%; object-fit: contain; object-position: center; }

.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 6px; }
.button {
  appearance: none; border: 0; cursor: pointer;
  padding: 12px 16px; border-radius: 12px; font-weight: 700;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.button.primary { background: var(--rose); color: white; box-shadow: 0 4px 16px rgba(255, 60, 126, .35); }
.button.primary:hover { transform: translateY(-1px); }
.button.secondary { background: #f3eef1; color: var(--fg); }
.button.ghost { background: transparent; color: var(--muted); text-decoration: underline; }

.note { color: var(--muted); font-size: 14px; margin-top: 8px; }
.footer { margin-top: 18px; color: var(--muted); font-size: 12px; }

/* Hearts for final screen */
.hearts { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.heart {
  position: absolute;
  font-size: 18px;
  animation: float 6s linear forwards;
  filter: drop-shadow(0 2px 2px rgba(0,0,0,.12));
}
@keyframes float {
  0%   { transform: translateY(0) translateX(0) rotate(0); opacity: 0; }
  5%   { opacity: 1; }
  100% { transform: translateY(-120vh) translateX(var(--x, 0)) rotate(360deg); opacity: 0; }
}

.final-title { font-family: Pacifico, cursive; font-size: 48px; color: var(--rose); margin: 8px 0; }
.final-lede { font-size: 18px; color: var(--muted); margin-top: 0; }
