        /* ==========================================
           1. ESTILOS, VARIABLES Y ADAPTABILIDAD
           ========================================== */
        @font-face {
            font-family: 'MinecraftSGA';
            src: url('fonts/minecraft-enchantment.ttf') format('truetype');
            font-weight: normal;
            font-style: normal;
        }

        :root { --primary: #00ffcc; --warning: #ffaa00; --danger: #ff4444; --plasma: #00bbff; --gold: #ffd700; --cluster: #ff00ff; --pem: #00ffaa; --bh: #aa00ff; }

        body { 
            margin: 0; background: #050505; color: white; 
            font-family: 'Segoe UI', sans-serif; overflow: hidden; touch-action: none; 
            display: flex; align-items: center; justify-content: center; 
            height: 100dvh; width: 100vw; 
        }
        
        #game-wrapper { 
            position: relative; 
            background: #000; 
            overflow: hidden; 
            width: 100vw;
            height: 100dvh;
            display: flex;
            align-items: center;
            justify-content: center;
        }
        
        canvas { 
            width: 100%; 
            height: 100%; 
            display: block; 
            object-fit: contain; 
        }

        /* HUD PAUSA: Limpio, sin recuadro ni fondo */
        #mobile-pause-btn { 
            position: absolute; top: 30px; right: 15px; 
            width: 50px; height: 50px; 
            background: transparent !important; 
            border: none !important; 
            outline: none !important;
            color: white; font-size: 30px; 
            display: none; align-items: center; justify-content: center; 
            z-index: 20; cursor: pointer; 
        }

        /* Panel Admin para Celular */
        .admin-controls-mobile {
            position: absolute; bottom: 80px; left: 10px;
            display: none; flex-direction: column; gap: 8px;
            z-index: 20;
        }
        .btn-admin {
            width: 35px; height: 35px; border-radius: 5px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            color: #aaa; font-weight: bold; font-size: 14px;
            display: flex; align-items: center; justify-content: center;
        }
        
        /* Límite elegante para pantallas de PC (Pantallas anchas) */
        @media (min-width: 768px) {
            #game-wrapper { 
                /* FIX: Matemáticas estrictas. JAMÁS superará el alto de tu pantalla ni los 1000px */
                height: 100dvh;
                width: calc(100dvh * 0.7);
                max-width: 700px; 
                max-height: 1000px; 
                
                border: 1px solid #222; 
                box-shadow: 0 0 30px rgba(0,255,204,0.05); 
                display: block; 
            }
            canvas {
                object-fit: fill; /* En PC llena el molde matemáticamente perfecto */
            }
            
            /* Botón Abandonar (PC: Gris base, Rojo traslúcido al acercar el cursor) */
            #btn-abandon { background: #444; color: #aaa; transition: 0.3s; }
            #btn-abandon:hover { background: rgba(200, 50, 50, 0.75) !important; color: white !important; }
        }
        
        /* TOP BAR CLÁSICA */
        .top-bar { position: absolute; top: 0; left: 0; width: 100%; height: 20px; background: #111; border-bottom: 2px solid var(--primary); z-index: 10; display: none; }
        #area-progress { height: 100%; width: 0%; background: linear-gradient(90deg, #005544, var(--primary)); transition: width 0.1s linear; }
        .area-label { position: absolute; top: 2px; left: 50%; transform: translateX(-50%); font-size: 12px; font-weight: bold; color: white; text-shadow: 1px 1px 2px black; z-index: 10; pointer-events: none;}
        #boss-hp-bar { position: absolute; top: 0; left: 0; height: 8px; width: 0%; background: var(--danger); z-index: 9; transition: width 0.1s linear; display: none; }

        /* HUD FLOTANTE (PC) */
        #hud-credits-box { position: absolute; top: 30px; left: 15px; font-size: 1.2rem; color: var(--gold); font-weight: bold; text-shadow: 2px 2px 4px black; z-index: 10; pointer-events: none; display: none; }
        #hud-lives-box { position: absolute; top: 55px; left: 15px; font-size: 1.2rem; color: var(--danger); text-shadow: 2px 2px 4px black; z-index: 10; pointer-events: none; display: none; }
        
        /* HUD DE ARMAS (PC) */
        #hud-weapons { position: absolute; top: 50%; left: 15px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 6px; align-items: flex-start; z-index: 10; pointer-events: none; display: none; }
        .wpn-slot { position: relative; font-size: 1rem; font-weight: bold; text-shadow: 2px 2px 2px black; padding: 4px 8px; overflow: hidden; border-radius: 4px; background: rgba(0,0,0,0.4); border: 1px solid rgba(255,255,255,0.1); }
        .wpn-cd-bar { position: absolute; top: 0; left: 0; height: 100%; background: rgba(255,255,255,0.3); z-index: -1; transition: width 0.1s linear; }

        /* CONTROLES MÓVILES */
        .mobile-controls { position: absolute; top: 50%; right: 10px; transform: translateY(-50%); display: flex; flex-direction: column; gap: 5px; z-index: 15; display: none; }
        .btn-special { position: relative; width: 45px; height: 45px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; cursor: pointer; border: none; outline: none; background: rgba(0,0,0,0.5); color: white; user-select: none; box-shadow: 0 4px 8px rgba(0,0,0,0.5); transition: 0.2s; }
        .btn-special.no-ammo { opacity: 0.4; }
        .ammo-badge { position: absolute; bottom: -2px; right: -2px; background: #000; color: white; font-size: 11px; font-weight: bold; padding: 2px 5px; border-radius: 10px; border: 1px solid #fff; }
        .btn-special.has-ammo .ammo-badge { background: #0f0; color: #000; border: none; }

        /* Modales */
        .modal { position: absolute; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.95); display: flex; flex-direction: column; align-items: center; justify-content: center; z-index: 100; text-align: center; }
        input[type="text"] { padding: 12px; font-size: 1.2rem; border-radius: 5px; border: 2px solid var(--primary); background: #111; color: white; margin: 10px; text-align: center; outline: none; }
        button { padding: 12px 25px; font-size: 1rem; cursor: pointer; margin: 8px; background: var(--primary); border: none; border-radius: 5px; font-weight: bold; color: #000; transition: 0.2s; text-transform: uppercase; }
        button:hover { filter: brightness(1.2); }
        
        /* Botón Abandonar (Celular por defecto: Rojo tenue de advertencia) */
        #btn-abandon { background: rgba(180, 40, 40, 0.6); color: white; }
        
        /* Controles Globales */
        .control-btns { position: absolute; top: 30px; right: 15px; display: flex; flex-direction: column; gap: 10px; z-index: 200; }
        .icon-btn { font-size: 20px; cursor: pointer; background: rgba(255,255,255,0.1); border-radius: 50%; width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; border: 1px solid #555; transition: 0.3s; color: white; }
        
        /* Animaciones CSS Base */
        @keyframes mShoot { 0% { top: 90%; } 100% { top: -10%; } }
        @keyframes mDrop { 0% { top: -10%; } 100% { top: 110%; } }
        .m-laser { color: yellow; font-weight: bold; animation: mShoot 0.4s linear infinite; position: absolute; }
        .m-enemy { animation: mDrop 2.5s linear infinite; position: absolute;}
        .mock-bg { position: absolute; top: 0; left: 0; width: 100%; height: 100%; z-index: 1; opacity: 0; transition: opacity 0.4s; pointer-events: none; overflow: hidden; }
        
        /* Menu Paneles */
        #modal-mode { display: none; flex-direction: row; width: 100%; height: 100%; padding: 0; background: #000; z-index: 101; }
        .mode-panel { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; cursor: pointer; transition: 0.4s ease; filter: grayscale(100%); position: relative; overflow: hidden; border: 1px solid #222; }
        .mode-panel:hover { flex: 1.5; filter: grayscale(0%); }
        .mode-panel:hover .mock-bg { opacity: 0.6; } 
        .mode-content { z-index: 2; background: rgba(0,0,0,0.85); padding: 20px; border-radius: 10px; border: 2px solid #555; pointer-events: none; width: 80%; }
        
        .settings-box { background: #111; border: 2px solid #555; padding: 20px; border-radius: 10px; width: 85%; max-width: 450px; text-align: left; }
        .toggle-group { display: flex; justify-content: space-between; align-items: center; margin: 15px 0; background: #222; padding: 8px; border-radius: 8px; }
        .toggle-btn { padding: 8px; border-radius: 5px; cursor: pointer; background: #333; border: 1px solid #555; color: #888; font-weight: bold; text-align: center; transition: 0.3s; width: 48%; font-size: 0.8rem; }
        .toggle-btn.active { background: var(--primary); color: #000; border-color: white; }
        .vol-container { margin: 15px 0; }
        .vol-container label { color: var(--primary); font-weight: bold; font-size: 0.9rem; display: block;}
        input[type=range] { width: 100%; margin-top: 5px; }

        /* Tienda 2x2 */
        .shop-wrapper { display: flex; align-items: center; justify-content: center; gap: 10px; width: 95%; max-width: 600px; margin-top: 10px; }
        .shop-nav { font-size: 30px; cursor: pointer; background: none; border: none; color: white; opacity: 0.3; transition: 0.3s; padding:0 10px; }
        .shop-nav.active { opacity: 1; color: var(--primary); text-shadow: 0 0 10px var(--primary); }
        .shop-container { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; width: 100%; }
        .shop-item { background: #111; border: 1px solid #444; border-radius: 8px; padding: 12px; transition: 0.3s; display: flex; flex-direction: column; justify-content: space-between; }
        .shop-item h3 { font-size: 0.85rem; margin: 0 0 5px 0; }
        .shop-item p { font-size: 0.65rem; color: #aaa; min-height: 45px; margin: 0 0 10px 0; line-height: 1.2; font-style: italic; }
        .shop-locked { border-color: #222; opacity: 0.3; pointer-events: none; }

        /* Ads */
        .progress-bg { width: 80%; max-width: 300px; background: #222; height: 15px; border-radius: 10px; margin: 20px 0; overflow: hidden; border: 1px solid #444; }
        #ad-bar { width: 0%; height: 100%; background: var(--warning); transition: width 0.1s linear; }
        .ad-placeholder { width: 300px; height: 250px; background: #222; border: 1px dashed #555; display: flex; align-items: center; justify-content: center; color: #555; margin: 15px auto; font-size: 12px; }
        table { border-collapse: collapse; margin: 15px auto; width: 80%; color: white; }
        th, td { border: 1px solid #333; padding: 8px; text-align: center; }

        /* --- ESTILOS DE REACCIONES --- */
        .reaction-wrapper {
            position: relative;
            display: inline-block;
        }
        .reaction-balloon {
            position: absolute;
            bottom: 100%;
            left: 0;
            background: white;
            border-radius: 30px;
            box-shadow: 0 5px 15px rgba(0,0,0,0.15);
            display: flex;
            gap: 12px;
            padding: 8px 15px;
            opacity: 0;
            visibility: hidden;
            transform: translateY(10px) scale(0.9);
            transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
            z-index: 10;
            margin-bottom: 10px;
            border: 1px solid #eee;
        }
        /* Al pasar el mouse, el globo aparece y sube */
        .reaction-wrapper:hover .reaction-balloon {
            opacity: 1;
            visibility: visible;
            transform: translateY(0) scale(1);
        }
        .reaction-emoji-btn {
            background: transparent;
            border: none;
            font-size: 28px;
            cursor: pointer;
            transition: transform 0.2s ease, filter 0.2s;
            padding: 0;
            margin: 0;
            outline: none;
        }
        /* Efecto de salto al tocar el emoji */
        .reaction-emoji-btn:hover {
            transform: scale(1.3) translateY(-5px);
        }
        .reaction-trigger {
            background: #f0f3f2;
            border: 1px solid #ddd;
            padding: 8px 15px;
            border-radius: 20px;
            cursor: pointer;
            font-weight: bold;
            color: #555;
            display: flex;
            align-items: center;
            gap: 8px;
            transition: 0.2s;
            outline: none;
            font-size: 14px;
        }
        .reaction-trigger:hover { background: #e2e8f0; }
        .reaction-trigger.reacted {
            background: rgba(0, 255, 204, 0.15);
            border-color: var(--primary);
            color: #000;
        }

        /* ==========================================
           1 LANDING PAGE
           ========================================== */
        #landing-page {
            position: absolute; top: 0; left: 0; width: 100vw; height: 100dvh;
            background: #0099cc; 
            z-index: 5000; /* Por encima de todo el juego */
            display: flex; flex-direction: column; overflow-y: auto;
            font-family: Arial, sans-serif; color: black;
        }

        /* Cabecera y Navegación */
        .lp-header { 
            display: flex; background: white; align-items: center; padding: 0 20px; 
            box-shadow: 0 4px 6px rgba(0,0,0,0.3); flex-wrap: wrap; justify-content: space-between; 
            position: sticky; top: 0; z-index: 5001; /* Lo mantiene pegado arriba y por encima de todo */
        }
        /* --- LOGO Y ANIMACIÓN DE VUELO MUNDIAL --- */
        .lp-logo { 
            font-size: 28px; 
            font-weight: bold; 
            letter-spacing: 2px; 
            padding: 10px 15px;
            flex-shrink: 0; 
            position: relative; /* La pista de despegue */
            /* FIX: Eliminamos el overflow: hidden; para que la nave pueda escapar */
            cursor: default;
        }

        /* La nave preparada fuera del radar */
        .lp-logo::before {
            content: "";
            position: absolute;
            top: 50%;
            left: -40px; /* Escondida a la izquierda */
            width: 35px; /* Un poco más grande para el viaje largo */
            height: 35px;
            background-image: url('img/jugador.png');
            background-size: contain;
            background-repeat: no-repeat;
            transform: translateY(-50%) rotate(90deg); 
            z-index: 9999; /* FIX: Nivel máximo para pasar encima de las pestañas y el audio */
            pointer-events: none;
            opacity: 0;
        }

        /* El disparo de la animación al hacer hover */
        .lp-logo:hover::before {
            /* 1.2 segundos para que se alcance a ver cruzando toda la pantalla */
            animation: flyAcross 1.5s cubic-bezier(0.4, 0, 0.2, 1) forwards; 
        }

        /* Estilos para el selector de idiomas */
        .lang-dropdown {
            background: #ffffff; /* Fondo blanco para igualar el menú */
            color: #333333; /* Texto oscuro */
            border: 1px solid #cccccc; /* Borde sutil */
            padding: 8px 10px;
            border-radius: 6px;
            font-size: 13px;
            font-weight: bold;
            cursor: pointer;
            outline: none;
            margin-left: 15px;
            /* LA CLAVE: Evita que el menú rompa la fila */
            max-width: 160px; 
            text-overflow: ellipsis;
            white-space: nowrap;
            overflow: hidden;
        }

        /* Opciones del menú desplegable */
        .lang-dropdown option {
            background: #ffffff;
            color: #333333;
        }

        /* Opcional: Animación del Glitch para el HUD cuando se inhabilitan armas */
        @keyframes glitchAnim {
            0% { transform: translate(0) }
            20% { transform: translate(-2px, 1px) }
            40% { transform: translate(-1px, -1px) }
            60% { transform: translate(2px, 1px) }
            80% { transform: translate(1px, -1px) }
            100% { transform: translate(0) }
        }

        /* --- ESTILOS DEL CANAL DE COMUNICACIÓN (CONTACTO) --- */
        .contact-form { 
            display: flex; flex-direction: column; gap: 15px; 
            max-width: 650px; margin: 0 auto; 
            background: #f4f7f6; padding: 30px; 
            border-radius: 8px; border: 2px solid #ddd; 
        }
        
        .contact-form .form-row { display: flex; gap: 15px; }
        .contact-form .form-group { display: flex; flex-direction: column; gap: 5px; }
        
        .contact-form label { 
            font-size: 12px; font-weight: bold; color: #555; letter-spacing: 1px;
        }
        
        /* FIX: Forzar fondo blanco y texto oscuro anulando los estilos del juego */
        .contact-form input, .contact-form textarea, .contact-form select { 
            padding: 12px; border: 1px solid #ccc; border-radius: 5px; 
            font-family: 'Segoe UI', sans-serif; font-size: 15px; transition: 0.3s;
            background-color: #ffffff !important; 
            color: #222 !important;
            box-sizing: border-box;
            width: 100%;
            margin: 0 !important; /* Elimina el margen fantasma del login */
            text-align: left !important; /* Obliga al texto a estar a la izquierda */
        }
        
        /* FIX: Evitar que el autocompletado del navegador lo pinte de negro u otro color */
        .contact-form input:-webkit-autofill,
        .contact-form textarea:-webkit-autofill,
        .contact-form select:-webkit-autofill {
            -webkit-box-shadow: 0 0 0px 1000px #ffffff inset !important;
            -webkit-text-fill-color: #222 !important;
        }

        .contact-form input:focus, .contact-form textarea:focus, .contact-form select:focus { 
            outline: none; border-color: #70b382; box-shadow: 0 0 8px rgba(112, 179, 130, 0.4); 
        }
        
        /* El Botón Verde a Medida */
        .btn-submit-green {
            width: 100%; padding: 15px; margin-top: 5px;
            font-size: 16px; font-weight: bold; letter-spacing: 1px;
            border: none; border-radius: 5px; cursor: pointer; transition: 0.2s;
            background-color: #7cbda0; /* Verde pálido / sereno */
            color: white;
            text-transform: uppercase;
        }
        .btn-submit-green:hover {
            background-color: #3e9e67; /* Verde vivo pero sin quemar la pupila */
        }
        .btn-submit-green:active {
            transform: scale(0.98); /* Pequeño efecto de pulsación */
        }
        /* --- ESTILOS DEL ENLACE DE APOYO (MONETAG) --- */
        .support-text {
            text-align: center;
            font-size: 11px;
            color: #333;
            margin-top: 30px;
            font-weight: bold;
            text-transform: uppercase;
        }
        .support-link {
            color: #0099cc; /* Azul base */
            text-decoration: none;
            transition: color 0.3s ease;
        }
        .support-link:hover {
            color: #0044aa; /* Azul mucho más oscuro al pasar el cursor */
            text-decoration: underline;
        }
        /* Si el piloto está en celular, ponemos las casillas una debajo de otra */
        @media (max-width: 600px) {
            .contact-form .form-row { flex-direction: column; gap: 15px; }
        }
        /*termina estilo de comunicacion*/

        @keyframes flyAcross {
            0% { left: -40px; opacity: 0; }
            5% { opacity: 1; } /* Aparece sólida rápidamente */
            90% { opacity: 1; }
            100% { left: 100vw; opacity: 0; } /* FIX: Vuela hasta el límite derecho de tu monitor */
        }

        /* FIX MÓVIL: Estilos de la nueva arquitectura (Ocultos en PC por defecto) */
        .mobile-only { display: none; }
        .hamburger-menu { display: none; }
        .overlay-menu { display: none; }
        .main-content-wrapper { width: 100%; height: 100%; display: flex; flex-direction: column; overflow-y: auto;}

        .lp-nav { 
            display: flex; flex-wrap: wrap; gap: 20px; flex: 1; 
            justify-content: center;
            padding: 0; margin: 0; 
        }
        .header-right-controls {
            display: flex; align-items: center; gap: 15px; flex-shrink: 0;
        }
        .centered-player {
            margin: 20px auto 30px auto !important; /* Lo centra horizontalmente y da espacio abajo */
            width: fit-content !important; /* Se ajusta a su contenido */
            max-width: 100%;
        }
        
        /* Pestañas (Blancas por defecto, Amarillas al hover, Hundimiento al clic) */
        .lp-tab { 
            padding: 15px 20px; border: none; background: white; cursor: pointer; 
            font-weight: bold; border-left: 1px solid #ddd; border-right: 1px solid #ddd; 
            transition: all 0.1s ease; /* Transición rápida para el clic */
            font-size: 14px; text-transform: uppercase; 
        }
        .lp-tab:hover { background: #ffd700; color: black; } 
        .lp-tab:active { transform: scale(0.92); background: #e6c200; } /* Efecto de botón presionado */
        .lp-tab.active { border-bottom: 4px solid #0099cc; }

        /* Estilos para la Imagen del Título Central */
        .lp-title-img {
            display: block; /* Permite el centrado */
            margin: 0 auto 20px auto; /* Centrada con espacio saludable abajo */
            max-width: 100%; /* FUNDAMENTAL: Se contrae en celulares */
            width: 700px; /* Tamaño máximo objetivo para Desktop (No es enorme) */
            height: auto; /* Mantiene la proporción */
            max-height: 400px; /* Restricción vertical máxima */
            object-fit: contain; /* Buen fallback para la proporción */
        }

        /* Contenedor de bienvenida centrado */
        .update-intro {
            text-align: center; /* Centra solo este bloque */
            margin-bottom: 30px; /* Separa el texto de las tarjetas */
        }
        
        /* --- ESTILO CRISTAL MINIMALISTA */
        .lp-audio-container { 
            background: rgba(255,255,255,0.9); backdrop-filter: blur(10px); 
            border-radius: 30px; padding: 10px 20px; display: flex; gap: 15px; 
            align-items: center; color: #333; box-shadow: 0 4px 15px rgba(0,0,0,0.1); 
            border: 1px solid rgba(0,0,0,0.1); width: 450px; flex-shrink: 0;
        }
        
        .player-controls { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
        .player-controls button { background: transparent; border: none; color: #333; cursor: pointer; font-size: 18px; padding: 0 5px; transition: 0.2s; font-weight: bold; }
        .player-controls button:hover { color: #0099cc; transform: scale(1.2); }
        
        .player-progress-area { display: flex; flex-direction: column; flex: 1; min-width: 0; padding: 0 5px; }
        .player-info-text { display: flex; justify-content: space-between; align-items: center; font-size: 12px; font-weight: bold; color: #0099cc; margin-bottom: 5px; }
        
        #player-track-name { flex: 1; overflow: hidden; white-space: nowrap; margin-right: 10px; }
        #player-time { white-space: nowrap; flex-shrink: 0; }

        /* Personalización de las barras (Sliders) */
        input[type=range].player-slider { -webkit-appearance: none; width: 100%; background: transparent; margin: 0; padding: 5px 0; }
        input[type=range].player-slider:focus { outline: none; }
        input[type=range].player-slider::-webkit-slider-runnable-track { width: 100%; height: 5px; background: #ddd; border-radius: 3px; cursor: pointer; }
        input[type=range].player-slider::-webkit-slider-thumb { -webkit-appearance: none; height: 13px; width: 13px; border-radius: 50%; background: #0099cc; margin-top: -4px; cursor: pointer; transition: 0.1s; }
        input[type=range].player-slider::-webkit-slider-thumb:hover { transform: scale(1.3); background: #ffd700; }
        
        .player-volume-area { display: flex; align-items: center; gap: 5px; flex-shrink: 0; }
        .player-volume-area button { background: transparent; border: none; color: #333; cursor: pointer; font-size: 16px; padding: 0; }
        .vol-slider-lp { width: 60px !important; }
        /* AQUI TERMINA EL ESTILO CRISTAL */

        /* Contenedor Principal (Distribución Responsiva) */
        .lp-main { display: flex; flex: 1; width: 100%; max-width: 1600px; margin: 20px auto; gap: 20px; padding: 0 20px; box-sizing: border-box; }
        
        /* Contenedores de Anuncios Invisibles y Flexibles */
        .lp-ad-side { position: sticky; top: 20px; flex: 1; min-width: 160px; max-width: 350px; height: calc(100vh - 120px); min-height: 600px; overflow: hidden; display: flex; justify-content: center; }
        
        /* Caja Blanca Central (Tamaño controlado) */
        .lp-content-box { flex: 2; max-width: 900px; background: white; padding: 40px; box-shadow: 0 0 15px rgba(0,0,0,0.2); border-radius: 8px; min-height: 600px; font-size: 18px; line-height: 1.6; transition: background 0.3s; }
        
        /* Modo Cyber (Se activa con JS para ocultar la caja blanca) */
        .lp-content-box.cyber-mode {
            background: transparent !important;
            box-shadow: none !important;
            padding: 0 !important;
        }
        .lp-pane { display: none; } 
        .lp-pane.active { display: block; }

        /* Controles de Audio Customizados */
        .lp-audio-wrapper { display: flex; align-items: center; gap: 10px; }
        .lp-audio-btn { background: #0099cc; color: white; border: none; font-size: 16px; padding: 8px 12px; cursor: pointer; border-radius: 5px; transition: 0.2s; font-weight: bold; }
        .lp-audio-btn:hover { background: #ffd700; color: black; }
        .lp-audio-btn:active { transform: scale(0.9); }

        /* Lista de Reproducción Interactiva */
        #lp-playlist-display { list-style: none; padding: 0; margin-top: 20px; border: 1px solid #ddd; border-radius: 5px; }
        .playlist-item { padding: 12px 15px; border-bottom: 1px solid #eee; cursor: pointer; transition: 0.2s; font-weight: bold; color: #555; }
        .playlist-item:last-child { border-bottom: none; }
        .playlist-item:hover { background: #f9f9f9; padding-left: 25px; border-left: 5px solid #ffd700; color: #000; }
        .playlist-item.playing { background: #e0f7fa; padding-left: 25px; border-left: 5px solid #0099cc; color: #0099cc; }

        /* --- ARCHIVO CLASIFICADO (PERSONAJES) --- */
        .char-archive-wrapper { position: relative; max-width: 750px; margin: 20px auto 0 auto; }
        .char-archive-card { background-color: #ebefb5; padding: 20px; border-radius: 8px; box-shadow: 0 5px 15px rgba(0,0,0,0.15); border: 1px solid #d1d68d; }
        
        .char-top-row { display: flex; gap: 15px; margin-bottom: 15px; }
        
        .char-photo-box { flex: 1; background: white; border: 1px solid #777; border-radius: 6px; position: relative; display: flex; align-items: center; justify-content: center; min-height: 220px; }
        .char-photo-box img { max-width: 180px; height: auto; image-rendering: pixelated; }
        
        .char-info-col { flex: 1; display: flex; flex-direction: column; gap: 10px; }
        .char-info-box { flex: 1; border: 1px solid #777; border-radius: 6px; position: relative; display: flex; align-items: flex-end; justify-content: flex-end; padding: 12px; background: transparent; }
        
        .char-label { position: absolute; top: 5px; left: 10px; font-size: 11px; color: #555; text-transform: uppercase; font-family: monospace; letter-spacing: 1px; }
        .char-value { font-size: 16px; color: #0055aa; font-weight: bold; text-align: right; text-transform: uppercase; }
        
        .char-profile-box { border: 1px solid #777; border-radius: 6px; position: relative; padding: 25px 15px 15px 15px; background: transparent; }
        .char-desc-text { color: #0055aa; text-align: justify; font-size: 15px; line-height: 1.5; max-height: 160px; overflow-y: auto; padding-right: 10px; font-weight: 500; }
        
        /* Estilizar el scroll interno del perfil */
        .char-desc-text::-webkit-scrollbar { width: 6px; }
        .char-desc-text::-webkit-scrollbar-track { background: rgba(0,0,0,0.05); border-radius: 3px; }
        .char-desc-text::-webkit-scrollbar-thumb { background: #0099cc; border-radius: 3px; }
        
        /* Botones de Navegación Fijos al centro lateral */
        .char-nav-btn { position: absolute; top: 50%; transform: translateY(-50%); background: #0099cc; color: white; border: none; font-size: 20px; padding: 12px 15px; cursor: pointer; border-radius: 4px; z-index: 10; transition: 0.1s; }
        .char-nav-btn:hover { background: #ffd700; color: black; }
        .char-nav-btn:active { transform: translateY(-50%) scale(0.9); }
        .char-nav-btn.left { left: -20px; }
        .char-nav-btn.right { right: -20px; }

        /* Tarjetas de Registro de Actualizaciones */
        .update-list { 
            list-style-type: none; 
            padding: 0; 
            margin: 20px 0; 
        }
        .update-card {
            background-color: #afc2c2; /* Color del recuadro */
            color: #ffffff; /* Texto para contraste */
            padding: 15px 20px;
            border-radius: 12px;
            margin-bottom: 15px;
            box-shadow: 0 4px 6px rgba(0,0,0,0.1);
            line-height: 1.5;
            font-size: 15px;
        }
        .update-card strong {
            display: block;
            font-size: 16px;
            margin-bottom: 5px;
            color: #000; /* Mantenemos el negro fuerte para el título de la tarjeta */
            text-transform: uppercase;
        }

        /* --- TERMINAL DE HISTORIA Y EPÍLOGO (BLINDADA) --- */
        .lore-terminal {
            background-color: #050505 !important; /* Fuerza el fondo negro retro */
            border: 2px solid var(--primary) !important;
            border-radius: 8px;
            padding: 30px;
            font-family: 'Courier New', Courier, monospace;
            position: relative; /* FUNDAMENTAL: Atrapa las scanlines adentro */
            overflow: hidden; /* Corta lo que intente salir */
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.2) inset;
            width: 100%;
            box-sizing: border-box;
            min-height: 350px; /* Crece con el texto hacia abajo */
            margin: 0 auto;
        }

        /* Scanlines (Líneas de monitor antiguo) */
        .lore-terminal::before {
            content: "";
            position: absolute;
            top: 0; left: 0; width: 100%; height: 100%;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%);
            background-size: 100% 4px;
            z-index: 2;
            pointer-events: none;
        }

        /* Texto Cyan Resplandeciente */
        .lore-text-content, #lore-typewriter, #epilogue-typewriter {
            position: relative;
            z-index: 3;
            font-size: 16px;
            line-height: 1.6;
            text-align: left;
            color: var(--primary) !important; /* Fuerza el color Cyan pase lo que pase */
            text-shadow: 0 0 5px var(--primary); /* Efecto de resplandor */
            white-space: pre-wrap;
            margin: 0;
        }

        /* Cursor Parpadeante */
        .lore-cursor {
            display: inline-block;
            width: 10px;
            height: 18px;
            background-color: var(--primary);
            animation: blink 1s step-end infinite;
            vertical-align: middle;
            margin-left: 5px;
            position: relative;
            z-index: 3;
        }
        @keyframes blink { 0%, 100% { opacity: 1; } 50% { opacity: 0; } }
      
        /* Estilo Cyberpunk para la barra de scroll del Epílogo */
        #modal-epilogue .lore-text-content::-webkit-scrollbar { width: 5px; }
        #modal-epilogue .lore-text-content::-webkit-scrollbar-track { background: rgba(0, 255, 204, 0.1); border-radius: 5px;}
        #modal-epilogue .lore-text-content::-webkit-scrollbar-thumb { background: var(--primary); border-radius: 5px; }

        /* --- ESTILOS DEL BANNER DE COOKIES --- */
        #cookie-banner {
            position: fixed; 
            bottom: 0; left: 0; 
            width: 100vw; 
            background: rgba(15, 15, 15, 0.98); 
            color: white;
            z-index: 9999; 
            padding: 20px; 
            box-sizing: border-box;
            border-top: 3px solid var(--primary);
            box-shadow: 0 -5px 20px rgba(0,0,0,0.5);
        }
        .cookie-content { 
            max-width: 1000px; 
            margin: 0 auto; 
            display: flex; 
            align-items: center; 
            justify-content: space-between; 
            gap: 20px; 
        }
        .cookie-text { flex: 2; font-size: 14px; line-height: 1.5; color: #ddd; text-align: left; }
        .cookie-btns { flex: 1; display: flex; gap: 10px; justify-content: flex-end; }
        
        .btn-cookie-link { 
            background: transparent; border: 1px solid var(--primary); color: var(--primary); 
            padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s;
        }
        .btn-cookie-link:hover { background: rgba(0, 255, 204, 0.2); }
        
        .btn-cookie-accept {
            background: var(--primary); border: none; color: black; 
            padding: 10px 20px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s;
        }
        .btn-cookie-accept:hover { background: white; transform: scale(1.05); }
        .btn-cookie-reject {
            background: #444; border: 1px solid #666; color: white; 
            padding: 10px 15px; border-radius: 5px; cursor: pointer; font-weight: bold; transition: 0.2s;
        }
        .btn-cookie-reject:hover { background: #ff4444; color: white; border-color: #ff4444; }

        /* --- ESTILOS DE TUS IMÁGENES DE LOGIN --- */
        .img-login-pc { width: 100px; height: auto; border-radius: 8px; transition: 0.2s; display: block; }
        .img-login-pc:hover { filter: brightness(1.1); transform: scale(1.05); }

        .img-login-movil { width: 80px; height: auto; border-radius: 8px; transition: 0.2s; display: none; }
        .img-login-movil:hover { filter: brightness(1.1); transform: scale(1.05); }
        
        /* --- ESTILOS DE AUTENTICACIÓN (LOGIN NAV) --- */
        .auth-container { position: relative; display: inline-block; }
        .btn-login-nav { background-color: #1a408b; color: white; border: none; border-radius: 6px; padding: 8px 16px; font-size: 16px; cursor: pointer; display: flex; align-items: center; gap: 8px; transition: 0.3s; font-weight: bold; }
        .btn-login-nav:hover { background-color: #122d63; }
        .btn-profile-nav { background-color: white; border: 1px solid #ccc; border-radius: 20px; padding: 4px 12px 4px 4px; display: flex; align-items: center; gap: 8px; cursor: pointer; transition: 0.2s; }
        .btn-profile-nav:hover { background-color: #f0f0f0; }
        .btn-profile-nav img { width: 30px; height: 30px; border-radius: 50%; object-fit: cover; background: #000; }
        #profileNameDisplay { text-transform: none !important; }
        .chevron { font-size: 10px; color: #555; }
        .profile-dropdown { position: absolute; top: 120%; right: 0; width: 220px; background-color: white; border-radius: 8px; box-shadow: 0px 4px 15px rgba(0,0,0,0.3); z-index: 9000; overflow: hidden; border: 1px solid #eee; }
        .profile-dropdown.hidden { display: none !important; }
        .dropdown-header { padding: 15px; background-color: #f8f9fa; text-align: center; }
        .rank-badge { font-size: 12px; font-weight: bold; color: #1a408b; text-transform: uppercase; }
        .email-text { margin: 5px 0 0 0; font-size: 11px; color: #777; word-break: break-all; }
        .dropdown-menu { list-style: none; margin: 0; padding: 0; }
        .dropdown-menu li { padding: 12px 15px; cursor: pointer; font-size: 14px; color: #333; transition: 0.2s; display: flex; align-items: center; gap: 10px; text-align: left; margin: 0;}
        .dropdown-menu li:hover { background-color: #f1f1f1; filter: brightness(1); }
        .dropdown-menu hr { margin: 0; border: 0; border-top: 1px solid #eee; }
        .logout-item { color: #d93025 !important; font-weight: bold; }
        .logout-item:hover { background-color: #fce8e6 !important; }

        /* ============================================================ */
        /* ADAPTACIÓN ESTRICTA A CELULARES (FUSIÓN ÚNICA Y REPARADA) */
        /* ============================================================ */
        @media (max-width: 768px) {
            
            /* --- 1. BANNER DE COOKIES MÓVIL --- */
            .cookie-content { flex-direction: column; text-align: center; }
            .cookie-text { text-align: center; font-size: 13px; }
            .cookie-btns { width: 100%; justify-content: center; }
            .btn-cookie-link, .btn-cookie-accept, .btn-cookie-reject { flex: 1; padding: 12px 10px; font-size: 12px; }

            /* --- 2. FONDO Y CONTENEDOR PRINCIPAL --- */
            body { background-color: #000; }
            #landing-page { background: #000; }
            .main-content-wrapper {
                background: #0099cc; width: 96vw; margin: 0 auto; border-radius: 8px 8px 0 0;
                margin-top: 60px; padding-bottom: 60px; min-height: calc(100dvh - 60px); position: relative;
            }

            /* --- 3. BARRA SUPERIOR FIJA --- */
            .lp-header {
                position: fixed; top: 0; left: 0; width: 100vw; height: 60px;
                background: #000; border-bottom: 2px solid #333; padding: 0 10px;
                justify-content: space-between; flex-wrap: nowrap; z-index: 6000;
            }
            .lp-logo { color: white; font-size: 15px !important; padding: 0; flex: 1; letter-spacing: 1px; }
            .lp-logo::before { z-index: 6001; }

            /* --- 4. MENÚS Y ELEMENTOS OCULTOS --- */
            .pc-only-nav { display: none !important; }
            .mobile-hide { display: none !important; }
            .mobile-only { display: flex; justify-content: center; width: 100%; }

            /* --- 5. MENÚ HAMBURGUESA Y OVERLAY --- */
            .hamburger-menu { display: flex; flex-direction: column; justify-content: space-around; width: 30px; height: 25px; cursor: pointer; margin-left: 10px; }
            .hamburger-menu div { width: 30px; height: 3px; background: white; border-radius: 2px; }
            .overlay-menu { position: fixed; top: 0; left: 0; width: 100vw; height: 100dvh; background: rgba(0, 0, 0, 0.95); z-index: 7000; display: flex; flex-direction: column; align-items: center; justify-content: center; opacity: 0; pointer-events: none; transition: 0.3s ease; }
            .overlay-menu.show { opacity: 1; pointer-events: auto; }
            .close-menu-btn { position: absolute; top: 20px; right: 20px; background: none; border: none; color: white; font-size: 40px; cursor: pointer; }
            .overlay-nav { display: flex; flex-direction: column; gap: 20px; width: 80%; }
            .overlay-nav .lp-tab { width: 100%; padding: 20px; font-size: 18px; border: 2px solid #333; background: #111; color: white; border-radius: 8px; text-align: center; }
            .overlay-nav .lp-tab.active { background: #0099cc; color: white; border-color: white;}

            /* --- 6. REAJUSTES DE CONTENIDO --- */
            .lp-main { flex-direction: column; margin: 0; padding: 10px; }
            .lp-ad-side { display: none; }
            .lp-content-box { padding: 15px; border-radius: 4px; box-shadow: none; min-height: auto;}
            .char-top-row { flex-direction: column; }
            .char-nav-btn.left { left: 0px; padding: 10px; border-radius: 0 4px 4px 0;}
            .char-nav-btn.right { right: 0px; padding: 10px; border-radius: 4px 0 0 4px;}

            /* --- 7. PUBLICIDAD MÓVIL --- */
            .mobile-ad-top { padding: 10px 0; background: transparent; }
            .mobile-ad-sticky { position: fixed; bottom: 0; left: 0; width: 100vw; height: 50px; background: #000; border-top: 1px solid #333; z-index: 5500; display: flex; justify-content: center; align-items: center; }

            /* --- 8. REPRODUCTOR DE AUDIO (REPARACIÓN INTEGRAL) --- */
            #pane-music .lp-audio-container.centered-player {
                width: 90% !important; margin: 20px auto !important; display: flex; flex-direction: column; align-items: center; gap: 15px; height: auto; border-radius: 12px;
            }
            .centered-player .player-volume-area, .centered-player .player-volume-area input, .centered-player .volume-control { display: none !important; }
            .centered-player .player-controls { width: 100%; justify-content: center; gap: 30px; order: 1; margin: 0; display: flex; }
            .centered-player .player-controls button { font-size: 24px; padding: 10px; color: var(--primary); }
            /* FIX: Evitar el "hover pegajoso" en celulares (Para que no se queden azules) */
            .centered-player .player-controls button:hover { 
                color: var(--primary); /* Obliga a que se quede verde */
                transform: none; /* Evita que se quede grande */
            }
            .centered-player .player-controls button:active {
                color: white; /* Brilla al tocarlo con el dedo */
                transform: scale(0.9); /* Se hunde al tocarlo */
            }
            .centered-player .player-progress-area { width: 100%; display: flex; flex-direction: column; align-items: center; order: 2; }
            .centered-player .player-info-text { display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center; margin-bottom: 5px; }
            .centered-player #player-track-name { font-size: 13px; font-weight: bold; color: white; max-width: 90%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; margin-right: 0;}
            .centered-player #player-time { font-size: 11px; color: #ddd; }
            .centered-player input#player-progress.player-slider { width: 100% !important; order: 3; margin: 0; }
            .centered-player .player-slider { -webkit-appearance: none; height: 5px; background: #444; border-radius: 5px; outline: none; }
            .centered-player .player-slider::-webkit-slider-thumb { -webkit-appearance: none; width: 15px; height: 15px; background: var(--primary); border-radius: 50%; cursor: pointer; }

            /* --- 9. EPÍLOGO MÓVIL --- */
            #modal-epilogue .lore-terminal { min-height: auto !important; padding: 20px !important; margin-top: 10px; }
            #modal-epilogue .lore-text-content { max-height: 40vh !important; overflow-y: auto !important; }

            /* --- 10 BOTONES DE LOGIN --- */
            .img-login-pc { display: none !important; }
            .img-login-movil { display: block !important; }
        }

/* --- ESTILOS DEL MODAL DE AUTENTICACIÓN--- */
.social-login-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    margin-bottom: 20px;
}
.social-btn-img {
    width: 100%;
    height: 40px; /* Dimensión fija para estandarizar tus PNGs */
    object-fit: cover; 
    border-radius: 4px;
    cursor: pointer;
    transition: 0.2s;
    border: 1px solid #444;
    background: #000; /* Fondo base en caso de transparencias */
}
.social-btn-img:hover {
    filter: brightness(1.2);
    border-color: #888;
}
.auth-divider {
    text-align: center;
    position: relative;
    margin: 20px 0;
    color: #aaa;
    font-size: 12px;
}
.auth-divider::before, .auth-divider::after {
    content: "";
    position: absolute;
    top: 50%;
    width: 42%;
    border-top: 1px solid #444;
}
.auth-divider::before { left: 0; }
.auth-divider::after { right: 0; }