/* History Is Told Games: conservative accessibility refinement layer.
   Loaded ONLY with existing Games assets or on hit_game posts.
   No layout changes to board engines or site-wide navigation. */
:is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(button,a,input,select,textarea,summary,[role="button"],[tabindex="0"]):focus-visible {
  outline: 3px solid #17618e !important;
  outline-offset: 3px !important;
}
:is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(input[type="radio"],input[type="checkbox"]):focus-visible {
  outline: 3px solid #17618e !important;
  outline-offset: 3px !important;
}
/* Radio cards can visually hide the native input: preserve visible keyboard focus. */
.hitg-game :is(.hitg-answer-option,.hitg-earlier-option):focus-within {
  outline: 3px solid #17618e;
  outline-offset: 3px;
}
:is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(img,video,svg) {
  max-width: 100%;
}
:is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(.hitg-stage,.hitg-stage > *, .hitg-card,.hitg-rpg-choices) {
  min-width: 0;
}
:is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(h1,h2,h3,h4,p,label,button,summary) {
  overflow-wrap: break-word;
}
/* Movement preferences: do not suppress keyboard focus, scores, timer values or game state. */
@media(prefers-reduced-motion:reduce){
  :is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) *,
  :is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) *::before,
  :is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
@media(forced-colors:active){
  :is(.hitg-game,.hitg-games-browser,.hitg-k26,.hitg-mini) :is(button,a,input,select,textarea,summary):focus-visible {
    outline: 3px solid Highlight !important;
  }
  .hitg-game :is(.hitg-answer-option,.hitg-earlier-option):has(input:checked) {
    outline: 2px solid Highlight !important;
    outline-offset: -2px;
  }
}
@media(prefers-contrast:more){
  .hitg-game :is(.hitg-answer-option,.hitg-earlier-option,.hitg-button) {
    border-width: 2px;
  }
}
