:root {
  color-scheme: light dark;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100dvh;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #e8f5e9, #f1f8e9);
  color: #1b4332;
  padding: 16px;
}

.container {
  width: min(100%, 520px);
}

.card {
  background: #ffffff;
  border-radius: 16px;
  padding: clamp(16px, 4vw, 24px);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
}

h1 {
  margin: 0 0 12px;
}

p {
  margin: 0 0 16px;
}

.input-form {
  display: grid;
  gap: 10px;
}

input,
textarea,
button {
  font: inherit;
  width: 100%;
  min-height: 44px;
  padding: 12px;
  border-radius: 10px;
  border: 1px solid #b7c9b2;
}

textarea {
  resize: vertical;
  min-height: 120px;
}

button {
  cursor: pointer;
  border: none;
  background: #2d6a4f;
  color: #ffffff;
}

button:hover {
  filter: brightness(1.05);
}

.button-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.error-text {
  min-height: 1.2em;
  color: #b00020;
  font-weight: 600;
}

.status-text {
  min-height: 1.2em;
  color: #1b4332;
  font-weight: 600;
}

.quote {
  min-height: 88px;
  padding: 12px;
  border-radius: 10px;
  background: #f5fbf6;
}

.hug-emoji {
  margin: 8px 0 16px;
  min-height: 0;
  border: none;
  background: transparent;
  font-size: clamp(88px, 24vw, 140px);
  line-height: 1;
  padding: 0;
}

.hug-animation {
  animation: hugPulse 420ms ease;
}

@keyframes hugPulse {
  0% {
    transform: scale(1);
  }

  35% {
    transform: scale(1.16);
  }

  100% {
    transform: scale(1);
  }
}

.hidden {
  display: none;
}

@media (max-width: 480px) {
  body {
    padding: 12px;
  }

  .card {
    border-radius: 14px;
  }
}
