.hl-lb {
--lb-gold: var(--ds-primary);
--lb-ink: var(--hl-text-primary, var(--text, rgba(255, 255, 255, 0.95)));
--lb-muted: var(--hl-text-tertiary, var(--text-muted, rgba(255, 255, 255, 0.55)));
--lb-line: var(--hl-border-default, var(--border, rgba(255, 255, 255, 0.1)));
--lb-surface: var(--hl-crystal-bg, linear-gradient(180deg, rgba(12, 12, 14, 0.96), rgba(0, 0, 0, 0.98)));
width: 100%;
min-width: 0;
max-width: 1080px;
margin: 0 auto;
padding: 8px 0 40px;
color: var(--lb-ink)}
.hl-lb *,
.hl-lb *::before,
.hl-lb *::after {
box-sizing: border-box;
}
.hl-lb a {
color: inherit;
}
.hl-lb-hero {
position: relative;
overflow: hidden;
display: grid;
grid-template-columns: minmax(0, 1.45fr) minmax(210px, 0.7fr);
gap: 18px;
padding: 24px 26px;
margin-bottom: 16px;
border: 1px solid var(--lb-line);
border-radius: 16px;
background:
radial-gradient(circle at 12% 18%, color-mix(in srgb, var(--ds-primary) 18%, transparent), transparent 36%),
radial-gradient(circle at 92% 0%, color-mix(in srgb, var(--ds-primary) 8%, transparent), transparent 28%),
var(--lb-surface);
box-shadow: 0 10px 36px rgba(0, 0, 0, 0.45), inset 0 1px 0 color-mix(in srgb, var(--ds-fg) 5%, transparent)}
.hl-lb-hero__copy {
min-width: 0;
}
.hl-lb-pill {
display: inline-flex;
align-items: center;
gap: 8px;
padding: 7px 12px;
border-radius: 999px;
font-size:11px;
font-weight: 700;
letter-spacing: 0.14em;
text-transform: uppercase;
color: var(--lb-gold);
background: color-mix(in srgb, var(--ds-primary) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--ds-primary) 28%, transparent)}
.hl-lb-hero h1 {
margin: 12px 0 8px;
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
font-size: clamp(1.7rem, 3vw, 2.4rem);
font-weight: 700;
letter-spacing: -0.02em;
line-height: 1.15;
}
.hl-lb-hero p {
margin: 0;
max-width: 54ch;
color: var(--lb-muted);
font-size:14px;
line-height: 1.6}
.hl-lb-hero__actions {
display: flex;
flex-wrap: wrap;
gap: 10px;
margin-top: 18px;
}
.hl-lb-stats {
display: grid;
gap: 8px;
}
.hl-lb-stat {
padding: 12px 14px;
border: 1px solid var(--lb-line);
border-radius: 12px;
background: color-mix(in srgb, var(--ds-shade) 28%, transparent)}
.hl-lb-stat__label {
display: block;
margin-bottom: 4px;
color: var(--lb-muted);
font-size:11px;
font-weight: 700;
letter-spacing: 0.08em;
text-transform: uppercase}
.hl-lb-stat__value {
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
font-size:18px;
font-weight: 700}
.hl-lb-stat__value.is-gold {
color: var(--lb-gold);
}
.hl-lb-btn {
display: inline-flex;
align-items: center;
justify-content: center;
gap: 8px;
min-height: 42px;
padding: 0 16px;
border: 1px solid var(--lb-line);
border-radius: 10px;
background: color-mix(in srgb, var(--ds-fg) 4%, transparent);
color: var(--lb-ink);
text-decoration: none;
font-size:13px;
font-weight: 700;
white-space: nowrap;
transition: transform 160ms ease, border-color 160ms ease}
.hl-lb-btn:hover {
transform: translateY(-1px);
border-color: color-mix(in srgb, var(--ds-primary) 40%, transparent);
text-decoration: none;
color: inherit}
.hl-lb-btn--gold {
background: linear-gradient(160deg, #fbbf24, #d97706);
border-color: rgba(251, 191, 36, 0.45);
color: #111;
box-shadow: 0 6px 18px rgba(251, 191, 36, 0.22);
}
.hl-lb-btn--gold:hover {
color: var(--ds-fg)}
.hl-lb-btn--ghost {
background: transparent;
}
.hl-lb-banner {
display: flex;
align-items: center;
gap: 14px;
min-width: 0;
margin-bottom: 12px;
padding: 14px 16px;
border: 1px solid color-mix(in srgb, var(--ds-primary) 28%, transparent);
border-radius: 12px;
background: color-mix(in srgb, var(--ds-primary) 8%, transparent)}
.hl-lb-banner.is-ok {
border-color: rgba(16, 185, 129, 0.28);
background: rgba(16, 185, 129, 0.08);
}
.hl-lb-banner > i {
color: var(--lb-gold);
font-size:18px;
flex-shrink: 0}
.hl-lb-banner__rank {
flex-shrink: 0;
min-width: 52px;
height: 42px;
display: grid;
place-items: center;
border-radius: 10px;
background: linear-gradient(160deg, var(--ds-primary), var(--ds-primary-strong));
color: #111;
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
font-size:16px;
font-weight:700}
.hl-lb-banner div {
min-width: 0;
flex: 1;
}
.hl-lb-banner strong {
display: block;
margin-bottom: 2px;
font-size:14px}
.hl-lb-banner span:not(.hl-lb-banner__rank) {
color: var(--lb-muted);
font-size:13px;
line-height: 1.45}
.hl-lb-toolbar {
display: flex;
flex-wrap: wrap;
align-items: center;
justify-content: space-between;
gap: 12px;
margin: 18px 0 14px;
}
.hl-lb-section__head {
display: flex;
flex-wrap: wrap;
align-items: baseline;
gap: 10px;
min-width: 0;
}
.hl-lb-section__head h2 {
margin: 0;
display: flex;
align-items: center;
gap: 8px;
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
font-size:16px;
font-weight: 700}
.hl-lb-section__head h2 i {
color: var(--lb-gold);
}
.hl-lb-section__meta {
color: var(--lb-muted);
font-size:12px;
font-weight: 700;
letter-spacing: 0.04em;
text-transform: uppercase}
.hl-lb-chips {
display: flex;
flex-wrap: wrap;
gap: 8px;
}
.hl-lb-chip {
display: inline-flex;
align-items: center;
min-height: 36px;
padding: 0 12px;
border: 1px solid var(--lb-line);
border-radius: 999px;
background: color-mix(in srgb, var(--ds-fg) 3%, transparent);
color: var(--lb-muted);
text-decoration: none;
font-size:13px;
font-weight: 700}
.hl-lb-chip:hover {
color: var(--lb-ink);
border-color: color-mix(in srgb, var(--ds-primary) 35%, transparent);
text-decoration: none}
.hl-lb-chip.is-active {
background: linear-gradient(160deg, var(--ds-primary), var(--ds-primary-strong));
border-color: color-mix(in srgb, var(--ds-primary) 40%, transparent);
color: #111}
.hl-lb-podium {
display: grid;
grid-template-columns: minmax(0, 1fr) minmax(0, 1.18fr) minmax(0, 1fr);
gap: 12px;
align-items: end;
margin-bottom: 18px;
}
.hl-lb-podium__card {
display: flex;
flex-direction: column;
align-items: center;
min-width: 0;
padding: 18px 14px 16px;
border: 1px solid var(--lb-line);
border-radius: 16px;
background: var(--lb-surface);
text-align: center;
text-decoration: none;
color: inherit;
box-shadow: 0 10px 28px rgba(0, 0, 0, 0.28);
transition: transform 160ms ease, border-color 160ms ease;
}
.hl-lb-podium__card:hover {
transform: translateY(-3px);
border-color: rgba(251, 191, 36, 0.4);
text-decoration: none;
color: inherit;
}
.hl-lb-podium__card.is-1 {
order: 2;
padding-top: 26px;
border-color: rgba(251, 191, 36, 0.4);
background:
radial-gradient(circle at 50% 0%, rgba(251, 191, 36, 0.18), transparent 55%),
var(--lb-surface);
}
.hl-lb-podium__card.is-2 {
order: 1;
}
.hl-lb-podium__card.is-3 {
order: 3;
}
.hl-lb-podium.is-1 {
grid-template-columns: minmax(0, 360px);
justify-content: center;
}
.hl-lb-podium.is-2 {
grid-template-columns: repeat(2, minmax(0, 1fr));
}
.hl-lb-podium.is-2 .hl-lb-podium__card {
order: 0;
}
.hl-lb-podium__place {
margin-bottom: 10px;
color: var(--lb-gold);
font-size:12px;
font-weight:700;
letter-spacing: 0.12em;
text-transform: uppercase}
.hl-lb-podium__card img {
width: 72px;
height: 72px;
max-width: 72px;
border-radius: 50%;
object-fit: cover;
border: 2px solid rgba(251, 191, 36, 0.45);
margin-bottom: 10px;
}
.hl-lb-podium__card.is-1 img {
width: 88px;
height: 88px;
max-width: 88px;
}
.hl-lb-podium__card strong {
display: block;
max-width: 100%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size:15px}
.hl-lb-podium__card em {
margin-top: 4px;
color: var(--lb-gold);
font-style: normal;
font-weight:700}
.hl-lb-podium__meta {
margin-top: 6px;
color: var(--lb-muted);
font-size:12px}
.hl-lb-list {
display: flex;
flex-direction: column;
gap: 6px;
min-width: 0;
}
.hl-lb-list__head,
.hl-lb-row {
display: grid;
grid-template-columns: 56px minmax(0, 1.6fr) 90px 80px 80px 70px;
gap: 10px;
align-items: center;
min-width: 0;
}
.hl-lb-list__head {
padding: 0 14px 8px;
color: var(--lb-muted);
font-size:11px;
font-weight:700;
letter-spacing: 0.08em;
text-transform: uppercase}
.hl-lb-row {
padding: 12px 14px;
border: 1px solid var(--lb-line);
border-radius: 12px;
background: var(--lb-surface);
text-decoration: none;
color: inherit;
transition: border-color 160ms ease, transform 160ms ease}
.hl-lb-row:hover {
border-color: color-mix(in srgb, var(--ds-primary) 35%, transparent);
transform: translateY(-1px);
text-decoration: none;
color: inherit}
.hl-lb-row__rank {
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
font-weight:700;
color: var(--lb-muted)}
.hl-lb-row__user {
display: flex;
align-items: center;
gap: 10px;
min-width: 0;
}
.hl-lb-row__user img {
width: 40px;
height: 40px;
max-width: 40px;
border-radius: 50%;
object-fit: cover;
flex-shrink: 0;
border: 1px solid var(--lb-line);
}
.hl-lb-row__user > span {
min-width: 0;
display: flex;
flex-direction: column;
gap: 3px;
}
.hl-lb-row__user strong {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
font-size:14px}
.hl-lb-row__badges {
display: flex;
gap: 6px;
color: var(--lb-gold);
font-size:11px}
.hl-lb-row__score {
color: var(--lb-gold);
font-weight:700}
.hl-lb-row > span:not(.hl-lb-row__user):not(.hl-lb-row__rank):not(.hl-lb-row__score) {
color: var(--lb-muted);
font-size:13px;
font-weight: 700}
.hl-lb-empty {
display: flex;
flex-direction: column;
align-items: center;
text-align: center;
gap: 10px;
padding: 56px 24px;
border: 1px dashed var(--lb-line);
border-radius: 16px;
background: var(--lb-surface);
}
.hl-lb-empty__icon {
width: 72px;
height: 72px;
display: grid;
place-items: center;
border-radius: 50%;
color: var(--lb-gold);
font-size:24px;
background: color-mix(in srgb, var(--ds-primary) 10%, transparent);
border: 1px solid color-mix(in srgb, var(--ds-primary) 22%, transparent)}
.hl-lb-empty h2 {
margin: 0;
font-family: var(--hl-font-display, var(--font-chakra), sans-serif);
}
.hl-lb-empty p {
margin: 0 0 8px;
max-width: 42ch;
color: var(--lb-muted);
}
@media (min-width: 1024px) {
body.hl-page-leaderboard .hl-homepage-layout--global {
grid-template-columns: 260px 1fr;
grid-template-areas: "left center";
}
body.hl-page-leaderboard .hl-homepage-sidebar {
display: none;
}
}
@media (max-width: 900px) {
.hl-lb-hero {
grid-template-columns: minmax(0, 1fr);
}
.hl-lb-stats {
grid-template-columns: repeat(3, minmax(0, 1fr));
}
.hl-lb-podium {
grid-template-columns: minmax(0, 1fr);
}
.hl-lb-podium__card.is-1,
.hl-lb-podium__card.is-2,
.hl-lb-podium__card.is-3 {
order: 0;
}
}
@media (max-width: 767px) {
.hl-lb-stats {
grid-template-columns: minmax(0, 1fr);
}
.hl-lb-btn {
width: 100%;
}
.hl-lb-list__head {
display: none;
}
.hl-lb-row {
grid-template-columns: 40px minmax(0, 1fr) auto;
grid-template-areas:
"rank user score"
"rank user meta";
}
.hl-lb-row__rank {
grid-area: rank;
}
.hl-lb-row__user {
grid-area: user;
}
.hl-lb-row__score {
grid-area: score;
}
.hl-lb-row > span:nth-child(4),
.hl-lb-row > span:nth-child(5),
.hl-lb-row > span:nth-child(6) {
display: none;
}
}
html[data-theme="light"] .hl-lb {
--lb-ink: rgba(12, 12, 16, 0.94);
--lb-muted: rgba(24, 24, 27, 0.58);
--lb-line: rgba(0, 0, 0, 0.1);
--lb-surface: linear-gradient(180deg, #ffffff, #f7f7f8);
}
html[data-theme="light"] .hl-lb-hero,
html[data-theme="light"] .hl-lb-stat,
html[data-theme="light"] .hl-lb-podium__card,
html[data-theme="light"] .hl-lb-row,
html[data-theme="light"] .hl-lb-empty {
background: var(--ds-surface)}