:root {
            /* Paleta Dragon Ball */
            --goku-orange: #FF5722;
            --goku-blue: #0D47A1;
            --saiyan-gold: #FFC107;
            --shenlong-green: #2E7D32;
            --radar-green: #4CAF50;
            --radar-dark: #1B5E20;
            --dark-space: #050510;
        }

        body {
            background-color: var(--dark-space);
            font-family: 'Orbitron', sans-serif;
            overflow-x: hidden;
            color: #fff;
            margin: 0;
            padding: 0;
            /* Evita el scroll bounce en iOS al hacer swipe */
            overscroll-behavior-y: none;
        }

        /* --- ESTILOS PARA LIGHTBOX Y ROTACIÓN INTELIGENTE --- */
        .rotate-mobile {
            transform: rotate(90deg);
            /* Dimensiones absolutas forzadas para evitar bordes */
            width: 100vh !important; 
            height: 100vw !important;
            max-width: 100vh !important;
            max-height: 100vw !important;
            object-fit: contain;
            /* Centrado absoluto tras rotación */
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%) rotate(90deg);
        }

        .pointer-events-auto {
            pointer-events: auto;
        }
        
        #lightbox-modal {
            transition: opacity 0.3s ease-in-out, visibility 0.3s;
        }

        /* Animación para el Ghost Dot */
        @keyframes swipeHintAnim {
            0% { transform: translate(0, 0); opacity: 0; }
            20% { opacity: 1; }
            50% { transform: translate(40px, 0); opacity: 1; } /* Horizontal */
            55% { transform: translate(0, 0); opacity: 0; } /* Reset invisible */
            60% { opacity: 0; }
            70% { opacity: 1; }
            90% { transform: translate(0, 40px); opacity: 1; } /* Vertical */
            100% { transform: translate(0, 40px); opacity: 0; }
        }

        .animate-swipe-guide {
            animation: swipeHintAnim 2.5s infinite;
        }

        /* --- PANTALLA DE INTRODUCCIÓN (RADAR DEL DRAGÓN) --- */
        #intro-screen {
            position: fixed;
            top: 0;
            left: 0;
            width: 100vw;
            height: 100vh;
            background: radial-gradient(circle at center, #000000 0%, #050510 100%);
            z-index: 100;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            transition: opacity 0.8s ease-in-out, visibility 0.8s;
        }

        /* Contenedor del Radar */
        .radar-container {
            position: relative;
            width: 280px;
            height: 280px;
            background: #e0e0e0;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 
                inset 0 0 20px rgba(0,0,0,0.5),
                0 0 30px rgba(76, 175, 80, 0.4);
            cursor: pointer;
            transition: transform 0.3s ease;
            border: 8px solid #9e9e9e;
        }

        .radar-container:hover {
            transform: scale(1.05);
            box-shadow: 0 0 50px rgba(76, 175, 80, 0.8);
        }

        /* Botón superior del radar */
        .radar-btn {
            position: absolute;
            top: -15px;
            width: 60px;
            height: 20px;
            background: #bdbdbd;
            border-radius: 10px 10px 0 0;
            border: 2px solid #757575;
            z-index: -1;
        }

        /* Pantalla Verde */
        .radar-screen {
            width: 240px;
            height: 240px;
            background: radial-gradient(circle, var(--radar-green) 0%, var(--radar-dark) 90%);
            border-radius: 50%;
            position: relative;
            overflow: hidden;
            box-shadow: inset 0 0 15px rgba(0,0,0,0.8);
            border: 4px solid #333;
        }

        /* Cuadrícula del Radar */
        .radar-grid {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background-image: 
                linear-gradient(rgba(0, 50, 0, 0.5) 1px, transparent 1px),
                linear-gradient(90deg, rgba(0, 50, 0, 0.5) 1px, transparent 1px);
            background-size: 30px 30px;
            border-radius: 50%;
            z-index: 1;
        }

        .radar-crosshair {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 100%;
            height: 100%;
        }
        .radar-crosshair::before, .radar-crosshair::after {
            content: '';
            position: absolute;
            background: rgba(0, 0, 0, 0.3);
        }
        .radar-crosshair::before { width: 2px; height: 100%; left: 50%; top: 0; }
        .radar-crosshair::after { width: 100%; height: 2px; top: 50%; left: 0; }

        /* Puntos/Esferas en el radar */
        .blip {
            position: absolute;
            width: 12px;
            height: 12px;
            background: #FFEB3B;
            border-radius: 50%;
            box-shadow: 0 0 8px #FFC107;
            z-index: 5;
            animation: blinkBlip 1s infinite alternate;
        }
        
        @keyframes blinkBlip { 0% { opacity: 0.4; transform: scale(0.8); } 100% { opacity: 1; transform: scale(1.2); } }

        /* Triángulo Central (El usuario) */
        .radar-center {
            position: absolute;
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%);
            width: 0; 
            height: 0; 
            border-left: 8px solid transparent;
            border-right: 8px solid transparent;
            border-bottom: 12px solid #d50000;
            z-index: 6;
        }

        /* Línea de escaneo */
        .radar-scan {
            position: absolute;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: conic-gradient(from 0deg, transparent 70%, rgba(200, 255, 200, 0.5) 100%);
            border-radius: 50%;
            animation: radarSpin 3s linear infinite;
            z-index: 3;
        }

        @keyframes radarSpin {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* Animación de activación al hacer clic */
        .radar-active {
            animation: radarFound 1s forwards;
        }

        @keyframes radarFound {
            0% { transform: scale(1); box-shadow: 0 0 30px var(--radar-green); }
            10% { transform: scale(0.9); }
            30% { transform: scale(1.1); background: #fff; box-shadow: 0 0 100px #fff; }
            100% { transform: scale(5); opacity: 0; }
        }

       .radar-text {
        margin-top: 30px;
        color: var(--radar-green);
        font-family: 'Orbitron';
        text-transform: uppercase;
        letter-spacing: 2px;
        animation: pulseText 1.5s infinite;
        text-shadow: 0 0 10px var(--radar-green);
        text-align: center;      
        width: 100%;             
        padding: 0 15px;         
        box-sizing: border-box;  
        }

        @keyframes pulseText { 0% { opacity: 0.5; } 100% { opacity: 1; } }
        
        /* --- FIN INTRODUCCIÓN --- */

        .main-content-hidden {
            opacity: 0;
            pointer-events: none;
            transition: opacity 2s ease-in;
        }
        
        .reveal-content {
            opacity: 1;
            pointer-events: auto;
        }

        /* --- ANIMACIÓN SHENLONG --- */
        #shenlong-container {
            position: fixed;
            bottom: -50%;
            left: 50%;
            transform: translateX(-50%);
            width: 100%;
            max-width: 800px;
            height: 80vh;
            z-index: 0;
            pointer-events: none;
            opacity: 0;
            transition: all 3s ease-out;
            background-image: url('https://upload.wikimedia.org/wikipedia/commons/thumb/f/f2/Dragon_silhouette.svg/1200px-Dragon_silhouette.svg.png'); 
            background-repeat: no-repeat;
            background-position: center bottom;
            background-size: contain;
            filter: drop-shadow(0 0 20px var(--shenlong-green));
        }

        .summon-shenlong {
            bottom: 0 !important;
            opacity: 0.3 !important; 
        }

        /* --- BACKGROUND --- */
        .stars {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(ellipse at bottom, #0f2027 0%, #203a43 50%, #2c5364 100%);
            z-index: -2;
        }
        
        .speed-lines {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: repeating-linear-gradient(
                90deg,
                transparent 0,
                transparent 50px,
                rgba(255, 255, 255, 0.05) 50px,
                rgba(255, 255, 255, 0.05) 51px
            );
            z-index: -1;
            animation: zoomLines 5s infinite linear;
            pointer-events: none;
        }

        @keyframes zoomLines {
            from { transform: scale(1); opacity: 0.5; }
            to { transform: scale(1.5); opacity: 0; }
        }

        .floating-container {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            pointer-events: none;
            z-index: 1;
            overflow: hidden;
        }

        /* ESFERAS DE DRAGÓN FLOTANTES */
        .dragon-ball {
            position: absolute;
            width: 40px; 
            height: 40px;
            background: radial-gradient(circle at 30% 30%, #ffeb3b, #f57c00);
            border-radius: 50%;
            box-shadow: 0 0 15px rgba(255, 193, 7, 0.6);
            opacity: 0.9;
            display: flex;
            flex-wrap: wrap; 
            align-items: center;
            justify-content: center;
            color: #d50000;
            font-size: 8px; 
            line-height: 8px;
            padding: 6px;
            box-sizing: border-box;
            border: 1px solid rgba(255,160,0,0.5);
        }

        .star-icon {
            display: inline-block;
            text-shadow: 0 0 1px #b71c1c;
        }

        .card-bg {
            background-color: rgba(13, 71, 161, 0.85); 
            border: 2px solid var(--saiyan-gold);
            box-shadow: 0 0 20px rgba(255, 193, 7, 0.3);
            color: #fff;
        }

        /* --- FOTOS --- */
        .carousel-container { perspective: 1000px; }
        .photo-frame {
            border: 4px solid #fff;
            border-radius: 2px;
            box-shadow: 0 0 20px var(--goku-orange);
            position: relative;
            overflow: hidden;
            transition: transform 0.5s ease, opacity 0.5s ease;
            background: #000;
        }
        .photo-frame::after {
            content: '';
            position: absolute;
            top: 0; left: 0; right: 0; bottom: 0;
            background: linear-gradient(rgba(18, 16, 16, 0) 50%, rgba(0, 0, 0, 0.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
            background-size: 100% 2px, 3px 100%;
            pointer-events: none;
            z-index: 11;
        }

        @keyframes float {
            0% { transform: translateY(0px) rotate(0deg); }
            50% { transform: translateY(-20px) rotate(15deg); }
            100% { transform: translateY(0px) rotate(0deg); }
        }

        @keyframes magicFade {
            0% { opacity: 0; transform: scale(0.8); }
            100% { opacity: 1; transform: scale(1); }
        }

        @keyframes spinSlow {
            from { transform: rotate(0deg); }
            to { transform: rotate(360deg); }
        }

        /* --- AURA KI EXTREMA --- */
        @keyframes superSaiyanAura {
            0% { box-shadow: 0 0 10px #FFC107, 0 0 20px #FF9800, 0 0 40px #FF5722, inset 0 0 10px #FFEB3B; transform: scale(1); }
            25% { transform: scale(1.03) rotate(-1deg); }
            50% { box-shadow: 0 0 20px #FFEB3B, 0 0 40px #FFC107, 0 0 60px #FF9800, 0 0 80px #FF5722, inset 0 0 20px #FFFFFF; transform: scale(1.05) rotate(1deg); }
            75% { transform: scale(1.03) rotate(-1deg); }
            100% { box-shadow: 0 0 10px #FFC107, 0 0 20px #FF9800, 0 0 40px #FF5722, inset 0 0 10px #FFEB3B; transform: scale(1); }
        }

        .btn-saiyan-base {
            background: linear-gradient(45deg, var(--goku-orange), #d84315);
            border: 2px solid var(--saiyan-gold);
            color: #fff;
            text-transform: uppercase;
            font-family: 'Bangers', cursive;
            letter-spacing: 2px;
            transition: all 0.3s ease;
        }
        .btn-saiyan-base:hover {
            background: var(--saiyan-gold);
            color: #d84315;
            box-shadow: 0 0 15px var(--saiyan-gold);
        }

        .btn-super-saiyan {
            background: linear-gradient(to bottom, #FFC107, #FF9800);
            color: #d84315;
            text-transform: uppercase;
            font-family: 'Bangers', cursive;
            letter-spacing: 3px;
            border: 2px solid #FFFFFF;
            position: relative;
            z-index: 10;
            animation: superSaiyanAura 1.5s infinite linear; 
            text-shadow: 0 0 5px rgba(255,255,255,0.8);
        }

        .magical-text {
            font-family: 'Bangers', cursive;
            text-shadow: 3px 3px 0px var(--goku-blue), -1px -1px 0 #000;
            letter-spacing: 2px;
        }

        .music-playing {
            animation: spinSlow 4s linear infinite;
            box-shadow: 0 0 15px var(--saiyan-gold);
            background: var(--goku-orange); 
            color: white;
            border-color: #fff;
        }

        .countdown-box {
            background: rgba(0, 20, 0, 0.8);
            border: 2px solid var(--radar-green);
            color: var(--radar-green);
            padding: 10px;
            border-radius: 50%;
            width: 80px;
            height: 80px;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px var(--radar-green);
            position: relative;
        }

        .countdown-box::before {
            content: '';
            position: absolute;
            width: 100%;
            height: 100%;
            background-image: radial-gradient(var(--radar-green) 1px, transparent 1px);
            background-size: 10px 10px;
            opacity: 0.3;
            border-radius: 50%;
        }

        ::-webkit-scrollbar { width: 10px; }
        ::-webkit-scrollbar-track { background: #000; }
        ::-webkit-scrollbar-thumb { background: var(--goku-orange); border-radius: 5px; }
