/* Answer reveal */

/* The payoff of the whole game, and it arrived as an instant display swap —
   indistinguishable from a box that had been sitting there the entire time.
   Rising into place is what makes it read as an answer being delivered.
   An animation rather than a transition because display:none -> flex has no
   state to interpolate from; this runs on the frame the element appears.
   The reduced-motion block in base.css caps animation-duration globally, so
   this needs no opt-out of its own. */
@keyframes answer-in {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: none; }
}

#answerBox {
  display: none; /* switched to flex by showAnswer() */
  animation: answer-in var(--dur-enter) var(--ease-out) both;
  align-items: center;
  gap: 20px;
  background: var(--surface-raised);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 24px;
  text-align: start;
}

#answerIcon {
  width: 84px;
  height: 84px;
  flex-shrink: 0;
  border-radius: var(--radius-sm);
  border: 2px solid var(--accent);
}

.answer-text { min-width: 0; }

#answerBox h2 {
  font-family: 'Rajdhani', sans-serif;
  font-size: var(--text-3xl);
  font-weight: 700;
  text-transform: uppercase;
  /* Tighter than the small caps elsewhere, not looser: at 2rem the letterforms
     already have all the separation they need. */
  letter-spacing: var(--tracking-caps-lg);
  color: var(--accent);
  margin: 0 0 6px;
}

#answerBox p {
  color: var(--text-muted);
  margin: 0;
  font-size: var(--text-lg);
}

@media (max-width: 640px) {
    #answerBox {
      padding: 16px;
      gap: 14px;
    }

    #answerIcon {
      width: 60px;
      height: 60px;
    }

    #answerBox h2 {
      font-size: var(--text-2xl);
    }
}
