/* Touch controls: legacy styling for #touch-joystick's original base+knob markup. The current
   TouchControls (see src/touch-controls.js) rebuilds #touch-joystick as a 3x3 button grid
   instead -- see #touch-joystick in css/mobile-layout.css for its actual current styling. */

.touch-control {
  position: fixed;
  z-index: 500;
  touch-action: none;
  -webkit-user-select: none;
  user-select: none;
}

#touch-joystick {
  left: 28px;
  bottom: 28px;
}

.touch-joystick-base {
  position: relative;
  width: 112px;
  height: 112px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  border: 2px solid rgba(255, 255, 255, 0.25);
}

.touch-joystick-arrows {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.touch-joystick-arrows polygon {
  fill: rgba(255, 255, 255, 0.35);
}

.touch-joystick-knob {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 48px;
  height: 48px;
  margin-left: -24px;
  margin-top: -24px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: 2px solid rgba(255, 255, 255, 0.65);
  pointer-events: none;
}

