/* =================================================================== */
/*      MAKUMOTO MODALS: ARCADE (v2.0)
/*      Gamificación, Economía y Estilos Visuales Fuertes (Gamer/Tech)
/* =================================================================== */

:root {
    /* Paleta Gamer Local */
    --gamer-bg: #000000;
    --gamer-green: #00ff00;
    --gamer-cyan: #00f3ff;
    --gamer-orange: #ffaa00;
    --gamer-pink: #ff0055;
    --gamer-yellow: #ffff00;
    
    /* Paleta BOA Tech */
    --boa-primary: #00ff9d;
    --boa-panel: #0a0a0a;
}

/* =================================================================== */
/*      1. XP HUB (GAMER THEME - FULL SCREEN)
/* =================================================================== */

.xp-hub-card {
    background: #000 !important;
    /* Pantalla Completa */
    width: 100vw !important;
    height: 100dvh !important;
    max-width: none !important;
    border-radius: 0 !important;
    border: none !important;
    
    display: flex; flex-direction: column;
    overflow: hidden;
    position: fixed; top: 0; left: 0;
    z-index: 5000;
    
    /* Fondo Gamer */
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.05) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.05) 1px, transparent 1px);
    background-size: 40px 40px;
}

/* Header Arcade */
.arcade-header {
    padding: 20px; text-align: center;
    border-bottom: 1px solid #222;
    flex-shrink: 0; position: relative;
    background: linear-gradient(to bottom, #111, #000);
}

.arcade-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900;
    font-size: 1.8rem; letter-spacing: 2px; margin: 0;
    text-shadow: 2px 2px 0 var(--gamer-pink);
    text-transform: uppercase;
}

.arcade-sub {
    font-family: monospace; font-size: 0.7rem; color: var(--gamer-cyan);
    letter-spacing: 3px; margin-top: 5px;
    /* Animación parpadeo en fx.css */
}

/* Score Bar */
.xp-bar-container {
    display: flex; justify-content: space-between; align-items: center;
    padding: 10px 20px; background: #0a0a0a;
    border-bottom: 1px solid #222; flex-shrink: 0;
    border-top: 1px solid var(--gamer-pink);
}

.xp-score { 
    font-family: 'Orbitron', monospace; font-weight: 700; font-size: 0.9rem;
    display: flex; align-items: center; gap: 8px;
}
.xp-score::before {
    content: ''; display: inline-block; width: 10px; height: 10px;
    background: var(--gamer-green); transform: skewX(-10deg);
}

.btn-benefits {
    background: transparent; border: 1px solid var(--gamer-green);
    color: var(--gamer-green); border-radius: 15px; padding: 4px 12px;
    font-size: 0.7rem; font-weight: 700; cursor: pointer;
    text-transform: uppercase; transition: all 0.2s;
}
.btn-benefits:hover { background: var(--gamer-green); color: #000; }

/* Lista Scrollable */
.arcade-list {
    flex: 1; overflow-y: auto; padding: 20px;
    background: #000; min-height: 0;
    scrollbar-width: none;
}

/* Tarjetas de Nivel */
.xp-game-card {
    background: #050505; border-radius: 15px; margin-bottom: 15px;
    padding: 15px; display: flex; align-items: center; justify-content: space-between;
    min-height: 70px; border: 1px solid #333;
    transition: transform 0.1s;
}
.xp-game-card:active { transform: scale(0.98); }

/* Variantes de Tarjeta */
.style-cyan {
    border: 2px solid var(--gamer-cyan);
    box-shadow: 0 0 15px rgba(0, 255, 255, 0.2);
}
.style-cyan .icon-box { color: var(--gamer-cyan); font-size: 1.5rem; }
.style-cyan .card-title { font-family: 'Orbitron'; font-weight: 900; font-size: 1rem; color: #fff; margin: 0; }
.style-cyan .xp-tag { color: var(--gamer-green); font-weight: 900; font-size: 0.8rem; }

.style-orange {
    border: 2px solid var(--gamer-orange);
    background: #080500;
}
.style-orange .icon-box { color: var(--gamer-orange); font-size: 1.5rem; }
.style-orange .card-title { color: #ccc; font-family: 'Orbitron'; font-size: 1rem; margin: 0; }

/* Footer Insert Coin */
.insert-coin-footer {
    text-align: center; margin: 20px 0;
    font-family: 'Orbitron'; font-weight: 900; font-size: 1rem;
    color: var(--gamer-yellow); letter-spacing: 2px;
    text-shadow: 0 0 5px var(--gamer-yellow);
}

/* =================================================================== */
/*      2. TRIVIA GAME (LOGIC UI)
/* =================================================================== */

.game-grid {
    display: grid; grid-template-columns: 50px 1fr; gap: 15px;
    height: 100%; padding: 15px;
}

/* Columna Pasos */
.steps-col { 
    display: flex; flex-direction: column; gap: 5px; 
    align-items: center; justify-content: center; 
}
.step-dot { 
    width: 20px; height: 20px; background: #222; border-radius: 50%;
    border: 1px solid #444; display: flex; align-items: center; justify-content: center;
    font-size: 0.6rem; color: #666;
}
.step-dot.active { background: var(--gamer-cyan); color: #000; box-shadow: 0 0 10px var(--gamer-cyan); transform: scale(1.2); }
.step-dot.done { background: var(--gamer-green); border-color: var(--gamer-green); }

/* Tarjeta Central */
.card-col {
    background: #0d0d0d; border: 2px solid #333; border-radius: 20px;
    padding: 20px; text-align: center;
    display: flex; flex-direction: column; justify-content: center;
    position: relative;
}

.q-text { 
    font-size: 1.2rem; font-weight: 700; line-height: 1.4; 
    margin-bottom: 20px; color: #eee;
}

.btns-row { display: flex; gap: 15px; justify-content: center; }
.ans-btn {
    padding: 12px 30px; border: none; border-radius: 12px;
    font-family: 'Orbitron'; font-weight: 900; font-size: 1rem; cursor: pointer;
    text-transform: uppercase;
}
.ans-true { background: var(--gamer-green); color: #000; box-shadow: 0 4px 0 #009900; }
.ans-false { background: var(--gamer-pink); color: #fff; box-shadow: 0 4px 0 #990033; }
.ans-btn:active { transform: translateY(4px); box-shadow: none; }

/* Panel de Vidas (Flotante o Grid según espacio) */
.lives-panel {
    background: #111; border: 1px solid #333; border-radius: 15px;
    padding: 10px; margin-top: 10px; display: flex; justify-content: space-between; align-items: center;
}
.hearts-row { display: flex; gap: 5px; color: var(--gamer-pink); }

/* =================================================================== */
/*      3. BOA / LA BÓVEDA (TECH THEME)
/* =================================================================== */

.boa-tech-theme .modal-content {
    background-color: #050505;
    border: 1px solid var(--boa-primary);
    box-shadow: 0 0 20px rgba(0, 255, 157, 0.2);
    color: #fff; border-radius: 8px; /* Bordes más rectos */
    font-family: 'Poppins', sans-serif;
    max-width: 500px; height: 90vh;
}

/* Bordes Decorativos */
.boa-tech-border {
    position: absolute; left: 0; width: 100%; height: 2px;
    background: linear-gradient(90deg, transparent, var(--boa-primary), transparent);
    z-index: 10;
}
.boa-tech-border.top { top: 0; }
.boa-tech-border.bottom { bottom: 0; }

/* Header BOA */
.boa-header {
    display: flex; justify-content: space-between; align-items: center;
    padding: 15px 20px; border-bottom: 1px solid #1a1a1a;
    background: rgba(0, 255, 157, 0.05);
}
.boa-title h2 { margin: 0; color: var(--boa-primary); letter-spacing: 2px; font-size: 1.5rem; }

/* Tabs BOA */
.boa-tabs-container {
    display: flex; background: #000; border-bottom: 1px solid #1a1a1a;
}
.boa-tab-btn {
    flex: 1; background: transparent; border: none; color: #555;
    padding: 15px 0; font-weight: 700; cursor: pointer;
    border-bottom: 2px solid transparent; transition: all 0.3s;
}
.boa-tab-btn.active {
    color: var(--boa-primary);
    border-bottom-color: var(--boa-primary);
    background: linear-gradient(to top, rgba(0, 255, 157, 0.1), transparent);
}

/* Tarjetas Tech */
.boa-grid-layout {
    padding: 20px; overflow-y: auto; flex: 1;
    display: grid; grid-template-columns: 1fr; gap: 12px;
}

.boa-tech-card {
    display: flex; align-items: center;
    background: var(--boa-panel); border: 1px solid #1a1a1a;
    padding: 15px; position: relative; overflow: hidden;
    cursor: pointer; transition: all 0.2s;
}
.boa-tech-card:hover { border-color: var(--boa-primary); transform: translateX(5px); }

/* Línea de escaneo (Decorativa) */
.card-scan-line {
    position: absolute; top: 0; left: -100%; width: 50%; height: 100%;
    background: linear-gradient(90deg, transparent, rgba(0, 255, 157, 0.2), transparent);
    transform: skewX(-20deg); transition: left 0.5s;
}
.boa-tech-card:hover .card-scan-line { left: 150%; }

.tech-icon {
    width: 40px; height: 40px; border: 1px solid #333;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; color: #888; margin-right: 15px;
}
.boa-tech-card:hover .tech-icon { color: var(--boa-primary); border-color: var(--boa-primary); }

/* =================================================================== */
/*      4. NEXO / GANA (COSMIC THEME)
/* =================================================================== */

.modal-content.nexo-theme {
    background: #0b0b10;
    border: 1px solid #333;
    box-shadow: 0 0 50px rgba(52, 152, 219, 0.1);
    min-height: 500px;
}

.nexo-title {
    font-family: 'Cinzel', serif; font-size: 1.5rem; text-align: center;
    background: linear-gradient(to right, #fff, #aaa);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

/* Botones de Camino */
.nexo-path-selection {
    display: grid; grid-template-columns: 1fr 1fr; gap: 15px; padding: 20px;
}
.nexo-path-btn {
    background: rgba(255,255,255,0.03); border: 1px solid #333;
    padding: 20px; border-radius: 12px; color: #fff; cursor: pointer;
    text-align: center; transition: all 0.3s;
}
.nexo-path-btn:hover { background: rgba(255,255,255,0.08); transform: translateY(-5px); }

/* Dashboard Creador */
.creator-dashboard {
    display: flex; justify-content: space-between;
    background: rgba(255,255,255,0.05); padding: 15px; margin: 20px;
    border-radius: 12px; border: 1px solid #333;
}
.creator-stat { display: flex; flex-direction: column; align-items: center; }
.creator-stat strong { font-size: 1.2rem; color: #2ecc71; }
.creator-stat span { font-size: 0.7rem; color: #aaa; text-transform: uppercase; }
/* =================================================================== */
/*      NUEVO UI GAMER: REACTOR BUTTON & HEXAGON MENU
/* =================================================================== */

/* 1. BOTÓN CENTRAL "REACTOR" */
#center-arcade-btn {
    appearance: none;
    width: 65px; height: 65px; /* Un poco más grande para destacar */
    background: #000;
    border-radius: 50%;
    border: 3px solid #00ff00;
    box-shadow: 0 0 15px #00ff00, inset 0 0 20px rgba(0, 255, 0, 0.5);
    display: flex; align-items: center; justify-content: center;
    cursor: pointer;
    z-index: 200; /* Encima de la barra */
    transform: translateY(-25px); /* Flotando */
    position: relative;
    transition: transform 0.2s, box-shadow 0.2s;
}

/* Núcleo inestable (Animación interna) */
#center-arcade-btn::after {
    content:''; position: absolute; width: 70%; height: 70%; 
    border: 1px solid rgba(0,255,0,0.6); border-radius: 50%;
    animation: reactor-pulse 2s infinite;
}

#center-arcade-btn i {
    color: #00ff00; font-size: 1.8rem; 
    text-shadow: 0 0 5px #00ff00;
    z-index: 2;
}

#center-arcade-btn:active {
    transform: translateY(-25px) scale(0.9);
    box-shadow: 0 0 5px #00ff00;
}

@keyframes reactor-pulse { 
    0% { transform: scale(0.8); opacity: 1; } 
    100% { transform: scale(1.6); opacity: 0; } 
}

/* 2. MODAL HEXAGON HIVE (MENÚ) */
.modal-hex-wrapper {
    position: relative;
    width: 90%; max-width: 380px;
    margin: auto;
    filter: drop-shadow(0 0 15px rgba(0, 255, 0, 0.3)); /* Glow externo */
}

.modal-hex {
    background: #090909;
    /* La forma hexagonal */
    clip-path: polygon(10% 0, 90% 0, 100% 10%, 100% 90%, 90% 100%, 10% 100%, 0 90%, 0 10%);
    padding: 40px 30px;
    text-align: center;
    font-family: 'Orbitron', sans-serif; /* Asegúrate de importar Orbitron si no está */
    color: #fff;
    position: relative;
    overflow: hidden; /* Para el borde interno */
}

/* Borde simulado interno */
.modal-hex::before {
    content:''; position: absolute; inset: 0; 
    background: linear-gradient(135deg, #00ff00 0%, transparent 20%, transparent 80%, #00ff00 100%);
    pointer-events: none; opacity: 0.3;
    z-index: 0;
}

.hex-content { position: relative; z-index: 2; }

.hex-label { font-size: 0.7rem; color: #666; letter-spacing: 2px; margin-bottom: 5px; text-transform: uppercase; }
.hex-score { 
    font-size: 3.5rem; color: #00ff00; 
    text-shadow: 0 0 15px rgba(0,255,0,0.6); 
    font-weight: 900; line-height: 1; margin-bottom: 25px;
}

.hex-btn-main {
    background: transparent; border: 2px solid #fff; color: #fff;
    padding: 15px 0; width: 100%;
    font-family: 'Orbitron', sans-serif; font-weight: 700; font-size: 1rem;
    cursor: pointer; transition: 0.2s;
    text-transform: uppercase; letter-spacing: 1px;
    clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
}
.hex-btn-main:hover { background: #fff; color: #000; box-shadow: 0 0 25px rgba(255,255,255,0.5); }

/* Switch de Temas */
.hex-themes-container {
    margin-top: 30px; padding-top: 20px;
    border-top: 1px solid #222;
}
.hex-themes-title { font-size: 0.7rem; color: #444; margin-bottom: 15px; }

.hex-themes-row { display: flex; justify-content: center; gap: 20px; }

.hex-theme-btn { 
    width: 40px; height: 40px; border-radius: 8px; cursor: pointer; 
    border: 2px solid #333; transition: all 0.3s;
    position: relative;
}
.hex-theme-btn.dark { background: #000; }
.hex-theme-btn.pastel { background: #ffccff; }

/* Estado seleccionado */
.hex-theme-btn.selected { border-color: #00ff00; box-shadow: 0 0 15px #00ff00; transform: scale(1.1); }
.hex-theme-btn.selected::after {
    content: '\f00c'; font-family: "Font Awesome 6 Free"; font-weight: 900;
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    color: #00ff00; font-size: 1rem;
    text-shadow: 0 0 5px #000;
}
/* Excepción visual para el pastel */
.hex-theme-btn.pastel.selected::after { color: #000; text-shadow: none; }


.hex-logout { 
    margin-top: 25px; font-size: 0.7rem; color: #d32f2f; 
    cursor: pointer; text-transform: uppercase; letter-spacing: 1px; 
    transition: color 0.2s;
}
.hex-logout:hover { color: #ff5252; text-shadow: 0 0 10px #ff0000; }
/* =================================================================== */
/*      BOA SYSTEM V2.0: INTERFAZ CIBERNÉTICA (DISEÑO ÉPICO)
/* =================================================================== */

/* 1. EL CONTENEDOR PRINCIPAL (LA BÓVEDA - FULL SCREEN) */
.boa-tech-theme .modal-content {
    background: radial-gradient(circle at center, #0a0a0a 0%, #000000 100%) !important;
    /* Eliminamos bordes y redondeos para pantalla completa inmersiva */
    border: none !important;
    border-radius: 0 !important;
    box-shadow: inset 0 0 100px rgba(0,0,0,0.9) !important;
    
    /* Dimensiones Totales */
    width: 100vw !important;
    height: 100dvh !important; /* dvh para móviles modernos */
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    
    /* Layout Flexible para permitir Scroll */
    display: flex !important;
    flex-direction: column !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    padding: 0 !important;
}

/* FIX CRÍTICO DE SCROLL */
.boa-body {
    flex: 1; /* Ocupa el espacio restante */
    overflow-y: auto !important; /* Activa el scroll vertical */
    overflow-x: hidden;
    padding-bottom: 100px !important; /* Espacio extra abajo para que no se corte */
    -webkit-overflow-scrolling: touch; /* Scroll suave en iOS */
}

/* Fondo de Rejilla Animado */
.boa-cyber-grid {
    position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 157, 0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 157, 0.03) 1px, transparent 1px);
    background-size: 30px 30px;
    z-index: 0;
    pointer-events: none;
}

/* Línea de escaneo que baja */
.boa-scan-line {
    position: absolute; top: 0; left: 0; width: 100%; height: 5px;
    background: linear-gradient(to bottom, rgba(0,255,157,0), rgba(0,255,157,0.5), rgba(0,255,157,0));
    animation: boaScan 4s linear infinite;
    z-index: 1; pointer-events: none; opacity: 0.3;
}
@keyframes boaScan { 0% { top: -10%; } 100% { top: 110%; } }


/* 2. HEADER ÉPICO (EL NÚCLEO) */
.boa-header-epic {
    position: relative; z-index: 2;
    padding: 5px 20px 15px; /* <--- AJUSTE: Menos espacio arriba */
    text-align: center;
    background: linear-gradient(to bottom, rgba(0,0,0,0.9), transparent);
}

/* Botón cerrar flotante */
.bo-close {
    position: absolute; top: 15px; right: 15px;
    background: rgba(255,255,255,0.1); border: none; color: #fff;
    width: 30px; height: 30px; border-radius: 50%;
    cursor: pointer; z-index: 10;
    display: flex; align-items: center; justify-content: center;
}

/* El Avatar de la Serpiente */
.boa-avatar-container {
    position: relative;
    width: 100px; height: 100px;
    margin: 0 auto 15px;
    display: flex; align-items: center; justify-content: center;
}

.boa-core-image {
    width: 80px; height: 80px;
    object-fit: contain;
    filter: drop-shadow(0 0 15px rgba(0, 255, 157, 0.6));
    animation: boaFloat 3s ease-in-out infinite;
    z-index: 2;
}

/* Anillos giratorios alrededor de la imagen */
.boa-ring {
    position: absolute; border-radius: 50%;
    border: 1px solid rgba(0, 255, 157, 0.3);
    box-shadow: 0 0 10px rgba(0, 255, 157, 0.1);
}
.ring-1 { width: 100%; height: 100%; border-top-color: transparent; border-bottom-color: transparent; animation: spinRight 10s linear infinite; }
.ring-2 { width: 85%; height: 85%; border-left-color: transparent; border-right-color: transparent; animation: spinLeft 7s linear infinite; border-color: rgba(0, 243, 255, 0.4); }

.boa-status-dot {
    position: absolute; bottom: 5px; right: 10px;
    width: 10px; height: 10px; background: #00ff00;
    border-radius: 50%; box-shadow: 0 0 10px #00ff00;
    animation: blinkStatus 2s infinite; z-index: 3;
}

@keyframes boaFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
@keyframes spinRight { 100% { transform: rotate(360deg); } }
@keyframes spinLeft { 100% { transform: rotate(-360deg); } }
@keyframes blinkStatus { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* Texto Identidad */
.boa-identity h2 {
    font-family: 'Orbitron', sans-serif; font-size: 1.4rem; /* Reducido de 1.8 */
    margin: 0; letter-spacing: 2px;
    background: linear-gradient(to right, #fff, #00ff9d);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
    text-shadow: 0 0 15px rgba(0, 255, 157, 0.3);
}
.boa-subtitle {
    font-family: monospace; color: #00ff9d; font-size: 0.6rem; /* Reducido de 0.7 */
    letter-spacing: 1.5px; opacity: 0.7; margin-top: 2px;
}


/* 3. TABS DE NEÓN (LAS 3 SECCIONES) */
.boa-tabs-neon {
    display: flex; justify-content: center; gap: 10px;
    padding: 0 20px 20px; position: relative; z-index: 2;
}

.b-tab {
    flex: 1; position: relative; background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.1);
    padding: 10px 0; border-radius: 8px; cursor: pointer;
    overflow: hidden; transition: all 0.3s;
}

.b-tab .text-layer {
    position: relative; z-index: 2; color: #888;
    font-size: 0.6rem; /* Reducido */
    font-weight: 700; font-family: 'Orbitron';
    display: flex; flex-direction: column; align-items: center; gap: 3px;
}
.b-tab i { font-size: 0.9rem; margin-bottom: 1px; } /* Icono más pequeño */

.b-tab.active { border-color: #00ff9d; box-shadow: 0 0 15px rgba(0, 255, 157, 0.2); }
.b-tab.active .text-layer { color: #fff; text-shadow: 0 0 5px #00ff9d; }
.b-tab.active .bg-layer {
    position: absolute; inset: 0; background: rgba(0, 255, 157, 0.1);
    z-index: 1;
}


/* 1. REJILLA PRINCIPAL (Corrección de alineación) */
.boa-holo-grid {
    display: flex; flex-direction: column; gap: 10px; /* Lista vertical limpia */
    padding: 10px 20px 50px 20px;
    position: relative; z-index: 2;
    text-align: left !important; /* FORZAR ALINEACIÓN IZQUIERDA GLOBAL */
}

/* 2. TARJETA (Contenedor) */
.holo-card {
    position: relative;
    background: rgba(10, 10, 10, 0.95); /* Fondo oscuro sólido */
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 0; /* El padding lo maneja el grid interno */
    cursor: pointer;
    overflow: hidden;
    min-height: 60px;
    transition: transform 0.2s, border-color 0.2s;
}

.holo-card:hover {
    transform: translateX(5px); /* Desplazamiento lateral sutil */
    border-color: rgba(255, 255, 255, 0.4);
    background: rgba(20, 20, 20, 1);
}

/* 3. LAYOUT INTERNO (CSS GRID INFALIBLE) */
.holo-grid-layout {
    display: grid;
    /* 4 Columnas: Icono | Texto (Flexible) | Precio (Auto) | Flecha */
    grid-template-columns: 50px 1fr auto 20px; 
    align-items: center;
    padding: 12px 15px;
    gap: 10px;
    width: 100%;
}

/* A. ÁREA ICONO */
.area-icon {
    display: flex; justify-content: center; align-items: center;
}
.holo-icon-box {
    width: 36px; height: 36px;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    display: flex; align-items: center; justify-content: center;
    font-size: 1rem;
    color: var(--card-color, #fff);
}

/* B. ÁREA TEXTO (Alineado a la izquierda, sin cortes) */
.area-text {
    display: flex; flex-direction: column;
    justify-content: center;
    overflow: hidden; /* Para los puntos suspensivos */
}

.area-text h4 {
    margin: 0 0 2px 0;
    color: #fff; 
    font-family: 'Orbitron', sans-serif;
    font-size: 0.75rem; /* Tamaño compacto pero legible */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: left; /* FORZAR IZQUIERDA */
}

.area-text p {
    margin: 0; 
    color: #888; 
    font-size: 0.6rem; /* Descripción pequeña */
    white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
    text-align: left; /* FORZAR IZQUIERDA */
}

/* C. ÁREA PRECIO (Visible y destacado) */
.area-price {
    text-align: right;
    white-space: nowrap;
}

.holo-price {
    font-size: 0.9rem; /* Tamaño aumentado */
    color: #00ff00; /* Verde brillante siempre */
    font-weight: 800; 
    font-family: 'Orbitron';
    background: rgba(0, 255, 0, 0.1);
    padding: 2px 6px;
    border-radius: 4px;
    border: 1px solid rgba(0, 255, 0, 0.3);
    text-shadow: 0 0 5px rgba(0,255,0,0.5);
}

/* D. ÁREA FLECHA */
.area-arrow {
    color: #444; font-size: 0.8rem;
    display: flex; justify-content: flex-end;
}
.holo-card:hover .area-arrow { color: #fff; }
/* Temas de Color */
.holo-card.gold { --card-color: #FFD700; --card-glow: rgba(255, 215, 0, 0.4); }
.holo-card.purple { --card-color: #ab71ed; --card-glow: rgba(171, 113, 237, 0.4); }
.holo-card.cyan { --card-color: #00f3ff; --card-glow: rgba(0, 243, 255, 0.4); }
.holo-card.green { --card-color: #00ff9d; --card-glow: rgba(0, 255, 157, 0.4); }
.holo-card.blue { --card-color: #2979ff; --card-glow: rgba(41, 121, 255, 0.4); }
.holo-card.orange { --card-color: #ff9100; --card-glow: rgba(255, 145, 0, 0.4); }
.holo-card.white { --card-color: #ffffff; --card-glow: rgba(255, 255, 255, 0.3); }

/* Efecto de borde brillante animado al hacer hover */
.holo-card::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: translateX(-100%); transition: 0.5s;
    z-index: 1; pointer-events: none;
}
.holo-card:hover::after { transform: translateX(100%); }
.boa-section-title {
    color: #fff; font-family: 'Orbitron'; font-size: 0.8rem;
    letter-spacing: 1px; margin-bottom: 10px; padding: 0;
    
    /* Centrado Absoluto y Juntos */
    display: flex; 
    justify-content: center; /* AL CENTRO */
    align-items: center;
    flex-direction: row; /* EN FILA */
    gap: 15px; /* Separación justa entre Título y Precio */
    
    opacity: 1;
    text-transform: uppercase;
    border-bottom: none; /* Quitamos línea que estorba */
    padding-bottom: 5px;
}
.price-tag {
    background: #00ff9d; color: #000; padding: 2px 8px;
    border-radius: 4px; font-weight: 800; font-size: 0.75rem;
}

/* Tarjeta del Modal */
.coming-soon-card {
    background: linear-gradient(145deg, #111, #0a0a0a);
    border: 1px solid #333;
    border-radius: 25px;
    width: 90%; max-width: 380px;
    padding: 30px 20px;
    text-align: center;
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    position: relative;
    overflow: hidden;
    animation: popIn 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Animación Cohete */
.cs-anim-container {
    height: 80px; margin-bottom: 20px; position: relative;
    display: flex; justify-content: center; align-items: center;
}
.cs-rocket {
    font-size: 3.5rem; color: #FFD700;
    filter: drop-shadow(0 0 15px rgba(255, 215, 0, 0.6));
    animation: rocketFloat 2s ease-in-out infinite;
}
.cs-sparkles span {
    position: absolute; font-size: 1.2rem;
    animation: sparkleFade 1.5s infinite;
}
.cs-sparkles span:nth-child(1) { top: 0; left: 30%; animation-delay: 0s; }
.cs-sparkles span:nth-child(2) { top: 10px; right: 30%; animation-delay: 0.5s; }
.cs-sparkles span:nth-child(3) { bottom: 0; left: 40%; animation-delay: 1s; }

@keyframes rocketFloat { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-10px) rotate(5deg); } }
@keyframes sparkleFade { 0%, 100% { opacity: 0; transform: scale(0.5); } 50% { opacity: 1; transform: scale(1.2); } }

/* Textos */
.cs-title {
    font-family: 'Orbitron', sans-serif; color: #fff;
    font-size: 1.3rem; margin: 0 0 15px 0;
    text-transform: uppercase; letter-spacing: 1px;
    background: linear-gradient(to right, #fff, #00f3ff);
    -webkit-background-clip: text; -webkit-text-fill-color: transparent;
}

.cs-body {
    color: #ccc; font-size: 0.95rem; line-height: 1.5;
    margin-bottom: 25px;
}
.cs-body strong { color: #00ff9d; }

/* Botón */
.cs-btn {
    background: #FFD700; color: #000; border: none;
    padding: 12px 25px; border-radius: 50px;
    font-weight: 800; font-size: 0.9rem; cursor: pointer;
    box-shadow: 0 5px 15px rgba(255, 215, 0, 0.3);
    transition: transform 0.2s;
    width: 100%; margin-bottom: 20px;
}
.cs-btn:active { transform: scale(0.95); }

/* Descargo Legal */
.cs-legal-box {
    background: #050505; border: 1px solid #222;
    padding: 10px; border-radius: 8px;
    color: #666; font-size: 0.6rem; line-height: 1.3;
    text-align: justify;
}
.cs-legal-box strong { color: #888; display: block; margin-bottom: 3px; }
/* =================================================================== */
/*      MODO FANTASMA (LOCKED / GHOST) - TODO GRIS
/* =================================================================== */

.ghost-card {
    filter: grayscale(100%) brightness(0.6) !important;
    opacity: 0.7;
    border-color: #333 !important;
    background: rgba(20, 20, 20, 0.4) !important;
    transform: none !important; /* Sin escala al hover */
    box-shadow: none !important; /* Sin brillo al hover */
}

/* Forzar que no haya hover */
.ghost-card:hover {
    transform: none !important;
    box-shadow: none !important;
    border-color: #333 !important;
}

/* Iconos y textos en gris */
.ghost-card i, 
.ghost-card h4, 
.ghost-card p {
    color: #888 !important;
    text-shadow: none !important;
}

/* Desactivar animaciones de fondo/glow */
.ghost-card .holo-glow,
.ghost-card::after {
    display: none !important;
}

/* Botón de cierre grande para "En Proceso" */
.bo-close-big {
    background: none; border: 2px solid #333;
    color: #555; font-size: 2rem;
    width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
}
/* =================================================================== */
/*      ESTILOS FANTASMA TOTAL (LOGO, TITULOS Y SCROLL)
/* =================================================================== */

/* 1. LOGO FANTASMA (BOA APAGADA) */
.ghost-img {
    filter: grayscale(100%) brightness(0.4) !important; /* Gris oscuro */
    opacity: 0.6;
    animation: none !important; /* Sin flotar */
}

/* 2. TÍTULOS CENTRADOS Y PEQUEÑOS */
.ghost-title-center {
    justify-content: center !important; /* Centrado Horizontal */
    gap: 10px; /* Pegaditos */
    color: #555 !important; /* Texto Gris */
    font-size: 0.7rem !important; /* Letra pequeña */
    text-shadow: none !important;
    padding-left: 0 !important;
}

/* 3. ETIQUETA DE PRECIO FANTASMA */
.ghost-tag {
    background: #222 !important; /* Fondo casi negro */
    color: #666 !important; /* Texto gris */
    border: 1px solid #333;
    font-weight: 600 !important;
}

/* 4. GARANTÍA DE SCROLL */
/* Esto fuerza que si el contenido es largo, se pueda bajar */
.boa-tab-content.active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.boa-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: 100%; /* Ocupar todo el espacio disponible */
    padding-bottom: 50px; /* Margen de seguridad */
}
/* =================================================================== */
/*      MODO FANTASMA CELESTIAL (BLANCO TOTAL)
/* =================================================================== */

/* 1. SECCIONES (Header y Nav) - Quitar filtro oscuro */
.ghost-ui-section {
    filter: none !important;
    opacity: 1 !important;
}

/* 2. LOGO BOA (BLANCO Y ANIMADO) */
.ghost-img {
    /* Convertir a Blanco Puro y añadir Resplandor */
    filter: brightness(0) invert(1) drop-shadow(0 0 15px rgba(255, 255, 255, 0.8)) !important;
    opacity: 1 !important;
    /* Reactivar animación de flotar */
    animation: boaFloat 3s ease-in-out infinite !important;
}

/* 3. TÍTULO PRINCIPAL */
.ghost-text {
    font-family: 'Orbitron', sans-serif; 
    font-size: 1.8rem;
    margin: 0; letter-spacing: 3px;
    color: #ffffff !important; /* Blanco */
    background: none !important;
    -webkit-text-fill-color: #ffffff !important;
    text-shadow: 0 0 20px rgba(255, 255, 255, 0.6) !important; /* Brillo Blanco */
}

/* 4. PESTAÑAS (TABS) */
.ghost-tab {
    border: 1px solid rgba(255, 255, 255, 0.3) !important;
}

.ghost-tab.active {
    border-color: #ffffff !important;
    box-shadow: 0 0 15px rgba(255, 255, 255, 0.4) !important;
    background: rgba(255, 255, 255, 0.1) !important;
}

.ghost-tab .text-layer, 
.ghost-tab i {
    color: #ffffff !important;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.5) !important;
}

/* 5. TARJETAS DEL GRID (APPS A LA CARTA) */
.ghost-card {
    background: rgba(255, 255, 255, 0.05) !important;
    border-color: rgba(255, 255, 255, 0.3) !important;
    opacity: 1 !important;
    filter: none !important;
    transform: none !important;
}

/* Iconos, Títulos y Textos de las tarjetas */
.ghost-card i, 
.ghost-card h4 {
    color: #ffffff !important;
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.4) !important;
}

.ghost-card p {
    color: #cccccc !important; /* Un poco menos brillante para jerarquía */
}

/* 6. TÍTULOS DE SECCIÓN */
.ghost-title-center {
    justify-content: center !important;
    gap: 10px;
    padding-left: 0 !important;
}

.ghost-title-center span:first-child {
    color: #ffffff !important;
    font-weight: 700;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 7. ETIQUETA DE PRECIO */
.ghost-tag {
    background: #ffffff !important;
    color: #000000 !important; /* Texto negro sobre blanco */
    border: none;
    font-weight: 900 !important;
    box-shadow: 0 0 10px rgba(255, 255, 255, 0.5);
}

/* 8. GARANTÍA DE SCROLL */
.boa-tab-content.active {
    display: block !important;
    height: auto !important;
    overflow: visible !important;
}

.boa-body {
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    height: 100%;
    padding-bottom: 50px;
}

/* Botón de cierre grande para "En Proceso" */
.bo-close-big {
    background: none; border: 2px solid #fff;
    color: #fff; font-size: 2rem;
    width: 60px; height: 60px; border-radius: 50%;
    cursor: pointer; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 0 15px rgba(255,255,255,0.3);
}
/* --- NUEVO DASHBOARD DE JUGADOR (XP HUB) --- */
.player-dashboard {
    padding: 20px;
    background: linear-gradient(180deg, rgba(0,20,0,0.9), transparent);
    border-bottom: 1px solid #00ff00;
    display: flex; flex-direction: column; align-items: center;
    text-align: center;
}

.player-avatar-circle {
    width: 80px; height: 80px; border-radius: 50%;
    border: 3px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.4);
    background-size: cover; background-position: center;
    margin-bottom: 10px;
}

.player-level-badge {
    background: #00ff00; color: #000;
    font-family: 'Orbitron'; font-weight: 900;
    padding: 2px 10px; border-radius: 10px;
    font-size: 0.8rem; margin-bottom: 5px;
    display: inline-block;
}

.xp-progress-wrapper {
    width: 100%; max-width: 300px;
    height: 10px; background: #111;
    border-radius: 5px; margin-top: 10px;
    border: 1px solid #333; overflow: hidden;
}

.xp-progress-fill {
    height: 100%; background: #00ff00;
    box-shadow: 0 0 10px #00ff00;
    width: 0%; transition: width 1s ease-out;
}

.xp-stats-text {
    color: #aaa; font-size: 0.8rem; margin-top: 5px; font-family: monospace;
}
/* --- LÓGICA DE PESTAÑAS (VISIBILIDAD) --- */
/* Por defecto oculto */
.boa-tab-content {
    display: none;
    opacity: 0;
    transition: opacity 0.3s ease;
}

/* Estado Activo: Visible */
.boa-tab-content.active {
    display: block !important;
    opacity: 1;
    animation: fadeIn 0.3s ease-out;
}

/* Animación suave */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}
/* =================================================================== */
/*      FIX BOA (TIENDA): LUXURY BOUTIQUE STYLE
/* =================================================================== */

/* 1. EL CONTENEDOR (Overlay) */
body.theme-pastel #boa-overlay {
    background: rgba(255, 255, 255, 0.95) !important;
    backdrop-filter: blur(10px) !important;
}

/* 2. LA TARJETA PRINCIPAL (Adiós Negro y Borde Amarillo) */
body.theme-pastel #boa-content {
    /* Fondo Blanco Puro */
    background: #FFFFFF !important;
    
    /* Borde Verde Elegante */
    border: 1px solid #A5D6A7 !important;
    
    /* Sombra Suave */
    box-shadow: 0 20px 60px rgba(46, 125, 50, 0.15) !important;
    
    /* Matar sombra interna amarilla */
    box-shadow: 0 10px 40px rgba(0,0,0,0.05) !important; 
}

/* 3. TÍTULOS Y TEXTOS */
body.theme-pastel #boa-content h2 {
    color: #1B5E20 !important; /* Verde Bosque */
    text-shadow: none !important;
    font-weight: 900 !important;
}

body.theme-pastel #boa-content p {
    color: #558B2F !important; /* Verde Oliva */
}

/* 4. BOTÓN DE ACCIÓN (Verde Fuerte y Elegante) */
body.theme-pastel .bo-action-btn {
    /* Verde Bosque Intenso */
    background: #1B5E20 !important;
    
    /* Texto Blanco Puro */
    color: #FFFFFF !important;
    
    /* Sombra verde para dar profundidad */
    box-shadow: 0 5px 20px rgba(27, 94, 32, 0.4) !important;
    border: none !important;
    
    /* Pequeña transición para suavidad */
    transition: transform 0.1s ease, background 0.2s !important;
}

/* Efecto al presionar (Se oscurece un poco) */
body.theme-pastel .bo-action-btn:active {
    background: #144a18 !important; /* Un tono más oscuro */
    transform: scale(0.98) !important;
}

/* 5. BOTÓN CERRAR (X) */
body.theme-pastel .bo-close-x {
    color: #1B5E20 !important;
    opacity: 0.5;
}
body.theme-pastel .bo-close-x:hover { opacity: 1; }

/* 6. EMOJIS (Quitar sombra amarilla) */
body.theme-pastel #boa-content div[style*="animation: boa-float"] {
    filter: none !important; /* Quita el glow amarillo */
    text-shadow: 0 5px 10px rgba(0,0,0,0.1);
}
/* =================================================================== */
/*      ARCADE LOBBY 4.0 - ULTRA GAMER (ANIMATED)
/* =================================================================== */

/* 1. FONDO CON MOVIMIENTO (Matrix Grid) */
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 40px; } }

.arcade-lobby-overlay {
    background-color: #000;
    position: relative; overflow: hidden;
}

.arcade-lobby-overlay::before {
    content: ''; position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 2s linear infinite; /* LA REJILLA SE MUEVE */
    z-index: 0; pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, transparent 90%);
}

/* 2. HEADER HUD (GRID SYSTEM - SIN SUPERPOSICIÓN) */
.arcade-header-pro {
    display: grid; 
    /* Columna 1: Botón (50px), Columna 2: Título (Auto), Columna 3: Balance (50px) */
    grid-template-columns: 50px 1fr 50px; 
    align-items: center; justify-items: center;
    padding: 15px; 
    background: #000;
    border-bottom: 2px solid #00ff00;
    box-shadow: 0 0 20px rgba(0, 255, 0, 0.3);
    position: relative; z-index: 10;
}

/* El botón ahora es estático dentro de su celda, no absoluto */
.arcade-back-btn {
    position: relative; top: auto; left: auto; transform: none;
    width: 44px; height: 44px; 
    background: #111; border: 2px solid #00ff00; color: #00ff00;
    border-radius: 10px; cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; box-shadow: 0 0 10px rgba(0,255,0,0.4);
    transition: transform 0.1s;
}
.arcade-back-btn:active { transform: scale(0.9); }

/* Títulos centrados en su columna */
.arcade-titles {
    display: flex; flex-direction: column; align-items: center;
    width: 100%;
}

.arcade-h1 { 
    margin: 0; font-family: 'Orbitron', sans-serif; 
    color: #fff; font-size: 1.8rem; letter-spacing: 2px; line-height: 1;
    text-shadow: 0 0 10px #00ff00; text-transform: uppercase;
    text-align: center;
}
.arcade-sub { 
    margin: 5px 0 0 0; font-family: monospace; font-size: 0.8rem; 
    color: #00ff00; letter-spacing: 3px; text-transform: uppercase;
    animation: blinkText 2s infinite;
}
@keyframes blinkText { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 3. LISTA DE JUEGOS */
.arcade-lobby-grid {
    display: flex; flex-direction: column; gap: 20px;
    padding: 20px; padding-bottom: 120px; position: relative; z-index: 2;
}

/* 4. TARJETAS (ESTILO CARTUCHO NEÓN) */
.game-slot-card {
    position: relative; background: #050505;
    border: 2px solid #333; border-radius: 12px;
    min-height: 100px; display: flex; align-items: center;
    padding: 15px; gap: 15px; cursor: pointer;
    overflow: hidden;
    transition: transform 0.2s;
}

/* 4.1 TARJETA ACTIVA (TRIVIA) - ANIMADA */
@keyframes neonPulseBox {
    0% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.1); border-color: #00ff00; }
    50% { box-shadow: 0 0 25px rgba(0, 255, 0, 0.6), inset 0 0 20px rgba(0, 255, 0, 0.3); border-color: #fff; }
    100% { box-shadow: 0 0 10px rgba(0, 255, 0, 0.2), inset 0 0 10px rgba(0, 255, 0, 0.1); border-color: #00ff00; }
}

.game-slot-card.unlocked {
    background: linear-gradient(90deg, #001a00, #000);
    animation: neonPulseBox 2s infinite alternate;
}

.game-slot-card.unlocked .slot-icon-box { 
    color: #00ff00; font-size: 2.5rem; 
    filter: drop-shadow(0 0 10px #00ff00);
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }

.game-slot-card.unlocked .slot-title { 
    color: #fff; text-shadow: 0 0 10px #00ff00; font-size: 1.1rem;
}

/* 4.2 TARJETA BLOQUEADA */
.game-slot-card.locked { opacity: 0.6; border-color: #222; background: #080808; }
.game-slot-card.locked .slot-icon-box { color: #333; font-size: 2rem; }
.game-slot-card.locked .slot-title { color: #555; }

/* 5. TEXTOS Y DETALLES */
.slot-icon-box { width: 60px; display: flex; justify-content: center; }
.slot-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.slot-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900; 
    margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: 1px;
}

.slot-desc {
    font-family: 'Poppins', sans-serif; font-size: 0.7rem; color: #aaa;
    margin: 0; line-height: 1.2;
}

.reward-pill {
    display: inline-block; margin-top: 8px;
    font-family: 'Orbitron'; font-size: 0.6rem; color: #000;
    background: #00ff00; padding: 3px 8px;
    border-radius: 4px; font-weight: 900;
    width: fit-content; box-shadow: 0 0 10px #00ff00;
}

/* 6. ESTILOS DE LA PANTALLA DE REGLAS (TRIVIA INTRO FIX) */
.modal-card-retro {
    background: #000; border: 2px solid #00ff00;
    width: 90%; max-width: 400px; padding: 25px;
    border-radius: 10px; box-shadow: 0 0 30px rgba(0, 255, 0, 0.2);
    text-align: center; position: relative;
    font-family: 'Poppins', sans-serif;
}

.retro-title {
    font-family: 'Orbitron'; color: #00ff00; font-size: 1.5rem;
    margin: 0 0 20px 0; text-shadow: 0 0 10px #00ff00;
    border-bottom: 1px solid #333; padding-bottom: 10px;
}

.retro-rules-list {
    text-align: left; margin-bottom: 25px; font-size: 0.85rem; color: #ddd;
}
.retro-rules-list p { margin: 8px 0; display: flex; gap: 10px; }
.retro-rules-list i { color: #00ff00; margin-top: 3px; }

.retro-btn-start {
    width: 100%; padding: 15px; background: #00ff00; color: #000;
    border: none; font-family: 'Orbitron'; font-weight: 900; font-size: 1.1rem;
    cursor: pointer; text-transform: uppercase; letter-spacing: 2px;
    animation: pulseBtn 1s infinite;
}
@keyframes pulseBtn { 0% { transform: scale(1); } 50% { transform: scale(1.02); box-shadow: 0 0 20px #00ff00; } 100% { transform: scale(1); } }

/* 7. ANIQUILACIÓN NUCLEAR DE BARRAS (SI ESTO NO FUNCIONA NADA LO HARÁ) */
body.game-mode-active .bottom-nav,
body.game-mode-active nav,
body.game-mode-active #ghost-nav-top,
body.game-mode-active #fab-publish {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    height: 0 !important;
    width: 0 !important;
    z-index: -9999 !important;
    pointer-events: none !important;
}
/* =================================================================== */
/*      ARCADE LOBBY 4.0 - ULTRA GAMER (ANIMATED & CLEAN)
/* =================================================================== */

/* 1. FONDO CON MOVIMIENTO (Matrix Grid) */
@keyframes gridMove { 0% { background-position: 0 0; } 100% { background-position: 0 40px; } }

.arcade-lobby-overlay {
    background-color: #000;
    position: relative; overflow: hidden;
}

.arcade-lobby-overlay::before {
    content: ''; position: absolute; inset: 0;
    background-image: 
        linear-gradient(rgba(0, 255, 0, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(0, 255, 0, 0.1) 1px, transparent 1px);
    background-size: 30px 30px;
    animation: gridMove 2s linear infinite; /* LA REJILLA SE MUEVE */
    z-index: 0; pointer-events: none;
    mask-image: radial-gradient(circle at center, black 0%, transparent 90%);
}

/* 2. HEADER HUD (LIMPIO Y DESPEJADO) */
.arcade-header-pro {
    /* Aumentamos padding y usamos Flex para control total */
    padding: 20px; 
    display: flex; flex-direction: column; align-items: center;
    position: relative; z-index: 2; margin-bottom: 20px;
    border-bottom: 2px solid #00ff00;
    background: rgba(0,0,0,0.8);
    box-shadow: 0 5px 20px rgba(0, 255, 0, 0.2);
}

/* EL BOTÓN SE VA A LA ESQUINA ABSOLUTA (NO SE ENCIMA) */
.arcade-back-btn {
    position: absolute; top: 20px; left: 20px;
    background: #000; border: 2px solid #00ff00; color: #00ff00;
    width: 40px; height: 40px; border-radius: 8px; /* Cuadrado Tech */
    display: flex; align-items: center; justify-content: center;
    font-size: 1.2rem; cursor: pointer; z-index: 20;
    box-shadow: 0 0 10px #00ff00; transition: 0.2s;
}
.arcade-back-btn:active { transform: scale(0.9); box-shadow: 0 0 5px #00ff00; }

.arcade-titles { margin-top: 10px; } /* Empujamos título abajo */

.arcade-h1 { 
    margin: 0; font-family: 'Orbitron', sans-serif; 
    color: #fff; font-size: 2.2rem; letter-spacing: 3px; line-height: 1;
    text-shadow: 2px 2px 0px #00ff00; font-style: italic;
}

.arcade-sub { 
    margin: 5px 0 0 0; font-family: monospace; font-size: 0.8rem; 
    color: #00ff00; letter-spacing: 3px; text-transform: uppercase;
    animation: blinkText 2s infinite;
}
@keyframes blinkText { 0%, 100% { opacity: 1; } 50% { opacity: 0.5; } }

/* 3. LISTA DE JUEGOS */
.arcade-lobby-grid {
    display: flex; flex-direction: column; gap: 20px;
    padding: 20px; padding-bottom: 120px; position: relative; z-index: 2;
}

/* 4. TARJETAS (INTERACTIVAS) */
.game-slot-card {
    position: relative; background: #050505;
    border: 2px solid #333; border-radius: 12px;
    min-height: 100px; display: flex; align-items: center;
    padding: 15px; gap: 15px; cursor: pointer;
    overflow: hidden;
    transition: all 0.3s ease;
}

/* EFECTO DE COLOR AL TOCAR/HOVER */
.game-slot-card:active,
.game-slot-card:hover {
    border-color: var(--slot-color, #00ff00) !important;
    box-shadow: 0 0 20px var(--slot-color, rgba(0,255,0,0.2)) !important;
    transform: scale(1.02);
    z-index: 10; background: #080808;
}

/* COLORES POR JUEGO (VARIABLES) */
.game-slot-card:nth-child(1) { --slot-color: #00ff00; } /* Trivia */
.game-slot-card:nth-child(2) { --slot-color: #ffaa00; } /* Macro */
.game-slot-card:nth-child(3) { --slot-color: #00f3ff; } /* Glow */
.game-slot-card:nth-child(4) { --slot-color: #ff0055; } /* Rhythm */
.game-slot-card:nth-child(5) { --slot-color: #9d00ff; } /* Scan */

/* 4.1 TARJETA DESBLOQUEADA */
.game-slot-card.unlocked {
    background: linear-gradient(90deg, #001a00, #000);
    border-color: #00ff00;
}
.game-slot-card.unlocked .slot-icon-box { 
    color: #00ff00; font-size: 2.5rem; 
    filter: drop-shadow(0 0 10px #00ff00);
    animation: floatIcon 3s ease-in-out infinite;
}
@keyframes floatIcon { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.game-slot-card.unlocked .slot-title { color: #fff; text-shadow: 0 0 10px #00ff00; font-size: 1.1rem; }

/* 4.2 TARJETA BLOQUEADA */
.game-slot-card.locked { opacity: 0.8; border-color: #222; background: #080808; }
.game-slot-card.locked .slot-icon-box { color: #333; font-size: 2rem; }
.game-slot-card.locked .slot-title { color: #555; }
/* Al tocar bloqueado, rojo alerta */
.game-slot-card.locked:active { --slot-color: #ff0000; border-color: #ff0000 !important; }

/* 5. TEXTOS Y DETALLES */
.slot-icon-box { width: 60px; display: flex; justify-content: center; }
.slot-info { flex: 1; display: flex; flex-direction: column; justify-content: center; }

.slot-title {
    font-family: 'Orbitron', sans-serif; font-weight: 900; 
    margin: 0 0 5px 0; text-transform: uppercase; letter-spacing: 1px;
}

.slot-desc {
    font-family: 'Poppins', sans-serif; font-size: 0.7rem; color: #aaa;
    margin: 0; line-height: 1.2;
}

/* BOTÓN DE ACCIÓN (PARPADEANTE) */
.action-btn-retro {
    display: inline-block; margin-top: 8px;
    font-family: 'Orbitron'; font-size: 0.7rem; color: #000;
    background: #00ff00; padding: 4px 12px;
    border-radius: 4px; font-weight: 900;
    text-transform: uppercase; cursor: pointer; width: fit-content;
    box-shadow: 0 0 10px #00ff00;
    animation: flashBtn 1.5s infinite; /* Parpadeo constante */
}

@keyframes flashBtn {
    0% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.7; transform: scale(0.98); }
    100% { opacity: 1; transform: scale(1); }
}

/* Modificación para bloqueados */
.game-slot-card.locked .action-btn-retro {
    background: #333; color: #888; box-shadow: none; animation: none;
}

/* INDICADOR DE ESTADO (DERECHA) */
.lock-status { display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.game-slot-card.unlocked .lock-status { color: #00ff00; }
.game-slot-card.locked .lock-status { color: #ff0055; }

/* ANIQUILACIÓN NUCLEAR DE BARRAS */
body.game-mode-active .bottom-nav,
body.game-mode-active nav,
body.game-mode-active #ghost-nav-top,
body.game-mode-active #fab-publish {
    display: none !important; visibility: hidden !important;
    opacity: 0 !important; height: 0 !important; width: 0 !important;
    z-index: -9999 !important; pointer-events: none !important;
}