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

:root {
  --bg: #fff5f8;
  --card: #ffffff;
  --text: #5c4033;
  --pink: #ff8fab;
  --pink-hover: #ff6b95;
  --lavender: #e8dff5;
  --lavender-hover: #ddd0f0;
  --shadow: 0 12px 40px rgba(255, 143, 171, 0.18);
  --radius-card: 28px;
  --radius-btn: 999px;
}

html,
body {
  min-height: 100%;
}

body {
  font-family: "Nunito", system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  overflow-x: hidden;
}

#particles {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.page {
  position: relative;
  z-index: 1;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

.card {
  background: var(--card);
  border-radius: var(--radius-card);
  box-shadow: var(--shadow);
  padding: 2rem 2rem 2.25rem;
  max-width: 420px;
  width: 100%;
  text-align: center;
  animation: card-in 0.7s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

@keyframes card-in {
  from {
    opacity: 0;
    transform: scale(0.92) translateY(12px);
  }
  to {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.card__image-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 1.25rem;
}

.card__image {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 20px;
  box-shadow: 0 6px 20px rgba(92, 64, 51, 0.1);
}

.card__title {
  font-size: clamp(1.15rem, 4.5vw, 1.35rem);
  font-weight: 800;
  line-height: 1.45;
  margin-bottom: 1.75rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem 0.5rem;
}

.card__petal {
  font-size: 1rem;
  line-height: 1;
}

.card__actions {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1rem;
  min-height: 52px;
}

.btn {
  font-family: inherit;
  font-weight: 700;
  border: none;
  cursor: pointer;
  border-radius: var(--radius-btn);
  padding: 0.65rem 1.5rem;
  font-size: 1rem;
  transition:
    transform 0.15s ease,
    background 0.15s ease,
    box-shadow 0.15s ease;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn:active {
  transform: scale(0.96);
}

.btn--yes {
  background: var(--pink);
  color: #fff;
  letter-spacing: 0.04em;
  box-shadow: 0 4px 14px rgba(255, 107, 149, 0.35);
}

.btn--yes:hover {
  background: var(--pink-hover);
  transform: scale(1.04);
}

.btn--no {
  background: var(--lavender);
  color: var(--text);
  font-weight: 600;
  text-transform: lowercase;
  position: relative;
  transition:
    left 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    top 0.2s cubic-bezier(0.34, 1.2, 0.64, 1),
    transform 0.15s ease,
    background 0.15s ease;
}

.btn--no:hover {
  background: var(--lavender-hover);
}

.btn--no.dodging {
  position: fixed;
  z-index: 100;
  pointer-events: auto;
}

.hidden {
  display: none !important;
}

.card--success {
  animation: card-in 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.success__emoji {
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
  letter-spacing: 0.25rem;
}

.card__title--success {
  margin-bottom: 0.75rem;
}

.success__message {
  font-size: 1.05rem;
  font-weight: 600;
  line-height: 1.55;
  opacity: 0.9;
}

@media (max-width: 380px) {
  .card {
    padding: 1.5rem 1.25rem 1.75rem;
  }

  .card__image {
    width: 160px;
    height: 160px;
  }
}


/* Дополнительные окна выбора места и даты */
.card--step {
  animation: card-in 0.6s cubic-bezier(0.34, 1.4, 0.64, 1) both;
}

.step__message {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
  margin-top: -1rem;
  margin-bottom: 1.25rem;
  opacity: 0.85;
}

.choice-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.btn--choice {
  width: 100%;
  background: #fff0f4;
  color: var(--text);
  border: 1px solid rgba(255, 143, 171, 0.35);
}

.btn--choice:hover {
  background: var(--pink);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(255, 107, 149, 0.2);
}

.datetime-form {
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  text-align: left;
}

.datetime-form label {
  font-weight: 800;
  font-size: 0.95rem;
}

.datetime-form input {
  width: 100%;
  min-width: 0;
  padding: 0.85rem 0.9rem;
  border: 1px solid #f3c4d1;
  border-radius: 14px;
  background: #fff9fb;
  color: var(--text);
  font: inherit;
  outline: none;
}

.datetime-form input:focus {
  border-color: var(--pink);
  box-shadow: 0 0 0 3px rgba(255, 143, 171, 0.18);
}

.datetime-form .btn {
  margin-top: 0.35rem;
}

@media (max-width: 380px) {
  .datetime-form input {
    font-size: 0.9rem;
  }
}
