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

.hidden {
  display: none !important;
}

/* --- Lock screen --- */
.lock-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 80vh;
}

.lock-card {
  text-align: center;
}

.lock-question {
  font-size: 1.5rem;
  color: #5d4037;
  margin-bottom: 1.5rem;
}

.lock-input {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.2rem;
  padding: 0.7rem 1.5rem;
  border: 2px solid #f8bbd0;
  border-radius: 50px;
  outline: none;
  text-align: center;
  background: rgba(255, 255, 255, 0.7);
  transition: border-color 0.2s;
}

.lock-input:focus {
  border-color: #e91e63;
}

.lock-error {
  color: #c62828;
  font-size: 0.95rem;
  margin-top: 1rem;
  min-height: 1.4em;
}

.lock-question.poem-mode {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  max-width: 520px;
}

.lock-screen.fade-out {
  opacity: 0;
  transition: opacity 0.6s ease-out;
}

.main-content.fade-in {
  animation: fadeIn 0.8s ease-out;
}

@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

body {
  min-height: 100vh;
  background: linear-gradient(135deg, #fff0f3 0%, #fce4ec 40%, #f8bbd0 100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-family: 'Crimson Text', Georgia, serif;
  padding: 1.5rem 1.5rem;
  overflow-x: hidden;
}

.poem {
  font-size: 1.1rem;
  line-height: 1.6;
  text-align: left;
  color: #5d4037;
  max-width: 520px;
  margin-bottom: 2rem;
}

.poem p {
  margin-bottom: 0.75rem;
}

.poem p:last-child {
  margin-bottom: 0;
}

.question {
  font-size: 2rem;
  font-weight: 700;
  color: #c62828;
  text-align: center;
  margin-bottom: 1.5rem;
}

.buttons {
  display: flex;
  gap: 2rem;
  align-items: center;
  justify-content: center;
}

.btn {
  font-family: 'Crimson Text', Georgia, serif;
  font-size: 1.15rem;
  font-weight: 600;
  padding: 0.85rem 2.5rem;
  border: none;
  border-radius: 50px;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

.btn-yes {
  background: linear-gradient(135deg, #e91e63, #c2185b);
  color: #fff;
  box-shadow: 0 4px 15px rgba(233, 30, 99, 0.35);
}

.btn-yes:hover {
  transform: scale(1.08);
  box-shadow: 0 6px 22px rgba(233, 30, 99, 0.5);
}

.btn-no {
  background: #f5f5f5;
  color: #888;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.2s, box-shadow 0.2s, top 0.4s ease-out, left 0.4s ease-out;
}

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

.btn-no.dodging {
  position: absolute;
  z-index: 1000;
}

.follow-up {
  font-size: 2rem;
  font-weight: 700;
  color: #c62828;
  text-align: center;
  animation: fadeInUp 0.6s ease-out;
}

.follow-up .sub {
  display: block;
  font-size: 1.2rem;
  font-weight: 400;
  font-style: italic;
  color: #8e3a59;
  margin-top: 0.75rem;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 600px) {
  .poem {
    font-size: 0.95rem;
    line-height: 1.5;
  }

  .question {
    font-size: 1.5rem;
  }

  .btn {
    font-size: 1rem;
    padding: 0.75rem 2rem;
  }

  .follow-up {
    font-size: 1.5rem;
  }

  .follow-up .sub {
    font-size: 1rem;
  }
}
