/* Pointer input and programmatic focus must not draw a border around the page
   or Unity canvas. Keep focus itself so navigation and game input still work. */
#game,
#game:focus,
#game:focus-visible,
#collection:focus,
#update-list:focus,
dialog:focus,
[tabindex="-1"]:focus {
  outline: none;
}

/* Retain each page's existing :focus-visible indicator on keyboard controls. */
:focus:not(:focus-visible) {
  outline: none;
}

:where(a, button, canvas, [tabindex]) {
  -webkit-tap-highlight-color: transparent;
}
