   :root {
            /* Colores Base Retro */
            --bg-dark: #2d1b2e;
            --pixel-black: #000;
            --pixel-white: #fff;
            
            /* Colores de Rango */
            --gold: #ffec27;
            --silver: #c2c3c7;
            --bronze: #ab5236;
            
            /* Colores por Juego (Variables dinámicas) */
            --theme-color: #ff004d; /* Rojo por defecto */
            --theme-shadow: #7e2553;
        }

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Press Start 2P', cursive; /* Fuente Videojuego */
        }

        body {
            background-color: var(--bg-dark);
            color: var(--pixel-white);
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            overflow-x: hidden;
            position: relative;
        }

        /* --- EFECTO MONITOR CRT (Scanlines) --- */
        body::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.25) 50%), linear-gradient(90deg, rgba(255, 0, 0, 0.06), rgba(0, 255, 0, 0.02), rgba(0, 0, 255, 0.06));
            z-index: 1000;
            background-size: 100% 2px, 3px 100%;
            pointer-events: none; /* Permite hacer clic a través del efecto */
        }

        h1 {
            font-size: 1.5rem;
            text-align: center;
            margin-bottom: 30px;
            color: var(--gold);
            text-shadow: 4px 4px 0 #000;
            line-height: 1.5;
        }

        /* --- NAVEGACIÓN (SELECTOR DE JUEGOS) --- */
        .game-selector {
            display: flex;
            flex-wrap: wrap;
            justify-content: center;
            gap: 15px;
            margin-bottom: 40px;
            z-index: 10;
        }

        .nes-btn {
            background: #fff;
            border: 4px solid #000;
            padding: 15px 20px;
            font-size: 0.7rem;
            cursor: pointer;
            position: relative;
            text-transform: uppercase;
            box-shadow: -4px 4px 0px #000; /* Sombra dura retro */
            transition: transform 0.1s;
        }

        .nes-btn:active, .nes-btn.active {
            transform: translate(-2px, 2px);
            box-shadow: -2px 2px 0px #000;
            background: var(--gold);
            color: #000;
        }

        /* Colores específicos botones */
        .btn-bomb:hover { background: #29adff; color: white; }
        .btn-smash:hover { background: #ff004d; color: white; }
        .btn-uno:hover { background: #ffcc00; color: black; }
        .btn-virus:hover { background: #00e436; color: black; }


        /* --- CONTENEDOR PRINCIPAL --- */
        .ranking-container {
            width: 100%;
            max-width: 800px;
            z-index: 10;
        }

        /* --- PODIO (Top 3) --- */
        .podium {
            display: flex;
            justify-content: center;
            align-items: flex-end;
            margin-bottom: 50px;
            height: 280px;
            gap: 20px;
        }

        .podium-card {
            background: #000;
            border: 4px solid var(--theme-color);
            padding: 10px;
            display: flex;
            flex-direction: column;
            align-items: center;
            text-align: center;
            position: relative;
            box-shadow: 6px 6px 0px rgba(0,0,0,0.5);
        }

        /* Alturas Pixeladas */
        .rank-1 { width: 36%; height: 100%; border-color: var(--gold); z-index: 2; }
        .rank-2 { width: 30%; height: 80%; border-color: var(--silver); z-index: 1; }
        .rank-3 { width: 30%; height: 70%; border-color: var(--bronze); z-index: 1; }

        .pixel-avatar {
            width: 60px;
            height: 60px;
            border-radius: 50%; /* Circular */
            border: 4px solid #fff;
            object-fit: cover;
            margin-bottom: 10px;
            image-rendering: pixelated; /* Fuerza look pixelado */
            background: #333;
        }
        
        .rank-1 .pixel-avatar { width: 80px; height: 80px; border-color: var(--gold); }

        .p-name { font-size: 0.6rem; margin-bottom: 8px; color: #fff; line-height: 1.2; }
        .p-score { font-size: 1rem; color: var(--theme-color); }
        
        .rank-badge {
            position: absolute;
            top: -15px;
            background: #000;
            border: 2px solid white;
            padding: 5px;
            font-size: 0.6rem;
        }

        /* --- LISTA (4-10) --- */
        .list-view {
            display: flex;
            flex-direction: column;
            gap: 15px;
        }

        .retro-row {
            display: flex;
            align-items: center;
            background: #000;
            border: 4px solid #444; /* Borde gris oscuro por defecto */
            padding: 10px;
            position: relative;
        }
        
        /* Borde izquierdo coloreado según el tema */
        .retro-row { border-left: 10px solid var(--theme-color); }

        .rank-num {
            font-size: 0.8rem;
            width: 40px;
            color: #666;
        }

        .list-avatar {
            width: 40px;
            height: 40px;
            border-radius: 50%;
            border: 2px solid #fff;
            margin-right: 15px;
        }

        .list-info { flex-grow: 1; }
        .list-name { font-size: 0.7rem; margin-bottom: 5px; }
        .list-score { color: var(--theme-color); font-size: 0.7rem; }

        .hidden-item { display: none; }

        /* --- BOTÓN VER MÁS (INSERT COIN STYLE) --- */
        .insert-coin-btn {
            display: block;
            margin: 40px auto;
            background: transparent;
            color: #fff;
            border: none;
            font-size: 0.8rem;
            animation: blink 1s infinite;
            cursor: pointer;
            text-transform: uppercase;
        }
        
        .insert-coin-btn:hover { color: var(--gold); animation: none; }

        @keyframes blink { 50% { opacity: 0; } }

        /* Icono Decorativo */
        .game-icon {
            font-size: 2rem;
            margin-bottom: 10px;
        }

        /* Responsive */
        @media (max-width: 600px) {
            .podium { align-items: center; flex-direction: column; height: auto; }
            .rank-1 { order: 1; width: 100%; margin-bottom: 20px; }
            .rank-2 { order: 2; width: 100%; }
            .rank-3 { order: 3; width: 100%; }
            .game-selector { gap: 10px; }
            .nes-btn { padding: 10px; font-size: 0.5rem; }
        }
        /* --- ESTILOS DE LA RULETA --- */
.roulette-stage {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin-top: 20px;
}

.wheel-container {
    position: relative;
    width: 300px;
    height: 300px;
    margin-bottom: 30px;
    /* Marco retro */
    border: 8px solid #fff;
    box-shadow: 0 0 0 4px #000, 10px 10px 0 rgba(0,0,0,0.5); 
    border-radius: 50%;
    overflow: hidden;
}

/* La flecha indicadora */
.pointer {
    position: absolute;
    top: -15px;
    left: 50%;
    transform: translateX(-50%);
    width: 0; 
    height: 0; 
    border-left: 15px solid transparent;
    border-right: 15px solid transparent;
    border-top: 25px solid #fff; /* Triángulo blanco */
    filter: drop-shadow(0 4px 0 #000);
    z-index: 10;
}

/* La rueda giratoria */
.wheel {
    width: 100%;
    height: 100%;
    /* 4 segmentos: Azul, Rojo, Amarillo, Verde */
    background: conic-gradient(
        #29adff 0deg 90deg,   /* Bomberman */
        #ff004d 90deg 180deg, /* Smash */
        #ffcc00 180deg 270deg,/* Uno */
        #00e436 270deg 360deg /* Virus */
    );
    transition: transform 4s cubic-bezier(0.17, 0.67, 0.12, 0.99); /* Efecto de frenado suave */
    position: relative;
}

/* Iconos dentro de la rueda */
.wheel-icon {
    position: absolute;
    font-size: 2rem;
    color: white;
    text-shadow: 2px 2px 0 #000;
    top: 50%;
    left: 50%;
}
/* Posicionamos los iconos en los 4 cuadrantes */
.icon-1 { transform: translate(30px, -80px) rotate(45deg); }  /* Top Right */
.icon-2 { transform: translate(30px, 30px) rotate(135deg); }  /* Bottom Right */
.icon-3 { transform: translate(-80px, 30px) rotate(225deg); } /* Bottom Left */
.icon-4 { transform: translate(-80px, -80px) rotate(315deg); }/* Top Left */

/* Texto del resultado */
.winner-text {
    font-size: 1.2rem;
    color: #fff;
    margin-top: 20px;
    text-align: center;
    line-height: 1.5;
    min-height: 60px;
    text-shadow: 3px 3px 0 #000;
}

.winner-span {
    display: block;
    font-size: 1.8rem;
    margin-top: 10px;
    color: var(--gold);
    animation: blink 0.5s infinite alternate;
}

@keyframes blink { from { opacity: 1; } to { opacity: 0.5; } }
/* --- ESTILOS ACTUALIZADOS DE LA RULETA (TEXTO) --- */

/* Texto dentro de la rueda */
.wheel-label {
    position: absolute;
    top: 50%;
    left: 50%;
    transform-origin: center;
    
    /* Centrado absoluto para manipularlo desde el centro */
    width: 120px; 
    margin-left: -60px; /* Mitad del width */
    margin-top: -10px;  /* Ajuste vertical */
    
    text-align: center;
    color: white;
    text-shadow: 2px 2px 0 #000, -1px -1px 0 #000; /* Borde negro fuerte para leerse bien */
    font-size: 0.55rem; /* Fuente pequeña para que quepa BOMBERMAN */
    font-weight: bold;
    pointer-events: none;
    z-index: 5;
}

/* Lógica de Posición:
   1. Rotamos el texto hacia el ángulo del cuadrante.
   2. Trasladamos (translate) en Y negativo para empujarlo hacia el borde (radio).
*/

/* BOMBERMAN (Azul 0-90°) -> Ángulo 45° */
.label-1 { 
    transform: rotate(45deg) translate(0, -85px); 
} 

/* SMASH (Rojo 90-180°) -> Ángulo 135° */
.label-2 { 
    /* El rotate(180deg) extra es para que el texto no quede de cabeza */
    transform: rotate(135deg) translate(0, -85px) rotate(180deg); 
}

/* UNO (Amarillo 180-270°) -> Ángulo 225° */
.label-3 { 
    transform: rotate(225deg) translate(0, -85px) rotate(180deg); 
} 

/* VIRUS (Verde 270-360°) -> Ángulo 315° */
.label-4 { 
    transform: rotate(315deg) translate(0, -85px); 
}