body {
  margin: 0;
  padding: 0;
  font-family: "Poppins", sans-serif;
  background: linear-gradient(135deg, #ff9a9e, #fad0c4, #fad0c4);
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100vh;
  overflow: hidden;
}

.container {
  text-align: center;
  background: rgba(255, 255, 255, 0.85);
  padding: 25px 30px;
  border-radius: 20px;
  max-width: 360px;
  width: 90%;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

h1 {
  font-size: 2rem;
  font-family: Nunito, sans-serif;
  color: #ff3366;
  margin-bottom: 20px;
  text-shadow: 2px 2px 4px rgba(255, 51, 102, 0.3);
  line-height: 1.3;
}

.buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

button {
  padding: 12px 24px;
  font-size: 1rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: 0.3s ease;
}

.yes-btn {
  background: #ff4da6;
  color: white;
  box-shadow: 0 5px 15px rgba(255, 77, 166, 0.4);
}

.yes-btn:hover {
  background: #ff1a8c;
  transform: scale(1.1);
}

.no-btn {
  background: #666;
  color: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  position: absolute;
  transition: left 0.4s ease, top 0.4s ease;
  -webkit-tap-highlight-color: transparent; /* iPhone fix */
}

/* Hidden response initially */
.hidden {
  display: none;
}

/* Response message */
#response.show {
  display: block;
  margin-top: 20px;
  font-size: 1.5rem;
  color: #ff1a8c;
  font-weight: bold;
  animation: popIn 0.6s ease forwards;
}

@keyframes popIn {
  0% { transform: scale(0.5); opacity: 0; }
  100% { transform: scale(1); opacity: 1; }
}

/* Floating hearts */
.heart {
  position: fixed;
  top: -2rem;
  font-size: 2rem;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(100vh);
    opacity: 0;
  }
}

footer {
  position: fixed;
  bottom: 10px;
  width: 100%;
  text-align: center;
  font-family: Nunito, sans-serif;
  font-size: 1rem;
  color: #ff1a8c;
  font-weight: 500;
  text-shadow: 1px 1px 3px rgba(255, 51, 102, 0.3);
}

/* 📱 Mobile optimization */
@media (max-width: 480px) {
  .container {
    padding: 15px 20px;
    max-width: 280px;
  }

  h1 {
    font-size: 1.4rem;
    margin-bottom: 15px;
  }

  button {
    padding: 10px 18px;
    font-size: 0.9rem;
  }

  #response.show {
    font-size: 1.1rem;
  }
}
