/* Monk Scroller — drop-in scroll progress widget
   The monk walks along a short, centered path (25%–75% of the viewport). */

#monk-scroller-track {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, rgba(20,16,12,0.0), rgba(20,16,12,0.55) 55%);
  z-index: 999999;
  pointer-events: none;
}

#monk-scroller-track::before {
  content: "";
  position: absolute;
  left: 25%;
  right: 25%;
  bottom: 5px;
  height: 2px;
  background: rgba(255, 217, 138, 0.28);
  border-radius: 2px;
}

#monk-scroller-track::after {
  content: "";
  position: absolute;
  left: 25%;
  bottom: 5px;
  height: 2px;
  /* JS sets --monk-progress as a fraction of the full viewport width */
  width: var(--monk-progress, 0%);
  background: linear-gradient(90deg, #b8763a, #e8c98a);
  border-radius: 2px;
  transition: width 0.05s linear;
}

#monk-scroller-thumb {
  position: absolute;
  bottom: 2px;
  width: 40px;
  height: 52px;
  transform: translateX(-50%);
  cursor: grab;
  pointer-events: auto;
  user-select: none;
  touch-action: none;
  filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35));
  transition: transform 0.08s ease;
}

/* JS rewrites transform when the monk faces left (scaleX(-1)),
   so hover only scales via the img to avoid clobbering the flip. */
#monk-scroller-thumb:hover img {
  transform: scale(1.05);
}

#monk-scroller-thumb img {
  width: 100%;
  height: 100%;
  display: block;
  pointer-events: none;
  transition: transform 0.12s ease;
}

#monk-scroller-thumb:active {
  cursor: grabbing;
}

#monk-scroller-thumb .monk-scroller-hint {
  position: absolute;
  bottom: 46px;
  left: 50%;
  transform: translateX(-50%);
  font: 10px/1.4 system-ui, sans-serif;
  color: #f0e2c8;
  background: rgba(0,0,0,0.55);
  padding: 2px 7px;
  border-radius: 9px;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.2s ease;
}

#monk-scroller-thumb:hover .monk-scroller-hint {
  opacity: 1;
}

@media (max-width: 480px) {
  #monk-scroller-thumb .monk-scroller-hint { display: none; }
}
