/* Controles táctiles (feature movil). NO está enlazado en index.html todavía:
   al conectarlo, añade  <link rel="stylesheet" href="js/features/movil/movil.css" />  */
.movil { position: fixed; inset: 0; z-index: 6; pointer-events: none; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: none; }
.movil[hidden] { display: none; }

/* Zona para mirar: toda la mitad derecha, por debajo de los botones */
.movil-mirada { position: absolute; top: 0; right: 0; bottom: 0; left: 40%; pointer-events: auto; touch-action: none; }

/* Joystick: abajo a la izquierda, respetando las zonas seguras (muescas) */
.movil-joystick { --radio: 56px; position: absolute; left: calc(24px + env(safe-area-inset-left)); bottom: calc(24px + env(safe-area-inset-bottom));
  width: calc(var(--radio) * 2 + 24px); height: calc(var(--radio) * 2 + 24px); display: grid; place-items: center; pointer-events: auto; touch-action: none; }
.movil-joystick__base { position: relative; width: calc(var(--radio) * 2); height: calc(var(--radio) * 2); border-radius: 50%;
  background: rgba(10, 20, 45, 0.45); border: 2px solid rgba(188, 211, 245, 0.55); display: grid; place-items: center; }
.movil-joystick__palanca { width: calc(var(--radio) * 0.85); height: calc(var(--radio) * 0.85); border-radius: 50%;
  background: rgba(255, 210, 63, 0.75); border: 2px solid #fff; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.5); transition: transform 0.08s; }
.movil-joystick--activo .movil-joystick__palanca { transition: none; background: rgba(255, 210, 63, 0.95); }

/* Botones: abajo a la derecha, salto grande y el resto en dos filas */
.movil-botones { position: absolute; right: calc(20px + env(safe-area-inset-right)); bottom: calc(20px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px; pointer-events: none; }
.movil-botones__fila { display: flex; gap: 10px; }
.movil-boton { width: 54px; height: 54px; padding: 0; border-radius: 50%; display: grid; place-items: center; pointer-events: auto; touch-action: none;
  font: 700 1.15rem 'Fredoka', system-ui, sans-serif; color: #fff; background: rgba(10, 20, 45, 0.6); border: 2px solid rgba(188, 211, 245, 0.7); cursor: pointer; }
.movil-boton--grande { width: 76px; height: 76px; font-size: 1.8rem; background: rgba(47, 79, 166, 0.75); border-color: #fff; }
.movil-boton--activo { background: rgba(255, 210, 63, 0.85); color: #1b2340; border-color: #fff; }

/* Solo en pantallas con puntero táctil (por si se monta en un escritorio, que no se vea) */
@media (hover: hover) and (pointer: fine) { .movil[data-solo-tactil] { display: none; } }
