
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800;900&display=swap');

:root {
    --bg: #090b10;
    --panel: #11151e;
    --panel-light: #171d29;
    --blue: #35baff;
    --text: #f4f7ff;
    --muted: #8993a5;
    --border: rgba(255,255,255,.08);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    background: var(--bg);
    color: var(--text);
    font-family: 'Inter', sans-serif;
    min-height: 100vh;
    overflow-x: hidden;
}

.background-overlay {
    position: fixed;
    inset: 0;
    z-index: -1;
    pointer-events: none;
    background:
        radial-gradient(ellipse at 50% 0%, rgba(30,135,210,.16), transparent 55%),
        linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px);
    background-size: auto, 45px 45px, 45px 45px;
}

a {
    color: inherit;
    text-decoration: none;
}

.navbar {
    height: 78px;
    padding: 0 8%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid var(--border);
    background: rgba(9,11,16,.88);
    backdrop-filter: blur(15px);
    position: sticky;
    top: 0;
    z-index: 10;
}

.logo, .footer-logo {
    font-size: 25px;
    font-weight: 900;
    letter-spacing: -1.5px;
}

.logo span, .footer-logo span {
    color: var(--blue);
}

.navbar nav {
    display: flex;
    align-items: center;
    gap: 30px;
}

.navbar nav a {
    color: var(--muted);
    font-size: 12px;
    font-weight: 700;
    transition: .2s;
}

.navbar nav a:hover {
    color: white;
}

.navbar nav .play-button {
    background: var(--blue);
    color: #06101a;
    padding: 13px 19px;
    border-radius: 5px;
    font-weight: 900;
}

.hero {
    min-height: 470px;
    padding: 125px 20px 100px;
    text-align: center;
    display: flex;
    align-items: center;
    flex-direction: column;
}

.hero-label, .section-label {
    color: var(--blue);
    font-size: 11px;
    letter-spacing: 3px;
    font-weight: 800;
}

.hero h1 {
    font-size: clamp(42px, 8vw, 78px);
    font-weight: 900;
    letter-spacing: -4px;
    margin: 20px 0;
}

.hero h1 span {
    color: var(--blue);
}

.hero p, .section-heading p {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.8;
}

.hero-button {
    margin-top: 32px;
    background: var(--blue);
    color: #06101a;
    padding: 16px 25px;
    border-radius: 5px;
    font-size: 12px;
    font-weight: 900;
    transition: .2s;
}

.hero-button:hover, .copy-button:hover {
    transform: translateY(-3px);
    filter: brightness(1.1);
}

.leaderboard-section, .server-section {
    padding: 85px 8%;
    max-width: 1200px;
    margin: auto;
}

.section-heading {
    text-align: center;
    margin-bottom: 35px;
}

.section-heading h2 {
    font-size: 35px;
    font-weight: 900;
    letter-spacing: -1.5px;
    margin: 12px 0;
}

.tabs {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 22px;
}

.tab {
    background: var(--panel);
    border: 1px solid var(--border);
    color: var(--muted);
    padding: 13px 24px;
    border-radius: 5px;
    font-size: 11px;
    font-weight: 800;
    cursor: pointer;
    transition: .2s;
}

.tab:hover, .tab.active {
    background: var(--blue);
    color: #06101a;
    border-color: var(--blue);
}

.tier-filters {
    text-align: center;
    margin-bottom: 18px;
}

.tier-filters select {
    background: var(--panel);
    color: white;
    border: 1px solid var(--border);
    padding: 12px 18px;
    border-radius: 5px;
    outline: none;
}

.leaderboard-card {
    background: var(--panel);
    border: 1px solid var(--border);
    border-radius: 9px;
    overflow: hidden;
}

.table-heading, .player-row {
    display: grid;
    grid-template-columns: 90px 1fr 130px;
    align-items: center;
    padding: 19px 25px;
}

.table-heading {
    background: var(--panel-light);
    color: var(--muted);
    font-size: 10px;
    font-weight: 900;
    letter-spacing: 1px;
}

.table-heading span:last-child, .player-row span:last-child {
    text-align: right;
}

.player-row {
    min-height: 65px;
    border-top: 1px solid var(--border);
    font-size: 13px;
    font-weight: 700;
    transition: .2s;
}

.player-row:hover {
    background: rgba(53,186,255,.06);
}

.rank {
    color: var(--blue);
    font-weight: 900;
}

.player-name {
    display: flex;
    align-items: center;
    gap: 12px;
}

.player-avatar {
    width: 28px;
    height: 28px;
    image-rendering: pixelated;
}

.player-value {
    color: var(--blue);
}

.loading, .empty {
    text-align: center;
    color: var(--muted);
    padding: 45px 15px;
    font-size: 13px;
}

.last-updated {
    text-align: center;
    color: var(--muted);
    font-size: 11px;
    margin-top: 18px;
}

.server-section {
    padding-top: 60px;
    padding-bottom: 110px;
}

.server-card {
    background: linear-gradient(145deg, #151e2b, #10141d);
    border: 1px solid rgba(53,186,255,.2);
    border-radius: 10px;
    max-width: 600px;
    margin: auto;
    text-align: center;
    padding: 40px 20px;
}

.server-status {
    color: #72e6a1;
    font-size: 11px;
    font-weight: 900;
    letter-spacing: 2px;
}

.status-dot {
    display: inline-block;
    width: 8px;
    height: 8px;
    background: #72e6a1;
    border-radius: 50%;
    margin-right: 7px;
}

.server-card h3 {
    font-size: clamp(19px, 4vw, 28px);
    margin: 25px 0;
    overflow-wrap: anywhere;
}

.copy-button {
    background: var(--blue);
    color: #06101a;
    border: none;
    border-radius: 5px;
    padding: 14px 23px;
    font-size: 11px;
    font-weight: 900;
    cursor: pointer;
    transition: .2s;
}

.server-card p {
    color: var(--muted);
    font-size: 11px;
    margin-top: 18px;
}

footer {
    text-align: center;
    padding: 40px 20px;
    border-top: 1px solid var(--border);
    background: #080a0e;
}

.footer-logo {
    margin-bottom: 10px;
}

footer p {
    color: var(--muted);
    font-size: 11px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 22px;
    margin: 20px 0;
}

.footer-links a {
    color: var(--blue);
    font-size: 12px;
    font-weight: 700;
}

.copyright {
    opacity: .6;
}

@media (max-width: 750px) {
    .navbar {
        height: auto;
        padding: 20px;
        flex-direction: column;
        gap: 18px;
    }

    .navbar nav {
        justify-content: center;
        flex-wrap: wrap;
        gap: 15px;
    }

    .navbar nav a {
        font-size: 10px;
    }

    .hero {
        padding-top: 90px;
    }

    .hero h1 {
        letter-spacing: -2px;
    }

    .leaderboard-section, .server-section {
        padding-left: 15px;
        padding-right: 15px;
    }

    .table-heading, .player-row {
        grid-template-columns: 55px 1fr 85px;
        padding: 16px 12px;
    }
}
