/* Hide native scrollbar */
html, body { scrollbar-width: none; -ms-overflow-style: none; }
body::-webkit-scrollbar { display: none; }

/* Fixed container */
#evolution-bar {
  position: fixed;
  top: 0;
  right: 5px;
  height: 100vh;
  width: 100px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

#evolution-bar.visible {
  opacity: 1;
  visibility: visible;
  pointer-events: all;
}

/* Track - Zigzag pattern */
#evolution-track {
  position: relative;
  width: 35px;
  height: 85%;
  background: linear-gradient(180deg, rgba(255,255,255,0.6) 0%, rgba(255,255,255,0.4) 100%);
  overflow: visible;
  pointer-events: all;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
  backdrop-filter: blur(5px);
  clip-path: polygon(
    0% 0%, 100% 0%,
    80% 5%, 20% 10%, 80% 15%, 20% 20%, 80% 25%, 20% 30%,
    80% 35%, 20% 40%, 80% 45%, 20% 50%, 80% 55%, 20% 60%,
    80% 65%, 20% 70%, 80% 75%, 20% 80%, 80% 85%, 20% 90%,
    80% 95%, 50% 100%,
    50% 100%, 20% 95%, 80% 90%, 20% 85%, 80% 80%, 20% 75%,
    80% 70%, 20% 65%, 80% 60%, 20% 55%, 80% 50%, 20% 45%,
    80% 40%, 20% 35%, 80% 30%, 20% 25%, 80% 20%, 20% 15%,
    80% 10%, 20% 5%, 0% 0%
  );
}

/* Fill - Zigzag pattern */
#evolution-fill {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, #8B7355 0%, #A68A64 50%, #C9A882 100%);
  transition: height 0.25s ease-out;
  box-shadow: 0 0 12px rgba(201, 168, 130, 0.4);
  clip-path: polygon(
    0% 0%, 100% 0%,
    80% 5%, 20% 10%, 80% 15%, 20% 20%, 80% 25%, 20% 30%,
    80% 35%, 20% 40%, 80% 45%, 20% 50%, 80% 55%, 20% 60%,
    80% 65%, 20% 70%, 80% 75%, 20% 80%, 80% 85%, 20% 90%,
    80% 95%, 50% 100%,
    50% 100%, 20% 95%, 80% 90%, 20% 85%, 80% 80%, 20% 75%,
    80% 70%, 20% 65%, 80% 60%, 20% 55%, 80% 50%, 20% 45%,
    80% 40%, 20% 35%, 80% 30%, 20% 25%, 80% 20%, 20% 15%,
    80% 10%, 20% 5%, 0% 0%
  );
}

/* Thumb icon */
#evolution-thumb {
  position: absolute;
  left: 50%;
  transform: translate(-50%, -50%);
  top: 0;
  width: 40px;
  height: 40px;
  background: #8B7355;
  border-radius: 50%;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  z-index: 9999;
  filter: drop-shadow(0 4px 8px rgba(0,0,0,0.25));
  transition: top 0.1s ease, transform 0.15s ease, filter 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.2rem;
  font-weight: bold;
  border: 4px solid white;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  pointer-events: all;
}
#evolution-thumb:active {
  cursor: grabbing;
  transform: translate(-50%, -50%) scale(1.1);
}

/* Glow effects */
#evolution-bar:hover #evolution-fill {
  box-shadow: 0 0 16px rgba(201, 168, 130, 0.6),
              0 0 8px rgba(255, 255, 255, 0.4);
}

#evolution-bar:hover #evolution-thumb {
  filter: drop-shadow(0 6px 12px rgba(0,0,0,0.3));
  transform: translate(-50%, -60%) scale(1.05);
}
