html {
  scrollbar-width: none;
}

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

.liquid-scrollbar {
  position: fixed;
  z-index: 8990;
  top: 24px;
  right: 10px;
  bottom: 24px;
  width: 18px;
  opacity: .68;
  cursor: pointer;
  transition: opacity .25s ease;
  touch-action: none;
  user-select: none;
}

.liquid-scrollbar:hover,
.liquid-scrollbar.dragging {
  opacity: .92;
}

.liquid-scrollbar i {
  position: absolute;
  top: 0;
  right: 3px;
  width: 8px;
  min-height: 72px;
  height: var(--thumb-height, 18%);
  transform: translate3d(0, var(--thumb-y, 0), 0);
  border: 1px solid rgba(255, 255, 255, .46);
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(255, 255, 255, .08), rgba(255, 255, 255, .34), rgba(255, 255, 255, .07));
  box-shadow: inset 0 0 7px rgba(255, 255, 255, .28), 0 2px 5px rgba(0, 0, 0, .22), 0 5px 16px rgba(0, 0, 0, .20);
  backdrop-filter: blur(10px) saturate(1.35);
  -webkit-backdrop-filter: blur(10px) saturate(1.35);
  cursor: grab;
  transition: height .2s ease, background .2s ease;
  touch-action: none;
}

.liquid-scrollbar.dragging i {
  cursor: grabbing;
  background: linear-gradient(90deg, rgba(255, 255, 255, .16), rgba(255, 255, 255, .5), rgba(255, 255, 255, .13));
}

html.scrollbar-dragging,
html.scrollbar-dragging * {
  user-select: none !important;
}

html.scrollbar-dragging {
  scroll-behavior: auto !important;
}

.page-rail {
  display: none;
}

@media (max-width: 800px) {
  .liquid-scrollbar {
    top: 16px;
    right: 4px;
    bottom: 16px;
    width: 14px;
  }

  .liquid-scrollbar i {
    right: 3px;
    width: 6px;
    min-height: 58px;
  }
}
