:root {
  color-scheme: dark;
}

body {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Helvetica, Arial, sans-serif;
  background: radial-gradient(circle at 15% -5%, rgba(239, 68, 68, 0.14), transparent 35%),
    radial-gradient(circle at 90% 10%, rgba(37, 99, 235, 0.12), transparent 30%),
    #030712;
}

.reveal {
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.in {
  opacity: 1;
  transform: translateY(0);
}

.dot-loader::after {
  content: "";
  animation: dots 1.2s steps(4, end) infinite;
}

@keyframes dots {
  0% { content: ""; }
  25% { content: "."; }
  50% { content: ".."; }
  75% { content: "..."; }
  100% { content: ""; }
}

.phase-panel {
  transition: opacity 400ms ease, transform 400ms ease;
}

.phase-panel.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.99);
  pointer-events: none;
  position: absolute;
  left: -9999px;
}

#phase-reveal {
  background: radial-gradient(circle at center, rgba(255,255,255,0.16), rgba(17,24,39,0.72));
}

.confetti {
  position: fixed;
  width: 8px;
  height: 14px;
  top: -20px;
  z-index: 90;
  opacity: 0.9;
  animation: fall linear forwards;
}

@keyframes fall {
  to {
    transform: translateY(110vh) rotate(540deg);
    opacity: 0;
  }
}

.answer-btn {
  width: 100%;
  text-align: left;
  border-radius: 0.9rem;
  border: 1px solid rgba(75, 85, 99, 0.7);
  background: rgba(17, 24, 39, 0.6);
  padding: 0.9rem 1rem;
  transition: border-color 180ms ease, transform 160ms ease, background 180ms ease;
}

.answer-btn:hover {
  border-color: rgba(156, 163, 175, 0.9);
  transform: translateY(-1px);
}

.answer-btn.selected {
  border-color: rgba(239, 68, 68, 0.8);
  background: rgba(239, 68, 68, 0.12);
}
