* {
  box-sizing: border-box;
}

:root {
  --bg-a: #160014;
  --bg-b: #2a041f;
  --bg-c: #3c0827;
  --card: rgba(255, 255, 255, 0.08);
  --card-border: rgba(255, 255, 255, 0.14);
  --text: #fff7fb;
  --text-soft: rgba(255, 247, 251, 0.82);
  --heart-a: #ff6b8f;
  --heart-b: #ff245c;
  --heart-c: #bf0038;
  --shadow: rgba(255, 20, 80, 0.34);
}

html {
  height: 100%;
}

body {
  margin: 0;
  min-height: 100%;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at top, rgba(255, 113, 150, 0.18), transparent 28%),
    radial-gradient(circle at bottom right, rgba(255, 65, 120, 0.12), transparent 25%),
    linear-gradient(160deg, var(--bg-a) 0%, var(--bg-b) 52%, var(--bg-c) 100%);
  overflow: hidden;
}

.page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.card {
  position: relative;
  width: min(100%, 980px);
  min-height: min(86vh, 760px);
  display: grid;
  place-items: center;
  text-align: center;
  padding: clamp(20px, 4vw, 36px);
  border: 1px solid var(--card-border);
  border-radius: 32px;
  background: var(--card);
  backdrop-filter: blur(14px);
  box-shadow:
    0 18px 60px rgba(0, 0, 0, 0.20),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.eyebrow {
  position: absolute;
  top: 18px;
  left: 20px;
  margin: 0;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255,255,255,0.10);
  color: var(--text-soft);
  font-size: clamp(0.78rem, 1.6vw, 0.95rem);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.subline {
  position: absolute;
  bottom: 20px;
  margin: 0;
  color: var(--text-soft);
  font-size: clamp(0.92rem, 1.8vw, 1.05rem);
}

.heart-wrap {
  position: relative;
  width: min(70vw, 520px);
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.heart {
  position: absolute;
  inset: 0;
  margin: auto;
  width: 68%;
  height: 68%;
  transform: rotate(-45deg);
  border-radius: 24px;
  background: linear-gradient(145deg, var(--heart-a) 0%, var(--heart-b) 52%, var(--heart-c) 100%);
  box-shadow:
    0 30px 80px var(--shadow),
    0 0 80px rgba(255, 60, 115, 0.22),
    inset 0 8px 18px rgba(255, 255, 255, 0.18),
    inset 0 -10px 18px rgba(110, 0, 28, 0.22);
  animation: heartbeat 2.2s ease-in-out infinite;
}

.heart::before,
.heart::after {
  content: "";
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: inherit;
}

.heart::before {
  left: 0;
  top: -50%;
}

.heart::after {
  left: 50%;
  top: 0;
}

.message {
  position: relative;
  z-index: 2;
  width: 62%;
  aspect-ratio: 1 / 1;
  display: grid;
  place-items: center;
}

.message-inner {
  transform: translateY(6%);
  max-width: 90%;
}

.line-top {
  margin: 0 0 8px 0;
  font-size: clamp(1rem, 2.2vw, 1.55rem);
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 3px 14px rgba(0,0,0,0.18);
}

h1 {
  margin: 0;
  font-size: clamp(2.25rem, 6vw, 5rem);
  line-height: 0.95;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-shadow: 0 6px 20px rgba(0,0,0,0.22);
}

.bg-hearts {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.14;
}

.bg-hearts::before,
.bg-hearts::after {
  content: "❤  ❤  ❤  ❤  ❤";
  position: absolute;
  width: 100%;
  text-align: center;
  font-size: clamp(18px, 2vw, 28px);
  animation: floatUp 14s linear infinite;
}

.hearts-1::before {
  top: 100%;
  left: -10%;
}

.hearts-1::after {
  top: 115%;
  left: 8%;
  animation-delay: 7s;
}

.hearts-2::before {
  top: 108%;
  left: 22%;
  animation-delay: 3s;
}

.hearts-2::after {
  top: 120%;
  left: -18%;
  animation-delay: 10s;
}

@keyframes heartbeat {
  0%, 100% { transform: rotate(-45deg) scale(1); }
  15% { transform: rotate(-45deg) scale(1.04); }
  30% { transform: rotate(-45deg) scale(1); }
  45% { transform: rotate(-45deg) scale(1.08); }
  60% { transform: rotate(-45deg) scale(1); }
}

@keyframes floatUp {
  0% { transform: translateY(0); opacity: 0; }
  10% { opacity: 0.14; }
  100% { transform: translateY(-140vh); opacity: 0; }
}

@media (max-width: 900px) {
  .card {
    min-height: 82vh;
  }

  .heart-wrap {
    width: min(82vw, 460px);
  }
}

@media (max-width: 640px) {
  .page {
    padding: 14px;
  }

  .card {
    min-height: 88vh;
    border-radius: 24px;
    padding: 18px 12px 64px;
  }

  .eyebrow {
    top: 14px;
    left: 14px;
    padding: 7px 12px;
  }

  .subline {
    bottom: 16px;
    padding: 0 12px;
  }

  .heart-wrap {
    width: min(92vw, 380px);
  }

  .heart {
    width: 70%;
    height: 70%;
  }

  .message {
    width: 64%;
  }

  .message-inner {
    transform: translateY(4%);
  }

  .line-top {
    margin-bottom: 6px;
  }
}

@media (max-width: 400px) {
  .heart-wrap {
    width: 94vw;
  }

  .message {
    width: 66%;
  }

  h1 {
    font-size: clamp(2rem, 12vw, 3.2rem);
  }
}
