#mobile-controls {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1200;
  user-select: none;
  -webkit-user-select: none;
  touch-action: none;
}

#mobile-controls .mc-left,
#mobile-controls .mc-right {
  position: absolute;
  bottom: 20px;
  pointer-events: none;
}

#mobile-controls .mc-left {
  left: 20px;
}

#mobile-controls .mc-right {
  right: 20px;
}

#mobile-controls .mc-joystick-zone {
  width: 150px;
  height: 150px;
  pointer-events: auto;
  position: relative;
}

#mobile-controls .mc-joystick-base {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 96px;
  height: 96px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  transition: transform 0.15s ease, background 0.15s ease;
}

#mobile-controls .mc-joystick-base.is-active {
  background: rgba(255, 255, 255, 0.12);
  transform: translate(-50%, -50%) scale(1.04);
}

#mobile-controls .mc-joystick-stick {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 44px;
  height: 44px;
  transform: translate(0, 0);
  margin-left: -22px;
  margin-top: -22px;
  border-radius: 50%;
  background: rgba(255, 214, 90, 0.95);
  box-shadow: 0 8px 24px rgba(255, 184, 0, 0.25);
}

#mobile-controls .mc-action-button {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.08);
  color: white;
  backdrop-filter: blur(10px);
  pointer-events: auto;
  font-weight: 700;
  font-size: 14px;
  transition: transform 0.15s ease, background 0.15s ease, opacity 0.15s ease;
  opacity: 0.55;
}

#mobile-controls .mc-action-button.is-enabled {
  opacity: 1;
  background: rgba(255, 196, 80, 0.2);
}

#mobile-controls .mc-action-button.is-pressed {
  transform: scale(0.94);
}

#mobile-controls .mc-action-button:disabled {
  cursor: default;
}

@media (min-width: 901px) and (pointer: fine) {
  #mobile-controls {
    display: none !important;
  }
}