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

#contenedor {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

canvas {
  display: block;
  touch-action: none;
  outline: none;
}

#entradaNombre {
  position: fixed;
  display: none;
  box-sizing: border-box;
  border: 4px solid #1b1b2a;
  border-radius: 14px;
  padding: 4px 14px;
  background: #fffbe8;
  color: #1b1b2a;
  font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
  font-weight: bold;
  text-align: center;
  outline: none;
  box-shadow: 0 6px 0 rgba(0, 0, 0, .35);
  touch-action: auto;
  -webkit-user-select: text;
  user-select: text;
}

/* Aviso "gira tu teléfono": solo en celulares de pie */
#girar {
  position: fixed;
  inset: 0;
  z-index: 10;
  display: none;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 24px;
  background: #120d1a;
  color: #fff;
  font-family: "Arial Black", "Trebuchet MS", Verdana, sans-serif;
  text-align: center;
}
#girar p { margin: 12px 0 0; font-size: 24px; color: #ffd23f; }
#girar small { font-family: "Trebuchet MS", Verdana, sans-serif; font-size: 15px; opacity: .8; max-width: 260px; }
#girar .telefono { transform-origin: 60px 60px; animation: girar 2.4s ease-in-out infinite; }
@keyframes girar {
  0%, 25% { transform: rotate(0deg); }
  55%, 85% { transform: rotate(-90deg); }
  100% { transform: rotate(0deg); }
}
@media (orientation: portrait) and (pointer: coarse) and (max-width: 700px) {
  #girar { display: flex; }
}
@media (prefers-reduced-motion: reduce) {
  #girar .telefono { animation: none; transform: rotate(-90deg); }
}
