:root {
            --dex-red: #DC0A2D;
            --dex-dark-red: #8B0000;
            --dex-screen-blue: #89CFF0;
            --dex-dark-ui: #232323;
        }

        body {
            background-color: #1a1a1a;
            font-family: 'VT323', monospace;
            overflow-x: hidden;
            margin: 0; padding: 0;
            background-image: 
                linear-gradient(rgba(255, 255, 255, 0.03) 1px, transparent 1px),
                linear-gradient(90deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
            background-size: 30px 30px;
        }

        .font-pixel { font-family: 'Press Start 2P', cursive; }
        .font-data { font-family: 'VT323', monospace; }

        .dex-casing {
            background-color: var(--dex-red);
            box-shadow: inset -5px -5px 15px rgba(0,0,0,0.5), inset 5px 5px 15px rgba(255,255,255,0.2);
            position: relative; z-index: 10;
        }

        .screen-container {
            background-color: #98A2AC; border-radius: 10px 10px 10px 30px;
            padding: 20px; box-shadow: inset 2px 2px 5px rgba(0,0,0,0.6); border: 4px solid #5a5a5a;
        }

        .digital-screen {
            background-color: var(--dex-screen-blue); box-shadow: inset 0 0 20px rgba(0,0,0,0.2);
            border: 4px solid #4a4a4a; position: relative; overflow: hidden; image-rendering: pixelated;
        }
        
        .digital-screen::after {
            content: " "; display: block; position: absolute; top: 0; left: 0; bottom: 0; right: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.1) 50%);
            background-size: 100% 4px; z-index: 2; pointer-events: none;
        }

        /* --- TAPA --- */
        #pokedex-cover-top, #pokedex-cover-bottom {
            position: fixed; left: 0; width: 100%; height: 50vh;
            background-color: var(--dex-red); z-index: 100; display: flex; justify-content: center;
            transition: transform 1s cubic-bezier(0.68, -0.55, 0.27, 1.55);
            box-shadow: 0 0 20px rgba(0,0,0,0.8);
            border-left: 10px solid var(--dex-dark-red); border-right: 10px solid var(--dex-dark-red);
        }

        #pokedex-cover-top {
            top: 0; border-bottom: 8px solid #232323; align-items: flex-end;
            padding-bottom: 15vh; 
        }

        #pokedex-cover-bottom {
            bottom: 0; border-top: 8px solid #232323; align-items: flex-start; padding-top: 40px;
        }

        .blue-lens-sensor {
            width: 80px; height: 80px; min-width: 80px; min-height: 80px;
            background: radial-gradient(circle at 30% 30%, #4DEEEA, #00C6FF, #0072ff);
            border: 5px solid #fff; border-radius: 50%;
            box-shadow: 0 0 25px #00C6FF;
            animation: pulseSensor 2s infinite;
            margin-bottom: 10px;
            position: relative;
        }

        @keyframes pulseSensor {
            0% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0.8); }
            70% { box-shadow: 0 0 0 25px rgba(0, 198, 255, 0); }
            100% { box-shadow: 0 0 0 0 rgba(0, 198, 255, 0); }
        }

        .start-btn {
            background: #FFDE00; border: 4px solid #B8860B; color: #000;
            font-family: 'Press Start 2P'; padding: 15px 20px; cursor: pointer;
            text-transform: uppercase; font-size: 12px; box-shadow: 0 6px 0 #B8860B; transition: all 0.1s;
        }
        .start-btn:active { box-shadow: 0 0 0 #B8860B; transform: translateY(6px); }
        .device-open-top { transform: translateY(-100%); }
        .device-open-bottom { transform: translateY(100%); }

        /* --- POKEBOLAS FONDO --- */
        .floating-pokeball {
            position: fixed; width: 40px; height: 40px;
            background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 100 100'%3E%3Ccircle cx='50' cy='50' r='45' fill='%23FFF' stroke='%23232323' stroke-width='5'/%3E%3Cpath d='M5,50 A45,45 0 0,1 95,50 Z' fill='%23DC0A2D' /%3E%3Cline x1='5' y1='50' x2='95' y2='50' stroke='%23232323' stroke-width='8' /%3E%3Ccircle cx='50' cy='50' r='14' fill='%23232323' /%3E%3Ccircle cx='50' cy='50' r='8' fill='%23FFF' stroke='%23232323' stroke-width='2' /%3E%3C/svg%3E");
            background-size: contain; background-repeat: no-repeat;
            z-index: 1; opacity: 0.15; pointer-events: none;
        }

        /* --- UTILIDADES Y OTROS --- */
        .rotate-mobile {
            transform: rotate(90deg); 
            width: 100vh !important; 
            height: 100vw !important;
            max-width: 100vh !important; 
            max-height: 100vw !important; 
            object-fit: contain;
        }
        #lightbox-modal { transition: opacity 0.3s ease-in-out; background-color: rgba(0, 20, 0, 0.95); }
        .d-pad-btn {
            width: 40px; height: 40px; background: #222; border: 2px solid #555;
            display: flex; align-items: center; justify-content: center; color: white; cursor: pointer;
        }
        .d-pad-btn:active { background: #000; }
        .stats-table { width: 100%; border-collapse: separate; border-spacing: 0 4px; }
        .stats-label {
            font-family: 'Press Start 2P'; font-size: 0.6rem; color: #555;
            text-transform: uppercase; padding-right: 10px; text-align: right; width: 30%;
        }
        .stats-bar-container {
            background: #fff; height: 16px; border-radius: 8px; border: 2px solid #555;
            position: relative; overflow: hidden; display: flex; align-items: center; padding-left: 5px;
        }
        .stats-value-text {
            position: absolute; left: 5px; top: 0; width: 100%; height: 100%;
            font-family: 'VT323'; font-size: 1rem; font-weight: bold; line-height: 14px; color: #000; z-index: 5;
        }
        .speaker-grille { display: flex; gap: 2px; }
        .speaker-hole {
            width: 4px; height: 4px; background-color: #333; border-radius: 50%;
            box-shadow: inset 1px 1px 1px rgba(0,0,0,0.8);
        }
        .music-btn-retro {
            width: 30px; height: 30px; border-radius: 50%; border: 2px solid #333;
            cursor: pointer; display: flex; align-items: center; justify-content: center; box-shadow: 2px 2px 0 #000;
        }
        .hidden { display: none !important; }
        .blink { animation: blinker 1s linear infinite; }
        @keyframes blinker { 50% { opacity: 0; } }
        a, button, .cursor-pointer { cursor: pointer; }

        /* --- NUEVO: ESTILOS GESTOS Y UI MÓVIL --- */
        @media (max-width: 768px) {
            .nav-arrow { display: none !important; } /* Ocultar flechas en móvil para usar swipe */
        }
        
        /* Animación del Ghost Dot */
        .swipe-hand {
            width: 20px; height: 20px;
            background: rgba(255, 255, 255, 0.8);
            border-radius: 50%;
            box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px var(--dex-screen-blue);
            animation: swipeHintAnim 2.5s infinite ease-in-out;
        }
        @keyframes swipeHintAnim {
            0% { transform: translate(0, 0); opacity: 0; }
            10% { opacity: 1; }
            40% { transform: translate(60px, 0); opacity: 1; } /* Horizontal */
            50% { transform: translate(60px, 0); opacity: 0; }
            60% { transform: translate(0, 0); opacity: 0; }
            70% { opacity: 1; }
            90% { transform: translate(0, 60px); opacity: 1; } /* Vertical */
            100% { transform: translate(0, 60px); opacity: 0; }
        }
