/* Optional custom tweaks */

#shaft {
  /* You can add subtle noise or texture here later */
}

#cart {
  /* Glow effect override if you want it stronger */
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.8);
}
@keyframes pulseGlow {
  0% { box-shadow: 0 0 0px rgba(255, 200, 50, 0.0); }
  50% { box-shadow: 0 0 12px rgba(255, 200, 50, 0.7); }
  100% { box-shadow: 0 0 0px rgba(255, 200, 50, 0.0); }
}

.pulse-alert {
  animation: pulseGlow 1.5s ease-in-out infinite;
}

@keyframes logGlowFade {
  0% {
    background-color: rgba(255, 200, 50, 0.25);
  }
  100% {
    background-color: transparent;
  }
}

.log-glow {
  animation: logGlowFade 3.2s ease-out forwards;
}

/* --------------------------------------------- */
/* DESKTOP SCROLLBAR (md and up)                 */
/* --------------------------------------------- */
@media (min-width: 768px) {
  .log-scroll::-webkit-scrollbar {
    width: 10px;
  }

  .log-scroll::-webkit-scrollbar-track {
    background: rgba(30, 41, 59, 0.6); /* slate-800-ish */
    border-radius: 8px;
  }

  .log-scroll::-webkit-scrollbar-thumb {
    background: rgba(251, 191, 36, 0.6); /* amber-400-ish */
    border-radius: 8px;
  }

  .log-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(251, 191, 36, 0.85);
  }
}

/* --------------------------------------------- */
/* MOBILE SCROLLBAR (below md)                   */
/* --------------------------------------------- */
@media (max-width: 767px) {
  .log-scroll::-webkit-scrollbar {
    width: 6px;
  }

  .log-scroll::-webkit-scrollbar-track {
    background: transparent;
  }

  .log-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.25); /* subtle white */
    border-radius: 6px;
  }

  .log-scroll::-webkit-scrollbar-thumb:hover {
    background: rgba(255, 255, 255, 0.4);
  }
}

.idle-return {
  background: rgba(96, 165, 250, 0.15); /* soft blue highlight */
  border-left: 3px solid rgb(96, 165, 250); /* blue-400 */
  padding-left: 6px;
  animation: idleFlash 1.2s ease-out forwards;
}

@keyframes idleFlash {
  0% { background: rgba(96, 165, 250, 0.45); }
  100% { background: rgba(96, 165, 250, 0.15); }
}

/* rock background */
#bg-layer-1, #bg-layer-2, #bg-layer-3 {
  position: fixed;
  width: 100%;
  height: 300vh;
  background-repeat: repeat-y;
  background-size: cover;
  pointer-events: none;
  z-index: -10;
  opacity: 0.4;
}

#bg-layer-1 {
  background-image: url('rock1.png');
  z-index: -30;
  top: 0;
}
#bg-layer-2 {
  background-image: url('rock2.png');
  z-index: -20;
  opacity: 0.3;
  top:250vh;
}
#bg-layer-3 {
  background-image: url('rock3.png');
  z-index: -10;
  opacity: 0.2;
  top: 0;
  height: 100vh;
}

:root {
  --bg-color: #0f0f0f;
  --accent-color: #fbbf24;
}

body {
  background-color: var(--bg-color);
  transition: background-color 0.5s linear;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  pointer-events: none;
  animation: floatUp 5s linear forwards;
}

@keyframes floatUp {
  from { transform: translateY(0) scale(1); opacity: 0.9; }
  to   { transform: translateY(-680px) scale(0.5); opacity: 0; }
}

@keyframes cartShake {
  0% { transform: translateX(0); }
  25% { transform: translateX(-2px); }
  50% { transform: translateX(2px); }
  75% { transform: translateX(-1px); }
  100% { transform: translateX(0); }
}

.cart-shake {
  animation: cartShake 0.15s infinite;
}

