/* Sonar Panic — el encaje del lienzo.
   Toda la interfaz se dibuja dentro del canvas; el CSS solo lo centra y lo
   escala conservando la proporción 9:16. */

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html,
body {
  height: 100%;
  background: #000;
  color: #9fb4cc;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  overflow: hidden;
  overscroll-behavior: none;
}

/* La pantalla entera: 100dvh sigue a la barra de direcciones del móvil. Sin
   gestos de scroll: un dedo en mitad de la partida no mueve la página. */
#escena {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100vh;
  height: 100dvh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right)
           env(safe-area-inset-bottom) env(safe-area-inset-left);
  touch-action: none;
}

/* El mayor 9:16 que cabe. */
#lienzo {
  display: block;
  height: min(100%, calc(100vw * 16 / 9));
  aspect-ratio: 9 / 16;
  max-width: 100%;
  background: #000;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  -webkit-tap-highlight-color: transparent;
  /* Una línea tenue marca el borde en escritorio, donde hay bandas. */
  outline: 1px solid #0c1a22;
}

.aviso {
  position: fixed;
  inset: auto 0 40% 0;
  text-align: center;
}
