:root {
    color-scheme: dark;

    --bg: #0d1117;
    --panel: #151b23;
    --panel-hover: #1a222c;
    --line: #28323d;
    --line-soft: #202934;
    --text: #f4f7fa;
    --muted: #98a7b7;
    --faint: #6f7e8d;
    --cyan: #49c8ff;
    --gold: #ffd56a;
    --silver: #c8d0d8;
    --bronze: #d99b6c;
    --max: 1180px;
}

* {
    box-sizing: border-box;
}

html,
body {
    margin: 0;
    min-height: 100%;
    background: var(--bg);
    color: var(--text);
    font-family: Arial, Helvetica, sans-serif;
}

a {
    color: inherit;
    text-decoration: none;
}

button,
input {
    font: inherit;
}

.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    border-bottom: 1px solid var(--line);
    background: rgba(13,17,23,.97);
}

.header-inner {
    width: min(calc(100% - 32px), var(--max));
    min-height: 64px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}

.brand {
    font-size: 20px;
    font-weight: 800;
    letter-spacing: .7px;
}

.brand span {
    color: var(--cyan);
}

.nav {
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav a {
    padding: 9px 12px;
    border-radius: 8px;
    color: var(--muted);
    font-size: 14px;
    font-weight: 700;
}

.nav a:hover,
.nav a.active {
    color: var(--text);
    background: #1b242e;
}

.page {
    width: min(calc(100% - 32px), var(--max));
    margin: 0 auto;
    padding: 48px 0 70px;
}

.hero {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 32px;
    margin-bottom: 30px;
}

.hero-main {
    max-width: 700px;
}

.eyebrow {
    margin-bottom: 9px;
    color: var(--cyan);
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
}

h1 {
    margin: 0;
    font-size: clamp(36px,6vw,56px);
    line-height: 1;
    letter-spacing: -1.8px;
}

.hero-copy {
    max-width: 650px;
    margin: 15px 0 0;
    color: var(--muted);
    font-size: 16px;
    line-height: 1.5;
}

.hero-stats {
    display: flex;
    gap: 24px;
}

.hero-stat-number {
    display: block;
    font-size: 25px;
    font-weight: 800;
    line-height: 1;
}

.hero-stat-label {
    display: block;
    margin-top: 6px;
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.search-row {
    margin-bottom: 14px;
}

.search {
    width: 100%;
    height: 48px;
    padding: 0 15px;
    border: 1px solid var(--line);
    border-radius: 10px;
    outline: none;
    background: var(--panel);
    color: var(--text);
    font-size: 15px;
}

.search:focus {
    border-color: #42718a;
}

.toolbar {
    min-height: 34px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 13px;
}

.leaderboard {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: var(--panel);
}

.leader-header,
.leader-row {
    display: grid;
    grid-template-columns:
        72px
        minmax(240px,1.5fr)
        120px
        130px
        180px
        30px;
    align-items: center;
    gap: 16px;
}

.leader-header {
    min-height: 44px;
    padding: 0 16px;
    border-bottom: 1px solid var(--line);
    color: var(--faint);
    font-size: 11px;
    font-weight: 800;
    letter-spacing: .5px;
    text-transform: uppercase;
}

.leader-row {
    min-height: 76px;
    padding: 10px 16px;
    border-bottom: 1px solid var(--line-soft);
    transition: background 120ms ease;
}

.leader-row:last-child {
    border-bottom: 0;
}

.leader-row:hover {
    background: var(--panel-hover);
}

.rank {
    font-size: 18px;
    font-weight: 800;
}

.rank-1 {
    color: var(--gold);
}

.rank-2 {
    color: var(--silver);
}

.rank-3 {
    color: var(--bronze);
}

.collector {
    min-width: 0;
    display: flex;
    align-items: center;
    gap: 12px;
}

.avatar {
    width: 44px;
    height: 44px;
    flex: 0 0 auto;
    overflow: hidden;
    display: grid;
    place-items: center;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: #0d141b;
    color: var(--cyan);
    font-size: 15px;
    font-weight: 800;
}

.avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.collector-copy {
    min-width: 0;
}

.collector-name {
    overflow: hidden;
    font-size: 16px;
    font-weight: 800;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.collector-login {
    overflow: hidden;
    margin-top: 3px;
    color: var(--faint);
    font-size: 12px;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.value {
    color: #dce3e9;
    font-size: 15px;
    font-weight: 800;
}

.value-label {
    display: none;
}

.last-seen {
    color: var(--muted);
    font-size: 13px;
}

.arrow {
    color: var(--faint);
    font-size: 22px;
    text-align: right;
}

.loading,
.empty,
.error {
    padding: 55px 20px;
    color: var(--muted);
    text-align: center;
}

.error {
    color: #ffaaaa;
}

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 20px;
}

.page-button {
    min-width: 40px;
    height: 40px;
    display: grid;
    place-items: center;
    padding: 0 10px;
    border: 1px solid var(--line);
    border-radius: 9px;
    background: var(--panel);
    color: var(--text);
    font-weight: 700;
    cursor: pointer;
}

.page-button:hover:not(:disabled),
.page-button.active {
    border-color: #3d7089;
    background: #1b2a34;
}

.page-button:disabled {
    opacity: .35;
    cursor: default;
}

.page-gap {
    min-width: 24px;
    color: var(--faint);
    text-align: center;
}

.observed-note {
    margin-top: 22px;
    color: var(--faint);
    font-size: 12px;
}

@media (max-width:900px) {

    .leader-header,
    .leader-row {
        grid-template-columns:
            60px
            minmax(220px,1fr)
            100px
            120px
            30px;
    }

    .column-last,
    .last-seen {
        display: none;
    }
}

@media (max-width:650px) {

    .header-inner {
        width: calc(100% - 22px);
        min-height: 58px;
        padding: 9px 0;
    }

    .brand {
        font-size: 18px;
    }

    .nav {
        gap: 2px;
    }

    .nav a {
        padding: 8px 7px;
        font-size: 12px;
    }

    .page {
        width: calc(100% - 22px);
        padding: 34px 0 52px;
    }

    .hero {
        align-items: flex-start;
        flex-direction: column;
        gap: 22px;
    }

    h1 {
        font-size: 40px;
    }

    .hero-stats {
        width: 100%;
        justify-content: space-between;
    }

    .leader-header {
        display: none;
    }

    .leader-row {
        min-height: 78px;
        grid-template-columns:
            43px
            minmax(0,1fr)
            72px
            24px;
        gap: 9px;
        padding: 10px 11px;
    }

    .column-sightings,
    .sightings {
        display: none;
    }

    .rank {
        font-size: 15px;
    }

    .avatar {
        width: 40px;
        height: 40px;
    }

    .collector-name {
        font-size: 14px;
    }

    .collector-login {
        font-size: 11px;
    }

    .value {
        text-align: right;
        font-size: 14px;
    }

    .value-label {
        display: block;
        margin-top: 2px;
        color: var(--faint);
        font-size: 9px;
        font-weight: 700;
        text-align: right;
        text-transform: uppercase;
    }
}

@media (max-width:430px) {

    .nav a:first-child {
        display: none;
    }
}
