*,
*::before,
*::after {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: radial-gradient(circle at top, #e1f0ff 0%, #b3d6ff 40%, #80b1ff 80%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  color: #123054;
  overflow-x: hidden;
}

.hearts-bg {
  position: fixed;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle at 10% 20%, rgba(255, 255, 255, 0.45) 0, transparent 45%),
    radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.35) 0, transparent 45%);
  opacity: 0.7;
  z-index: 0;
}

.card {
  position: relative;
  z-index: 1;
  width: min(420px, 94vw);
  background: rgba(255, 255, 255, 0.92);
  border-radius: 24px;
  padding: 24px 20px 28px;
  box-shadow:
    0 20px 40px rgba(165, 17, 93, 0.25),
    0 0 0 1px rgba(255, 255, 255, 0.6);
  text-align: center;
  backdrop-filter: blur(12px);
}

h1 {
  font-size: 1.6rem;
  margin: 0 0 8px;
}

#question-subtitle {
  margin: 0 0 20px;
  font-size: 0.95rem;
  color: #7b3b60;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-bottom: 8px;
  position: relative;
  min-height: 48px;
}

.btn {
  border: none;
  border-radius: 999px;
  padding: 10px 22px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    background 0.15s ease,
    color 0.15s ease;
  touch-action: manipulation;
}

.btn.yes {
  background: linear-gradient(135deg, #4f8cff, #1e63ff);
  color: white;
  box-shadow: 0 8px 16px rgba(30, 99, 255, 0.4);
}

.btn.yes:active {
  transform: scale(0.94);
  box-shadow: 0 4px 10px rgba(30, 99, 255, 0.5);
}

.btn.no {
  background: white;
  color: #1e63ff;
  border: 2px solid #9eb8ff;
  box-shadow: 0 5px 10px rgba(30, 99, 255, 0.18);
}

.btn.no:active {
  transform: scale(0.9);
}

.counter-message {
  min-height: 18px;
  font-size: 0.8rem;
  color: #28518e;
  margin-bottom: 4px;
}

.roses {
  font-size: 2.4rem;
  margin: 16px 0 8px;
  animation: float 3s ease-in-out infinite;
}

.atlas-playground {
  margin: 10px 0 6px;
  height: 120px;
  position: relative;
  overflow: hidden;
}

.atlas-grey-cat {
  position: absolute;
  font-size: 2.2rem;
  animation: atlas-grey-run 5s linear infinite;
}

.finish-btn {
  margin-top: 10px;
  font-size: 0.95rem;
}

.big-message {
  margin: 4px 0 8px;
  font-size: 1.15rem;
  font-weight: 600;
}

.small-message {
  margin: 0 0 8px;
  font-size: 0.95rem;
  line-height: 1.4;
}

.tiny-message {
  margin: 4px 0 0;
  font-size: 0.8rem;
  color: #a33e6c;
}

.emoji-family {
  display: flex;
  justify-content: center;
  gap: 12px;
  font-size: 2rem;
  margin: 6px 0 8px;
}

.emoji {
  display: inline-block;
  animation: pop 1.4s ease-in-out infinite;
}

.emoji:nth-child(2) {
  animation-delay: 0.2s;
}

.emoji:nth-child(3) {
  animation-delay: 0.4s;
}

.hidden {
  display: none;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-6px);
  }
}

@keyframes pop {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  40% {
    transform: translateY(-4px) scale(1.06);
  }
}

@keyframes atlas-grey-run {
  0% {
    transform: translate(0, 0);
  }
  20% {
    transform: translate(60%, -10%);
  }
  40% {
    transform: translate(110%, 40%);
  }
  60% {
    transform: translate(40%, 100%);
  }
  80% {
    transform: translate(-20%, 40%);
  }
  100% {
    transform: translate(0, 0);
  }
}

/* Petit ajustement pour les très petits écrans */
@media (max-width: 360px) {
  h1 {
    font-size: 1.4rem;
  }
  .btn {
    padding-inline: 16px;
  }
}
