/* =========================================================
   MOBILE  —  frame vertical 9:16, base 405 × 720 px
   Activo cuando el viewport es < 768 px de ancho.
   ========================================================= */

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

html, body {
  width: 100%;
  height: 100%;

  /* Impide scroll fuera del frame en las franjas negras,
     pero NO deshabilita el zoom del usuario.             */
  overflow: hidden;

  /* Permite pinch-zoom y pan, pero no scroll de página   */
  touch-action: pan-x pan-y;

  background: #000;
}

/* ── El marco ──────────────────────────────────────────── */
#game-frame {
  position: absolute;
  left: 50%;
  top: 50%;

  width:  405px;
  height: 720px;

  transform: translate(-50%, -50%) scale(1);
  transform-origin: center center;

  background-image: url('fondoCelu.webp');
  background-size: contain;
  background-position: center;
  background-repeat: no-repeat;

  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', sans-serif;

  /* El overflow hidden aquí es lo que ancla los botones
     a la imagen: nada puede salir del frame.            */
  overflow: hidden;
  z-index: 10;

  /* Permite zoom, elimina el delay de doble-tap         */
  touch-action: manipulation;
}

/* ── Estructura interna ─────────────────────────────────── */
.page {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-end;
  padding-bottom: 8%;
  gap: 24px;
}

/* ── Fila de botones ───────────────────────────────────── */
.buttons-row {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
  width: 100%;
  padding: 0 24px;
}

/* ── Botones de calendario ─────────────────────────────── */
.cal-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  opacity: 0;
  padding: 11px 20px;
  background: #374151;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-size: 15px;
  font-weight: 500;
  transition: background 0.2s;
  cursor: pointer;
  white-space: nowrap;
}

.cal-btn:hover {
  background: #1f2937;
}