* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

:root {
    --background: #080808;
    --surface: #101010;
    --surface-hover: #171717;
    --border: #242424;
    --text: #f5f5f5;
    --muted: #858585;
    --dim: #555555;
}

body {
    min-height: 100vh;

    background:
        radial-gradient(
            circle at top,
            #161616 0%,
            #080808 42%
        );

    color: var(--text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;
}


button,
input {
    font: inherit;
}


/* TOP BAR */

.topbar {
    height: 70px;

    padding: 0 32px;

    display: flex;
    align-items: center;
    justify-content: space-between;

    border-bottom: 1px solid var(--border);

    background: rgba(8, 8, 8, 0.92);

    backdrop-filter: blur(12px);

    position: sticky;
    top: 0;

    z-index: 100;
}


.logo {
    border: 0;

    background: transparent;

    color: #ffffff;

    display: flex;
    align-items: center;

    gap: 9px;

    font-size: 20px;
    font-weight: 900;

    cursor: pointer;
}


.logo-mark {
    font-size: 24px;
}


.navigation {
    display: flex;
    align-items: center;

    gap: 4px;
}


.nav-btn {
    border: 0;

    background: transparent;

    color: #777777;

    padding: 9px 13px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 700;

    transition: 0.18s;
}


.nav-btn:hover {
    color: #ffffff;
    background: #151515;
}


.nav-btn.active {
    color: #ffffff;
    background: #1c1c1c;
}


.discord-button {
    border: 0;

    background: #ffffff;

    color: #000000;

    padding: 9px 16px;

    border-radius: 7px;

    cursor: pointer;

    font-size: 13px;
    font-weight: 800;

    transition: 0.18s;
}


.discord-button:hover {
    background: #dcdcdc;

    transform: translateY(-1px);
}


/* HERO */

.hero {
    max-width: 900px;

    margin: auto;

    padding:
        80px 20px
        55px;

    text-align: center;
}


.category-icon {
    font-size: 34px;

    margin-bottom: 12px;
}


.eyebrow,
.section-label {
    color: #777777;

    font-size: 11px;

    font-weight: 900;

    letter-spacing: 2px;
}


.hero h1 {
    margin-top: 10px;

    color: #ffffff;

    font-size:
        clamp(
            44px,
            8vw,
            72px
        );

    line-height: 1;

    letter-spacing: -3px;

    font-weight: 950;
}


.hero p {
    max-width: 570px;

    margin:
        20px auto
        0;

    color: #777777;

    font-size: 15px;

    line-height: 1.6;
}


/* SEARCH */

.search-box {
    max-width: 600px;

    margin:
        32px auto
        0;
}


#searchInput {
    width: 100%;

    height: 52px;

    padding:
        0 18px;

    background: #111111;

    color: #ffffff;

    border:
        1px solid
        #292929;

    border-radius: 9px;

    outline: none;

    font-size: 14px;

    transition: 0.2s;
}


#searchInput::placeholder {
    color: #555555;
}


#searchInput:focus {
    border-color: #505050;

    background: #141414;
}


/* LEADERBOARD */

.leaderboard-section {
    max-width: 1050px;

    margin: auto;

    padding:
        10px 20px
        90px;
}


.section-header {
    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    margin-bottom: 22px;
}


.section-header h2 {
    margin-top: 7px;

    color: #ffffff;

    font-size: 29px;

    letter-spacing: -1px;
}


.player-counter {
    display: flex;

    align-items: baseline;

    gap: 6px;

    color: #555555;

    font-size: 12px;
}


.player-counter strong {
    color: #ffffff;

    font-size: 22px;
}


/* LOADING */

.loading {
    padding: 45px 20px;

    color: #666666;

    text-align: center;

    font-size: 14px;
}


/* PLAYER LIST */

.player-rows {
    display: flex;

    flex-direction: column;

    gap: 7px;
}


.player-row {
    min-height: 68px;

    display: grid;

    grid-template-columns:
        55px
        1fr
        100px
        100px;

    align-items: center;

    padding:
        10px 18px;

    background: var(--surface);

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    transition:
        background 0.18s,
        border-color 0.18s,
        transform 0.18s;
}


.player-row:hover {
    background: var(--surface-hover);

    border-color: #303030;

    transform: translateX(2px);
}


.player-rank {
    color: #666666;

    font-size: 13px;

    font-weight: 800;
}


.player-info {
    display: flex;

    align-items: center;

    gap: 13px;
}


.small-avatar {
    width: 42px;
    height: 42px;

    border-radius: 6px;

    image-rendering: pixelated;

    background: #181818;
}


.player-info strong {
    color: #ffffff;

    font-size: 14px;

    font-weight: 800;
}


.row-score {
    color: #ffffff;

    text-align: center;

    font-size: 18px;

    font-weight: 900;
}


.row-reports {
    color: #666666;

    text-align: right;

    font-size: 12px;
}


.empty-state {
    padding: 55px 20px;

    border:
        1px solid
        var(--border);

    border-radius: 9px;

    background: var(--surface);

    color: #666666;

    text-align: center;

    font-size: 14px;
}


/* FOOTER */

footer {
    border-top:
        1px solid
        var(--border);

    padding:
        35px 20px;

    text-align: center;
}


.footer-logo {
    color: #ffffff;

    font-size: 17px;

    font-weight: 900;
}


footer p {
    margin-top: 7px;

    color: #555555;

    font-size: 12px;
}


/* MOBILE */

@media (max-width: 800px) {

    .topbar {
        height: auto;

        min-height: 70px;

        padding:
            13px 16px;

        flex-wrap: wrap;

        gap: 10px;
    }


    .navigation {
        width: 100%;

        order: 3;

        overflow-x: auto;

        justify-content: center;
    }


    .nav-btn {
        white-space: nowrap;
    }


    .hero {
        padding-top: 55px;
    }


    .player-row {
        grid-template-columns:
            42px
            1fr
            70px;
    }


    .row-reports {
        display: none;
    }

}


@media (max-width: 500px) {

    .hero h1 {
        letter-spacing: -2px;
    }


    .section-header h2 {
        font-size: 25px;
    }


    .discord-button {
        padding:
            8px 12px;
    }


    .player-row {
        padding:
            9px 12px;
    }

}