#touch-hint {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, 100px);
  z-index: 50;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.8s ease;
}

#touch-hint img {
  width: 120px;
  height: auto;
  display: block;
  filter: invert(1) brightness(2);
  transform: scale(1) translateZ(0);
  transition: transform 0.15s ease, opacity 0.8s ease;
  will-change: transform;
}

#touch-hint.tap img {
  animation: touchTap 0.45s ease-in-out;
}

#touch-hint.fade-out {
  opacity: 0;
}

@keyframes touchTap {
  0% { transform: scale(1); }
  35% { transform: scale(0.78); }
  65% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

/* Desktop hand cursor that follows the mouse over the clock */
#hand-pointer {
  position: fixed;
  z-index: 40;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease, transform 0.15s ease;
  transform: translate(-50%, -50%) scale(1);
}

#hand-pointer-icon {
  display: flex;
  align-items: center;
  justify-content: center;
}

#hand-pointer-icon img {
  width: 72px;
  height: auto;
  display: block;
  filter: invert(1) brightness(2);
  transform: scale(1) translateZ(0);
  will-change: transform;
}

#hand-pointer.tap #hand-pointer-icon img,
#hand-pointer.tap #hand-pointer-icon svg {
  animation: touchTap 0.45s ease-in-out;
}

#hand-pointer-text {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  margin-top: 12px;
  background: rgba(0, 0, 0, 0.7);
  color: #fff;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: 0.05em;
  white-space: nowrap;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5);
}

#hand-pointer-text.show {
  opacity: 1;
}

/* Fade out the custom hand pointer whenever the global cursor is hidden */
body.cursor-hidden #hand-pointer {
  opacity: 0;
}