:root {
  --pink-1: #ffe3ee;
  --pink-2: #ffc2dd;
  --pink-3: #ff9ec7;
  --pink-deep: #ff6fa5;
  --text: #6b3b52;
  --white: #fff;
  --shadow: 0 18px 50px rgba(255, 111, 165, 0.28);
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body { height: 100%; }

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background: linear-gradient(135deg, #fff0f6 0%, #ffd9ea 50%, #ffc2dd 100%);
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow: hidden;
  position: relative;
}

/* Плавающие сердечки на фоне */
.bg-hearts { position: fixed; inset: 0; pointer-events: none; z-index: 0; }
.bg-hearts span {
  position: absolute;
  bottom: -40px;
  font-size: 1.6rem;
  opacity: 0;
  animation: floatUp linear infinite;
}
@keyframes floatUp {
  0% { transform: translateY(0) rotate(0); opacity: 0; }
  10% { opacity: .8; }
  90% { opacity: .8; }
  100% { transform: translateY(-110vh) rotate(360deg); opacity: 0; }
}

.card {
  position: relative;
  z-index: 1;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(10px);
  border-radius: 32px;
  box-shadow: var(--shadow);
  padding: 44px 36px;
  width: 100%;
  max-width: 460px;
  text-align: center;
  border: 2px solid rgba(255, 255, 255, 0.6);
}

/* Шаги */
.step { display: none; animation: pop .5s ease both; }
.step--active { display: block; }
@keyframes pop {
  from { opacity: 0; transform: scale(.92) translateY(10px); }
  to { opacity: 1; transform: scale(1) translateY(0); }
}

.emoji-big { font-size: 3.4rem; margin-bottom: 10px; }

.title {
  font-family: "Pacifico", cursive;
  font-weight: 400;
  font-size: 1.9rem;
  line-height: 1.3;
  color: var(--pink-deep);
  margin-bottom: 10px;
}

.subtitle { font-size: 1.05rem; font-weight: 600; opacity: .85; margin-bottom: 26px; }

/* Кнопки */
.btn-row { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

.btn {
  font-family: "Nunito", sans-serif;
  font-weight: 800;
  font-size: 1.15rem;
  border: none;
  border-radius: 50px;
  padding: 14px 34px;
  cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease;
}
.btn:active { transform: scale(.96); }

.btn--yes {
  background: linear-gradient(135deg, var(--pink-3), var(--pink-deep));
  color: var(--white);
  box-shadow: 0 8px 22px rgba(255, 111, 165, 0.45);
}
.btn--yes:hover { transform: translateY(-2px) scale(1.04); }

.btn--no {
  background: var(--white);
  color: var(--pink-deep);
  border: 2px solid var(--pink-2);
}
.btn--no.runaway { position: fixed; z-index: 5; }

/* Карточки выбора места */
.cards { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.place-card {
  background: var(--white);
  border: 2px solid var(--pink-2);
  border-radius: 22px;
  padding: 22px 18px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  min-width: 110px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
  font-family: "Nunito", sans-serif;
}
.place-card:hover {
  transform: translateY(-4px) scale(1.05);
  box-shadow: var(--shadow);
  border-color: var(--pink-deep);
}
.place-emoji { font-size: 2.4rem; }
.place-name { font-weight: 700; font-size: 1.05rem; color: var(--text); }

/* Поля даты/времени */
.fields { display: flex; flex-direction: column; gap: 16px; margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; text-align: left; font-weight: 700; }
.field input {
  font-family: "Nunito", sans-serif;
  font-size: 1.05rem;
  padding: 12px 16px;
  border: 2px solid var(--pink-2);
  border-radius: 16px;
  background: var(--white);
  color: var(--text);
  outline: none;
  transition: border-color .15s ease;
}
.field input:focus { border-color: var(--pink-deep); }

.error { color: #e0476b; font-weight: 700; margin-top: 12px; min-height: 1.2em; }

/* Финальный салют из сердечек */
.confetti-heart {
  position: fixed;
  top: -8vh;
  z-index: 50;
  pointer-events: none;
  animation: fall ease-in forwards;
}
@keyframes fall {
  0%   { transform: translateY(0) rotate(0); opacity: 0; }
  10%  { opacity: 1; }
  100% { transform: translateY(115vh) rotate(540deg); opacity: 0; }
}

@media (max-width: 420px) {
  .title { font-size: 1.6rem; }
  .card { padding: 34px 22px; }
}
