/*
 * leaderboard.css — Papan Peringkat page. Category tabs, ranked rows, and
 * the "Musim Top Spender" per-city season card. Same "nested-on-tan"
 * convention as everywhere else.
 */

.lb-main {
    position: relative; z-index: 2; flex: 1;
    display: flex; padding: 16px 20px; min-height: 0; overflow: hidden;
}
.lb-panel { flex: 1; display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; min-height: 0; }

.lb-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.lb-tab {
    font-family: inherit; font-size: 11.5px; font-weight: 700; letter-spacing: .3px;
    padding: 7px 12px; border-radius: 999px; cursor: pointer;
    background: rgba(58,36,16,.06); border: 1px solid rgba(58,36,16,.15); color: #6b4520;
}
.lb-tab.active { background: rgba(200,100,26,.16); border-color: rgba(200,100,26,.5); color: #c8641a; }
.lb-tab:hover:not(.active) { background: rgba(58,36,16,.1); }

.lb-city-picker select {
    font-family: inherit; font-size: 12.5px; padding: 7px 10px; border-radius: 8px;
    background: rgba(58,36,16,.06); border: 1px solid rgba(58,36,16,.2); color: #2c1a08;
    max-width: 260px;
}

.lb-list { display: flex; flex-direction: column; gap: 6px; }
.lb-row {
    display: flex; align-items: center; gap: 10px;
    background: rgba(58,36,16,.05); border: 1px solid rgba(58,36,16,.12);
    border-radius: 9px; padding: 8px 12px;
}
.lb-row-me { background: rgba(200,100,26,.12); border-color: rgba(200,100,26,.45); }
.lb-row-pp { cursor: pointer; transition: background .1s, border-color .1s; }
.lb-row-pp:hover { background: rgba(200,100,26,.14); border-color: rgba(200,100,26,.4); }
.lb-season-city-row.lb-row-pp:hover { background: rgba(200,100,26,.12); }
.lb-row-rank { width: 32px; flex-shrink: 0; text-align: center; font-size: 14px; font-weight: 800; color: #8a6a48; font-family: var(--font-mono); }
.lb-row-avatar {
    width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0; overflow: hidden;
    background: rgba(58,36,16,.1); display: flex; align-items: center; justify-content: center; font-size: 14px;
}
.lb-row-avatar img { width: 100%; height: 100%; object-fit: cover; }
.lb-row-mid { flex: 1; min-width: 0; }
.lb-row-name { font-size: 12px; font-weight: 700; color: #2c1a08; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lb-you-tag { font-size: 9px; background: #c8641a; color: #fff8ec; padding: 1px 6px; border-radius: 999px; letter-spacing: .5px; margin-left: 4px; }
.lb-row-city { font-size: 10.5px; color: #8a6a48; }
.lb-row-value { font-size: 12px; font-weight: 800; color: #c8641a; font-family: var(--font-mono); text-align: right; flex-shrink: 0; }
.lb-row-unit { font-size: 9px; color: #8a6a48; font-weight: 600; }

.lb-me-pin { margin-top: 8px; border-top: 1px dashed rgba(58,36,16,.2); padding-top: 8px; }

.lb-season-holder { margin-top: 14px; display: flex; flex-direction: column; gap: 10px; }
.lb-season-card {
    background: rgba(58,36,16,.06); border: 1px solid rgba(58,36,16,.15);
    border-radius: 10px; padding: 14px 16px;
}
.lb-season-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.lb-season-title { font-size: 13px; font-weight: 800; color: #2c1a08; }
.lb-season-badge { font-size: 10.5px; font-weight: 800; letter-spacing: 1px; padding: 3px 10px; border-radius: 999px; flex-shrink: 0; }
.lb-season-badge-open { background: rgba(43,138,62,.14); color: #2b8a3e; border: 1px solid rgba(43,138,62,.4); }
.lb-season-badge-finished { background: rgba(138,106,72,.14); color: #8a6a48; border: 1px solid rgba(138,106,72,.35); }
.lb-season-narrative { font-size: 12.5px; color: #6b4520; margin: 8px 0; line-height: 1.5; }
.lb-season-meta { font-size: 10.5px; color: #8a6a48; margin-bottom: 10px; font-family: var(--font-mono); }
.lb-season-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.lb-season-sublabel { font-size: 10.5px; letter-spacing: 1px; font-weight: 700; color: #8a6a48; margin-bottom: 6px; }
.lb-season-reward-row, .lb-season-city-row {
    display: flex; align-items: center; justify-content: space-between; gap: 8px;
    font-size: 12px; color: #2c1a08; padding: 5px 0; border-bottom: 1px dashed rgba(58,36,16,.12);
}
.lb-season-reward-rank { font-weight: 800; color: #c8641a; font-family: var(--font-mono); }
.lb-season-city-row.lb-row-me { background: rgba(200,100,26,.1); border-radius: 6px; padding: 5px 8px; border-bottom: none; }
.lb-hint { font-size: 11.5px; color: rgba(58,36,16,.5); }

.lb-season-won {
    margin-top: 10px; padding: 10px 12px; border-radius: 8px; font-size: 12.5px; font-weight: 800;
    background: rgba(200,100,26,.14); border: 1px solid rgba(200,100,26,.5); color: #c8641a;
}
.lb-season-ended {
    margin-top: 10px; padding: 8px 12px; border-radius: 8px; font-size: 12px;
    background: rgba(58,36,16,.05); border: 1px solid rgba(58,36,16,.15); color: #8a6a48;
}

@container (max-width: 720px) {
    .lb-season-cols { grid-template-columns: 1fr; }
}
