.answer-deck[data-retry] #answer-message {
  border-inline-start: 3px solid currentColor;
  padding-inline-start: .65em;
}

.answer-deck[data-retry] .input-wrap > span {
  color: var(--danger, #99401e);
}

@keyframes retry-input {
  20% { transform: translateX(-3px); }
  55% { transform: translateX(2px); }
  80% { transform: translateX(-1px); }
}

@keyframes retry-message {
  from { background-color: color-mix(in srgb, currentColor 15%, transparent); }
  to { background-color: transparent; }
}

@media (prefers-reduced-motion: no-preference) {
  :root:not([data-motion="reduced"]) .answer-deck[data-retry] .input-wrap {
    animation: retry-input 240ms ease-out;
  }
  :root:not([data-motion="reduced"]) .answer-deck[data-retry] #answer-message {
    animation: retry-message 460ms ease-out;
  }
}
