/* css/views.css — view switching, question block, shared buttons */
.view {
  opacity: 0;
  transition: opacity 0.6s ease;
}

.view.is-active {
  opacity: 1;
}

/* The hidden attribute must beat the views' own display: flex rules. */
.view[hidden] {
  display: none !important;
}

.question {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.question-caption {
  font-family: var(--font-display);
  font-style: italic;
  font-size: clamp(1.1rem, 3vw, 1.5rem);
  margin: 0;
}

.question-buttons {
  display: flex;
  gap: 3rem;
  align-items: center;
}

.btn {
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 1rem;
  padding: 0.75rem 1.9rem;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

.btn-primary {
  background: var(--rose);
  color: var(--cream);
  box-shadow: 0 10px 24px var(--rose-soft);
}

.btn-primary:hover {
  box-shadow: 0 14px 30px rgba(139, 47, 74, 0.22);
}

.btn-ghost {
  background: rgba(255, 255, 255, 0.55);
  color: var(--rose);
  border-color: rgba(139, 47, 74, 0.25);
}

/* The runaway "no" button, once it has started dodging */
.btn.is-dodging {
  position: fixed;
  z-index: 10;
  margin: 0;
  transition: left 0.18s ease-out, top 0.18s ease-out;
}
