:root {
  --ink: #643848;
  --muted: #946979;
  --rose: #bb5d7e;
  --rose-dark: #a64868;
  --glass: rgba(255, 255, 255, 0.56);
  --line: rgba(255, 255, 255, 0.72);
}

* { box-sizing: border-box; }

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

body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  overflow-x: hidden;
  color: var(--ink);
  font-family: "Inter", system-ui, sans-serif;
  background:
    radial-gradient(circle at 15% 10%, rgba(255,255,255,.85), transparent 28%),
    radial-gradient(circle at 85% 85%, rgba(255,235,241,.7), transparent 30%),
    linear-gradient(145deg, #fcebf0 0%, #f4cbd7 48%, #e9afc0 100%);
}

.ambient::before,
.ambient::after {
  content: "♡";
  position: fixed;
  color: rgba(255,255,255,.46);
  font-size: clamp(180px, 28vw, 430px);
  line-height: 1;
  pointer-events: none;
  filter: blur(.2px);
}

.ambient::before { left: -7vw; top: -10vh; transform: rotate(-16deg); }
.ambient::after { right: -8vw; bottom: -15vh; transform: rotate(18deg); }

.card {
  position: relative;
  z-index: 1;
  width: min(760px, 100%);
  padding: clamp(34px, 6vw, 64px) clamp(18px, 5vw, 52px);
  text-align: center;
  border: 1px solid var(--line);
  border-radius: 34px;
  background: var(--glass);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: 0 28px 80px rgba(105, 45, 68, .18);
}

.heart {
  width: 72px;
  height: 72px;
  margin: 0 auto 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #fff;
  font-size: 34px;
  background: linear-gradient(145deg, #cf7392, #b64e72);
  box-shadow: 0 12px 30px rgba(182, 78, 114, .28);
  animation: heartbeat 1.7s ease-in-out infinite;
}

@keyframes heartbeat {
  0%, 100% { transform: scale(1); }
  45% { transform: scale(1.08); }
  60% { transform: scale(1.02); }
}

.eyebrow {
  margin: 0 0 9px;
  color: var(--rose-dark);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .22em;
}

h1 {
  margin: 0;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(42px, 8vw, 72px);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -.025em;
}

.intro {
  max-width: 560px;
  margin: 20px auto 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.8;
}

.timer {
  margin-top: 34px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.time-box {
  min-width: 0;
  padding: 19px 7px 17px;
  border: 1px solid rgba(255,255,255,.73);
  border-radius: 20px;
  background: rgba(255,255,255,.52);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.75), 0 9px 25px rgba(108,53,73,.07);
}

.number {
  display: block;
  color: var(--rose-dark);
  font-size: clamp(23px, 5vw, 32px);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.label {
  display: block;
  margin-top: 7px;
  color: var(--muted);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.status {
  min-height: 20px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.start-button {
  margin-top: 18px;
  padding: 14px 26px;
  border: 0;
  border-radius: 999px;
  color: #fff;
  font: 600 14px/1 "Inter", sans-serif;
  background: linear-gradient(135deg, #c76586, #aa4569);
  box-shadow: 0 12px 26px rgba(176, 73, 109, .28);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, opacity .18s ease;
}

.start-button:hover { transform: translateY(-2px); box-shadow: 0 15px 31px rgba(176,73,109,.34); }
.start-button:disabled { cursor: default; opacity: .6; transform: none; }

.forever {
  margin: 22px 0 0;
  color: var(--rose-dark);
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 19px;
  font-weight: 600;
}

.signature {
  margin: 28px 0 0;
  color: #a67b8a;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 17px;
  font-style: italic;
}

[hidden] { display: none !important; }

@media (max-width: 650px) {
  body { padding: 16px; }
  .card { border-radius: 27px; }
  .timer { grid-template-columns: repeat(2, 1fr); }
  .seconds { grid-column: 1 / -1; }
  .number { font-size: 29px; }
}

@media (prefers-reduced-motion: reduce) {
  .heart { animation: none; }
}
