/* ============================================================
   base.css — Reset, lienzo 16:9 escalable y overlay de rotación
   Compartido por todas las pantallas del juego Concéntrese
   ============================================================ */

* { box-sizing: border-box; }

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
  background: #0a0204;
  overflow: hidden;
  font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* ── Lienzo fijo 16:9 centrado, escala con el viewport ──
   16:9 → ancho = min(100vw, 100vh * 16/9) = min(100vw, 177.78vh) */
.stage {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(100vw, 177.78vh);
  height: min(56.25vw, 100vh);
  background-repeat: no-repeat;
  background-position: center;
  background-size: 100% 100%;
  overflow: hidden;
}

/* Viewport dinámico: evita que la barra de direcciones del navegador móvil
   recorte el lienzo. El bloque de arriba (vh/vw) queda como fallback. */
@supports (height: 100dvh) {
  .stage {
    width: min(100dvw, 177.78dvh);
    height: min(56.25dvw, 100dvh);
  }
}

/* Botón-imagen genérico superpuesto (JUGAR / COMENZAR / VOLVER) */
.btn-img {
  position: absolute;
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  transition: transform 0.2s ease, filter 0.2s ease;
}
.btn-img img { width: 100%; height: auto; display: block; }
.btn-img:hover {
  transform: scale(1.06);
  filter: brightness(1.12) drop-shadow(0 0 14px rgba(255, 140, 0, 0.75));
}
.btn-img:active { transform: scale(0.96); filter: brightness(0.9); }

/* ============================================================
   Overlay: gira tu dispositivo (portrait en móvil/tablet)
   ============================================================ */
.rotate-overlay {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(4, 10, 22, 0.82);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
@media (min-width: 1024px) {
  .rotate-overlay { display: none !important; }
}
.rotate-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: clamp(1rem, 4vw, 2rem);
  text-align: center;
  color: #fff;
  padding: 2rem;
}
.rotate-phone-icon {
  font-size: clamp(3.5rem, 18vw, 6rem);
  animation: hint-rotate 2.2s ease-in-out infinite;
}
@keyframes hint-rotate {
  0%   { transform: rotate(0deg);  opacity: 1; }
  35%  { transform: rotate(90deg); opacity: 1; }
  60%  { transform: rotate(90deg); opacity: 0.7; }
  80%, 100% { transform: rotate(0deg); opacity: 1; }
}
.rotate-msg {
  font-size: clamp(1rem, 4.5vw, 1.5rem);
  line-height: 1.65;
  margin: 0;
  font-weight: 700;
  letter-spacing: 0.5px;
}
.rotate-msg strong { color: #f90; }
