


 



.toppage-head {
    margin-bottom: var(--space-4);
    padding: var(--space-4);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-lg, 14px);
    background: var(--glass-sunken);
}

.toppage-head__row {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
}

.toppage-head .badgepage-h1 { margin: 0; }

.toppage-head .badgelist-lead {
    margin: var(--space-2) 0 0;
    max-width: 72ch;
}



.toppage-me { flex: 0 0 auto; }

.toppage-find {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: var(--space-3);
}

.toppage-find__input {
    flex: 1 1 240px;
    max-width: 340px;
    padding: 9px var(--space-3);
    border: 1px solid var(--glass-border);
    border-radius: var(--radius-md);
    background: var(--glass);
    color: var(--text-primary);
    font: inherit;
    font-size: var(--text-sm);
    

    color-scheme: dark;
}

.toppage-find__input::placeholder { color: var(--text-muted); }

.toppage-find__input:focus-visible {
    outline: none;
    border-color: var(--accent, #9147ff);
    box-shadow: 0 0 0 2px var(--accent-dim, rgba(145, 71, 255, 0.16));
}

.toppage-find__go { flex: 0 0 auto; }



.toppage-list { margin-bottom: var(--space-4); }

.toptable {
    

    --top-cols: 58px 40px minmax(0, 1fr) 64px 70px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.toptable__head,
.toptable__row {
    display: grid;
    grid-template-columns: var(--top-cols);
    align-items: center;
    gap: var(--space-3);
}

.toptable__head {
    padding: 0 var(--space-3) 10px;
    border-bottom: 1px solid var(--glass-border);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    color: var(--text-muted);
}

.toptable__head span:first-child { text-align: right; }

.toptable__row {
    padding: 9px var(--space-3);
    border: 1px solid transparent;
    border-radius: var(--radius-md);
    background: var(--glass-sunken);
     
    scroll-margin-top: 110px;
    transition: background var(--dur) var(--ease),
                border-color var(--dur) var(--ease);
}

.toptable__row:hover { background: var(--glass-hover); }



.toptable__row.is-me {
    border-color: var(--accent, #9147ff);
    background: linear-gradient(90deg, var(--accent-dim, rgba(145, 71, 255, 0.16)),
                                var(--glass-sunken) 60%);
    box-shadow: 0 0 0 1px var(--accent-dim, rgba(145, 71, 255, 0.16));
}



.toptable__row:target {
    border-color: var(--accent-hover, #a970ff);
    animation: toptable-found 1.6s var(--ease, ease-out) 1;
}

@keyframes toptable-found {
    0%   { box-shadow: 0 0 0 0 var(--accent, #9147ff); }
    35%  { box-shadow: 0 0 0 4px var(--accent-dim, rgba(145, 71, 255, 0.16)); }
    100% { box-shadow: 0 0 0 0 rgba(0, 0, 0, 0); }
}

@media (prefers-reduced-motion: reduce) {
    .toptable__row:target { animation: none; }
}

.toptable__place {
    text-align: right;
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--text-muted);
    font-variant-numeric: tabular-nums;
}

.toptable__row--1 .toptable__place { color: #ffd76a; }
.toptable__row--2 .toptable__place { color: #d8dee9; }
.toptable__row--3 .toptable__place { color: #e0a06a; }



.toptable__face { min-width: 0; }
.toptable__face a { display: block; min-width: 0; }

.toptable__face img,
.toptable__letter {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 1;
    border-radius: var(--radius-full);
    object-fit: cover;
    background: var(--glass);
    border: 1px solid var(--glass-border);
}

.toptable__letter {
    display: grid;
    place-items: center;
    font-size: var(--text-sm);
    font-weight: 700;
    color: var(--text-secondary);
}



.toptable__who {
    display: flex;
    flex-direction: column;
    gap: 1px;
    min-width: 0;
}

.toptable__nick {
    display: block;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    font-size: var(--text-base);
    font-weight: 650;
    text-decoration: none;
}

.toptable__nick:hover,
.toptable__nick:focus-visible { text-decoration: underline; }

.toptable__rarest {
    display: flex;
    align-items: center;
    gap: 5px;
    min-width: 0;
    font-size: var(--text-xs);
    color: var(--text-muted);
}



.toptable__rarest-label {
    flex: 0 0 auto;
    white-space: nowrap;
    color: var(--text-faint, var(--text-muted));
    opacity: 0.75;
}

.toptable__rarest img { flex: 0 0 auto; opacity: 0.9; }

.toptable__rarest a {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--text-muted);
    text-decoration: none;
}

.toptable__rarest a:hover,
.toptable__rarest a:focus-visible { color: var(--text-secondary); }

.toptable__num {
    text-align: right;
    font-variant-numeric: tabular-nums;
}

.toptable__share {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.toptable__total b {
    font-size: var(--text-base);
    color: var(--text-strong);
}




.toppage-cta {
    display: flex;
    justify-content: center;
}



@media (max-width: 620px) {
    .toptable {
        --top-cols: 50px 34px minmax(0, 1fr) 58px;
    }

    .toptable__head span:nth-child(4),
    .toptable__share { display: none; }

    .toppage-head { padding: var(--space-3); }
}
