@font-face {
  font-family: 'Press Start 2P';
  src: url('../fonts/PressStart2P.woff2') format('woff2');
  font-display: block;
}

html, body {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  touch-action: none;
  overscroll-behavior: none;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
  -webkit-tap-highlight-color: transparent;
}

/* Fondo de estrellas para los espacios que sobran alrededor del juego (iPad) */
body {
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #07040f;
  background-image:
    radial-gradient(1px 1px at 12% 18%, #ffffffcc 50%, transparent 51%),
    radial-gradient(1px 1px at 72% 34%, #ffe9a8cc 50%, transparent 51%),
    radial-gradient(1px 1px at 38% 76%, #a8d8ffcc 50%, transparent 51%),
    radial-gradient(1px 1px at 88% 82%, #ffffffaa 50%, transparent 51%),
    radial-gradient(2px 2px at 55% 12%, #ffc2e8cc 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 52%, #ffffff88 50%, transparent 51%),
    radial-gradient(1px 1px at 64% 62%, #ffffff99 50%, transparent 51%);
  background-size: 180px 180px;
}

canvas {
  display: block;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  touch-action: none;
  box-shadow: 0 0 40px rgba(124, 58, 237, 0.35);
}

#rotate {
  position: fixed;
  inset: 0;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: #07040f;
  color: #ffffff;
  font-family: 'Press Start 2P', monospace;
  font-size: 16px;
  line-height: 1.9;
  text-align: center;
  z-index: 10;
}

#rotate .icon {
  font-size: 56px;
  color: #ff5fa2;
  animation: girar 1.6s ease-in-out infinite;
}

@keyframes girar {
  0%, 30% { transform: rotate(0deg); }
  70%, 100% { transform: rotate(90deg); }
}

#loading {
  position: fixed;
  color: #b388ff;
  font-family: monospace;
  font-size: 14px;
  letter-spacing: 2px;
}
