/* AppHunter's scrollbar stays trackless and only appears at the edge or while scrolling. */
html {
  scrollbar-width: thin;
  scrollbar-color: transparent transparent;
}

html.scrollbar-active,
html.scrollbar-hover,
html.scrollbar-active *,
html.scrollbar-hover * {
  scrollbar-color: #8b5cf6 transparent;
}

::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

::-webkit-scrollbar-track,
::-webkit-scrollbar-corner {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background-color: transparent;
  background-clip: padding-box;
  box-shadow: inset 0 0 0 1px transparent;
  transition: background-color 180ms ease, box-shadow 180ms ease;
}

html.scrollbar-active::-webkit-scrollbar-thumb,
html.scrollbar-hover::-webkit-scrollbar-thumb,
html.scrollbar-active *::-webkit-scrollbar-thumb,
html.scrollbar-hover *::-webkit-scrollbar-thumb {
  background-color: #8b5cf6;
  box-shadow: inset 0 0 0 1px rgba(20, 211, 202, 0.58);
}

@media (prefers-reduced-motion: reduce) {
  ::-webkit-scrollbar-thumb {
    transition: none;
  }
}
