*,
*::before,
*::after {
  box-sizing: border-box;
}

:root {
  --rose: #e8a4b8;
  --rose-deep: #c77d93;
  --cream: #fff9f5;
  --ink: #3d2c32;
  --shadow: rgba(61, 44, 50, 0.12);
}

html,
body {
  margin: 0;
  min-height: 100vh;
  font-family: "Noto Serif SC", "Songti SC", "SimSun", serif;
  color: var(--ink);
}

.bg {
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(ellipse 80% 60% at 20% 10%, rgba(255, 220, 230, 0.9), transparent 55%),
    radial-gradient(ellipse 70% 50% at 85% 80%, rgba(255, 200, 180, 0.65), transparent 50%),
    linear-gradient(165deg, #fdf6f0 0%, #f5e6ec 45%, #ebe0f0 100%);
}

.card {
  max-width: 28rem;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.5rem 1.75rem;
  text-align: center;
  opacity: 0;
  transform: translateY(12px);
  animation: enter 1.2s ease forwards 0.2s;
}

@keyframes enter {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.label {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  letter-spacing: 0.35em;
  color: var(--rose-deep);
  opacity: 0.85;
}

.name {
  margin: 0 0 2rem;
  font-size: clamp(2.5rem, 10vw, 3.5rem);
  font-weight: 600;
  letter-spacing: 0.08em;
  background: linear-gradient(120deg, var(--rose-deep), #9b6b7a);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.line {
  margin: 0.75rem 0;
  font-size: clamp(1.25rem, 4.5vw, 1.6rem);
  line-height: 1.7;
  letter-spacing: 0.06em;
}

.love {
  font-weight: 600;
}

.sign {
  margin-top: 1.5rem;
  font-size: clamp(1rem, 3.5vw, 1.15rem);
  color: rgba(61, 44, 50, 0.75);
}

.heart {
  margin-top: 2.5rem;
  font-size: 2rem;
  line-height: 1;
  color: var(--rose-deep);
  display: inline-block;
  transform-origin: center center;
  animation: heartbeat 1.15s ease-in-out infinite;
  filter: drop-shadow(0 0 10px rgba(199, 125, 147, 0.45));
}

@keyframes heartbeat {
  0%,
  100% {
    transform: scale(1);
  }
  10% {
    transform: scale(1.38);
  }
  20% {
    transform: scale(1);
  }
  32% {
    transform: scale(1.24);
  }
  44% {
    transform: scale(1);
  }
  60%,
  100% {
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .card,
  .heart {
    animation: none;
  }
  .card {
    opacity: 1;
    transform: none;
  }
}
