/* V1.99: keep the match conclusion truly modal across pointer, keyboard and scroll input. */
html body.result-modal-open:not(.maintenance-mode) {
  overflow: hidden;
  overscroll-behavior: none;
}

html body.result-modal-open:not(.maintenance-mode) #appRoot[inert] {
  pointer-events: none;
  user-select: none;
  touch-action: none;
}

html body.result-modal-open:not(.maintenance-mode) #resultOverlay.result-overlay {
  pointer-events: auto;
  touch-action: pan-y;
  overscroll-behavior: contain;
}

@media (prefers-reduced-motion: reduce) {
  html body.result-modal-open:not(.maintenance-mode) #appRoot[inert] {
    transition: none !important;
  }
}

@media (forced-colors: active) {
  html body.result-modal-open:not(.maintenance-mode) #resultOverlay.result-overlay {
    border: 2px solid CanvasText !important;
  }
}
