/* ========================================================
   🌍 ESTADIOS VIRTUALES - MÓDULO CSS: STADIUMGUESSR, VERSUS 1V1, RANKINGS Y LIGAS
   ======================================================== */
/* ========================================================
   🏆 BOTONES HERO (RETO DIARIO Y LIGA PRIVADA)
   ======================================================== */
.hero-shortcuts-row {
    position: relative;
    width: 100%;
    max-width: 1300px;
    margin: 75px auto 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 30px;
    box-sizing: border-box;
    pointer-events: none;
    z-index: 10;
}

.btn-reto-banner,
.btn-liga-banner {
    position: relative;
    pointer-events: auto;
    width: 320px;
    min-height: 82px;
    height: 82px;
    padding: 12px 16px 12px 75px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    overflow: visible !important;
    box-sizing: border-box;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
}

/* 🟢 RETO DIARIO (PC) */
.btn-reto-banner {
    left: 0px;  /* 👈 [PC] HORIZONTAL RETO: Positivos lo mueven a la DERECHA, negativos a la IZQUIERDA */
    top: 0px;   /* 👈 [PC] VERTICAL RETO: Positivos lo BAJAN, negativos lo SUBEN */
    background: linear-gradient(145deg, rgba(0, 255, 119, 0.14) 0%, rgba(10, 16, 28, 0.94) 50%, rgba(8, 14, 24, 0.98) 100%);
    border: 1.5px solid rgba(0, 255, 119, 0.4);
    border-top: 2px solid rgba(110, 255, 180, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 119, 0.2);
}

.btn-reto-banner:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #00ff77;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(0, 255, 119, 0.45);
}

/* 🏆 LIGA DE AMIGOS (PC) */
.btn-liga-banner {
    right: 0px; /* 👈 [PC] HORIZONTAL LIGA: Positivos lo mueven a la IZQUIERDA, negativos a la DERECHA */
    top: 0px;   /* 👈 [PC] VERTICAL LIGA: Positivos lo BAJAN, negativos lo SUBEN */
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.14) 0%, rgba(14, 18, 28, 0.94) 50%, rgba(10, 14, 24, 0.98) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.4);
    border-top: 2px solid rgba(254, 240, 138, 0.8);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 20px rgba(251, 191, 36, 0.2);
}

.btn-liga-banner:hover {
    transform: translateY(-5px) scale(1.02);
    border-color: #fbbf24;
    box-shadow: 0 18px 40px rgba(0, 0, 0, 0.7), 0 0 35px rgba(251, 191, 36, 0.45);
}

.btn-reto-banner:active,
.btn-liga-banner:active {
    transform: translateY(1px) scale(0.99);
}

/* 🧰 BAÚL 3D (PC) */
.reto-baul-img {
    position: absolute;
    left: -60px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 165px;
    height: 165px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(0, 255, 119, 0.85));
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 0.35s ease, filter 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.btn-reto-banner:hover .reto-baul-img {
    transform: translateY(-50%) scale(1.1) rotate(-4deg);
    filter: drop-shadow(0 0 28px rgba(0, 255, 119, 1));
}

/* 🏆 ÍCONO LIGA 3D (PC) */
.liga-banner-img {
    position: absolute;
    left: -30px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.85));
    will-change: transform;
    backface-visibility: hidden;
    transition: transform 0.35s ease, filter 0.35s ease;
    pointer-events: none;
    z-index: 3;
}

.btn-liga-banner:hover .liga-banner-img {
    transform: translateY(-50%) scale(1.1) rotate(4deg);
    filter: drop-shadow(0 0 28px rgba(251, 191, 36, 1));
}

.reto-banner-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    gap: 2px;
    position: relative;
    z-index: 2;
}

/* Micro-Kickers con Dot Pulsante */
.shortcut-kicker {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 1px;
    line-height: 1;
}
.kicker-reto { color: #00ff77; text-shadow: 0 0 8px rgba(0, 255, 119, 0.6); }
.kicker-liga { color: #fbbf24; text-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }

.live-dot-pulse {
    width: 5px;
    height: 5px;
    border-radius: 50%;
    display: inline-block;
}
.dot-reto {
    background: #00ff77;
    box-shadow: 0 0 6px #00ff77;
    animation: pulseGlow 1.6s infinite;
}
.dot-liga {
    background: #fbbf24;
    box-shadow: 0 0 6px #fbbf24;
    animation: pulseGlow 1.6s infinite;
}

.reto-banner-text strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.15;
    margin: 1px 0;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.reto-sub-desc {
    display: block;
    font-size: 0.74rem;
    color: #cbd5e1;
    font-weight: 600;
    line-height: 1.3;
}

.reto-sub-pill {
    display: none;
}

.kicker-txt-desktop {
    display: inline;
}
.kicker-txt-mobile {
    display: none;
}

/* 📱 ATAJOS HIGH-VOLTAGE GAMER PARA CELULARES */
@media (max-width: 1024px) {
    .hero-shortcuts-row {
        display: flex !important;
        flex-wrap: wrap !important;
        justify-content: center !important;
        gap: 10px !important;
        width: 100% !important;
        max-width: 440px !important;
        margin: 18px auto 0 auto !important;
        padding: 0 12px !important;
        box-sizing: border-box !important;
    }

    .btn-once-banner {
        order: 1 !important;
        width: 100% !important;
        max-width: 175px !important;
        height: 36px !important;
        min-height: 36px !important;
        padding: 0 14px 0 42px !important;
        border-radius: 12px !important;
        margin: 0 auto !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        box-sizing: border-box !important;
        overflow: visible !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        background: linear-gradient(145deg, rgba(0, 255, 119, 0.18) 0%, rgba(8, 14, 26, 0.96) 50%, rgba(10, 22, 18, 0.98) 100%) !important;
        border: 1.5px solid rgba(0, 255, 119, 0.45) !important;
        border-top: 2px solid rgba(110, 255, 180, 0.85) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 255, 119, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
        transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease !important;
    }

    .btn-once-banner:active {
        transform: scale(0.96) !important;
    }

    .once-banner-img {
        width: 56px !important;
        height: 56px !important;
        left: -15px !important;
        top: 50% !important;
        transform: translateY(-50%) translateZ(0) !important;
        filter: drop-shadow(0 0 14px rgba(0, 255, 119, 0.95)) !important;
        z-index: 3 !important;
    }

    .btn-once-banner .reto-banner-text {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }

    .btn-once-banner .shortcut-kicker,
    .btn-once-banner .reto-sub-desc,
    .btn-once-banner .reto-sub-pill {
        display: none !important;
    }

    .btn-once-banner .reto-banner-text strong {
        font-size: 0.76rem !important;
        font-weight: 900 !important;
        letter-spacing: -0.2px !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.15 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
        text-transform: uppercase !important;
    }

    .btn-reto-banner {
        order: 2 !important;
    }

    .btn-liga-banner {
        order: 3 !important;
    }

    .btn-reto-banner,
    .btn-liga-banner {
        position: relative !important;
        left: auto !important;
        right: auto !important;
        bottom: auto !important;
        top: auto !important;
        flex: 1 1 0 !important;
        width: auto !important;
        max-width: calc(50% - 5px) !important;
        height: 60px !important;
        min-height: 60px !important;
        padding: 0 8px 0 46px !important;
        margin: 0 !important;
        border-radius: 16px !important;
        box-sizing: border-box !important;
        justify-content: flex-start !important;
        overflow: visible !important;
        backdrop-filter: blur(16px) !important;
        -webkit-backdrop-filter: blur(16px) !important;
        transition: transform 0.15s cubic-bezier(0.4, 0, 0.2, 1), box-shadow 0.15s ease !important;
    }

    .btn-reto-banner:active,
    .btn-liga-banner:active {
        transform: scale(0.96) !important;
    }

    /* 🟢 RETO DIARIO: Cyber Emerald & Matrix Aura */
    .btn-reto-banner {
        background: linear-gradient(145deg, rgba(0, 255, 119, 0.18) 0%, rgba(8, 14, 26, 0.96) 50%, rgba(10, 22, 18, 0.98) 100%) !important;
        border: 1.5px solid rgba(0, 255, 119, 0.45) !important;
        border-top: 2px solid rgba(110, 255, 180, 0.85) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 16px rgba(0, 255, 119, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }

    /* 🏆 LIGA DE AMIGOS: Cyber Gold & Neon Amber Aura */
    .btn-liga-banner {
        background: linear-gradient(145deg, rgba(251, 191, 36, 0.18) 0%, rgba(14, 18, 28, 0.96) 50%, rgba(26, 20, 8, 0.98) 100%) !important;
        border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
        border-top: 2px solid rgba(254, 240, 138, 0.85) !important;
        box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 0 0 16px rgba(251, 191, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    }

    .btn-reto-banner::before,
    .btn-liga-banner::before {
        display: none !important;
    }

    .shortcut-ambient-glow {
        position: absolute;
        inset: 0;
        border-radius: 16px;
        pointer-events: none;
        z-index: 1;
    }
    .glow-reto {
        background: radial-gradient(circle at 10% 50%, rgba(0, 255, 119, 0.22) 0%, transparent 60%);
    }
    .glow-liga {
        background: radial-gradient(circle at 10% 50%, rgba(251, 191, 36, 0.22) 0%, transparent 60%);
    }

    .reto-baul-img {
        width: 110px !important;
        height: 110px !important;
        left: -42px !important;
        top: 50% !important;
        filter: drop-shadow(0 0 16px rgba(0, 255, 119, 0.95)) !important;
        z-index: 3 !important;
    }

    .liga-banner-img {
        width: 62px !important;
        height: 62px !important;
        left: -16px !important;
        top: 50% !important;
        filter: drop-shadow(0 0 16px rgba(251, 191, 36, 0.95)) !important;
        z-index: 3 !important;
    }

    .reto-banner-text {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        width: 100% !important;
        gap: 1.5px !important;
        position: relative !important;
        z-index: 2 !important;
    }

    .shortcut-kicker {
        display: inline-flex !important;
        align-items: center !important;
        gap: 4px !important;
        font-size: 0.50rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.8px !important;
        line-height: 1 !important;
    }
    .kicker-txt-desktop { display: none !important; }
    .kicker-txt-mobile { display: inline !important; }
    .kicker-reto { color: #00ff77 !important; text-shadow: 0 0 8px rgba(0, 255, 119, 0.6); }
    .kicker-liga { color: #fbbf24 !important; text-shadow: 0 0 8px rgba(251, 191, 36, 0.6); }

    .live-dot-pulse {
        width: 4.5px;
        height: 4.5px;
        border-radius: 50%;
        display: inline-block;
    }
    .dot-reto {
        background: #00ff77;
        box-shadow: 0 0 6px #00ff77;
        animation: pulseGlow 1.6s infinite;
    }
    .dot-liga {
        background: #fbbf24;
        box-shadow: 0 0 6px #fbbf24;
        animation: pulseGlow 1.6s infinite;
    }

    .reto-banner-text strong {
        font-size: 0.76rem !important;
        font-weight: 900 !important;
        letter-spacing: -0.2px !important;
        color: #ffffff !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        margin: 0 !important;
        line-height: 1.15 !important;
        text-shadow: 0 1px 4px rgba(0, 0, 0, 0.9) !important;
        text-transform: uppercase !important;
    }

    .reto-sub-desc {
        display: none !important;
    }

    .reto-sub-pill {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 4px !important;
        font-size: 0.50rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: 16px !important;
        padding: 0 6px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        margin-top: 1px !important;
    }

    .sub-pill-img {
        width: 14px !important;
        height: 14px !important;
        object-fit: contain !important;
        display: inline-block !important;
        vertical-align: middle !important;
        filter: drop-shadow(0 0 4px rgba(0, 0, 0, 0.6)) !important;
    }

    .reto-sub-pill.pill-reto {
        display: none !important;
    }

    .reto-timer-chip {
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 3.5px !important;
        font-size: 0.50rem !important;
        font-weight: 900 !important;
        letter-spacing: 0.4px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        height: 16px !important;
        padding: 0 6px !important;
        border-radius: 5px !important;
        box-sizing: border-box !important;
        line-height: 1 !important;
        margin-top: 1px !important;
        color: #00ff77 !important;
        background: rgba(0, 255, 119, 0.16) !important;
        border: 1px solid rgba(0, 255, 119, 0.45) !important;
        box-shadow: 0 0 10px rgba(0, 255, 119, 0.3) !important;
    }

    .reto-timer-chip i {
        font-size: 0.62rem !important;
        color: #00ff77 !important;
        line-height: 1 !important;
        display: inline-block !important;
    }

    .reto-sub-pill.pill-liga {
        color: #fde047 !important;
        background: rgba(251, 191, 36, 0.16) !important;
        border: 1px solid rgba(251, 191, 36, 0.45) !important;
        box-shadow: 0 0 10px rgba(251, 191, 36, 0.3) !important;
    }
}

/* ☀️ Modo Claro */
[data-theme="light"] .btn-reto-banner,
[data-theme="light"] .btn-liga-banner {
    background: #f0f7f3 !important;
    border: 2px solid #a4bdae !important;
    box-shadow: 0 10px 25px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .btn-reto-banner:hover,
[data-theme="light"] .btn-liga-banner:hover {
    border-color: #00cc66 !important;
    box-shadow: 0 14px 30px rgba(0, 204, 102, 0.2) !important;
}

[data-theme="light"] .reto-banner-text strong {
    color: #00cc66 !important;
    text-shadow: none !important;
}

[data-theme="light"] .reto-banner-text span {
    color: #04160a !important;
}

[data-theme="light"] .reto-timer-chip {
    background: rgba(0, 204, 102, 0.15) !important;
    border-color: rgba(0, 204, 102, 0.5) !important;
    color: #046c38 !important;
}
[data-theme="light"] .reto-timer-chip i {
    color: #046c38 !important;
}

/* ⚽ EFECTO DE BOTÓN INTERACTIVO (HOVER Y CLICK) EN PESTAÑAS DE LIGA PRIVADA */
#liga-amigos-modal-body button[onclick*="cambiarVistaLiga"] {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, filter 0.2s ease !important;
}

#liga-amigos-modal-body button[onclick*="cambiarVistaLiga"]:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 6px 18px var(--accent-glow) !important;
    filter: brightness(1.15);
}

#liga-amigos-modal-body button[onclick*="cambiarVistaLiga"]:active {
    transform: translateY(1px) scale(0.98);
    box-shadow: none !important;
}
/* ========================================================
   🎨 ESTILIZACIÓN DE BOTONES DEL MENÚ STADIUMGUESSR (ESTILO HOMEPAGE)
   ======================================================== */
.guessr-menu-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.guessr-menu-section-title {
    font-size: 0.65rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-bottom: 10px;
    border-bottom: 1px dashed var(--border-subtle);
    padding-bottom: 4px;
}

.guessr-option-btn {
    width: 100%;
    padding: 14px 18px;
    border-radius: 18px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(24, 35, 58, 0.85) 0%, rgba(11, 16, 28, 0.95) 100%);
    color: var(--text-main);
    display: flex;
    align-items: center;
    gap: 14px;
    cursor: pointer;
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    position: relative;
    overflow: hidden;
    text-align: left;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1);
}

.guessr-option-btn::before {
    content: '';
    position: absolute;
    inset: 0;
    border-radius: 16px;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
    pointer-events: none;
}

.guessr-option-btn:hover {
    transform: translateY(-4px) scale(1.01);
}

.guessr-option-btn:active {
    transform: translateY(1px) scale(0.99);
}

.guessr-option-icon {
    width: 72px;
    height: 72px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    flex-shrink: 0;
    transition: transform 0.25s ease, filter 0.25s ease;
}

.guessr-option-btn:hover .guessr-option-icon {
    transform: scale(1.12) rotate(-3deg);
}

.guessr-option-text {
    display: flex;
    flex-direction: column;
    z-index: 1;
}

.guessr-option-text strong {
    font-size: 0.98rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-main);
}

.guessr-option-text span {
    font-size: 0.76rem;
    color: var(--text-muted);
    font-weight: 600;
    margin-top: 2px;
}

/* ========================================================
   🎨 IDENTIDAD VISUAL DE BOTONES (MENÚ STADIUMGUESSR)
   ======================================================== */

/* 🟢 1. MODO INDIVIDUAL (Verde Esmeralda Neón) */
.btn-opt-solo {
    border-top: 2px solid rgba(0, 255, 119, 0.55) !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(0, 255, 119, 0.13) 0%, transparent 60%),
        linear-gradient(165deg, rgba(16, 28, 44, 0.92) 0%, rgba(8, 14, 24, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(0, 255, 119, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-solo:hover {
    border-color: rgba(0, 255, 119, 0.6) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(0, 255, 119, 0.3) !important;
}
.btn-opt-solo .guessr-option-icon {
    background: rgba(0, 255, 119, 0.15);
    box-shadow: 0 0 14px rgba(0, 255, 119, 0.28);
}

/* 🔵 2. 1 VS 1 GLOBAL (Azul Eléctrico Versus) */
.btn-opt-versus {
    border-top: 2px solid rgba(41, 121, 255, 0.55) !important;
    background: 
        radial-gradient(circle at 50% 18%, rgba(41, 121, 255, 0.15) 0%, transparent 65%),
        linear-gradient(165deg, rgba(16, 26, 48, 0.92) 0%, rgba(8, 14, 28, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(41, 121, 255, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-versus:hover {
    border-color: rgba(41, 121, 255, 0.6) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(41, 121, 255, 0.3) !important;
}
.btn-opt-versus .guessr-option-icon {
    background: rgba(41, 121, 255, 0.15);
    box-shadow: 0 0 14px rgba(41, 121, 255, 0.28);
}

/* 🟣 3. SALA PRIVADA (Púrpura / Llave Neón) */
.btn-opt-privada {
    border-top: 2px solid rgba(167, 139, 250, 0.55) !important;
    background: 
        radial-gradient(circle at 50% 18%, rgba(167, 139, 250, 0.15) 0%, transparent 65%),
        linear-gradient(165deg, rgba(26, 20, 46, 0.92) 0%, rgba(12, 10, 26, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(167, 139, 250, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-privada:hover {
    border-color: rgba(167, 139, 250, 0.6) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(167, 139, 250, 0.3) !important;
}
.btn-opt-privada .guessr-option-icon {
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.28);
}

/* 🟡 4. TABLA DE POSICIONES (Oro Legendario / Copa) */
.btn-opt-ranking {
    border-top: 2px solid rgba(234, 179, 8, 0.55) !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(234, 179, 8, 0.13) 0%, transparent 60%),
        linear-gradient(165deg, rgba(28, 24, 38, 0.92) 0%, rgba(14, 12, 22, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(234, 179, 8, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-ranking:hover {
    border-color: rgba(234, 179, 8, 0.6) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 22px rgba(234, 179, 8, 0.3) !important;
}
.btn-opt-ranking .guessr-option-icon {
    background: rgba(234, 179, 8, 0.15);
    box-shadow: 0 0 14px rgba(234, 179, 8, 0.28);
}

/* 🟡 BOTÓN POR CAPACIDAD (Dorado / Ámbar) */
.btn-opt-capacidad {
    border-top: 2px solid rgba(251, 191, 36, 0.6) !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(251, 191, 36, 0.15) 0%, transparent 60%),
        linear-gradient(165deg, rgba(28, 24, 38, 0.92) 0%, rgba(14, 12, 22, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(251, 191, 36, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-capacidad:hover {
    border-color: rgba(251, 191, 36, 0.7) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(251, 191, 36, 0.35) !important;
}
.btn-opt-capacidad .guessr-option-icon {
    background: rgba(251, 191, 36, 0.15);
    box-shadow: 0 0 14px rgba(251, 191, 36, 0.28);
}

/* 🟣 BOTÓN POR ANTIGÜEDAD (Púrpura / Violeta Neón) */
.btn-opt-antiguedad {
    border-top: 2px solid rgba(167, 139, 250, 0.6) !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(167, 139, 250, 0.15) 0%, transparent 60%),
        linear-gradient(165deg, rgba(26, 20, 46, 0.92) 0%, rgba(12, 10, 26, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(167, 139, 250, 0.1), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
}
.btn-opt-antiguedad:hover {
    border-color: rgba(167, 139, 250, 0.7) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(167, 139, 250, 0.35) !important;
}
.btn-opt-antiguedad .guessr-option-icon {
    background: rgba(167, 139, 250, 0.15);
    box-shadow: 0 0 14px rgba(167, 139, 250, 0.28);
}

/* 🏆 BOTÓN RANKING DESAFÍOS (Menú Desafío de Orden) */
.btn-order-ranking-gold {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.14) 0%, rgba(20, 24, 38, 0.94) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.4) !important;
    border-top: 2px solid rgba(254, 240, 138, 0.8) !important;
    color: #fde68a !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), 0 0 14px rgba(251, 191, 36, 0.15) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-order-ranking-gold:hover {
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.4), 0 0 20px rgba(251, 191, 36, 0.3) !important;
    transform: translateY(-2px);
}

/* 🥇 BOTÓN MEDALLITA DE RANKING (Pantalla Final Desafío de Orden) */
.btn-order-medal-rank {
    background: linear-gradient(145deg, rgba(251, 191, 36, 0.16) 0%, rgba(18, 22, 34, 0.95) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.45) !important;
    border-top: 2px solid rgba(254, 240, 138, 0.85) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 12px rgba(251, 191, 36, 0.2) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-order-medal-rank:hover {
    border-color: #fbbf24 !important;
    box-shadow: 0 6px 20px rgba(251, 191, 36, 0.5), 0 0 18px rgba(251, 191, 36, 0.4) !important;
    transform: translateY(-2px);
}

/* 🔙 BOTÓN VOLVER (Desafío de Orden) */
.btn-order-back {
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.92) 0%, rgba(8, 14, 25, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    color: #cbd5e1 !important;
    border-radius: 14px !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}
.btn-order-back:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 🎯 BOTÓN CONFIRMAR ORDEN (Cristal Gamer Temático) */
.btn-order-confirm {
    border-radius: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    color: #ffffff !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

/* 🟡 Confirmar en Capacidad (Ámbar / Oro) */
.btn-order-confirm.capacidad {
    background: 
        radial-gradient(circle at 15% 50%, rgba(251, 191, 36, 0.28) 0%, transparent 65%),
        linear-gradient(135deg, rgba(38, 28, 12, 0.95) 0%, rgba(18, 14, 8, 0.98) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.55) !important;
    border-top: 2px solid #fef08a !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(251, 191, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
.btn-order-confirm.capacidad i {
    color: #fbbf24 !important;
    filter: drop-shadow(0 0 8px rgba(251, 191, 36, 0.7));
}
.btn-order-confirm.capacidad:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #fbbf24 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    filter: brightness(1.08);
}

/* 🟣 Confirmar en Antigüedad (Púrpura / Violeta Neón) */
.btn-order-confirm.antiguedad {
    background: 
        radial-gradient(circle at 15% 50%, rgba(167, 139, 250, 0.28) 0%, transparent 65%),
        linear-gradient(135deg, rgba(32, 20, 48, 0.95) 0%, rgba(14, 10, 24, 0.98) 100%) !important;
    border: 1.5px solid rgba(167, 139, 250, 0.55) !important;
    border-top: 2px solid #e9d5ff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(167, 139, 250, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
}
.btn-order-confirm.antiguedad i {
    color: #c084fc !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7));
}
.btn-order-confirm.antiguedad:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #c084fc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(167, 139, 250, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    filter: brightness(1.08);
}

/* ========================================================
   🏁 BOTONERAS DE FIN DE PARTIDA (STADIUMGUESSR & DESAFÍO DE ORDEN)
   ======================================================== */

/* 🟢 GUARDAR EN RANKING / GUARDAR RÉCORD */
.btn-endgame-save {
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.25) 0%, transparent 65%),
        linear-gradient(135deg, rgba(10, 36, 24, 0.95) 0%, rgba(6, 22, 15, 0.98) 100%) !important;
    border: 1.5px solid #00e676 !important;
    border-top: 2px solid #a7f3d0 !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 255, 119, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.btn-endgame-save i {
    color: #00ff77 !important;
    filter: drop-shadow(0 0 8px rgba(0, 255, 119, 0.7));
}
.btn-endgame-save:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #69ff9c !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(0, 255, 119, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

/* 🔵 REJUGAR */
.btn-endgame-replay {
    background: 
        radial-gradient(circle at 15% 50%, rgba(41, 121, 255, 0.25) 0%, transparent 65%),
        linear-gradient(135deg, rgba(16, 28, 50, 0.95) 0%, rgba(8, 16, 30, 0.98) 100%) !important;
    border: 1.5px solid rgba(41, 121, 255, 0.55) !important;
    border-top: 2px solid rgba(147, 197, 253, 0.85) !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(41, 121, 255, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.btn-endgame-replay i {
    color: #60a5fa !important;
    filter: drop-shadow(0 0 8px rgba(41, 121, 255, 0.7));
    transition: transform 0.35s ease;
}
.btn-endgame-replay:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #3b82f6 !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(41, 121, 255, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.btn-endgame-replay:hover i {
    transform: rotate(-180deg);
}

/* 🟡 VER RANKING (Con Medalla 3D) */
.btn-endgame-rank {
    background: 
        radial-gradient(circle at 15% 50%, rgba(251, 191, 36, 0.25) 0%, transparent 65%),
        linear-gradient(135deg, rgba(38, 28, 12, 0.95) 0%, rgba(18, 14, 8, 0.98) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.55) !important;
    border-top: 2px solid rgba(254, 240, 138, 0.85) !important;
    color: #fde68a !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(251, 191, 36, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
}
.btn-endgame-rank img {
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
    transition: transform 0.25s ease;
}
.btn-endgame-rank:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(251, 191, 36, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}
.btn-endgame-rank:hover img {
    transform: scale(1.12) rotate(-6deg);
}

/* 🔙 VOLVER (Menú de desafíos o Ligas) */
.btn-endgame-back {
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.92) 0%, rgba(8, 14, 25, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.14) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.28) !important;
    color: #cbd5e1 !important;
    border-radius: 12px !important;
    font-weight: 800 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
}
.btn-endgame-back:hover {
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
}

/* 📅 COMPARTIR RETO DIARIO (Wordle Style) */
.btn-endgame-daily-share {
    background: 
        radial-gradient(circle at 15% 50%, rgba(41, 121, 255, 0.3) 0%, transparent 65%),
        linear-gradient(135deg, rgba(18, 38, 70, 0.95) 0%, rgba(10, 20, 42, 0.98) 100%) !important;
    border: 1.5px solid #2979ff !important;
    border-top: 2px solid #93c5fd !important;
    color: #ffffff !important;
    border-radius: 14px !important;
    font-weight: 900 !important;
    letter-spacing: 0.3px !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(41, 121, 255, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 13px !important;
    margin-top: 6px !important;
}
.btn-endgame-daily-share i {
    color: #93c5fd !important;
    filter: drop-shadow(0 0 8px rgba(41, 121, 255, 0.7));
}
.btn-endgame-daily-share:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #60a5fa !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(41, 121, 255, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* ========================================================
   🟣 CARTEL FLOTANTE DE SALA PRIVADA (LOBBY GAMER)
   ======================================================== */
.private-lobby-card {
    position: fixed !important;
    top: 24px !important;
    left: 0 !important;
    right: 0 !important;
    margin: 0 auto !important;
    width: 92% !important;
    max-width: 420px !important;
    background: 
        radial-gradient(circle at 15% 20%, rgba(167, 139, 250, 0.18) 0%, transparent 60%),
        linear-gradient(165deg, rgba(26, 20, 46, 0.95) 0%, rgba(12, 10, 26, 0.98) 100%) !important;
    border: 1.5px solid rgba(167, 139, 250, 0.45) !important;
    border-top: 2px solid rgba(192, 132, 252, 0.85) !important;
    border-radius: 18px !important;
    padding: 16px 20px 18px !important;
    box-sizing: border-box !important;
    z-index: 99999 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.75), 0 0 25px rgba(167, 139, 250, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    animation: fadeSlideUp 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) both !important;
}

.private-lobby-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
}

.private-lobby-title-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.private-lobby-icon {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 8px rgba(167, 139, 250, 0.5)) !important;
}

.private-lobby-title-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 2px !important;
}

.private-lobby-title-text strong {
    font-size: 1rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    letter-spacing: -0.2px !important;
    text-transform: uppercase !important;
    line-height: 1.15 !important;
}

.private-lobby-badge {
    display: inline-flex !important;
    align-items: center !important;
    background: rgba(167, 139, 250, 0.18) !important;
    border: 1px solid rgba(167, 139, 250, 0.45) !important;
    color: #c084fc !important;
    padding: 1px 7px !important;
    border-radius: 6px !important;
    font-size: 0.64rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    line-height: 1.2 !important;
}

.private-lobby-close {
    background: rgba(255, 255, 255, 0.08) !important;
    border: 1px solid rgba(255, 255, 255, 0.15) !important;
    color: #cbd5e1 !important;
    width: 28px !important;
    height: 28px !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 0.95rem !important;
    cursor: pointer !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
}

.private-lobby-close:hover {
    background: var(--danger-color) !important;
    border-color: var(--danger-color) !important;
    color: #ffffff !important;
    transform: scale(1.08);
}

.private-lobby-desc {
    font-size: 0.80rem !important;
    color: #cbd5e1 !important;
    font-weight: 600 !important;
    line-height: 1.35 !important;
    margin: 0 !important;
    text-align: left !important;
}

.btn-private-invite {
    width: 100% !important;
    padding: 12px 16px !important;
    border-radius: 14px !important;
    font-size: 0.92rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.4px !important;
    color: #ffffff !important;
    background: 
        radial-gradient(circle at 15% 50%, rgba(167, 139, 250, 0.3) 0%, transparent 65%),
        linear-gradient(135deg, rgba(32, 20, 48, 0.95) 0%, rgba(14, 10, 24, 0.98) 100%) !important;
    border: 1.5px solid rgba(167, 139, 250, 0.6) !important;
    border-top: 2px solid #e9d5ff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 18px rgba(167, 139, 250, 0.3), inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
}

.btn-private-invite i {
    color: #c084fc !important;
    font-size: 1.15rem !important;
    filter: drop-shadow(0 0 8px rgba(167, 139, 250, 0.7)) !important;
}

.btn-private-invite:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #c084fc !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 24px rgba(167, 139, 250, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    filter: brightness(1.08);
}

.btn-private-invite:active {
    transform: translateY(1px) scale(0.98) !important;
}

/* ☀️ ADAPTACIÓN EN MODO CLARO (CRISTAL DIURNO CON IDENTIDAD) */
[data-theme="light"] .guessr-option-btn {
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}
[data-theme="light"] .guessr-option-text strong {
    color: #0f172a !important;
}
[data-theme="light"] .guessr-option-text span {
    color: #475569 !important;
}

[data-theme="light"] .btn-opt-solo {
    border-top: 2.5px solid #00a854 !important;
    background: radial-gradient(circle at 10% 50%, rgba(0, 204, 102, 0.09) 0%, transparent 55%), linear-gradient(165deg, #ffffff 0%, #f4fbf7 100%) !important;
}
[data-theme="light"] .btn-opt-solo:hover {
    border-color: #00a854 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(0, 204, 102, 0.15) !important;
}

[data-theme="light"] .btn-opt-versus {
    border-top: 2.5px solid #2563eb !important;
    background: radial-gradient(circle at 50% 18%, rgba(37, 99, 235, 0.09) 0%, transparent 60%), linear-gradient(165deg, #ffffff 0%, #f5f8ff 100%) !important;
}
[data-theme="light"] .btn-opt-versus:hover {
    border-color: #2563eb !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(37, 99, 235, 0.15) !important;
}

[data-theme="light"] .btn-opt-privada {
    border-top: 2.5px solid #7c3aed !important;
    background: radial-gradient(circle at 50% 18%, rgba(124, 58, 237, 0.09) 0%, transparent 60%), linear-gradient(165deg, #ffffff 0%, #faf6ff 100%) !important;
}
[data-theme="light"] .btn-opt-privada:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(124, 58, 237, 0.15) !important;
}

[data-theme="light"] .btn-opt-ranking {
    border-top: 2.5px solid #d97706 !important;
    background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.09) 0%, transparent 55%), linear-gradient(165deg, #ffffff 0%, #fefcf5 100%) !important;
}
[data-theme="light"] .btn-opt-ranking:hover {
    border-color: #d97706 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(217, 119, 6, 0.15) !important;
}

[data-theme="light"] .btn-opt-capacidad {
    border-top: 2.5px solid #d97706 !important;
    background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.09) 0%, transparent 55%), linear-gradient(165deg, #ffffff 0%, #fefcf5 100%) !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .btn-opt-capacidad:hover {
    border-color: #d97706 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(217, 119, 6, 0.15) !important;
}
[data-theme="light"] .btn-opt-capacidad strong {
    color: #b45309 !important;
}

[data-theme="light"] .btn-opt-antiguedad {
    border-top: 2.5px solid #7c3aed !important;
    background: radial-gradient(circle at 10% 50%, rgba(124, 58, 237, 0.09) 0%, transparent 55%), linear-gradient(165deg, #ffffff 0%, #faf6ff 100%) !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .btn-opt-antiguedad:hover {
    border-color: #7c3aed !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(124, 58, 237, 0.15) !important;
}
[data-theme="light"] .btn-opt-antiguedad strong {
    color: #6d28d9 !important;
}

[data-theme="light"] .btn-order-ranking-gold,
[data-theme="light"] .btn-order-medal-rank {
    background: #ffffff !important;
    border: 1.5px solid #d97706 !important;
    color: #78350f !important;
    box-shadow: 0 4px 12px rgba(217, 119, 6, 0.15) !important;
}
[data-theme="light"] .btn-order-ranking-gold:hover,
[data-theme="light"] .btn-order-medal-rank:hover {
    background: #fffbeb !important;
    border-color: #b45309 !important;
    box-shadow: 0 6px 18px rgba(217, 119, 6, 0.25) !important;
}

[data-theme="light"] .btn-order-back {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .btn-order-back:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-order-confirm.capacidad {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
    border: 1.5px solid #d97706 !important;
    border-top: 2px solid #f59e0b !important;
    color: #78350f !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.18) !important;
}
[data-theme="light"] .btn-order-confirm.capacidad i {
    color: #d97706 !important;
    filter: none;
}

[data-theme="light"] .btn-order-confirm.antiguedad {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #7c3aed !important;
    border-top: 2px solid #a855f7 !important;
    color: #581c87 !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18) !important;
}
[data-theme="light"] .btn-order-confirm.antiguedad i {
    color: #7c3aed !important;
    filter: none;
}

/* ☀️ Adaptación Modo Claro Botoneras Fin de Partida */
[data-theme="light"] .btn-endgame-save {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border: 1.5px solid #00cc66 !important;
    border-top: 2px solid #86efac !important;
    color: #04160a !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.18) !important;
}
[data-theme="light"] .btn-endgame-save i {
    color: #00a854 !important;
    filter: none;
}

[data-theme="light"] .btn-endgame-replay {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #2563eb !important;
    border-top: 2px solid #93c5fd !important;
    color: #1e3a8a !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.15) !important;
}
[data-theme="light"] .btn-endgame-replay i {
    color: #2563eb !important;
    filter: none;
}

[data-theme="light"] .btn-endgame-rank {
    background: linear-gradient(135deg, #fffbeb 0%, #ffffff 100%) !important;
    border: 1.5px solid #d97706 !important;
    border-top: 2px solid #fde68a !important;
    color: #78350f !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.18) !important;
}

[data-theme="light"] .btn-endgame-back {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #334155 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .btn-endgame-back:hover {
    background: #f8fafc !important;
    border-color: #94a3b8 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-endgame-daily-share {
    background: linear-gradient(135deg, #eff6ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #2563eb !important;
    border-top: 2px solid #93c5fd !important;
    color: #1e3a8a !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.18) !important;
}
[data-theme="light"] .btn-endgame-daily-share i {
    color: #2563eb !important;
    filter: none;
}

/* ☀️ Adaptación Modo Claro Lobby Privado */
[data-theme="light"] .private-lobby-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    border-top: 2.5px solid #7c3aed !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .private-lobby-title-text strong {
    color: #0f172a !important;
}

[data-theme="light"] .private-lobby-desc {
    color: #475569 !important;
}

[data-theme="light"] .private-lobby-close {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .btn-private-invite {
    background: linear-gradient(135deg, #faf5ff 0%, #ffffff 100%) !important;
    border: 1.5px solid #7c3aed !important;
    border-top: 2px solid #a855f7 !important;
    color: #581c87 !important;
    box-shadow: 0 4px 14px rgba(124, 58, 237, 0.18) !important;
}

[data-theme="light"] .btn-private-invite i {
    color: #7c3aed !important;
    filter: none !important;
}
/* ========================================================
   🏆 SALÓN DE LA FAMA & RANKINGS COMPETITIVOS PRO
   ======================================================== */
.liga-modal-header {
    text-align: center;
    margin-bottom: 16px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* ⚡ Disposición en 2 Columnas de Cabecera */
.liga-modal-header.split-header {
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    max-width: 480px;
    margin: 0 auto 16px;
    gap: 14px;
}

.modal-header-left {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    flex: 1;
    min-width: 0;
}

.modal-header-title-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}

.modal-header-right-pills {
    display: flex;
    flex-direction: column;
    gap: 7px;
    width: 175px;
    flex-shrink: 0;
}

/* 🏷️ Pastillas de Estadísticas de la Derecha */
.header-stat-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 7px 11px;
    border-radius: 13px;
    background: linear-gradient(145deg, rgba(20, 32, 54, 0.85) 0%, rgba(10, 16, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    box-shadow: 0 5px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.header-stat-pill:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.header-stat-pill i {
    font-size: 1.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 8px currentColor);
}

.stat-pill-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1.15;
    overflow: hidden;
    min-width: 0;
}

.stat-pill-info span {
    font-size: 0.50rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.stat-pill-info strong {
    font-size: 0.74rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

/* 🏟️ Escenario y Foco Neón Dinámico del Ícono Central */
.trophy-stage-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    margin: 2px auto 6px;
    overflow: visible;
}

.trophy-glow-backdrop {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 170px;
    height: 115px;
    filter: blur(24px);
    pointer-events: none;
    z-index: 0;
    transition: background 0.35s ease, width 0.3s ease, height 0.3s ease;
}

.trophy-glow-backdrop.glow-green {
    background: radial-gradient(ellipse, rgba(0, 255, 119, 0.45) 0%, transparent 70%);
}

.trophy-glow-backdrop.glow-blue {
    background: radial-gradient(ellipse, rgba(41, 121, 255, 0.45) 0%, transparent 70%);
}

.trophy-glow-backdrop.glow-gold {
    background: radial-gradient(ellipse, rgba(234, 179, 8, 0.45) 0%, transparent 70%);
}

/* ========================================================
   🏆 TAMAÑO UNIFICADO DE ÍCONOS (TABLAS DE POSICIONES Y ORDEN)
   ======================================================== */
.trophy-main-img-box {
    position: relative;
    width: 190px !important;
    height: 190px !important;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.trophy-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.9));
    animation: rayoGlow 3s infinite alternate ease-in-out;
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@media (max-width: 768px) {
    .trophy-main-img-box {
        width: 80px !important;
        height: 80px !important;
    }
}

@media (max-width: 600px) {
    .liga-modal-header.split-header {
        flex-direction: column;
        gap: 12px;
    }
    .modal-header-right-pills {
        flex-direction: row;
        width: 100%;
        gap: 6px;
    }
    .header-stat-pill {
        flex: 1;
        padding: 6px 6px;
        gap: 5px;
        justify-content: center;
    }
    .header-stat-pill i {
        font-size: 0.95rem;
    }
    .stat-pill-info {
        align-items: center;
        text-align: center;
    }
    .stat-pill-info span {
        font-size: 0.45rem;
    }
    .stat-pill-info strong {
        font-size: 0.65rem;
    }
}

/* 🛸 Banner HUD de Liga */
.liga-info-banner {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.16) 0%, rgba(15, 23, 42, 0.85) 60%, rgba(10, 16, 28, 0.95) 100%);
    border: 1.5px solid rgba(0, 230, 118, 0.45);
    border-top: 2px solid rgba(110, 255, 180, 0.75);
    padding: 12px 18px;
    border-radius: 16px;
    font-size: 0.88rem;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.45), 0 0 18px rgba(0, 230, 118, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.15);
}

.btn-salir-liga {
    background: linear-gradient(135deg, rgba(255, 71, 87, 0.18) 0%, rgba(200, 30, 50, 0.28) 100%);
    border: 1.5px solid rgba(255, 71, 87, 0.5);
    color: #ff6b81;
    padding: 6px 14px;
    border-radius: 10px;
    font-weight: 900;
    font-size: 0.76rem;
    letter-spacing: 0.8px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(255, 71, 87, 0.25);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-salir-liga:hover {
    background: rgba(255, 71, 87, 0.35);
    border-color: #ff4757;
    color: #ffffff;
    box-shadow: 0 0 18px rgba(255, 71, 87, 0.6);
    transform: translateY(-2px) scale(1.03);
}

.btn-salir-liga:active {
    transform: translateY(1px) scale(0.97);
}

/* 🎛️ Pestañas de Navegación Cápsula 3D */
.liga-tabs-row {
    display: flex;
    gap: 10px;
    margin-bottom: 16px;
    width: 100%;
}

.liga-tab-btn {
    flex: 1;
    min-width: 0;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: 0.4px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(165deg, rgba(24, 36, 58, 0.85) 0%, rgba(12, 18, 30, 0.95) 100%);
    color: var(--text-muted);
    cursor: pointer;
    transition: all 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 48px;
    box-sizing: border-box;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.liga-tab-btn:hover:not(.active) {
    border-color: rgba(255, 255, 255, 0.3);
    color: #ffffff;
    background: linear-gradient(165deg, rgba(32, 48, 76, 0.9) 0%, rgba(16, 24, 40, 0.98) 100%);
    transform: translateY(-3px);
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
}

.liga-tab-btn.active {
    background: linear-gradient(135deg, #00ff77 0%, #00b355 100%) !important;
    color: #000000 !important;
    border-color: #00ff77 !important;
    box-shadow: 0 8px 24px var(--accent-glow), 0 0 14px rgba(0, 255, 119, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    transform: translateY(-2px);
}

.ranking-tabs-row .liga-tab-btn {
    flex: 1;
    justify-content: flex-start;
    padding-left: 0;
    border-radius: 20px;
    min-width: 0;
}

.ranking-tab-img {
    width: 68px;
    height: 68px;
    object-fit: contain;
    flex-shrink: 0;
    margin-left: -12px;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7));
    transition: transform 0.25s ease;
}

.liga-tab-btn:hover .ranking-tab-img {
    transform: scale(1.08) rotate(-3deg);
}

/* 🏟️ Tarjeta de Tabla de Posiciones Cyber-Stadium */
.liga-table-card {
    background: linear-gradient(180deg, rgba(16, 26, 44, 0.92) 0%, rgba(9, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-top: 2px solid rgba(0, 230, 118, 0.5);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), 0 0 25px rgba(0, 230, 118, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

/* Filas individuales con transiciones dinámicas */
.liga-row-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 13px 20px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
    font-size: 0.94rem;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
}

.liga-row-item:last-child {
    border-bottom: none;
}

.liga-row-item:hover {
    background: rgba(0, 230, 118, 0.08) !important;
    transform: translateX(4px) scale(1.008);
    box-shadow: inset 0 0 20px rgba(0, 230, 118, 0.06);
}

/* 🥇 1º LUGAR: Corona de Oro */
.liga-table-card .liga-row-item:nth-child(1) {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.18) 0%, rgba(234, 179, 8, 0.03) 100%) !important;
    border-left: 3.5px solid #eab308;
}
.liga-table-card .liga-row-item:nth-child(1):hover {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.26) 0%, rgba(234, 179, 8, 0.08) 100%) !important;
    box-shadow: inset 0 0 25px rgba(234, 179, 8, 0.15);
}

/* 🥈 2º LUGAR: Sheen de Plata */
.liga-table-card .liga-row-item:nth-child(2) {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.15) 0%, rgba(156, 163, 175, 0.02) 100%) !important;
    border-left: 3.5px solid #cbd5e1;
}
.liga-table-card .liga-row-item:nth-child(2):hover {
    background: linear-gradient(90deg, rgba(156, 163, 175, 0.22) 0%, rgba(156, 163, 175, 0.06) 100%) !important;
    box-shadow: inset 0 0 25px rgba(156, 163, 175, 0.12);
}

/* 🥉 3º LUGAR: Brillo de Bronce */
.liga-table-card .liga-row-item:nth-child(3) {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.15) 0%, rgba(205, 127, 50, 0.02) 100%) !important;
    border-left: 3.5px solid #cd7f32;
}
.liga-table-card .liga-row-item:nth-child(3):hover {
    background: linear-gradient(90deg, rgba(205, 127, 50, 0.22) 0%, rgba(205, 127, 50, 0.06) 100%) !important;
    box-shadow: inset 0 0 25px rgba(205, 127, 50, 0.12);
}

/* 🟢 TU PROPIA FILA: Foco Neón */
.liga-row-item.es-propio {
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.22) 0%, rgba(0, 230, 118, 0.04) 100%) !important;
    border-left: 4px solid var(--accent-color) !important;
    box-shadow: inset 0 0 20px rgba(0, 230, 118, 0.12);
}

/* 📱 Responsive Móvil para Tablas y Pestañas */
@media (max-width: 768px) {
    .ranking-tabs-row {
        gap: 6px !important;
    }
    .ranking-tabs-row .liga-tab-btn {
        justify-content: center !important;
        padding: 4px 6px !important;
        height: 42px !important;
        font-size: 0.65rem !important;
        border-radius: 14px !important;
        gap: 4px !important;
    }
    .ranking-tab-img {
        width: 34px !important;
        height: 34px !important;
        margin-left: -4px !important;
    }
    .ranking-tabs-row .liga-tab-btn span {
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    .liga-row-item {
        padding: 11px 14px !important;
        font-size: 0.86rem !important;
    }
}

/* ☀️ Adaptación Modo Claro */
[data-theme="light"] .liga-modal-title {
    color: #04160a !important;
    text-shadow: none !important;
}

[data-theme="light"] .liga-info-banner {
    background: #f0f7f3 !important;
    border-color: #a4bdae !important;
    color: #04160a !important;
    box-shadow: 0 6px 20px rgba(4, 22, 10, 0.08) !important;
}

[data-theme="light"] .liga-tab-btn {
    background: #e8f3ee !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .liga-tab-btn.active {
    background: #00cc66 !important;
    color: #ffffff !important;
    border-color: #00cc66 !important;
    box-shadow: 0 6px 18px rgba(0, 204, 102, 0.3) !important;
}

[data-theme="light"] .liga-table-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 12px 35px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .liga-row-item {
    border-bottom-color: #e2e8f0 !important;
    color: #04160a !important;
}

[data-theme="light"] .liga-row-item:hover {
    background: #f1f8f5 !important;
}

/* ========================================================
   🏆 SALÓN DE LA FAMA & LIGA DE AMIGOS: DASHBOARD 2 COLUMNAS (PC PANORÁMICO)
   ======================================================== */
#ranking-modal .modal-content,
#liga-amigos-modal .modal-content {
    width: 92% !important;
    max-width: 1040px !important;
    height: 86vh !important;
    max-height: 86vh !important;
    padding: 24px 30px !important;
    overflow-y: auto !important;
    display: block !important;
}

.ranking-split-grid {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 28px;
    width: 100%;
    align-items: start;
}

/* 👈 PANEL IZQUIERDO: Trofeo, Título, Stats y Botones de modo */
.ranking-left-panel {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.ranking-brand-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    width: 100%;
}

.ranking-brand-box .trophy-stage-wrapper {
    margin: 0 auto 2px;
}

/* ========================================================
   🏆 1. TAMAÑO EXCLUSIVO DE LA COPA / ÍCONO SUPERIOR
   ======================================================== */
#ranking-modal .ranking-brand-box .trophy-main-img-box,
#liga-amigos-modal .ranking-brand-box .trophy-main-img-box {
    width: 190px !important;       /* 👈 [COPA] ANCHO DE LA CAJA */
    height: 190px !important;      /* 👈 [COPA] ALTO DE LA CAJA */
    overflow: visible !important;
}

#ranking-modal .ranking-brand-box .trophy-main-img,
#liga-amigos-modal .ranking-brand-box .trophy-main-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
}

/* ⚡ Ajuste óptico: la estatua y el reloj igualan el tamaño visual de la diana de la captura 3 */
#ranking-modal .ranking-brand-box .trophy-main-img[src*="capacidad"],
#ranking-modal .ranking-brand-box .trophy-main-img[src*="antiguedad"] {
    transform: scale(1.75) !important;
}

#ranking-modal .ranking-brand-box .trophy-glow-backdrop,
#liga-amigos-modal .ranking-brand-box .trophy-glow-backdrop {
    width: 200px !important;       /* 👈 [COPA] RESPLANDOR GLOW */
    height: 130px !important;
}

.ranking-brand-box .liga-modal-title {
    font-size: 1.35rem;
    font-weight: 900;
    margin: 2px 0 0;
    letter-spacing: -0.5px;
    text-transform: uppercase;
}

.ranking-pills-column {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.ranking-pills-column .header-stat-pill {
    padding: 6px 12px;
}

/* ========================================================
   🎮 2. SEPARACIÓN Y TAMAÑO DE LOS BOTONES DE MODO
   ======================================================== */
.ranking-sidebar-menu {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    margin-top: 18px;             /* 👈 SEPARACIÓN CON LAS ESTADÍSTICAS */
    padding-top: 12px;
    border-top: 1.5px dashed var(--border-subtle);
}

.ranking-left-panel .ranking-tabs-row {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 10px !important;          /* 👈 ESPACIO ENTRE BOTONES */
    width: 100% !important;
    margin: 0 !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn,
#liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn {
    position: relative !important;
    width: 220px !important;       /* 👈 ANCHO DEL BOTÓN */
    max-width: 100% !important;
    height: 42px !important;       /* 👈 ALTO/GROSOR DEL BOTÓN */
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 14px 0 52px !important; /* Espacio reservado para el icono a la izquierda */
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 14px !important;
    font-size: 0.80rem !important;
    font-weight: 900 !important;
    text-align: center !important;
    box-sizing: border-box !important;
    overflow: visible !important;
}

/* ========================================================
   🕹️ 3. BOTONES CON ONDA E ÍCONOS CENTRADOS (DESAFÍO DE ORDEN Y RANKINGS)
   ======================================================== */
#ranking-modal .ranking-left-panel .ranking-tab-img,
#liga-amigos-modal .ranking-left-panel .ranking-tab-img {
    position: absolute !important;
    left: 2px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 !important;
    flex-shrink: 0 !important;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7)) !important;
    pointer-events: none !important;
    transition: transform 0.25s ease !important;
}

/* ========================================================
   🎨 IDENTIDAD DINÁMICA DE BOTONES (RANKINGS Y LIGAS)
   ======================================================== */

/* 🟢 VERDE NEÓN: MODO INDIVIDUAL Y PUNTAJE MÁXIMO */
#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="solo"],
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="puntaje"] {
    background: linear-gradient(165deg, rgba(14, 32, 22, 0.88) 0%, rgba(8, 18, 12, 0.96) 100%) !important;
    border: 1.5px solid rgba(0, 255, 119, 0.35) !important;
    border-top: 1.5px solid rgba(110, 255, 180, 0.6) !important;
    color: #a7f3d0 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="solo"]:hover,
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="puntaje"]:hover {
    border-color: #00ff77 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 255, 119, 0.35) !important;
    transform: translateY(-2px);
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="solo"].active,
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="puntaje"].active {
    background: linear-gradient(135deg, #00ff77 0%, #00d66c 50%, #009e4f 100%) !important;
    border-color: #86efac !important;
    border-top: 2px solid #ffffff !important;
    color: #04160a !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 25px rgba(0, 255, 119, 0.5), 0 0 20px rgba(0, 255, 119, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* 🔵 AZUL ELÉCTRICO: 1 VS 1 HISTÓRICO Y HISTORIAL W/L */
#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_historico"],
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="triunfos"] {
    background: linear-gradient(165deg, rgba(16, 28, 50, 0.88) 0%, rgba(8, 14, 26, 0.96) 100%) !important;
    border: 1.5px solid rgba(41, 121, 255, 0.35) !important;
    border-top: 1.5px solid rgba(147, 197, 253, 0.6) !important;
    color: #bfdbfe !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_historico"]:hover,
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="triunfos"]:hover {
    border-color: #2979ff !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.35) !important;
    transform: translateY(-2px);
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_historico"].active,
#liga-amigos-modal .ranking-left-panel .liga-tab-btn[onclick*="triunfos"].active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    border-color: #93c5fd !important;
    border-top: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

/* 🟡 DORADO ORO: RANKING SEMANAL */
#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_semanal"] {
    background: linear-gradient(165deg, rgba(38, 30, 10, 0.88) 0%, rgba(18, 14, 6, 0.96) 100%) !important;
    border: 1.5px solid rgba(234, 179, 8, 0.35) !important;
    border-top: 1.5px solid rgba(254, 240, 138, 0.6) !important;
    color: #fef08a !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_semanal"]:hover {
    border-color: #eab308 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35) !important;
    transform: translateY(-2px);
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="v_semanal"].active {
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%) !important;
    border-color: #fef08a !important;
    border-top: 2px solid #ffffff !important;
    color: #1a1202 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* 🏆 ORO / ÁMBAR: CAPACIDAD */
#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="capacidad"] {
    background: linear-gradient(165deg, rgba(38, 28, 12, 0.88) 0%, rgba(18, 14, 8, 0.96) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.35) !important;
    border-top: 1.5px solid rgba(254, 240, 138, 0.6) !important;
    color: #fde68a !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="capacidad"]:hover {
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35) !important;
    transform: translateY(-2px);
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="capacidad"].active {
    background: linear-gradient(135deg, #fbbf24 0%, #f59e0b 50%, #d97706 100%) !important;
    border-color: #fef08a !important;
    border-top: 2px solid #ffffff !important;
    color: #0b0f19 !important;
    font-weight: 900 !important;
    box-shadow: 0 8px 25px rgba(251, 191, 36, 0.5), 0 0 20px rgba(251, 191, 36, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
}

/* 🟣 VIOLETA NEÓN: ANTIGÜEDAD */
#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="antiguedad"] {
    background: linear-gradient(165deg, rgba(32, 20, 48, 0.88) 0%, rgba(14, 10, 24, 0.96) 100%) !important;
    border: 1.5px solid rgba(167, 139, 250, 0.35) !important;
    border-top: 1.5px solid rgba(233, 213, 255, 0.6) !important;
    color: #e9d5ff !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="antiguedad"]:hover {
    border-color: #c084fc !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(168, 85, 247, 0.35) !important;
    transform: translateY(-2px);
}

#ranking-modal .ranking-left-panel .liga-tab-btn[onclick*="antiguedad"].active {
    background: linear-gradient(135deg, #c084fc 0%, #a855f7 50%, #7c3aed 100%) !important;
    border-color: #f3e8ff !important;
    border-top: 2px solid #ffffff !important;
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6);
    box-shadow: 0 8px 25px rgba(168, 85, 247, 0.5), 0 0 20px rgba(168, 85, 247, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
}

/* 🎯 TAMAÑO Y CENTRADO PROPORCIONADO PARA BOTONES DE ORDEN */
#ranking-modal .ranking-left-panel .ranking-tab-img[src*="capacidad"] {
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    filter: drop-shadow(0 2px 6px rgba(251, 191, 36, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) !important;
}

#ranking-modal .ranking-left-panel .ranking-tab-img[src*="antiguedad"] {
    left: 6px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 46px !important;
    height: 46px !important;
    filter: drop-shadow(0 2px 6px rgba(168, 85, 247, 0.45)) drop-shadow(0 2px 4px rgba(0, 0, 0, 0.6)) !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img,
#liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img {
    transform: translateY(-50%) scale(1.08) rotate(-3deg) !important;
}
/* ⚡ Ajuste óptico en botones: la estatua y reloj igualan los 40px útiles de los íconos de la captura 3 */
#ranking-modal .ranking-left-panel .ranking-tab-img[src*="capacidad"],
#ranking-modal .ranking-left-panel .ranking-tab-img[src*="antiguedad"] {
    left: 4px !important;
    transform: translateY(-50%) scale(1.75) !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img,
#liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img {
    transform: translateY(-50%) scale(1.08) rotate(-3deg) !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img[src*="capacidad"],
#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img[src*="antiguedad"] {
    transform: translateY(-50%) scale(1.9) rotate(-3deg) !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn span,
#liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn span {
    width: 100% !important;
    margin: 0 !important;
    text-align: center !important;
    white-space: nowrap !important;
}

/* 📋 TABLA Y COLUMNAS DE ONCE INICIAL EN LIGA DE AMIGOS (CSS GRID) */
.liga-once-header-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 110px 96px !important;
    column-gap: 8px !important;
    align-items: center !important;
    padding: 10px 18px !important;
    border-left: 3.5px solid transparent !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    background: rgba(0, 0, 0, 0.25) !important;
    box-sizing: border-box !important;
    width: 100% !important;
    border-top-left-radius: 14px;
    border-top-right-radius: 14px;
}

.liga-table-card .ranking-rows-scroll {
    padding: 0 !important;
}

.liga-row-item.liga-once-row {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 110px 96px !important;
    column-gap: 8px !important;
    align-items: center !important;
    padding: 11px 18px !important;
    box-sizing: border-box !important;
}

.once-user-grl-sub {
    font-size: 0.65rem;
    font-weight: 900;
    color: #fbbf24;
    vertical-align: sub;
    line-height: 1;
    margin-left: 3px;
    letter-spacing: 0.2px;
    opacity: 0.95;
    user-select: none;
    display: inline-block;
}

[data-theme="light"] .once-user-grl-sub {
    color: #d97706 !important;
}

.once-hdr-user {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.70rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    user-select: none;
    min-width: 0;
}

.liga-once-row .inspect-clickable-user {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    overflow: hidden;
    cursor: pointer;
}

.liga-once-row .once-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.once-hdr-cell {
    font-size: 0.70rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    user-select: none;
    box-sizing: border-box !important;
    width: 100% !important;
}

.once-data-cell {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.once-col-gep,
.once-col-grl,
.once-col-act {
    width: 100% !important;
}

.once-stat-gep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 4px 8px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 8px;
    font-size: 0.80rem;
    font-weight: 900;
    line-height: 1;
    white-space: nowrap;
    box-sizing: border-box;
}

.once-stat-gep .gep-sub {
    font-size: 0.64rem;
    font-weight: 700;
    color: var(--text-muted);
    margin-left: 1px;
}

.once-stat-gep .gep-sep {
    font-size: 0.68rem;
    color: var(--text-muted);
    opacity: 0.5;
}

.once-grl-box {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    white-space: nowrap;
}

.once-grl-num {
    color: #fbbf24;
    font-weight: 900;
    font-size: 0.96rem;
    letter-spacing: 0.3px;
    white-space: nowrap;
}

.once-lock-text {
    font-size: 0.70rem;
    font-weight: 700;
    color: var(--text-muted);
    opacity: 0.8;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    gap: 3px;
}

[data-theme="light"] .liga-once-header-row {
    background: rgba(0, 0, 0, 0.04) !important;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08) !important;
}

[data-theme="light"] .once-stat-gep {
    background: rgba(0, 0, 0, 0.04) !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
}

#liga-amigos-modal .ranking-left-panel .ranking-tab-img[src*="posicion"] {
    width: 48px !important;
    height: 48px !important;
    left: 4px !important;
    transform: translateY(-50%) scale(1.18) !important;
}

#liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img[src*="posicion"] {
    transform: translateY(-50%) scale(1.28) rotate(-3deg) !important;
}

/* 🎛️ SELECTOR SUB-RANKINGS STADIUMGUESSR EN LIGA DE AMIGOS */
.guessr-subtab-switch {
    display: flex;
    align-items: center;
    gap: 6px;
    background: rgba(15, 23, 42, 0.7);
    padding: 3px 5px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.10);
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.4);
    margin: 0 10px;
}

.guessr-subtab-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 12px;
    border-radius: 8px;
    border: 1px solid transparent;
    background: transparent;
    color: var(--text-muted);
    font-size: 0.75rem;
    font-weight: 800;
    cursor: pointer;
    transition: all 0.2s ease;
    white-space: nowrap;
}

.guessr-subtab-btn:hover {
    color: var(--text-main);
    background: rgba(255, 255, 255, 0.06);
}

.guessr-subtab-btn.active {
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.22) 0%, rgba(0, 230, 118, 0.12) 100%) !important;
    color: #00ff77 !important;
    border-color: rgba(0, 255, 119, 0.4) !important;
    box-shadow: 0 2px 8px rgba(0, 255, 119, 0.25) !important;
}

.guessr-subtab-btn.active[onclick*="triunfos"] {
    background: linear-gradient(135deg, rgba(59, 130, 246, 0.25) 0%, rgba(37, 99, 235, 0.15) 100%) !important;
    color: #60a5fa !important;
    border-color: rgba(59, 130, 246, 0.45) !important;
    box-shadow: 0 2px 8px rgba(59, 130, 246, 0.25) !important;
}

/* 👉 PANEL DERECHO: Título Activo Centrado y Tabla de Posiciones */
.ranking-right-panel {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
}

.ranking-table-top-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    width: 100%;
}

.ranking-active-badge {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    padding: 8px 24px !important;
    border-radius: 30px !important;
    background: linear-gradient(135deg, rgba(16, 26, 44, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 2px solid var(--badge-color, #00ff77) !important;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), 
                0 0 20px color-mix(in srgb, var(--badge-color, #00ff77) 25%, transparent),
                inset 0 1px 0 rgba(255, 255, 255, 0.22) !important;
    backdrop-filter: blur(16px) !important;
    -webkit-backdrop-filter: blur(16px) !important;
    box-sizing: border-box;
    transition: all 0.3s ease;
}

.badge-title-png-icon {
    width: 32px;
    height: 32px;
    object-fit: contain;
    filter: drop-shadow(0 2px 8px rgba(0, 0, 0, 0.7));
    flex-shrink: 0;
    margin: -4px 0;
    pointer-events: none;
}

/* ⚡ Ajuste óptico en la cápsula superior: iguala el tamaño del ícono de la captura 3 */
.badge-title-png-icon[src*="capacidad"],
.badge-title-png-icon[src*="antiguedad"] {
    transform: scale(1.8) !important;
    margin: -4px 4px -4px 2px !important;
}

.badge-title-text {
    font-size: 0.88rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
    white-space: nowrap;
}

.badge-sep {
    font-size: 0.85rem;
    font-weight: 800;
    color: rgba(255, 255, 255, 0.25);
}

.badge-sub-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 0.72rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    background: rgba(255, 255, 255, 0.06);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 3px 10px;
    border-radius: 20px;
    white-space: nowrap;
    text-shadow: 0 0 10px color-mix(in srgb, currentColor 50%, transparent);
}

/* ☀️ Adaptación en Modo Claro */
[data-theme="light"] .ranking-active-badge {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-top: 2px solid var(--badge-color, #00a854) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08), inset 0 1px 0 rgba(255, 255, 255, 1) !important;
}

[data-theme="light"] .badge-title-text {
    color: #04160a !important;
    text-shadow: none !important;
}

[data-theme="light"] .badge-sep {
    color: #94a3b8 !important;
}

[data-theme="light"] .badge-sub-pill {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
}

.ranking-right-panel .liga-table-card {
    width: 100%;
    border-radius: 18px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.ranking-right-panel .liga-row-item {
    padding: 11px 20px;
    font-size: 0.94rem;
}

.ranking-right-panel .liga-row-item span:last-child {
    font-variant-numeric: tabular-nums;
}

/* 📱 ADAPTACIÓN RESPONSIVE EN CELULARES */
@media (max-width: 768px) {
    #ranking-modal .modal-content,
    #liga-amigos-modal .modal-content {
        width: 94% !important;
        max-width: 100% !important;
        height: auto !important;
        max-height: 88vh !important;
        padding: 14px 12px !important;
    }

    .ranking-split-grid {
        display: flex;
        flex-direction: column;
        gap: 8px !important;
    }

    /* 🏆 Cabecera equilibrada: Trofeo a la izquierda, pastillas a la derecha sin pisarse */
    .ranking-left-panel {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        align-items: center !important;
        justify-content: space-between !important;
        width: 100% !important;
        margin-bottom: 4px !important;
        padding: 0 2px !important;
        box-sizing: border-box !important;
    }

    .ranking-brand-box {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        width: 125px !important; /* 👈 Ancho asignado a la columna del trofeo */
        margin: 0 !important;
        padding: 0 !important;
        flex-shrink: 0 !important;
    }

    /* Ocultamos el título textual en celular para darle ese espacio a las estadísticas */
    .ranking-brand-box .liga-modal-title {
        display: none !important;
    }

    .ranking-brand-box .trophy-stage-wrapper {
        width: auto !important;
        margin: 0 !important;
    }

    /* 🏆 TAMAÑO DEL ÍCONO PRINCIPAL EN TODOS LOS RANKINGS (CELULAR) */
    #ranking-modal .ranking-brand-box .trophy-main-img-box,
    #liga-amigos-modal .ranking-brand-box .trophy-main-img-box,
    .ranking-brand-box .trophy-main-img-box {
        width: 125px !important;  /* 👈 Subilo a 130px o 135px si lo querés aún más grande */
        height: 125px !important; /* 👈 Mantener igual al width */
    }

    /* 🌟 HALO DE LUZ DETRÁS DEL ÍCONO */
    #ranking-modal .ranking-brand-box .trophy-glow-backdrop,
    #liga-amigos-modal .ranking-brand-box .trophy-glow-backdrop,
    .ranking-brand-box .trophy-glow-backdrop {
        width: 130px !important;
        height: 130px !important;
        filter: blur(16px) !important;
    }

    #ranking-modal .ranking-brand-box .trophy-main-img,
    #liga-amigos-modal .ranking-brand-box .trophy-main-img,
    .ranking-brand-box .trophy-main-img {
        width: 100% !important;
        height: 100% !important;
        object-fit: contain !important;
        transform: none !important;
    }

    #ranking-modal .ranking-brand-box .trophy-main-img[src*="fuego"],
    #ranking-modal .ranking-brand-box .trophy-main-img[src*="capacidad"],
    #ranking-modal .ranking-brand-box .trophy-main-img[src*="antiguedad"] {
        transform: scale(1.15) !important;
        transform-origin: center center !important;
    }

    /* 📊 Las 3 pastillas de estadísticas contenidas al margen derecho */
    .ranking-pills-column {
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 5px !important;
        width: 156px !important;
        max-width: calc(100% - 85px) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
        flex-shrink: 0 !important;
    }

    .ranking-pills-column .header-stat-pill {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        padding: 5px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        min-height: 28px !important;
        height: auto !important;
        width: 100% !important;
        box-sizing: border-box !important;
        margin: 0 !important;
    }

    .ranking-pills-column .header-stat-pill i {
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }

    .ranking-pills-column .stat-pill-info {
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
        min-width: 0 !important;
        overflow: hidden !important;
        flex: 1 !important;
    }

    .ranking-pills-column .stat-pill-info span {
        font-size: 0.52rem !important;
        font-weight: 800 !important;
        color: var(--text-muted) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
        width: 100% !important;
    }

    .ranking-pills-column .stat-pill-info strong {
        font-size: 0.74rem !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.15 !important;
        width: 100% !important;
    }

    .ranking-sidebar-menu {
        width: 100% !important;
        flex-basis: 100% !important;
        margin-top: 6px !important;
        padding-top: 0 !important;
        border-top: none !important;
    }

    .ranking-left-panel .ranking-tabs-row {
        display: grid !important;
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
        gap: 6px !important;
        width: 100% !important;
        max-width: 100% !important;
        box-sizing: border-box !important;
        padding: 0 !important;
        margin: 0 !important;
    }

    /* 📱 SALÓN DE LA FAMA EN CELULAR (Botones proporcionados) */
    #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn {
        width: 100% !important;
        max-width: 100% !important;
        min-width: 0 !important;
        height: 38px !important;
        min-height: 38px !important;
        max-height: 38px !important;
        font-size: 0.63rem !important;
        font-weight: 900 !important;
        letter-spacing: -0.2px !important;
        padding: 0 4px 0 32px !important;
        justify-content: center !important;
        border-radius: 12px !important;
        position: relative !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }

    #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn span {
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        font-size: 0.63rem !important;
        text-align: center !important;
        line-height: 1 !important;
    }

    /* 🎯 ÍCONOS EN MÓVIL */
    html body #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn img.ranking-tab-img {
        position: absolute !important;
        left: 5px !important;
        top: 50% !important;
        transform: translateY(-50%) scale(1) !important;
        width: 32px !important;
        height: 32px !important;
        margin: 0 !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        pointer-events: none !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)) !important;
    }

    html body #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn img.ranking-tab-img[src*="fuego"] {
        position: absolute !important;
        left: -8px !important;
        top: 50% !important;
        transform: translateY(-50%) scale(1) !important;
        width: 58px !important;
        height: 58px !important;
        margin: 0 !important;
        object-fit: contain !important;
        flex-shrink: 0 !important;
        pointer-events: none !important;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 6px rgba(255, 145, 0, 0.5)) !important;
    }

    html body #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover img.ranking-tab-img,
    html body #ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover img.ranking-tab-img[src*="fuego"] {
        transform: translateY(-50%) scale(1) !important;
    }

    /* 📱 LIGA DE AMIGOS EN CELULAR */
    #liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn {
        width: 100% !important;
        height: 38px !important;
        font-size: 0.66rem !important;
        letter-spacing: 0.1px !important;
        padding: 0 8px 0 32px !important;
        justify-content: center !important;
        border-radius: 12px !important;
        position: relative !important;
        white-space: nowrap !important;
        overflow: visible !important;
    }

    #liga-amigos-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:nth-child(3) {
        grid-column: span 2 !important;
    }

    #liga-amigos-modal .ranking-left-panel .ranking-tab-img {
        position: absolute !important;
        left: 4px !important;
        top: calc(50% - 1px) !important;
        transform: translateY(-50%) !important;
        width: 28px !important;
        height: 28px !important;
        margin: 0 !important;
    }

    #liga-amigos-modal .ranking-left-panel .ranking-tab-img[src*="posicion"] {
        width: 32px !important;
        height: 32px !important;
        left: 2px !important;
        top: calc(50% - 1px) !important;
        transform: translateY(-50%) scale(1.1) !important;
    }

    .liga-once-header-row {
        grid-template-columns: minmax(0, 1fr) 68px 58px !important;
        column-gap: 4px !important;
        padding: 6px 10px !important;
    }

    .liga-row-item.liga-once-row {
        grid-template-columns: minmax(0, 1fr) 68px 58px !important;
        column-gap: 4px !important;
        padding: 9px 10px !important;
    }

    .once-user-grl-sub {
        font-size: 0.58rem !important;
        margin-left: 2px !important;
    }

    .ranking-right-panel .liga-row-item .inspect-clickable-user img[alt="1º"],
    .ranking-right-panel .liga-row-item .inspect-clickable-user img[alt="2º"],
    .ranking-right-panel .liga-row-item .inspect-clickable-user img[alt="3º"] {
        width: 24px !important;
        height: 24px !important;
    }

    .once-hdr-user,
    .once-hdr-cell {
        font-size: 0.58rem !important;
        letter-spacing: 0.4px !important;
    }

    .once-grl-num {
        font-size: 0.78rem !important;
    }

    .once-stat-gep {
        padding: 2px 4px !important;
        font-size: 0.66rem !important;
        gap: 2px !important;
        border-radius: 5px !important;
    }

    .once-stat-gep .gep-sub {
        font-size: 0.54rem !important;
    }

    .once-lock-text {
        font-size: 0.56rem !important;
    }

    .carrera-action-self.once-self-badge {
        padding: 2px 5px !important;
        font-size: 0.60rem !important;
    }

    .guessr-subtab-switch {
        width: 100% !important;
        justify-content: stretch !important;
        margin: 4px 0 8px 0 !important;
        box-sizing: border-box !important;
    }

    .guessr-subtab-btn {
        flex: 1 !important;
        justify-content: center !important;
        padding: 6px 8px !important;
        font-size: 0.70rem !important;
    }

    /* 🏆 DESAFÍO DE ORDEN EN CELULAR */
    #ranking-modal .ranking-left-panel .ranking-tab-img[src*="capacidad"],
    #ranking-modal .ranking-left-panel .ranking-tab-img[src*="antiguedad"] {
        width: 32px !important;
        height: 32px !important;
        left: 2px !important;
        top: calc(50% - 1px) !important;
    }

    .ranking-right-panel .liga-row-item {
        padding: 9px 12px !important;
        font-size: 0.86rem !important;
    }

    /* 🚫 Ocultamos la cápsula flotante redundante en celular para que la tabla suba */
    .ranking-active-badge {
        display: none !important;
    }

    /* 🔍 Buscador limpio y pegado directamente a los modos */
    .ranking-table-top-bar {
        display: flex !important;
        margin-bottom: 6px !important;
        margin-top: 2px !important;
        width: 100% !important;
        padding: 0 !important;
    }

    .ranking-search-box {
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Carteles informativos de premios (Reto Diario y Semanal) más finos */
    .ranking-reward-notice {
        padding: 5px 8px !important;
        font-size: 0.66rem !important;
        margin-bottom: 6px !important;
        border-radius: 9px !important;
        gap: 6px !important;
    }

    .ranking-rows-scroll {
        max-height: 54vh !important;
    }
}

/* 🎨 Scrollbars Cyber-Neón para Modales */
#ranking-modal .modal-content,
#ranking-modal *,
#liga-amigos-modal .modal-content,
#liga-amigos-modal * {
    scrollbar-width: thin;
    scrollbar-color: rgba(0, 230, 118, 0.3) transparent;
}

#ranking-modal .modal-content::-webkit-scrollbar,
#ranking-modal *::-webkit-scrollbar,
#liga-amigos-modal .modal-content::-webkit-scrollbar,
#liga-amigos-modal *::-webkit-scrollbar {
    width: 6px;
    height: 6px;
}

#ranking-modal .modal-content::-webkit-scrollbar-track,
#ranking-modal *::-webkit-scrollbar-track,
#liga-amigos-modal .modal-content::-webkit-scrollbar-track,
#liga-amigos-modal *::-webkit-scrollbar-track {
    background: transparent;
}

#ranking-modal .modal-content::-webkit-scrollbar-thumb,
#ranking-modal *::-webkit-scrollbar-thumb,
#liga-amigos-modal .modal-content::-webkit-scrollbar-thumb,
#liga-amigos-modal *::-webkit-scrollbar-thumb {
    background: rgba(0, 230, 118, 0.28);
    border-radius: 10px;
}

#ranking-modal .modal-content::-webkit-scrollbar-thumb:hover,
#ranking-modal *::-webkit-scrollbar-thumb:hover,
#liga-amigos-modal .modal-content::-webkit-scrollbar-thumb:hover,
#liga-amigos-modal *::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}
/* ========================================================
   📱 BOTÓN PRINCIPAL DE ACCIÓN DE JUEGO (RESPONSIVE FIX)
   ======================================================== */
#game-action-btn {
    box-sizing: border-box !important;
}

#game-action-btn .btn-action-stats {
    display: flex;
    align-items: center;
    gap: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    min-width: 0;
}

#game-action-btn .btn-action-text {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 900;
    letter-spacing: 0.5px;
    white-space: nowrap;
    flex-shrink: 0; /* 🛡️ Garantiza espacio 100% visible a SIGUIENTE y FINAL */
}

@media (max-width: 480px) {
    #game-action-btn {
        padding: 10px 8px !important;
    }
    #game-action-btn .btn-action-wrapper {
        font-size: 0.78rem !important;
        gap: 4px !important;
    }
    #game-action-btn .btn-action-stats {
        font-size: 0.74rem !important;
        gap: 3px !important;
    }
    #game-action-btn .btn-action-text {
        font-size: 0.78rem !important;
        letter-spacing: 0px !important;
    }
}
/* ========================================================
   🏆 FOOTER ESTÁTICO INSTITUCIONAL (ESTILO POTRERO COMPACTO)
   ======================================================== */
.app-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px 20px 10px;
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
    background: var(--card-bg);
    border-top: 1px solid var(--border-strong);
    position: relative;
    z-index: 10;
    overflow: hidden;
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.footer-logo {
    width: 26px;
    height: 26px;
    border-radius: 8px;
    border: 1.5px solid var(--accent-color);
    object-fit: cover;
    box-shadow: 0 0 8px var(--accent-glow);
}

.footer-brand-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.footer-brand-text strong {
    font-size: 0.85rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: var(--text-main);
}

.footer-brand-text span {
    font-size: 0.62rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--text-muted);
}

.footer-brand-text .accent-word {
    color: var(--accent-color);
}

.footer-nav {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 16px;
}

.footer-link {
    background: transparent;
    border: none;
    color: var(--text-muted);
    font-size: 0.70rem;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    cursor: pointer;
    transition: color 0.2s ease, transform 0.2s ease;
}

.footer-link:hover {
    color: var(--accent-color);
    transform: translateY(-1px);
}

@media (max-width: 768px) {
    .app-footer {
        padding: 10px 15px 8px;
        gap: 6px;
    }
    .footer-nav {
        gap: 10px 12px;
    }
    .footer-link {
        font-size: 0.62rem;
    }
}
.logro-img-icon {
    width: 110px;
    height: 110px;
    object-fit: contain;
    vertical-align: middle;
    display: inline-block;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.5));
}
/* ========================================================
   REDEFINICIÓN DE MODO CLARO (ESPECIFICIDAD REFORZADA)
   ======================================================== */
html[data-theme="light"] {
    --accent-color: #00a854 !important;
    --accent-dim: rgba(0, 168, 84, 0.12) !important;
    --accent-glow: rgba(0, 168, 84, 0.25) !important;

    --bg-color: #f8fafc !important;
    --surface-color: #ffffff !important;
    --border-strong: #cbd5e1 !important;
    --border-subtle: #e2e8f0 !important;
    --text-main: #0f172a !important;
    --text-muted: #475569 !important; /* Gris oscuro para legibilidad total */
    --shadow-strong: 0 10px 25px -5px rgba(15, 23, 42, 0.08) !important;
}

/* Forzar fondo y color en contenedores del modal */
html[data-theme="light"] #profile-modal-body,
html[data-theme="light"] .split-profile-layout,
html[data-theme="light"] .right-dashboard-column {
    background-color: #f8fafc !important;
    color: #0f172a !important;
}

/* Tarjetas/Contenedores del dashboard */
html[data-theme="light"] .geoguessr-dash-box {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}

/* Forzar visibilidad de textos explicativos (Faltan XP, etc.) */
html[data-theme="light"] .geoguessr-dash-box *,
html[data-theme="light"] .xp-profile-section * {
    color: #0f172a;
}

/* Calendario: Fuerza color en números inactivos */
html[data-theme="light"] .calendar-cell {
    color: #1e293b !important;
    font-weight: 700 !important;
}
html[data-theme="light"] .calendar-cell.future-day,
html[data-theme="light"] .calendar-cell.past-missed {
    color: #64748b !important;
    opacity: 1 !important;
}

/* Sección de XP y pelota */
html[data-theme="light"] .xp-profile-section {
    background: #ffffff !important;
}
html[data-theme="light"] .xp-profile-section img {
    filter: drop-shadow(0 10px 15px rgba(0, 0, 0, 0.12)) !important;
}

/* Carta FUT */
html[data-theme="light"] .fut-card {
    box-shadow: 0 14px 28px rgba(15, 23, 42, 0.18) !important;
}

/* Barra de progreso de XP */
html[data-theme="light"] .xp-bar-big {
    background: #e2e8f0 !important;
}
html[data-theme="light"] .xp-bar-big-fill {
    background: #00a854 !important;
    box-shadow: none !important;
}
/* Tamaño base para celular (se mantiene en 180px) */
.profile-level-icon-wrapper {
    width: 180px;
    height: 180px;
}

/* Tamaño exclusivo para PC: Caja base compacta (NO estira los modales) + Zoom óptico del ícono */
@media (min-width: 992px) {
    .profile-level-icon-wrapper {
        width: 175px;
        height: 170px;
        margin: 2px auto 4px auto;
        transform: scale(1.60);
        transform-origin: center center;
        overflow: visible;
    }
}
/* ☀️ ADAPTACIÓN COMPLETA DEL PANEL DE PERSONALIZACIÓN EN MODO CLARO */
[data-theme="light"] #btn-toggle-custom {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] #btn-toggle-custom:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 204, 102, 0.08) !important;
    color: #008744 !important;
}

[data-theme="light"] .avatar-picker {
    background: #ffffff !important;
    border: 2px solid #cbd5e1 !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .avatar-picker-label {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .avatar-picker-label:hover {
    border-color: var(--accent-color) !important;
    background: rgba(0, 204, 102, 0.08) !important;
}

[data-theme="light"] .avatar-nick-label {
    color: #0f172a !important;
}

[data-theme="light"] .avatar-pos-select,
[data-theme="light"] .avatar-nickname-input {
    background-color: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #0f172a !important;
}

[data-theme="light"] .avatar-pos-select:hover,
[data-theme="light"] .avatar-pos-select:focus,
[data-theme="light"] .avatar-nickname-input:focus {
    border-color: var(--accent-color) !important;
    background-color: #f8fafc !important;
    box-shadow: 0 0 12px rgba(0, 204, 102, 0.2) !important;
}

[data-theme="light"] .avatar-pos-select option {
    background-color: #ffffff !important;
    color: #0f172a !important;
}

[data-theme="light"] .avatar-nickname-input::placeholder {
    color: #64748b !important;
}

[data-theme="light"] .avatar-save-btn {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 2px solid var(--accent-color) !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.2) !important;
}

[data-theme="light"] .avatar-save-btn:hover {
    background: rgba(0, 204, 102, 0.12) !important;
    color: #008744 !important;
    box-shadow: 0 0 18px rgba(0, 204, 102, 0.35) !important;
}
.avatar-picker-label::after {
    display: none !important;
    content: none !important;
}
/* Ícono exclusivo del botón Guardar Cambios */
.avatar-save-btn .btn-custom-icon {
    width: 135px !important;  /* <-- Modificá este valor para achicar o agrandar */
    height: 135px !important; /* <-- Mantenelo igual al width */
}/* Botón chico cuadrado con tooltip al posar el cursor (Base PC) */
.share-btn-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
}

#btn-share-card {
    width: 40px;
    height: 40px;
    padding: 0;
    font-size: 1.3rem;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 14px;
    touch-action: manipulation;
    -webkit-tap-highlight-color: transparent;
    cursor: pointer;
}

.share-tooltip {
    position: absolute;
    bottom: 115%;
    left: 50%;
    transform: translateX(-50%) translateY(8px);
    background: var(--card-bg);
    color: var(--text-main);
    font-size: 0.75rem;
    font-weight: 800;
    padding: 6px 12px;
    border-radius: 8px;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: var(--shadow-strong);
    border: 1.5px solid var(--border-strong);
    z-index: 100;
}

.share-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--border-strong) transparent transparent transparent;
}

/* 🖱️ Activa el tooltip ÚNICAMENTE en computadoras con mouse real para no comerse el tap en móviles */
@media (hover: hover) and (pointer: fine) {
    .share-btn-wrapper:hover .share-tooltip {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }
}

/* 📱 Desactiva el tooltip en pantallas táctiles y celulares */
@media (max-width: 768px), (pointer: coarse) {
    .share-tooltip {
        display: none !important;
    }
}

[data-theme="light"] .share-tooltip {
    background: #ffffff;
    color: #0f172a;
    border-color: #cbd5e1;
}

[data-theme="light"] .share-tooltip::after {
    border-color: #cbd5e1 transparent transparent transparent;
}

/* ========================================================
   🎴 BOTONES DE ACCIÓN DE CARTA (PERSONALIZAR + COMPARTIR)
   ======================================================== */
.profile-card-actions-row {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    max-width: 250px;
    margin-top: 14px;
    position: relative;
    box-sizing: border-box;
}

/* 1. PERSONALIZAR (Verde Esmeralda idéntico a pestaña Individual / Puntaje) */
#btn-toggle-custom {
    flex: 1;
    width: auto;
    max-width: 100%;
    height: 34px;
    min-height: 34px;
    margin: 0;
    padding: 0 10px 0 46px;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    white-space: nowrap;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(14, 32, 22, 0.90) 0%, rgba(8, 18, 12, 0.98) 100%) !important;
    border: 1.5px solid rgba(0, 255, 119, 0.35) !important;
    border-top: 1.5px solid rgba(110, 255, 180, 0.65) !important;
    color: #a7f3d0 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#btn-toggle-custom:hover,
#btn-toggle-custom.active-panel {
    border-color: #00ff77 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 255, 119, 0.35) !important;
    transform: translateY(-2px);
}

#btn-toggle-custom::after {
    display: none;
}

#btn-toggle-custom .btn-custom-icon {
    position: absolute;
    left: -22px;
    top: 50%;
    transform: translateY(-50%);
    width: 100px;
    height: 100px;
    object-fit: contain;
    filter: drop-shadow(0 0 10px var(--accent-glow));
    pointer-events: none;
    z-index: 5;
}

.share-btn-wrapper {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    flex-shrink: 0;
}

/* 2. COMPARTIR (Azul Eléctrico idéntico a pestaña 1 vs 1 Historial) */
#btn-share-card {
    width: 34px;
    height: 34px;
    min-width: 34px;
    max-width: 34px;
    min-height: 34px;
    max-height: 34px;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.1rem;
    border-radius: 12px;
    background: linear-gradient(165deg, rgba(16, 28, 50, 0.90) 0%, rgba(8, 14, 26, 0.98) 100%) !important;
    border: 1.5px solid rgba(41, 121, 255, 0.35) !important;
    border-top: 1.5px solid rgba(147, 197, 253, 0.65) !important;
    color: #bfdbfe !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    box-sizing: border-box;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

#btn-share-card:hover {
    border-color: #2979ff !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.35) !important;
    transform: translateY(-2px);
}

#btn-share-card::after {
    display: none;
}

/* ========================================================
   🔐 BOTÓN DE INICIO DE SESIÓN / ZONA AZUL DEL PERFIL (PC)
   ======================================================== */
.profile-login-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    width: 100%;
    max-width: 280px;      /* 👈 [PC] ANCHO MÁXIMO DEL CONTENEDOR */
    margin-top: 15px;      /* 👈 [PC] SEPARACIÓN DE ARRIBA (Subir/Bajar) */
    margin-bottom: 0px;    /* 👈 [PC] SEPARACIÓN DE ABAJO */
    z-index: 50 !important;
    pointer-events: auto !important;
}

/* 3. INICIAR SESIÓN (Ámbar / Oro idéntico a pestaña Capacidad / Semanal) */
.profile-login-btn {
    width: 65%;
    height: 28px;          /* 👈 [PC] ALTO DEL BOTÓN */
    padding: 10px 16px;    /* 👈 [PC] RELLENO INTERNO */
    font-size: 0.82rem;    /* 👈 [PC] TAMAÑO DEL TEXTO */
    font-weight: 900;
    letter-spacing: 0.5px;
    gap: 8px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    border-radius: 20px;   /* 👈 [PC] CURVATURA DE BORDES */
    background: linear-gradient(165deg, rgba(38, 28, 12, 0.90) 0%, rgba(18, 14, 8, 0.98) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.40) !important;
    border-top: 1.5px solid rgba(254, 240, 138, 0.70) !important;
    color: #fde68a !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.1) !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    cursor: pointer;
}

.profile-login-btn:hover {
    border-color: #fbbf24 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(251, 191, 36, 0.35) !important;
    transform: translateY(-2px);
}

/* 4. CERRAR SESIÓN (Carmesí oscuro sutil) */
.profile-login-btn.logout {
    background: linear-gradient(165deg, rgba(38, 14, 18, 0.90) 0%, rgba(22, 8, 10, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 71, 87, 0.40) !important;
    border-top: 1.5px solid rgba(255, 160, 175, 0.70) !important;
    color: #fecdd3 !important;
}

.profile-login-btn.logout:hover {
    border-color: #ff4757 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.35) !important;
    transform: translateY(-2px);
}

.profile-login-tooltip {
    position: absolute;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%) translateY(6px);
    width: 240px;
    background: #080c14;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 700;
    line-height: 1.4;
    padding: 9px 12px;
    border-radius: 10px;
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.7);
    text-align: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: all 0.22s ease;
    z-index: 1000;
}

.profile-login-tooltip::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: var(--accent-color) transparent transparent transparent;
}

.profile-login-btn:hover ~ .profile-login-tooltip,
.profile-login-wrapper:hover .profile-login-tooltip {
    opacity: 1 !important;
    visibility: visible !important;
    transform: translateX(-50%) translateY(0) !important;
}
/* ========================================================
   🛡️ ESTILOS SELECTOR MODAL DE ESCUDOS Y BANDERAS
   ======================================================== */
.escudos-tabs-bar::-webkit-scrollbar {
    display: none;
}

.escudos-scroll-arrow {
    width: 28px;
    height: 28px;
    min-width: 28px;
    border-radius: 8px;
    border: 1.5px solid var(--border-subtle);
    background: var(--surface-color);
    color: var(--text-main);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    font-size: 0.85rem;
    padding: 0;
    flex-shrink: 0;
}

.escudos-scroll-arrow:hover {
    border-color: var(--accent-color);
    color: var(--accent-color);
    background: var(--accent-dim);
}

/* 🌙 SCROLLBAR OSCURA ESTILIZADA PARA LA GRILLA DE ESCUDOS */
.escudos-grid-scroll {
    scrollbar-width: thin;
    scrollbar-color: var(--border-strong) transparent;
}

.escudos-grid-scroll::-webkit-scrollbar {
    width: 6px;
}

.escudos-grid-scroll::-webkit-scrollbar-track {
    background: transparent;
}

.escudos-grid-scroll::-webkit-scrollbar-thumb {
    background: var(--border-strong);
    border-radius: 10px;
}

.escudos-grid-scroll::-webkit-scrollbar-thumb:hover {
    background: var(--accent-color);
}

.escudo-tab-btn {
    padding: 7px 14px;
    border-radius: 999px;
    border: 1.5px solid var(--border-strong);
    background: var(--surface-color);
    color: var(--text-main);
    font-size: 0.74rem;
    font-weight: 900;
    cursor: pointer;
    white-space: nowrap;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    flex-shrink: 0;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.25);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    letter-spacing: 0.3px;
    user-select: none;
}

/* 🎨 PINTADO POR PAÍS CON DEGRADADOS HOMOGÉNEOS A 135° */
.escudo-tab-btn[data-cat="todos"] {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    color: #f8fafc;
    border-color: rgba(255, 255, 255, 0.18);
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.7);
}

.escudo-tab-btn[data-cat="paises"] {
    background: linear-gradient(135deg, #1e3a5f 0%, #0f5132 100%);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.25);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
}

.escudo-tab-btn[data-cat="arg"] {
    background: linear-gradient(135deg, #74acdf 0%, #ffffff 50%, #74acdf 100%);
    color: #000000;
    border-color: #74acdf;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.escudo-tab-btn[data-cat="bra"] {
    background: linear-gradient(135deg, #009c3b 0%, #ffdf00 50%, #002776 100%);
    color: #ffffff;
    border-color: #ffdf00;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.escudo-tab-btn[data-cat="chi"] {
    background: linear-gradient(135deg, #d52b1e 0%, #ffffff 50%, #0039a6 100%);
    color: #000000;
    border-color: #d52b1e;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.escudo-tab-btn[data-cat="col"] {
    background: linear-gradient(135deg, #fcd116 0%, #003893 50%, #ce1126 100%);
    color: #ffffff;
    border-color: #fcd116;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.escudo-tab-btn[data-cat="esp"] {
    background: linear-gradient(135deg, #aa151b 0%, #f1bf00 50%, #aa151b 100%);
    color: #000000;
    border-color: #f1bf00;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.5);
}

.escudo-tab-btn[data-cat="fra"] {
    background: linear-gradient(135deg, #002395 0%, #ffffff 50%, #ed2939 100%);
    color: #000000;
    border-color: #002395;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.escudo-tab-btn[data-cat="ger"] {
    background: linear-gradient(135deg, #000000 0%, #dd0000 50%, #ffce00 100%);
    color: #ffffff;
    border-color: #dd0000;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.escudo-tab-btn[data-cat="eng"] {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 45%, #ce1126 100%);
    color: #000000;
    border-color: #ce1126;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.escudo-tab-btn[data-cat="ita"] {
    background: linear-gradient(135deg, #009246 0%, #ffffff 50%, #ce2b37 100%);
    color: #000000;
    border-color: #009246;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.7);
}

.escudo-tab-btn[data-cat="ned"] {
    background: linear-gradient(135deg, #f36c21 0%, #ffffff 50%, #21468b 100%);
    color: #000000;
    border-color: #f36c21;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
}

.escudo-tab-btn[data-cat="por"] {
    background: linear-gradient(135deg, #046a38 0%, #ff0000 100%);
    color: #ffffff;
    border-color: #f1c400;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
}

.escudo-tab-btn:hover {
    transform: translateY(-2px) scale(1.04);
    box-shadow: 0 6px 14px rgba(0, 0, 0, 0.4);
    filter: brightness(1.1);
}

/* 🌟 PESTAÑA SELECCIONADA Y EFECTO AL PRESIONAR SIN AUREOLA VERDE */
.escudo-tab-btn.active {
    outline: none !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.45) !important;
    transform: translateY(-2px) scale(1.04);
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.escudo-tab-btn:active {
    transform: translateY(1px) scale(0.96) !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.3) !important;
}

.escudo-card-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 98px;
    min-height: 98px;
    max-height: 98px;
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 12px;
    padding: 8px 5px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    text-align: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.escudo-card-item:hover {
    border-color: var(--accent-color);
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5), 0 0 14px var(--accent-glow);
    filter: brightness(1.12);
}

.escudo-card-item.selected {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 16px var(--accent-glow), 0 4px 12px rgba(0, 0, 0, 0.6) !important;
    transform: scale(1.04);
}

.escudo-card-item img {
    width: 44px;
    height: 42px;
    object-fit: contain;
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
    position: relative;
    z-index: 2;
    margin: auto 0;
}

.escudo-card-item span {
    font-size: 0.64rem;
    font-weight: 900;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9), 0 0 5px #000000;
    line-height: 1.15;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    width: 100%;
    position: relative;
    z-index: 2;
    margin-top: auto;
}

[data-theme="light"] .escudo-tab-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #475569 !important;
}

[data-theme="light"] .escudo-tab-btn.active {
    background: #00cc66 !important;
    color: #ffffff !important;
}

[data-theme="light"] .escudo-card-item {
    border-color: rgba(0, 0, 0, 0.15) !important;
}

[data-theme="light"] .escudo-card-item:hover {
    border-color: #00cc66 !important;
}
/* ========================================================
   📱 PÓSTER DE HISTORIA 9:16 PARA COMPARTIR EN REDES
   ======================================================== */
#poster-export-container {
    position: fixed;
    left: -9999px;
    top: 0;
    opacity: 1;
    visibility: visible;
    pointer-events: none;
    width: 450px;
    height: 800px; /* Proporción 9:16 exacta */
    background: #090e15;
    background-image: 
        radial-gradient(circle at 50% 30%, rgba(0, 230, 118, 0.22) 0%, transparent 60%),
        radial-gradient(circle at 50% 85%, rgba(41, 121, 255, 0.18) 0%, transparent 65%),
        repeating-linear-gradient(90deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px),
        repeating-linear-gradient(0deg, rgba(255,255,255,0.03) 0, rgba(255,255,255,0.03) 1px, transparent 1px, transparent 40px);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    padding: 24px 20px 20px;
    box-sizing: border-box;
    z-index: 1;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: #ffffff;
    overflow: hidden;
}

.poster-header {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    justify-content: center;
}

.poster-logo {
    width: 38px;
    height: 38px;
    border-radius: 10px;
    border: 1.5px solid var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
    object-fit: cover;
}

.poster-header-text {
    display: flex;
    flex-direction: column;
    text-align: left;
}

.poster-title {
    font-size: 1.15rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    color: #ffffff;
    text-transform: uppercase;
    line-height: 1.1;
}

.poster-subtitle {
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 2px;
    color: var(--accent-color);
    text-transform: uppercase;
}

.poster-card-wrapper {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 6px 0;
    width: 100%;
    height: 455px;
}

/* 🛡️ BLINDAJE CARTA GRANDE: Anula el scale(0.55) de celulares y la amplía un 16% */
#poster-export-container .fut-card {
    transform: scale(1.16) !important;
    transform-origin: center center !important;
    margin: 0 !important;
    z-index: 5 !important;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.75)) !important;
}

/* 🍏 BLINDAJE SAFARI IOS: Elimina la máscara de degradado que volvía invisible la cara del jugador */
#poster-export-container .ac-avatar-full {
    -webkit-mask-image: none !important;
    mask-image: none !important;
}

.poster-card-glow {
    position: absolute;
    width: 310px;
    height: 440px;
    background: radial-gradient(circle, var(--accent-glow) 0%, transparent 70%);
    filter: blur(28px);
    z-index: 1;
}

.poster-stats-badges {
    display: flex;
    gap: 8px;
    width: 100%;
    justify-content: space-between;
    margin: 4px 0 6px;
    box-sizing: border-box;
}

.poster-badge {
    flex: 1;
    background: linear-gradient(175deg, #172337 0%, #0c1422 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.35);
    border-radius: 16px;
    padding: 0 6px 0 46px;
    min-height: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    box-sizing: border-box;
    position: relative;
    overflow: visible !important;
}

.poster-badge-text-group {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 3px;
    position: relative;
    z-index: 2;
    overflow: hidden;
    max-width: 100%;
}

.poster-badge-title {
    font-size: 0.78rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.2px;
    text-transform: uppercase;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.8);
    line-height: 1.1;
}

.poster-badge-sub {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    font-size: 0.54rem;
    font-weight: 900;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 16px;
    padding: 0 7px;
    border-radius: 5px;
    box-sizing: border-box;
}

/* 🟢 Tag Nivel (Verde Neón) */
.poster-badge-sub.sub-lvl {
    color: #00e676;
    background: rgba(0, 230, 118, 0.14);
    border: 1px solid rgba(0, 230, 118, 0.35);
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.2);
}

/* 🔥 Tag Racha (Naranja Fuego) */
.poster-badge-sub.sub-streak {
    color: #ff9f05;
    background: rgba(255, 159, 5, 0.14);
    border: 1px solid rgba(255, 159, 5, 0.35);
    box-shadow: 0 0 6px rgba(255, 159, 5, 0.2);
}

/* 🏆 Tag Victorias (Dorado Copa) */
.poster-badge-sub.sub-wins {
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.14);
    border: 1px solid rgba(251, 191, 36, 0.35);
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.2);
}

.poster-badge-icon {
    position: absolute !important;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.85));
    pointer-events: none;
    z-index: 5;
}

/* ========================================================
   🎛️ CONTROLES INDEPENDIENTES DE CADA ÍCONO DEL PÓSTER
   ======================================================== */

/* 1️⃣ Ícono de Nivel / Rango */
.icon-poster-rango {
    width: 85px !important;           /* 👈 Tamaño ancho */
    height: 85px !important;          /* 👈 Tamaño alto */
    left: -18px !important;           /* 👈 Posición horizontal (más negativo = más a la izquierda) */
    top: 50% !important;              /* 👈 Posición vertical */
    transform: translateY(-50%) !important;
}

/* 2️⃣ Ícono de Racha (Fuego) */
.icon-poster-racha {
    width: 105px !important;           /* 👈 Tamaño ancho */
    height: 105px !important;          /* 👈 Tamaño alto */
    left: -25px !important;           /* 👈 Posición horizontal */
    top: 50% !important;              /* 👈 Posición vertical */
    transform: translateY(-50%) !important;
}

/* 3️⃣ Ícono de Partidos Ganados (Trofeo) */
.icon-poster-victorias {
    width: 105px !important;           /* 👈 Tamaño ancho */
    height: 105px !important;          /* 👈 Tamaño alto */
    left: -27px !important;           /* 👈 Posición horizontal */
    top: 50% !important;              /* 👈 Posición vertical */
    transform: translateY(-50%) !important;
}

.poster-footer-cta {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    background: linear-gradient(135deg, rgba(14, 24, 38, 0.95) 0%, rgba(8, 14, 24, 0.98) 100%);
    border: 1.5px solid var(--accent-color);
    border-radius: 16px;
    padding: 10px 14px;
    box-sizing: border-box;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.5), 0 0 15px var(--accent-glow);
}

.poster-qr {
    width: 60px;
    height: 60px;
    border-radius: 8px;
    background: #ffffff;
    padding: 2px;
    box-sizing: border-box;
    flex-shrink: 0;
}

.poster-cta-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    flex: 1;
    min-width: 0;
    padding: 0 4px;
}

.poster-cta-text strong {
    font-size: 0.86rem;
    font-weight: 900;
    color: var(--accent-color);
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.poster-cta-text span {
    font-size: 0.64rem;
    color: #cbd5e1;
    font-weight: 600;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
}

.poster-cta-duel {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    background: linear-gradient(145deg, rgba(22, 34, 52, 0.95) 0%, rgba(10, 18, 28, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.5), inset 0 1px 0 rgba(255, 255, 255, 0.12);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    box-sizing: border-box;
    position: relative;
    overflow: hidden;
}

.poster-duel-img {
    width: 48px;
    height: 48px;
    object-fit: contain;
    filter: drop-shadow(0 0 8px rgba(0, 255, 119, 0.5));
}
/* ========================================================
   🎮 SELECTOR DE DIFICULTAD Y HUD DE PISTAS (STADIUMGUESSR)
   ======================================================== */
.guessr-diff-cards-container {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 100%;
}

.guessr-big-diff-btn {
    width: 100%;
    padding: 14px 16px;
    border-radius: 16px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-top: 1.5px solid rgba(255, 255, 255, 0.28);
    background: linear-gradient(145deg, rgba(20, 32, 52, 0.9) 0%, rgba(10, 16, 28, 0.98) 100%);
    color: var(--text-main);
    display: flex;
    flex-direction: column;
    gap: 4px;
    text-align: left;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
}

.guessr-big-diff-btn:hover {
    transform: translateY(-3px) scale(1.01);
}

.guessr-big-diff-btn .diff-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.guessr-big-diff-btn strong {
    font-size: 1rem;
    font-weight: 900;
    letter-spacing: -0.2px;
}

.guessr-big-diff-btn p {
    font-size: 0.74rem;
    color: var(--text-muted);
    margin: 0;
    line-height: 1.3;
}

.diff-pill-tag {
    font-size: 0.52rem !important;
    font-weight: 900 !important;
    padding: 2px 6px !important;
    border-radius: 6px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    line-height: 1 !important;
}

/* 🟢 FÁCIL (Pibe) */
.diff-btn-facil .diff-pill-tag { background: rgba(0, 230, 118, 0.16) !important; color: #00e676 !important; border: 1px solid rgba(0, 230, 118, 0.4) !important; }
.diff-btn-facil:hover {
    border-color: #00e676 !important;
    box-shadow: 0 8px 24px rgba(0, 230, 118, 0.25) !important;
}

/* 🟡 CLÁSICO (Crack) */
.diff-btn-medio .diff-pill-tag { background: rgba(234, 179, 8, 0.16) !important; color: #eab308 !important; border: 1px solid rgba(234, 179, 8, 0.4) !important; }
.diff-btn-medio:hover {
    border-color: #eab308 !important;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.25) !important;
}

/* 🔴 DIFÍCIL (Leyenda) */
.diff-btn-dificil .diff-pill-tag { background: rgba(255, 71, 87, 0.16) !important; color: #ff4757 !important; border: 1px solid rgba(255, 71, 87, 0.4) !important; }
.diff-btn-dificil:hover {
    border-color: #ff4757 !important;
    box-shadow: 0 8px 24px rgba(255, 71, 87, 0.25) !important;
}

/* 💡 HUD DE PISTAS (Sutil, elegante y limpio) */
.guessr-hud-hints {
    position: relative;
    margin-top: 5px;
    z-index: 30;
    font-family: 'Outfit', sans-serif !important;
}

.guessr-hint-btn {
    font-family: 'Outfit', sans-serif !important;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    height: 38px;
    background: linear-gradient(135deg, rgba(245, 158, 11, 0.18) 0%, rgba(14, 20, 34, 0.94) 100%);
    border: 1.5px solid rgba(245, 158, 11, 0.5);
    border-top: 2px solid rgba(253, 224, 71, 0.85);
    border-radius: 12px;
    padding: 0 16px;
    color: #fde68a;
    font-size: 0.90rem;
    font-weight: 800;
    letter-spacing: 0.3px;
    text-transform: none;
    cursor: pointer;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.55), 0 0 16px rgba(245, 158, 11, 0.25);
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.2s ease, border-color 0.2s ease;
}

.guessr-hint-btn i {
    font-size: 1.25rem !important;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.65));
}

.guessr-hint-btn:hover {
    transform: translateY(-2px) scale(1.03);
    border-color: #facc15;
    color: #ffffff;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.75), 0 0 24px rgba(250, 204, 21, 0.55);
}

.guessr-hint-balloon {
    display: none;
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    width: 300px;
    max-width: min(300px, calc(100vw - 24px));
    box-sizing: border-box;
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.96) 0%, rgba(8, 14, 25, 0.99) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-top: 2.5px solid #facc15;
    border-radius: 16px;
    padding: 14px;
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.9), 0 0 25px rgba(250, 204, 21, 0.15);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: fadeSlideUp 0.22s ease forwards;
    flex-direction: column;
    gap: 10px;
    z-index: 35;
}

.guessr-hint-balloon.active {
    display: flex;
}

.guessr-hint-row {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.76rem;
    color: var(--text-main);
    font-weight: 700;
}

.hint-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
    filter: drop-shadow(0 0 4px rgba(0, 255, 119, 0.5));
}

.guessr-hint-trivia {
    font-size: 0.74rem;
    color: var(--text-muted);
    line-height: 1.45;
    background: rgba(255, 255, 255, 0.05);
    border-radius: 8px;
    padding: 8px 10px;
    border-left: 3px solid var(--accent-color);
    margin-top: 2px;
}
/* ========================================================
   ☀️ ADAPTACIÓN MODO CLARO: ELEMENTOS NUEVOS Y HUD
   ======================================================== */

/* 1. HUD Superior y Globito de Pistas de StadiumGuessr */
[data-theme="light"] #game-title {
    background: rgba(255, 255, 255, 0.92) !important;
    border-color: #cbd5e1 !important;
    color: #04160a !important;
    box-shadow: 0 4px 14px rgba(4, 22, 10, 0.08) !important;
}

[data-theme="light"] .guessr-hint-btn {
    background: #ffffff !important;
    border-color: #00cc66 !important;
    color: #04160a !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.15) !important;
}

[data-theme="light"] .guessr-hint-balloon {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-top: 2.5px solid #00cc66 !important;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .guessr-hint-row {
    color: #0f172a !important;
}

[data-theme="light"] .guessr-hint-trivia {
    background: #f1f5f9 !important;
    color: #334155 !important;
    border-left-color: #00cc66 !important;
}

[data-theme="light"] .guessr-hint-trivia b {
    color: #0f172a !important;
}

/* 2. Selector de Dificultad (Promesa, Crack, Leyenda) */
[data-theme="light"] .guessr-big-diff-btn {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .guessr-big-diff-btn p {
    color: #475569 !important;
}

[data-theme="light"] .diff-btn-facil:hover {
    border-color: #00cc66 !important;
    box-shadow: 0 8px 24px rgba(0, 204, 102, 0.18) !important;
}

[data-theme="light"] .diff-btn-medio:hover {
    border-color: #d97706 !important;
    box-shadow: 0 8px 24px rgba(217, 119, 6, 0.18) !important;
}

[data-theme="light"] .diff-btn-dificil:hover {
    border-color: #e11d48 !important;
    box-shadow: 0 8px 24px rgba(225, 29, 72, 0.18) !important;
}

/* 3. Pastillas de Estadísticas de Cabecera (Rankings y Ligas) */
[data-theme="light"] .header-stat-pill {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .stat-pill-info span {
    color: #64748b !important;
}

[data-theme="light"] .stat-pill-info strong {
    color: #0f172a !important;
    text-shadow: none !important;
}

/* 4. Burbujas de Taunts / Reacciones en Vivo */
[data-theme="light"] .taunt-bubble {
    background: rgba(255, 255, 255, 0.95) !important;
    color: #0f172a !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}

/* 5. Atajos Hero en Celulares */
@media (max-width: 1024px) {
    [data-theme="light"] .btn-reto-banner,
    [data-theme="light"] .btn-liga-banner {
        background: #ffffff !important;
        border: 2px solid #cbd5e1 !important;
        box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08) !important;
    }

    [data-theme="light"] .reto-banner-text strong {
        color: #0f172a !important;
        text-shadow: none !important;
    }
}
/* 🎮 LISTA VERTICAL UNIFICADA PARA MODOS DE STADIUMGUESSR */
.guessr-menu-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    width: 100%;
}
/* 🔥 ESTILOS TEMÁTICOS PARA PESTAÑAS DEL SALÓN DE LA FAMA */
.ranking-tabs-row .tab-btn-diario.active {
    border-color: #ff9100 !important;
    box-shadow: 0 0 16px rgba(255, 145, 0, 0.45), inset 0 0 8px rgba(255, 145, 0, 0.2) !important;
    color: #ff9100 !important;
}

.ranking-tabs-row .tab-btn-diario.active span {
    color: #ff9100 !important;
    text-shadow: 0 0 8px rgba(255, 145, 0, 0.5) !important;
}

.ranking-tabs-row .tab-btn-semanal.active {
    background: linear-gradient(135deg, #fde047 0%, #eab308 50%, #ca8a04 100%) !important;
    border-color: #fef08a !important;
    box-shadow: 0 6px 20px rgba(234, 179, 8, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    color: #1a1202 !important;
}

.ranking-tabs-row .tab-btn-semanal.active span {
    color: #1a1202 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

.ranking-tabs-row .tab-btn-versus.active {
    background: linear-gradient(135deg, #3b82f6 0%, #2563eb 50%, #1d4ed8 100%) !important;
    border-color: #93c5fd !important;
    box-shadow: 0 6px 20px rgba(37, 99, 235, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.ranking-tabs-row .tab-btn-versus.active span {
    color: #ffffff !important;
    font-weight: 900 !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.4) !important;
}

/* Resplandor naranja para el escenario del Reto Diario */
.trophy-glow-backdrop.glow-orange {
    background: radial-gradient(circle, rgba(255, 145, 0, 0.5) 0%, rgba(255, 109, 0, 0.15) 55%, transparent 75%) !important;
}
/* 🔥 ESTILOS PARA LA PESTAÑA DE RETO DIARIO EN EL RANKING */
.ranking-tabs-row .tab-btn-diario {
    border: 1.5px solid rgba(255, 145, 0, 0.4) !important;
    background: rgba(255, 145, 0, 0.05);
    transition: all 0.2s ease;
}

.ranking-tabs-row .tab-btn-diario:hover {
    border-color: #ff9100 !important;
    box-shadow: 0 0 14px rgba(255, 145, 0, 0.4) !important;
}

.ranking-tabs-row .tab-btn-diario span {
    color: #ff9100 !important;
    font-weight: 800 !important;
}

.ranking-tabs-row .tab-btn-diario.active {
    background: linear-gradient(135deg, #ff9100 0%, #ff5722 100%) !important;
    border-color: #ffa726 !important;
    box-shadow: 0 0 20px rgba(255, 145, 0, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
}

.ranking-tabs-row .tab-btn-diario.active span {
    color: #120600 !important;
    font-weight: 900 !important;
    text-shadow: none !important;
}

/* 1. Fuego del Botón: escala óptica idéntica a las medallas */
#ranking-modal .ranking-left-panel .ranking-tab-img[src*="fuego"] {
    position: absolute !important;
    left: 9px !important;
    top: 50% !important;
    transform: translateY(-50%) scale(1.65) !important;
    width: 50px !important;
    height: 50px !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.7)) drop-shadow(0 0 8px rgba(255, 145, 0, 0.6)) !important;
}

#ranking-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn:hover .ranking-tab-img[src*="fuego"] {
    transform: translateY(-50%) scale(1.8) rotate(-3deg) !important;
}

/* 2. Fuego Superior Central: tamaño de impacto idéntico a la Copa */
#ranking-modal .ranking-brand-box .trophy-main-img[src*="fuego"] {
    transform: scale(2.0) !important;
    transform-origin: center center !important;
    filter: drop-shadow(0 0 20px rgba(255, 145, 0, 0.85)) drop-shadow(0 8px 24px rgba(0, 0, 0, 0.9)) !important;
}

/* 3. Fuego de la Cápsula Superior Derecha */
.badge-title-png-icon[src*="fuego"] {
    transform: scale(1.7) !important;
    margin: -4px 6px -4px 2px !important;
    filter: drop-shadow(0 0 6px rgba(255, 145, 0, 0.7)) !important;
}

/* Escenario y aura del trofeo central para Reto Diario */
.trophy-glow-backdrop.glow-orange {
    background: radial-gradient(circle, rgba(255, 145, 0, 0.6) 0%, rgba(255, 87, 34, 0.2) 55%, transparent 75%) !important;
}
/* ========================================================
   ⚔️ SCOREBOARD EN VIVO PARA 1 VS 1 (HYBRID ESPORTS + ARCADE)
   ======================================================== */
.yt-title-mask {
    height: 64px !important;
    background: linear-gradient(180deg, #050a12 0%, rgba(5, 10, 18, 0.99) 75%, rgba(5, 10, 18, 0.92) 88%, transparent 100%) !important;
    backdrop-filter: blur(14px) !important;
    -webkit-backdrop-filter: blur(14px) !important;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.75) !important;
}

.yt-mask-icon {
    animation: none !important;
}

/* 1. DOCK DE TAUNTS / REACCIONES ARCADE (MICRO-CÁPSULA) - EXCLUSIVO MODO VERSUS */
.taunts-dock,
#taunts-container {
    display: none;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: rgba(10, 18, 30, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 24px;
    padding: 3px 8px;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    margin-bottom: 6px !important;
    transition: transform 0.2s ease;
    z-index: 25;
}

/* 🚫 En StadiumGuessr individual (solitario / reto diario) los emojis no deben aparecer jamás */
.guessr-top-hud:not(.hud-versus-active) #taunts-container,
.guessr-top-hud:not(.hud-versus-active) .taunts-dock,
#game-ui:not(.versus-active) .guessr-top-hud:not(.hud-versus-active) #taunts-container {
    display: none !important;
}

.taunts-dock .taunt-btn {
    background: transparent;
    border: none;
    cursor: pointer;
    font-size: 1.15rem;
    padding: 3px 8px;
    border-radius: 16px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.15s cubic-bezier(0.175, 0.885, 0.32, 1.275), background 0.15s ease;
}

.taunts-dock .taunt-btn:hover {
    transform: scale(1.28) translateY(-2px);
    background: rgba(255, 255, 255, 0.12);
}

.taunts-dock .taunt-btn:active {
    transform: scale(0.92);
}

/* 2. SCOREBOARD VERSUS EN VIVO (BATTLE CARD) */
.versus-scoreboard-box {
    display: flex;
    flex-direction: column;
    width: 100%;
    max-width: 340px;
    background: linear-gradient(165deg, rgba(14, 23, 40, 0.94) 0%, rgba(7, 12, 22, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 16px;
    padding: 8px 10px 7px;
    box-sizing: border-box;
    box-shadow: 0 12px 35px rgba(0, 0, 0, 0.85), 0 0 25px rgba(0, 255, 119, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.16);
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    font-family: 'Outfit', sans-serif !important;
    user-select: none;
    gap: 6px;
    animation: fadeSlideUp 0.3s ease;
    position: relative;
    overflow: visible;
}

.vs-sb-main-row {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    gap: 8px;
    align-items: center;
    width: 100%;
}

.vs-sb-col {
    display: flex;
    flex-direction: column;
    padding: 6px 8px;
    border-radius: 12px;
    background: rgba(255, 255, 255, 0.035);
    border: 1px solid rgba(255, 255, 255, 0.08);
    box-sizing: border-box;
    min-width: 0;
    transition: all 0.25s ease;
    position: relative;
}

/* Columna Usuario (Vos) */
.vs-sb-col.user {
    border-left: 3px solid #00ff77;
    text-align: left;
}
.vs-sb-col.user.leading {
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.14) 0%, rgba(0, 255, 119, 0.03) 100%);
    border-color: rgba(0, 255, 119, 0.4);
    box-shadow: inset 0 0 14px rgba(0, 255, 119, 0.12);
}

/* Columna Rival */
.vs-sb-col.rival {
    border-right: 3px solid #38bdf8;
    text-align: right;
}
.vs-sb-col.rival.leading {
    background: linear-gradient(225deg, rgba(56, 189, 248, 0.14) 0%, rgba(56, 189, 248, 0.03) 100%);
    border-color: rgba(56, 189, 248, 0.4);
    box-shadow: inset 0 0 14px rgba(56, 189, 248, 0.12);
}

.vs-sb-meta {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.68rem;
    font-weight: 800;
    line-height: 1;
    margin-bottom: 3px;
    min-width: 0;
    overflow: hidden;
}
.vs-sb-col.rival .vs-sb-meta {
    justify-content: flex-end;
}

.vs-sb-tag {
    font-size: 0.52rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 1px 5px;
    border-radius: 5px;
    text-transform: uppercase;
    flex-shrink: 0;
}
.vs-sb-tag.user {
    background: rgba(0, 255, 119, 0.22);
    color: #00ff77;
    border: 1px solid rgba(0, 255, 119, 0.45);
}
.vs-sb-tag.rival {
    background: rgba(56, 189, 248, 0.22);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
}

.vs-sb-name {
    color: #e2e8f0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-size: 0.72rem;
    font-weight: 800;
}

.vs-lead-pill {
    font-size: 0.50rem;
    font-weight: 900;
    padding: 1px 5px;
    border-radius: 4px;
    background: rgba(234, 179, 8, 0.2);
    border: 1px solid rgba(234, 179, 8, 0.55);
    color: #fde047;
    flex-shrink: 0;
    white-space: nowrap;
    box-shadow: 0 0 8px rgba(234, 179, 8, 0.25);
}

.vs-sb-score {
    font-size: 1.18rem;
    font-weight: 900;
    letter-spacing: -0.5px;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}
.vs-sb-col.user .vs-sb-score {
    color: #00ff77;
    text-shadow: 0 0 12px rgba(0, 255, 119, 0.5);
}
.vs-sb-col.rival .vs-sb-score {
    color: #38bdf8;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.5);
}
.vs-sb-score small {
    font-size: 0.58rem;
    font-weight: 700;
    color: var(--text-muted);
    letter-spacing: 0.5px;
}

.vs-sb-status-box {
    margin-top: 3px;
    min-height: 16px;
    display: flex;
    align-items: center;
}
.vs-sb-col.rival .vs-sb-status-box {
    justify-content: flex-end;
}

.vs-status-tag {
    font-size: 0.60rem;
    font-weight: 800;
    padding: 1px 6px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
}
.vs-status-tag.thinking {
    background: rgba(255, 255, 255, 0.06);
    color: #94a3b8;
    border: 1px solid rgba(255, 255, 255, 0.1);
}
.vs-status-tag.ready {
    background: rgba(0, 255, 119, 0.16);
    color: #00ff77;
    border: 1px solid rgba(0, 255, 119, 0.45);
}
.vs-status-tag.ready.rival {
    background: rgba(56, 189, 248, 0.16);
    color: #38bdf8;
    border: 1px solid rgba(56, 189, 248, 0.45);
}
.vs-status-tag.hurry {
    background: rgba(255, 71, 87, 0.25);
    color: #ff4757;
    border: 1px solid #ff4757;
    box-shadow: 0 0 10px rgba(255, 71, 87, 0.45);
    animation: vsHurryPulse 0.9s infinite alternate;
}
@keyframes vsHurryPulse {
    from { transform: scale(1); box-shadow: 0 0 4px rgba(255, 71, 87, 0.3); }
    to { transform: scale(1.05); box-shadow: 0 0 12px rgba(255, 71, 87, 0.8); }
}

.vs-status-tag.gained {
    background: rgba(0, 255, 119, 0.25);
    color: #ffffff;
    font-weight: 900;
    border: 1px solid #00ff77;
    box-shadow: 0 0 10px rgba(0, 255, 119, 0.4);
    animation: bounceFun 0.4s ease;
}
.vs-status-tag.gained.rival {
    background: rgba(56, 189, 248, 0.25);
    color: #ffffff;
    border-color: #38bdf8;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4);
}

/* 3. CENTRO VS CHISPA ARCADE */
.vs-sb-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}
.vs-sb-vs-badge {
    font-size: 0.64rem;
    font-weight: 900;
    color: #fbbf24;
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.25) 0%, rgba(217, 119, 6, 0.3) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.6);
    padding: 2px 8px;
    border-radius: 8px;
    letter-spacing: 0.6px;
    line-height: 1;
    animation: vsPulseElectric 2.2s infinite ease-in-out;
}
@keyframes vsPulseElectric {
    0%, 100% { box-shadow: 0 0 6px rgba(251, 191, 36, 0.3); transform: scale(1); }
    50% { box-shadow: 0 0 16px rgba(251, 191, 36, 0.7), 0 0 25px rgba(255, 215, 0, 0.3); transform: scale(1.06); }
}

.vs-sb-round-badge {
    font-size: 0.58rem;
    font-weight: 800;
    color: #94a3b8;
    letter-spacing: 0.4px;
    text-transform: uppercase;
}

.vs-sb-timer-badge {
    font-size: 0.62rem;
    font-weight: 900;
    color: #ff4757;
    background: rgba(255, 71, 87, 0.18);
    border: 1px solid rgba(255, 71, 87, 0.45);
    padding: 1px 6px;
    border-radius: 6px;
    letter-spacing: 0.3px;
    line-height: 1.2;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    white-space: nowrap;
    animation: timerPulse 1.2s infinite ease-in-out;
}

/* 4. BARRA DE DUELO EN TIEMPO REAL (TUG-OF-WAR GAUGE) */
.vs-sb-duel-bar {
    width: 100%;
    height: 3.5px;
    background: rgba(255, 255, 255, 0.08);
    border-radius: 4px;
    overflow: hidden;
    display: flex;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.8);
    margin-top: 1px;
}
.vs-duel-fill {
    height: 100%;
    transition: width 0.6s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.vs-duel-fill.user {
    background: linear-gradient(90deg, #00e676 0%, #00ff77 100%);
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.8);
}
.vs-duel-fill.rival {
    background: linear-gradient(90deg, #38bdf8 0%, #0284c7 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.8);
}

/* 5. BURBUJA ARCADE DE TAUNT (EXPLOTA EN LA TARJETA DEL JUGADOR SIN TAPAR EL MAPA) */
.taunt-arcade-burst {
    position: absolute;
    top: -26px;
    pointer-events: none;
    z-index: 35;
    animation: tauntArcadePop 1.8s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}
.taunt-arcade-burst.es-mio {
    left: 8px;
}
.taunt-arcade-burst.es-rival {
    right: 8px;
}
.taunt-arcade-burst.taunt-fallback {
    top: 75px;
    left: 50%;
    transform: translateX(-50%);
}
.taunt-arcade-burst .taunt-emoji {
    font-size: 1.85rem;
    display: inline-block;
    filter: drop-shadow(0 0 12px rgba(255, 255, 255, 0.8)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}
@keyframes tauntArcadePop {
    0% { transform: translateY(12px) scale(0.2); opacity: 0; }
    25% { transform: translateY(-8px) scale(1.35); opacity: 1; }
    40% { transform: translateY(-12px) scale(1.1); opacity: 1; }
    80% { transform: translateY(-24px) scale(1); opacity: 1; }
    100% { transform: translateY(-38px) scale(0.7); opacity: 0; }
}
.taunt-target-shake {
    animation: tauntCardImpact 0.4s ease;
}
@keyframes tauntCardImpact {
    0%, 100% { transform: translateX(0); }
    25% { transform: translateX(-3px) rotate(-1deg); }
    75% { transform: translateX(3px) rotate(1deg); }
}

/* Alerta inferior del Scoreboard */
.vs-sb-alert {
    width: 100%;
    text-align: center;
    font-size: 0.66rem;
    font-weight: 800;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.4);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    padding: 3px 8px;
    box-sizing: border-box;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* ☀️ Adaptación Modo Claro para el Scoreboard Versus */
[data-theme="light"] .versus-scoreboard-box {
    background: rgba(255, 255, 255, 0.96) !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .taunts-dock {
    background: rgba(248, 250, 252, 0.94) !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .vs-sb-col {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
}
[data-theme="light"] .vs-sb-name {
    color: #0f172a !important;
}
[data-theme="light"] .vs-sb-col.user .vs-sb-score {
    color: #059669 !important;
    text-shadow: none !important;
}
[data-theme="light"] .vs-sb-col.rival .vs-sb-score {
    color: #0284c7 !important;
    text-shadow: none !important;
}
[data-theme="light"] .vs-sb-alert {
    background: #f1f5f9 !important;
    color: #0f172a !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .vs-sb-timer-badge {
    background: rgba(225, 29, 72, 0.12) !important;
    border-color: #e11d48 !important;
    color: #e11d48 !important;
}
[data-theme="light"] .vs-sb-center-timer.hurry {
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%) !important;
    color: #ffffff !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}
[data-theme="light"] .vs-sb-center-timer.wait {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border-color: #7dd3fc !important;
}
[data-theme="light"] .guessr-top-hud.hud-versus-active .vs-sb-alert {
    background: rgba(255, 255, 255, 0.98) !important;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15) !important;
}
[data-theme="light"] .guessr-top-hud.hud-versus-active .vs-sb-alert.urgent-drop {
    border-color: #f87171 !important;
    color: #991b1b !important;
}
[data-theme="light"] .guessr-top-hud.hud-versus-active .vs-sb-alert.wait-drop {
    border-color: #38bdf8 !important;
    color: #0369a1 !important;
}

/* ========================================================
   🏆 CINTA HORIZONTAL SUPERIOR (SCOREBUG BROADCAST 1V1 PARA PC)
   ======================================================== */
@media (min-width: 769px) {
    .guessr-top-hud.hud-versus-active {
        position: absolute !important;
        top: 64px !important;
        left: 20px !important;
        right: 20px !important;
        width: calc(100% - 40px) !important;
        max-width: none !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        z-index: 25 !important;
        pointer-events: auto !important;
    }

    /* Ocultamos la barra de rondas flotante en versus porque ya está el VS R2/5 y la barra de duelo */
    .guessr-top-hud.hud-versus-active #rounds-progress {
        display: none !important;
    }

    /* El dock de taunts queda alineado horizontalmente con altura idéntica */
    .guessr-top-hud.hud-versus-active .taunts-dock {
        order: -2 !important;
        display: inline-flex !important;
        margin: 0 !important;
        height: 38px !important;
        padding: 2px 8px !important;
        border-radius: 20px !important;
        flex-shrink: 0 !important;
        box-sizing: border-box !important;
    }

    /* 💡 En 1v1 PC: Botón de pistas ubicado a la izquierda del marcador para no cortarse jamás */
    .guessr-top-hud.hud-versus-active #guessr-hud-hints {
        order: -1 !important;
        margin: 0 !important;
        display: flex !important;
        align-items: center !important;
        flex-shrink: 0 !important;
        height: 38px !important;
        position: relative !important;
        z-index: 35 !important;
    }
    .guessr-top-hud.hud-versus-active #guessr-hud-hints .guessr-hint-btn {
        height: 38px !important;
        box-sizing: border-box !important;
    }

    /* El Scoreboard Ribbon se expande horizontalmente con altura fija de 38px */
    .guessr-top-hud.hud-versus-active .versus-scoreboard-box {
        order: 0 !important;
        flex: 1 !important;
        max-width: 680px !important;
        height: 38px !important;
        padding: 0 14px !important;
        margin: 0 !important;
        border-radius: 20px !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 0 !important;
        box-sizing: border-box !important;
        position: relative !important;
        overflow: visible !important;
    }

    /* Barra de duelo anclada al borde inferior sin empujar verticalmente el texto */
    .guessr-top-hud.hud-versus-active .vs-sb-duel-bar {
        position: absolute !important;
        bottom: 0 !important;
        left: 14px !important;
        right: 14px !important;
        width: calc(100% - 28px) !important;
        height: 2.5px !important;
        margin: 0 !important;
        border-radius: 2px !important;
        z-index: 5 !important;
        pointer-events: none !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-main-row {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: 100% !important;
        align-items: center !important;
        align-content: center !important;
        gap: 12px !important;
        height: 100% !important;
        width: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-col {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        gap: 8px !important;
        padding: 0 !important;
        margin: 0 !important;
        background: transparent !important;
        border: none !important;
        box-shadow: none !important;
        height: 100% !important;
        min-width: 0 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-col.user {
        justify-content: flex-start !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-col.rival {
        justify-content: flex-end !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-meta {
        margin: 0 !important;
        padding: 0 !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 5px !important;
        min-width: 0 !important;
        overflow: hidden !important;
        line-height: 1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-tag {
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-lead-pill {
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-name {
        max-width: 110px !important;
        font-size: 0.76rem !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-score {
        margin: 0 !important;
        padding: 0 !important;
        font-size: 1.05rem !important;
        white-space: nowrap !important;
        font-weight: 900 !important;
        line-height: 1 !important;
        display: inline-flex !important;
        align-items: baseline !important;
        gap: 2px !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-score small {
        margin: 0 !important;
        line-height: 1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-status-box {
        margin: 0 !important;
        padding: 0 !important;
        min-height: auto !important;
        display: inline-flex !important;
        align-items: center !important;
        line-height: 1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-status-tag {
        font-size: 0.58rem !important;
        padding: 1px 6px !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-center {
        display: inline-flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 6px !important;
        flex-shrink: 0 !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-vs-badge {
        margin: 0 !important;
        line-height: 1 !important;
    }

    .guessr-top-hud.hud-versus-active .vs-sb-round-badge {
        margin: 0 !important;
        line-height: 1 !important;
    }

    /* Alerta Drop-Chip Flotante debajo de la cinta (sin alterar la altura ni desplazar elementos) */
    .guessr-top-hud.hud-versus-active .vs-sb-alert {
        position: absolute !important;
        top: calc(100% + 6px) !important;
        left: 50% !important;
        transform: translateX(-50%) !important;
        width: auto !important;
        max-width: 90% !important;
        background: rgba(10, 16, 28, 0.96) !important;
        border-radius: 20px !important;
        padding: 4px 14px !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        white-space: nowrap !important;
        z-index: 60 !important;
        pointer-events: none !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 6px !important;
        animation: alertDropSlide 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    }
    .guessr-top-hud.hud-versus-active .vs-sb-alert.urgent-drop {
        border: 1px solid rgba(255, 71, 87, 0.6) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(255, 71, 87, 0.35) !important;
        color: #fecaca !important;
    }
    .guessr-top-hud.hud-versus-active .vs-sb-alert.wait-drop {
        border: 1px solid rgba(56, 189, 248, 0.5) !important;
        box-shadow: 0 8px 25px rgba(0, 0, 0, 0.85), 0 0 18px rgba(56, 189, 248, 0.25) !important;
        color: #bae6fd !important;
    }
}

/* Segundero central de 15s destacado cuando el rival ya arriesgó */
.vs-sb-center-timer {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    padding: 2px 7px !important;
    border-radius: 8px !important;
    font-size: 0.68rem !important;
    font-weight: 900 !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    letter-spacing: 0.3px !important;
}
.vs-sb-center-timer.hurry {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.95) 0%, rgba(220, 38, 38, 0.98) 100%) !important;
    color: #ffffff !important;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
    box-shadow: 0 0 14px rgba(239, 68, 68, 0.8), inset 0 1px 0 rgba(255, 255, 255, 0.4) !important;
    animation: vsTimerBeat 0.8s infinite ease-in-out !important;
}
.vs-sb-center-timer.wait {
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.25) 0%, rgba(2, 132, 199, 0.35) 100%) !important;
    color: #38bdf8 !important;
    border: 1px solid rgba(56, 189, 248, 0.6) !important;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
}
@keyframes vsTimerBeat {
    0%, 100% { transform: scale(1); box-shadow: 0 0 8px rgba(239, 68, 68, 0.6); }
    50% { transform: scale(1.08); box-shadow: 0 0 18px rgba(239, 68, 68, 1); }
}

@keyframes alertDropSlide {
    from { opacity: 0; transform: translate(-50%, -6px) scale(0.95); }
    to { opacity: 1; transform: translate(-50%, 0) scale(1); }
}

/* ========================================================
   📱 CELULAR 1V1 (RESTAURADO AL FORMATO DE CAJITA CLÁSICA ORIGINAL)
   ======================================================== */
@media (max-width: 768px) {
    /* HUD superior centrado en celular */
    .guessr-top-hud,
    .guessr-top-hud.hud-versus-active {
        position: absolute !important;
        top: 64px !important;
        left: 50% !important;
        right: auto !important;
        transform: translateX(-50%) !important;
        width: max-content !important;
        max-width: calc(100% - 24px) !important;
        margin: 0 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
        gap: 3px !important;
        z-index: 25 !important;
        pointer-events: auto !important;
        box-sizing: border-box !important;
    }

    /* Placa de Puntaje y Ronda Centrada */
    #game-title {
        margin: 0 auto !important;
        display: inline-flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
    }

    /* Dock de emojis arcade compacto (EXCLUSIVO MODO VERSUS) */
    .guessr-top-hud.hud-versus-active #taunts-container,
    .guessr-top-hud.hud-versus-active .taunts-dock {
        margin: 1px auto 2px auto !important;
        gap: 5px !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: 260px !important;
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        box-sizing: border-box !important;
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: space-around !important;
        border-radius: 12px !important;
    }

    .guessr-top-hud.hud-versus-active #taunts-container .taunt-btn,
    .guessr-top-hud.hud-versus-active .taunts-dock .taunt-btn {
        height: 24px !important;
        min-height: 24px !important;
        max-height: 24px !important;
        padding: 0 !important;
        font-size: 0.88rem !important;
        border-radius: 8px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
    }

    /* Progreso de rondas */
    .guessr-top-hud #rounds-progress,
    .guessr-top-hud.hud-versus-active #rounds-progress {
        display: flex !important;
        margin: 2px auto !important;
        width: 100% !important;
        max-width: 320px !important;
    }

    /* Cajita de puntajes de los participantes (Classic Battle Card) */
    .guessr-top-hud #versus-live-scoreboard,
    .guessr-top-hud .versus-scoreboard-box,
    .guessr-top-hud.hud-versus-active #versus-live-scoreboard,
    .guessr-top-hud.hud-versus-active .versus-scoreboard-box {
        display: flex !important;
        flex-direction: column !important;
        width: 100% !important;
        max-width: 320px !important;
        height: auto !important;
        min-height: auto !important;
        max-height: none !important;
        margin: 2px 0 !important;
        padding: 5px 8px 5px !important;
        gap: 3px !important;
        border-radius: 14px !important;
        position: relative !important;
        background: linear-gradient(165deg, rgba(14, 23, 40, 0.94) 0%, rgba(7, 12, 22, 0.98) 100%) !important;
        border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
        box-shadow: 0 10px 30px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.16) !important;
        box-sizing: border-box !important;
        overflow: visible !important;
    }

    /* Fila principal: Grid de 3 columnas (Vos | VS | Rival) */
    .guessr-top-hud .vs-sb-main-row,
    .guessr-top-hud.hud-versus-active .vs-sb-main-row {
        display: grid !important;
        grid-template-columns: 1fr auto 1fr !important;
        grid-template-rows: auto !important;
        gap: 6px !important;
        align-items: center !important;
        width: 100% !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    /* Columnas laterales de participante */
    .guessr-top-hud .vs-sb-col,
    .guessr-top-hud.hud-versus-active .vs-sb-col {
        display: flex !important;
        flex-direction: column !important;
        padding: 4px 6px !important;
        border-radius: 10px !important;
        background: rgba(255, 255, 255, 0.035) !important;
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        box-sizing: border-box !important;
        min-width: 0 !important;
        height: auto !important;
    }

    .guessr-top-hud .vs-sb-col.user,
    .guessr-top-hud.hud-versus-active .vs-sb-col.user {
        border-left: 3px solid #00ff77 !important;
        text-align: left !important;
        justify-content: flex-start !important;
    }

    .guessr-top-hud .vs-sb-col.rival,
    .guessr-top-hud.hud-versus-active .vs-sb-col.rival {
        border-right: 3px solid #38bdf8 !important;
        text-align: right !important;
        justify-content: flex-start !important;
        flex-direction: column !important;
    }

    /* Encabezado de la columna (tags + nombre) */
    .guessr-top-hud .vs-sb-meta,
    .guessr-top-hud.hud-versus-active .vs-sb-meta {
        display: flex !important;
        align-items: center !important;
        gap: 4px !important;
        margin-bottom: 2px !important;
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        min-width: 0 !important;
        overflow: hidden !important;
        line-height: 1 !important;
    }

    .guessr-top-hud .vs-sb-col.rival .vs-sb-meta,
    .guessr-top-hud.hud-versus-active .vs-sb-col.rival .vs-sb-meta {
        justify-content: flex-end !important;
    }

    .guessr-top-hud .vs-sb-tag,
    .guessr-top-hud.hud-versus-active .vs-sb-tag {
        display: inline-block !important;
        font-size: 0.52rem !important;
        font-weight: 900 !important;
        padding: 1px 5px !important;
        border-radius: 5px !important;
        flex-shrink: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud .vs-lead-pill,
    .guessr-top-hud.hud-versus-active .vs-lead-pill {
        display: inline-block !important;
        font-size: 0.50rem !important;
        font-weight: 900 !important;
        padding: 1px 4px !important;
        border-radius: 4px !important;
        flex-shrink: 0 !important;
        line-height: 1.1 !important;
    }

    .guessr-top-hud .vs-sb-name,
    .guessr-top-hud.hud-versus-active .vs-sb-name {
        display: inline-block !important;
        max-width: 62px !important;
        font-size: 0.68rem !important;
        font-weight: 800 !important;
        color: #e2e8f0 !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        margin: 0 !important;
        line-height: 1.1 !important;
    }

    /* Puntajes en celular */
    .guessr-top-hud .vs-sb-score,
    .guessr-top-hud.hud-versus-active .vs-sb-score {
        display: block !important;
        font-size: 1.05rem !important;
        font-weight: 900 !important;
        line-height: 1.1 !important;
        margin: 0 !important;
        padding: 0 !important;
        font-variant-numeric: tabular-nums !important;
        white-space: nowrap !important;
    }

    .guessr-top-hud .vs-sb-col.user .vs-sb-score,
    .guessr-top-hud.hud-versus-active .vs-sb-col.user .vs-sb-score {
        color: #00ff77 !important;
        text-shadow: 0 0 10px rgba(0, 255, 119, 0.4) !important;
    }

    .guessr-top-hud .vs-sb-col.rival .vs-sb-score,
    .guessr-top-hud.hud-versus-active .vs-sb-col.rival .vs-sb-score {
        color: #38bdf8 !important;
        text-shadow: 0 0 10px rgba(56, 189, 248, 0.4) !important;
    }

    .guessr-top-hud .vs-sb-score small,
    .guessr-top-hud.hud-versus-active .vs-sb-score small {
        font-size: 0.52rem !important;
        font-weight: 700 !important;
        display: inline !important;
        line-height: 1 !important;
    }

    /* Caja de estado ("Pensando", "Listo", "+X pts") */
    .guessr-top-hud .vs-sb-status-box,
    .guessr-top-hud.hud-versus-active .vs-sb-status-box {
        display: flex !important;
        align-items: center !important;
        margin-top: 1px !important;
        min-height: 14px !important;
        line-height: 1 !important;
    }

    .guessr-top-hud .vs-sb-col.rival .vs-sb-status-box,
    .guessr-top-hud.hud-versus-active .vs-sb-col.rival .vs-sb-status-box {
        justify-content: flex-end !important;
    }

    .guessr-top-hud .vs-status-tag,
    .guessr-top-hud.hud-versus-active .vs-status-tag {
        font-size: 0.58rem !important;
        font-weight: 800 !important;
        padding: 1px 5px !important;
        border-radius: 6px !important;
        display: inline-flex !important;
        align-items: center !important;
        gap: 3px !important;
        line-height: 1.1 !important;
    }

    /* Columna central: VS + Ronda + Segundero de 15s */
    .guessr-top-hud .vs-sb-center,
    .guessr-top-hud.hud-versus-active .vs-sb-center {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 2px !important;
        flex-shrink: 0 !important;
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .guessr-top-hud .vs-sb-vs-badge,
    .guessr-top-hud.hud-versus-active .vs-sb-vs-badge {
        display: inline-block !important;
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        color: #fbbf24 !important;
        padding: 2px 6px !important;
        border-radius: 7px !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .guessr-top-hud .vs-sb-round-badge,
    .guessr-top-hud.hud-versus-active .vs-sb-round-badge {
        display: inline-block !important;
        font-size: 0.56rem !important;
        font-weight: 800 !important;
        color: #94a3b8 !important;
        line-height: 1 !important;
        margin: 0 !important;
    }

    .guessr-top-hud .vs-sb-center-timer,
    .guessr-top-hud.hud-versus-active .vs-sb-center-timer {
        display: inline-flex !important;
        font-size: 0.62rem !important;
        font-weight: 900 !important;
        padding: 1px 5px !important;
        border-radius: 6px !important;
        margin-top: 2px !important;
        line-height: 1.1 !important;
    }

    /* Barra de duelo integrada en la parte inferior */
    .guessr-top-hud .vs-sb-duel-bar,
    .guessr-top-hud.hud-versus-active .vs-sb-duel-bar {
        position: relative !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: 3px !important;
        margin-top: 2px !important;
        border-radius: 3px !important;
    }

    /* Alerta inferior en celular */
    .guessr-top-hud .vs-sb-alert,
    .guessr-top-hud.hud-versus-active .vs-sb-alert {
        position: static !important;
        transform: none !important;
        width: 100% !important;
        max-width: 100% !important;
        margin-top: 3px !important;
        font-size: 0.64rem !important;
        padding: 2px 6px !important;
        border-radius: 6px !important;
        text-align: center !important;
        display: block !important;
    }

    /* 🎯 Cartelito emergente de distancia / folklore en celular: en el espacio negro entre puntaje y video */
    .stamp-badge {
        top: clamp(174px, 22.5vh, 195px) !important;
        left: 0 !important;
        right: 0 !important;
        margin: 0 auto !important;
        width: -moz-fit-content !important;
        width: fit-content !important;
        max-width: 90% !important;
        font-size: 0.82rem !important;
        padding: 5px 14px !important;
        border-width: 2.5px !important;
        white-space: nowrap !important;
        text-align: center !important;
        z-index: 50 !important;
    }
}

/* 📱 DISPOSITIVOS EXTRA ANGOSTOS (320px - 360px): Escala proporcionada para no desbordar */
@media (max-width: 360px) {
    .stamp-badge {
        top: clamp(160px, 21vh, 182px) !important;
        font-size: 0.74rem !important;
        padding: 4px 10px !important;
    }
    .guessr-top-hud,
    .guessr-top-hud.hud-versus-active {
        left: 50% !important;
        transform: translateX(-50%) !important;
        max-width: calc(100% - 16px) !important;
    }
    .guessr-top-hud #versus-live-scoreboard,
    .guessr-top-hud .versus-scoreboard-box,
    .guessr-top-hud.hud-versus-active #versus-live-scoreboard,
    .guessr-top-hud.hud-versus-active .versus-scoreboard-box {
        padding: 4px 6px 4px !important;
    }
    .guessr-top-hud .vs-sb-main-row,
    .guessr-top-hud.hud-versus-active .vs-sb-main-row {
        gap: 4px !important;
    }
    .guessr-top-hud .vs-sb-name,
    .guessr-top-hud.hud-versus-active .vs-sb-name {
        max-width: 50px !important;
        font-size: 0.64rem !important;
    }
    .guessr-top-hud .vs-sb-score,
    .guessr-top-hud.hud-versus-active .vs-sb-score {
        font-size: 0.95rem !important;
    }
    .guessr-top-hud .vs-sb-col,
    .guessr-top-hud.hud-versus-active .vs-sb-col {
        padding: 3px 5px !important;
    }
}

/* 🎁 BANNERS INFORMATIVOS DE RECOMPENSAS */
.ranking-reward-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    border-radius: 12px;
    font-size: 0.76rem;
    margin-bottom: 12px;
    font-weight: 600;
    line-height: 1.35;
    box-sizing: border-box;
    width: 100%;
}

.ranking-reward-notice.diario {
    background: rgba(255, 145, 0, 0.12);
    border: 1px solid rgba(255, 145, 0, 0.4);
    color: #ffb74d;
    box-shadow: 0 4px 14px rgba(255, 145, 0, 0.1);
}
.ranking-reward-notice.diario i {
    color: #ff9100;
    font-size: 1.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(255, 145, 0, 0.6));
}

.ranking-reward-notice.semanal {
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.4);
    color: #fef08a;
    box-shadow: 0 4px 14px rgba(234, 179, 8, 0.1);
}
.ranking-reward-notice.semanal i {
    color: #eab308;
    font-size: 1.2rem;
    flex-shrink: 0;
    filter: drop-shadow(0 0 6px rgba(234, 179, 8, 0.6));
}

/* ☀️ Modo Claro */
[data-theme="light"] .ranking-reward-notice.diario {
    background: #fff7ed !important;
    border-color: #fb923c !important;
    color: #c2410c !important;
}
[data-theme="light"] .ranking-reward-notice.semanal {
    background: #fefce8 !important;
    border-color: #facc15 !important;
    color: #854d0e !important;
}
/* 📱 AJUSTE RESPONSIVE PASTILLAS DEL RANKING EN CELULAR */
.pill-val-mobile {
    display: none !important;
}
.pill-val-desktop {
    display: inline !important;
    color: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    text-transform: none !important;
}

@media (max-width: 768px) {
    .pill-val-desktop {
        display: none !important;
    }
    .pill-val-mobile {
        display: inline !important;
    }
    .ranking-pills-column {
        display: flex !important;
        flex-direction: column !important;
        gap: 5px !important;
        width: 156px !important;
        max-width: calc(100% - 85px) !important;
        margin: 0 !important;
        box-sizing: border-box !important;
    }
    .ranking-pills-column .header-stat-pill {
        display: flex !important;
        flex-direction: row !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        min-height: 28px !important;
        height: auto !important;
        padding: 4px 10px !important;
        gap: 8px !important;
        border-radius: 10px !important;
        box-sizing: border-box !important;
    }
    .ranking-pills-column .header-stat-pill i {
        font-size: 1rem !important;
        flex-shrink: 0 !important;
    }
    .ranking-pills-column .stat-pill-info {
        min-width: 0 !important;
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: flex-start !important;
        justify-content: center !important;
    }
    .ranking-pills-column .stat-pill-info span {
        font-size: 0.52rem !important;
        font-weight: 800 !important;
        color: var(--text-muted) !important;
        letter-spacing: 0.5px !important;
        text-transform: uppercase !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.1 !important;
        width: 100% !important;
    }
    .ranking-pills-column .stat-pill-info strong {
        font-size: 0.74rem !important;
        font-weight: 900 !important;
        color: #ffffff !important;
        letter-spacing: 0.2px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        line-height: 1.15 !important;
        width: 100% !important;
    }

    /* ⚡ REDUCCIÓN DE ESPACIO VERTICAL DEL HUD */
    .guessr-top-hud {
        gap: 2px !important;
    }

    /* 🎮 DOCK DE EMOJIS COMPACTO PARA CELULARES (EXCLUSIVO MODO VERSUS) */
    .guessr-top-hud.hud-versus-active #taunts-container.taunts-dock,
    .guessr-top-hud.hud-versus-active .taunts-dock {
        margin: 1px auto 3px auto !important;
        gap: 6px !important;
        padding: 2px 8px !important;
        width: auto !important;
        max-width: 220px !important;
        box-sizing: border-box !important;
        border-radius: 20px !important;
    }
    .guessr-top-hud.hud-versus-active .taunts-dock .taunt-btn {
        height: 26px !important;
        min-height: 26px !important;
        max-height: 26px !important;
        padding: 0 4px !important;
        font-size: 1rem !important;
        border-radius: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        flex: 1 !important;
    }

    #rounds-progress {
        margin: 2px auto !important;
    }
    .round-dot {
        height: 3px !important;
    }

    .guessr-top-hud #versus-live-scoreboard,
    .guessr-top-hud .versus-scoreboard-box {
        order: 1 !important;
        margin: 2px 0 !important;
        padding: 5px 8px 4px !important;
        gap: 3px !important;
        border-radius: 12px !important;
    }
    .guessr-top-hud .vs-sb-score {
        font-size: 1.05rem !important;
        line-height: 1 !important;
    }
    .guessr-top-hud .vs-sb-status-box {
        margin-top: 1px !important;
        min-height: 14px !important;
    }
    .guessr-top-hud .vs-sb-duel-bar {
        height: 2.5px !important;
        margin-top: 2px !important;
    }
    .guessr-top-hud .vs-status-tag {
        font-size: 0.58rem !important;
        padding: 1px 5px !important;
    }

    /* 💡 BOTÓN PISTAS ALINEADO Y CONTENIDO FUERA DEL VIDEO */
    #guessr-hud-hints {
        order: 2 !important;
        margin: 2px 0 0 0 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }
    .guessr-hint-btn {
        height: 25px !important;
        min-height: 25px !important;
        max-height: 25px !important;
        padding: 0 10px !important;
        font-size: 0.72rem !important;
        font-weight: 800 !important;
        border-radius: 10px !important;
        gap: 5px !important;
    }
    .guessr-hint-btn i {
        font-size: 0.95rem !important;
    }
    .guessr-hint-balloon {
        width: min(290px, calc(100vw - 20px)) !important;
        max-width: calc(100vw - 20px) !important;
        box-sizing: border-box !important;
        padding: 10px 12px !important;
        left: 0 !important;
        right: auto !important;
    }
}
/* ========================================================
   🔒 SISTEMA GAMING DE DESBLOQUEO DE AVATARES
   ======================================================== */
.avatar-locked-blur {
    filter: grayscale(85%) blur(3.5px) brightness(0.48) !important;
    transform: scale(0.96);
    transition: all 0.25s ease;
}

/* Placa con candado flotante sobre la carta FUT */
.avatar-card-lock-badge {
    position: absolute;
    bottom: 24%;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, rgba(20, 26, 42, 0.95) 0%, rgba(8, 12, 22, 0.98) 100%);
    border: 1.5px solid rgba(251, 191, 36, 0.7);
    border-top: 2px solid #fde047;
    color: #fef08a;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    padding: 4px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.85), 0 0 14px rgba(251, 191, 36, 0.35);
    white-space: nowrap;
    pointer-events: none;
    z-index: 10;
    animation: bounceFun 0.3s ease;
}

.avatar-card-lock-badge i {
    font-size: 0.85rem;
    color: #fbbf24;
}

/* Pastilla de nivel en el stepper de edición */
.stepper-lock-pill {
    font-size: 0.58rem !important;
    font-weight: 900 !important;
    background: rgba(251, 191, 36, 0.2);
    border: 1px solid rgba(251, 191, 36, 0.5);
    color: #fde047;
    padding: 1px 5px;
    border-radius: 6px;
    margin-left: 4px;
    letter-spacing: 0.3px;
    vertical-align: middle;
}

/* Botón Guardar Cambios en estado Bloqueado */
.avatar-save-btn.btn-locked-state {
    background: linear-gradient(145deg, rgba(38, 28, 12, 0.95) 0%, rgba(18, 14, 8, 0.98) 100%) !important;
    border-color: rgba(251, 191, 36, 0.6) !important;
    color: #fde68a !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 14px rgba(251, 191, 36, 0.2) !important;
}

/* Tarjetas individuales dentro de la galería modal */
.avatar-grid-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: space-between;
    height: 110px;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 14px;
    padding: 6px 4px;
    cursor: pointer;
    background: linear-gradient(165deg, rgba(18, 26, 42, 0.9) 0%, rgba(9, 14, 25, 0.96) 100%);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    position: relative;
    overflow: hidden;
    box-sizing: border-box;
}

.avatar-grid-card:hover {
    transform: translateY(-3px) scale(1.04);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6);
}

.avatar-grid-card.unlocked:hover {
    border-color: var(--accent-color);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 16px var(--accent-glow);
}

.avatar-grid-card.locked:hover {
    border-color: #fbbf24;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.6), 0 0 16px rgba(251, 191, 36, 0.3);
}

.avatar-grid-card.selected {
    border-color: var(--accent-color) !important;
    box-shadow: 0 0 18px var(--accent-glow) !important;
}

.avatar-grid-img-wrap {
    position: relative;
    width: 100%;
    height: 75px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.avatar-grid-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 15%;
}

.avatar-grid-lock-mask {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    background: rgba(4, 7, 14, 0.55);
}

.avatar-grid-lock-mask i {
    font-size: 1.15rem;
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.6));
}

.avatar-grid-lock-mask span {
    font-size: 0.55rem;
    font-weight: 900;
    color: #fde68a;
    background: rgba(0, 0, 0, 0.7);
    padding: 1px 5px;
    border-radius: 4px;
    letter-spacing: 0.4px;
}

.avatar-grid-card span {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-main);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: 100%;
    text-align: center;
    line-height: 1.1;
    margin-top: 2px;
}

[data-theme="light"] .avatar-grid-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .avatar-grid-card span {
    color: #0f172a !important;
}
/* ========================================================
   👤 CÍRCULO DE AVATAR EN FILAS DE RANKINGS (IDÉNTICO AL HEADER)
   ======================================================== */
.ranking-avatar-circle {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    max-width: 32px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 50% !important;
    border: 2px solid var(--accent-color) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    background: #71a8ff !important;
    box-shadow: 0 0 8px var(--accent-glow) !important;
    position: relative !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
}

.ranking-avatar-circle .ranking-avatar-inner {
    transform: scale(0.32) !important;
    transform-origin: center 75% !important;
    position: absolute !important;
    width: 100px !important;
    height: 100px !important;
    left: 50% !important;
    margin-left: -50px !important;
    bottom: -22px !important;
    top: auto !important;
    right: auto !important;
    pointer-events: none !important;
}

.ranking-avatar-circle .ac-avatar-full {
    position: absolute !important;
    width: 100% !important;
    height: 100% !important;
    left: 0 !important;
    top: 0 !important;
    transform: none !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: hidden !important;
}

.ranking-avatar-circle .ac-avatar-img-full {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center 20% !important;
}

@media (max-width: 768px) {
    .ranking-avatar-circle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
    }
    .ranking-avatar-circle .ranking-avatar-inner {
        transform: scale(0.28) !important;
        left: 50% !important;
        margin-left: -50px !important;
        bottom: -22px !important;
    }
}
/* ========================================================
   🔍 MODAL DE INSPECCIÓN DE CARTA DE RIVAL
   ======================================================== */
/* ========================================================
   🔍 MODAL DE INSPECCIÓN DE CARTA DE RIVAL
   ======================================================== */
#inspect-profile-modal {
    z-index: 10050 !important; /* Capa superior absoluta por encima de ligas y rankings */
}

.inspect-modal-box {
    max-width: 420px !important;
    height: auto !important;
    max-height: 92vh !important;
    padding: 16px 18px 18px 18px !important;
    border-radius: 22px !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.inspect-modal-box .fut-card {
    transform: scale(0.85) !important;
    transform-origin: top center !important;
    margin: 2px 0 -44px 0 !important;
}

.inspect-clickable-user {
    cursor: pointer;
    transition: transform 0.18s ease, color 0.18s ease;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    flex: 1;
}

.inspect-clickable-user:hover {
    color: var(--accent-color) !important;
    transform: translateX(3px);
}

.inspect-clickable-user:hover .ranking-avatar-circle {
    border-color: #ffffff !important;
    box-shadow: 0 0 14px var(--accent-glow) !important;
    transform: scale(1.08);
}

.ranking-user-name {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

/* 🎯 Posición fija uniforme para alinear verticalmente todos los avatars */
.ranking-pos-slot {
    width: 36px !important;
    min-width: 36px !important;
    max-width: 36px !important;
    height: 36px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    box-sizing: border-box !important;
    text-align: center !important;
}
.ranking-pos-slot .rank-pos-medal,
.ranking-pos-slot img {
    width: 36px !important;
    height: 36px !important;
    object-fit: contain !important;
    vertical-align: middle !important;
}
.ranking-pos-slot .ranking-pos-num {
    color: var(--text-muted) !important;
    font-weight: 700 !important;
    font-size: 0.95rem !important;
    text-align: center !important;
    width: 100% !important;
}
.ranking-pos-slot .sticky-rank-pill {
    margin: 0 !important;
}
@media (max-width: 768px) {
    .ranking-pos-slot {
        width: 26px !important;
        min-width: 26px !important;
        max-width: 26px !important;
        height: 26px !important;
    }
    .ranking-pos-slot .rank-pos-medal,
    .ranking-pos-slot img {
        width: 24px !important;
        height: 24px !important;
    }
    .ranking-pos-slot .ranking-pos-num {
        font-size: 0.85rem !important;
    }
}

.inspect-stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-top: 8px;
}

.inspect-stat-pill {
    background: linear-gradient(165deg, rgba(20, 32, 52, 0.85) 0%, rgba(10, 16, 28, 0.95) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 14px;
    padding: 8px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 2px;
}

.inspect-stat-pill i {
    font-size: 1.1rem;
    color: var(--accent-color);
    margin-bottom: 2px;
}

.inspect-stat-pill span {
    font-size: 0.52rem;
    font-weight: 800;
    color: var(--text-muted);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.inspect-stat-pill strong {
    font-size: 0.82rem;
    font-weight: 900;
    color: #ffffff;
}

/* 🗂️ PESTAÑAS DE INSPECCIÓN DE RIVAL (FICHA DT / ONCE TITULAR) */
.inspect-tabs-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-bottom: 8px;
    padding: 3px;
    background: rgba(0, 0, 0, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

.inspect-tab-btn {
    flex: 1;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 12px;
    font-size: 0.76rem;
    font-weight: 900;
    color: var(--text-muted);
    background: transparent;
    border: none;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.inspect-tab-btn.active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.22) 0%, rgba(41, 121, 255, 0.18) 100%);
    border: 1px solid rgba(0, 230, 118, 0.5);
    color: #ffffff;
    box-shadow: 0 2px 10px rgba(0, 230, 118, 0.2);
}

.inspect-tab-btn:hover:not(.active) {
    background: rgba(255, 255, 255, 0.05);
    color: #ffffff;
}

/* 🏟️ CANCHITA TÁCTICA MINIATURA EN MODAL INSPECCIÓN */
.inspect-pitch-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    box-sizing: border-box;
}

.inspect-pitch-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 8px;
    padding: 7px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    box-sizing: border-box;
}

.inspect-pitch-header-left {
    display: flex;
    align-items: center;
    gap: 8px;
    min-width: 0;
}

.inspect-pitch-shield {
    width: 26px;
    height: 26px;
    object-fit: contain;
    flex-shrink: 0;
}

.inspect-pitch-title {
    font-size: 0.84rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.2;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.inspect-pitch-sub {
    font-size: 0.65rem;
    color: var(--text-muted);
    font-weight: 700;
}

.inspect-pitch-ovr-pill {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(202, 138, 4, 0.35) 100%);
    border: 1px solid rgba(251, 191, 36, 0.85);
    color: #fef08a;
    font-size: 0.66rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.2px;
    white-space: nowrap;
    flex-shrink: 0;
}

.inspect-pitch-field {
    position: relative;
    width: 100%;
    max-width: 370px;
    height: 300px;
    background: linear-gradient(180deg, #0d281a 0%, #06160d 100%);
    border: 2px solid rgba(0, 230, 118, 0.4);
    border-radius: 14px;
    overflow: hidden;
    box-shadow: inset 0 0 35px rgba(0, 0, 0, 0.8), 0 8px 24px rgba(0, 0, 0, 0.5);
    margin: 4px 0 8px 0;
}

.inspect-pitch-line-center {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.22);
}

.inspect-pitch-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 66px;
    height: 66px;
    transform: translate(-50%, -50%);
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
}

.inspect-pitch-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: default;
    z-index: 2;
}

.inspect-pitch-node .node-avatar-wrap {
    position: relative;
    width: 34px;
    height: 34px;
    border-radius: 50%;
    border: 2px solid #00e676;
    background: #000;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.6);
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.inspect-pitch-node.empty .node-avatar-wrap {
    border: 1.5px dashed rgba(255, 255, 255, 0.25);
    background: rgba(0, 0, 0, 0.4);
    box-shadow: none;
}

.inspect-pitch-node .node-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.inspect-pitch-node .node-captain-badge {
    position: absolute;
    top: -3px;
    right: -3px;
    background: #fbbf24;
    color: #000000;
    font-size: 0.52rem;
    font-weight: 900;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid #ffffff;
    box-shadow: 0 0 6px rgba(251, 191, 36, 0.8);
}

.inspect-pitch-node .node-pos-pill {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #ffffff;
    font-size: 0.50rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    margin-top: 2px;
    white-space: nowrap;
    line-height: 1.1;
    letter-spacing: 0.2px;
}

.inspect-pitch-node .node-player-name {
    font-size: 0.50rem;
    font-weight: 800;
    color: #e2e8f0;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    white-space: nowrap;
    max-width: 58px;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.1;
    margin-top: 1px;
}

.inspect-dt-bar {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 10px;
    width: 100%;
    box-sizing: border-box;
    font-size: 0.74rem;
    margin-bottom: 8px;
}

.inspect-dt-bar img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 1.5px solid #fbbf24;
    object-fit: cover;
    flex-shrink: 0;
}

.inspect-once-locked-box {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 32px 18px;
    background: rgba(255, 255, 255, 0.03);
    border: 1px dashed rgba(255, 255, 255, 0.15);
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
    margin: 10px 0;
}
/* ========================================================
   🔍 BUSCADOR Y FILA FIJA DE TU POSICIÓN EN RANKINGS
   ======================================================== */
.ranking-table-top-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 14px;
    width: 100%;
    flex-wrap: wrap;
}

.ranking-search-box {
    position: relative;
    display: flex;
    align-items: center;
    min-width: 190px;
    flex: 1;
    max-width: 260px;
}

.ranking-search-box i {
    position: absolute;
    left: 12px;
    color: var(--text-muted);
    font-size: 0.95rem;
    pointer-events: none;
}

.ranking-search-input {
    width: 100%;
    padding: 7px 12px 7px 34px;
    border-radius: 20px;
    background: rgba(14, 24, 40, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    color: var(--text-main);
    font-size: 0.76rem;
    font-weight: 700;
    outline: none;
    transition: all 0.2s ease;
    box-sizing: border-box;
}

.ranking-search-input:focus {
    border-color: var(--accent-color);
    box-shadow: 0 0 12px var(--accent-glow);
    background: rgba(18, 30, 50, 0.95);
}

.ranking-rows-scroll {
    max-height: 440px;
    overflow-y: auto;
    scrollbar-width: thin;
}

/* Fila anclada al final si estás fuera del Top 50 */
.sticky-user-row {
    border-top: 2px dashed var(--accent-color) !important;
    background: linear-gradient(90deg, rgba(0, 230, 118, 0.25) 0%, rgba(0, 230, 118, 0.08) 100%) !important;
    position: sticky;
    bottom: 0;
    z-index: 10;
    box-shadow: 0 -6px 16px rgba(0, 0, 0, 0.6);
}

.sticky-rank-pill {
    background: var(--accent-color);
    color: #000000;
    font-size: 0.65rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    display: inline-block;
    min-width: 32px;
    text-align: center;
}

[data-theme="light"] .ranking-search-input {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0f172a !important;
}

@media (max-width: 768px) {
    .ranking-table-top-bar {
        flex-direction: column;
        align-items: center;
        gap: 8px;
    }
    .ranking-search-box {
        max-width: 100%;
        width: 100%;
    }
}
/* ========================================================
   👥 BOTONES DE INVITACIÓN A LIGA DE AMIGOS
   ======================================================== */
.btn-invitar-liga {
    width: 100%;
    max-width: 240px;
    height: 36px;
    min-height: 36px;
    padding: 0 14px;
    font-size: 0.74rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.22) 0%, rgba(10, 36, 24, 0.95) 100%) !important;
    border: 1.5px solid #00e676 !important;
    border-top: 2px solid #a7f3d0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 14px rgba(0, 255, 119, 0.2) !important;
    cursor: pointer;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    text-transform: uppercase;
}

.btn-invitar-liga:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #69ff9c !important;
    box-shadow: 0 6px 18px rgba(0, 255, 119, 0.35) !important;
}

.btn-inspect-invite-liga {
    width: auto;
    max-width: 340px;
    min-height: 38px;
    margin: 12px auto 0 auto;
    padding: 8px 18px;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.3px;
    line-height: 1.2;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.22) 0%, rgba(14, 28, 44, 0.95) 100%) !important;
    border: 1.5px solid var(--accent-color) !important;
    border-top: 2px solid #a7f3d0 !important;
    color: #ffffff !important;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px var(--accent-glow) !important;
    transition: all 0.22s ease !important;
    box-sizing: border-box;
    white-space: nowrap;
}

.btn-inspect-invite-liga:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #69ff9c !important;
    box-shadow: 0 6px 18px var(--accent-glow) !important;
}

@media (max-width: 768px) {
    .inspect-modal-box {
        padding: 18px 14px !important;
    }
    .btn-inspect-invite-liga {
        width: auto !important;
        max-width: min(290px, 92%) !important;
        height: auto !important;
        min-height: 34px !important;
        font-size: 0.63rem !important;
        letter-spacing: 0.2px !important;
        margin: 10px auto 0 auto !important;
        padding: 6px 14px !important;
        white-space: nowrap !important;
        box-sizing: border-box !important;
    }
    .btn-invitar-liga {
        max-width: 230px !important;
        height: 32px !important;
        min-height: 32px !important;
        font-size: 0.68rem !important;
        padding: 0 12px !important;
    }
}

[data-theme="light"] .btn-invitar-liga {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #00cc66 !important;
    color: #04160a !important;
}

[data-theme="light"] .btn-inspect-invite-liga {
    background: linear-gradient(135deg, #f0fdf4 0%, #ffffff 100%) !important;
    border-color: #00cc66 !important;
    color: #04160a !important;
}
/* ========================================================
   🏆 MOTOR UNIVERSAL DE MODALES DE FIN DE PARTIDA
   ======================================================== */
.endgame-ring-glow-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}
.endgame-ring-aura {
    position: absolute;
    width: 140px;
    height: 140px;
    border-radius: 50%;
    pointer-events: none;
    z-index: 0;
    filter: blur(24px);
    opacity: 0.55;
    transform: translateZ(0);
}

/* 📱 CELULAR Y GENERAL: La ventana abraza el contenido sin dejar vacío abajo */
#modal-card.resultado-final-layout {
    height: auto !important;
    min-height: unset !important;
    max-height: 92vh !important;
}
#modal-card.resultado-final-layout #modal-video-container {
    height: auto !important;
    min-height: unset !important;
}

/* 📱 CELULAR: Flujo vertical con separaciones exactas y limpias */
.endgame-grid-layout {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
}
.endgame-area-header {
    width: 100%;
    margin-bottom: 6px;
    text-align: center;
}
.endgame-area-ring {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin-bottom: 8px !important;
}
.endgame-area-ring .vs-card-banner {
    margin: 0 !important;
}
.endgame-area-list {
    width: 100%;
    margin-bottom: 8px !important;
}
.endgame-area-action {
    width: 100%;
    margin-top: 0 !important;
}

/* 🖥️ PC: 2 Columnas balanceadas y espaciosas sin scroll */
@media (min-width: 769px) {
    #modal-card.resultado-final-layout,
    #order-modal .modal-card.resultado-orden-layout {
        max-width: 840px !important;
        width: 840px !important;
        height: auto !important;
        max-height: 92vh !important;
    }
    .endgame-grid-layout {
        display: grid !important;
        grid-template-columns: 1fr 1.18fr !important;
        grid-template-areas:
            "header list"
            "ring   list"
            "action list";
        gap: 14px 36px !important;
        align-items: center !important;
        text-align: left !important;
        width: 100% !important;
        max-width: 790px !important;
    }
    .endgame-area-header {
        grid-area: header;
        text-align: center;
        margin-bottom: 0 !important;
    }
    .endgame-area-ring {
        grid-area: ring;
        margin: 4px auto !important;
    }
    .endgame-area-action {
        grid-area: action;
        width: 100%;
        margin-top: 0 !important;
    }
    .endgame-area-list {
        grid-area: list;
        width: 100%;
        margin: 0 !important;
    }
}

/* 🛡️ Limpieza visual instantánea: en pantalla de resultados finales ningún cartel o sello debe flotar */
.resultado-final .stamp-badge,
.resultado-final-layout .stamp-badge,
.modal-content.resultado-final-layout .stamp-badge,
.resultado-final #versus-next-round-banner,
.resultado-final-layout #versus-next-round-banner,
.modal-content.resultado-final-layout #versus-next-round-banner {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
    pointer-events: none !important;
}
/* ==========================================================================