/* =================================================================== */
/*      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 - NEON VERDE)
/* =================================================================== */

.xp-hub-card {
    background: var(--gamer-bg);
    border: 2px solid #333;
    border-radius: 30px;
    width: 95%; max-width: 400px;
    height: 85vh; /* Altura fija para scroll */
    margin: auto;
    
    display: flex; flex-direction: column;
    overflow: hidden;
    position: relative;
    box-shadow: 0 0 50px rgba(0,0,0,0.9);
    color: #fff;
}

/* 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; }