/* EE2 — League & Level hub */

.league-page {
    max-width: 960px;
}

.league-hero-card {
    background: linear-gradient(145deg, rgba(15, 18, 28, 0.95), rgba(25, 30, 45, 0.92));
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.35rem 1.5rem 1.25rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 0 0 1px var(--league-accent, rgba(56, 184, 168, 0.15)) inset;
}

.league-hero-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1rem;
}

.league-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    font-weight: 800;
    font-size: 1.05rem;
    letter-spacing: 0.02em;
    color: var(--league-color, var(--text-primary));
}

.league-badge i.fa-star {
    color: #fbbf24;
    filter: drop-shadow(0 0 6px rgba(251, 191, 36, 0.55));
}

.league-badge--legend i.fa-star {
    color: #f87171;
    filter: drop-shadow(0 0 8px rgba(248, 113, 113, 0.65));
}

.league-level-line {
    margin-top: 0.35rem;
    font-size: 0.95rem;
    color: var(--text-secondary);
}

.league-level-line strong {
    color: var(--text-primary);
    font-weight: 700;
}

.league-legend-tag {
    margin-left: 0.5rem;
    padding: 0.12rem 0.45rem;
    border-radius: 999px;
    font-size: 0.68rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    background: rgba(248, 113, 113, 0.2);
    color: #fca5a5;
    border: 1px solid rgba(248, 113, 113, 0.45);
}

.league-xp-numbers {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.league-xp-numbers .xp-big {
    font-size: 1.65rem;
    font-weight: 800;
    color: var(--text-primary);
}

.league-xp-numbers .xp-sep {
    color: var(--text-secondary);
    margin: 0 0.15rem;
}

.league-xp-numbers .xp-big-muted {
    font-size: 1.35rem;
    font-weight: 700;
    color: var(--text-secondary);
}

.league-xp-numbers .xp-label {
    display: block;
    font-size: 0.78rem;
    color: var(--text-secondary);
    margin-top: 0.15rem;
}

.league-progress-track {
    height: 14px;
    border-radius: 999px;
    background: rgba(0, 0, 0, 0.35);
    overflow: hidden;
    border: 1px solid var(--border);
}

.league-progress-fill {
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--league-color, #38b8a8), rgba(56, 184, 168, 0.85));
    box-shadow: 0 0 16px var(--league-accent, rgba(56, 184, 168, 0.35));
    transition: width 0.35s ease;
}

.league-progress-caption {
    margin: 0.5rem 0 0;
    font-size: 0.8rem;
    color: var(--text-secondary);
}

.league-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
}

@media (max-width: 820px) {
    .league-two-col {
        grid-template-columns: 1fr;
    }
}

.league-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.15rem 1.25rem;
}

.league-panel h2 {
    margin: 0 0 0.5rem;
    font-size: 1rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 0.45rem;
}

.league-muted {
    color: var(--text-secondary);
    font-size: 0.86rem;
    margin: 0 0 0.85rem;
    line-height: 1.45;
}

.league-ladder {
    list-style: none;
    margin: 0;
    padding: 0;
}

.league-ladder li {
    display: grid;
    grid-template-columns: 52px 14px 1fr;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.04);
    font-size: 0.88rem;
    color: var(--text-secondary);
}

.league-ladder li:last-child {
    border-bottom: none;
}

.league-ladder li.is-earned {
    color: var(--text-primary);
}

.league-ladder li.is-current {
    font-weight: 700;
}

.league-ladder .ladder-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.league-perks {
    margin: 0;
    padding-left: 1rem;
    font-size: 0.88rem;
    color: var(--text-secondary);
    line-height: 1.55;
}

.league-perks li {
    margin-bottom: 0.55rem;
}

.league-perks li strong {
    color: var(--text-primary);
}

.league-perks i {
    width: 1.1rem;
    color: var(--brand-green);
}

.league-panel--earn {
    margin-top: 0.25rem;
}

.table-wrap {
    overflow-x: auto;
}

.league-earn-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.88rem;
}

.league-earn-table th,
.league-earn-table td {
    text-align: left;
    padding: 0.65rem 0.75rem;
    border-bottom: 1px solid var(--border);
}

.league-earn-table th {
    color: var(--text-secondary);
    font-weight: 600;
    font-size: 0.78rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.league-earn-table td strong {
    color: var(--accent-cyan, #5eead4);
}

.channel-league-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    margin-left: 0.35rem;
    padding: 0.15rem 0.55rem;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 700;
    vertical-align: middle;
    border: 1px solid rgba(255, 255, 255, 0.12);
    background: rgba(0, 0, 0, 0.25);
}

.channel-league-pill i.fa-star {
    font-size: 0.65rem;
}

.header-league-link {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.35rem 0.65rem;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--text-primary);
    text-decoration: none;
    background: rgba(0, 0, 0, 0.2);
}

.header-league-link:hover {
    border-color: rgba(56, 184, 168, 0.45);
}
