html {
  scrollbar-width: none;
}

html::-webkit-scrollbar,
body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  -ms-overflow-style: none;
}

.site-scrollbar {
  position: fixed;
  top: clamp(12px, 2.4vh, 22px);
  right: 7px;
  bottom: clamp(12px, 2.4vh, 22px);
  z-index: 9998;
  width: 10px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 240ms ease;
}

.site-scrollbar.is-disabled {
  display: none;
}

body.site-scrollbar-visible .site-scrollbar,
body.site-scrollbar-dragging .site-scrollbar {
  opacity: 1;
  pointer-events: auto;
}

.site-scrollbar__thumb {
  position: absolute;
  top: 0;
  right: 0;
  width: 6px;
  min-height: 44px;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 179, 198, 0.72), rgba(126, 200, 227, 0.8));
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.16);
  cursor: grab;
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  transition:
    width 180ms ease,
    background 180ms ease,
    box-shadow 180ms ease;
}

body.site-scrollbar-visible .site-scrollbar__thumb:hover,
body.site-scrollbar-dragging .site-scrollbar__thumb {
  width: 8px;
  background: linear-gradient(180deg, rgba(255, 153, 184, 0.9), rgba(91, 181, 216, 0.92));
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.22);
}

body.site-scrollbar-dragging .site-scrollbar__thumb {
  cursor: grabbing;
}

@media screen and (max-width: 480px) {
  .site-scrollbar {
    right: 4px;
    width: 8px;
  }

  .site-scrollbar__thumb {
    width: 4px;
    min-height: 38px;
  }

  body.site-scrollbar-visible .site-scrollbar__thumb:hover,
  body.site-scrollbar-dragging .site-scrollbar__thumb {
    width: 6px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-scrollbar,
  .site-scrollbar__thumb {
    transition: none;
  }
}
