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

html,
body {
  height: 100%;
}

body {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 20px;
  min-height: 100vh;
  background-color: #ffffff;
  font-family: "Cormorant Garamond", serif;
  overflow-x: hidden;
  overflow-y: auto;
}

.image-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
  margin-top: -40px;
}

.hero-image {
  display: block;
  width: auto;
  max-width: 100vw;
  max-height: 79vh;
  object-fit: contain;
}

.date-form {
  display: none;
  flex-direction: column;
  gap: 16px;
  min-width: 260px;
  padding: 32px;
  background-color: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  text-align: left;
}

.date-form.visible {
  display: flex;
}

.date-form h2 {
  font-family: "Great Vibes", cursive;
  font-size: 2.2rem;
  font-weight: 400;
  color: red;
  text-align: center;
  margin-bottom: 8px;
}

.form-callout {
  font-family: "Great Vibes", cursive;
  font-size: 1.6rem;
  font-weight: 400;
  color: red;
  text-align: center;
  margin-bottom: 8px;
}

.date-form label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 1.1rem;
  color: #444444;
}

.date-form input,
.date-form select {
  font-family: "Cormorant Garamond", serif;
  font-size: 1.1rem;
  padding: 10px 12px;
  border: 2px solid #d0c9c5;
  border-radius: 8px;
  background-color: #ffffff;
}

.btn-confirm {
  border: none;
  background-color: red;
  color: #ffffff;
  padding: 14px 32px;
  font-size: 1.3rem;
  margin-top: 8px;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.45);
}

.question {
  font-family: "Great Vibes", cursive;
  font-size: 6.5rem;
  line-height: 1.15;
  font-weight: 400;
  color: #2c2c2c;
  text-align: center;
  max-width: 1100px;
}

.buttons {
  display: flex;
  gap: 24px;
  margin-top: -20px;
}

.btn {
  padding: 22px 64px;
  font-family: "Cormorant Garamond", serif;
  font-size: 2rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  border-radius: 10px;
  cursor: pointer;
  transition:
    transform 0.15s ease,
    opacity 0.15s ease,
    box-shadow 0.15s ease,
    left 0.4s ease,
    top 0.4s ease;
}

.btn:hover {
  transform: scale(1.05);
}

.btn-yes {
  border: none;
  background-color: red;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(217, 119, 87, 0.45);
}

.btn-no {
  border: 2px solid #d0c9c5;
  background-color: #ffffff;
  color: #555555;
  position: relative;
}

.btn-no.dodging {
  position: fixed;
  z-index: 10;
}

.no-message {
  position: fixed;
  transform: translate(-50%, -100%);
  font-family: "Cormorant Garamond", serif;
  font-size: 1.6rem;
  font-weight: 600;
  color: #d97757;
  background-color: #ffffff;
  padding: 10px 24px;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  opacity: 0;
  pointer-events: none;
  white-space: nowrap;
  transition: opacity 0.3s ease, left 0.4s ease, top 0.4s ease;
  z-index: 20;
  text-align: center;
}

.no-message.show {
  opacity: 1;
}

.falling-roses {
  position: fixed;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
  z-index: 50;
}

.rose-petal {
  position: absolute;
  top: -100px;
  width: 40px;
  height: auto;
  animation: fall-rose linear infinite;
}

@keyframes fall-rose {
  from {
    transform: translateY(-10vh) rotate(0deg);
  }
  to {
    transform: translateY(110vh) rotate(360deg);
  }
}

.summary {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  text-align: center;
  z-index: 40;
  background-color: #ffffff;
}

.final-screen {
  display: none;
  position: fixed;
  inset: 0;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 32px;
  text-align: center;
  padding: 40px;
  z-index: 60;
  background-color: #ffffff;
}

.final-screen.visible {
  display: flex;
}

.final-message {
  font-family: "Great Vibes", cursive;
  font-size: 3.5rem;
  line-height: 1.2;
  color: #2c2c2c;
  max-width: 900px;
  opacity: 0;
  transition: opacity 1.5s ease;
}

.final-message.show {
  opacity: 1;
}

.final-screen .btn {
  opacity: 0;
  transition: opacity 1s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.final-screen .btn.show {
  opacity: 1;
}

.summary.visible {
  display: flex;
}

.summary-message {
  font-family: "Great Vibes", cursive;
  font-size: 3.2rem;
  color: #2c2c2c;
  max-width: 800px;
  margin-bottom: 8px;
}

.summary-heart {
  font-size: 3rem;
  color: red;
}

.summary-text {
  font-family: "Great Vibes", cursive;
  font-size: 3rem;
  color: #2c2c2c;
  max-width: 800px;
}
