/* League System - tier accent colors and small layout helpers */

/* The API emits the canonical English tier keys (bronze/silver/gold/
   platinum/diamond); only the German aliases were styled here, so silver,
   platinum and diamond rendered with no tier colour at all. Both spellings
   are kept so any cached client keeps working. */
.league-tier-bronze { color: #cd7f32; }
.league-tier-silver,
.league-tier-silber { color: #c0c0c0; }
.league-tier-gold { color: #ffd700; }
.league-tier-platinum,
.league-tier-platin { color: #a5b4fc; }
.league-tier-diamond,
.league-tier-diamant { color: #6ee7f5; }

.league-hero {
    border-radius: 16px;
    padding: 20px;
    text-align: center;
    background: linear-gradient(135deg, rgba(255,255,255,0.06), rgba(255,255,255,0.01));
    margin-bottom: 16px;
}

.league-hero-icon {
    font-size: 48px;
    line-height: 1;
    display: block;
    margin-bottom: 8px;
    filter: drop-shadow(0 0 12px currentColor);
}

.league-tabs {
    display: flex;
    gap: 6px;
    margin-bottom: 12px;
    overflow-x: auto;
}

.league-tab {
    flex: 1;
    /* Five tabs across a ~360px phone leaves ~64px each; the old 8px padding
       made them ~28px tall, well under a comfortable touch target. */
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px 6px;
    border-radius: 10px;
    text-align: center;
    font-size: 10px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.08);
    cursor: pointer;
    white-space: nowrap;
}

.league-tab.active {
    background: rgba(255,255,255,0.12);
    border-color: currentColor;
}

.league-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 12px;
    border-radius: 10px;
}

.league-row.me {
    background: rgba(0, 242, 254, 0.08);
    border: 1px solid rgba(0, 242, 254, 0.3);
}

.league-row + .league-row {
    margin-top: 4px;
}

/* Promotion / relegation standing — the cut lines the weekly reset actually
   uses, surfaced in the UI for the first time. */
.league-zone {
    border-radius: 14px;
    padding: 12px 13px;
    margin-bottom: 12px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    background: rgba(255, 255, 255, 0.04);
}

.league-zone-title {
    font-size: 13px;
    font-weight: 800;
    margin-bottom: 3px;
}

.league-zone-detail {
    font-size: 11px;
    line-height: 1.45;
    color: var(--text-secondary, #9aa7b4);
}

.league-zone--promo {
    border-color: rgba(52, 211, 153, 0.45);
    background: linear-gradient(180deg, rgba(52, 211, 153, 0.12), rgba(52, 211, 153, 0.02));
}
.league-zone--promo .league-zone-title { color: #34d399; }

.league-zone--danger {
    border-color: rgba(248, 113, 113, 0.45);
    background: linear-gradient(180deg, rgba(248, 113, 113, 0.12), rgba(248, 113, 113, 0.02));
}
.league-zone--danger .league-zone-title { color: #f87171; }

.league-zone--warn {
    border-color: rgba(255, 215, 0, 0.4);
    background: linear-gradient(180deg, rgba(255, 215, 0, 0.1), rgba(255, 215, 0, 0.02));
}
.league-zone--warn .league-zone-title { color: #ffd700; }

.league-zone--safe .league-zone-title { color: var(--text-primary, #fff); }
.league-zone--neutral .league-zone-title { color: var(--text-primary, #fff); }

/* Weekly prize table for the current tier. */
.league-prizes {
    display: flex;
    gap: 8px;
}

.league-prize {
    flex: 1;
    text-align: center;
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 12px;
    padding: 8px 4px;
}

.league-prize-rank {
    font-size: 16px;
    line-height: 1.2;
}

.league-prize-amount {
    font-size: 12px;
    font-weight: 800;
    color: #ffd700;
    margin-top: 2px;
}

/* Cut lines marked directly on the leaderboard rows. */
.league-row--promo {
    box-shadow: inset 2px 0 0 #34d399;
}

.league-row--relegation {
    box-shadow: inset 2px 0 0 #f87171;
}

.league-row-zone {
    font-size: 10px;
    font-weight: 900;
}
