/* ========================================================
   ⚽ ESTADIOS VIRTUALES - MÓDULO CSS: MODO CARRERA, SIMULADOR 2D Y ONCE INICIAL
   ======================================================== */
/* ========================================================
   ⚽ ESTILOS: TU ONCE INICIAL & CANCHA TÁCTICA
   ======================================================== */
.btn-once-link {
    width: 100%;
    max-width: 250px;
    height: 34px;
    min-height: 34px;
    margin: 6px auto 0;
    padding: 0 14px;
    font-size: 0.68rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.22) 0%, rgba(10, 32, 20, 0.95) 100%) !important;
    border: 1.5px solid rgba(0, 255, 119, 0.45) !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;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-transform: uppercase;
    box-sizing: border-box;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-once-link:hover {
    transform: translateY(-2px) scale(1.02);
    border-color: #00ff77 !important;
    box-shadow: 0 6px 18px rgba(0, 255, 119, 0.4) !important;
}

/* Modal Tu Once Inicial Panorámico */
.once-modal-box {
    max-width: 1080px !important;
    width: 94% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    padding: 20px 24px !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
}

.once-modal-header {
    text-align: center;
    margin-bottom: 10px;
    flex-shrink: 0;
}

.once-modal-box {
    max-width: 1080px !important;
    width: 94% !important;
    height: 88vh !important;
    max-height: 88vh !important;
    padding: 20px 24px !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    overflow: hidden !important;
    box-sizing: border-box !important;
    transition: background 0.4s ease, box-shadow 0.4s ease !important;
}

.once-title-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
}

.once-title-text-wrap {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
}

.once-title-group h2 {
    font-size: 1.45rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: -0.5px;
    margin: 0;
    color: var(--text-main);
    line-height: 1.1;
}

.once-team-name-tag {
    font-size: 0.72rem;
    font-weight: 800;
    color: var(--accent-color);
    letter-spacing: 0.6px;
    text-transform: uppercase;
    line-height: 1.1;
    margin-top: 2px;
}

.once-stats-sub {
    font-size: 0.82rem;
    color: var(--text-muted);
    font-weight: 700;
    margin: 6px 0 0 0;
    display: flex;
    justify-content: center;
}

/* ========================================================
   ⚡ PANEL DE ESTADÍSTICAS DEL ONCE (EA SPORTS FC STYLE)
   ======================================================== */
.once-stats-hub {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    margin: 4px auto 0 auto;
}

/* 🛡️ 1. OVR HERO CARD */
.once-ovr-card-hero {
    background: linear-gradient(135deg, rgba(14, 28, 52, 0.95) 0%, rgba(8, 14, 28, 0.98) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-top: 2px solid #7dd3fc;
    border-radius: 12px;
    padding: 3px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.22);
    position: relative;
    min-width: 76px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.once-ovr-card-hero:hover {
    transform: translateY(-1px);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(56, 189, 248, 0.35);
}
.once-ovr-hero-label {
    font-size: 0.56rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    color: #7dd3fc;
    text-transform: uppercase;
    line-height: 1;
    margin-bottom: 1px;
}
.once-ovr-hero-val-wrap {
    display: flex;
    align-items: baseline;
    gap: 4px;
}
.once-ovr-hero-number {
    font-size: 1.45rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.05;
    letter-spacing: -0.5px;
    text-shadow: 0 0 12px rgba(56, 189, 248, 0.6);
}
.once-ovr-bonus-chip {
    font-size: 0.62rem;
    font-weight: 900;
    color: #00e676;
    background: rgba(0, 230, 118, 0.2);
    border: 1px solid rgba(0, 230, 118, 0.6);
    padding: 1px 4px;
    border-radius: 6px;
    line-height: 1;
    box-shadow: 0 0 6px rgba(0, 230, 118, 0.4);
}

/* ⚙️ 2. LÍNEAS TÁCTICAS (DEF · MED · DEL) */
.once-lines-hub {
    display: flex;
    align-items: center;
    background: linear-gradient(135deg, rgba(10, 16, 30, 0.88) 0%, rgba(6, 10, 20, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    border-top: 1.5px solid rgba(255, 255, 255, 0.25);
    border-radius: 12px;
    padding: 3px 6px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.08);
    gap: 4px;
}
.once-line-cell {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 2px 12px;
    min-width: 52px;
}
.once-line-tag {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    line-height: 1;
    margin-bottom: 2px;
}
.once-line-score {
    font-size: 1.1rem;
    font-weight: 900;
    line-height: 1;
    letter-spacing: -0.3px;
}
.once-line-cell.def .once-line-tag { color: #60a5fa; }
.once-line-cell.def .once-line-score { color: #ffffff; text-shadow: 0 0 8px rgba(96, 165, 250, 0.5); }

.once-line-cell.med .once-line-tag { color: #fbbf24; }
.once-line-cell.med .once-line-score { color: #ffffff; text-shadow: 0 0 8px rgba(251, 191, 36, 0.5); }

.once-line-cell.del .once-line-tag { color: #f87171; }
.once-line-cell.del .once-line-score { color: #ffffff; text-shadow: 0 0 8px rgba(248, 113, 113, 0.5); }

.once-line-divider {
    width: 1px;
    height: 22px;
    background: rgba(255, 255, 255, 0.12);
}

/* 💎 3. RECURSOS TÁCTICOS: QUÍMICA & SP */
.once-resources-hub {
    display: flex;
    align-items: center;
    gap: 8px;
}
.once-res-badge {
    display: flex;
    align-items: center;
    gap: 7px;
    padding: 4px 10px;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35);
    background: linear-gradient(135deg, rgba(10, 16, 30, 0.88) 0%, rgba(6, 10, 20, 0.94) 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
}
.once-res-badge i {
    font-size: 1.2rem;
}
.once-res-text {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    line-height: 1;
}
.once-res-val {
    font-size: 0.95rem;
    font-weight: 900;
    line-height: 1;
    color: #ffffff;
}
.once-res-val b {
    font-size: 0.65rem;
    opacity: 0.7;
    font-weight: 700;
}
.once-res-sub {
    font-size: 0.52rem;
    font-weight: 800;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    margin-top: 2px;
}

.once-res-badge.quimica {
    border-color: rgba(0, 230, 118, 0.45);
    border-top: 1.5px solid rgba(110, 231, 183, 0.7);
}
.once-res-badge.quimica i {
    color: #00e676;
    filter: drop-shadow(0 0 6px rgba(0, 230, 118, 0.6));
}
.once-res-badge.quimica .once-res-sub { color: #6ee7b7; }
.once-res-badge.quimica.chem-high {
    border-color: rgba(0, 230, 118, 0.7);
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.18) 0%, rgba(10, 20, 30, 0.95) 100%);
    box-shadow: 0 4px 14px rgba(0, 230, 118, 0.22);
}

.once-res-badge.sp {
    border-color: rgba(250, 204, 21, 0.45);
    border-top: 1.5px solid rgba(254, 240, 138, 0.7);
}
.once-res-badge.sp i {
    color: #facc15;
    filter: drop-shadow(0 0 6px rgba(250, 204, 21, 0.6));
}
.once-res-badge.sp .once-res-sub { color: #fde047; }
.once-res-badge.sp .once-res-val { color: #fef08a; text-shadow: 0 0 6px rgba(250, 204, 21, 0.4); }

/* ========================================================
   🎛️ BARRA DE ACCIONES SUPERIORES (TABS + BOTONES GAMER)
   ======================================================== */
.once-top-actions-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 12px;
    flex-shrink: 0;
    flex-wrap: wrap;
    width: 100%;
}

/* ⚽ PESTAÑAS DE FORMACIÓN (SEGMENTED CONTROL DEPORTIVO) */
.once-top-actions-bar .pitch-formations-bar {
    display: inline-flex;
    background: rgba(8, 14, 26, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 12px;
    padding: 3px;
    gap: 3px;
    box-shadow: inset 0 2px 6px rgba(0, 0, 0, 0.5), 0 4px 12px rgba(0, 0, 0, 0.35);
    box-sizing: border-box;
}

.once-top-actions-bar .pitch-form-tab {
    flex: 1;
    background: transparent;
    border: none;
    color: #94a3b8;
    font-size: 0.78rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 9px;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    letter-spacing: 0.3px;
    text-align: center;
    user-select: none;
}
.once-top-actions-bar .pitch-form-tab:hover:not(.active) {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}
.once-top-actions-bar .pitch-form-tab.active {
    background: linear-gradient(135deg, rgba(0, 230, 118, 0.35) 0%, rgba(16, 185, 129, 0.2) 100%) !important;
    border: 1px solid rgba(0, 230, 118, 0.6) !important;
    border-top: 1.5px solid #6ee7b7 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(0, 230, 118, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    text-shadow: 0 0 8px rgba(0, 230, 118, 0.5);
}

/* 🕹️ BOTONES DE ACCIÓN RÁPIDA (MI CARTA, AUTO, VACIAR) */
.once-quick-btns {
    display: flex;
    gap: 8px;
    align-items: center;
}

.once-quick-btn {
    border-radius: 10px !important;
    height: 36px !important;
    min-height: 36px !important;
    padding: 0 14px !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.2px !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-sizing: border-box !important;
}

/* 1. Botón Mi Carta */
.once-btn-micarta {
    background: linear-gradient(135deg, rgba(30, 41, 59, 0.9) 0%, rgba(15, 23, 42, 0.95) 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    border-top: 1.5px solid rgba(125, 211, 252, 0.8) !important;
    color: #e0f2fe !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4), 0 0 10px rgba(56, 189, 248, 0.15) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
}
.once-btn-micarta i {
    font-size: 1.1rem !important;
    color: #38bdf8 !important;
    filter: drop-shadow(0 0 6px rgba(56, 189, 248, 0.6));
}
.once-btn-micarta:hover {
    transform: translateY(-2px) scale(1.02) !important;
    border-color: #38bdf8 !important;
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.5), 0 0 16px rgba(56, 189, 248, 0.35) !important;
    color: #ffffff !important;
}

/* 2. Botón Auto (Mágico / Completar) */
.once-btn-auto {
    background: linear-gradient(135deg, #059669 0%, #10b981 50%, #00e676 100%) !important;
    border: 1.5px solid rgba(110, 231, 183, 0.6) !important;
    border-top: 1.5px solid #ffffff !important;
    color: #ffffff !important;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.6) !important;
    box-shadow: 0 4px 16px rgba(0, 230, 118, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 7px !important;
    letter-spacing: 0.4px !important;
}
.once-btn-auto i {
    font-size: 1.1rem !important;
    color: #ffffff !important;
    filter: drop-shadow(0 0 4px rgba(255, 255, 255, 0.8));
}
.once-btn-auto:hover {
    transform: translateY(-2px) scale(1.02) !important;
    box-shadow: 0 6px 22px rgba(0, 230, 118, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.5) !important;
    filter: brightness(1.1) !important;
}

/* 3. Botón Vaciar Cancha */
.once-btn-trash {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1.5px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.35) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 36px !important;
    height: 36px !important;
    min-width: 36px !important;
    padding: 0 !important;
}
.once-btn-trash i {
    font-size: 1.05rem !important;
}
.once-btn-trash:hover {
    background: rgba(239, 68, 68, 0.28) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-2px) scale(1.04) !important;
    box-shadow: 0 6px 16px rgba(239, 68, 68, 0.4) !important;
}

/* ☀️ Modo Claro - Hub de Estadísticas del Once y Botones Gamer */
[data-theme="light"] .once-ovr-card-hero {
    background: linear-gradient(135deg, #ffffff 0%, #f1f5f9 100%) !important;
    border-color: #93c5fd !important;
    border-top: 2px solid #2563eb !important;
    box-shadow: 0 4px 14px rgba(37, 99, 235, 0.12) !important;
}
[data-theme="light"] .once-ovr-hero-label {
    color: #1d4ed8 !important;
}
[data-theme="light"] .once-ovr-hero-number {
    color: #0f172a !important;
    text-shadow: none !important;
}
[data-theme="light"] .once-ovr-bonus-chip {
    color: #047857 !important;
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(16, 185, 129, 0.5) !important;
}
[data-theme="light"] .once-lines-hub {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    border-top: 1.5px solid #94a3b8 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06) !important;
}
[data-theme="light"] .once-line-divider {
    background: #e2e8f0 !important;
}
[data-theme="light"] .once-line-cell.def .once-line-tag { color: #2563eb !important; }
[data-theme="light"] .once-line-cell.def .once-line-score { color: #0f172a !important; text-shadow: none !important; }
[data-theme="light"] .once-line-cell.med .once-line-tag { color: #d97706 !important; }
[data-theme="light"] .once-line-cell.med .once-line-score { color: #0f172a !important; text-shadow: none !important; }
[data-theme="light"] .once-line-cell.del .once-line-tag { color: #dc2626 !important; }
[data-theme="light"] .once-line-cell.del .once-line-score { color: #0f172a !important; text-shadow: none !important; }

[data-theme="light"] .once-res-badge {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .once-res-val {
    color: #0f172a !important;
}
[data-theme="light"] .once-res-badge.quimica {
    border-color: #86efac !important;
    border-top: 1.5px solid #10b981 !important;
}
[data-theme="light"] .once-res-badge.quimica i {
    color: #059669 !important;
    filter: none !important;
}
[data-theme="light"] .once-res-badge.quimica .once-res-sub {
    color: #047857 !important;
}
[data-theme="light"] .once-res-badge.sp {
    border-color: #fde047 !important;
    border-top: 1.5px solid #d97706 !important;
}
[data-theme="light"] .once-res-badge.sp i {
    color: #d97706 !important;
    filter: none !important;
}
[data-theme="light"] .once-res-badge.sp .once-res-sub {
    color: #b45309 !important;
}
[data-theme="light"] .once-res-badge.sp .once-res-val {
    color: #0f172a !important;
    text-shadow: none !important;
}

[data-theme="light"] .once-top-actions-bar .pitch-formations-bar {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.04) !important;
}
[data-theme="light"] .once-top-actions-bar .pitch-form-tab {
    color: #64748b !important;
}
[data-theme="light"] .once-top-actions-bar .pitch-form-tab:hover:not(.active) {
    color: #0f172a !important;
    background: rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .once-top-actions-bar .pitch-form-tab.active {
    background: linear-gradient(135deg, #059669 0%, #10b981 100%) !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px rgba(16, 185, 129, 0.3) !important;
    border-color: #059669 !important;
    text-shadow: none !important;
}

[data-theme="light"] .once-btn-micarta {
    background: #ffffff !important;
    border-color: #93c5fd !important;
    border-top: 1.5px solid #3b82f6 !important;
    color: #1e3a8a !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05) !important;
}
[data-theme="light"] .once-btn-micarta i {
    color: #2563eb !important;
    filter: none !important;
}
[data-theme="light"] .once-btn-trash {
    background: #fef2f2 !important;
    border-color: #fca5a5 !important;
    color: #dc2626 !important;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.04) !important;
}

/* 🏟 CONTENEDOR 2 COLUMNAS (CANCHA IZQUIERDA + PLANTEL DERECHA) */
.once-layout-split {
    display: grid;
    grid-template-columns: 1.12fr 1fr;
    gap: 18px;
    width: 100%;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.once-tactical-field {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 0;
    background: linear-gradient(180deg, #0d281a 0%, #06180f 100%);
    border: 2px solid rgba(0, 230, 118, 0.4);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: inset 0 0 30px rgba(0, 0, 0, 0.7), 0 8px 24px rgba(0, 0, 0, 0.4);
    user-select: none;
    margin-bottom: 0 !important;
}

/* Nodos interactivos del Once Inicial */
.once-slot-node {
    position: absolute;
    transform: translate(-50%, -50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 5;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.once-slot-node:hover {
    transform: translate(-50%, -50%) scale(1.15);
    z-index: 10;
}

.once-slot-node.is-active-slot {
    transform: translate(-50%, -50%) scale(1.22) !important;
    z-index: 12;
}

/* 🚫 Anular arrastre nativo de imágenes del navegador (evita Pantalla Dividida en Edge) */
.once-modal-box img,
.avatar-grid-card img,
.once-avatar-img {
    -webkit-user-drag: none !important;
    user-drag: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
}

/* 🔄 Estados de Drag & Drop para puestos de cancha y tarjetas */
.avatar-grid-card.unlocked {
    cursor: grab;
}
.avatar-grid-card.is-dragging {
    opacity: 0.45;
    transform: scale(0.95);
    cursor: grabbing;
}
.once-slot-node.is-dragging {
    opacity: 0.4;
    transform: translate(-50%, -50%) scale(0.9);
}
.once-slot-node.is-drag-over .once-avatar-circle,
.once-slot-node.is-drag-over .once-empty-circle,
.once-dt-bench.is-drag-over .once-avatar-circle,
.once-dt-bench.is-drag-over .dt-circle {
    border-color: #ffd700 !important;
    box-shadow: 0 0 24px rgba(255, 215, 0, 0.85) !important;
    transform: scale(1.18);
    transition: all 0.15s ease;
}

.once-avatar-circle {
    position: relative !important;
    width: 54px !important;
    height: 54px !important;
    min-width: 54px !important;
    min-height: 54px !important;
    border-radius: 50% !important;
    border: 2px solid #00ff77 !important;
    background: #091322 !important;
    box-shadow: 0 0 16px var(--accent-glow) !important;
    overflow: visible !important;
}

.once-avatar-img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 15%;
}

.once-slot-remove-btn {
    position: absolute;
    top: -5px;
    right: -5px;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    background: var(--danger-color);
    color: #fff;
    border: 1px solid #fff;
    font-size: 0.55rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
    opacity: 0;
    pointer-events: none; /* 🛡️ Blinda contra toques accidentales cuando está oculto */
    transition: opacity 0.15s ease;
}

.once-slot-node:hover .once-slot-remove-btn {
    opacity: 1;
    pointer-events: auto;
}

.once-empty-circle {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 2px dashed rgba(255, 255, 255, 0.35);
    background: rgba(10, 18, 28, 0.7);
    color: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s ease;
}

.once-slot-node.empty:hover .once-empty-circle,
.once-slot-node.is-active-slot .once-empty-circle {
    border-color: #00ff77;
    color: #00ff77;
    background: rgba(0, 255, 119, 0.15);
    box-shadow: 0 0 14px var(--accent-glow);
}

.once-pos-badge {
    margin-top: -6px;
    font-size: 0.52rem;
    font-weight: 900;
    padding: 1px 6px;
    border-radius: 6px;
    background: #00ff77;
    color: #000;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    line-height: 1.1;
    z-index: 2;
}

.once-pos-badge.empty {
    background: rgba(255, 255, 255, 0.18);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

/* 💎 PIPS DE QUÍMICA INDIVIDUAL (0 a 3 rombos estilo EA Sports FC) */
.once-chem-pips {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 3px;
    margin-top: 2px;
    margin-bottom: 1px;
    z-index: 3;
}

.chem-pip {
    width: 6px;
    height: 6px;
    border-radius: 1px;
    transform: rotate(45deg);
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.35);
    transition: all 0.25s ease;
}

.chem-pip.active {
    background: #00ff77;
    border-color: #69ff9c;
    box-shadow: 0 0 6px rgba(0, 255, 119, 0.85);
}

.once-res-badge.quimica.chem-perfect {
    border-color: rgba(250, 204, 21, 0.85) !important;
    background: linear-gradient(135deg, rgba(250, 204, 21, 0.22) 0%, rgba(10, 20, 30, 0.95) 100%) !important;
    box-shadow: 0 4px 16px rgba(250, 204, 21, 0.35) !important;
}
.once-res-badge.quimica.chem-perfect i {
    color: #facc15 !important;
    filter: drop-shadow(0 0 8px rgba(250, 204, 21, 0.85)) !important;
}
.once-res-badge.quimica.chem-perfect .once-res-sub {
    color: #fef08a !important;
    font-weight: 900 !important;
}
.once-res-badge.quimica.chem-mid {
    border-color: rgba(56, 189, 248, 0.6) !important;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.15) 0%, rgba(10, 20, 30, 0.95) 100%) !important;
}
.once-res-badge.quimica.chem-mid i {
    color: #38bdf8 !important;
}

.once-ovr-bonus-chip.chem-bonus {
    background: linear-gradient(135deg, #00e676 0%, #00b0ff 100%);
    box-shadow: 0 0 10px rgba(0, 230, 118, 0.5);
}

.once-player-label {
    font-size: 0.55rem;
    font-weight: 800;
    color: #ffffff;
    white-space: nowrap;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.9);
    margin-top: 2px;
}

.once-player-label.empty {
    color: rgba(255, 255, 255, 0.5);
}

/* Banquillo / Drawer de Selección Inferior */
.once-drawer-wrapper {
    background: linear-gradient(165deg, rgba(14, 22, 38, 0.9) 0%, rgba(8, 12, 22, 0.95) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 18px;
    padding: 14px;
    display: flex;
    flex-direction: column;
    height: 100%;
    min-height: 0;
    min-width: 0;
    overflow: hidden;
    box-sizing: border-box;
}

.once-drawer-title {
    font-size: 0.74rem;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 6px;
    flex-shrink: 0;
    width: 100%;
}

.once-drawer-banner {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    width: 100%;
    text-align: center;
    line-height: 1.25;
    flex-wrap: wrap;
}

.once-drawer-banner i {
    color: var(--accent-color);
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px var(--accent-glow));
}

.once-drawer-banner b {
    color: var(--accent-color);
    font-weight: 900;
}

.once-players-scroll-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
    gap: 10px;
    overflow-y: auto;
    max-height: none !important;
    flex: 1;
    min-height: 0;
    padding-right: 4px;
    align-content: start;
    scrollbar-width: thin;
}

/* 📱 ADAPTACIÓN PARA CELULARES (VUELVE A FLUJO VERTICAL APILADO) */
@media (max-width: 860px) {
    .once-modal-box {
        max-width: 95% !important;
        height: auto !important;
        max-height: 92vh !important;
        overflow-y: auto !important;
        padding: 16px 12px !important;
    }

    .once-layout-split {
        display: flex !important;
        flex-direction: column !important;
        gap: 12px !important;
        overflow: visible !important;
    }

    .once-tactical-field {
        height: 350px !important;
        min-height: 350px !important;
        flex: none !important;
    }

    .once-drawer-wrapper {
        height: auto !important;
        min-height: auto !important;
        flex: none !important;
        overflow: visible !important;
    }

    .once-players-scroll-grid {
        max-height: 230px !important;
        flex: none !important;
    }

    /* 🎛️ Responsive para la barra de acciones superior */
    .once-top-actions-bar {
        flex-direction: column !important;
        gap: 8px !important;
        margin-bottom: 8px !important;
    }
    .once-top-actions-bar .pitch-formations-bar {
        width: 100% !important;
        justify-content: space-around !important;
    }
    .once-top-actions-bar .pitch-form-tab {
        padding: 6px 8px !important;
        font-size: 0.74rem !important;
    }
    .once-quick-btns {
        width: 100% !important;
        justify-content: center !important;
        gap: 6px !important;
    }
    .once-btn-micarta,
    .once-btn-auto {
        flex: 1 !important;
        justify-content: center !important;
        padding: 0 10px !important;
        font-size: 0.74rem !important;
    }
    
    /* ⚡ Responsive para el hub de estadísticas */
    .once-stats-hub {
        gap: 8px !important;
        margin-top: 2px !important;
    }
    .once-ovr-card-hero {
        padding: 2px 10px !important;
        min-width: 68px !important;
    }
    .once-ovr-hero-number {
        font-size: 1.3rem !important;
    }
    .once-lines-hub {
        padding: 2px 4px !important;
        gap: 2px !important;
    }
    .once-line-cell {
        padding: 2px 8px !important;
        min-width: 44px !important;
    }
    .once-line-score {
        font-size: 1rem !important;
    }
    .once-res-badge {
        padding: 3px 8px !important;
        gap: 5px !important;
    }
    .once-res-val {
        font-size: 0.88rem !important;
    }
}

.once-card-in-pitch-badge {
    position: absolute;
    inset: 0;
    background: rgba(0, 230, 118, 0.35);
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.60rem;
    font-weight: 900;
    border-radius: 50%;
    text-shadow: 0 1px 3px rgba(0,0,0,0.8);
}

/* Adaptación responsive para celulares (Fichas compactas y DT despejado) */
@media (max-width: 768px) {
    .once-tactical-field {
        height: 355px !important;
        min-height: 355px !important;
    }

    .once-avatar-circle {
        width: 36px !important;
        height: 36px !important;
        min-width: 36px !important;
        min-height: 36px !important;
        box-shadow: 0 0 10px var(--accent-glow) !important;
    }

    .once-empty-circle {
        width: 32px !important;
        height: 32px !important;
        min-width: 32px !important;
        min-height: 32px !important;
        font-size: 0.85rem !important;
    }

    .once-pos-badge {
        font-size: 0.48rem !important;
        padding: 1px 5px !important;
        margin-top: -4px !important;
    }

    .once-chem-pips {
        gap: 2px !important;
        margin-top: 0px !important;
        margin-bottom: 0px !important;
    }
    .chem-pip {
        width: 4px !important;
        height: 4px !important;
    }

    .once-player-label {
        font-size: 0.50rem !important;
        margin-top: 1px !important;
        max-width: 58px !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        white-space: nowrap !important;
    }

    .once-slot-node[data-slot-idx="10"] .once-pos-badge {
        margin-top: -5px !important;
    }
    .once-slot-node[data-slot-idx="10"] .once-player-label {
        margin-top: 0px !important;
        line-height: 1 !important;
    }

    .once-captain-armband-badge {
        width: 14px !important;
        height: 14px !important;
        font-size: 0.50rem !important;
        top: -3px !important;
        bottom: auto !important;
        left: -3px !important;
    }

    .once-slot-captain-btn,
    .once-slot-remove-btn {
        display: none !important;
        pointer-events: none !important;
    }

    /* 👔 DT en esquina inferior derecha en escala compacta sin colisión con LD */
    .once-dt-bench {
        bottom: 3px !important;
        right: 4px !important;
    }
    .once-dt-bench .once-avatar-circle {
        width: 30px !important;
        height: 30px !important;
        min-width: 30px !important;
        min-height: 30px !important;
    }
    .once-dt-bench .dt-circle {
        width: 30px !important;
        height: 30px !important;
        font-size: 0.82rem !important;
    }
    .once-dt-bench .once-pos-badge {
        font-size: 0.46rem !important;
        padding: 1px 4px !important;
    }
    .once-dt-bench .once-player-label {
        font-size: 0.48rem !important;
        max-width: 48px !important;
    }
}
/* ========================================================
   ⚽ BOTÓN TÁCTICO HERO: TU ONCE INICIAL (PC & BASE)
   ======================================================== */
.once-banner-wrapper {
    display: flex;
    justify-content: center;
    align-items: center;
    pointer-events: auto;
}

.btn-once-banner {
    position: relative;
    pointer-events: auto;
    width: 290px;
    min-height: 82px;
    height: 82px;
    padding: 12px 18px 12px 82px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    cursor: pointer;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    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);
    transition: transform 0.25s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.25s ease, border-color 0.25s ease;
    box-sizing: border-box;
    user-select: none;
    overflow: visible !important;
}

.btn-once-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);
}

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

/* 🏟️ Cancha 3D oficial del catálogo para el botón */
.once-banner-img {
    position: absolute;
    left: -32px;
    top: 50%;
    transform: translateY(-50%) translateZ(0);
    width: 120px;
    height: 120px;
    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-once-banner:hover .once-banner-img {
    transform: translateY(-50%) scale(1.1) rotate(-4deg);
    filter: drop-shadow(0 0 28px rgba(0, 255, 119, 1));
}

/* ☀️ Modo Claro */
[data-theme="light"] .btn-once-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-once-banner:hover {
    border-color: #00cc66 !important;
    box-shadow: 0 14px 30px rgba(0, 204, 102, 0.2) !important;
}

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

[data-theme="light"] .btn-once-banner .reto-banner-text span {
    color: #04160a !important;
}
/* ========================================================
   🛡️ ESCUDO, CAPITÁN Y DT EN TU ONCE INICIAL
   ======================================================== */
.once-team-shield-box {
    position: relative;
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: rgba(8, 14, 24, 0.95);
    border: 2px solid var(--accent-color);
    box-shadow: 0 0 16px var(--accent-glow);
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease;
    flex-shrink: 0;
}

.once-team-shield-box:hover {
    transform: scale(1.1);
    border-color: #ffffff;
    box-shadow: 0 0 22px var(--accent-glow);
}

.once-team-shield-img {
    width: 35px;
    height: 35px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.once-shield-edit-tag {
    position: absolute;
    bottom: -1px;
    right: -1px;
    background: var(--accent-color);
    color: #000;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.65rem;
    font-weight: 900;
    border: 1.5px solid #ffffff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.6);
}

/* 👑 BOTÓN Y CINTA DE CAPITÁN EN EL NODO */
.once-slot-captain-btn {
    position: absolute;
    top: -5px;
    left: -5px;
    width: 17px;
    height: 17px;
    border-radius: 50%;
    background: rgba(14, 22, 38, 0.92);
    color: #cbd5e1;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
    font-size: 0.55rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    padding: 0;
    z-index: 15;
    opacity: 0;
    transition: all 0.15s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.5);
}

.once-slot-node:hover .once-slot-captain-btn,
.once-slot-captain-btn.is-captain {
    opacity: 1;
}

.once-slot-captain-btn.is-captain {
    background: linear-gradient(135deg, #ffd700 0%, #ff9100 100%) !important;
    color: #050b14 !important;
    border-color: #ffffff !important;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.8) !important;
}

.once-captain-armband-badge {
    position: absolute;
    top: -4px;
    left: -4px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd700 0%, #ff9100 100%);
    border: 1.5px solid #ffffff;
    color: #0b1325;
    font-size: 0.62rem;
    font-weight: 900;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 10px rgba(255, 215, 0, 0.85);
    z-index: 14;
    pointer-events: none;
    line-height: 1;
}

.once-slot-node.is-team-captain .once-avatar-circle {
    border-color: #ffd700 !important;
    box-shadow: 0 0 16px rgba(255, 215, 0, 0.6) !important;
}

/* 👔 BANQUILLO DEL DT EN LA CANCHA (Sin recuadro y ajustado a la esquina) */
.once-dt-bench {
    position: absolute;
    bottom: 5px !important;
    right: 6px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    padding: 0 !important;
    background: transparent !important;
    border: none !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    box-shadow: none !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    user-select: none;
}

.once-dt-bench:hover,
.once-dt-bench.is-active-slot {
    background: transparent !important;
    border: none !important;
    transform: scale(1.12) !important;
    box-shadow: none !important;
}

.once-dt-bench.is-active-slot .once-avatar-circle {
    border-color: #ffffff !important;
    box-shadow: 0 0 18px var(--accent-glow) !important;
}

.once-dt-bench.empty .dt-circle {
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px dashed rgba(255, 255, 255, 0.4);
    background: rgba(10, 18, 28, 0.7);
    color: rgba(255, 255, 255, 0.8);
    font-size: 1.1rem;
}

.once-dt-bench.empty:hover .dt-circle,
.once-dt-bench.empty.is-active-slot .dt-circle {
    border-color: #00ff77;
    color: #00ff77;
    box-shadow: 0 0 14px var(--accent-glow);
}

.once-dt-bench .once-player-label {
    max-width: 68px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: center;
}

.once-pos-badge.dt {
    background: linear-gradient(135deg, #3b82f6 0%, #1d4ed8 100%);
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
}

/* 🎯 RESALTE ELEGANTE DE CARTAS EN BANQUILLO SIN EL GLOBO VERDE ENCIMA */
.avatar-grid-card.in-pitch {
    border-color: rgba(0, 255, 119, 0.65) !important;
    box-shadow: 0 0 14px rgba(0, 255, 119, 0.25) !important;
    opacity: 0.85;
}

/* Ocultar definitivamente el globito verde previo */
.once-card-in-pitch-badge {
    display: none !important;
}

/* ☀️ ADAPTACIÓN MODO CLARO: MODAL TU ONCE INICIAL */
[data-theme="light"] .once-drawer-wrapper {
    background: rgba(255, 255, 255, 0.94) !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .once-drawer-title {
    color: #0f172a !important;
}

[data-theme="light"] .once-drawer-title b {
    color: #00a854 !important;
}

[data-theme="light"] .once-players-scroll-grid .avatar-grid-card {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .once-players-scroll-grid .avatar-grid-card:hover {
    background: #ffffff !important;
    border-color: #00cc66 !important;
    box-shadow: 0 6px 16px rgba(0, 204, 102, 0.2) !important;
}

[data-theme="light"] .once-stats-sub {
    color: #334155 !important;
}

[data-theme="light"] .once-team-shield-box {
    background: #ffffff !important;
    border-color: #00cc66 !important;
    box-shadow: 0 0 14px rgba(0, 204, 102, 0.3) !important;
}

[data-theme="light"] .once-team-name-tag {
    color: #008744 !important;
}
/* 🏷️ TAG DE OVR EN CARTAS DEL BANQUILLO */
.once-drawer-ovr-tag {
    position: absolute;
    top: 4px;
    left: 4px;
    background: rgba(8, 14, 24, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.25);
    color: #38bdf8;
    font-size: 0.55rem;
    font-weight: 900;
    padding: 1px 4px;
    border-radius: 4px;
    line-height: 1.1;
    letter-spacing: 0.2px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.6);
    pointer-events: none;
    z-index: 2;
}

[data-theme="light"] .once-drawer-ovr-tag {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    color: #0284c7 !important;
}
/* ========================================================
   🏆 BOTÓN DE TORNEO Y MODAL DE CIRCUITO DE COPAS
   ======================================================== */
.btn-torneo-locked {
    background: linear-gradient(145deg, rgba(20, 26, 38, 0.95) 0%, rgba(10, 14, 22, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.16) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.3) !important;
    color: #94a3b8 !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    transition: all 0.22s ease !important;
}

.btn-torneo-locked:hover {
    border-color: #fbbf24 !important;
    color: #fde68a !important;
    box-shadow: 0 6px 16px rgba(251, 191, 36, 0.2) !important;
    transform: translateY(-2px);
}

.btn-torneo-ready {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.25) 0%, rgba(20, 16, 8, 0.95) 60%, rgba(10, 8, 4, 0.98) 100%) !important;
    border: 1.5px solid #eab308 !important;
    border-top: 2px solid #fef08a !important;
    color: #fef08a !important;
    box-shadow: 0 4px 16px rgba(234, 179, 8, 0.45), 0 0 14px rgba(234, 179, 8, 0.3) !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.btn-torneo-ready:hover {
    transform: translateY(-2px) scale(1.03) !important;
    border-color: #fde047 !important;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.65), 0 0 20px rgba(234, 179, 8, 0.5) !important;
}

/* Modal del Circuito */
.torneo-copas-box {
    max-width: 820px !important;
    width: 92% !important;
    height: auto !important;
    max-height: 88vh !important;
    padding: 22px 26px !important;
    border-radius: 24px !important;
    overflow-y: auto !important;
    scrollbar-width: thin;
}

.torneo-modal-header {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 18px;
  margin-bottom: 18px;
  width: 100%;
}

.torneo-modal-header .trophy-stage-wrapper {
  width: auto !important;
  margin: 0 !important;
  flex-shrink: 0;
}

.torneo-header-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.torneo-modal-title {
  font-size: 1.55rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.5px;
  color: #ffffff;
  margin: 0 0 4px 0;
  line-height: 1.15;
}

.torneo-modal-sub {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  margin: 0;
  line-height: 1.35;
}

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

.torneo-tier-card {
    background: linear-gradient(165deg, rgba(18, 26, 42, 0.92) 0%, rgba(8, 12, 22, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 18px;
    padding: 16px 14px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    position: relative;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.5);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.torneo-tier-card.tier-unlocked {
    cursor: pointer;
}

.torneo-tier-card.tier-unlocked:hover {
    transform: translateY(-4px) scale(1.02);
    border-color: #eab308;
    box-shadow: 0 14px 30px rgba(0, 0, 0, 0.7), 0 0 20px rgba(234, 179, 8, 0.25);
}

.torneo-tier-card.tier-locked {
    opacity: 0.65;
    filter: grayscale(40%);
}

.tier-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.tier-badge {
    font-size: 0.58rem;
    font-weight: 900;
    padding: 2px 7px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}
.tier-badge.tier-1 { background: rgba(205, 127, 50, 0.2); color: #cd7f32; border: 1px solid rgba(205, 127, 50, 0.4); }
.tier-badge.tier-2 { background: rgba(156, 163, 175, 0.2); color: #cbd5e1; border: 1px solid rgba(156, 163, 175, 0.4); }
.tier-badge.tier-3 { background: rgba(234, 179, 8, 0.2); color: #fde047; border: 1px solid rgba(234, 179, 8, 0.4); }
.tier-badge.tier-4 { background: rgba(0, 255, 119, 0.2); color: #00ff77; border: 1px solid rgba(0, 255, 119, 0.5); text-shadow: 0 0 6px rgba(0, 255, 119, 0.6); }

/* Grilla de 4 copas balanceada */
.torneo-tiers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 12px !important;
    width: 100%;
    margin-top: 8px;
}

/* ========================================================
   🏆 PALMARÉS DEL CLUB: MEDALLAS Y TARJETAS CONTROLADAS
   ======================================================== */
.palmares-counter-badge {
    background: rgba(251, 191, 36, 0.14);
    border: 1.5px solid rgba(251, 191, 36, 0.45);
    color: #fde047;
    font-size: 0.72rem;
    font-weight: 800;
    padding: 3px 10px;
    border-radius: 20px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    letter-spacing: 0.3px;
    box-shadow: 0 0 10px rgba(251, 191, 36, 0.15);
}

.palmares-cups-row {
    display: grid;
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 10px;
    margin-top: 10px;
    width: 100%;
    box-sizing: border-box;
}

.palmares-cup-item {
    background: linear-gradient(165deg, rgba(16, 26, 42, 0.9) 0%, rgba(8, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 12px 6px 10px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    box-sizing: border-box;
    transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.palmares-cup-item:hover {
    transform: translateY(-2px);
}

.palmares-cup-item.unlocked {
    border-color: rgba(251, 191, 36, 0.55);
    background: linear-gradient(165deg, rgba(38, 30, 10, 0.92) 0%, rgba(14, 18, 30, 0.98) 100%);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.45), 0 0 14px rgba(251, 191, 36, 0.18);
}

.palmares-cup-item.locked {
    opacity: 0.55;
    filter: grayscale(60%);
}

.palmares-cup-img {
    width: 48px !important;
    height: 48px !important;
    max-width: 48px !important;
    max-height: 48px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.65));
    transition: transform 0.25s ease;
    margin-bottom: 2px;
}

.palmares-cup-item:hover .palmares-cup-img {
    transform: scale(1.1);
}

.palmares-cup-item img[src*="estrella"],
.palmares-cup-img[src*="estrella"] {
    transform: scale(1.7) !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.85)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7)) !important;
}

.palmares-cup-item:hover img[src*="estrella"],
.palmares-cup-item:hover .palmares-cup-img[src*="estrella"] {
    transform: scale(1.85) !important;
}

.palmares-cup-item strong {
    font-size: 0.74rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
    line-height: 1.2;
}

.palmares-cup-item span {
    font-size: 0.62rem;
    font-weight: 800;
    color: var(--text-muted);
    line-height: 1.2;
}

.palmares-cup-item.unlocked span {
    color: #fde047;
}

[data-theme="light"] .palmares-counter-badge {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #b45309 !important;
}
[data-theme="light"] .palmares-cup-item {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .palmares-cup-item strong {
    color: #0f172a !important;
}
[data-theme="light"] .palmares-cup-item.unlocked {
    background: linear-gradient(145deg, #fffbeb 0%, #ffffff 100%) !important;
    border-color: #f59e0b !important;
    box-shadow: 0 4px 14px rgba(217, 119, 6, 0.15) !important;
}

@media (max-width: 900px) {
    .torneo-tiers-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 10px !important;
    }
    .palmares-cups-row {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 8px !important;
    }
}

@media (max-width: 580px) {
    .torneo-tiers-grid {
        grid-template-columns: 1fr !important;
    }
}

.tier-status {
    font-size: 0.60rem;
    font-weight: 800;
}
.tier-status.ready { color: #00ff77; }
.tier-status.locked { color: #94a3b8; }

.tier-icon-wrap {
    width: 60px;
    height: 60px;
    margin: 4px 0 8px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.tier-cup-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.6));
}

/* 👑 Calibración específica del ícono Copa del Mundo */
#tier-card-mundial .tier-cup-img {
    transform: scale(2.55); /* 👈 Aumentá (1.25, 1.35) para agrandar o reducí (0.95) para achicar */
    filter: drop-shadow(0 0 12px rgba(0, 255, 119, 0.6)) drop-shadow(0 4px 8px rgba(0, 0, 0, 0.7));
}

.tier-title {
    font-size: 1rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0 0 6px;
    text-transform: uppercase;
    letter-spacing: -0.2px;
}

.tier-desc {
    font-size: 0.72rem;
    color: var(--text-muted);
    line-height: 1.35;
    margin: 0 0 10px;
    flex: 1;
}

.tier-reward-pill {
    font-size: 0.64rem;
    font-weight: 800;
    color: #fde047;
    background: rgba(234, 179, 8, 0.12);
    border: 1px solid rgba(234, 179, 8, 0.35);
    padding: 3px 8px;
    border-radius: 8px;
    margin-bottom: 12px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

/* 🏆 BOTONES DISPUTAR COPA / TORNEO (ESTILO CYBER 3D) */
.tier-action-btn {
    width: 100% !important;
    height: 31px !important;            /* 👈 Reducido de 36px a 31px (tanto PC como celu) */
    min-height: 31px !important;
    padding: 0 6px !important;          /* 👈 Menos relleno lateral para dar espacio al texto */
    font-size: 0.64rem !important;      /* 👈 Tipografía ajustada para que entre en 1 sola línea */
    font-weight: 900 !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;     /* 👈 Prohibición estricta de saltar a 2 líneas */
    border-radius: 10px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 5px !important;
    text-transform: uppercase !important;
    box-sizing: border-box !important;
    position: relative !important;
    overflow: hidden !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
}

.tier-action-btn span {
    white-space: nowrap !important;
}

.tier-action-btn::after {
    display: none !important;
}

/* 🟢 Estado Activo / Disponible (Disputar Copa) */
.tier-action-btn.primary,
.tier-action-btn:not([disabled]) {
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.25) 0%, transparent 65%),
        linear-gradient(135deg, rgba(10, 42, 26, 0.95) 0%, rgba(5, 24, 15, 0.98) 100%) !important;
    border: 1.5px solid #00ff77 !important;
    border-top: 2px solid #a7f3d0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 255, 119, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.25) !important;
    cursor: pointer !important;
}

.tier-action-btn.primary i,
.tier-action-btn:not([disabled]) i {
    color: #00ff77 !important;
    font-size: 0.95rem !important;
    filter: drop-shadow(0 0 6px rgba(0, 255, 119, 0.75));
    transition: transform 0.2s ease;
}

.tier-action-btn.primary:hover,
.tier-action-btn:not([disabled]):hover {
    transform: translateY(-2px) scale(1.02) !important;
    border-color: #69ff9c !important;
    box-shadow: 0 6px 20px 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;
}

.tier-action-btn.primary:hover i,
.tier-action-btn:not([disabled]):hover i {
    transform: translateX(3px);
}

.tier-action-btn.primary:active,
.tier-action-btn:not([disabled]):active {
    transform: translateY(1px) scale(0.98) !important;
}

/* 🔒 Estado Bloqueado */
.tier-action-btn.secondary[disabled],
.tier-action-btn:disabled {
    background: linear-gradient(145deg, rgba(16, 22, 34, 0.85) 0%, rgba(10, 14, 22, 0.95) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.12) !important;
    border-top: 1.5px solid rgba(255, 255, 255, 0.22) !important;
    color: #64748b !important;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4), inset 0 1px 0 rgba(255, 255, 255, 0.08) !important;
    cursor: not-allowed !important;
    opacity: 0.85 !important;
}

.tier-action-btn.secondary[disabled] i,
.tier-action-btn:disabled i {
    color: #64748b !important;
    font-size: 0.90rem !important;
}

/* ☀️️ Modo Claro */
[data-theme="light"] .tier-action-btn.primary,
[data-theme="light"] .tier-action-btn:not([disabled]) {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%) !important;
    border: 1.5px solid #007a38 !important;
    border-top: 2px solid #86efac !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.32) !important;
}

[data-theme="light"] .tier-action-btn.secondary[disabled],
[data-theme="light"] .tier-action-btn:disabled {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #94a3b8 !important;
    box-shadow: none !important;
}

@media (max-width: 768px) {
  .torneo-modal-header {
    flex-direction: column !important;
    text-align: center !important;
    gap: 6px !important;
  }
  .torneo-header-text {
    align-items: center !important;
    text-align: center !important;
  }
  .torneo-tiers-grid {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .torneo-copas-box {
    padding: 16px 14px !important;
  }
  .tier-action-btn {
    height: 32px !important;
    min-height: 32px !important;
    font-size: 0.72rem !important;
  }
}

[data-theme="light"] .btn-torneo-locked {
    background: #f1f5f9 !important;
    border-color: #cbd5e1 !important;
    color: #64748b !important;
}
[data-theme="light"] .torneo-tier-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .torneo-modal-title,
[data-theme="light"] .tier-title {
    color: #04160a !important;
}
[data-theme="light"] .btn-torneo-ready {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%) !important;
    border: 1.5px solid #ca8a04 !important;
    border-top: 2px solid #facc15 !important;
    color: #713f12 !important;
    box-shadow: 0 4px 14px rgba(202, 138, 4, 0.25) !important;
}
[data-theme="light"] .btn-torneo-ready:hover {
    background: linear-gradient(135deg, #fef9c3 0%, #fef08a 100%) !important;
    border-color: #a16207 !important;
    box-shadow: 0 6px 18px rgba(202, 138, 4, 0.35) !important;
}
[data-theme="light"] .tier-reward-pill {
    color: #92400e !important;
    background: #fef9c3 !important;
    border-color: #fde047 !important;
}
[data-theme="light"] .tier-status.ready {
    color: #15803d !important;
}
[data-theme="light"] .tier-desc {
    color: #475569 !important;
}
[data-theme="light"] .tier-badge.tier-1 { background: #ffedd5 !important; color: #9a3412 !important; border-color: #fed7aa !important; }
[data-theme="light"] .tier-badge.tier-2 { background: #f1f5f9 !important; color: #334155 !important; border-color: #cbd5e1 !important; }
[data-theme="light"] .tier-badge.tier-3 { background: #fef9c3 !important; color: #854d0e !important; border-color: #fde047 !important; }
[data-theme="light"] .tier-badge.tier-4 { background: #dcfce7 !important; color: #166534 !important; border-color: #86efac !important; text-shadow: none !important; }

/* ========================================================
   ⚔️ MODAL SIMULADOR DE PARTIDO: LAYOUT SIMÉTRICO Y BOTÓN CYBER
   ======================================================== */
.simulador-modal-box {
    max-width: 1420px !important;
    width: 95% !important;
    height: auto !important;
    max-height: 94vh !important;
    padding: 24px 30px 22px !important;
    border-radius: 24px !important;
    position: relative !important;
    display: grid !important;
    grid-template-columns: 1fr 702px !important;
    grid-template-rows: auto 1fr auto !important;
    column-gap: 32px !important;
    row-gap: 16px !important;
    align-items: start !important;
    overflow-y: auto !important;
    box-sizing: border-box !important;
    scrollbar-width: thin;
    scrollbar-color: #1e293b #060a12;
}

/* 🖤 Barra de scroll oscura para el Simulador */
.simulador-modal-box::-webkit-scrollbar {
    width: 8px;
}
.simulador-modal-box::-webkit-scrollbar-track {
    background: #060a12;
    border-radius: 8px;
}
.simulador-modal-box::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.simulador-modal-box::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.sim-header {
    grid-column: 1 / -1 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
    gap: 4px;
    margin-bottom: 2px;
}

.sim-stage-badge {
    align-self: center !important;
    margin: 0 auto !important;
    background: rgba(0, 255, 119, 0.16);
    border: 1px solid rgba(0, 255, 119, 0.45);
    color: #00ff77;
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 2px 10px;
    border-radius: 20px;
    text-shadow: 0 0 8px rgba(0, 255, 119, 0.5);
}

.sim-tournament-name {
    font-size: 1.25rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.3px;
    text-transform: uppercase;
    text-align: center !important;
    width: 100% !important;
}

/* 🏟️ LAYOUT EN 2 COLUMNAS (PC: display: contents ubica cancha arriba y botón debajo en columna 2) */
.sim-match-layout {
    display: contents !important;
}

.sim-left-column {
    grid-column: 1 !important;
    grid-row: 2 / span 2 !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    min-width: 0 !important;
}

.sim-right-column {
    grid-column: 2 !important;
    grid-row: 2 !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: flex-start !important;
    width: 100% !important;
    margin-top: 0 !important;
}

/* 🎮 BOTÓN DE ACCIÓN: CONSOLA CYBER JUSTO DEBAJO DE LA CANCHA */
.sim-actions-footer {
    grid-column: 2 !important;
    grid-row: 3 !important;
    width: 100% !important;
    display: flex !important;
    justify-content: center !important;
    align-items: center !important;
    margin-top: 0 !important;
    box-sizing: border-box !important;
}

.sim-main-btn {
    width: 100% !important;
    max-width: 702px !important;
    height: 48px !important;
    min-height: 48px !important;
    padding: 0 20px !important;
    border-radius: 14px !important;
    font-size: 0.90rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.8px !important;
    text-transform: uppercase !important;
    color: #ffffff !important;
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.25) 0%, transparent 65%),
        linear-gradient(135deg, rgba(14, 38, 26, 0.95) 0%, rgba(8, 20, 14, 0.98) 100%) !important;
    border: 1.5px solid #00ff77 !important;
    border-top: 2px solid #a7f3d0 !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.22) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-sizing: border-box !important;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8) !important;
    position: relative !important;
    overflow: hidden !important;
}

.sim-main-btn i {
    color: #00ff77 !important;
    font-size: 0.95rem !important;
    filter: drop-shadow(0 0 6px rgba(0, 255, 119, 0.8)) !important;
    transition: transform 0.2s ease;
}

.sim-main-btn:hover:not(:disabled) {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #69ff9c !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 24px rgba(0, 255, 119, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.35) !important;
}

.sim-main-btn:active:not(:disabled) {
    transform: translateY(1px) scale(0.98) !important;
}

/* Estado de partido en curso / deshabilitado */
.sim-main-btn:disabled,
.sim-main-btn.sim-running {
    background: 
        radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.15) 0%, transparent 65%),
        linear-gradient(135deg, rgba(12, 26, 36, 0.92) 0%, rgba(8, 14, 22, 0.98) 100%) !important;
    border: 1.5px solid rgba(0, 255, 119, 0.4) !important;
    border-top: 1.5px solid rgba(110, 255, 180, 0.65) !important;
    color: #a7f3d0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45), 0 0 12px rgba(0, 255, 119, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    cursor: default !important;
    opacity: 0.96 !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
}

/* 🏆 Soporte simétrico para Recorrido del Campeón */
.simulador-modal-box:has(.campeon-view) {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
}
.simulador-modal-box:has(.campeon-view) .sim-actions-footer {
    margin-top: 12px !important;
    max-width: 520px !important;
}

/* 🏟️ TABLERO DE RESULTADOS */
.sim-scoreboard-card {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 16px;
    width: 100%;
    background: linear-gradient(165deg, rgba(16, 26, 44, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.14);
    border-radius: 20px;
    padding: 16px 20px;
    box-sizing: border-box;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.65), inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

/* ========================================================
   📊 BARRA TÁCTICA DE ESTADÍSTICAS EN VIVO
   ======================================================== */
.sim-stats-live-bar {
    width: 100%;
    background: linear-gradient(165deg, rgba(12, 20, 34, 0.92) 0%, rgba(6, 10, 18, 0.96) 100%);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 14px;
    padding: 7px 12px;
    display: flex;
    flex-direction: column;
    gap: 5px;
    box-sizing: border-box;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.45);
}

.sim-possession-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.sim-pos-num {
    font-size: 0.68rem;
    font-weight: 900;
    min-width: 32px;
    font-variant-numeric: tabular-nums;
}
.sim-pos-num.user { color: #00ff77; text-align: left; }
.sim-pos-num.rival { color: #38bdf8; text-align: right; }

.sim-pos-bar-track {
    flex: 1;
    height: 5px;
    border-radius: 6px;
    background: rgba(255, 255, 255, 0.08);
    display: flex;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.6);
}

.sim-pos-bar-fill-user {
    background: linear-gradient(90deg, #00ff77 0%, #00e676 100%);
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.6);
    transition: width 0.45s ease;
}

.sim-pos-bar-fill-rival {
    background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.6);
    transition: width 0.45s ease;
}

.sim-mini-metrics-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 0 4px;
}

.sim-metric-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 0.66rem;
    font-weight: 800;
}

.metric-val.user { color: #00ff77; }
.metric-val.rival { color: #38bdf8; }
.metric-lbl {
    font-size: 0.54rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.4px;
    font-weight: 800;
}
.sim-metric-sep {
    color: rgba(255, 255, 255, 0.15);
    font-size: 0.7rem;
}

/* Incidencias especiales en la línea de tiempo */
.sim-event-row.corner {
    background: rgba(251, 191, 36, 0.12);
    border-left: 3px solid #fbbf24;
    color: #fef08a;
}
.sim-event-row.falta {
    background: rgba(249, 115, 22, 0.12);
    border-left: 3px solid #f97316;
    color: #ffedd5;
}
.sim-event-row.atajada {
    background: rgba(56, 189, 248, 0.12);
    border-left: 3px solid #38bdf8;
    color: #e0f2fe;
}
.sim-event-row.entretiempo {
    background: linear-gradient(90deg, rgba(234, 179, 8, 0.2) 0%, rgba(14, 24, 40, 0.95) 100%);
    border: 1px solid rgba(234, 179, 8, 0.45);
    color: #fde047;
    font-weight: 900;
    justify-content: center;
    text-align: center;
    letter-spacing: 0.8px;
    text-transform: uppercase;
}
.sim-event-row.jugada {
    background: rgba(148, 163, 184, 0.08);
    border-left: 3px solid #64748b;
    color: #e2e8f0;
}

.sim-team {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 4px;
    min-width: 0;
}

.sim-team-shield-wrap {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    background: rgba(8, 14, 24, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
}

.sim-team.user .sim-team-shield-wrap {
    border-color: #00ff77;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.35);
}

.sim-team.rival .sim-team-shield-wrap {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.sim-team-shield {
    width: 30px;
    height: 30px;
    object-fit: contain;
}

.sim-team-name {
    font-size: 0.76rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

.sim-team-ovr {
    font-size: 0.58rem;
    font-weight: 800;
    color: var(--text-muted);
}

.sim-center-score {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3px;
    flex-shrink: 0;
}

.sim-score-digits {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.85rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.sim-score-sep {
    color: var(--text-muted);
    font-size: 1.4rem;
}

.sim-match-clock {
    font-size: 0.62rem;
    font-weight: 900;
    color: #fbbf24;
    background: rgba(251, 191, 36, 0.16);
    border: 1px solid rgba(251, 191, 36, 0.4);
    padding: 1px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* ⏱️ LÍNEA DE TIEMPO / RELATOS */
.sim-events-wrapper {
    width: 100%;
    flex: 1;
    background: rgba(8, 12, 22, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
}

.sim-events-scroll {
    max-height: 240px;
    min-height: 140px;
    flex: 1;
    overflow-y: auto !important;
    display: flex;
    flex-direction: column;
    gap: 6px;
    scrollbar-width: thin;
    scrollbar-color: #1e293b #060a12;
}

.sim-events-scroll::-webkit-scrollbar {
    width: 6px;
}
.sim-events-scroll::-webkit-scrollbar-track {
    background: rgba(0, 0, 0, 0.3);
    border-radius: 6px;
}
.sim-events-scroll::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 6px;
}
.sim-events-scroll::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.sim-event-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 140px;
    color: var(--text-muted);
    text-align: center;
    font-size: 0.78rem;
    line-height: 1.45;
    gap: 8px;
    padding: 0 16px;
}
.sim-event-placeholder i {
    font-size: 1.8rem;
    color: var(--accent-color);
}

.sim-event-row {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.76rem;
    line-height: 1.35;
    background: rgba(255, 255, 255, 0.03);
    animation: simEventFadeIn 0.22s ease-out;
    will-change: opacity, transform;
}

@keyframes simEventFadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.sim-event-row.gol_user {
    background: rgba(0, 255, 119, 0.12);
    border-left: 3px solid #00ff77;
    color: #ffffff;
}

.sim-event-row.gol_rival {
    background: rgba(255, 71, 87, 0.12);
    border-left: 3px solid #ff4757;
    color: #ffffff;
}

.sim-event-row.penales {
    background: rgba(251, 191, 36, 0.15);
    border-left: 3px solid #fbbf24;
    color: #fde68a;
}

.sim-ev-min {
    font-weight: 900;
    color: #fbbf24;
    min-width: 26px;
}

.sim-ev-text {
    flex: 1;
}

/* ========================================================
   🏟️ ARENA DEL ESTADIO NOCTURNO (TRIBUNAS SIMÉTRICAS A 26PX)
   ======================================================== */
.sim-stadium-arena {
    position: relative;
    width: 100%;
    max-width: 702px;
    height: 452px;
    background: radial-gradient(circle at 50% 50%, #0c1322 0%, #04070f 85%, #020307 100%);
    border-radius: 24px;
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    box-shadow: 
        0 20px 50px rgba(0, 0, 0, 0.95),
        inset 0 0 35px rgba(0, 0, 0, 0.9),
        inset 0 0 0 1px rgba(255, 255, 255, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    margin: 0 auto;
    flex-shrink: 0;
    box-sizing: border-box;
    user-select: none;
    transform: translateZ(0);
    will-change: transform;
    contain: paint;
}

/* 🔦 4 FOCOS EXTERIORES EN VÉRTICES CON TORRE METÁLICA Y HAZ VOLUMÉTRICO */
.sim-floodlight {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #d1fae5 55%, #10b981 100%);
    border: 2px solid #a7f3d0;
    box-shadow: 
        0 0 12px #ffffff,
        0 0 22px rgba(0, 255, 119, 0.85),
        inset 0 0 3px #ffffff;
    z-index: 14;
    pointer-events: none;
    transform: translateZ(0);
    will-change: transform;
}

/* Base / torre de soporte estructural del foco */
.sim-floodlight::before {
    content: '';
    position: absolute;
    top: -4px;
    left: -4px;
    right: -4px;
    bottom: -4px;
    border-radius: 50%;
    background: radial-gradient(circle, #334155 0%, #0f172a 75%);
    border: 1px solid rgba(255, 255, 255, 0.25);
    z-index: -1;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.9);
}

.sim-floodlight::after {
    content: '';
    position: absolute;
    width: 160px;
    height: 160px;
    border-radius: 50%;
    pointer-events: none;
    opacity: 0.32;
    transform: translateZ(0);
    will-change: transform;
}

.sim-floodlight.top-left { top: 6px; left: 6px; }
.sim-floodlight.top-left::after {
    top: -10px; left: -10px;
    background: radial-gradient(circle at 12% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 119, 0.30) 35%, rgba(0, 255, 119, 0.08) 60%, transparent 75%);
}

.sim-floodlight.top-right { top: 6px; right: 6px; }
.sim-floodlight.top-right::after {
    top: -10px; right: -10px;
    background: radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 119, 0.30) 35%, rgba(0, 255, 119, 0.08) 60%, transparent 75%);
}

.sim-floodlight.bottom-left { bottom: 6px; left: 6px; }
.sim-floodlight.bottom-left::after {
    bottom: -10px; left: -10px;
    background: radial-gradient(circle at 12% 88%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 119, 0.30) 35%, rgba(0, 255, 119, 0.08) 60%, transparent 75%);
}

.sim-floodlight.bottom-right { bottom: 6px; right: 6px; }
.sim-floodlight.bottom-right::after {
    bottom: -10px; right: -10px;
    background: radial-gradient(circle at 88% 88%, rgba(255, 255, 255, 0.95) 0%, rgba(0, 255, 119, 0.30) 35%, rgba(0, 255, 119, 0.08) 60%, transparent 75%);
}

/* 🏟 TRIBUNAS HORIZONTALES: RELIEVE 3D, BUTACAS, VOMITORIOS Y VALLAS LED */
.sim-stands {
    position: absolute;
    pointer-events: none;
    z-index: 2;
    box-sizing: border-box;
}

/* TRIBUNA SUPERIOR (PLATEA ALTA) */
.sim-stands.top {
    top: 0;
    left: 26px;
    right: 26px;
    height: 26px;
    background-color: #0b111c;
    background-image: 
        /* Escaleras de evacuación / vomitorios amarillos a intervalos regulares */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 78px,
            rgba(234, 179, 8, 0.42) 78px,
            rgba(234, 179, 8, 0.42) 81px,
            transparent 81px,
            transparent 84px
        ),
        /* Micro-mosaico de butacas (patrón de asientos) */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 4px,
            transparent 4px,
            transparent 8px
        ),
        /* Gradas 3D escalonadas con luz de asiento y sombra de escalón */
        repeating-linear-gradient(
            180deg,
            rgba(255, 255, 255, 0.14) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(14, 23, 38, 0.9) 2px,
            rgba(4, 7, 14, 0.95) 5px
        );
    box-shadow: 
        inset 0 8px 12px rgba(0, 0, 0, 0.95),
        inset 0 1px 1px rgba(255, 255, 255, 0.15);
}

/* Valla publicitaria LED dinámica en borde inferior de la tribuna superior */
.sim-stands.top::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #00f0ff 0%,
        #00ff77 22%,
        #3b82f6 45%,
        #f59e0b 68%,
        #ec4899 88%,
        #00f0ff 100%
    );
    background-size: 200% 100%;
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.65), 0 1px 3px rgba(0, 0, 0, 0.8);
    border-top: 0.5px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
    animation: simLedShimmer 8s linear infinite;
}

/* TRIBUNA INFERIOR (PLATEA BAJA CON BANCOS DE SUPLENTES) */
.sim-stands.bottom {
    bottom: 0;
    left: 26px;
    right: 26px;
    height: 26px;
    background-color: #0b111c;
    background-image: 
        /* Escaleras amarillas */
        repeating-linear-gradient(
            90deg,
            transparent 0px,
            transparent 78px,
            rgba(234, 179, 8, 0.42) 78px,
            rgba(234, 179, 8, 0.42) 81px,
            transparent 81px,
            transparent 84px
        ),
        /* Micro-mosaico de butacas */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.03) 0px,
            rgba(255, 255, 255, 0.03) 4px,
            transparent 4px,
            transparent 8px
        ),
        /* Gradas 3D escalonadas hacia arriba */
        repeating-linear-gradient(
            0deg,
            rgba(255, 255, 255, 0.14) 0px,
            rgba(255, 255, 255, 0.04) 1px,
            rgba(14, 23, 38, 0.9) 2px,
            rgba(4, 7, 14, 0.95) 5px
        );
    box-shadow: 
        inset 0 -8px 12px rgba(0, 0, 0, 0.95),
        inset 0 -1px 1px rgba(255, 255, 255, 0.15);
}

/* Valla publicitaria LED dinámica en borde superior de tribuna inferior */
.sim-stands.bottom::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(
        90deg,
        #ec4899 0%,
        #f59e0b 22%,
        #3b82f6 45%,
        #00ff77 68%,
        #00f0ff 88%,
        #ec4899 100%
    );
    background-size: 200% 100%;
    box-shadow: 0 0 8px rgba(0, 240, 255, 0.65), 0 -1px 3px rgba(0, 0, 0, 0.8);
    border-bottom: 0.5px solid rgba(255, 255, 255, 0.6);
    z-index: 3;
    animation: simLedShimmer 8s linear infinite reverse;
}

/* BANCOS DE SUPLENTES (DUGOUTS) EN EL CENTRO DE LA TRIBUNA INFERIOR */
.sim-stands.bottom::before {
    content: '';
    position: absolute;
    top: 0;
    left: calc(50% - 55px);
    width: 110px;
    height: 11px;
    background: 
        linear-gradient(90deg, 
            rgba(0, 255, 119, 0.3) 0%, rgba(0, 255, 119, 0.1) 46%, 
            transparent 46%, transparent 54%, 
            rgba(56, 189, 248, 0.1) 54%, rgba(56, 189, 248, 0.3) 100%
        ),
        rgba(8, 14, 26, 0.94);
    border: 1px solid rgba(255, 255, 255, 0.32);
    border-top: none;
    border-radius: 0 0 7px 7px;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.8), inset 0 0 6px rgba(0, 255, 119, 0.2);
    z-index: 4;
}

/* CABECERA IZQUIERDA (POPULAR LOCAL / TU ONCE) */
.sim-stands.left {
    top: 26px;
    bottom: 26px;
    left: 0;
    width: 26px;
    background-color: #080d16;
    background-image: 
        /* Tirantes / Banderas verticales de hinchada local */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 48px,
            rgba(0, 255, 119, 0.22) 48px,
            rgba(0, 255, 119, 0.22) 52px,
            transparent 52px,
            transparent 60px
        ),
        /* Escalones de tribuna vertical con volumen 3D */
        repeating-linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(12, 19, 32, 0.9) 2px,
            rgba(4, 7, 12, 0.95) 5px
        );
    box-shadow: 
        inset 8px 0 12px rgba(0, 0, 0, 0.95),
        inset 1px 0 1px rgba(255, 255, 255, 0.15);
}

.sim-stands.left::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    right: 0;
    width: 3px;
    background: linear-gradient(180deg, #00ff77 0%, #00f0ff 50%, #00ff77 100%);
    box-shadow: 0 0 8px rgba(0, 255, 119, 0.55);
    z-index: 3;
}

/* CABECERA DERECHA (POPULAR VISITANTE / RIVAL) */
.sim-stands.right {
    top: 26px;
    bottom: 26px;
    right: 0;
    width: 26px;
    background-color: #080d16;
    background-image: 
        /* Banderas de hinchada visitante */
        repeating-linear-gradient(
            180deg,
            transparent 0px,
            transparent 48px,
            rgba(56, 189, 248, 0.22) 48px,
            rgba(56, 189, 248, 0.22) 52px,
            transparent 52px,
            transparent 60px
        ),
        /* Escalones de tribuna vertical invertidos */
        repeating-linear-gradient(
            270deg,
            rgba(255, 255, 255, 0.12) 0px,
            rgba(255, 255, 255, 0.03) 1px,
            rgba(12, 19, 32, 0.9) 2px,
            rgba(4, 7, 12, 0.95) 5px
        );
    box-shadow: 
        inset -8px 0 12px rgba(0, 0, 0, 0.95),
        inset -1px 0 1px rgba(255, 255, 255, 0.15);
}

.sim-stands.right::after {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    background: linear-gradient(180deg, #38bdf8 0%, #818cf8 50%, #38bdf8 100%);
    box-shadow: 0 0 8px rgba(56, 189, 248, 0.55);
    z-index: 3;
}

/* 🔄 CODOS CURVOS DE ESQUINAS MEJORADOS CON ARCOS CONCÉNTRICOS */
.sim-corner-stand {
    position: absolute;
    width: 26px;
    height: 26px;
    pointer-events: none;
    z-index: 2;
    background-color: #0a0f19;
    box-shadow: inset 0 0 8px rgba(0, 0, 0, 0.9);
}

.sim-corner-stand.top-left {
    top: 0; left: 0;
    border-top-left-radius: 24px;
    background-image: repeating-radial-gradient(
        circle at 100% 100%,
        rgba(255, 255, 255, 0.12) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        rgba(12, 19, 32, 0.95) 2px,
        rgba(4, 7, 12, 0.98) 5px
    );
}

.sim-corner-stand.top-right {
    top: 0; right: 0;
    border-top-right-radius: 24px;
    background-image: repeating-radial-gradient(
        circle at 0% 100%,
        rgba(255, 255, 255, 0.12) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        rgba(12, 19, 32, 0.95) 2px,
        rgba(4, 7, 12, 0.98) 5px
    );
}

.sim-corner-stand.bottom-left {
    bottom: 0; left: 0;
    border-bottom-left-radius: 24px;
    background-image: repeating-radial-gradient(
        circle at 100% 0%,
        rgba(255, 255, 255, 0.12) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        rgba(12, 19, 32, 0.95) 2px,
        rgba(4, 7, 12, 0.98) 5px
    );
}

.sim-corner-stand.bottom-right {
    bottom: 0; right: 0;
    border-bottom-right-radius: 24px;
    background-image: repeating-radial-gradient(
        circle at 0% 0%,
        rgba(255, 255, 255, 0.12) 0px,
        rgba(255, 255, 255, 0.03) 1px,
        rgba(12, 19, 32, 0.95) 2px,
        rgba(4, 7, 12, 0.98) 5px
    );
}

@keyframes simLedShimmer {
    0% { background-position: 0% 0%; }
    100% { background-position: 200% 0%; }
}

/* 🏷️ INSIGNIAS DE EQUIPOS: DESPEJADAS DE LAS LUCES EN ESQUINAS */
.sim-pitch-team-badge {
    position: absolute;
    top: 5px;
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    z-index: 15;
    padding: 2px 10px;
    border-radius: 6px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    line-height: 1.15;
}

.sim-pitch-team-badge.left {
    left: 26px;
    background: rgba(8, 14, 26, 0.94);
    border: 1px solid rgba(0, 255, 119, 0.55);
    color: #00ff77;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

.sim-pitch-team-badge.right {
    right: 26px;
    background: rgba(8, 14, 26, 0.94);
    border: 1px solid rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.85);
}

/* 🟢 CAMPO DE JUEGO HORIZONTAL (TRANSMISIÓN DE TV) */
.sim-pitch-2d-horizontal {
    position: relative;
    width: 650px;
    height: 400px;
    background: repeating-linear-gradient(
        90deg,
        #0b2315 0px,
        #0b2315 28px,
        #071a0f 28px,
        #071a0f 56px
    );
    border: 1.5px solid rgba(255, 255, 255, 0.85);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 
        0 0 0 2.5px #050a12,
        0 0 0 4.5px rgba(0, 255, 119, 0.7),
        0 0 16px rgba(0, 255, 119, 0.35),
        inset 0 0 20px rgba(0, 0, 0, 0.7);
    box-sizing: border-box;
    user-select: none;
    flex-shrink: 0;
    z-index: 5;
}

.sim-pitch-lines {
    position: absolute;
    inset: 0;
    pointer-events: none;
}

/* ⛳ ARCOS DE CÓRNER */
.sim-pitch-corner-arc {
    position: absolute;
    width: 12px;
    height: 12px;
    border: 1.5px solid rgba(255, 255, 255, 0.3);
}
.sim-pitch-corner-arc.top-left { top: 0; left: 0; border-top: none; border-left: none; border-radius: 0 0 12px 0; }
.sim-pitch-corner-arc.top-right { top: 0; right: 0; border-top: none; border-right: none; border-radius: 0 0 0 12px; }
.sim-pitch-corner-arc.bottom-left { bottom: 0; left: 0; border-bottom: none; border-left: none; border-radius: 0 12px 0 0; }
.sim-pitch-corner-arc.bottom-right { bottom: 0; right: 0; border-bottom: none; border-right: none; border-radius: 12px 0 0 0; }

/* Línea de medio campo vertical */
.sim-pitch-line-center-vert {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 1.5px;
    background: rgba(255, 255, 255, 0.22);
    transform: translateX(-50%);
}

/* Círculo central */
.sim-pitch-circle-center {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 86px;
    height: 86px;
    border: 1.5px solid rgba(255, 255, 255, 0.22);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

/* Áreas de arquero laterales (Proporciones reglamentarias) */
.sim-pitch-box-left {
    position: absolute;
    top: 50%;
    left: 0;
    width: 16%;
    height: 52%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-left: none;
    transform: translateY(-50%);
    pointer-events: none;
}

.sim-pitch-box-right {
    position: absolute;
    top: 50%;
    right: 0;
    width: 16%;
    height: 52%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    border-right: none;
    transform: translateY(-50%);
    pointer-events: none;
}

/* Área chica reglamentaria */
.sim-pitch-box-left::after,
.sim-pitch-box-right::after {
    content: '';
    position: absolute;
    top: 50%;
    width: 36%;
    height: 48%;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    transform: translateY(-50%);
    pointer-events: none;
}
.sim-pitch-box-left::after {
    left: 0;
    border-left: none;
}
.sim-pitch-box-right::after {
    right: 0;
    border-right: none;
}

/* 🥅 ARCOS PROPORCIONALES (LÍNEAS FINAS Y ESCALADAS) */
.sim-pitch-goal {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 10px;
    height: 18%;
    z-index: 5;
    pointer-events: none;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

.sim-pitch-goal.left {
    left: 0;
    border-right: 1.5px solid rgba(255, 255, 255, 0.45);
}

.sim-pitch-goal.right {
    right: 0;
    border-left: 1.5px solid rgba(255, 255, 255, 0.45);
}

.sim-goal-netting {
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.03);
    transition: background 0.3s ease, box-shadow 0.3s ease;
}

.sim-goal-post {
    width: 100%;
    height: 1.5px;
    background: rgba(255, 255, 255, 0.5);
    box-shadow: none;
    border-radius: 1px;
    z-index: 6;
}

/* Sacudida luminosa de red en goles laterales */
.sim-pitch-goal.left.goal-hit-rival .sim-goal-netting {
    background: radial-gradient(circle, rgba(56, 189, 248, 0.7) 0%, rgba(56, 189, 248, 0.2) 100%) !important;
    box-shadow: 0 0 20px #38bdf8 !important;
    animation: netShakeH 0.45s ease;
}

.sim-pitch-goal.right.goal-hit-user .sim-goal-netting {
    background: radial-gradient(circle, rgba(0, 255, 119, 0.7) 0%, rgba(0, 255, 119, 0.2) 100%) !important;
    box-shadow: 0 0 20px #00ff77 !important;
    animation: netShakeH 0.45s ease;
}

@keyframes netShakeH {
    0%, 100% { transform: scale(1); }
    30% { transform: scale(1.15) translateX(2px); }
    60% { transform: scale(1.08) translateX(-1px); }
}

/* ========================================================
   ⚡ LIENZO TÁCTICO VECTORIAL Y BALÓN EN VIVO
   ======================================================== */
.sim-pitch-tactical-canvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    pointer-events: none;
    z-index: 4;
}

.sim-pitch-ball {
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    font-size: 0.70rem;
    line-height: 1;
    z-index: 10;
    pointer-events: none;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.9));
    transition: transform 0.2s ease;
    will-change: top, left;
}

.sim-pitch-ball.shooting {
    transform: translate(-50%, -50%) scale(1.22);
    filter: drop-shadow(0 0 10px #ffd700);
}

.sim-pitch-ball.in-net {
    transform: translate(-50%, -50%) scale(1.1);
    filter: drop-shadow(0 0 8px #ffffff);
}

.sim-pitch-tag {
    position: absolute;
    transform: translate(-50%, -50%);
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 3px 9px;
    border-radius: 7px;
    text-transform: uppercase;
    white-space: nowrap;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.22s ease, transform 0.22s ease;
    z-index: 15;
}
.sim-pitch-tag.visible { opacity: 1; transform: translate(-50%, -50%) scale(1.05); }
.sim-pitch-tag.user-tag { background: #00ff77; color: #000; box-shadow: 0 0 14px rgba(0, 255, 119, 0.8); }
.sim-pitch-tag.rival-tag { background: #ff4757; color: #fff; box-shadow: 0 0 14px rgba(255, 71, 87, 0.8); }
.sim-pitch-tag.neutral-tag { background: #fbbf24; color: #000; box-shadow: 0 0 14px rgba(251, 191, 36, 0.8); }

/* 📱 ADAPTACIÓN RESPONSIVE EN CELULARES (HORIZONTAL 100% VISIBLE) */
@media (max-width: 768px) {
    .simulador-modal-box {
        max-width: 96% !important;
        width: 96% !important;
        max-height: 94vh !important;
        padding: 10px 12px 10px !important;
        overflow-y: auto !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        gap: 6px !important;
    }

    /* 🏆 Ajuste de cabecera de liga en móvil */
    .lt-header {
        padding-right: 40px !important;
        margin-bottom: 10px !important;
        gap: 6px !important;
    }
    .lt-header-img {
        width: 32px !important;
        height: 32px !important;
    }
    .lt-header-info h2 {
        font-size: 0.85rem !important;
    }
    .lt-header-info p {
        font-size: 0.62rem !important;
    }
    .lt-btn-reiniciar-header {
        font-size: 0.60rem !important;
        padding: 3px 7px !important;
    }

    /* ⚔️ Centrado de partido y reducción de texto "En juego" en móvil */
    .sim-header {
        width: 100% !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        margin-bottom: 4px !important;
        gap: 2px !important;
    }
    .sim-tournament-name {
        font-size: 0.92rem !important;
        text-align: center !important;
        width: 100% !important;
    }
    .sim-stage-badge {
        font-size: 0.54rem !important;
        padding: 1px 7px !important;
        align-self: center !important;
        margin: 0 auto !important;
    }
    .sim-main-btn:disabled,
    .sim-main-btn.sim-running {
        font-size: 0.58rem !important;
        letter-spacing: 0.2px !important;
        padding: 0 6px !important;
        line-height: 1.15 !important;
    }

    .sim-match-layout {
        display: flex !important;
        flex-direction: column !important;
        gap: 6px !important;
        margin-bottom: 4px !important;
        width: 100% !important;
    }

    .sim-scoreboard-card {
        padding: 6px 10px !important;
        border-radius: 12px !important;
    }
    .sim-team-shield-wrap {
        width: 36px !important;
        height: 36px !important;
    }
    .sim-team-shield {
        width: 24px !important;
        height: 24px !important;
    }
    .sim-score-digits {
        font-size: 1.45rem !important;
    }
    .sim-team-name {
        font-size: 0.68rem !important;
        max-width: 80px !important;
    }

    .sim-events-wrapper {
        padding: 6px 10px !important;
        border-radius: 12px !important;
        margin-bottom: 0 !important;
        min-height: 48px !important;
        max-height: 52px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        overflow: hidden !important;
        box-sizing: border-box !important;
    }
    .sim-events-scroll {
        width: 100% !important;
        min-height: 36px !important;
        max-height: 40px !important;
        overflow: hidden !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        scrollbar-width: none !important;
        gap: 0 !important;
    }
    .sim-event-row {
        width: 100% !important;
        padding: 4px 8px !important;
        font-size: 0.72rem !important;
        line-height: 1.3 !important;
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        box-sizing: border-box !important;
    }
    .sim-event-placeholder {
        height: 36px !important;
        font-size: 0.70rem !important;
        flex-direction: row !important;
        gap: 6px !important;
        padding: 0 4px !important;
        line-height: 1.2 !important;
    }
    .sim-event-placeholder i {
        font-size: 1.1rem !important;
    }

    /* 🏟️ Cancha horizontal simétrica y despejada de focos en celular (20px) */
    .sim-stadium-arena {
        width: 100% !important;
        max-width: 324px !important;
        height: 208px !important;
        margin: 0 auto !important;
        border-radius: 18px !important;
    }
    .sim-floodlight {
        width: 8px !important;
        height: 8px !important;
    }
    .sim-floodlight::before {
        display: none !important;
    }
    .sim-floodlight::after {
        width: 72px !important;
        height: 72px !important;
        opacity: 0.24 !important;
    }
    .sim-pitch-2d-horizontal {
        width: 284px !important;
        height: 168px !important;
    }
    .sim-stands.top, .sim-stands.bottom {
        left: 20px !important;
        right: 20px !important;
        height: 20px !important;
    }
    .sim-stands.top::after, .sim-stands.bottom::after {
        height: 2px !important;
    }
    .sim-stands.bottom::before {
        width: 62px !important;
        height: 8px !important;
        left: calc(50% - 31px) !important;
    }
    .sim-stands.left, .sim-stands.right {
        top: 20px !important;
        bottom: 20px !important;
        width: 20px !important;
    }
    .sim-stands.left::after, .sim-stands.right::after {
        width: 2px !important;
    }
    .sim-corner-stand {
        width: 20px !important;
        height: 20px !important;
    }
    .sim-pitch-team-badge {
        font-size: 0.48rem !important;
        padding: 1px 6px !important;
        top: 3.5px !important;
    }
    .sim-pitch-team-badge.left {
        left: 20px !important;
    }
    .sim-pitch-team-badge.right {
        right: 20px !important;
    }

    .sim-pitch-goal {
        width: 6px !important;
        height: 18% !important;
    }

    .sim-goal-post {
        height: 1px !important;
    }

    .sim-pitch-goal {
        width: 6px !important;
        height: 18% !important;
    }

    .sim-goal-post {
        height: 1px !important;
    }

    /* 🏆 Adaptación móvil de Palmarés */
    .palmares-cup-img {
        width: 38px !important;
        height: 38px !important;
        max-width: 38px !important;
        max-height: 38px !important;
    }
    .palmares-cup-item img[src*="estrella"],
    .palmares-cup-img[src*="estrella"] {
        transform: scale(1.6) !important;
    }
    .palmares-cup-item {
        padding: 8px 4px !important;
        border-radius: 12px !important;
    }
    .palmares-cup-item strong {
        font-size: 0.66rem !important;
    }
    .palmares-cup-item span {
        font-size: 0.56rem !important;
    }

    .sim-actions-footer {
        margin-top: 6px !important;
        flex-shrink: 0 !important;
        width: 100% !important;
        display: flex !important;
        justify-content: center !important;
    }
    .sim-main-btn {
        width: 100% !important;
        max-width: 324px !important;
        height: 36px !important;
        min-height: 36px !important;
        font-size: 0.72rem !important;
        border-radius: 10px !important;
    }
}

/* ☀️ Modo Claro */
[data-theme="light"] .simulador-modal-box {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .sim-tournament-name,
[data-theme="light"] .sim-team-name,
[data-theme="light"] .sim-score-digits {
    color: #04160a !important;
}
[data-theme="light"] .sim-main-btn {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%) !important;
    border: 1.5px solid #007a38 !important;
    border-top: 2px solid #86efac !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.32) !important;
    text-shadow: none !important;
}
[data-theme="light"] .sim-main-btn i {
    color: #ffffff !important;
    filter: none !important;
}
[data-theme="light"] .sim-main-btn:disabled,
[data-theme="light"] .sim-main-btn.sim-running {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    color: #64748b !important;
    box-shadow: none !important;
}
[data-theme="light"] .sim-scoreboard-card,
[data-theme="light"] .sim-events-wrapper,
[data-theme="light"] .sim-stats-live-bar {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}
[data-theme="light"] .sim-stats-live-bar {
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .metric-lbl {
    color: #64748b !important;
}
[data-theme="light"] .sim-pos-num.user,
[data-theme="light"] .metric-val.user {
    color: #059669 !important;
}
[data-theme="light"] .sim-pos-num.rival,
[data-theme="light"] .metric-val.rival {
    color: #0284c7 !important;
}
[data-theme="light"] .sim-event-row {
    color: #334155 !important;
}
[data-theme="light"] .sim-pitch-2d-horizontal {
    background: repeating-linear-gradient(
        90deg,
        #dcfce7 0px,
        #dcfce7 24px,
        #bbf7d0 24px,
        #bbf7d0 48px
    ) !important;
    border-color: #86efac !important;
}
[data-theme="light"] .sim-pitch-line-center-vert,
[data-theme="light"] .sim-pitch-circle-center,
[data-theme="light"] .sim-pitch-box-left,
[data-theme="light"] .sim-pitch-box-right {
    border-color: rgba(22, 101, 52, 0.28) !important;
}
[data-theme="light"] .sim-pitch-line-center-vert {
    background: rgba(22, 101, 52, 0.28) !important;
}
[data-theme="light"] .sim-pitch-team-badge {
    color: rgba(22, 101, 52, 0.75) !important;
}

/* ========================================================
   🏟️ AMBIENTACIÓN ARQUITECTÓNICA DE ESTADIOS POR TORNEO (HORIZONTAL)
   ======================================================== */

/* 🥉 TIER 1: COPA NACIONAL */
.sim-stadium-arena.tier-nacional {
    background: radial-gradient(circle at 50% 50%, #0d121c 0%, #060910 85%, #030508 100%);
    border-color: rgba(205, 127, 50, 0.4);
}
.sim-stadium-arena.tier-nacional .sim-floodlight {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef08a 55%, #f59e0b 100%);
    border-color: #fbbf24;
    box-shadow: 0 0 10px #fef08a, 0 0 20px rgba(245, 158, 11, 0.6);
}
.sim-stadium-arena.tier-nacional .sim-floodlight::after {
    opacity: 0.30;
}
.sim-stadium-arena.tier-nacional .sim-stands.top::after,
.sim-stadium-arena.tier-nacional .sim-stands.bottom::after {
    background: linear-gradient(90deg, #f59e0b 0%, #10b981 25%, #3b82f6 50%, #f59e0b 75%, #ef4444 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.5);
}

/* 🥈 TIER 2: COPA CONTINENTAL */
.sim-stadium-arena.tier-continental {
    background: radial-gradient(circle at 50% 50%, #081329 0%, #040916 85%, #02040a 100%);
    border-color: rgba(41, 121, 255, 0.45);
}
.sim-stadium-arena.tier-continental .sim-floodlight {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #bfdbfe 55%, #3b82f6 100%);
    border-color: #93c5fd;
    box-shadow: 0 0 14px #ffffff, 0 0 24px rgba(41, 121, 255, 0.75);
}
.sim-stadium-arena.tier-continental .sim-stands.top::after,
.sim-stadium-arena.tier-continental .sim-stands.bottom::after {
    background: linear-gradient(90deg, #38bdf8 0%, #2563eb 25%, #818cf8 50%, #00f0ff 75%, #38bdf8 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(56, 189, 248, 0.65);
}

/* 🥇 TIER 3: MUNDIAL DE CLUBES */
.sim-stadium-arena.tier-mundial_clubes {
    background: radial-gradient(circle at 50% 50%, #091a2e 0%, #030814 85%, #010308 100%);
    border-color: rgba(234, 179, 8, 0.5);
}
.sim-stadium-arena.tier-mundial_clubes .sim-floodlight {
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #bae6fd 55%, #0284c7 100%);
    border-color: #38bdf8;
    box-shadow: 0 0 16px #ffffff, 0 0 28px rgba(56, 189, 248, 0.85);
}
.sim-stadium-arena.tier-mundial_clubes .sim-stands.top::after,
.sim-stadium-arena.tier-mundial_clubes .sim-stands.bottom::after {
    background: linear-gradient(90deg, #eab308 0%, #38bdf8 25%, #a855f7 50%, #00ff77 75%, #eab308 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.65);
}

/* 👑 TIER 4: COPA DEL MUNDO */
.sim-stadium-arena.tier-mundial {
    background: radial-gradient(circle at 50% 50%, #171208 0%, #0a0804 85%, #030201 100%);
    border: 2px solid rgba(255, 215, 0, 0.6);
}
.sim-stadium-arena.tier-mundial .sim-floodlight {
    width: 15px;
    height: 15px;
    background: radial-gradient(circle at 35% 35%, #ffffff 0%, #fef08a 55%, #eab308 100%);
    border-color: #fde047;
    box-shadow: 0 0 18px #ffffff, 0 0 30px rgba(255, 215, 0, 0.95);
}
.sim-stadium-arena.tier-mundial .sim-floodlight::after {
    opacity: 0.38;
}
.sim-stadium-arena.tier-mundial .sim-floodlight.top-left::after {
    background: radial-gradient(circle at 10% 10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.35) 45%, transparent 75%);
}
.sim-stadium-arena.tier-mundial .sim-floodlight.top-right::after {
    background: radial-gradient(circle at 90% 10%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.35) 45%, transparent 75%);
}
.sim-stadium-arena.tier-mundial .sim-floodlight.bottom-left::after {
    background: radial-gradient(circle at 10% 90%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.35) 45%, transparent 75%);
}
.sim-stadium-arena.tier-mundial .sim-floodlight.bottom-right::after {
    background: radial-gradient(circle at 90% 90%, rgba(255, 255, 255, 0.9) 0%, rgba(255, 215, 0, 0.35) 45%, transparent 75%);
}
.sim-stadium-arena.tier-mundial .sim-pitch-2d-horizontal {
    border: 1.5px solid rgba(255, 255, 255, 0.95);
    box-shadow: 
        0 0 0 2.5px #050a12,
        0 0 0 4.5px rgba(255, 215, 0, 0.85),
        0 0 22px rgba(255, 215, 0, 0.45),
        inset 0 0 22px rgba(0, 0, 0, 0.7);
}
.sim-stadium-arena.tier-mundial .sim-stands.top::after,
.sim-stadium-arena.tier-mundial .sim-stands.bottom::after {
    background: linear-gradient(90deg, #ffd700 0%, #ffffff 25%, #f59e0b 50%, #ffd700 75%, #ffffff 100%);
    background-size: 200% 100%;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.85);
}
.sim-stadium-arena.tier-mundial .sim-pitch-line-center-vert,
.sim-stadium-arena.tier-mundial .sim-pitch-circle-center {
    border-color: rgba(255, 215, 0, 0.35);
}
/* ⚡ PASTILLA RECOMPENSA DE SP EN 1 VS 1 */
.versus-sp-reward-pill {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    background: linear-gradient(135deg, rgba(0, 255, 119, 0.16) 0%, rgba(6, 36, 20, 0.92) 100%);
    border: 1.5px solid #00ff77;
    border-top: 1.5px solid #a7f3d0;
    color: #ffffff;
    font-size: 0.76rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    text-transform: uppercase;
    padding: 4px 14px;
    border-radius: 20px;
    margin: 4px auto 6px auto;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 16px rgba(0, 255, 119, 0.35);
    animation: bounceFun 0.45s ease;
}

.versus-sp-reward-pill i {
    color: #00ff77;
    font-size: 0.95rem;
    filter: drop-shadow(0 0 6px rgba(0, 255, 119, 0.8));
}
/* ========================================================
   ⚡ DOBLE CÍRCULO FINAL (PUNTOS + SP) Y TOOLTIP FLOTANTE
   ======================================================== */
.endgame-area-ring.dual-rings-row {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 18px !important;
    position: relative !important;
    margin: 4px auto 8px auto !important;
    width: 100% !important;
}

.sp-ring-wrapper {
    position: relative !important;
    cursor: pointer !important;
    outline: none !important;
}

/* 💬 GLOBO FLOTANTE INFORMATIVO DEL SP */
.sp-tooltip-bubble {
    position: absolute;
    bottom: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%) translateY(4px);
    width: 200px;
    background: linear-gradient(135deg, rgba(8, 22, 16, 0.96) 0%, rgba(4, 14, 10, 0.98) 100%);
    border: 1.5px solid #00ff77;
    border-top: 1.5px solid #a7f3d0;
    color: #ffffff;
    font-size: 0.70rem;
    font-weight: 700;
    line-height: 1.35;
    padding: 7px 11px;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.75), 0 0 16px rgba(0, 255, 119, 0.35);
    pointer-events: none;
    opacity: 0;
    visibility: hidden;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 1000;
}

.sp-tooltip-bubble::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 6px;
    border-style: solid;
    border-color: #00ff77 transparent transparent transparent;
}

/* Revelar al pasar el cursor o al tocar en celular */
.sp-ring-wrapper:hover .sp-tooltip-bubble,
.sp-ring-wrapper:focus .sp-tooltip-bubble,
.sp-ring-wrapper:active .sp-tooltip-bubble {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* ☀️ Modo Claro */
[data-theme="light"] .sp-tooltip-bubble {
    background: #ffffff !important;
    border-color: #00aa50 !important;
    color: #04160a !important;
    box-shadow: 0 8px 20px rgba(0, 170, 80, 0.25) !important;
}
[data-theme="light"] .sp-tooltip-bubble::after {
    border-color: #00aa50 transparent transparent transparent !important;
}
/* ========================================================
   👥 FICHAS TÁCTICAS 2D EN CANCHA (ESTILO FOOTBALL MANAGER)
   ======================================================== */
.sim-pitch-players {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 6;
}

.sim-dot {
    position: absolute;
    width: 13px;
    height: 13px;
    border-radius: 50%;
    transform: translate(-50%, -50%) translateZ(0);
    box-sizing: border-box;
    will-change: top, left;
    backface-visibility: hidden;
}

/* 🟢 Fichas de Tu Once (Verde Esmeralda Neón) */
.sim-dot.user {
    background: #00ff77;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px rgba(0, 255, 119, 0.7), 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 🔴 Fichas del Rival (Rojo Carmesí) */
.sim-dot.rival {
    background: #ff4757;
    border: 1.5px solid #ffffff;
    box-shadow: 0 0 6px rgba(255, 71, 87, 0.7), 0 2px 4px rgba(0, 0, 0, 0.7);
}

/* 🟡 Arqueros (Dorado Neón) */
.sim-dot.por {
    background: #fde047 !important;
    border-color: #0b1322 !important;
    box-shadow: 0 0 8px rgba(253, 224, 71, 0.85), 0 2px 4px rgba(0, 0, 0, 0.7) !important;
}

/* 🏃‍♂️ Animación de bloque: Cuando ataca Tu Once (adelanta líneas hacia arriba) */
.sim-pitch-players.phase-user .sim-dot.user:not(.por) {
    transform: translate(-50%, calc(-50% - 9px));
}
.sim-pitch-players.phase-user .sim-dot.rival:not(.por) {
    transform: translate(-50%, calc(-50% - 5px));
}

/* 🏃‍♂️ Animación de bloque: Cuando ataca el Rival (adelanta líneas hacia abajo) */
.sim-pitch-players.phase-rival .sim-dot.rival:not(.por) {
    transform: translate(-50%, calc(-50% + 9px));
}
.sim-pitch-players.phase-rival .sim-dot.user:not(.por) {
    transform: translate(-50%, calc(-50% + 5px));
}

/* 📱 Ajuste de tamaño en celulares */
@media (max-width: 768px) {
    .sim-dot {
        width: 8px;
        height: 8px;
    }
    .sim-pitch-ball {
        font-size: 0.48rem !important;
    }
}
/* ========================================================
   📜 RECORRIDO DEL CAMPEÓN: EL CAMINO A LA GLORIA
   ======================================================== */
.sim-match-layout.campeon-view {
    display: flex !important;
    flex-direction: column !important;
    max-width: 520px;
    margin: 0 auto 6px;
    width: 100% !important;
}

/* Oculta la cancha una vez consagrado campeón para que el recorrido sea el protagonista */
.sim-match-layout.campeon-view .sim-right-column {
    display: none !important;
}

.sim-match-layout.campeon-view .sim-events-wrapper {
    background: transparent !important;
    border: none !important;
    padding: 0 !important;
}

.sim-match-layout.campeon-view .sim-events-scroll {
    min-height: auto !important;
    max-height: none !important;
    overflow: visible !important;
}

.sim-camino-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    animation: fadeSlideUp 0.35s ease forwards;
}

.sim-camino-header {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    font-size: 0.80rem;
    font-weight: 900;
    color: #ffd700;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    padding-bottom: 4px;
    border-bottom: 1px dashed rgba(255, 215, 0, 0.4);
}

.sim-camino-header i {
    font-size: 1.1rem;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.7));
}

.sim-camino-list {
    display: flex;
    flex-direction: column;
    gap: 5px;
    width: 100%;
}

.sim-camino-row {
    background: linear-gradient(135deg, rgba(18, 28, 48, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-left: 3.5px solid #00ff77;
    border-radius: 11px;
    padding: 6px 12px;
    display: flex;
    flex-direction: column;
    gap: 2px;
    box-sizing: border-box;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4);
}

.sim-camino-row:last-child {
    border-left: 4px solid #ffd700;
    background: linear-gradient(135deg, rgba(38, 30, 10, 0.95) 0%, rgba(16, 20, 30, 0.98) 100%);
    box-shadow: 0 4px 16px rgba(255, 215, 0, 0.25);
}

.sim-camino-fase {
    font-size: 0.58rem;
    font-weight: 900;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.6px;
}

.sim-camino-match {
    display: grid;
    grid-template-columns: 1fr auto 1fr;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.sim-camino-team {
    display: flex;
    align-items: center;
    gap: 6px;
    overflow: hidden;
    white-space: nowrap;
}

.sim-camino-team.user {
    justify-content: flex-start;
}

.sim-camino-team.rival {
    justify-content: flex-end;
}

.sim-camino-team img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.sim-camino-team span {
    font-size: 0.74rem;
    font-weight: 800;
    color: #ffffff;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sim-camino-score {
    font-size: 0.88rem;
    font-weight: 900;
    color: #00ff77;
    background: rgba(0, 255, 119, 0.12);
    border: 1px solid rgba(0, 255, 119, 0.4);
    padding: 2px 10px;
    border-radius: 6px;
    white-space: nowrap;
    text-shadow: 0 0 6px rgba(0, 255, 119, 0.45);
}

.sim-camino-row:last-child .sim-camino-score {
    color: #ffd700;
    border-color: rgba(255, 215, 0, 0.6);
    background: rgba(255, 215, 0, 0.18);
    text-shadow: 0 0 8px rgba(255, 215, 0, 0.6);
}

/* ☀️ Adaptación Modo Claro */
[data-theme="light"] .sim-camino-row {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .sim-camino-team span {
    color: #0f172a !important;
}

[data-theme="light"] .sim-camino-header {
    color: #d97706 !important;
    border-bottom-color: rgba(217, 119, 6, 0.35) !important;
}

/* ========================================================
   👑 4TO BOTÓN MODO CARRERA: SALÓN DE CAMPEONES
   ======================================================== */
.btn-opt-campeones {
    border-top: 2px solid rgba(255, 215, 0, 0.6) !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(255, 215, 0, 0.16) 0%, transparent 60%),
        linear-gradient(165deg, rgba(32, 26, 12, 0.94) 0%, rgba(14, 12, 6, 0.98) 100%) !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 16px rgba(255, 215, 0, 0.12), inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
}
.btn-opt-campeones:hover {
    border-color: rgba(255, 215, 0, 0.75) !important;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.6), 0 0 24px rgba(255, 215, 0, 0.4) !important;
}
.btn-opt-campeones .guessr-option-icon {
    background: rgba(255, 215, 0, 0.15);
    box-shadow: 0 0 14px rgba(255, 215, 0, 0.28);
}
.btn-opt-campeones .guessr-option-icon img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.15) !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.8)) !important;
    transition: transform 0.25s ease !important;
}
.btn-opt-campeones:hover .guessr-option-icon img {
    transform: scale(1.25) rotate(-4deg) !important;
}

/* ☀️ Adaptación Modo Claro: Botón Salón de Campeones y Hub Modo Carrera */
[data-theme="light"] .btn-opt-campeones {
    border: 1.5px solid #cbd5e1 !important;
    border-top: 2.5px solid #d97706 !important;
    background: 
        radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.12) 0%, transparent 60%),
        linear-gradient(165deg, #ffffff 0%, #fefcf5 100%) !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}
[data-theme="light"] .btn-opt-campeones:hover {
    border-color: #d97706 !important;
    box-shadow: 0 10px 24px rgba(15, 23, 42, 0.09), 0 0 16px rgba(217, 119, 6, 0.18) !important;
}
[data-theme="light"] .btn-opt-campeones .guessr-option-icon {
    background: rgba(245, 158, 11, 0.12) !important;
    box-shadow: 0 0 12px rgba(245, 158, 11, 0.2) !important;
}
[data-theme="light"] .btn-opt-campeones .guessr-option-icon img {
    filter: drop-shadow(0 2px 6px rgba(217, 119, 6, 0.4)) !important;
}
[data-theme="light"] .btn-opt-campeones .guessr-option-text strong {
    color: #b45309 !important;
}
[data-theme="light"] .btn-opt-campeones .guessr-option-text span {
    color: #475569 !important;
}
[data-theme="light"] .btn-opt-versus .guessr-option-text strong {
    color: #0284c7 !important;
}
[data-theme="light"] .btn-opt-capacidad .guessr-option-text strong {
    color: #d97706 !important;
}
[data-theme="light"] .btn-opt-solo .guessr-option-text strong {
    color: #15803d !important;
}

/* ========================================================
   🏆 MODAL SALÓN DE CAMPEONES (ENCABEZADO HORIZONTAL Y LISTA)
   ======================================================== */
/* 🖤 SCROLLBAR OSCURA PARA MODO CARRERA */
#carrera-modal .modal-content {
    scrollbar-width: thin !important;
    scrollbar-color: #1e293b #060a12 !important;
}
#carrera-modal .modal-content::-webkit-scrollbar {
    width: 7px !important;
}
#carrera-modal .modal-content::-webkit-scrollbar-track {
    background: #060a12 !important;
    border-radius: 8px !important;
}
#carrera-modal .modal-content::-webkit-scrollbar-thumb {
    background: #1e293b !important;
    border-radius: 8px !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
}
#carrera-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #38bdf8 !important;
}

/* ☀️ Scrollbar Modo Claro para Modo Carrera Hub */
[data-theme="light"] #carrera-modal .modal-content {
    scrollbar-color: #cbd5e1 #f8fafc !important;
}
[data-theme="light"] #carrera-modal .modal-content::-webkit-scrollbar-track {
    background: #f8fafc !important;
}
[data-theme="light"] #carrera-modal .modal-content::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border: 1px solid #f1f5f9 !important;
}
[data-theme="light"] #carrera-modal .modal-content::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

   .ranking-carrera-box {
    max-width: 900px !important;
    width: 94% !important;
    height: auto !important;
    max-height: 88vh !important;
    padding: 22px 26px !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
}

.carrera-ranking-container {
    display: flex;
    flex-direction: column;
    width: 100%;
    height: 100%;
}

/* 👑 ENCABEZADO HORIZONTAL (Corona más imponente a la izquierda) */
.carrera-ranking-header {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 22px !important;
    margin-bottom: 16px !important;
    padding: 0 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
}

.carrera-header-left {
    flex-shrink: 0;
}

.carrera-header-left .trophy-stage-wrapper {
    width: auto !important;
    margin: 0 !important;
}

.carrera-header-left .trophy-main-img-box {
    width: 140px !important;
    height: 140px !important;
}

.carrera-header-left .trophy-glow-backdrop {
    width: 140px !important;
    height: 140px !important;
}

.carrera-header-right {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    gap: 4px !important;
}

.carrera-ranking-title {
    font-size: 1.65rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    text-transform: uppercase !important;
    letter-spacing: -0.5px !important;
    margin: 0 !important;
    line-height: 1.15 !important;
}

.carrera-ranking-sub {
    font-size: 0.88rem !important;
    color: var(--text-muted) !important;
    font-weight: 600 !important;
    margin: 0 !important;
}

/* 📊 TABLA Y FILAS DE CAMPEONES: DISEÑO DE GALA / HALL OF FAME */
.carrera-ranking-table-header {
    display: grid !important;
    grid-template-columns: 36px 1fr 50px 50px 50px 50px 65px 82px !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 9px 14px !important;
    border: 1.5px solid transparent !important;
    border-bottom: 1.5px dashed var(--border-subtle) !important;
    font-size: 0.70rem !important;
    font-weight: 900 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.8px !important;
    color: var(--text-muted) !important;
    box-sizing: border-box !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 20 !important;
    background: #090e1a !important;
    border-radius: 12px 12px 0 0 !important;
}

.carrera-ranking-table-header .col-center {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

#carrera-ranking-scroll-box,
.carrera-ranking-scroll,
.ranking-rows-scroll {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
    max-height: 52vh !important;
    overflow-y: auto !important;
    padding: 0 0 8px 0 !important;
    scrollbar-width: thin !important;
    scrollbar-color: rgba(255, 255, 255, 0.22) transparent !important;
}

#carrera-ranking-scroll-box::-webkit-scrollbar,
.carrera-ranking-scroll::-webkit-scrollbar,
.ranking-rows-scroll::-webkit-scrollbar {
    width: 6px !important;
}
#carrera-ranking-scroll-box::-webkit-scrollbar-track,
.carrera-ranking-scroll::-webkit-scrollbar-track,
.ranking-rows-scroll::-webkit-scrollbar-track {
    background: transparent !important;
}
#carrera-ranking-scroll-box::-webkit-scrollbar-thumb,
.carrera-ranking-scroll::-webkit-scrollbar-thumb,
.ranking-rows-scroll::-webkit-scrollbar-thumb {
    background: rgba(255, 255, 255, 0.22) !important;
    border-radius: 10px !important;
}
#carrera-ranking-scroll-box::-webkit-scrollbar-thumb:hover,
.carrera-ranking-scroll::-webkit-scrollbar-thumb:hover,
.ranking-rows-scroll::-webkit-scrollbar-thumb:hover {
    background: #38bdf8 !important;
}

.carrera-table-header {
    display: grid !important;
    align-items: center !important;
    padding: 10px 14px !important;
    border-left: 1.5px solid transparent !important;
    border-right: 1.5px solid transparent !important;
    border-bottom: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    background: rgba(0, 0, 0, 0.3) !important;
    font-size: 0.72rem !important;
    font-weight: 900 !important;
    color: var(--text-muted) !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
}

.carrera-table-header span.carrera-col-pos {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
}

.carrera-table-header span.carrera-col-dt {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    text-align: left !important;
    padding-left: 6px !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.carrera-table-header .carrera-col-detail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.67rem !important;
    letter-spacing: 0.2px !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.carrera-table-header .carrera-col-metric {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.carrera-table-header .carrera-col-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    font-size: 0.72rem !important;
    letter-spacing: 0.3px !important;
    white-space: nowrap !important;
    width: 100% !important;
}

.carrera-rank-row {
    display: grid !important;
    align-items: center !important;
    gap: 8px !important;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.88) 0%, rgba(10, 15, 26, 0.96) 100%) !important;
    border: 1.5px solid rgba(255, 255, 255, 0.08) !important;
    border-radius: 14px !important;
    padding: 9px 14px !important;
    box-sizing: border-box !important;
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), border-color 0.2s ease, box-shadow 0.2s ease !important;
}

.carrera-rank-row.is-search-hidden {
    display: none !important;
}

.carrera-rank-row .carrera-col-pos {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.carrera-rank-row .carrera-col-dt {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    min-width: 0 !important;
    padding-left: 6px !important;
}

.carrera-rank-row .carrera-col-detail {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.carrera-rank-row .carrera-col-metric {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.carrera-rank-row .carrera-col-action {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    width: 100% !important;
}

.carrera-rank-row .carrera-col-action .btn-desafiar-row,
.carrera-rank-row .carrera-col-action .carrera-action-self {
    margin: 0 auto !important;
}

.carrera-rank-row .carrera-col-metric .total-cups-badge,
.carrera-rank-row .carrera-col-metric .total-leagues-badge,
.carrera-rank-row .carrera-col-metric .total-versus-badge {
    margin: 0 auto !important;
}

/* 🏆 Grillas Sincronizadas al Milímetro: Cabecera y Filas comparten la misma plantilla exacta */
.carrera-table-header.carrera-tab-copas,
.carrera-rank-row.carrera-tab-copas {
    grid-template-columns: 36px 1fr 62px 58px 94px 62px 58px 84px !important;
    gap: 8px !important;
}

.carrera-table-header.carrera-tab-ligas.ligas-todas,
.carrera-rank-row.carrera-tab-ligas.ligas-todas,
.carrera-table-header.carrera-tab-ligas:not(.ligas-filtrada),
.carrera-rank-row.carrera-tab-ligas:not(.ligas-filtrada) {
    grid-template-columns: 36px 1fr 90px 92px !important;
    gap: 8px !important;
}

.carrera-table-header.carrera-tab-ligas.ligas-filtrada,
.carrera-rank-row.carrera-tab-ligas.ligas-filtrada {
    grid-template-columns: 36px 1fr 88px 88px 92px !important;
    gap: 8px !important;
}

.carrera-table-header.carrera-tab-versus,
.carrera-rank-row.carrera-tab-versus {
    grid-template-columns: 36px 1fr 100px 100px 84px 84px !important;
    gap: 8px !important;
}

/* 🌐 Dropdown Personalizado Cyber-Neón para Filtro de Ligas */
.carrera-filter-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    width: 240px;
    max-width: 260px;
    margin: 0;
}

.carrera-custom-select-btn {
    width: 100%;
    height: 38px;
    padding: 0 12px;
    background: linear-gradient(135deg, rgba(15, 23, 42, 0.95) 0%, rgba(30, 41, 59, 0.95) 100%);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 12px;
    color: #f1f5f9;
    font-size: 0.80rem;
    font-weight: 800;
    font-family: inherit;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    cursor: pointer;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35);
    transition: all 0.2s ease;
    box-sizing: border-box;
    user-select: none;
}

.carrera-custom-select-btn:hover,
.carrera-custom-select-btn.open {
    border-color: #38bdf8;
    box-shadow: 0 0 16px rgba(56, 189, 248, 0.4);
    background: linear-gradient(135deg, rgba(18, 30, 54, 0.98) 0%, rgba(35, 50, 75, 0.98) 100%);
}

.carrera-custom-select-btn .carrera-select-label {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: left;
    flex: 1;
}

.carrera-custom-select-btn i {
    font-size: 0.9rem;
    color: #38bdf8;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.carrera-custom-select-btn.open i {
    transform: rotate(180deg);
}

.carrera-custom-select-menu {
    position: absolute;
    top: calc(100% + 5px);
    left: 0;
    right: 0;
    width: 100%;
    max-height: 200px;
    overflow-y: auto;
    overflow-x: hidden;
    background: rgba(11, 19, 37, 0.98);
    border: 1.5px solid #38bdf8;
    border-radius: 12px;
    box-shadow: 0 12px 36px rgba(0, 0, 0, 0.85), 0 0 20px rgba(56, 189, 248, 0.25);
    z-index: 1000;
    padding: 4px;
    box-sizing: border-box;
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
}

.carrera-select-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 7px 10px;
    border-radius: 8px;
    font-size: 0.74rem;
    font-weight: 800;
    color: #cbd5e1;
    cursor: pointer;
    transition: all 0.15s ease;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    user-select: none;
}

.carrera-select-item:hover {
    background: rgba(56, 189, 248, 0.15);
    color: #ffffff;
}

.carrera-select-item.active {
    background: rgba(56, 189, 248, 0.25);
    color: #38bdf8;
    font-weight: 900;
}

.carrera-select-item i {
    color: #38bdf8;
    font-size: 0.85rem;
    flex-shrink: 0;
}

/* Badges tipográficas para Efectividad y Disputados en 1 vs 1 Histórico */
.versus-stat-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 8px;
    border-radius: 8px;
    font-size: 0.88rem;
    font-weight: 900;
    letter-spacing: -0.2px;
}
.versus-stat-badge.ratio {
    background: rgba(168, 85, 247, 0.15);
    border: 1px solid rgba(168, 85, 247, 0.45);
    color: #e9d5ff;
}
.versus-stat-badge.games {
    background: rgba(148, 163, 184, 0.14);
    border: 1px solid rgba(148, 163, 184, 0.35);
    color: #f1f5f9;
}

/* 🕹️ Botones de Pestañas con Emblemas */
#ranking-carrera-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn {
    position: relative !important;
    width: 220px !important;
    max-width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    padding: 0 14px 0 52px !important;
    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;
    transition: all 0.25s ease !important;
}

#ranking-carrera-modal .ranking-left-panel .ranking-tab-img {
    position: absolute !important;
    left: 4px !important;
    top: 50% !important;
    transform: translateY(-50%) !important;
    width: 54px !important;
    height: 54px !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;
    object-fit: contain !important;
}

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

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

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

@keyframes rayoGlowCopaCarrera {
    0% { 
        filter: drop-shadow(0 8px 24px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 14px rgba(255, 215, 0, 0.45));
        transform: scale(1.35);
    }
    100% { 
        filter: drop-shadow(0 8px 26px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 24px rgba(255, 215, 0, 0.85));
        transform: scale(1.40);
    }
}

@keyframes rayoGlowCopaCarreraMobile {
    0% { 
        filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.85)) drop-shadow(0 0 10px rgba(255, 215, 0, 0.45));
        transform: scale(1.30);
    }
    100% { 
        filter: drop-shadow(0 4px 16px rgba(0, 0, 0, 0.9)) drop-shadow(0 0 18px rgba(255, 215, 0, 0.85));
        transform: scale(1.35);
    }
}

/* 🏆 Ajuste óptico: Copa superior del Salón de Campeones más grande sin desplazar elementos */
#ranking-carrera-modal .ranking-brand-box .trophy-main-img[src*="trofeo"] {
    transform: scale(1.35) !important;
    transform-origin: center center !important;
    animation: rayoGlowCopaCarrera 3s infinite alternate ease-in-out !important;
}

/* 🟡 DORADO ORO: COPAS */
#ranking-carrera-modal .ranking-left-panel .tab-btn-copas {
    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-carrera-modal .ranking-left-panel .tab-btn-copas:hover {
    border-color: #eab308 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(234, 179, 8, 0.35) !important;
    transform: translateY(-2px);
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-copas.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;
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-copas.active span {
    color: #1a1202 !important;
    font-weight: 900 !important;
}

/* 🟢 VERDE NEÓN: LIGAS */
#ranking-carrera-modal .ranking-left-panel .tab-btn-ligas {
    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-carrera-modal .ranking-left-panel .tab-btn-ligas:hover {
    border-color: #00ff77 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 255, 119, 0.35) !important;
    transform: translateY(-2px);
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-ligas.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;
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-ligas.active span {
    color: #04160a !important;
    font-weight: 900 !important;
}

/* 🔵 AZUL / PÚRPURA: 1 VS 1 HISTÓRICO */
#ranking-carrera-modal .ranking-left-panel .tab-btn-versus-carrera {
    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-carrera-modal .ranking-left-panel .tab-btn-versus-carrera:hover {
    border-color: #2979ff !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(41, 121, 255, 0.35) !important;
    transform: translateY(-2px);
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-versus-carrera.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;
}
#ranking-carrera-modal .ranking-left-panel .tab-btn-versus-carrera.active span {
    color: #ffffff !important;
    font-weight: 900 !important;
}

@media (max-width: 768px) {
    #ranking-carrera-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-carrera-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;
    }
    html body #ranking-carrera-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-carrera-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn img.ranking-tab-img[src*="trofeo"] {
        transform: translateY(-50%) scale(1.5) !important;
    }
    html body #ranking-carrera-modal .ranking-left-panel .ranking-tabs-row .liga-tab-btn img.ranking-tab-img[src*="catador"] {
        transform: translateY(-50%) scale(1.05) !important;
    }
    #ranking-carrera-modal .ranking-brand-box .trophy-main-img[src*="trofeo"] {
        transform: scale(1.30) !important;
        transform-origin: center center !important;
        animation: rayoGlowCopaCarreraMobile 3s infinite alternate ease-in-out !important;
    }
    /* 🏆 Posicionamiento óptico del ícono principal hacia la derecha en celular */
    #ranking-carrera-modal .ranking-brand-box.brand-box-copas .trophy-stage-wrapper,
    #ranking-carrera-modal .ranking-brand-box:has(img[src*="trofeo"]) .trophy-stage-wrapper {
        transform: translateX(20px) !important;
    }
    #ranking-carrera-modal .ranking-brand-box.brand-box-ligas .trophy-stage-wrapper,
    #ranking-carrera-modal .ranking-brand-box:has(img[src*="catador"]) .trophy-stage-wrapper {
        transform: translateX(14px) !important;
    }
    #ranking-carrera-modal .ranking-brand-box.brand-box-versus .trophy-stage-wrapper,
    #ranking-carrera-modal .ranking-brand-box:has(img[src*="1v1"]) .trophy-stage-wrapper {
        transform: translateX(7px) !important;
    }
    .carrera-table-header span.carrera-col-dt {
        padding-left: 6px !important;
    }
    .carrera-table-header .desktop-only,
    .carrera-rank-row .desktop-only,
    .carrera-col-detail.desktop-only {
        display: none !important;
    }
}

.carrera-rank-row:hover {
    transform: translateY(-2px);
    border-color: rgba(250, 204, 21, 0.4);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

/* 🥇 Jerarquía del Podio Top 3 */
.carrera-rank-row.top-1 {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.14) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(234, 179, 8, 0.48);
    box-shadow: 0 0 18px rgba(234, 179, 8, 0.15);
}
.carrera-rank-row.top-2 {
    background: linear-gradient(135deg, rgba(203, 213, 225, 0.10) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(203, 213, 225, 0.38);
}
.carrera-rank-row.top-3 {
    background: linear-gradient(135deg, rgba(180, 83, 9, 0.10) 0%, rgba(15, 23, 42, 0.92) 100%);
    border-color: rgba(180, 83, 9, 0.38);
}

/* 🛡️ Fila propia del usuario */
.carrera-rank-row.es-propio {
    background: linear-gradient(135deg, rgba(16, 185, 129, 0.14) 0%, rgba(10, 24, 18, 0.94) 100%);
    border: 1.5px solid rgba(0, 255, 119, 0.45);
    box-shadow: 0 0 16px rgba(0, 255, 119, 0.15);
}

.carrera-tag-vos {
    color: #34d399;
    font-size: 0.72rem;
    margin-left: 4px;
}

.carrera-rank-pos {
    display: flex;
    align-items: center;
    justify-content: center;
}
.rank-cup-medal {
    width: 30px;
    height: 30px;
    object-fit: contain;
    filter: drop-shadow(0 2px 5px rgba(0, 0, 0, 0.6));
}
.rank-num-text {
    font-size: 0.95rem;
    font-weight: 900;
    color: var(--text-muted);
}

.carrera-col-dt,
.carrera-rank-user {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    overflow: hidden;
}
.carrera-col-dt .ranking-avatar-circle,
.carrera-rank-user .ranking-avatar-circle {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    max-width: 34px !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;
}
.carrera-col-dt .ranking-avatar-circle .ranking-avatar-inner,
.carrera-rank-user .ranking-avatar-circle .ranking-avatar-inner {
    transform: scale(0.34) !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;
}
.carrera-col-dt .ranking-avatar-circle .ac-avatar-img-full,
.carrera-rank-user .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) {
    .carrera-col-dt .ranking-avatar-circle,
    .carrera-rank-user .ranking-avatar-circle {
        width: 28px !important;
        height: 28px !important;
        min-width: 28px !important;
        max-width: 28px !important;
    }
    .carrera-col-dt .ranking-avatar-circle .ranking-avatar-inner,
    .carrera-rank-user .ranking-avatar-circle .ranking-avatar-inner {
        transform: scale(0.28) !important;
        left: 50% !important;
        margin-left: -50px !important;
        bottom: -22px !important;
    }
}
.carrera-user-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.15;
}
.carrera-user-name {
    font-size: 0.88rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.carrera-user-meta {
    font-size: 0.68rem;
    font-weight: 700;
    color: var(--text-muted);
    display: inline-flex;
    align-items: center;
    gap: 5px;
    margin-top: 2px;
}
.carrera-mini-shield {
    width: 17px;
    height: 17px;
    object-fit: contain;
}

/* 🛡️ Columna Ligas y Copas */
.carrera-rank-ligas-col,
.carrera-rank-copas-col {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.palmares-col-chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 4px 10px;
    border-radius: 9px;
    font-weight: 900;
    font-size: 0.85rem;
    transition: all 0.15s ease;
    user-select: none;
}
.palmares-col-chip.ligas.con-titulos {
    background: rgba(234, 179, 8, 0.14);
    border: 1.5px solid rgba(234, 179, 8, 0.45);
    color: #fef08a;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.palmares-col-chip.ligas i {
    color: #facc15;
    font-size: 1rem;
}
.palmares-col-chip.copas.con-titulos {
    background: rgba(56, 189, 248, 0.14);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    color: #bae6fd;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
}
.palmares-col-chip.copas i {
    color: #38bdf8;
    font-size: 1rem;
}
.palmares-col-chip.sin-titulos {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.08);
    color: #64748b;
    opacity: 0.55;
}
.palmares-col-chip .palmares-num {
    font-size: 0.92rem;
    font-weight: 900;
}

/* 🌟 Sellos de gloria exclusivos para copas épicas */
.glory-tags-row {
    display: flex;
    align-items: center;
    gap: 3px;
    flex-wrap: wrap;
    justify-content: center;
}
.glory-tag {
    font-size: 0.58rem;
    font-weight: 800;
    padding: 1px 5px;
    border-radius: 6px;
    display: inline-flex;
    align-items: center;
    line-height: 1.2;
    cursor: default;
}
.glory-tag.tag-mundial {
    background: rgba(250, 204, 21, 0.22);
    border: 1px solid rgba(250, 204, 21, 0.55);
    color: #fde047;
}
.glory-tag.tag-clubes {
    background: rgba(56, 189, 248, 0.22);
    border: 1px solid rgba(56, 189, 248, 0.55);
    color: #7dd3fc;
}
.glory-tag.tag-continental {
    background: rgba(167, 139, 250, 0.22);
    border: 1px solid rgba(167, 139, 250, 0.55);
    color: #c4b5fd;
}

/* 🏆 Total Títulos */
.carrera-rank-total {
    display: flex;
    justify-content: center;
    align-items: center;
}
.total-cups-badge {
    background: linear-gradient(135deg, rgba(234, 179, 8, 0.22) 0%, rgba(180, 83, 9, 0.16) 100%);
    border: 1.5px solid #facc15;
    color: #fef08a;
    padding: 3px 12px;
    border-radius: 10px;
    font-size: 1.05rem;
    font-weight: 900;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 42px;
    box-shadow: 0 2px 10px rgba(234, 179, 8, 0.25);
    user-select: none;
}
.total-cups-badge .total-num {
    font-size: 1.05rem;
    font-weight: 900;
}

/* ⚔️ Botón Duelo / Tu Club */
.carrera-rank-action {
    display: flex;
    justify-content: center;
    align-items: center;
}
.btn-desafiar-row {
    background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(15, 23, 42, 0.95) 100%);
    border: 1.5px solid rgba(59, 130, 246, 0.55);
    padding: 5px 10px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    cursor: pointer;
    color: #93c5fd;
    font-size: 0.65rem;
    font-weight: 900;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.btn-desafiar-row:hover {
    transform: translateY(-1px) scale(1.05);
    border-color: #38bdf8;
    background: linear-gradient(135deg, rgba(56, 189, 248, 0.35) 0%, rgba(29, 78, 216, 0.95) 100%);
    color: #ffffff;
    box-shadow: 0 4px 14px rgba(56, 189, 248, 0.35);
}
.carrera-mini-swords {
    width: 15px !important;
    height: 15px !important;
    object-fit: contain;
}
.carrera-action-self {
    font-size: 0.65rem;
    font-weight: 900;
    color: #34d399;
    background: rgba(16, 185, 129, 0.14);
    border: 1px solid rgba(16, 185, 129, 0.4);
    padding: 5px 8px;
    border-radius: 9px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    white-space: nowrap;
    user-select: none;
}

/* 📱 Responsive Celular */
@media (max-width: 768px) {
    .ranking-carrera-box {
        padding: 14px 10px !important;
        max-width: 95% !important;
    }
    .carrera-ranking-header {
        gap: 14px !important;
        margin-bottom: 12px !important;
    }
    .carrera-header-left .trophy-main-img-box {
        width: 75px !important;
        height: 75px !important;
    }
    .carrera-header-left .trophy-glow-backdrop {
        width: 90px !important;
        height: 90px !important;
    }
    .carrera-ranking-title {
        font-size: 1.25rem !important;
    }
    .carrera-ranking-sub {
        font-size: 0.74rem !important;
    }
    #ranking-carrera-modal .ranking-brand-box {
        height: auto !important;
        margin: 0 !important;
        padding: 0 !important;
    }
    #ranking-carrera-modal .ranking-left-panel {
        margin-bottom: 2px !important;
        gap: 6px !important;
    }
    #ranking-carrera-modal .ranking-sidebar-menu {
        margin-top: 4px !important;
        margin-bottom: 0 !important;
    }
    #ranking-carrera-modal .ranking-table-top-bar {
        display: flex !important;
        flex-direction: column !important;
        align-items: stretch !important;
        gap: 6px !important;
        margin-top: 2px !important;
        margin-bottom: 6px !important;
        width: 100% !important;
        padding: 0 !important;
    }
    #ranking-carrera-modal .carrera-filter-wrapper {
        flex: none !important;
        width: 100% !important;
        max-width: 100% !important;
        height: auto !important;
        min-height: 0 !important;
        margin: 0 !important;
    }
    #ranking-carrera-modal .carrera-custom-select-btn {
        width: 100% !important;
        height: 35px !important;
        font-size: 0.76rem !important;
        padding: 0 10px !important;
    }
    #ranking-carrera-modal .carrera-custom-select-menu {
        max-height: 170px !important;
        top: calc(100% + 3px) !important;
    }
    #ranking-carrera-modal .ranking-search-box {
        width: 100% !important;
        max-width: 100% !important;
        height: 34px !important;
        margin: 0 !important;
    }

    .carrera-table-header,
    .carrera-table-header.carrera-tab-copas,
    .carrera-table-header.carrera-tab-ligas,
    .carrera-table-header.carrera-tab-ligas.ligas-todas,
    .carrera-table-header.carrera-tab-ligas.ligas-filtrada,
    .carrera-table-header.carrera-tab-versus {
        grid-template-columns: 32px 1fr 64px 74px !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        font-size: 0.64rem !important;
        display: grid !important;
    }
    .carrera-rank-row,
    .carrera-rank-row.carrera-tab-copas,
    .carrera-rank-row.carrera-tab-ligas,
    .carrera-rank-row.carrera-tab-ligas.ligas-todas,
    .carrera-rank-row.carrera-tab-ligas.ligas-filtrada,
    .carrera-rank-row.carrera-tab-versus {
        grid-template-columns: 32px 1fr 64px 74px !important;
        gap: 6px !important;
        padding: 8px 10px !important;
        display: grid !important;
    }

    /* 🎯 Centrado simétrico de títulos y contenidos de columnas en Celular (3 Rankings) */
    .carrera-table-header span.carrera-col-pos,
    .carrera-rank-row .carrera-col-pos {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .carrera-table-header span.carrera-col-dt {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        text-align: left !important;
        padding-left: 4px !important;
        width: 100% !important;
    }
    .carrera-rank-row .carrera-col-dt {
        display: flex !important;
        align-items: center !important;
        justify-content: flex-start !important;
        gap: 8px !important;
        padding-left: 4px !important;
    }
    .carrera-table-header .carrera-col-metric,
    .carrera-rank-row .carrera-col-metric {
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .carrera-table-header .carrera-col-action,
    .carrera-rank-row .carrera-col-action {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        width: 100% !important;
    }
    .carrera-rank-row .carrera-col-action .btn-desafiar-row,
    .carrera-rank-row .carrera-col-action .carrera-action-self {
        margin: 0 auto !important;
    }
    .carrera-rank-row .carrera-col-metric .total-cups-badge,
    .carrera-rank-row .carrera-col-metric .total-leagues-badge,
    .carrera-rank-row .carrera-col-metric .total-versus-badge {
        margin: 0 auto !important;
    }
    .carrera-rank-ligas-col,
    .carrera-rank-copas-col {
        display: none !important;
    }
    .carrera-user-name {
        font-size: 0.80rem;
        max-width: 120px;
    }
    .btn-desafiar-row span {
        display: none;
    }
    .btn-desafiar-row {
        padding: 6px 7px;
    }
    .total-cups-badge {
        font-size: 0.88rem;
        padding: 3px 8px;
    }
}

/* ☀️ Adaptación Modo Claro Salón de Campeones */
[data-theme="light"] .ranking-carrera-box {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1) !important;
}
[data-theme="light"] .carrera-ranking-title {
    color: #0f172a !important;
}
[data-theme="light"] .carrera-ranking-table-header {
    background: #ffffff !important;
    border-bottom-color: #cbd5e1 !important;
    color: #475569 !important;
}
[data-theme="light"] .carrera-rank-row {
    background: #ffffff !important;
    border-color: #e2e8f0 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.05) !important;
}
[data-theme="light"] .carrera-rank-row:hover {
    border-color: #f59e0b !important;
    box-shadow: 0 4px 14px rgba(245, 158, 11, 0.15) !important;
}
[data-theme="light"] .carrera-rank-row.top-1 {
    background: linear-gradient(135deg, rgba(254, 240, 138, 0.35) 0%, #ffffff 100%) !important;
    border-color: #eab308 !important;
}
[data-theme="light"] .carrera-rank-row.top-2 {
    background: linear-gradient(135deg, rgba(241, 245, 249, 0.8) 0%, #ffffff 100%) !important;
    border-color: #94a3b8 !important;
}
[data-theme="light"] .carrera-rank-row.top-3 {
    background: linear-gradient(135deg, rgba(254, 215, 170, 0.35) 0%, #ffffff 100%) !important;
    border-color: #d97706 !important;
}
[data-theme="light"] .carrera-rank-row.es-propio {
    background: linear-gradient(135deg, rgba(209, 250, 229, 0.5) 0%, #ffffff 100%) !important;
    border-color: #10b981 !important;
}
[data-theme="light"] .carrera-user-name {
    color: #0f172a !important;
}
[data-theme="light"] .palmares-col-chip.ligas.con-titulos {
    background: rgba(254, 240, 138, 0.45) !important;
    border-color: #d97706 !important;
    color: #92400e !important;
}
[data-theme="light"] .palmares-col-chip.copas.con-titulos {
    background: rgba(224, 242, 254, 0.65) !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}
[data-theme="light"] .palmares-col-chip.sin-titulos {
    background: #f1f5f9 !important;
    border-color: #e2e8f0 !important;
    color: #94a3b8 !important;
}
[data-theme="light"] .total-cups-badge {
    background: linear-gradient(135deg, #fef08a 0%, #fde047 100%) !important;
    border-color: #ca8a04 !important;
    color: #713f12 !important;
}
[data-theme="light"] .btn-desafiar-row {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1d4ed8 !important;
}
[data-theme="light"] .carrera-action-self {
    background: #d1fae5 !important;
    border-color: #10b981 !important;
    color: #047857 !important;
}
[data-theme="light"] .carrera-ranking-scroll::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
}
[data-theme="light"] .glory-tag.tag-mundial {
    background: #fef3c7 !important;
    border-color: #f59e0b !important;
    color: #92400e !important;
}
[data-theme="light"] .glory-tag.tag-clubes {
    background: #e0f2fe !important;
    border-color: #0284c7 !important;
    color: #0369a1 !important;
}
[data-theme="light"] .glory-tag.tag-continental {
    background: #f3e8ff !important;
    border-color: #9333ea !important;
    color: #6b21a8 !important;
}
[data-theme="light"] .carrera-modal-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.1) !important;
}

/* ========================================================
   🏆 ESTILOS: TEMPORADA DE LIGA LARGA (MODO CARRERA)
   ======================================================== */
.liga-temporada-box {
    max-width: 1380px !important;
    width: 95% !important;
    height: 92vh !important;
    max-height: 92vh !important;
    padding: 24px 30px 22px !important;
    border-radius: 24px !important;
    display: flex !important;
    flex-direction: column !important;
    box-sizing: border-box !important;
    overflow-y: auto !important;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.15) 0%, transparent 60%),
                linear-gradient(180deg, #0b121e 0%, #060a12 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.3) !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.9) !important;
    scrollbar-width: thin;
    scrollbar-color: #1e293b #060a12;
    transition: max-width 0.25s ease, height 0.25s ease;
}

/* 🎯 Ajuste compacto: elimina el vacío negro inferior en la pantalla de elección */
.liga-temporada-box.is-selector {
    max-width: 1040px !important;
    height: auto !important;
    max-height: 88vh !important;
    padding: 22px 26px !important;
}

.lt-selector-header {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 14px !important;
    margin-bottom: 16px !important;
    padding-right: 36px !important;
}

/* 🖤 Barra de scroll oscura integrada para Temporada de Liga */
.liga-temporada-box::-webkit-scrollbar {
    width: 8px;
}
.liga-temporada-box::-webkit-scrollbar-track {
    background: #060a12;
    border-radius: 8px;
}
.liga-temporada-box::-webkit-scrollbar-thumb {
    background: #1e293b;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.06);
}
.liga-temporada-box::-webkit-scrollbar-thumb:hover {
    background: #334155;
}

.lt-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    margin-bottom: 12px;
    flex-shrink: 0;
    padding-right: 44px; /* Deja espacio para no tapar la cruz de cerrar */
    box-sizing: border-box;
    gap: 10px;
}

.lt-header-info-row {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
    flex: 1;
}

.lt-header-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    border-radius: 6px;
    filter: drop-shadow(0 0 10px rgba(56, 189, 248, 0.5));
    flex-shrink: 0;
}

.lt-header-info {
    display: flex;
    flex-direction: column;
    min-width: 0;
    flex: 1;
}

.lt-header-info h2 {
    font-size: 0.96rem;
    font-weight: 900;
    color: #ffffff;
    text-transform: uppercase;
    letter-spacing: -0.2px;
    margin: 0;
    line-height: 1.15;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-header-info p {
    font-size: 0.70rem;
    color: var(--text-muted);
    margin: 2px 0 0;
    font-weight: 600;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis; /* Evita que el texto desborde por debajo del botón */
    max-width: 100%;
}

/* 🔄 Botón compacto de reiniciar alineado con la cabecera */
.lt-btn-reiniciar-header {
    background: rgba(239, 68, 68, 0.12) !important;
    border: 1px solid rgba(239, 68, 68, 0.35) !important;
    color: #fca5a5 !important;
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    padding: 4px 8px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
    white-space: nowrap;
    flex-shrink: 0;
}

.lt-btn-reiniciar-header:hover {
    background: rgba(239, 68, 68, 0.25) !important;
    border-color: #ef4444 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(239, 68, 68, 0.25) !important;
}

/* ⚽ TARJETA DE PARTIDO SIMÉTRICA ESTILO BROADCAST */
.lt-match-banner {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    background: radial-gradient(circle at 50% 0%, rgba(56, 189, 248, 0.12) 0%, transparent 60%),
                linear-gradient(165deg, rgba(16, 26, 44, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    border-top: 2px solid rgba(147, 197, 253, 0.7) !important;
    border-radius: 18px !important;
    padding: 12px 16px !important;
    margin-bottom: 14px !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.6), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    box-sizing: border-box !important;
    width: 100% !important;
}

.lt-match-top-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    border-bottom: 1px dashed rgba(255, 255, 255, 0.08);
    padding-bottom: 6px;
}

.lt-fecha-pill {
    background: rgba(56, 189, 248, 0.16);
    border: 1px solid rgba(56, 189, 248, 0.45);
    color: #38bdf8;
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.6px;
    padding: 2px 9px;
    border-radius: 10px;
    text-transform: uppercase;
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.lt-match-status-tag {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 1px;
    color: var(--text-muted);
    text-transform: uppercase;
}

/* ⚔️ ENFRENTAMIENTO 100% SIMÉTRICO EN UNA SOLA LÍNEA HORIZONTAL */
.lt-match-clash {
    display: grid !important;
    grid-template-columns: 1fr auto 1fr !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    padding: 2px 0 !important;
}

.lt-match-team {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    gap: 4px !important;
    min-width: 0 !important;
    width: 100% !important;
}

.lt-team-shield-box {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(8, 14, 24, 0.9);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
    transition: transform 0.2s ease;
}

.lt-team-shield-box.local {
    border-color: #00ff77;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.35);
}

.lt-team-shield-box.rival {
    border-color: #38bdf8;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}

.lt-match-team img.sim-team-shield {
    width: 28px !important;
    height: 28px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.7));
}

.lt-match-team-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    width: 100% !important;
    line-height: 1.15;
}

.lt-match-team-text strong {
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    color: #ffffff !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    max-width: 120px !important;
}

.lt-match-team-text span {
    font-size: 0.62rem !important;
    font-weight: 800 !important;
    margin-top: 2px !important;
    letter-spacing: 0.3px !important;
    color: #38bdf8 !important;
}

.lt-team-shield-box.local + .lt-match-team-text span {
    color: #00ff77 !important;
}

.lt-match-vs-badge {
    font-size: 0.72rem;
    font-weight: 900;
    color: #fde047;
    background: rgba(234, 179, 8, 0.16);
    border: 1px solid rgba(234, 179, 8, 0.45);
    padding: 3px 8px;
    border-radius: 8px;
    letter-spacing: 0.8px;
    line-height: 1;
    box-shadow: 0 0 10px rgba(234, 179, 8, 0.25);
}

/* 🎮 BOTONERA INFERIOR LIMPIA */
.lt-match-actions-bar {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    width: 100% !important;
    margin-top: 2px !important;
}

.lt-btn-play-match {
    flex: 1 !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 16px !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    border-radius: 12px !important;
    color: #ffffff !important;
    background: radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.25) 0%, transparent 65%),
                linear-gradient(135deg, rgba(14, 38, 26, 0.95) 0%, rgba(8, 20, 14, 0.98) 100%) !important;
    border: 1.5px solid #00ff77 !important;
    border-top: 2px solid #a7f3d0 !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.5), 0 0 14px rgba(0, 255, 119, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    transition: all 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-transform: uppercase;
}

.lt-btn-play-match i {
    color: #00ff77;
    font-size: 0.92rem;
    filter: drop-shadow(0 0 6px rgba(0, 255, 119, 0.8));
}

.lt-btn-play-match:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #69ff9c !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 119, 0.45) !important;
}

.lt-btn-sim-all {
    flex: 0 0 auto !important;
    height: 38px !important;
    min-height: 38px !important;
    padding: 0 14px !important;
    font-size: 0.74rem !important;
    font-weight: 800 !important;
    letter-spacing: 0.3px !important;
    border-radius: 12px !important;
    color: #bae6fd !important;
    background: linear-gradient(145deg, rgba(16, 28, 48, 0.85) 0%, rgba(8, 14, 25, 0.95) 100%) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.35) !important;
    border-top: 1.5px solid rgba(147, 197, 253, 0.6) !important;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.4) !important;
    cursor: pointer !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 6px !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.lt-btn-sim-all i {
    color: #38bdf8;
    font-size: 0.85rem;
}

.lt-btn-sim-all:hover {
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    background: rgba(56, 189, 248, 0.2) !important;
    transform: translateY(-1px) !important;
}

/* 📊 Tabla de Posiciones */
.lt-table-container {
    width: 100%;
    background: rgba(10, 16, 28, 0.75);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 16px;
    overflow-x: auto;
    margin-bottom: 14px;
}

.lt-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.82rem;
    text-align: center;
    color: var(--text-main);
}

.lt-table th {
    padding: 10px 8px;
    background: rgba(15, 24, 42, 0.9);
    color: var(--text-muted);
    font-size: 0.70rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.lt-table td {
    padding: 8px 6px;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-weight: 700;
}

.lt-table tr.user-row {
    background: rgba(0, 255, 119, 0.12) !important;
    border-left: 3px solid #00ff77;
}

.lt-table tr.user-row td {
    color: #ffffff;
    font-weight: 900;
}

.lt-pts-cell {
    color: #ffffff;
    font-weight: 800;
}
.lt-pts-cell.user-pts {
    color: #00ff77;
    font-weight: 900;
}

.lt-club-col {
    display: flex;
    align-items: center;
    gap: 8px;
    text-align: left;
    padding-left: 10px !important;
}

.lt-club-col img {
    width: 22px;
    height: 22px;
    object-fit: contain;
    flex-shrink: 0;
}

.lt-pos-badge {
    display: inline-block;
    width: 20px;
    height: 20px;
    line-height: 20px;
    border-radius: 6px;
    font-size: 0.72rem;
    font-weight: 900;
    color: #ffffff;
    background: rgba(255, 255, 255, 0.08);
}

.lt-pos-badge.champ {
    background: #ffd700;
    color: #0b121e;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.5);
}

.lt-pos-badge.cup {
    background: #38bdf8;
    color: #0b121e;
}

.lt-footer-actions {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-top: 6px;
}

/* 🌐 Grid de Selección de Ligas Pro */
.lt-leagues-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 12px;
    width: 100%;
    margin-top: 4px;
}

.lt-league-card {
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.92) 0%, rgba(8, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-top: 1.5px solid rgba(56, 189, 248, 0.45);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    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.45);
    box-sizing: border-box;
}

.lt-league-card:hover {
    transform: translateY(-3px) scale(1.015);
    border-color: #38bdf8;
    box-shadow: 0 10px 26px rgba(0, 0, 0, 0.65), 0 0 16px rgba(56, 189, 248, 0.25);
}

.lt-league-card-top {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
}

.lt-league-flag {
    width: 38px;
    height: 27px;
    object-fit: cover;
    border-radius: 5px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.6);
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex-shrink: 0;
}

.lt-league-text {
    display: flex;
    flex-direction: column;
    min-width: 0;
}

.lt-league-text strong {
    font-size: 0.88rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    line-height: 1.2;
}

.lt-league-text span {
    font-size: 0.70rem;
    color: #94a3b8;
    font-weight: 700;
    margin-top: 2px;
}

.lt-league-card-bottom {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding-top: 8px;
    border-top: 1px dashed rgba(255, 255, 255, 0.08);
}

.lt-mini-shields-row {
    display: flex;
    align-items: center;
    gap: 5px;
}

.lt-card-mini-shield {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.6));
}

.lt-league-action-tag {
    font-size: 0.68rem;
    font-weight: 900;
    color: #38bdf8;
    letter-spacing: 0.4px;
    display: inline-flex;
    align-items: center;
    gap: 3px;
    text-transform: uppercase;
}

.lt-league-card:hover .lt-league-action-tag {
    color: #00ff77;
}
/* 📌 OVERLAY Y PROFUNDIDAD DEL MODAL DE TEMPORADA DE LIGA */
#liga-temporada-modal.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(4, 8, 16, 0.82);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    z-index: 100060;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
}
/* ========================================================
   ⚡ CONTROLES RÁPIDOS DEL SIMULADOR (2X Y SALTO DIRECTO)
   ======================================================== */
.sim-quick-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin: 8px 0 12px 0;
    width: 100%;
}

.sim-ctrl-btn {
    background: rgba(15, 23, 42, 0.85);
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: var(--text-muted);
    font-size: 0.76rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 20px;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
    user-select: none;
}

.sim-ctrl-btn:hover {
    background: rgba(30, 41, 59, 0.95);
    color: #ffffff;
    border-color: rgba(255, 255, 255, 0.3);
    transform: translateY(-1px);
}

/* Estado activo 2x */
.sim-ctrl-btn.active-2x {
    background: linear-gradient(135deg, rgba(251, 191, 36, 0.2) 0%, rgba(245, 158, 11, 0.3) 100%);
    border-color: #fbbf24;
    color: #fbbf24;
    box-shadow: 0 0 12px rgba(251, 191, 36, 0.3);
}

.sim-ctrl-btn.active-2x i {
    animation: pulse 1s infinite alternate;
}

/* Estado activo 3x Turbo */
.sim-ctrl-btn.active-3x {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.25) 0%, rgba(249, 115, 22, 0.35) 100%);
    border-color: #f97316;
    color: #fdba74;
    box-shadow: 0 0 14px rgba(249, 115, 22, 0.4);
}

.sim-ctrl-btn.active-3x i {
    animation: pulse 0.6s infinite alternate;
}

/* Botón saltar partido */
.sim-ctrl-skip {
    background: rgba(56, 189, 248, 0.12);
    border-color: rgba(56, 189, 248, 0.35);
    color: #38bdf8;
}

.sim-ctrl-skip:hover {
    background: rgba(56, 189, 248, 0.25);
    border-color: #38bdf8;
    color: #ffffff;
    box-shadow: 0 0 12px rgba(56, 189, 248, 0.35);
}
/* ========================================================
   ⚡ TEMPORADA DE LIGA: SIMULACIÓN RÁPIDA, GOLEADORES Y SP
   ======================================================== */
.lt-btn-sim-all {
    background: rgba(56, 189, 248, 0.15) !important;
    border: 1.5px solid rgba(56, 189, 248, 0.45) !important;
    color: #38bdf8 !important;
    font-size: 0.78rem !important;
    font-weight: 800 !important;
    padding: 7px 14px !important;
    border-radius: 12px !important;
    cursor: pointer !important;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: all 0.2s ease;
}

.lt-btn-sim-all:hover {
    background: rgba(56, 189, 248, 0.28) !important;
    border-color: #38bdf8 !important;
    color: #ffffff !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(56, 189, 248, 0.3) !important;
}

/* 🏅 Tarjetas de Goleador y Asistidor del Once */
.lt-leaders-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    width: 100%;
    margin-bottom: 16px;
}

.lt-leader-card {
    background: rgba(14, 24, 40, 0.85);
    border: 1.5px solid rgba(255, 255, 255, 0.1);
    border-radius: 16px;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}

.lt-leader-card.goleador {
    border-color: rgba(251, 191, 36, 0.35);
    background: radial-gradient(circle at 10% 50%, rgba(251, 191, 36, 0.12) 0%, rgba(14, 24, 40, 0.85) 70%);
}

.lt-leader-card.asistidor {
    border-color: rgba(56, 189, 248, 0.35);
    background: radial-gradient(circle at 10% 50%, rgba(56, 189, 248, 0.12) 0%, rgba(14, 24, 40, 0.85) 70%);
}

.lt-leader-avatar-wrap {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.06);
    border: 1.5px solid rgba(255, 255, 255, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    flex-shrink: 0;
}

.lt-leader-avatar-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.lt-leader-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex: 1;
}

.lt-leader-tag {
    font-size: 0.65rem;
    font-weight: 900;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
    margin-bottom: 2px;
}

.lt-leader-card.goleador .lt-leader-tag { color: #fbbf24; }
.lt-leader-card.asistidor .lt-leader-tag { color: #38bdf8; }

.lt-leader-name {
    font-size: 0.88rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lt-leader-stat {
    font-size: 0.74rem;
    color: var(--text-muted);
    font-weight: 700;
}

.lt-leader-stat b {
    color: #ffffff;
    font-size: 0.82rem;
}

/* 🏆 Banner de Campeón y Recompensa SP */
.lt-champ-banner {
    background: radial-gradient(circle at 50% 0%, rgba(255, 215, 0, 0.25) 0%, rgba(10, 20, 14, 0.95) 75%);
    border: 2px solid #ffd700;
    border-radius: 18px;
    padding: 16px 20px;
    text-align: center;
    margin-bottom: 16px;
    box-shadow: 0 0 25px rgba(255, 215, 0, 0.35);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.lt-champ-banner h3 {
    margin: 0;
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffd700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.lt-champ-sp-reward {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(0, 255, 119, 0.18);
    border: 1.5px solid #00ff77;
    color: #00ff77;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.88rem;
    font-weight: 900;
    box-shadow: 0 0 12px rgba(0, 255, 119, 0.35);
}
/* ========================================================
   📦 ESTILOS: CEREMONIA DE CORONACIÓN Y BOTÍN DE TEMPORADA
   ======================================================== */
.cofre-revelado-view {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    animation: fadeSlideUp 0.35s ease;
}

/* 🏷️ Píldora de Cabecera Neón */
.cofre-header-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(0, 242, 254, 0.22) 0%, rgba(10, 24, 42, 0.95) 100%);
    border: 1.5px solid #00f2fe;
    border-top: 2px solid #a5f3fc;
    color: #00f2fe;
    font-size: 0.78rem;
    font-weight: 900;
    letter-spacing: 1.5px;
    padding: 6px 20px;
    border-radius: 20px;
    text-transform: uppercase;
    box-shadow: 0 0 20px rgba(0, 242, 254, 0.4);
    margin-bottom: 12px;
}

.cofre-badge-corona {
    width: 22px;
    height: 22px;
    object-fit: contain;
    filter: drop-shadow(0 0 6px rgba(255, 215, 0, 0.85));
    display: inline-block;
    vertical-align: middle;
    flex-shrink: 0;
}

.cofre-pelota-img {
    width: 135px !important;
    height: 135px !important;
    max-width: 135px !important;
    max-height: 135px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 20px rgba(0, 255, 119, 0.75)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8)) !important;
    animation: rayoGlow 2.5s infinite alternate ease-in-out;
}

.cofre-header-pill.descenso {
    background: linear-gradient(135deg, rgba(239, 68, 68, 0.22) 0%, rgba(20, 10, 14, 0.95) 100%) !important;
    border-color: #ef4444 !important;
    border-top: 2px solid #fca5a5 !important;
    color: #fca5a5 !important;
    box-shadow: 0 0 20px rgba(239, 68, 68, 0.4) !important;
}

/* 🎴 Tarjeta Principal de Consagración */
.cofre-botin-card {
    position: relative;
    width: 480px;
    max-width: 95vw;
    background: 
        radial-gradient(circle at 50% 12%, rgba(255, 215, 0, 0.20) 0%, transparent 60%),
        radial-gradient(circle at 10% 90%, rgba(0, 255, 119, 0.14) 0%, transparent 55%),
        linear-gradient(165deg, rgba(18, 30, 52, 0.96) 0%, rgba(8, 14, 26, 0.98) 100%) !important;
    border: 1.5px solid rgba(255, 215, 0, 0.55) !important;
    border-top: 2.5px solid #fde047 !important;
    border-radius: 24px;
    padding: 16px 20px 18px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.9), 0 0 35px rgba(255, 215, 0, 0.25), inset 0 1px 0 rgba(255, 255, 255, 0.2);
    box-sizing: border-box;
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    animation: bounceFun 0.45s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* 🏟️ Escenario y Trofeo Protagonista Imponente */
.cofre-stage-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    width: 100%;
    height: 155px;
    margin-bottom: 6px;
}

/* 🏷️ Placa de Posición Final junto al Ícono */
.cofre-posicion-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 14px;
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.94) 0%, rgba(8, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.16);
    border-top: 2px solid #38bdf8;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.2);
    z-index: 2;
    line-height: 1.1;
    min-width: 90px;
    box-sizing: border-box;
    animation: fadeSlideUp 0.3s ease;
}

.cofre-pos-num {
    font-size: 1.65rem;
    font-weight: 900;
    color: #ffffff;
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
    line-height: 1;
}

.cofre-pos-txt {
    font-size: 0.62rem;
    font-weight: 900;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-top: 4px;
}

.cofre-posicion-badge.champ {
    border-top-color: #ffd700;
    border-color: rgba(255, 215, 0, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.35);
}
.cofre-posicion-badge.champ .cofre-pos-num { color: #ffd700; text-shadow: 0 0 10px rgba(255, 215, 0, 0.6); }
.cofre-posicion-badge.champ .cofre-pos-txt { color: #fde047; }

.cofre-posicion-badge.cup {
    border-top-color: #00ff77;
    border-color: rgba(0, 255, 119, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(0, 255, 119, 0.35);
}
.cofre-posicion-badge.cup .cofre-pos-num { color: #00ff77; text-shadow: 0 0 10px rgba(0, 255, 119, 0.6); }
.cofre-posicion-badge.cup .cofre-pos-txt { color: #a7f3d0; }

.cofre-posicion-badge.descenso {
    border-top-color: #ef4444;
    border-color: rgba(239, 68, 68, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 20px rgba(239, 68, 68, 0.35);
}
.cofre-posicion-badge.descenso .cofre-pos-num { color: #ef4444; text-shadow: 0 0 10px rgba(239, 68, 68, 0.6); }
.cofre-posicion-badge.descenso .cofre-pos-txt { color: #fca5a5; }

.cofre-posicion-badge.mid {
    border-top-color: #38bdf8;
    border-color: rgba(56, 189, 248, 0.45);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6), 0 0 16px rgba(56, 189, 248, 0.25);
}
.cofre-posicion-badge.mid .cofre-pos-num { color: #38bdf8; text-shadow: 0 0 10px rgba(56, 189, 248, 0.5); }
.cofre-posicion-badge.mid .cofre-pos-txt { color: #bae6fd; }

[data-theme="light"] .cofre-posicion-badge {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 6px 18px rgba(15, 23, 42, 0.08) !important;
}
[data-theme="light"] .cofre-pos-num {
    color: #0f172a !important;
    text-shadow: none !important;
}

.cofre-stage-glow {
    position: absolute;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 215, 0, 0.55) 0%, rgba(255, 160, 0, 0.22) 50%, transparent 72%);
    filter: blur(28px);
    pointer-events: none;
    z-index: 0;
}

.cofre-botin-icon-wrap {
    position: relative;
    z-index: 2;
    width: 140px;
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.cofre-trofeo-img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    transform: scale(1.65) !important;
    filter: drop-shadow(0 0 28px rgba(255, 215, 0, 0.95)) drop-shadow(0 10px 22px rgba(0, 0, 0, 0.85)) !important;
    animation: rayoGlow 2.5s infinite alternate ease-in-out;
}

.cofre-medalla-img {
    width: 110px !important;
    height: 110px !important;
    max-width: 110px !important;
    max-height: 110px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.85)) drop-shadow(0 6px 14px rgba(0, 0, 0, 0.8)) !important;
    animation: rayoGlow 2.5s infinite alternate ease-in-out;
}

.cofre-estrella-img {
    width: 100px !important;
    height: 100px !important;
    max-width: 100px !important;
    max-height: 100px !important;
    object-fit: contain !important;
    transform: scale(1.5) !important;
    filter: drop-shadow(0 0 24px rgba(255, 215, 0, 0.95)) drop-shadow(0 4px 10px rgba(0, 0, 0, 0.8)) !important;
    animation: rayoGlow 2.5s infinite alternate ease-in-out;
}

.cofre-escudo-img {
    width: 95px !important;
    height: 95px !important;
    max-width: 95px !important;
    max-height: 95px !important;
    object-fit: contain !important;
    filter: drop-shadow(0 0 18px rgba(0, 255, 119, 0.85)) !important;
}

/* 🛡️ Identidad del Club y OVR */
.cofre-club-identity {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    margin-top: 2px;
    margin-bottom: 10px;
    width: 100%;
}

.cofre-club-shield {
    width: 36px;
    height: 36px;
    object-fit: contain;
    filter: drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.cofre-club-info-wrap {
    display: flex;
    align-items: baseline;
    gap: 8px;
}

.cofre-botin-club {
    font-size: 1.35rem;
    font-weight: 900;
    color: #ffffff;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: -0.3px;
    line-height: 1.1;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.8);
}

.cofre-club-ovr {
    font-size: 0.74rem;
    font-weight: 900;
    color: #38bdf8;
    background: rgba(56, 189, 248, 0.16);
    border: 1.5px solid rgba(56, 189, 248, 0.45);
    padding: 2px 8px;
    border-radius: 6px;
    letter-spacing: 0.5px;
}

/* 👤 Protagonistas del Once (Capitán & DT) */
.cofre-protagonistas-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 12px;
}

.cofre-protag-card {
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.90) 0%, rgba(9, 14, 25, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 8px 10px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    box-sizing: border-box;
}

.cofre-protag-tag {
    font-size: 0.58rem;
    font-weight: 900;
    letter-spacing: 0.8px;
    padding: 2px 7px;
    border-radius: 5px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    width: fit-content;
}
.cofre-protag-tag.cap { background: rgba(251, 191, 36, 0.22); color: #fde047; border: 1px solid rgba(251, 191, 36, 0.5); }
.cofre-protag-tag.dt { background: rgba(56, 189, 248, 0.22); color: #7dd3fc; border: 1px solid rgba(56, 189, 248, 0.5); }

.cofre-protag-info {
    display: flex;
    align-items: center;
    gap: 8px;
    overflow: hidden;
}

.cofre-protag-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    border: 1.5px solid rgba(255, 255, 255, 0.35);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    flex-shrink: 0;
}

.cofre-protag-info strong {
    font-size: 0.84rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* 📊 Storytelling: Hitos de Campaña Claros y Legibles */
.cofre-hitos-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    width: 100%;
    margin-bottom: 12px;
}

.cofre-hito-card {
    background: linear-gradient(165deg, rgba(20, 32, 54, 0.90) 0%, rgba(10, 16, 28, 0.98) 100%);
    border: 1.5px solid rgba(255, 255, 255, 0.12);
    border-radius: 14px;
    padding: 9px 6px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 3px;
    box-sizing: border-box;
}

.cofre-hito-card.highlight {
    border-color: rgba(0, 255, 119, 0.5);
    background: linear-gradient(165deg, rgba(10, 36, 24, 0.95) 0%, rgba(6, 20, 14, 0.98) 100%);
}

.hito-header {
    font-size: 0.64rem;
    font-weight: 900;
    color: var(--text-muted);
    letter-spacing: 0.7px;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: 4px;
}

.hito-header i {
    font-size: 0.80rem;
    color: #38bdf8;
}

.cofre-hito-card.highlight .hito-header i {
    color: #00ff77;
}

.hito-val {
    font-size: 0.96rem;
    font-weight: 900;
    color: #ffffff;
    line-height: 1.15;
}

.hito-val.invicto {
    color: #00ff77;
    text-shadow: 0 0 10px rgba(0, 255, 119, 0.6);
}

.hito-sub {
    font-size: 0.68rem;
    font-weight: 700;
    color: #cbd5e1;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
}

/* 🎁 Recompensas de Botín (SP & XP en 2 Columnas de Gran Porte) */
.cofre-loot-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    width: 100%;
    margin-bottom: 8px;
}

.cofre-loot-card {
    background: linear-gradient(145deg, rgba(16, 26, 44, 0.92) 0%, rgba(8, 14, 25, 0.98) 100%);
    border-radius: 14px;
    padding: 10px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    box-sizing: border-box;
    border: 1.5px solid rgba(255, 255, 255, 0.14);
}

.cofre-loot-card.sp {
    border-color: rgba(0, 255, 119, 0.55);
    background: radial-gradient(circle at 15% 50%, rgba(0, 255, 119, 0.22) 0%, rgba(8, 24, 16, 0.96) 75%);
}

.cofre-loot-card.xp {
    border-color: rgba(56, 189, 248, 0.55);
    background: radial-gradient(circle at 15% 50%, rgba(56, 189, 248, 0.22) 0%, rgba(12, 24, 40, 0.96) 75%);
}

.cofre-loot-icon-wrap {
    width: 44px;
    height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    background: transparent !important;
    border: none !important;
}

.cofre-loot-3d-img {
    width: 38px;
    height: 38px;
    object-fit: contain;
    transition: transform 0.25s ease;
}

.cofre-loot-card.sp .cofre-loot-3d-img {
    filter: drop-shadow(0 0 10px rgba(0, 255, 119, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.cofre-loot-card.xp .cofre-loot-3d-img {
    transform: scale(1.6) !important;
    filter: drop-shadow(0 0 10px rgba(255, 215, 0, 0.9)) drop-shadow(0 2px 6px rgba(0, 0, 0, 0.7));
}

.cofre-loot-card:hover .cofre-loot-3d-img {
    transform: scale(1.12);
}
.cofre-loot-card.xp:hover .cofre-loot-3d-img {
    transform: scale(1.75) !important;
}

.cofre-loot-info {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    line-height: 1.15;
    text-align: left;
}

.loot-label {
    font-size: 0.60rem;
    font-weight: 800;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.cofre-loot-info strong {
    font-size: 1.05rem;
    font-weight: 900;
    color: #ffffff;
    white-space: nowrap;
}

/* 🏆 Cinta de Consagración en Vitrina */
.cofre-vitrina-ribbon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: rgba(251, 191, 36, 0.12);
    border: 1px dashed rgba(251, 191, 36, 0.45);
    padding: 6px 12px;
    border-radius: 10px;
    color: #fde047;
    font-size: 0.68rem;
    font-weight: 800;
    letter-spacing: 0.4px;
    text-transform: uppercase;
    box-sizing: border-box;
}

.cofre-vitrina-ribbon i {
    font-size: 0.95rem;
    color: #f59e0b;
}

/* 🏆 Botón de Reclamo 3D Oro Cyber */
.cofre-actions-wrap {
    width: 100%;
    max-width: 480px;
    margin-top: 14px;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    gap: 8px !important;
    box-sizing: border-box !important;
}

.btn-cofre-claim {
    width: 100% !important;
    height: 46px !important;
    min-height: 46px !important;
    border-radius: 14px !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.6px !important;
    color: #0b1325 !important;
    background: linear-gradient(180deg, #fff5a5 0%, #ffd700 50%, #f59e0b 100%) !important;
    border: none !important;
    border-top: 2px solid #ffffff !important;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.6), 0 0 20px rgba(255, 215, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.6) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 10px !important;
    cursor: pointer !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    text-shadow: 0 1px 2px rgba(255, 255, 255, 0.6);
    box-sizing: border-box !important;
}

.btn-cofre-claim i {
    font-size: 1.15rem;
    color: #0b1325;
}

.btn-cofre-claim:hover {
    transform: translateY(-2px) scale(1.01) !important;
    box-shadow: 0 10px 28px rgba(0, 0, 0, 0.7), 0 0 30px rgba(255, 215, 0, 0.75), inset 0 1px 0 #ffffff !important;
    filter: brightness(1.08);
}

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

.btn-share-champ-story {
    width: 100% !important;
    height: 42px !important;
    min-height: 42px !important;
    border-radius: 14px !important;
    font-size: 0.82rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    color: #fde047 !important;
    background: linear-gradient(145deg, rgba(24, 34, 52, 0.95) 0%, rgba(10, 16, 28, 0.98) 100%) !important;
    border: 1.5px solid rgba(251, 191, 36, 0.55) !important;
    border-top: 1.5px solid rgba(254, 240, 138, 0.85) !important;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.5), 0 0 14px rgba(251, 191, 36, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.12) !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    cursor: pointer !important;
    text-transform: uppercase !important;
    transition: all 0.22s cubic-bezier(0.175, 0.885, 0.32, 1.275) !important;
    box-sizing: border-box !important;
}

.btn-share-champ-story i {
    color: #fde047;
    font-size: 1.05rem;
}

.btn-share-champ-story:hover {
    transform: translateY(-2px) scale(1.01) !important;
    border-color: #ffd700 !important;
    color: #ffffff !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.65), 0 0 22px rgba(251, 191, 36, 0.45) !important;
}

.btn-share-champ-story:active {
    transform: translateY(1px) scale(0.98) !important;
}

.lt-btn-abrir-cofre-hub {
    margin-top: 8px !important;
    padding: 10px 22px !important;
    font-size: 0.88rem !important;
    font-weight: 900 !important;
    letter-spacing: 0.5px !important;
    background: linear-gradient(180deg, #ffe066 0%, #f59e0b 60%, #d97706 100%) !important;
    color: #0b1325 !important;
    border: none !important;
    border-top: 1.5px solid #fffbeb !important;
    box-shadow: 0 5px 16px rgba(245, 158, 11, 0.5) !important;
    animation: timerPulse 1.8s infinite ease-in-out;
}

/* 📱 ADAPTACIÓN CELULAR */
@media (max-width: 600px) {
    .cofre-botin-card {
        padding: 14px 14px 16px !important;
    }
    .cofre-stage-wrapper {
        height: 135px !important;
        margin-bottom: 4px !important;
        gap: 12px !important;
    }
    .cofre-posicion-badge {
        padding: 6px 12px !important;
        border-radius: 12px !important;
        min-width: 78px !important;
    }
    .cofre-pos-num {
        font-size: 1.35rem !important;
    }
    .cofre-pos-txt {
        font-size: 0.54rem !important;
    }
    .cofre-stage-glow {
        width: 160px !important;
        height: 160px !important;
    }
    .cofre-botin-icon-wrap {
        width: 120px !important;
        height: 120px !important;
    }
    .cofre-trofeo-img {
        width: 100% !important;
        height: 100% !important;
        transform: scale(1.7) !important;
    }
    .cofre-pelota-img {
        width: 115px !important;
        height: 115px !important;
        max-width: 115px !important;
        max-height: 115px !important;
    }
    .cofre-botin-club {
        font-size: 1.15rem !important;
    }
    .cofre-protagonistas-row {
        gap: 6px !important;
    }
    .cofre-protag-avatar {
        width: 28px !important;
        height: 28px !important;
    }
    .cofre-protag-info strong {
        font-size: 0.74rem !important;
    }
    .cofre-hitos-grid {
        grid-template-columns: 1fr 1fr 1fr !important;
        gap: 5px !important;
    }
    .hito-header {
        font-size: 0.56rem !important;
    }
    .hito-val {
        font-size: 0.78rem !important;
    }
    .hito-sub {
        font-size: 0.58rem !important;
    }
    .cofre-loot-row {
        gap: 6px !important;
    }
    .cofre-loot-card {
        padding: 8px 10px !important;
        gap: 8px !important;
    }
    .cofre-loot-info strong {
        font-size: 0.90rem !important;
    }
    .btn-cofre-claim {
        height: 44px !important;
        min-height: 44px !important;
        font-size: 0.82rem !important;
    }
}

/* ☀️ Adaptación Modo Claro */
[data-theme="light"] .cofre-botin-card {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 16px 40px rgba(15, 23, 42, 0.12) !important;
}

[data-theme="light"] .cofre-header-title,
[data-theme="light"] .cofre-botin-club {
    color: #0f172a !important;
    -webkit-text-fill-color: initial !important;
    background: none !important;
}

[data-theme="light"] .cofre-protag-card,
[data-theme="light"] .cofre-hito-card,
[data-theme="light"] .cofre-loot-card {
    background: #f8fafc !important;
    border-color: #cbd5e1 !important;
}

[data-theme="light"] .cofre-protag-info strong,
[data-theme="light"] .hito-val,
[data-theme="light"] .cofre-loot-info strong {
    color: #0f172a !important;
}

[data-theme="light"] .btn-cofre-claim {
    color: #04160a !important;
}
/* ⚔️ PASTILLA HISTORIAL MUTUO EN INSPECCIÓN */
.inspect-h2h-pill {
    margin-top: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    background: linear-gradient(135deg, rgba(41, 121, 255, 0.16) 0%, rgba(10, 16, 28, 0.95) 100%);
    border: 1.5px solid rgba(41, 121, 255, 0.45);
    border-top: 2px solid #93c5fd;
    color: #ffffff;
    font-size: 0.74rem;
    font-weight: 800;
    padding: 6px 14px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.4);
    box-sizing: border-box;
    width: 100%;
    max-width: 340px;
}
.inspect-h2h-pill i {
    color: #60a5fa;
    font-size: 0.95rem;
}
.inspect-h2h-pill b {
    color: #fde047;
}
[data-theme="light"] .inspect-h2h-pill {
    background: #eff6ff !important;
    border-color: #3b82f6 !important;
    color: #1e3a8a !important;
}
[data-theme="light"] .inspect-h2h-pill b {
    color: #b45309 !important;
}

/* ========================================================
   ☀️ MODO CLARO: SIMULADOR 2D Y EVENTOS (ALTO CONTRASTE)
   ======================================================== */
[data-theme="light"] .sim-ev-min {
    color: #b45309 !important;
}
[data-theme="light"] .sim-event-row {
    background: #f1f5f9 !important;
    color: #1e293b !important;
}
[data-theme="light"] .sim-event-row.gol_user {
    background: #dcfce7 !important;
    border-left: 3.5px solid #16a34a !important;
    color: #14532d !important;
}
[data-theme="light"] .sim-event-row.gol_rival {
    background: #fee2e2 !important;
    border-left: 3.5px solid #dc2626 !important;
    color: #7f1d1d !important;
}
[data-theme="light"] .sim-event-row.corner {
    background: #fef3c7 !important;
    border-left: 3.5px solid #d97706 !important;
    color: #78350f !important;
}
[data-theme="light"] .sim-event-row.falta {
    background: #ffedd5 !important;
    border-left: 3.5px solid #ea580c !important;
    color: #7c2d12 !important;
}
[data-theme="light"] .sim-event-row.atajada {
    background: #e0f2fe !important;
    border-left: 3.5px solid #0284c7 !important;
    color: #0c4a6e !important;
}
[data-theme="light"] .sim-event-row.entretiempo {
    background: linear-gradient(90deg, #fef3c7 0%, #f1f5f9 100%) !important;
    border: 1px solid #f59e0b !important;
    color: #92400e !important;
}
[data-theme="light"] .sim-event-row.penales {
    background: #fef3c7 !important;
    border-left: 3.5px solid #d97706 !important;
    color: #78350f !important;
}
[data-theme="light"] .sim-stage-badge {
    background: #e8f5e9 !important;
    border-color: #86efac !important;
    color: #15803d !important;
    text-shadow: none !important;
}
[data-theme="light"] .sim-stage-badge.campeon {
    background: #fef3c7 !important;
    border-color: #fcd34d !important;
    color: #92400e !important;
    text-shadow: none !important;
}
/* ========================================================
   ☀️ ADAPTACIÓN MODO CLARO: TEMPORADA DE LIGA Y SELECTOR DE LIGAS
   ======================================================== */
[data-theme="light"] .liga-temporada-box {
    background: radial-gradient(circle at 50% 0%, rgba(2, 132, 199, 0.05) 0%, transparent 60%),
                #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: 0 20px 60px rgba(15, 23, 42, 0.12) !important;
    scrollbar-color: #cbd5e1 #f8fafc !important;
}

[data-theme="light"] .liga-temporada-box::-webkit-scrollbar-track {
    background: #f8fafc !important;
    border-radius: 8px !important;
}

[data-theme="light"] .liga-temporada-box::-webkit-scrollbar-thumb {
    background: #cbd5e1 !important;
    border-radius: 8px !important;
    border: 1px solid #f1f5f9 !important;
}

[data-theme="light"] .liga-temporada-box::-webkit-scrollbar-thumb:hover {
    background: #94a3b8 !important;
}

/* 🌐 Selector de Ligas en Modo Claro */
[data-theme="light"] .lt-header-info h2 {
    color: #0f172a !important;
}

[data-theme="light"] .lt-header-info p {
    color: #64748b !important;
}

[data-theme="light"] .lt-header-info p b {
    color: #0284c7 !important;
}

[data-theme="light"] .lt-header-img {
    filter: drop-shadow(0 2px 8px rgba(2, 132, 199, 0.25)) !important;
}

[data-theme="light"] .lt-league-card {
    background: linear-gradient(145deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-top: 2.5px solid #0284c7 !important;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.06), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .lt-league-card:hover {
    border-color: #0284c7 !important;
    box-shadow: 0 8px 24px rgba(2, 132, 199, 0.18), 0 2px 6px rgba(15, 23, 42, 0.08) !important;
    transform: translateY(-3px) scale(1.015) !important;
}

[data-theme="light"] .lt-league-flag {
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.12) !important;
    border: 1px solid #cbd5e1 !important;
}

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

[data-theme="light"] .lt-league-text span {
    color: #64748b !important;
}

[data-theme="light"] .lt-league-card-bottom {
    border-top: 1px dashed #e2e8f0 !important;
}

[data-theme="light"] .lt-league-action-tag {
    color: #0284c7 !important;
}

[data-theme="light"] .lt-league-card:hover .lt-league-action-tag {
    color: #16a34a !important;
}

/* 🔄 Botón Reiniciar Temporada */
[data-theme="light"] .lt-btn-reiniciar-header {
    background: #fef2f2 !important;
    border: 1px solid #fca5a5 !important;
    color: #dc2626 !important;
}

[data-theme="light"] .lt-btn-reiniciar-header:hover {
    background: #fee2e2 !important;
    border-color: #ef4444 !important;
    color: #b91c1c !important;
    box-shadow: 0 2px 8px rgba(239, 68, 68, 0.2) !important;
}

/* ⚽ Tarjeta Partido de la Fecha (Broadcast) */
[data-theme="light"] .lt-match-banner {
    background: linear-gradient(165deg, #ffffff 0%, #f8fafc 100%) !important;
    border: 1.5px solid #cbd5e1 !important;
    border-top: 2.5px solid #0284c7 !important;
    box-shadow: 0 6px 20px rgba(15, 23, 42, 0.07), inset 0 1px 0 #ffffff !important;
}

[data-theme="light"] .lt-match-top-row {
    border-bottom: 1px dashed #e2e8f0 !important;
}

[data-theme="light"] .lt-fecha-pill {
    background: #e0f2fe !important;
    border: 1px solid #7dd3fc !important;
    color: #0369a1 !important;
}

[data-theme="light"] .lt-match-status-tag {
    color: #64748b !important;
}

[data-theme="light"] .lt-match-banner p {
    color: #78350f !important;
}

[data-theme="light"] .lt-match-banner h3 {
    color: #b45309 !important;
}

[data-theme="light"] .lt-team-shield-box {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.08) !important;
}

[data-theme="light"] .lt-team-shield-box.local {
    border-color: #10b981 !important;
    box-shadow: 0 0 10px rgba(16, 185, 129, 0.25) !important;
}

[data-theme="light"] .lt-team-shield-box.rival {
    border-color: #0284c7 !important;
    box-shadow: 0 0 10px rgba(2, 132, 199, 0.25) !important;
}

[data-theme="light"] .lt-match-team-text strong {
    color: #0f172a !important;
}

[data-theme="light"] .lt-match-team-text span {
    color: #0284c7 !important;
}

[data-theme="light"] .lt-team-shield-box.local + .lt-match-team-text span {
    color: #15803d !important;
}

[data-theme="light"] .lt-match-vs-badge {
    background: #fef3c7 !important;
    border: 1px solid #fcd34d !important;
    color: #92400e !important;
    box-shadow: 0 0 8px rgba(245, 158, 11, 0.15) !important;
}

[data-theme="light"] .lt-btn-play-match {
    background: linear-gradient(135deg, #00cc66 0%, #009944 100%) !important;
    border: 1.5px solid #007a38 !important;
    border-top: 2px solid #86efac !important;
    color: #ffffff !important;
    box-shadow: 0 4px 14px rgba(0, 204, 102, 0.28) !important;
}

[data-theme="light"] .lt-btn-play-match:hover {
    background: linear-gradient(135deg, #00d96d 0%, #00a84a 100%) !important;
    box-shadow: 0 6px 18px rgba(0, 204, 102, 0.38) !important;
}

[data-theme="light"] .lt-btn-play-match i {
    color: #ffffff !important;
    filter: none !important;
}

[data-theme="light"] .lt-btn-sim-all {
    background: #f1f5f9 !important;
    border: 1.5px solid #cbd5e1 !important;
    border-top: 1.5px solid #94a3b8 !important;
    color: #0369a1 !important;
    box-shadow: 0 2px 6px rgba(15, 23, 42, 0.05) !important;
}

[data-theme="light"] .lt-btn-sim-all:hover {
    background: #e0f2fe !important;
    border-color: #38bdf8 !important;
    color: #0284c7 !important;
}

[data-theme="light"] .lt-btn-sim-all i {
    color: #0284c7 !important;
}

/* 🏅 Líderes Individuales del Once */
[data-theme="light"] .lt-leader-card {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .lt-leader-card.goleador {
    background: radial-gradient(circle at 10% 50%, rgba(245, 158, 11, 0.1) 0%, #ffffff 75%) !important;
    border-color: #f59e0b !important;
}

[data-theme="light"] .lt-leader-card.asistidor {
    background: radial-gradient(circle at 10% 50%, rgba(2, 132, 199, 0.08) 0%, #ffffff 75%) !important;
    border-color: #0284c7 !important;
}

[data-theme="light"] .lt-leader-avatar-wrap {
    background: #f8fafc !important;
    border: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .lt-leader-card.goleador .lt-leader-tag {
    color: #b45309 !important;
}

[data-theme="light"] .lt-leader-card.asistidor .lt-leader-tag {
    color: #0369a1 !important;
}

[data-theme="light"] .lt-leader-name {
    color: #0f172a !important;
}

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

[data-theme="light"] .lt-leader-stat b {
    color: #0f172a !important;
}

/* 📊 Tabla de Posiciones en Modo Claro */
[data-theme="light"] .lt-table-container {
    background: #ffffff !important;
    border: 1.5px solid #cbd5e1 !important;
    box-shadow: 0 4px 16px rgba(15, 23, 42, 0.06) !important;
}

[data-theme="light"] .lt-table th {
    background: #f8fafc !important;
    color: #475569 !important;
    border-bottom: 1.5px solid #cbd5e1 !important;
}

[data-theme="light"] .lt-table td {
    border-bottom: 1px solid #f1f5f9 !important;
    color: #1e293b !important;
}

[data-theme="light"] .lt-table tr:hover td {
    background: #f8fafc !important;
}

[data-theme="light"] .lt-table tr.user-row {
    background: #f0fdf4 !important;
    border-left: 3.5px solid #16a34a !important;
}

[data-theme="light"] .lt-table tr.user-row td {
    color: #064e3b !important;
    background: #f0fdf4 !important;
    font-weight: 800 !important;
}

[data-theme="light"] .lt-table tr.user-row td:last-child {
    color: #15803d !important;
    font-weight: 900 !important;
}

[data-theme="light"] .lt-table td:last-child {
    color: #0f172a !important;
    font-weight: 900 !important;
}

[data-theme="light"] .lt-club-col span {
    color: #0f172a !important;
    font-weight: 800 !important;
}

[data-theme="light"] .lt-pts-cell {
    color: #0f172a !important;
    font-weight: 900 !important;
}

[data-theme="light"] .lt-pts-cell.user-pts {
    color: #15803d !important;
}

[data-theme="light"] .lt-pos-badge {
    background: #f1f5f9 !important;
    color: #475569 !important;
    border: 1px solid #e2e8f0 !important;
}

[data-theme="light"] .lt-pos-badge.champ {
    background: #fef08a !important;
    color: #854d0e !important;
    border: 1px solid #eab308 !important;
    box-shadow: 0 0 6px rgba(234, 179, 8, 0.3) !important;
}

[data-theme="light"] .lt-pos-badge.cup {
    background: #e0f2fe !important;
    color: #0369a1 !important;
    border: 1px solid #7dd3fc !important;
}

[data-theme="light"] .lt-footer-actions span {
    color: #64748b !important;
}

/* 🏆 Banners Finalización de Temporada */
[data-theme="light"] .lt-champ-banner {
    background: radial-gradient(circle at 50% 0%, rgba(254, 240, 138, 0.6) 0%, #ffffff 85%) !important;
    border: 2px solid #f59e0b !important;
    box-shadow: 0 8px 24px rgba(245, 158, 11, 0.18) !important;
}

[data-theme="light"] .lt-champ-banner h3 {
    color: #b45309 !important;
}

[data-theme="light"] .lt-champ-banner p {
    color: #475569 !important;
}

[data-theme="light"] .lt-champ-sp-reward {
    background: #dcfce7 !important;
    border-color: #16a34a !important;
    color: #15803d !important;
    box-shadow: 0 2px 8px rgba(22, 163, 74, 0.2) !important;
}

/* 🛡️ Compensación óptica para escudos en Modo Carrera */
.lt-club-col img[src*="Bol%C3%ADvar"],
.lt-club-col img[src*="Bolivar"],
.lt-club-col img[src*="bolivar"],
.sim-team-shield[src*="Bol%C3%ADvar"],
.sim-team-shield[src*="Bolivar"],
.sim-team-shield[src*="bolivar"],
.carrera-mini-shield[src*="Bol%C3%ADvar"],
.carrera-mini-shield[src*="Bolivar"],
.carrera-mini-shield[src*="bolivar"] {
    transform: scale(1.04) !important;
}

.lt-club-col img[src*="Central_Norte"],
.lt-club-col img[src*="Centralnorte"],
.lt-club-col img[src*="centralnorte"],
.sim-team-shield[src*="Central_Norte"],
.sim-team-shield[src*="Centralnorte"],
.sim-team-shield[src*="centralnorte"],
.carrera-mini-shield[src*="Central_Norte"],
.carrera-mini-shield[src*="Centralnorte"],
.carrera-mini-shield[src*="centralnorte"] {
    transform: scale(1.10) !important;
}

.lt-club-col img[src*="ferro"],
.lt-club-col img[src*="Ferro"],
.sim-team-shield[src*="ferro"],
.sim-team-shield[src*="Ferro"],
.carrera-mini-shield[src*="ferro"],
.carrera-mini-shield[src*="Ferro"] {
    transform: scale(1.08) !important;
}

.lt-club-col img[src*="Instituto"],
.lt-club-col img[src*="instituto"],
.sim-team-shield[src*="Instituto"],
.sim-team-shield[src*="instituto"],
.carrera-mini-shield[src*="Instituto"],
.carrera-mini-shield[src*="instituto"] {
    transform: scale(1.06) !important;
}