/* Botón flotante "ARCADE" (ya no se usa: el Arcade se abre desde la portada) y transición pixelada
   hacia/desde el Arcade AEMATEC. Los carga assets/js/arcade-launcher.js y arcade.html;
   no hay que agregar este archivo a mano en cada página. */

.arcade-fab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 40;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 16px;
  background: #3b5dc9;
  color: #f4f4f4;
  border: 0;
  cursor: pointer;
  font-family: 'Press Start 2P', monospace;
  font-size: 10px;
  line-height: 1;
  box-shadow:
    0 -4px 0 0 #0f1020, 0 4px 0 0 #0f1020, -4px 0 0 0 #0f1020, 4px 0 0 0 #0f1020,
    inset -4px -4px 0 0 rgba(0, 0, 0, .3), inset 4px 4px 0 0 rgba(255, 255, 255, .22);
}
.arcade-fab:hover { filter: brightness(1.15); }
.arcade-fab:active {
  transform: translateY(2px);
  box-shadow: 0 -4px 0 0 #0f1020, 0 4px 0 0 #0f1020, -4px 0 0 0 #0f1020, 4px 0 0 0 #0f1020,
    inset 4px 4px 0 0 rgba(0, 0, 0, .3);
}
@media (max-width: 640px) {
  .arcade-fab { right: 12px; bottom: 12px; padding: 10px 12px; font-size: 9px; }
}

.arcade-pixel-overlay {
  position: fixed;
  inset: 0;
  z-index: 999;
  display: grid;
  grid-template-columns: repeat(var(--cols), 1fr);
  grid-template-rows: repeat(var(--rows), 1fr);
  pointer-events: none;
}
.arcade-pixel-overlay span {
  background: #1a1c2c;
  opacity: 0;
  transform: scale(0);
  animation: arcade-pixel-in .35s steps(3) forwards;
}
@keyframes arcade-pixel-in {
  to { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .arcade-pixel-overlay { display: none; }
}
