/* ==========================================================
   ALBARRACÍN RETRO ARCADE 1984 — ESTILOS OFICIALES
   Inspiración: Atari 2600, Arcade Clásico 1980-1985, 8-Bit CRT
   ========================================================== */

/* Tipografía Retro Pixel */
@import url('https://fonts.googleapis.com/css2?family=Press+Start+2P&family=VT323&family=Orbitron:wght@700;900&display=swap');

:root {
  --arcade-bg: #07090e;
  --arcade-cabinet: #10131c;
  --arcade-bezel: #1b2030;
  --arcade-screen-bg: #040608;
  --arcade-red: #ff2a2a;
  --arcade-red-glow: rgba(255, 42, 42, 0.45);
  --arcade-yellow: #ffd800;
  --arcade-yellow-glow: rgba(255, 216, 0, 0.45);
  --arcade-green: #39ff14;
  --arcade-green-glow: rgba(57, 255, 20, 0.45);
  --arcade-cyan: #00e5ff;
  --arcade-cyan-glow: rgba(0, 229, 255, 0.45);
  --arcade-orange: #ff6e00;
  --arcade-white: #f5f5f7;
  --arcade-font-pixel: 'Press Start 2P', 'Courier New', monospace;
  --arcade-font-term: 'VT323', monospace;
}

/* ==========================================================
   CONTENEDOR PRINCIPAL DEL MÓDULO ARCADE
   ========================================================== */
.arcade-section {
  position: relative;
  background: radial-gradient(circle at 50% 20%, #151a28 0%, #080a10 70%, #030407 100%);
  padding: 60px 0 80px;
  overflow: hidden;
  border-top: 2px solid rgba(255, 110, 0, 0.4);
  border-bottom: 2px solid rgba(255, 110, 0, 0.4);
}

.arcade-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: 
    linear-gradient(rgba(255, 110, 0, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 110, 0, 0.04) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
  opacity: 0.6;
}

/* ==========================================================
   MÁQUINA RECREATIVA (CABINET)
   ========================================================== */
.arcade-cabinet-frame {
  position: relative;
  max-width: 1040px;
  margin: 0 auto;
  background: linear-gradient(180deg, #181d2c 0%, #0d1019 40%, #080a10 100%);
  border-radius: 20px;
  box-shadow: 
    0 0 0 3px #283048,
    0 0 25px rgba(255, 42, 42, 0.35),
    0 25px 60px rgba(0, 0, 0, 0.85);
  padding: 16px;
  color: var(--arcade-white);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

@media (min-width: 768px) {
  .arcade-cabinet-frame {
    padding: 26px;
    border-radius: 24px;
  }
}

/* Marquee Superior (Cartel Iluminado de la Máquina) */
.arcade-marquee {
  position: relative;
  background: linear-gradient(90deg, #1f0404 0%, #4a0909 30%, #a61212 50%, #4a0909 70%, #1f0404 100%);
  border: 3px solid #ff4444;
  border-radius: 12px;
  padding: 18px 20px 14px;
  text-align: center;
  box-shadow: 
    inset 0 0 20px rgba(255, 255, 255, 0.25),
    0 0 22px rgba(255, 42, 42, 0.6);
  margin-bottom: 20px;
  overflow: hidden;
}

.arcade-marquee::after {
  content: "";
  position: absolute;
  top: 0; left: 0; right: 0; height: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.arcade-brand-tag {
  font-family: var(--arcade-font-pixel);
  font-size: 0.65rem;
  letter-spacing: 3px;
  color: var(--arcade-yellow);
  text-transform: uppercase;
  margin-bottom: 6px;
  text-shadow: 0 0 8px var(--arcade-yellow);
}

.arcade-marquee-title {
  font-family: var(--arcade-font-pixel);
  font-size: clamp(1.1rem, 3.2vw, 2.1rem);
  color: #ffffff;
  text-transform: uppercase;
  letter-spacing: 2px;
  margin: 0;
  text-shadow: 
    3px 3px 0 #8b0000,
    0 0 15px rgba(255, 255, 255, 0.8),
    0 0 25px var(--arcade-red);
}

.arcade-marquee-sub {
  font-family: var(--arcade-font-pixel);
  font-size: clamp(0.55rem, 1.6vw, 0.8rem);
  color: var(--arcade-yellow);
  margin-top: 8px;
  letter-spacing: 2px;
  animation: arcadeBlink 1.2s infinite steps(1);
}

@keyframes arcadeBlink {
  0%, 49% { opacity: 1; }
  50%, 100% { opacity: 0.25; }
}

/* ==========================================================
   BARRA DE ESTADO / HUD SUPERIOR
   ========================================================== */
.arcade-top-hud {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #090c13;
  border: 2px solid #23293a;
  border-radius: 8px;
  padding: 10px 16px;
  margin-bottom: 16px;
  font-family: var(--arcade-font-pixel);
  font-size: 0.65rem;
}

.hud-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.hud-label {
  color: #7b88a8;
}

.hud-value {
  color: var(--arcade-green);
  text-shadow: 0 0 6px var(--arcade-green-glow);
  font-size: 0.75rem;
}

.hud-value-hs {
  color: var(--arcade-yellow);
  text-shadow: 0 0 6px var(--arcade-yellow-glow);
}

.arcade-quick-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.arcade-btn-mini {
  background: #171b26;
  border: 1px solid #3d4763;
  color: #d1d8e6;
  font-family: var(--arcade-font-pixel);
  font-size: 0.6rem;
  padding: 6px 10px;
  border-radius: 4px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.arcade-btn-mini:hover {
  background: #252b3d;
  color: #ffffff;
  border-color: var(--arcade-cyan);
  box-shadow: 0 0 8px var(--arcade-cyan-glow);
}

.arcade-btn-mini.active {
  background: rgba(57, 255, 20, 0.2);
  border-color: var(--arcade-green);
  color: var(--arcade-green);
}

/* ==========================================================
   BISEL DEL MONITOR CRT (CRT BEZEL & SCREEN)
   ========================================================== */
.arcade-screen-housing {
  position: relative;
  background: #050608;
  border-radius: 16px;
  padding: 12px;
  border: 4px solid #1e2433;
  box-shadow: 
    inset 0 0 30px rgba(0, 0, 0, 0.95),
    0 0 0 2px #0a0d14;
}

@media (min-width: 768px) {
  .arcade-screen-housing {
    padding: 18px;
    border-radius: 20px;
  }
}

.arcade-crt-bezel {
  position: relative;
  background: #020305;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, 0.9);
  border: 2px solid #141824;
}

/* Scanlines sutiles y reflejo de tubo curvo */
.arcade-scanlines-layer {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: linear-gradient(
    rgba(18, 16, 16, 0) 50%, 
    rgba(0, 0, 0, 0.45) 50%
  );
  background-size: 100% 4px;
  pointer-events: none;
  z-index: 25;
  opacity: 0.75;
}

.arcade-crt-glow-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: radial-gradient(circle at 50% 50%, transparent 60%, rgba(0, 0, 0, 0.75) 100%);
  pointer-events: none;
  z-index: 26;
}

/* ==========================================================
   CANVAS PRINCIPAL DE VIDEOJUEGOS
   ========================================================== */
.arcade-canvas-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  max-height: 520px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #020305;
  overflow: hidden;
}

@media (max-width: 600px) {
  .arcade-canvas-wrapper {
    aspect-ratio: 4 / 3;
    max-height: 380px;
  }
}

#arcadeCanvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: -moz-crisp-edges;
  image-rendering: -webkit-crisp-edges;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  background: #020305;
}

/* ==========================================================
   TICKER DE MENSAJE COMERCIAL EN TIEMPO REAL
   ========================================================== */
.arcade-commercial-ticker {
  background: #080a10;
  border-top: 2px solid #23293a;
  border-bottom: 2px solid #23293a;
  padding: 8px 12px;
  display: flex;
  align-items: center;
  gap: 12px;
  overflow: hidden;
  font-family: var(--arcade-font-pixel);
  font-size: 0.65rem;
}

.ticker-badge {
  background: var(--arcade-red);
  color: #fff;
  padding: 4px 8px;
  border-radius: 3px;
  font-size: 0.55rem;
  letter-spacing: 1px;
  white-space: nowrap;
  animation: pulseNeon 2s infinite ease-in-out;
}

@keyframes pulseNeon {
  0%, 100% { box-shadow: 0 0 6px var(--arcade-red-glow); }
  50% { box-shadow: 0 0 14px var(--arcade-red); }
}

.ticker-content {
  color: var(--arcade-yellow);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  letter-spacing: 1px;
  flex: 1;
}

/* ==========================================================
   SELECTOR DE JUEGOS (LOS 4 CARTUCHOS ARCADE)
   ========================================================== */
.arcade-games-selector {
  margin-top: 22px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

@media (max-width: 767px) {
  .arcade-games-selector {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
}

.game-cartridge-card {
  background: linear-gradient(180deg, #161b27 0%, #0c0f17 100%);
  border: 2px solid #28324a;
  border-radius: 10px;
  padding: 14px 12px;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.165, 0.84, 0.44, 1);
  display: flex;
  flex-direction: column;
  position: relative;
  text-align: left;
}

.game-cartridge-card:hover {
  transform: translateY(-4px);
  border-color: var(--arcade-yellow);
  box-shadow: 0 8px 20px rgba(255, 216, 0, 0.2);
}

.game-cartridge-card.active {
  border-color: var(--arcade-green);
  background: linear-gradient(180deg, #1a2820 0%, #0c1410 100%);
  box-shadow: 0 0 16px var(--arcade-green-glow);
}

.game-cartridge-card.active::before {
  content: "► JUGANDO ◄";
  position: absolute;
  top: -9px;
  right: 12px;
  background: var(--arcade-green);
  color: #000;
  font-family: var(--arcade-font-pixel);
  font-size: 0.5rem;
  padding: 2px 6px;
  border-radius: 3px;
  font-weight: 700;
}

.cartridge-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.cartridge-icon {
  font-size: 1.5rem;
  line-height: 1;
}

.cartridge-number {
  font-family: var(--arcade-font-pixel);
  font-size: 0.55rem;
  color: var(--arcade-red);
}

.cartridge-title {
  font-family: var(--arcade-font-pixel);
  font-size: 0.72rem;
  color: #ffffff;
  margin: 0 0 6px 0;
  line-height: 1.3;
}

.cartridge-commercial-target {
  font-size: 0.75rem;
  color: #9cb1d4;
  margin: 0 0 10px 0;
  line-height: 1.3;
  flex-grow: 1;
}

.cartridge-commercial-target strong {
  color: var(--arcade-yellow);
}

.cartridge-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--arcade-font-pixel);
  font-size: 0.55rem;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.cartridge-hs {
  color: var(--arcade-green);
}

.cartridge-play-tag {
  color: var(--arcade-cyan);
}

/* ==========================================================
   DECK DE CONTROLES Y PANEL DE COMANDOS DEL JUEGO
   ========================================================== */
.arcade-control-deck {
  margin-top: 16px;
  margin-bottom: 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* ==========================================================
   PANEL DINÁMICO DE COMANDOS DEL JUEGO EN CURSO
   ========================================================== */
.arcade-commands-panel {
  background: linear-gradient(180deg, #101522 0%, #090c14 100%);
  border: 2px solid #232c42;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: all 0.3s ease;
}

.commands-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  margin-bottom: 12px;
}

.commands-title-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.commands-badge {
  background: linear-gradient(135deg, #ff2a2a, #c62828);
  color: #ffffff;
  font-family: var(--arcade-font-pixel);
  font-size: 0.7rem;
  padding: 4px 10px;
  border-radius: 4px;
  letter-spacing: 1px;
  box-shadow: 0 0 10px rgba(255, 42, 42, 0.45);
}

.commands-live-indicator {
  font-family: var(--arcade-font-pixel);
  font-size: 0.55rem;
  color: var(--arcade-green);
  letter-spacing: 1px;
  animation: liveBlink 1.4s infinite ease-in-out;
}

@keyframes liveBlink {
  0%, 100% { opacity: 1; text-shadow: 0 0 8px var(--arcade-green-glow); }
  50% { opacity: 0.35; text-shadow: none; }
}

.commands-goal {
  font-size: 0.82rem;
  color: #cdd9f4;
  line-height: 1.45;
  background: rgba(4, 7, 13, 0.6);
  padding: 8px 12px;
  border-radius: 6px;
  border-left: 3px solid var(--arcade-yellow);
}

.commands-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.commands-col {
  background: #06080e;
  border: 1px solid #1a2236;
  border-radius: 8px;
  padding: 10px 14px;
}

.commands-col-header {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--arcade-font-pixel);
  font-size: 0.6rem;
  color: var(--arcade-cyan);
  margin-bottom: 8px;
  padding-bottom: 6px;
  border-bottom: 1px solid #151c2e;
  letter-spacing: 0.5px;
}

.commands-col-desktop .commands-col-header {
  color: var(--arcade-yellow);
}

.commands-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.8rem;
  color: #a4b6d6;
}

.commands-list li {
  display: flex;
  align-items: center;
  gap: 8px;
  line-height: 1.35;
}

.cmd-tag {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #192134;
  border: 1px solid #364468;
  border-radius: 4px;
  padding: 2px 7px;
  font-family: var(--arcade-font-pixel);
  font-size: 0.62rem;
  color: #ffffff;
  white-space: nowrap;
}

.cmd-tag-a {
  background: #801818;
  border-color: #ff5252;
  color: #ffffff;
}

.cmd-tag-b {
  background: #755208;
  border-color: #ffd740;
  color: #ffffff;
}

.commands-list kbd {
  background: #181d2c;
  border: 1px solid #36425f;
  padding: 2px 6px;
  border-radius: 3px;
  font-family: var(--arcade-font-pixel);
  font-size: 0.6rem;
  color: var(--arcade-yellow);
  box-shadow: 0 2px 0 #0d1019;
}

.cmd-touch-hint {
  margin-top: 4px;
  font-size: 0.74rem;
  color: var(--arcade-green);
  font-style: italic;
  background: rgba(57, 255, 20, 0.08);
  padding: 4px 8px;
  border-radius: 4px;
  display: block;
  border: 1px dashed rgba(57, 255, 20, 0.25);
}

/* ==========================================================
   PANEL DE CONTROLES VIRTUALES (MOBILE & TOUCH GAMEPAD)
   ========================================================== */
.arcade-controls-panel {
  background: #090c13;
  border: 2px solid #1f273b;
  border-radius: 14px;
  padding: 16px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
  touch-action: none;
}

/* D-PAD / Cruceta retro */
.arcade-dpad {
  display: grid;
  grid-template-columns: repeat(3, 46px);
  grid-template-rows: repeat(3, 46px);
  gap: 4px;
  margin: 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.dpad-btn {
  background: #1d2333;
  border: 2px solid #36425f;
  border-radius: 6px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.08s ease, background 0.08s ease, box-shadow 0.08s ease;
  box-shadow: 0 4px 0 #10141f;
}

.dpad-btn:active, .dpad-btn.pressed {
  background: var(--arcade-red);
  color: #fff;
  border-color: #ff8a80;
  transform: translateY(3px);
  box-shadow: 0 1px 0 #10141f, 0 0 10px rgba(255, 42, 42, 0.6);
}

.dpad-up    { grid-column: 2; grid-row: 1; }
.dpad-left  { grid-column: 1; grid-row: 2; }
.dpad-center{ grid-column: 2; grid-row: 2; background: #131722; border-color: #252c3d; pointer-events: none; }
.dpad-right { grid-column: 3; grid-row: 2; }
.dpad-down  { grid-column: 2; grid-row: 3; }

/* Botones de Acción (A / B / START / PAUSE) */
.arcade-action-cluster {
  display: flex;
  align-items: center;
  gap: 16px;
  margin: 0 auto;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}

.action-btn-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  touch-action: none;
}

.arcade-round-btn {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 3px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--arcade-font-pixel);
  font-size: 0.95rem;
  font-weight: 700;
  cursor: pointer;
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
  transition: transform 0.08s ease, box-shadow 0.08s ease, filter 0.08s ease;
  box-shadow: 0 5px 0 rgba(0, 0, 0, 0.7);
}

.arcade-round-btn:active, .arcade-round-btn.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.7);
  filter: brightness(1.25);
}

.btn-arcade-a {
  background: radial-gradient(circle at 35% 35%, #ff5252, #c62828);
  color: #fff;
  border-color: #ff8a80;
  box-shadow: 0 5px 0 #7f1616, 0 0 12px rgba(255, 82, 82, 0.35);
}

.btn-arcade-b {
  background: radial-gradient(circle at 35% 35%, #ffd740, #ff8f00);
  color: #000;
  border-color: #ffe57f;
  box-shadow: 0 5px 0 #8f5000, 0 0 12px rgba(255, 215, 64, 0.35);
}

.btn-arcade-start {
  background: radial-gradient(circle at 35% 35%, #69f0ae, #00c853);
  color: #000;
  width: 78px;
  height: 42px;
  border-radius: 20px;
  font-size: 0.65rem;
  box-shadow: 0 5px 0 #00702e, 0 0 12px rgba(0, 200, 83, 0.35);
}

.btn-arcade-start:active, .btn-arcade-start.pressed {
  transform: translateY(4px);
  box-shadow: 0 1px 0 #00702e;
}

.action-label {
  font-family: var(--arcade-font-pixel);
  font-size: 0.52rem;
  color: #8c9bbd;
  letter-spacing: 0.8px;
  text-align: center;
}

/* Indicador de Ayuda para Teclado Desktop */
.arcade-keyboard-help {
  width: 100%;
  text-align: center;
  font-family: var(--arcade-font-pixel);
  font-size: 0.55rem;
  color: #687696;
  padding-top: 10px;
  border-top: 1px solid #1c2230;
}

.arcade-keyboard-help kbd {
  background: #181d2c;
  border: 1px solid #36425f;
  padding: 2px 6px;
  border-radius: 3px;
  color: var(--arcade-yellow);
}

/* ==========================================================
   MODAL / PANTALLA DE RESULTADO & MENSAJE COMERCIAL FINAL
   ========================================================== */
.arcade-gameover-overlay {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(3, 5, 8, 0.94);
  z-index: 50;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 20px;
  text-align: center;
  backdrop-filter: blur(4px);
  animation: overlayFadeIn 0.3s ease;
  overflow-y: auto;
}

@keyframes overlayFadeIn {
  from { opacity: 0; transform: scale(0.97); }
  to { opacity: 1; transform: scale(1); }
}

.gameover-title {
  font-family: var(--arcade-font-pixel);
  font-size: clamp(1rem, 3.2vw, 1.8rem);
  color: var(--arcade-red);
  text-shadow: 0 0 12px var(--arcade-red-glow);
  margin-bottom: 12px;
  letter-spacing: 2px;
}

.gameover-score-box {
  display: flex;
  gap: 20px;
  margin-bottom: 16px;
  font-family: var(--arcade-font-pixel);
  font-size: 0.75rem;
}

.gameover-score-item {
  background: #0d121c;
  border: 1px solid #232c40;
  padding: 8px 14px;
  border-radius: 6px;
}

.gameover-score-item span {
  display: block;
  font-size: 0.55rem;
  color: #8391b0;
  margin-bottom: 4px;
}

.gameover-score-item strong {
  font-size: 1rem;
  color: var(--arcade-green);
}

/* Tarjeta Comercial Dinámica dentro de la pantalla final */
.gameover-commercial-card {
  max-width: 580px;
  background: linear-gradient(135deg, rgba(255, 110, 0, 0.15) 0%, rgba(20, 25, 40, 0.9) 100%);
  border: 2px solid var(--arcade-orange);
  border-radius: 12px;
  padding: 16px 20px;
  margin-bottom: 20px;
  text-align: left;
  box-shadow: 0 6px 25px rgba(255, 110, 0, 0.2);
}

.comm-card-badge {
  display: inline-block;
  background: var(--arcade-orange);
  color: #fff;
  font-family: var(--arcade-font-pixel);
  font-size: 0.55rem;
  padding: 3px 8px;
  border-radius: 4px;
  margin-bottom: 8px;
  text-transform: uppercase;
}

.comm-card-headline {
  font-size: 1rem;
  font-weight: 700;
  color: #ffffff;
  margin: 0 0 6px;
}

.comm-card-desc {
  font-size: 0.85rem;
  color: #c7d2e8;
  line-height: 1.45;
  margin: 0;
}

.comm-card-highlight {
  margin-top: 8px;
  font-size: 0.8rem;
  color: var(--arcade-green);
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Botones de Acción en Pantalla Final */
.gameover-actions-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
  max-width: 600px;
}

.arcade-action-btn {
  font-family: var(--arcade-font-pixel);
  font-size: 0.65rem;
  padding: 12px 18px;
  border-radius: 6px;
  cursor: pointer;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.2s ease;
}

.btn-arcade-restart {
  background: var(--arcade-green);
  color: #000;
  box-shadow: 0 0 12px var(--arcade-green-glow);
}

.btn-arcade-restart:hover {
  background: #50ff33;
  transform: translateY(-2px);
}

.btn-arcade-menu {
  background: #252e42;
  color: #fff;
  border: 1px solid #445478;
}

.btn-arcade-menu:hover {
  background: #34415e;
}

.btn-arcade-whatsapp {
  background: #25d366;
  color: #fff;
  box-shadow: 0 0 14px rgba(37, 211, 102, 0.4);
}

.btn-arcade-whatsapp:hover {
  background: #2ee672;
  transform: translateY(-2px);
}

.btn-arcade-showroom {
  background: var(--arcade-orange);
  color: #fff;
  box-shadow: 0 0 14px rgba(255, 110, 0, 0.4);
}

.btn-arcade-showroom:hover {
  background: #ff8522;
  transform: translateY(-2px);
}

/* ==========================================================
   BANNER DE CONFIANZA Y SALIDA COMERCIAL
   ========================================================== */
.arcade-trust-footer {
  margin-top: 24px;
  background: linear-gradient(135deg, rgba(20, 26, 42, 0.9) 0%, rgba(10, 13, 20, 0.95) 100%);
  border: 1px solid rgba(255, 216, 0, 0.3);
  border-radius: 12px;
  padding: 20px 24px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.trust-footer-text h4 {
  font-size: 1.1rem;
  color: var(--arcade-yellow);
  margin: 0 0 4px;
  font-weight: 700;
}

.trust-footer-text p {
  font-size: 0.88rem;
  color: #b0c0de;
  margin: 0;
  line-height: 1.45;
  max-width: 650px;
}

.trust-footer-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #25d366;
  color: #ffffff;
  padding: 12px 20px;
  border-radius: 6px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  box-shadow: 0 4px 15px rgba(37, 211, 102, 0.35);
  transition: all 0.2s ease;
}

.trust-footer-btn:hover {
  background: #28e870;
  transform: translateY(-2px);
}

/* Ajustes Responsive y Optimización Móvil */
@media (max-width: 768px) {
  .commands-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .arcade-controls-panel {
    padding: 12px 14px;
    gap: 12px;
  }
}

@media (max-width: 520px) {
  .arcade-dpad {
    grid-template-columns: repeat(3, 40px);
    grid-template-rows: repeat(3, 40px);
    gap: 3px;
  }
  .dpad-btn {
    font-size: 1rem;
  }
  .arcade-action-cluster {
    gap: 10px;
  }
  .arcade-round-btn {
    width: 48px;
    height: 48px;
    font-size: 0.8rem;
  }
  .btn-arcade-start {
    width: 62px;
    height: 38px;
    font-size: 0.52rem;
  }
  .action-label {
    font-size: 0.46rem;
  }
  .arcade-controls-panel {
    padding: 10px 8px;
    gap: 8px;
  }
  .commands-header {
    margin-bottom: 8px;
    padding-bottom: 8px;
  }
  .commands-badge {
    font-size: 0.6rem;
    padding: 3px 8px;
  }
  .commands-goal {
    font-size: 0.75rem;
    padding: 6px 10px;
  }
  .commands-list {
    font-size: 0.74rem;
  }
  .gameover-actions-grid {
    flex-direction: column;
    width: 100%;
  }
  .arcade-action-btn {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 380px) {
  .arcade-dpad {
    grid-template-columns: repeat(3, 36px);
    grid-template-rows: repeat(3, 36px);
  }
  .arcade-round-btn {
    width: 44px;
    height: 44px;
    font-size: 0.75rem;
  }
  .btn-arcade-start {
    width: 56px;
    height: 36px;
    font-size: 0.48rem;
  }
  .arcade-controls-panel {
    padding: 8px 6px;
  }
}
