* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  display: grid;
  place-items: center;
  font-family: Georgia, 'Times New Roman', serif;
  background:
    radial-gradient(circle at top, rgba(255, 190, 210, 0.55), transparent 35%),
    linear-gradient(135deg, #fff7f9 0%, #ffe3ea 45%, #ffd0db 100%);
  color: #5c2436;
}

.hero {
  width: min(92vw, 720px);
  padding: 24px;
}

.card {
  padding: 40px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.7);
  box-shadow: 0 20px 60px rgba(122, 34, 59, 0.16);
  backdrop-filter: blur(10px);
}

.card h1 {
  margin: 0 0 16px;
  font-size: clamp(2.2rem, 5vw, 4rem);
  letter-spacing: 0.04em;
}

.card p {
  margin: 0;
  font-size: clamp(1.05rem, 2.2vw, 1.25rem);
  line-height: 1.8;
}

.input-container {
  margin-top: 30px;
  text-align: center;
}

#magicInput {
  padding: 12px 20px;
  font-size: 1.1rem;
  border: 2px solid #ffd0db;
  border-radius: 12px;
  outline: none;
  font-family: inherit;
  color: #5c2436;
  background: rgba(255, 255, 255, 0.9);
  transition: border-color 0.3s, box-shadow 0.3s;
  width: 100%;
  max-width: 300px;
}

#magicInput:focus {
  border-color: #ff8eaa;
  box-shadow: 0 0 10px rgba(255, 142, 170, 0.4);
}

.heart {
  position: fixed;
  bottom: -50px;
  font-size: 24px;
  pointer-events: none;
  animation: floatUp 5s linear forwards;
  z-index: 1000;
}

@keyframes floatUp {
  0% {
    transform: translateY(0) scale(1) rotate(-15deg);
    opacity: 1;
  }
  100% {
    transform: translateY(-110vh) scale(1.5) rotate(20deg);
    opacity: 0;
  }
}
