/* ==========================================================================
   Master Coder — premium scrollbar
   Shared by every page. A slim gold pill floating over a glass track.
   ========================================================================== */

/* Dark native controls everywhere, so any browser-drawn scrollbar or picker
   matches the theme instead of flashing white. */
html {
  color-scheme: dark;
}

/* Standard properties (Chrome/Edge 121+, Firefox). Applying them to every
   element guarantees a slim gold bar even where the OS draws its own
   Windows 11 Fluent scrollbar, and stops any element reverting to white.
   These take precedence over the ::-webkit-* rules below in Chromium. */
* {
  scrollbar-width: thin;
  scrollbar-color: #C9A86A transparent;
}

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

::-webkit-scrollbar-track {
  background: transparent;
  border-radius: 999px;
}

::-webkit-scrollbar-track:hover {
  background: rgba(255, 255, 255, 0.025);
}

::-webkit-scrollbar-thumb {
  border: 3px solid transparent;
  border-radius: 999px;
  background-image: linear-gradient(180deg, #E9D19C 0%, #C9A86A 45%, #A9884C 100%);
  background-clip: padding-box;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.45), inset 0 -1px 0 rgba(0, 0, 0, 0.28);
}

::-webkit-scrollbar-thumb:hover {
  background-image: linear-gradient(180deg, #F5E1B0 0%, #DCC089 45%, #B9975A 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6), 0 0 12px rgba(201, 168, 106, 0.5);
}

::-webkit-scrollbar-thumb:active {
  background-image: linear-gradient(180deg, #E3C88F 0%, #C4A265 45%, #A18045 100%);
}

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

::-webkit-scrollbar-button {
  display: none;
  width: 0;
  height: 0;
}
