.controls-hint {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(22, 33, 62, 0.85);
  backdrop-filter: blur(8px);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  font-size: 0.75rem;
  color: #94a3b8;
  pointer-events: none;
  white-space: nowrap;
  max-width: 92vw;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Virtual joystick for touch devices */
.joystick {
  display: none;
  position: absolute;
  bottom: 2rem;
  left: 2rem;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: rgba(22, 33, 62, 0.5);
  border: 2px solid rgba(15, 52, 96, 0.8);
  pointer-events: auto;
  z-index: 15;
  touch-action: none;
}

.joystick-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 50px;
  height: 50px;
  margin: -25px 0 0 -25px;
  border-radius: 50%;
  background: rgba(26, 90, 184, 0.9);
  border: 2px solid #fff;
  pointer-events: none;
}

.vertical-pad {
  display: none;
  position: absolute;
  bottom: 2rem;
  right: 2rem;
  flex-direction: column;
  gap: 0.6rem;
  z-index: 15;
  pointer-events: auto;
}

.vert-btn {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(22, 33, 62, 0.7);
  border: 2px solid rgba(15, 52, 96, 0.8);
  color: #e0e0e0;
  font-size: 1.4rem;
  line-height: 1;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vert-btn.pressed {
  background: rgba(26, 90, 184, 0.85);
}

.touch-mode .vertical-pad { display: flex; }
.touch-mode .joystick { display: block; }
/* On touch devices we don't need a "click to explore" prompt — but we
   still want it visible while a scan is downloading so the user gets
   feedback. It auto-hides when loading completes. */
.touch-mode .click-prompt:not(.loading) { display: none !important; }

