* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: Inter, Arial, sans-serif;
}

body {
    background: #0b0f17;
    color: #e5e7eb;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 40px;
    background: #0f1624;
    border-bottom: 1px solid #1f2937;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
}

.logo img {
    width: 36px;
    height: 36px;
}

.logo span {
    font-size: 22px;
    font-weight: 700;
    color: #facc15;
}

.navbar nav a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #ffffff;
    font-weight: 600;
    text-decoration: none;
    border-bottom: 2px solid #facc15;
    padding: 4px 8px 6px 8px;
}

.nav-icon {
    width: 20px;
    height: 20px;
    object-fit: contain;
}

main {
    padding: 40px;
}

.leaderboard {
    background: #0f1624;
    border-radius: 14px;
    overflow: hidden;
}

.leaderboard-header,
.leaderboard-row {
    display: grid;
    grid-template-columns: 60px 2fr 1fr 3fr;
    padding: 16px 20px;
    align-items: center;
}

.leaderboard-header {
    background: #111827;
    font-size: 13px;
    color: #9ca3af;
    font-weight: 600;
    text-transform: uppercase;
}

.leaderboard-row {
    border-top: 1px solid #1f2937;
}

.badges {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.badge img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    margin-bottom: 4px;
    display: block;
}

.badge span {
    display: inline-block;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 11px;
    font-weight: 800;
    background: #1f2937;
    color: #9ca3af;
}

.rank-gold { background: #3a3015 !important; color: #facc15 !important; }
.rank-silver { background: #374151 !important; color: #e5e7eb !important; }
.rank-bronze { background: #261f1a !important; color: #cd7f32 !important; }
.rank-ht4 { background: #25242a !important; color: #8c8695 !important; }
.rank-lt4 { background: #20242d !important; color: #737b88 !important; }

@media (max-width: 900px) {
    .leaderboard-header, .leaderboard-row {
        grid-template-columns: 40px 1.5fr 1fr 2fr;
    }
}