.athar-scroll-controller {
  position: fixed;
  right: calc(clamp(14px, 2.4vw, 34px) + env(safe-area-inset-right, 0px));
  bottom: calc(clamp(14px, 2.4vw, 30px) + env(safe-area-inset-bottom, 0px));
  z-index: 85;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  padding: 4px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #6d1423;
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  transition: transform 180ms ease;
}

.athar-scroll-controller__branch {
  display: block;
  width: 44px;
  height: 110px;
  overflow: visible;
  filter: drop-shadow(0 2px 3px rgba(34, 6, 11, 0.16));
}

.athar-scroll-controller__reveal {
  transform: translateY(var(--athar-scroll-empty, 160px));
  transition: transform 100ms linear;
}

@media (hover: hover) {
  .athar-scroll-controller:hover {
    transform: translateY(-2px);
  }
}

.athar-scroll-controller:active {
  transform: translateY(-1px) scale(0.96);
}

.athar-scroll-controller:focus-visible {
  outline: 2px solid #c5a059;
  outline-offset: 4px;
  background: rgba(255, 253, 249, 0.16);
}

@media (max-width: 600px) {
  .athar-scroll-controller {
    width: 46px;
  }

  .athar-scroll-controller__branch {
    width: 38px;
    height: 95px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .athar-scroll-controller,
  .athar-scroll-controller__reveal {
    transition: none;
  }
}

@media print {
  .athar-scroll-controller {
    display: none;
  }
}
