/* --- CSS BASE --- */
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
            cursor: none !important;
        }

        html {
            color-scheme: dark;
            scroll-behavior: smooth;
            background-color: #000;
            overflow-x: hidden;
        }

        body {
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            color: #fff;
            overflow-x: hidden;
            width: 100%;
            position: relative;
        }

        body::before {
            content: "";
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: radial-gradient(circle at bottom right, #6a0f0f, #000 60%);
            z-index: -2;
            pointer-events: none;
        }

        canvas {
            position: fixed;
            inset: 0;
            width: 100%;
            height: 100%;
            z-index: 0;
            pointer-events: none
        }

        /* Header */
        header {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            background: rgba(0, 0, 0, .9);
            display: flex;
            justify-content: space-between;
            align-items: center;
            padding: 15px 50px;
            z-index: 3002;
            box-shadow: 0 2px 8px rgba(255, 255, 255, .05)
        }

        .logo {
            display: flex;
            align-items: center;
            gap: 10px
        }

        .logo img {
            width: 40px;
            height: 40px;
            border-radius: 50%
        }

        .logo span {
            font-size: 1.3rem;
            font-weight: 700;
            color: #fff
        }

        nav ul {
            list-style: none;
            display: flex;
            gap: 20px;
            align-items: center
        }

        nav ul li {
            position: relative
        }

        nav ul li a {
            color: #fff;
            text-decoration: none;
            font-weight: 500;
            position: relative;
            padding: 5px;
            transition: .3s
        }

        nav ul li a:hover {
            color: #ff3c3c
        }

        nav ul li a::after {
            content: "";
            position: absolute;
            left: 0;
            bottom: -5px;
            width: 0;
            height: 2px;
            background: #ff3c3c;
            transition: width .3s
        }

        nav ul li a:hover::after {
            width: 100%
        }

        /* Submenú */
        .submenu {
            display: none;
            position: absolute;
            top: 100%;
            left: 0;
            background: rgba(0, 0, 0, .95);
            padding: 10px 0;
            border-radius: 8px;
            min-width: 200px;
            box-shadow: 0 2px 10px rgba(0, 0, 0, .5);
            z-index: 25
        }

        nav ul li:hover .submenu {
            display: block
        }

        .submenu li {
            padding: 5px 20px
        }

        .submenu li a {
            display: block;
            color: #fff;
            padding: 8px 10px;
            transition: .3s;
            position: relative
        }

        .submenu li a:hover {
            background: rgba(65, 11, 11, 0.8);
            color: #fff;
            border-radius: 5px;
            transform: translateX(3px)
        }

        /* Pestaña Activa (Logros) */
        nav ul li a.active-page {
            color: #d4af37 !important;
            font-weight: 700;
        }

        nav ul li a.active-page::after {
            content: "";
            width: 100%;
            background: #ff3c3c;
            height: 2px;
            position: absolute;
            left: 0;
            bottom: -5px;
            transition: none;
        }

        

        

        

        

        

        


        /* Active Page Style in Mobile */
        


        

        

        


        /* --- SECCIÓN LOGROS --- */
        section {
            padding: 130px 40px 60px;
            max-width: 1200px;
            margin: auto;
            position: relative;
            z-index: 5;
            flex-grow: 1
        }

        h1 {
            color: #d4af37;
            text-align: center;
            margin-bottom: 40px;
            font-size: 3rem;
            letter-spacing: 2px;
            text-transform: uppercase;
            text-shadow: 0 0 20px rgba(212, 175, 55, 0.4)
        }

        /* 1. CARRUSEL DE MARCAS (MARQUEE) */
        .marquee-container {
            width: 100%;
            overflow: hidden;
            background: rgba(255, 255, 255, 0.05);
            padding: 30px 0;
            border-top: 1px solid rgba(212, 175, 55, 0.3);
            border-bottom: 1px solid rgba(212, 175, 55, 0.3);
            margin-bottom: 80px;
            white-space: nowrap;
            position: relative;
        }

        .marquee-container::before,
        .marquee-container::after {
            content: "";
            position: absolute;
            top: 0;
            width: 100px;
            height: 100%;
            z-index: 2;
        }

        .marquee-container::before {
            left: 0;
            background: linear-gradient(to right, #000, transparent);
        }

        .marquee-container::after {
            right: 0;
            background: linear-gradient(to left, #000, transparent);
        }

        .marquee-track {
            display: inline-block;
            /* Boot animation: spins rapidly through 50% of the track and elegantly decelerates */
            animation: scrollBoot 2.5s cubic-bezier(0.0, 0.7, 0.1, 1) forwards;
        }

        .marquee-track.normal-scroll {
            /* Switches to infinite loop seamlessly because scrollBoot ends at -50% */
            animation: scroll 35s linear infinite;
        }

        .marquee-track img {
            height: 80px;
            /* Altura fija para uniformidad */
            width: auto;
            margin: 0 40px;
            filter: grayscale(100%) brightness(0.8);
            transition: filter 0.3s;
            vertical-align: middle;
        }

        .marquee-track img:hover {
            filter: grayscale(0%) brightness(1.2) drop-shadow(0 0 10px rgba(255, 255, 255, 0.5));
        }

        @keyframes scrollBoot {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        @keyframes scroll {
            0% {
                transform: translateX(0);
            }

            100% {
                transform: translateX(-50%);
            }
        }

        /* 2. LISTA DE LOGROS */
        .logros-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(347px, 1fr));
            gap: 40px;
        }

        .logro-card {
            background: rgba(20, 20, 20, 0.8);
            border: 1px solid rgba(255, 255, 255, 0.1);
            border-radius: 15px;
            padding: 30px;
            text-align: center;
            transition: transform 0.3s, box-shadow 0.3s;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
        }

        .logro-card:hover {
            transform: translateY(-10px);
            box-shadow: 0 10px 30px rgba(212, 175, 55, 0.15);
            border-color: #d4af37;
        }

        .logro-img {
            width: 100px;
            height: 100px;
            object-fit: contain;
            border-radius: 50%;
            border: 2px solid #fff;
            margin-bottom: 20px;
            background: #fff;
            padding: 10px;
            box-shadow: 0 0 15px rgba(255, 255, 255, 0.2);
        }

        .logro-title {
            font-size: 1.1rem;
            color: #fff;
            margin-bottom: 10px;
            font-weight: 300;
        }

        .logro-title strong {
            font-weight: 700;
            color: #ddd;
        }

        /* EFECTOS DE TEXTO BRILLANTE (ACTUALIZADO) */
        .glow-gold {
            display: block;
            font-size: 1.3rem;
            font-weight: 800;
            color: #ffecb3;
            text-transform: uppercase;
            margin: 10px 0 20px;
            /* Sombra dorada fuerte */
            text-shadow: 0 0 15px #d4af37, 0 0 30px #d4af37;
            /* Animación de pulsación y espaciado (IGUAL QUE ARKHAM) */
            animation: pulse-effect 1.5s infinite alternate;
        }

        .glow-arkham {
            display: block;
            font-size: 1.1rem;
            font-weight: 800;
            text-transform: uppercase;
            margin: 10px 0 20px;
            background: linear-gradient(90deg, #ff3c3c, #fff, #0080ff);
            -webkit-background-clip: text;
            background-clip: text;
            color: transparent;
            text-shadow: 0 0 15px rgba(255, 0, 0, 0.6), 0 0 15px rgba(0, 0, 255, 0.6);
            animation: pulse-effect 1.5s infinite alternate;
        }

        /* Animación Unificada (Brillo + Espaciado) */
        @keyframes pulse-effect {
            from {
                filter: brightness(1);
                letter-spacing: 0px;
            }

            to {
                filter: brightness(1.4);
                letter-spacing: 1.5px;
                /* Efecto de expansión */
            }
        }

        /* Botones de Video */
        .video-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            padding: 10px 20px;
            border-radius: 25px;
            text-decoration: none;
            font-weight: 700;
            font-size: 0.9rem;
            margin: 5px;
            transition: 0.3s;
        }

        .btn-yt {
            background: #ff0000;
            color: #fff;
            box-shadow: 0 0 10px rgba(255, 0, 0, 0.4);
        }

        .btn-yt:hover {
            background: #cc0000;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 0, 0, 0.6);
        }

        .btn-fb {
            background: #1877F2;
            color: #fff;
            box-shadow: 0 0 10px rgba(24, 119, 242, 0.4);
        }

        .btn-fb:hover {
            background: #145dbf;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(24, 119, 242, 0.6);
        }

        /* Footer */
        .social-links {
            position: fixed;
            bottom: 30px;
            left: 30px;
            display: flex;
            flex-direction: column;
            gap: 15px;
            z-index: 100
        }

        .social-links a {
            width: 45px;
            height: 45px;
            background: rgba(255, 255, 255, .15);
            color: #fff;
            border-radius: 50%;
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            font-size: 22px;
            transition: .3s;
            backdrop-filter: blur(5px)
        }

        .social-links a:hover {
            background: linear-gradient(135deg, #d4af37, #ffecb3);
            color: #000;
            transform: scale(1.1);
            box-shadow: 0 0 15px #d4af37, 0 0 30px #ffecb3
        }

        footer {
            text-align: center;
            padding: 25px 10px;
            color: #d4af37;
            font-size: .95rem;
            width: 100%;
            margin-top: auto
        }

        /* Tablet / Netbook Optimization for Desktop Menu */
        @media (min-width: 768px) and (max-width: 1100px) {
            header {
                padding: 15px 20px;
            }

            nav ul {
                gap: 15px;
                /* Tighter gap */
            }

            nav ul li a {
                font-size: 0.95rem;
                /* Slightly smaller text */
                padding: 5px;
            }
        }

        @media(max-width:767px) {
            nav {
                display: none;
            }

            

            header {
                padding: 10px 15px;
                background: rgba(0, 0, 0, 0.95);
                /* Consistent header bg */
            }

            section {
                padding: 110px 15px 20px;
                /* Agregado padding top para alejar del header, márgenes seguros a los lados */
                width: 100%;
                overflow-x: hidden;
                box-sizing: border-box;
            }

            h1 {
                font-size: 1.5rem;
                /* Significantly smaller */
                margin-bottom: 30px;
                text-shadow: 0 0 10px rgba(212, 175, 55, 0.5);
                word-wrap: break-word; /* Evita que el título rompa el ancho */
            }

            /* HIDE Fixed Social Links on Mobile to prevent clutter/overlap */
            .social-links {
                display: none;
            }

            /* Compact Marquee */
            .marquee-container {
                padding: 10px 0;
                margin-bottom: 30px;
                width: 100%; /* Restringe el ancho al contenedor padre */
                box-sizing: border-box;
            }

            .marquee-track img {
                height: 40px;
                /* Smaller logos */
                margin: 0 15px;
            }

            /* Compact Grid */
            .logros-grid {
                grid-template-columns: 1fr;
                gap: 15px;
                /* Tighter gap */
            }

            /* Compact Cards - Vertical Layout (Restored & Optimized) */
            .logro-card {
                padding: 20px 15px;
                border-radius: 12px;
                background: rgba(20, 20, 20, 0.6);
                display: flex;
                flex-direction: column;
                /* Vertical alignment */
                align-items: center;
                gap: 10px;
                text-align: center;
                /* Center text */
            }

            .logro-img {
                width: 70px;
                /* Balanced size */
                height: 70px;
                margin-bottom: 5px;
                margin-right: 0;
                border-width: 2px;
            }

            /* Reset margins */
            .logro-card>*:not(.logro-img) {
                margin: 0;
            }

            .logro-title {
                font-size: 0.95rem;
                margin-bottom: 5px;
                width: auto;
            }

            .glow-gold,
            .glow-arkham {
                font-size: 1rem;
                margin: 5px 0 10px;
                text-align: center;
            }

            .video-btn {
                padding: 8px 16px;
                font-size: 0.8rem;
                border-radius: 20px;
                margin: 5px;
                align-self: center;
            }

            /* Footer Centering (Block for Wrapping) */
            footer {
                padding: 20px 15px 25px 15px;
                /* Eliminado padding-left de 140px que rompía el ancho de pantalla */
                font-size: 0.8rem;
                width: 100%;
                display: block;
                text-align: center;
                box-sizing: border-box;
            }
        }

        /* EFECTO DE SELECCIÓN MÁGICA */
        ::selection {
            background: rgba(106, 15, 15, 0.8);
            color: #ffffff;
            text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37, 0 0 20px #ffecb3;
        }

        ::-moz-selection {
            background: rgba(106, 15, 15, 0.8);
            color: #ffffff;
            text-shadow: 0 0 5px #d4af37, 0 0 10px #d4af37;
        }

        /* Estilo de la partícula mágica */
        .magic-star {
            position: fixed;
            pointer-events: none;
            background: #d4af37;
            width: 4px;
            height: 4px;
            border-radius: 50%;
            box-shadow: 0 0 10px #ffecb3;
            animation: fadeOut 1s linear forwards;
            z-index: 9999;
        }

        @keyframes fadeOut {
            0% {
                opacity: 1;
                transform: scale(1) translateY(0);
            }

            100% {
                opacity: 0;
                transform: scale(0) translateY(20px);
            }
        }
    
        /* Custom Animated Cursor */
        .custom-cursor {
            position: fixed;
            top: 0;
            left: 0;
            width: 20px;
            height: 20px;
            pointer-events: none;
            z-index: 9999;
            transform: translate(-50%, -50%);
            display: flex;
            justify-content: center;
            align-items: center;
            transition: transform 0.1s linear;
        }
        .custom-cursor svg {
            width: 100%;
            height: 100%;
            filter: drop-shadow(0 0 5px rgba(212, 175, 55, 0.8));
        }

        /* Ocultar el cursor personalizado VIRTUAL enteramente en móviles */
        @media (pointer: coarse) {
            .custom-cursor {
                display: none !important;
            }
        }

        /* --- MODO KICK (STREAMER GAMER MODE) --- */
        
        /* Contenedor del boton Toggle */
        .theme-switch-container {
            display: flex;
            justify-content: center;
            margin-bottom: 20px;
        }

        .btn-kick-toggle {
            background: rgba(20, 20, 20, 0.8);
            border: 2px solid #53fc18;
            color: #53fc18;
            padding: 12px 25px;
            font-size: 1.1rem;
            font-weight: 700;
            border-radius: 30px;
            text-transform: uppercase;
            box-shadow: 0 0 15px rgba(83, 252, 24, 0.4);
            transition: all 0.4s ease;
            display: flex;
            align-items: center;
            gap: 10px;
        }

        .btn-kick-toggle:hover {
            background: #53fc18;
            color: #000;
            box-shadow: 0 0 25px rgba(83, 252, 24, 0.7);
            transform: scale(1.05);
        }

        /* Modificaciones Globales cuando kick-theme está activo en el body */
        body.kick-theme {
            background-color: #050806;
            /* Fondo de Cuadrícula "Tron" / "Cyberpunk" muy inmersiva */
            background-image: 
               linear-gradient(rgba(83, 252, 24, 0.05) 1px, transparent 1px),
               linear-gradient(90deg, rgba(83, 252, 24, 0.05) 1px, transparent 1px);
            background-size: 40px 40px;
            background-position: center center;
        }

        /* Overlay oscuro Inmersivo profundo tipo FPS / Shooter */
        body.kick-theme::before {
            content: "";
            position: fixed;
            top: 0; left: 0; width: 100%; height: 100%;
            background: radial-gradient(circle at center, transparent 30%, rgba(0, 0, 0, 0.95) 100%);
            z-index: -2;
            pointer-events: none;
        }

        /* Esconder las bolitas de nieve suaves clásicas en Modo Kick para no arruinar la inmersión */
        body.kick-theme #particles {
            opacity: 0.15; /* las rebajamos casi al mínimo o podemos apagarlas */
            filter: hue-rotate(240deg) saturate(300%) contrast(200%); /* Las volvemos tonalidad verde brusca */
        }

        /* Títulos en Modo Kick */
        body.kick-theme .neon-title {
            color: #fff;
            text-shadow: 0 0 20px rgba(83, 252, 24, 0.8), 0 0 40px rgba(83, 252, 24, 0.6);
        }

        /* Tarjetas en Modo Kick */
        body.kick-theme .logro-card {
            background: rgba(30, 30, 35, 0.9);
            border: 1px solid rgba(83, 252, 24, 0.2);
        }

        body.kick-theme .logro-card:hover {
            border-color: #53fc18;
            box-shadow: 0 10px 30px rgba(83, 252, 24, 0.3);
        }

        body.kick-theme .logro-img {
            border-color: #53fc18;
            box-shadow: 0 0 15px rgba(83, 252, 24, 0.4);
        }

        /* Efecto Glow Neón Verde */
        .glow-neon {
            display: block;
            font-size: 1.2rem;
            font-weight: 800;
            color: #fff;
            text-transform: uppercase;
            margin: 10px 0 20px;
            text-shadow: 0 0 15px #53fc18, 0 0 30px #53fc18;
            animation: pulse-kick 1.5s infinite alternate;
        }

        @keyframes pulse-kick {
            from { filter: brightness(1); letter-spacing: 0px; }
            to { filter: brightness(1.3); letter-spacing: 1px; }
        }

        /* Botones Streaming Links */
        .btn-kick-link {
            background: #53fc18;
            color: #000;
            box-shadow: 0 0 10px rgba(83, 252, 24, 0.4);
        }
        .btn-kick-link:hover {
            background: #41e012;
            color: #000;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(83, 252, 24, 0.6);
        }

        .btn-twitch-link {
            background: #6441a5;
            color: #fff;
            box-shadow: 0 0 10px rgba(100, 65, 165, 0.4);
        }
        .btn-twitch-link:hover {
            background: #503385;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(100, 65, 165, 0.6);
        }

        .btn-tiktok-link {
            background: #ff0050;
            color: #fff;
            box-shadow: 0 0 10px rgba(255, 0, 80, 0.4);
        }
        .btn-tiktok-link:hover {
            background: #cc0040;
            transform: scale(1.05);
            box-shadow: 0 0 20px rgba(255, 0, 80, 0.6);
        }

        /* Modificar el Color del Navbar y Textos Secundarios */
        body.kick-theme nav ul li a.active-page {
            color: #53fc18 !important;
        }
        body.kick-theme nav ul li a.active-page::after {
            background: #53fc18;
        }
        body.kick-theme .custom-cursor svg {
            fill: #53fc18;
            filter: drop-shadow(0 0 5px rgba(83, 252, 24, 0.8));
        }

        /* Rediseño Radical: Cyberpunk Streamer Directory */
        .cyber-desc {
            text-align: center;
            color: #53fc18;
            margin-bottom: 50px;
            font-size: 1.1rem;
            max-width: 800px;
            margin-left: auto;
            margin-right: auto;
            line-height: 1.6;
            font-family: monospace;
            background: rgba(83, 252, 24, 0.1);
            padding: 15px;
            border-left: 4px solid #53fc18;
            border-right: 4px solid #53fc18;
            text-transform: uppercase;
        }

        .streamer-list {
            display: flex;
            flex-direction: column;
            gap: 20px;
            max-width: 1000px;
            margin: auto;
        }

        .streamer-row {
            display: flex;
            align-items: center;
            justify-content: space-between;
            background: linear-gradient(90deg, rgba(30, 30, 35, 0.9), rgba(15, 15, 20, 0.9));
            border-top: 1px solid rgba(83, 252, 24, 0.3);
            border-bottom: 1px solid rgba(83, 252, 24, 0.3);
            border-left: 5px solid #53fc18;
            padding: 15px 30px;
            clip-path: polygon(15px 0%, 100% 0%, 100% calc(100% - 15px), calc(100% - 15px) 100%, 0% 100%, 0% 15px);
            transition: all 0.3s ease;
        }

        .streamer-row:hover {
            box-shadow: inset 0 0 20px rgba(83, 252, 24, 0.2);
            border-left-width: 10px;
            transform: translateX(5px);
        }

        .str-avatar-wrapper {
            position: relative;
            width: 80px;
            height: 80px;
            flex-shrink: 0;
            clip-path: polygon(20% 0%, 80% 0%, 100% 20%, 100% 80%, 80% 100%, 20% 100%, 0% 80%, 0% 20%);
            border: 2px solid #53fc18;
            background: #000;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 0 10px rgba(83, 252, 24, 0.5);
            overflow: hidden;
        }

        .str-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
            filter: grayscale(100%) contrast(1.2);
            transition: 0.3s;
        }

        .streamer-row:hover .str-img {
            filter: grayscale(0%);
        }

        .str-info {
            flex-grow: 1;
            padding: 0 25px;
            display: flex;
            flex-direction: column;
            gap: 5px;
        }

        .str-info h2 {
            font-size: 1.8rem;
            color: #fff;
            text-transform: uppercase;
            letter-spacing: 2px;
            font-weight: 900;
            text-shadow: 2px 2px 0 #000, -1px -1px 0 #53fc18;
            margin: 0;
        }

        .str-badge {
            font-size: 0.8rem;
            font-weight: bold;
            font-family: monospace;
            display: inline-block;
        }

        .str-badge.online {
            color: #53fc18;
            text-shadow: 0 0 5px #53fc18;
        }
        
        .str-badge.offline {
            color: #aaa;
        }

        .str-event {
            color: #ccc;
            font-size: 0.95rem;
            font-family: monospace;
        }

        .str-btn {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            padding: 15px 25px;
            text-decoration: none;
            font-weight: 900;
            font-size: 1rem;
            clip-path: polygon(10px 0, 100% 0, 100% calc(100% - 10px), calc(100% - 10px) 100%, 0 100%, 0 10px);
            transition: 0.3s;
            text-transform: uppercase;
        }

        /* Movil Streaming Row Optimization */
        @media(max-width: 767px) {
            .streamer-row {
                flex-direction: column;
                text-align: center;
                gap: 15px;
                clip-path: none;
                border-radius: 10px;
                padding: 20px;
            }
            .str-info {
                padding: 0;
            }
            .str-info h2 {
                font-size: 1.4rem;
            }
        }

        /* Partícula Gamer Pixel */
        .kick-pixel {
            position: fixed;
            pointer-events: none;
            background: #53fc18;
            width: 8px; /* Cuadradito duro */
            height: 8px;
            box-shadow: 0 0 10px #53fc18;
            animation: pixelDrop 0.6s linear forwards;
            z-index: 9999;
        }

        @keyframes pixelDrop {
            0% {
                opacity: 1;
                transform: translate(0, 0) scale(1);
            }
            100% {
                opacity: 0;
                transform: translate(5px, 20px) scale(0.2);
            }
        }

/* ============================================================
   Nuevo diseño HUD para el modo gamer / streamer
   ============================================================ */

/* BOOT SCREEN */
#gamer-boot {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 300px;
    gap: 10px;
    padding: 40px 20px;
}

.boot-text-line {
    font-family: 'Share Tech Mono', 'Courier New', monospace;
    font-size: 13px;
    color: #53fc18;
    opacity: 0;
    animation: bootFadeIn 0.3s forwards;
    letter-spacing: 1px;
}

@keyframes bootFadeIn {
    to { opacity: 1; }
}

.boot-bar-wrap {
    width: 300px;
    height: 6px;
    border: 1px solid rgba(83, 252, 24, 0.4);
    margin-top: 20px;
    border-radius: 2px;
    overflow: hidden;
}

#boot-progress-bar {
    height: 100%;
    width: 0%;
    background: linear-gradient(90deg, #53fc18, #00cfff);
    border-radius: 2px;
    transition: width 0.15s ease;
}

/* GLITCH TITLE */
.glitch-title {
    position: relative;
    display: block;
}

.glitch-title::before,
.glitch-title::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    color: #53fc18;
    text-shadow: 0 0 20px rgba(83, 252, 24, 0.8), 0 0 40px rgba(83, 252, 24, 0.6);
}

.glitch-title::before {
    animation: glitch-top 4s infinite;
    clip-path: polygon(0 0, 100% 0, 100% 40%, 0 40%);
}

.glitch-title::after {
    animation: glitch-bot 4s infinite;
    clip-path: polygon(0 60%, 100% 60%, 100% 100%, 0 100%);
}

@keyframes glitch-top {
    0%, 90%, 100% { transform: translate(0); opacity: 0; }
    92%            { transform: translate(-3px, 1px); opacity: 0.7; }
    94%            { transform: translate(3px, -1px); opacity: 0.7; }
    96%            { transform: translate(0); opacity: 0; }
}

@keyframes glitch-bot {
    0%, 88%, 100% { transform: translate(0); opacity: 0; }
    90%            { transform: translate(3px, 1px); opacity: 0.7; }
    93%            { transform: translate(-2px, -1px); opacity: 0.7; }
    95%            { transform: translate(0); opacity: 0; }
}

/* STATS HUD ROW */
.hud-stats-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    max-width: 700px;
    margin: 0 auto 30px;
}

.hud-stat-box {
    border: 1px solid rgba(83, 252, 24, 0.3);
    background: rgba(83, 252, 24, 0.05);
    padding: 14px 10px;
    text-align: center;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
    transition: border-color 0.3s;
}

.hud-stat-box:hover {
    border-color: rgba(83, 252, 24, 0.8);
}

.hud-stat-num {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: clamp(18px, 3vw, 26px);
    font-weight: 700;
    color: #00cfff;
    text-shadow: 0 0 10px rgba(0, 207, 255, 0.5);
}

.hud-stat-label {
    font-size: 10px;
    color: rgba(83, 252, 24, 0.5);
    letter-spacing: 2px;
    margin-top: 4px;
    font-family: monospace;
}

/* LEADERBOARD COLUMN HEADER */
.lb-col-header {
    display: grid;
    grid-template-columns: 50px 90px 1fr auto;
    gap: 12px;
    align-items: center;
    font-size: 10px;
    color: rgba(83, 252, 24, 0.4);
    padding: 4px 14px;
    margin-bottom: 6px;
    letter-spacing: 2px;
    font-family: monospace;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

/* HUD ROW (reemplaza estilos de streamer-row para dentro del modo gamer) */
.hud-row {
    display: grid;
    grid-template-columns: 50px 90px 1fr auto;
    gap: 12px;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto 10px;
    padding: 14px 18px;
    border: 1px solid rgba(83, 252, 24, 0.25);
    background: rgba(83, 252, 24, 0.04);
    position: relative;
    overflow: hidden;
    clip-path: polygon(0 0, calc(100% - 12px) 0, 100% 12px, 100% 100%, 12px 100%, 0 calc(100% - 12px));
    transition: background 0.3s, border-color 0.3s;
    transform: none; /* sobreescribe el translateX del hover base */
}

.hud-row:hover {
    background: rgba(83, 252, 24, 0.09);
    border-color: rgba(83, 252, 24, 0.6);
    transform: none;
    box-shadow: inset 0 0 20px rgba(83, 252, 24, 0.08);
}

/* Línea de scan al hover */
.hud-row::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 1px;
    background: linear-gradient(90deg, transparent, #53fc18, transparent);
    transition: left 0.5s ease;
}

.hud-row:hover::before {
    left: 100%;
}

/* RANKS CON COLORES */
.hud-row.rank-gold  { border-color: rgba(255, 215, 0, 0.4);  background: rgba(255, 215, 0, 0.04); }
.hud-row.rank-silver{ border-color: rgba(192, 192, 192, 0.35); }
.hud-row.rank-bronze{ border-color: rgba(205, 127, 50, 0.35); }

/* BADGE DE RANK */
.rank-badge {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 20px;
    font-weight: 900;
    text-align: center;
    line-height: 1;
}

.rank-badge.gold   { color: #ffd700; text-shadow: 0 0 12px rgba(255, 215, 0, 0.6); }
.rank-badge.silver { color: #c0c0c0; }
.rank-badge.bronze { color: #cd7f32; }
.rank-badge.normal { color: rgba(83, 252, 24, 0.4); }

/* XP BARS */
.xp-bar-wrap {
    width: 100%;
    height: 3px;
    background: rgba(83, 252, 24, 0.1);
    margin-top: 8px;
}

.xp-bar {
    height: 100%;
    width: 0%; /* animado por JS */
    transition: width 1.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.xp-gold   { background: linear-gradient(90deg, #ffd700, #ffaa00); }
.xp-silver { background: linear-gradient(90deg, #c0c0c0, #888888); }
.xp-bronze { background: linear-gradient(90deg, #cd7f32, #8b4513); }
.xp-normal { background: linear-gradient(90deg, #53fc18, #00cfff); }

/* COLUMNA DERECHA HUD */
.hud-right-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    min-width: 80px;
    text-align: center;
}

.hud-score {
    font-family: 'Orbitron', 'Courier New', monospace;
    font-size: 15px;
    font-weight: 700;
    color: #00cfff;
}

.gold-text   { color: #ffd700; text-shadow: 0 0 8px rgba(255, 215, 0, 0.5); }
.silver-text { color: #c0c0c0; }
.bronze-text { color: #cd7f32; }

/* BADGES DE PLATAFORMA */
.hud-badge {
    display: inline-block;
    padding: 2px 8px;
    font-size: 9px;
    letter-spacing: 1px;
    font-family: monospace;
    border-radius: 2px;
}

.badge-yt      { background: rgba(255, 0, 0, 0.15);   color: #ff4444; border: 1px solid rgba(255, 0, 0, 0.3); }
.badge-fb      { background: rgba(0, 100, 255, 0.15);  color: #4488ff; border: 1px solid rgba(0, 100, 255, 0.3); }
.badge-creator { background: rgba(0, 207, 255, 0.15);  color: #00cfff; border: 1px solid rgba(0, 207, 255, 0.3); }
.badge-ally    { background: rgba(83, 252, 24, 0.15);  color: #53fc18; border: 1px solid rgba(83, 252, 24, 0.3); }

/* FOOTER HUD */
.hud-footer-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 20px auto 0;
    padding: 10px 16px;
    border: 1px solid rgba(83, 252, 24, 0.2);
    background: rgba(83, 252, 24, 0.04);
    font-size: 10px;
    color: rgba(83, 252, 24, 0.45);
    letter-spacing: 1px;
    font-family: monospace;
    clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}

/* RESPONSIVE */
@media (max-width: 767px) {
    .hud-row, .lb-col-header {
        grid-template-columns: 30px 60px 1fr;
        grid-template-rows: auto auto;
    }
    .hud-right-col {
        grid-column: 3;
        flex-direction: row;
        flex-wrap: wrap;
        justify-content: flex-start;
        min-width: unset;
    }
    .lb-col-header span:last-child { display: none; }
    .hud-stats-row { grid-template-columns: repeat(3, 1fr); }
    .hud-footer-bar { font-size: 9px; gap: 6px; flex-wrap: wrap; justify-content: center; }
}
