* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  height: 100vh;
  font-family: 'Poppins', sans-serif;
  background: linear-gradient(135deg, #fff0f3, #ffccd5);
  overflow: hidden;
}

/* ================= SCREENS ================= */
.screen {
  position: absolute;
  inset: 0;
  display: none;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  background: rgba(255,240,243,0.95);
  z-index: 20;
  backdrop-filter: blur(12px);
}

.screen.active {
  display: flex;
}

/* ================= TEXT ================= */
h1 {
  font-family: 'Great Vibes', cursive;
  font-size: 4rem;
  color: #c9184a;
  margin-bottom: 20px;
  text-align: center;
}

p {
  font-size: 1.2rem;
  margin-bottom: 20px;
  text-align: center;
  color: #590d22;
}

/* ================= BUTTONS ================= */
button {
  padding: 14px 36px;
  border-radius: 999px;
  border: none;
  background: linear-gradient(135deg, #ff4d6d, #ff758f);
  color: white;
  font-size: 16px;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

button:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(255, 77, 109, 0.4);
}

/* ================= QUIZ ================= */
.quiz-question {
  display: none;
  animation: fadeIn 0.4s ease;
}

.quiz-question.active {
  display: block;
}

.option {
  background: white;
  border-radius: 14px;
  padding: 14px;
  margin: 10px 0;
  border: 2px solid transparent;
  cursor: pointer;
  transition: all 0.2s ease;
}

.option:hover {
  border-color: #ff4d6d;
}

.option.selected {
  background: #ffe6eb;
  border-color: #ff4d6d;
}

/* TEXT INPUT (QUIZ) */
.text-answer {
  width: 320px;           /* increase width */
  padding: 14px 18px;     /* increase height */
  font-size: 1rem;

  border-radius: 16px;    /* rounder corners */
  border: 2px solid #ffccd5;

  outline: none;
  transition: border 0.2s ease, box-shadow 0.2s ease;
  
  display: block;
  margin: 0 auto; 
  margin-bottom: 20px;
  
}

.text-answer:focus {
  border-color: #ff4d6d;
  box-shadow: 0 0 0 3px rgba(255, 77, 109, 0.25);
}


/* ================= GAME ================= */
#gameCanvas {
  position: absolute;
  inset: 0;
}

#love-meter {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255,255,255,0.85);
  padding: 12px 16px;
  border-radius: 999px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  z-index: 5;
}

#meter {
  width: 170px;
  height: 20px;
  border-radius: 999px;
  overflow: hidden;
  background: #ffd6df;
}

#love-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #ff4d6d, #c9184a);
  transition: width 0.3s ease;
}

/* ================= PROPOSAL MODAL ================= */
#proposal-modal {
  position: fixed;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: center;
  background: rgba(255, 240, 243, 0.95);
  z-index: 50;
}

#proposal-modal.hidden {
  display: none;
}

.proposal-box {
  text-align: center;
}

/* CENTER PROPOSAL SCREEN CONTENT */
#proposal-screen {
  position: fixed;
  inset: 0;

  display: flex;
  justify-content: center;
  align-items: center;

  background: rgba(255, 240, 243, 0.95);
  z-index: 50;
}

#proposal-screen.hidden {
  display: none;
}

/* ================= VALENTINE BUTTONS ================= */
/* Button container becomes the anchor */
.valentine-buttons {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 40px;
  margin-top: 30px;
}

#yes-btn {
  min-width: 120px;
  position: relative;
  z-index: 2;
}

/* keeps NO button movable */
#no-btn {
  margin-top: 40px;
  min-width: 120px;
  position: relative;
}


/* Text below NO button */
.no-wrapper {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

#no-text {
  margin-top: 8px;
  font-size: 0.9rem;
  color: #c9184a;
  min-height: 1.2em;
  transition: opacity 0.2s ease;
}

/* FINAL SCREEN MUST BE ABOVE PROPOSAL */
#final-screen {
  z-index: 60;
}


/* ================= ANIMATIONS ================= */
@keyframes heartbeat {
  0% { transform: scale(1); }
  30% { transform: scale(1.1); }
  60% { transform: scale(1); }
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}
