        body {
            font-family: 'Inter', sans-serif;
            margin: 0;
            display: flex;
            justify-content: center;
            height: 100vh;
            height: 100dvh;
            background-color: #F3F4F6;
            overflow: hidden;
        }

        #mobile-frame {
            width: 100%;
            max-width: 430px;
            height: 100%;
            background-color: #F9FAFB;
            box-shadow: 0 0 20px rgba(0, 0, 0, 0.1);
            position: relative;
            display: flex;
            flex-direction: column;
            overflow: hidden;
        }

        /* Ocultar barra de scroll */
        ::-webkit-scrollbar {
            width: 0px;
            background: transparent;
        }

        /* Cabecera del ranking (Contenedor Sticky) */
        .ranking-header-wrapper {
            position: sticky;
            top: 0;
            z-index: 40;
            background-color: #F5F5F5;
            /* border-radius: 0 0 20px 20px; */
            /* box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12); */
            margin-bottom: 18px;
        }

        /* Degradado verde del header */
        .header-bg-gradient {
            background: linear-gradient(180deg, #306859 0%, #F5F5F5 100%);
            padding-top: 18px;
            padding-bottom: 8px;
            /* border-radius: 0 0 20px 20px; */
            padding-left: 16px;
            padding-right: 16px;
            position: relative;
        }

        /* Contenedor del Podio */
        #podium-container {
            width: 100%;
            display: flex;
            justify-content: center;
            align-items: flex-end;
            padding-left: 8px;
            padding-right: 8px;
            gap: 8px;
        }

        /* Tarjeta base del podio */
        .podium-card {
            display: flex;
            flex-direction: column;
            align-items: center;
            flex: 1 1 0%;
            cursor: pointer;
            transition: transform 0.2s;
        }

        .podium-card:active {
            transform: scale(0.98);
        }

        /* Especificidades por posición */
        .podium-card.first-place {
            z-index: 10;
            margin-left: -4px;
            margin-right: -4px;
            margin-bottom: 12px;
            max-width: 92px;
        }

        .podium-card.second-place,
        .podium-card.third-place {
            margin-bottom: 4px;
            max-width: 76px;
        }

        /* Contenedor de la foto de perfil */
        .podium-img-wrapper {
            position: relative;
            margin-bottom: 6px;
        }

        /* Avatares */
        .podium-avatar {
            border-radius: 9999px;
            object-fit: cover;
        }

        .podium-avatar.first-place {
            width: 80px;
            height: 80px;
        }

        .podium-avatar.second-place,
        .podium-avatar.third-place {
            width: 60px;
            height: 60px;
        }

        /* Insignias de posición (1º, 2º, 3º) */
        .podium-badge {
            position: absolute;
            border-radius: 9999px;
            display: flex;
            align-items: center;
            justify-content: center;
            color: #ffffff;
            font-weight: bold;
        }

        .podium-badge.first-place {
            bottom: 0;
            right: 0;
            width: 24px;
            height: 24px;
            font-size: 10px;
        }

        .podium-badge.second-place,
        .podium-badge.third-place {
            bottom: -3px;
            right: -3px;
            width: 20px;
            height: 20px;
            font-size: 9px;
        }

        /* Nombres */
        .podium-name {
            display: block;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            width: 100%;
            text-align: center;
            font-size: 13px;
            font-weight: 500;
            color: #1F2937;
            margin-bottom: 4px;
        }

        /* Clase para nombres en la lista de posiciones */
        .ranking-player-name {
            flex: 1 1 0%;
            text-overflow: ellipsis;
            overflow: hidden;
            white-space: nowrap;
            font-size: 14px;
            font-weight: 600;
            color: #1F2937;
        }

        /* Puntajes */
        .podium-score {
            line-height: 1.25;
        }

        .podium-score.first-place {
            font-size: 1.15rem;
            font-weight: 900;
            color: #1f2937;
        }

        .podium-score.second-place,
        .podium-score.third-place {
            font-size: 0.95rem;
            font-weight: 700;
            color: #1f2937;
        }

        /* Espaciadores vacíos si falta jugador */
        .podium-empty-spacer {
            flex: 1 1 0%;
            max-width: 76px;
        }

        /* Sin estadísticas */
        .podium-no-data {
            color: rgba(255, 255, 255, 0.8);
            font-size: 0.875rem;
            padding-top: 1rem;
            padding-bottom: 1rem;
            font-weight: 500;
            width: 100%;
            text-align: center;
        }

        /* Contenedor del listado de posiciones */
        #ranking-list {
            padding-left: 24px;
            padding-right: 24px;
            padding-bottom: 24px;
            display: flex;
            flex-direction: column;
            gap: 0;
            margin-bottom: 100px;
        }

        /* Contenedor de controles (Botón de presentación y filtro) */
        #ranking-controls-container {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding-left: 24px;
            padding-right: 24px;
            padding-top: 12px;
            padding-bottom: 12px;
            margin-bottom: 10px;
        }

        /* Descripción del ranking actual */
        #ranking-description {
            padding-left: 24px;
            padding-right: 24px;
            padding-bottom: 8px;
            font-size: 0.72rem;
            color: #9CA3AF;
            font-weight: 500;
            margin-bottom: 10px;
        }

        /* Estilo select premium y compacto */
        .ranking-select {
            appearance: none;
            background-color: #ffffff;
            border: 1px solid rgba(0, 0, 0, 0.08);
            border-radius: 20px;
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            padding: 6px 32px 6px 14px;
            font-size: 12px;
            font-weight: 600;
            color: #306859;
            outline: none;
            cursor: pointer;
            background-image: url('data:image/svg+xml;charset=US-ASCII,%3Csvg width%3D%2212%22 height%3D%2212%22 viewBox%3D%220 0 24 24%22 fill%3D%22%23306859%22 xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%3E%3Cpath d%3D%22M7 10l5 5 5-5z%22%2F%3E%3C%2Fsvg%3E');
            background-repeat: no-repeat;
            background-position: right 12px center;
            transition: all 0.2s;
        }

        .ranking-select:hover {
            background-color: #f9fafb;
            border-color: rgba(0, 0, 0, 0.12);
        }

        /* Fila de la lista compacta */
        .ranking-list-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f3f4f6;
            cursor: pointer;
            transition: background-color 0.2s;
        }

        .ranking-list-item:active {
            background-color: #f9fafb;
        }

        /* Posición en el listado */
        .ranking-position-badge {
            font-size: 13px;
            color: #6b7280;
            width: 24px;
            font-weight: 500;
        }

        /* Avatar de lista compacto */
        .ranking-list-avatar {
            width: 34px;
            height: 34px;
            border-radius: 9999px;
            object-fit: cover;
            margin-right: 12px;
            box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
        }

        /* Puntaje en la lista compacto */
        .ranking-list-score {
            font-size: 15px;
            font-weight: 700;
            color: #306859;
        }

        /* Insignias de medallas (oro, plata, bronce) */
        .badge-gold {
            background: linear-gradient(135deg, #FFD700 0%, #D4AF37 100%);
            box-shadow: 0 2px 4px rgba(212, 175, 55, 0.4);
        }

        .badge-silver {
            background: linear-gradient(135deg, #E0E0E0 0%, #BDBDBD 100%);
            box-shadow: 0 2px 4px rgba(189, 189, 189, 0.4);
        }

        .badge-bronze {
            background: linear-gradient(135deg, #CD7F32 0%, #A0522D 100%);
            box-shadow: 0 2px 4px rgba(205, 127, 50, 0.4);
        }

        .avatar-shadow {
            box-shadow: 0 8px 16px rgba(0, 0, 0, 0.15);
        }

        .cont_scroll_area {
            padding-left: 20px;
            padding-right: 20px;
        }

        /* --- ESTILOS DEL DROPDOWN DE PREMIOS --- */
        .relative {
            position: relative;
        }

        .ranking-dropdown {
            position: absolute;
            top: calc(100% + 6px);
            right: 0;
            z-index: 100;
            width: 180px;
            background-color: #ffffff;
            border-radius: 4px;
            box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
            display: flex;
            flex-direction: column;
            border: 1px solid rgba(0, 0, 0, 0.06);
            animation: fadeInDropdown 0.18s cubic-bezier(0.4, 0, 0.2, 1);
            box-sizing: border-box;
            overflow: hidden;
        }

        .ranking-dropdown.hidden {
            display: none !important;
        }

        .ranking-dropdown-item {
            display: block;
            width: 100%;
            padding: 10px 16px;
            text-align: center;
            font-size: 11.5px;
            color: #333333;
            text-decoration: none;
            background-color: #ffffff;
            transition: background-color 0.15s ease, color 0.15s ease;
            border-bottom: 1px solid rgba(0, 0, 0, 0.05);
            font-weight: 400;
            box-sizing: border-box;
            cursor: pointer;
            user-select: none;
            white-space: nowrap;
            overflow: hidden;
            text-overflow: ellipsis;
        }

        .ranking-dropdown-item:last-child {
            border-bottom: none;
        }

        .ranking-dropdown-item:hover {
            background-color: #f5f5f5;
            color: #111111;
        }

        .ranking-dropdown-item:active {
            background-color: #e9e9e9;
        }

        /* Destacado para el item seleccionado */
        .ranking-dropdown-item.active {
            color: #306859;
            font-weight: 600;
            background-color: #f5f5f5;
        }

        /* --- ESTILOS DE PRESENTACION OVERLAY --- */
        #presentation-overlay {
            position: fixed;
            inset: 0;
            z-index: 10000;
            background-color: #050505;
            color: white;
            overflow: hidden;
            display: none;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            --gold: #ffcf4d;
            --gold-shadow: rgba(255, 207, 77, 0.6);
            --card-bg: linear-gradient(135deg, #1a1a1a 0%, #000 100%);
        }

        #presentation-overlay .ambient-light {
            position: absolute;
            top: 10%;
            width: 150%;
            height: 80%;
            background: conic-gradient(from 180deg at 50% 50%, transparent 0%, var(--gold-shadow) 20%, transparent 40%);
            filter: blur(80px);
            opacity: 0.15;
            animation: rotateLight 15s linear infinite;
        }

        @keyframes rotateLight {
            from {
                transform: rotate(0deg);
            }

            to {
                transform: rotate(360deg);
            }
        }

        #presentation-overlay .title-container {
            position: absolute;
            top: 8%;
            z-index: 200;
            text-align: center;
            width: 100%;
        }

        #presentation-overlay .main-title {
            font-size: 2.5rem;
            font-weight: 900;
            margin: 0;
            text-transform: uppercase;
            line-height: 1;
            color: white;
            opacity: 0;
            transform: scale(1.5);
            filter: blur(10px);
            transition: all 0.5s cubic-bezier(0.17, 0.89, 0.32, 1.49);
        }

        #presentation-overlay .main-title.active {
            opacity: 1;
            transform: scale(1);
            filter: blur(0);
            text-shadow: 0 0 20px var(--gold), 0 0 40px white;
        }

        #presentation-overlay .players-stage {
            position: relative;
            width: 100%;
            height: 60vh;
            display: flex;
            justify-content: center;
            align-items: center;
            z-index: 50;
        }

        #presentation-overlay .player-card {
            width: 105px;
            height: 160px;
            background: var(--card-bg);
            border: 2px solid var(--gold);
            border-radius: 8px;
            position: absolute;
            opacity: 0;
            display: flex;
            flex-direction: column;
            overflow: hidden;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.9);
            transform: translateY(100vh);
            transition: transform 1s cubic-bezier(0.175, 0.885, 0.32, 1.275), opacity 0.5s ease;
        }

        #presentation-overlay .card-presenting {
            opacity: 1;
            transform: translateY(0) scale(1.3) !important;
            z-index: 100 !important;
            box-shadow: 0 0 50px var(--gold-shadow);
        }

        #presentation-overlay .player-card.final-pos {
            opacity: 1;
        }

        #presentation-overlay .player-img-wrapper {
            height: 70%;
            width: 100%;
            background: linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.8));
        }

        #presentation-overlay .player-card-img {
            width: 100%;
            height: 100%;
            object-fit: cover;
        }

        #presentation-overlay .player-info {
            height: 30%;
            background: var(--gold);
            color: black;
            display: flex;
            justify-content: center;
            align-items: center;
            font-weight: 900;
        }

        #presentation-overlay .player-name {
            font-size: 0.7rem;
            text-transform: uppercase;
        }

        #presentation-overlay .screen-flash {
            position: absolute;
            inset: 0;
            background: white;
            z-index: 300;
            pointer-events: none;
            opacity: 0;
        }

        #presentation-overlay .flash-active {
            animation: flashAnim 0.8s ease-out;
        }

        @keyframes flashAnim {
            0% {
                opacity: 1;
            }

            100% {
                opacity: 0;
            }
        }

        #presentation-overlay .sparkle {
            position: absolute;
            background: white;
            border-radius: 50%;
            pointer-events: none;
            z-index: 60;
        }

        #presentation-overlay .action-btn {
            position: absolute;
            bottom: 8%;
            left: 50%;
            transform: translateX(-50%);
            padding: 14px 32px;
            background-color: #000000;
            border: 1px solid #3a3a3a;
            border-radius: 8px;
            color: white;
            font-weight: 600;
            font-size: 15px;
            cursor: pointer;
            z-index: 1000;
            /*box-shadow: 0 4px 12px rgba(48, 104, 89, 0.3);*/
            transition: transform 0.2s, background-color 0.2s;
        }

        #presentation-overlay .action-btn:active {
            transform: translateX(-50%) scale(0.95);
            background-color: #558777;
        }

        #presentation-overlay .omitir-btn {
            position: absolute;
            bottom: 20px;
            right: 20px;
            padding: 6px 12px;
            background: rgba(255, 255, 255, 0.1);
            border: 1px solid rgba(255, 255, 255, 0.3);
            border-radius: 20px;
            color: rgba(255, 255, 255, 0.7);
            font-size: 10px;
            font-weight: 700;
            text-transform: uppercase;
            cursor: pointer;
            z-index: 1000;
            transition: all 0.2s;
        }

        #presentation-overlay .omitir-btn:hover {
            background: rgba(255, 255, 255, 0.2);
            color: white;
        }

        #presentation-overlay .reflector {
            position: absolute;
            top: -20%;
            width: 150px;
            height: 120vh;
            background: linear-gradient(to bottom, rgba(255, 255, 255, 0.6) 0%, transparent 100%);
            filter: blur(25px);
            opacity: 0;
            transform-origin: top center;
            z-index: 10;
            pointer-events: none;
            transition: opacity 0.1s ease-out;
        }

        #presentation-overlay .reflector.left {
            left: 15%;
            transform: rotate(-25deg);
        }

        #presentation-overlay .reflector.right {
            right: 15%;
            transform: rotate(25deg);
        }

        #presentation-overlay .reflector.center {
            left: 50%;
            transform: translateX(-50%);
        }


        @keyframes explosionShake {
            0% {
                transform: scale(1);
            }

            10% {
                transform: scale(1.1) rotate(1deg);
                filter: brightness(1.5);
            }

            20% {
                transform: scale(1) rotate(-1deg);
            }

            30% {
                transform: scale(1.05);
            }

            100% {
                transform: scale(1);
            }
        }

        /* --- BOTÓN VER PRESENTACIÓN --- */
        #replay-presentation-btn {
            background-color: #ffffff;
            border-radius: 20px;
            border: 1px solid rgba(0, 0, 0, 0.08);
            box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
            padding: 6px 14px;
            font-size: 12px;
            font-weight: 600;
            color: #306859;
            cursor: pointer;
            transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
            display: inline-flex;
            align-items: center;
            justify-content: center;
            font-family: 'Inter', sans-serif;
            text-transform: none;
            outline: none;
            user-select: none;
        }

        #replay-presentation-btn:hover {
            background-color: #f9fafb;
            transform: translateY(-1px);
            box-shadow: 0 6px 10px -1px rgba(0, 0, 0, 0.08);
            color: #244f43;
        }

        #replay-presentation-btn:active {
            transform: translateY(0);
            background-color: #f3f4f6;
        }

        #replay-presentation-btn.hidden {
            display: none !important;
        }

        /* --- RESPONSIVE PARA PANTALLAS MENORES A 400px --- */
        @media (max-width: 400px) {
            #replay-presentation-btn {
                font-size: 10px;
                padding: 6px 10px;
            }

            .ranking-select {
                font-size: 10px;
                padding: 6px 26px 6px 10px;
                background-position: right 8px center;
            }
        }

        /* --- ESTILOS DE SKELETON SCREEN (CARGA PREMIUM) --- */
        .skeleton-pulse {
            background: linear-gradient(90deg, #f0f0f0 25%, #e6e6e6 50%, #f0f0f0 75%);
            background-size: 200% 100%;
            animation: skeleton-shimmer 1.5s infinite linear;
            border-radius: 4px;
        }

        @keyframes skeleton-shimmer {
            0% {
                background-position: 200% 0;
            }

            100% {
                background-position: -200% 0;
            }
        }

        /* Avatares del podio skeleton */
        .skeleton-avatar {
            border-radius: 9999px !important;
            border: 2px solid #ffffff;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
        }

        .skeleton-avatar.first {
            width: 80px;
            height: 80px;
        }

        .skeleton-avatar.side {
            width: 60px;
            height: 60px;
        }

        /* Texto skeleton */
        .skeleton-text {
            height: 12px;
            margin: 6px auto;
            border-radius: 6px;
        }

        .skeleton-text.name {
            width: 50px;
        }

        .skeleton-text.score {
            width: 24px;
            height: 16px;
        }

        /* Fila de lista skeleton */
        .skeleton-list-item {
            display: flex;
            align-items: center;
            padding: 10px 0;
            border-bottom: 1px solid #f3f4f6;
        }

        .skeleton-list-badge {
            width: 18px;
            height: 14px;
            border-radius: 4px;
            margin-right: 6px;
        }

        .skeleton-list-avatar {
            width: 34px;
            height: 34px;
            border-radius: 9999px;
            margin-right: 12px;
        }

        .skeleton-list-name {
            width: 100px;
            height: 12px;
            border-radius: 6px;
        }

        .skeleton-list-score {
            width: 20px;
            height: 16px;
            border-radius: 4px;
            margin-left: auto;
        }