.leaderboard-launch-button {
    position: relative;
    display: inline-grid;
    width: 44px;
    height: 44px;
    place-items: center;
    padding: 0;
    overflow: visible;
    border: 1px solid rgba(206, 153, 91, 0.28);
    border-radius: 50%;
    color: #9c6337;
    background: rgba(255, 252, 247, 0.96);
    box-shadow: 0 5px 18px rgba(36, 29, 24, 0.15), inset 0 1px 0 #fff;
    animation: leaderboard-launch-in 420ms cubic-bezier(.2,.9,.28,1.25) both;
    -webkit-tap-highlight-color: transparent;
}

.leaderboard-launch-button::before {
    position: absolute;
    inset: -4px;
    content: "";
    border: 1px solid rgba(203, 143, 77, 0.45);
    border-radius: inherit;
    animation: leaderboard-launch-halo 2.2s ease-out 1;
    pointer-events: none;
}

.leaderboard-launch-button svg {
    width: 21px;
    height: 21px;
    stroke: currentColor;
}

.leaderboard-launch-button:active {
    transform: scale(0.94);
}

.leaderboard-profile-card {
    display: flex;
    align-items: center;
    gap: 12px;
    width: 100%;
    margin: 14px 0 2px;
    padding: 12px 13px;
    text-align: left;
    color: #302d38;
    border: 1px solid rgba(var(--color-primary-rgb, 224, 122, 95), 0.22);
    border-radius: 18px;
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--color-primary-subtle, #fceee9) 80%, white), transparent 52%),
        linear-gradient(135deg, #fffdfa, #faf7f5);
    box-shadow: 0 8px 22px rgba(53, 42, 33, 0.055);
    cursor: pointer;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.leaderboard-profile-card:hover {
    transform: translateY(-1px);
    border-color: rgba(183, 128, 72, 0.4);
    box-shadow: 0 12px 28px rgba(53, 42, 33, 0.09);
}

.leaderboard-profile-card__icon {
    display: grid;
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    place-items: center;
    color: var(--color-primary-pressed, #d4694a);
    border-radius: 14px;
    background: linear-gradient(145deg, var(--color-primary-subtle, #fceee9), color-mix(in srgb, var(--color-primary-subtle, #fceee9) 64%, white));
}

.leaderboard-profile-card__icon svg {
    width: 23px;
    height: 23px;
    stroke: currentColor;
    stroke-width: 1.5;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaderboard-profile-card__copy {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.leaderboard-profile-card__title {
    font-size: 14px;
    font-weight: 750;
    letter-spacing: -0.01em;
}

.leaderboard-profile-card__detail {
    overflow: hidden;
    color: #817a72;
    font-size: 12px;
    line-height: 1.35;
    text-overflow: ellipsis;
}

.leaderboard-profile-card__detail > span {
    padding: 0 3px;
    color: #c4b6a3;
}

.leaderboard-profile-card__value {
    color: var(--color-primary-pressed, #d4694a);
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
}

.leaderboard-profile-card__chevron,
.leaderboard-row__chevron {
    width: 15px;
    height: 15px;
    flex: 0 0 15px;
    stroke: #aaa39a;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
    transition: transform 160ms ease;
}

.leaderboard-profile-card:hover .leaderboard-profile-card__chevron,
.leaderboard-row:hover .leaderboard-row__chevron {
    transform: translateX(2px);
}

.leaderboard-rank-badge {
    position: relative;
    isolation: isolate;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    min-height: 27px;
    margin: 0 0 2px 4px;
    padding: 3px 9px 3px 7px;
    color: #7c511c;
    border: 1px solid rgba(192, 140, 52, 0.34);
    border-radius: 999px;
    background: linear-gradient(135deg, #fff4cf, #f7d990);
    box-shadow: 0 2px 8px rgba(171, 119, 32, 0.13);
    font-size: 12px;
    font-weight: 850;
    line-height: 1;
    cursor: pointer;
    animation: leaderboard-rank-arrive 460ms cubic-bezier(.2,.9,.28,1.25) both;
}

.leaderboard-rank-badge::after {
    position: absolute;
    z-index: -1;
    inset: -5px;
    content: "";
    border: 1px solid rgba(214, 170, 83, .58);
    border-radius: inherit;
    opacity: 0;
    animation: leaderboard-rank-halo 2.8s ease-out 500ms infinite;
    pointer-events: none;
}

.leaderboard-rank-badge svg {
    width: 15px;
    height: 15px;
    stroke: currentColor;
    stroke-width: 1.3;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaderboard-rank-badge:hover {
    filter: saturate(1.12);
    transform: translateY(-1px);
}

.leaderboard-founder-badge {
    position: relative;
    display: inline-grid;
    width: 31px;
    height: 30px;
    margin: 0 0 2px 4px;
    place-items: center;
    overflow: hidden;
    color: #62502c;
    border: 1px solid rgba(195, 173, 126, .92);
    border-radius: 10px;
    background: linear-gradient(145deg, #fffdf5 0%, #d8d5dc 23%, #fff2c9 42%, #aaa5b1 69%, #f8e9c3 100%);
    box-shadow: 0 3px 13px rgba(105, 91, 121, .24), 0 0 0 2px rgba(222, 204, 154, .2), inset 0 1px 0 rgba(255,255,255,.98), inset 0 -2px 3px rgba(81, 71, 95, .16);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 18px;
    font-weight: 800;
    line-height: 1;
    animation: leaderboard-platinum-arrive 520ms cubic-bezier(.2,.9,.28,1.22) both, leaderboard-founder-pulse 3.4s ease-in-out 700ms infinite;
}

.leaderboard-founder-badge::after {
    position: absolute;
    inset: -40% auto -40% -55%;
    width: 38%;
    content: "";
    background: linear-gradient(90deg, transparent, rgba(255,255,255,.95), rgba(255,249,222,.8), transparent);
    transform: rotate(24deg);
    animation: leaderboard-platinum-sheen 3.8s ease-in-out 500ms infinite;
    pointer-events: none;
}

[data-bs-theme="dark"] .leaderboard-founder-badge {
    color: #f3dfb0;
    border-color: rgba(216, 198, 160, .82);
    background: linear-gradient(145deg,#f5e8ca 0%,#898391 25%,#dfc58e 43%,#5e5968 70%,#dbc69b 100%);
    box-shadow: 0 3px 15px rgba(0,0,0,.34), 0 0 0 2px rgba(223,203,157,.13), inset 0 1px 0 rgba(255,255,255,.78), inset 0 -2px 4px rgba(31,28,37,.26);
}

.leaderboard-profile-identity--top-ten .leaderboard-rank-badge::after { animation-duration: 2.2s; }
.leaderboard-profile-identity--top-ten .profile-pro-badge {
    animation: leaderboard-pro-pulse 2.7s ease-in-out infinite;
    box-shadow: 0 2px 9px rgba(201, 151, 58, .18);
}

.leaderboard-page {
    width: min(100%, 900px);
    min-height: 100%;
    margin: 0 auto;
    padding: 14px 18px 26px;
    overflow-x: hidden;
    overflow-y: auto;
    color: #302d38;
    background:
        radial-gradient(ellipse at 50% -15%, rgba(var(--color-primary-rgb, 224, 122, 95), .075), transparent 54%),
        #f7f5f2;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.leaderboard-page__topbar {
    position: relative;
    z-index: 1;
    display: grid;
    height: 42px;
    grid-template-columns: 42px 1fr 42px;
    align-items: center;
}

.leaderboard-back,
.leaderboard-info-button {
    display: grid;
    width: 40px;
    height: 40px;
    place-items: center;
    padding: 0;
    color: #625d69;
    border: 1px solid rgba(72, 66, 81, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: 0 3px 12px rgba(44, 37, 51, .045), inset 0 1px 0 rgba(255,255,255,.8);
    transition: transform 160ms ease, color 160ms ease, border-color 160ms ease, background 160ms ease;
    cursor: pointer;
}

.leaderboard-back svg,
.leaderboard-info-button svg {
    width: 19px;
    height: 19px;
    stroke: currentColor;
    stroke-width: 1.6;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.leaderboard-info-button {
    justify-self: end;
    color: var(--color-primary-pressed, #d4694a);
}

.leaderboard-back:hover,
.leaderboard-info-button:hover { transform: translateY(-1px); border-color: rgba(var(--color-primary-rgb, 224, 122, 95), .3); }
.leaderboard-back:active,
.leaderboard-info-button:active { transform: scale(.95); }

.leaderboard-page__eyebrow {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    color: #77737d;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.leaderboard-live-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #74a68c;
    box-shadow: 0 0 0 4px rgba(116, 166, 140, 0.13);
}

.leaderboard-hero {
    position: relative;
    display: flex;
    min-height: 184px;
    margin: 14px 0 18px;
    padding: 22px 25px;
    overflow: hidden;
    align-items: center;
    border: 1px solid rgba(255, 255, 255, 0.22);
    border-radius: 25px;
    color: #fff;
    background:
        radial-gradient(circle at 86% 14%, rgba(var(--color-primary-rgb, 224, 122, 95), .3), transparent 34%),
        radial-gradient(circle at 62% 100%, rgba(155, 130, 184, 0.25), transparent 44%),
        linear-gradient(118deg, #2c293f 0%, #443b57 57%, #604b66 100%);
    box-shadow: 0 16px 38px rgba(49, 42, 61, 0.15), inset 0 1px 0 rgba(255,255,255,.12);
    transition: min-height 520ms cubic-bezier(.2,.75,.25,1), padding 520ms cubic-bezier(.2,.75,.25,1), border-radius 420ms ease, box-shadow 420ms ease;
}

.leaderboard-hero__copy {
    position: relative;
    z-index: 1;
    max-width: 64%;
}

.leaderboard-hero h1 {
    margin: 8px 0 5px;
    color: #fff;
    font-size: clamp(26px, 5vw, 38px);
    font-weight: 760;
    letter-spacing: -0.055em;
    line-height: 0.99;
}

.leaderboard-hero p {
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 12px;
}

.leaderboard-period {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 14px;
    padding: 5px 10px;
    color: #f4dfc2;
    border: 1px solid rgba(242, 215, 177, 0.22);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.07);
    font-size: 10px;
    font-weight: 650;
}

.leaderboard-period__sparkle {
    color: #f2ca8a;
}

.leaderboard-hero__art {
    position: absolute;
    top: 50%;
    right: 5%;
    width: 190px;
    height: 190px;
    transform: translateY(-50%);
    transition: width 500ms ease, height 500ms ease, right 500ms ease, opacity 280ms ease;
}

.leaderboard-hero__toggle {
    position: absolute;
    z-index: 2;
    right: 14px;
    bottom: 12px;
    display: grid;
    width: 34px;
    height: 34px;
    place-items: center;
    padding: 0;
    color: rgba(255,255,255,.9);
    border: 1px solid rgba(255,255,255,.2);
    border-radius: 50%;
    background: rgba(255,255,255,.09);
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    transition: background 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.leaderboard-hero__toggle:hover { background: rgba(255,255,255,.17); border-color: rgba(255,255,255,.4); }
.leaderboard-hero__toggle:active { transform: scale(.92); }
.leaderboard-hero__toggle svg { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; transition: transform 420ms cubic-bezier(.2,.8,.2,1); }
.leaderboard-hero:not(.leaderboard-hero--collapsed) .leaderboard-hero__toggle svg { transform: rotate(180deg); }

.leaderboard-hero--collapsed {
    min-height: 76px;
    margin-top: 10px;
    padding: 12px 54px 12px 19px;
    border-radius: 20px;
}

.leaderboard-hero--collapsed .leaderboard-hero__copy {
    display: flex;
    max-width: none;
    min-width: 0;
    align-items: center;
}

.leaderboard-hero--collapsed h1 {
    margin: 0;
    font-size: 20px;
    letter-spacing: -.035em;
    line-height: 1.1;
    white-space: nowrap;
}

.leaderboard-hero--collapsed .leaderboard-hero__title-break { display: none; }
.leaderboard-hero--collapsed .leaderboard-hero__title-second::before { content: " "; }
.leaderboard-hero--collapsed p,
.leaderboard-hero--collapsed .leaderboard-period { display: none; }

.leaderboard-hero--collapsed .leaderboard-hero__art {
    right: 42px;
    width: 56px;
    height: 56px;
    opacity: .78;
}

.leaderboard-hero--collapsed .leaderboard-hero__halo { inset: 4px; }
.leaderboard-hero--collapsed .leaderboard-hero__halo--two { inset: 11px; }
.leaderboard-hero--collapsed .leaderboard-hero__medallion { width: 32px; height: 32px; }
.leaderboard-hero--collapsed .leaderboard-hero__medallion > img { width: 20px; height: 20px; border-radius: 7px; }
.leaderboard-hero--collapsed .leaderboard-hero__medallion > i { right: -2px; bottom: -2px; font-size: 9px; }
.leaderboard-hero--collapsed .leaderboard-hero__orbit--one { top: 4px; right: 10px; font-size: 10px; }
.leaderboard-hero--collapsed .leaderboard-hero__orbit--two { bottom: 2px; left: 9px; font-size: 14px; }
.leaderboard-hero--collapsed .leaderboard-hero__toggle { top: 50%; right: 13px; bottom: auto; transform: translateY(-50%); }
.leaderboard-hero--collapsed .leaderboard-hero__toggle:active { transform: translateY(-50%) scale(.92); }
.leaderboard-hero--collapsed .leaderboard-hero__toggle svg { transform: none; }

.leaderboard-hero__halo {
    position: absolute;
    inset: 17px;
    border: 1px solid rgba(255, 230, 190, 0.15);
    border-radius: 50%;
}

.leaderboard-hero__halo--two {
    inset: 39px;
    border-style: dashed;
    animation: leaderboard-orbit 36s linear infinite;
}

.leaderboard-hero__medallion {
    position: absolute;
    top: 50%;
    left: 50%;
    display: grid;
    width: 82px;
    height: 82px;
    place-items: center;
    color: #765326;
    border: 1px solid rgba(255, 255, 255, 0.7);
    border-radius: 50%;
    background: linear-gradient(145deg, #fff0c9, #d5a66a);
    box-shadow: 0 10px 34px rgba(5, 4, 15, 0.32), inset 0 0 0 5px rgba(255, 255, 255, 0.2);
    transform: translate(-50%, -50%) rotate(-8deg);
}

.leaderboard-hero__medallion > img {
    width: 50px;
    height: 50px;
    border: 1px solid rgba(255, 249, 225, 0.78);
    border-radius: 15px;
    box-shadow: 0 3px 9px rgba(92, 58, 24, 0.22);
    filter: sepia(0.82) saturate(0.72) hue-rotate(345deg) brightness(0.98) contrast(1.04);
}

.leaderboard-hero__medallion i {
    position: absolute;
    right: -3px;
    bottom: 1px;
    color: #fff2d5;
    font-size: 17px;
    font-style: normal;
    text-shadow: 0 2px 5px rgba(94, 58, 16, 0.35);
}

.leaderboard-hero__orbit {
    position: absolute;
    color: #f3d197;
}

.leaderboard-hero__orbit--one {
    top: 31px;
    right: 38px;
    font-size: 18px;
    animation: leaderboard-twinkle 2.8s ease-in-out infinite;
}

.leaderboard-hero__orbit--two {
    bottom: 25px;
    left: 36px;
    font-size: 28px;
}

.leaderboard-toolbar {
    display: flex;
    gap: 12px;
    margin: 0 2px 16px;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-switch {
    display: inline-flex;
    gap: 3px;
    padding: 4px;
    border: 1px solid rgba(66, 62, 73, 0.075);
    border-radius: 999px;
    background: #eeece8;
}

.leaderboard-switch__tab {
    min-height: 34px;
    padding: 0 14px;
    color: #77747c;
    border: 0;
    border-radius: 999px;
    background: transparent;
    font-size: 12px;
    font-weight: 700;
    cursor: pointer;
    transition: color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.leaderboard-switch__tab--active {
    color: #44374d;
    background: #fff;
    box-shadow: 0 2px 8px rgba(37, 33, 41, 0.09), inset 0 0 0 1px rgba(255,255,255,.75);
}

.leaderboard-search {
    display: flex;
    min-width: 150px;
    max-width: 245px;
    height: 40px;
    flex: 1;
    gap: 8px;
    padding: 0 11px;
    align-items: center;
    border: 1px solid rgba(66, 62, 73, 0.095);
    border-radius: 999px;
    background: rgba(255,255,255,.9);
    box-shadow: 0 3px 11px rgba(45, 39, 50, .035), inset 0 1px 0 #fff;
    transition: border-color 160ms ease, box-shadow 160ms ease, background 160ms ease;
}

.leaderboard-search:focus-within { border-color: rgba(var(--color-primary-rgb, 224, 122, 95), .48); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb, 224, 122, 95), .11); }

.leaderboard-search svg {
    width: 17px;
    height: 17px;
    flex: 0 0 17px;
    stroke: #9a969d;
    stroke-width: 1.5;
    stroke-linecap: round;
}

.leaderboard-search input {
    width: 100%;
    min-width: 0;
    padding: 0;
    color: #38363e;
    border: 0;
    outline: 0;
    background: transparent;
    font-size: 12px;
}

.leaderboard-search input::placeholder {
    color: #aaa6ad;
}

.leaderboard-search > button {
    display: grid;
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    place-items: center;
    padding: 0;
    color: #88838c;
    border: 0;
    border-radius: 50%;
    background: #f0efed;
    font-size: 16px;
    cursor: pointer;
}

.leaderboard-you-card {
    display: flex;
    gap: 11px;
    margin: 0 2px 15px;
    padding: 11px 13px;
    align-items: center;
    color: #373541;
    border: 1px solid rgba(126, 112, 156, 0.16);
    border-radius: 17px;
    background: linear-gradient(110deg, #f0ebfa, #fff);
}

.leaderboard-you-card__mark {
    display: grid;
    width: 38px;
    height: 38px;
    flex: 0 0 38px;
    place-items: center;
    color: #655583;
    border-radius: 13px;
    background: #e3daf3;
    font-size: 12px;
    font-weight: 800;
}

.leaderboard-you-card > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 2px;
}

.leaderboard-you-card strong {
    font-size: 12px;
}

.leaderboard-you-card small {
    overflow: hidden;
    color: #817d8c;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-you-card > b {
    color: #5f4d82;
    font-size: 17px;
}

.leaderboard-podium {
    display: grid;
    min-height: 214px;
    margin: 6px 0 15px;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: end;
    gap: 10px;
}

.leaderboard-podium-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 164px;
    padding: 13px 6px 0;
    flex-direction: column;
    align-items: center;
    color: #37343c;
    border: 1px solid rgba(74, 68, 81, 0.075);
    border-radius: 21px 21px 14px 14px;
    background: linear-gradient(180deg, #fff, #f0eeea);
    box-shadow: 0 7px 18px rgba(52, 47, 58, 0.05), inset 0 1px 0 rgba(255,255,255,.72);
    cursor: pointer;
    animation: leaderboard-card-in 450ms cubic-bezier(.2,.8,.25,1) both;
    transition: transform 180ms ease, box-shadow 180ms ease;
}

.leaderboard-podium-card:hover {
    z-index: 1;
    transform: translateY(-5px);
    box-shadow: 0 13px 26px rgba(52, 47, 58, 0.12);
}

.leaderboard-podium-card--rank-1 {
    min-height: 192px;
    grid-area: 1 / 2;
    color: #5f461d;
    border-color: rgba(197, 151, 74, 0.25);
    background: linear-gradient(180deg, #fff9eb, #f5e8ca);
    animation: leaderboard-champion-arrive 880ms cubic-bezier(.16,.9,.24,1.15) 110ms both;
    transform-origin: 50% 100%;
    will-change: transform, opacity, box-shadow;
}

.leaderboard-podium-card--rank-1::before {
    position: absolute;
    inset: -5px;
    content: "";
    border: 1px solid rgba(222, 183, 110, .52);
    border-radius: 24px 24px 16px 16px;
    opacity: 0;
    pointer-events: none;
    animation: leaderboard-champion-aura 2.8s ease-out 1.05s 2;
}

.leaderboard-podium-card__crown {
    position: absolute;
    z-index: 2;
    top: 9px;
    right: 9px;
    display: grid;
    width: 23px;
    height: 23px;
    place-items: center;
    color: #8f622a;
    border: 1px solid rgba(191, 143, 68, .3);
    border-radius: 8px;
    background: linear-gradient(145deg,#fff5dc,#e8c887);
    box-shadow: 0 2px 8px rgba(137, 91, 28, .14);
    font-size: 14px;
    line-height: 1;
    animation: leaderboard-crown-arrive 520ms cubic-bezier(.2,.9,.25,1.3) 620ms both;
}

.leaderboard-podium-card--rank-1 .leaderboard-podium-card__rank { animation: leaderboard-champion-rank 620ms cubic-bezier(.2,.9,.25,1.35) 430ms both; }
.leaderboard-podium-card--rank-1 .leaderboard-avatar--podium { animation: leaderboard-champion-avatar 720ms cubic-bezier(.2,.9,.25,1.2) 250ms both; }
.leaderboard-podium-card--rank-1 .leaderboard-podium-card__name { animation: leaderboard-champion-copy 420ms ease 460ms both; }
.leaderboard-podium-card--rank-1 .leaderboard-podium-card__score { animation: leaderboard-champion-copy 420ms ease 570ms both; }

.leaderboard-podium-card--rank-2 {
    grid-area: 1 / 1;
    animation-delay: 0ms;
}

.leaderboard-podium-card--rank-3 {
    grid-area: 1 / 3;
    animation-delay: 140ms;
}

.leaderboard-podium-card__rank {
    position: absolute;
    top: -9px;
    left: calc(50% - 12px);
    display: grid;
    width: 24px;
    height: 24px;
    place-items: center;
    color: #fff;
    border: 2px solid #f7f6f3;
    border-radius: 50%;
    background: #9b9ba7;
    font-size: 11px;
    font-weight: 850;
}

.leaderboard-podium-card--rank-1 .leaderboard-podium-card__rank {
    background: #c38b39;
    box-shadow: 0 0 0 4px rgba(211, 167, 100, 0.12);
}

.leaderboard-podium-card--rank-3 .leaderboard-podium-card__rank {
    background: #a7785c;
}

.leaderboard-avatar {
    display: grid;
    overflow: hidden;
    flex: 0 0 auto;
    place-items: center;
    color: #60556d;
    border: 2px solid rgba(255, 255, 255, 0.86);
    border-radius: 50%;
    background: linear-gradient(145deg, #e9e0f3, #eedbc5);
    box-shadow: 0 4px 12px rgba(50, 43, 57, 0.11);
    font-weight: 800;
}

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

.leaderboard-avatar--podium {
    width: 65px;
    height: 65px;
    font-size: 23px;
}

.leaderboard-podium-card--rank-1 .leaderboard-avatar--podium {
    width: 76px;
    height: 76px;
    border-color: #fff8e7;
}

.leaderboard-podium-card__name {
    width: 100%;
    margin-top: 9px;
    overflow: hidden;
    font-size: 11px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-podium-card__score {
    margin-top: 3px;
    color: #817762;
    font-size: 12px;
    font-weight: 850;
}

.leaderboard-podium-card__score small {
    font-size: 9px;
    font-weight: 600;
}

.leaderboard-podium-card__platform {
    position: absolute;
    right: 10px;
    bottom: 0;
    left: 10px;
    height: 4px;
    border-radius: 4px 4px 0 0;
    background: #d4d2d6;
}

.leaderboard-podium-card--rank-1 .leaderboard-podium-card__platform {
    background: linear-gradient(90deg, #c9944e, #ead09a, #bf8540);
}

.leaderboard-podium-card--rank-3 .leaderboard-podium-card__platform {
    background: #ba947b;
}

.leaderboard-list {
    display: flex;
    margin: 0;
    padding: 0;
    flex-direction: column;
    gap: 7px;
    list-style: none;
}

.leaderboard-row {
    display: flex;
    width: 100%;
    min-height: 66px;
    gap: 11px;
    padding: 9px 12px;
    align-items: center;
    color: #34323a;
    text-align: left;
    border: 1px solid rgba(69, 65, 75, 0.065);
    border-radius: 17px;
    background: #fff;
    box-shadow: 0 3px 10px rgba(49, 45, 52, 0.025), inset 0 1px 0 rgba(255,255,255,.8);
    cursor: pointer;
    transition: transform 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.leaderboard-row:hover {
    transform: translateY(-1px);
    border-color: rgba(180, 137, 86, 0.24);
    box-shadow: 0 8px 18px rgba(49, 45, 52, 0.07);
}

.leaderboard-row:active,
.leaderboard-podium-card:active { transform: scale(.99); }

.leaderboard-row__rank {
    width: 28px;
    flex: 0 0 28px;
    color: #a7a2ab;
    font-size: 12px;
    font-weight: 760;
    font-variant-numeric: tabular-nums;
}

.leaderboard-avatar--row {
    width: 43px;
    height: 43px;
    font-size: 15px;
}

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

.leaderboard-row__name {
    overflow: hidden;
    font-size: 13px;
    font-weight: 750;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-row__city {
    overflow: hidden;
    color: #93909a;
    font-size: 10px;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.leaderboard-pro-chip {
    padding: 3px 7px;
    color: #765885;
    border: 1px solid rgba(131, 95, 149, 0.16);
    border-radius: 999px;
    background: #f5eff8;
    font-size: 9px;
    font-weight: 850;
}

.leaderboard-row__score {
    color: #71604b;
    font-size: 12px;
    font-weight: 800;
    text-align: right;
    white-space: nowrap;
}

.leaderboard-row__score small {
    display: block;
    color: #a19b9f;
    font-size: 9px;
    font-weight: 600;
}

.leaderboard-row__chevron {
    width: 13px;
    flex-basis: 13px;
}

.leaderboard-footer {
    display: flex;
    gap: 7px;
    margin: 18px 2px 0;
    align-items: center;
    flex-wrap: wrap;
    color: #8a858e;
    font-size: 10px;
}

.leaderboard-footer__icon {
    color: #9a8269;
    font-size: 15px;
}

.leaderboard-footer small {
    margin-left: auto;
    color: #a19ca3;
    font-size: 9px;
}

.leaderboard-loading {
    display: flex;
    gap: 12px;
    flex-direction: column;
    padding: 6px 2px;
}

.leaderboard-loading__line,
.leaderboard-loading__row,
.leaderboard-loading__podium span {
    overflow: hidden;
    border-radius: 14px;
    background: linear-gradient(100deg, #ebe9e7 20%, #f6f5f3 40%, #ebe9e7 60%);
    background-size: 220% 100%;
    animation: leaderboard-shimmer 1.3s ease-in-out infinite;
}

.leaderboard-loading__line {
    width: 100%;
    height: 42px;
}

.leaderboard-loading__podium {
    display: grid;
    height: 185px;
    grid-template-columns: repeat(3, 1fr);
    gap: 10px;
    align-items: end;
}

.leaderboard-loading__podium span {
    height: 150px;
}

.leaderboard-loading__podium span:nth-child(2) {
    height: 180px;
}

.leaderboard-loading__row {
    height: 66px;
}

.leaderboard-state {
    display: flex;
    min-height: 270px;
    padding: 30px 20px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.leaderboard-state--compact {
    min-height: 185px;
}

.leaderboard-state__icon {
    display: grid;
    width: 48px;
    height: 48px;
    margin-bottom: 12px;
    place-items: center;
    color: #937b61;
    border-radius: 17px;
    background: #eee6da;
    font-size: 25px;
}

.leaderboard-state h2 {
    margin: 0;
    font-size: 17px;
    font-weight: 760;
}

.leaderboard-state p {
    max-width: 330px;
    margin: 8px 0 16px;
    color: #85818a;
    font-size: 12px;
    line-height: 1.5;
}

.leaderboard-primary-button {
    min-height: 45px;
    padding: 0 20px;
    color: #fff;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(105deg, #715a79, #514361);
    box-shadow: 0 7px 17px rgba(64, 55, 80, 0.2), inset 0 1px 0 rgba(255,255,255,.16);
    font-size: 13px;
    font-weight: 750;
    cursor: pointer;
    transition: transform 160ms ease, box-shadow 160ms ease;
}

.leaderboard-primary-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 10px 22px rgba(64, 55, 80, 0.26);
}

.leaderboard-text-button {
    color: var(--color-primary-pressed, #d4694a);
    border: 0;
    background: transparent;
    font-size: 12px;
    font-weight: 750;
    cursor: pointer;
}

[data-bs-theme="dark"] .leaderboard-page {
    color: #f1edf4;
    background:
        radial-gradient(ellipse at 48% -12%, rgba(var(--color-primary-rgb, 232, 149, 125), .11), transparent 56%),
        #19171f;
}

[data-bs-theme="dark"] .leaderboard-page__eyebrow { color: #b8b1c0; }
[data-bs-theme="dark"] .leaderboard-live-dot { background: #75c5a0; box-shadow: 0 0 0 4px rgba(117,197,160,.13), 0 0 12px rgba(117,197,160,.25); }
[data-bs-theme="dark"] .leaderboard-back,
[data-bs-theme="dark"] .leaderboard-info-button {
    color: #e8e0ec;
    border-color: rgba(255,255,255,.09);
    background: rgba(42, 39, 49, .88);
    box-shadow: 0 4px 14px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.045);
}
[data-bs-theme="dark"] .leaderboard-info-button { color: var(--color-primary, #e8957d); }
[data-bs-theme="dark"] .leaderboard-back:hover,
[data-bs-theme="dark"] .leaderboard-info-button:hover { border-color: rgba(var(--color-primary-rgb,232,149,125),.34); background: #302c38; }
[data-bs-theme="dark"] .leaderboard-hero {
    border-color: rgba(255,255,255,.09);
    background:
        radial-gradient(circle at 84% 14%, rgba(var(--color-primary-rgb,232,149,125),.23), transparent 35%),
        radial-gradient(circle at 62% 100%, rgba(155,130,184,.17), transparent 46%),
        linear-gradient(118deg, #24212e 0%, #302a3a 57%, #3b2c3f 100%);
    box-shadow: 0 16px 38px rgba(0,0,0,.24), inset 0 1px 0 rgba(255,255,255,.07);
}
[data-bs-theme="dark"] .leaderboard-period { color: #f2d8c7; border-color: rgba(var(--color-primary-rgb,232,149,125),.22); background: rgba(255,255,255,.055); }
[data-bs-theme="dark"] .leaderboard-period__sparkle { color: var(--color-primary, #e8957d); }
[data-bs-theme="dark"] .leaderboard-hero__medallion { border-color: rgba(255,255,255,.4); background: linear-gradient(145deg,#f3d8bd,#b77c7d 58%,#755b82); box-shadow: 0 10px 34px rgba(0,0,0,.42), inset 0 0 0 5px rgba(255,255,255,.12); }
[data-bs-theme="dark"] .leaderboard-hero__medallion > img { border-color: rgba(255,255,255,.42); filter: saturate(.82) hue-rotate(4deg) brightness(.92); }
[data-bs-theme="dark"] .leaderboard-switch { border-color: rgba(255,255,255,.075); background: #26232d; }
[data-bs-theme="dark"] .leaderboard-switch__tab { color: #aaa4b2; }
[data-bs-theme="dark"] .leaderboard-switch__tab--active { color: #f1eaf4; background: #3a3442; box-shadow: 0 2px 9px rgba(0,0,0,.2), inset 0 0 0 1px rgba(255,255,255,.055); }
[data-bs-theme="dark"] .leaderboard-search { color: #eee9f1; border-color: rgba(255,255,255,.09); background: #26232d; box-shadow: inset 0 1px 0 rgba(255,255,255,.035); }
[data-bs-theme="dark"] .leaderboard-search:focus-within { border-color: rgba(var(--color-primary-rgb,232,149,125),.54); box-shadow: 0 0 0 3px rgba(var(--color-primary-rgb,232,149,125),.12); }
[data-bs-theme="dark"] .leaderboard-search svg { stroke: #aaa3b1; }
[data-bs-theme="dark"] .leaderboard-search input { color: #f1edf4; }
[data-bs-theme="dark"] .leaderboard-search input::placeholder { color: #837d8b; }
[data-bs-theme="dark"] .leaderboard-search > button { color: #c1bac8; background: #3b3742; }
[data-bs-theme="dark"] .leaderboard-you-card { color: #eee8f3; border-color: rgba(164,143,194,.2); background: linear-gradient(110deg,#302a3a,#27242e); }
[data-bs-theme="dark"] .leaderboard-you-card__mark { color: #d5c5e9; background: #443950; }
[data-bs-theme="dark"] .leaderboard-you-card small { color: #aaa2b3; }
[data-bs-theme="dark"] .leaderboard-you-card > b { color: #e3d1f5; }
[data-bs-theme="dark"] .leaderboard-podium-card {
    color: #eeeaf2;
    border-color: rgba(255,255,255,.075);
    background: linear-gradient(180deg,#2c2933,#24222b);
    box-shadow: 0 8px 20px rgba(0,0,0,.14), inset 0 1px 0 rgba(255,255,255,.045);
}
[data-bs-theme="dark"] .leaderboard-podium-card:hover { box-shadow: 0 15px 28px rgba(0,0,0,.27), inset 0 1px 0 rgba(255,255,255,.06); }
[data-bs-theme="dark"] .leaderboard-podium-card--rank-1 { color: #f3e7cf; border-color: rgba(217,177,113,.24); background: linear-gradient(180deg,#3b332b,#2c282b); }
[data-bs-theme="dark"] .leaderboard-podium-card__rank { border-color: #19171f; background: #77717e; }
[data-bs-theme="dark"] .leaderboard-podium-card--rank-1 .leaderboard-podium-card__rank { background: #c08b4c; box-shadow: 0 0 0 4px rgba(211,167,100,.12); }
[data-bs-theme="dark"] .leaderboard-avatar { color: #e5d8ed; border-color: rgba(255,255,255,.15); background: linear-gradient(145deg,#5d4b6c,#7b5e68); box-shadow: 0 4px 12px rgba(0,0,0,.2); }
[data-bs-theme="dark"] .leaderboard-podium-card--rank-1 .leaderboard-avatar--podium { border-color: rgba(255,231,188,.56); }
[data-bs-theme="dark"] .leaderboard-podium-card__score { color: #d2b88f; }
[data-bs-theme="dark"] .leaderboard-podium-card__platform { background: #514c58; }
[data-bs-theme="dark"] .leaderboard-podium-card--rank-1 .leaderboard-podium-card__platform { background: linear-gradient(90deg,#9a6c3b,#e4c78e,#9a6c3b); }
[data-bs-theme="dark"] .leaderboard-podium-card--rank-3 .leaderboard-podium-card__platform { background: #846756; }
[data-bs-theme="dark"] .leaderboard-row { color: #eeeaf2; border-color: rgba(255,255,255,.065); background: #25232c; box-shadow: 0 3px 12px rgba(0,0,0,.09), inset 0 1px 0 rgba(255,255,255,.035); }
[data-bs-theme="dark"] .leaderboard-row:hover { border-color: rgba(var(--color-primary-rgb,232,149,125),.26); background: #2b2833; box-shadow: 0 8px 18px rgba(0,0,0,.19); }
[data-bs-theme="dark"] .leaderboard-row__rank { color: #8f8997; }
[data-bs-theme="dark"] .leaderboard-row__city { color: #a39daa; }
[data-bs-theme="dark"] .leaderboard-pro-chip { color: #d3b9e5; border-color: rgba(178,137,207,.18); background: rgba(123,91,148,.18); }
[data-bs-theme="dark"] .leaderboard-row__score { color: #e0c79f; }
[data-bs-theme="dark"] .leaderboard-row__score small,
[data-bs-theme="dark"] .leaderboard-row__chevron { color: #968d9c; stroke: #968d9c; }
[data-bs-theme="dark"] .leaderboard-footer { color: #aaa3b0; }
[data-bs-theme="dark"] .leaderboard-footer__icon { color: var(--color-primary, #e8957d); }
[data-bs-theme="dark"] .leaderboard-footer small { color: #817b89; }
[data-bs-theme="dark"] .leaderboard-loading__line,
[data-bs-theme="dark"] .leaderboard-loading__row,
[data-bs-theme="dark"] .leaderboard-loading__podium span { background: linear-gradient(100deg,#2d2a34 20%,#393541 40%,#2d2a34 60%); background-size: 220% 100%; }
[data-bs-theme="dark"] .leaderboard-state__icon { color: var(--color-primary, #e8957d); background: var(--color-primary-subtle, #3a2824); }
[data-bs-theme="dark"] .leaderboard-state p { color: #aaa4b1; }
[data-bs-theme="dark"] .leaderboard-primary-button { background: linear-gradient(105deg,#795f84,#554568); box-shadow: 0 8px 20px rgba(0,0,0,.22), inset 0 1px 0 rgba(255,255,255,.12); }
[data-bs-theme="dark"] .leaderboard-text-button { color: var(--color-primary, #e8957d); }

.leaderboard-page :focus-visible {
    outline: 3px solid rgba(var(--color-primary-rgb, 224, 122, 95), .48);
    outline-offset: 3px;
}

[data-bs-theme="dark"] .leaderboard-page :focus-visible {
    outline-color: rgba(var(--color-primary-rgb, 232, 149, 125), .72);
}

.leaderboard-explainer-backdrop {
    position: fixed;
    z-index: 2500;
    inset: 0;
    display: grid;
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
    place-items: center;
    background: rgba(24, 22, 31, 0.56);
    backdrop-filter: blur(9px);
    -webkit-backdrop-filter: blur(9px);
    animation: leaderboard-scrim-in 180ms ease both;
}

.leaderboard-explainer {
    position: relative;
    width: min(100%, 650px);
    max-height: 100%;
    padding: 29px clamp(20px, 5vw, 38px) 25px;
    overflow-y: auto;
    color: #34323a;
    border: 1px solid rgba(255, 255, 255, 0.74);
    border-radius: 28px;
    background:
        radial-gradient(circle at 100% 0, rgba(248, 224, 186, 0.6), transparent 34%),
        linear-gradient(155deg, #fff, #f9f6f0);
    box-shadow: 0 28px 100px rgba(16, 14, 24, 0.34);
    animation: leaderboard-modal-in 300ms cubic-bezier(.2,.8,.25,1) both;
    scrollbar-width: thin;
}

.leaderboard-explainer__close {
    position: absolute;
    top: 15px;
    right: 15px;
    display: grid;
    width: 36px;
    height: 36px;
    place-items: center;
    padding: 0;
    color: #7e7981;
    border: 1px solid rgba(74, 68, 78, 0.1);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.74);
    font-size: 23px;
    font-weight: 350;
    line-height: 1;
    cursor: pointer;
}

.leaderboard-explainer__eyebrow {
    color: #a2763e;
    font-size: 9px;
    font-weight: 850;
    letter-spacing: 0.13em;
}

.leaderboard-explainer__eyebrow span {
    padding-right: 5px;
    color: #c0934f;
    font-size: 13px;
}

.leaderboard-explainer h2 {
    margin: 9px 44px 8px 0;
    color: #302d38;
    font-size: clamp(23px, 4vw, 31px);
    font-weight: 780;
    letter-spacing: -0.045em;
    line-height: 1.05;
}

.leaderboard-explainer__intro {
    max-width: 500px;
    margin: 0;
    color: #77727b;
    font-size: 15px;
    line-height: 1.6;
}

.leaderboard-formula-art {
    margin: 18px 0 14px;
    padding: 17px;
    border: 1px solid rgba(var(--color-primary-rgb, 224, 122, 95), 0.16);
    border-radius: 22px;
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-primary-subtle, #fceee9) 75%, white), rgba(255, 255, 255, 0.88));
}

.leaderboard-formula-art__heading,
.leaderboard-formula-art__item,
.leaderboard-formula-art__total {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.leaderboard-formula-art__heading {
    gap: 12px;
    margin-bottom: 12px;
}

.leaderboard-formula-art__heading span {
    color: var(--color-primary-pressed, #d4694a);
    font-size: 11px;
    font-weight: 850;
    letter-spacing: .12em;
}

.leaderboard-formula-art__heading b {
    color: #68636e;
    font-size: 14px;
    font-weight: 700;
}

.leaderboard-formula-art__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.leaderboard-formula-art__item {
    min-height: 72px;
    gap: 10px;
    padding: 12px;
    border: 1px solid rgba(var(--color-primary-rgb, 224, 122, 95), .12);
    border-radius: 16px;
    background: rgba(255, 255, 255, .78);
}

.leaderboard-formula-art__icon {
    display: grid;
    width: 36px;
    height: 36px;
    flex: 0 0 36px;
    place-items: center;
    color: var(--color-primary-pressed, #d4694a);
    border-radius: 12px;
    background: var(--color-primary-subtle, #fceee9);
    font-size: 21px;
    font-weight: 750;
}

.leaderboard-formula-art__item > span:nth-child(2) {
    display: flex;
    min-width: 0;
    flex: 1;
    flex-direction: column;
    gap: 3px;
}

.leaderboard-formula-art__item strong {
    color: #38343e;
    font-size: 13px;
    line-height: 1.3;
}

.leaderboard-formula-art__item small {
    color: #77717b;
    font-size: 11px;
    line-height: 1.35;
}

.leaderboard-formula-art__item > b {
    color: var(--color-primary-pressed, #d4694a);
    font-size: 12px;
    white-space: nowrap;
}

.leaderboard-formula-art__total {
    gap: 12px;
    margin-top: 11px;
    padding: 12px 14px;
    color: #fff;
    border-radius: 15px;
    background: linear-gradient(110deg, var(--color-primary-pressed, #d4694a), color-mix(in srgb, var(--color-primary-pressed, #d4694a) 64%, #7252a5));
}

.leaderboard-formula-art__total span {
    font-size: 13px;
    font-weight: 650;
}

.leaderboard-formula-art__total strong {
    font-size: 20px;
    white-space: nowrap;
}

.leaderboard-formula-art__total small {
    font-size: 11px;
    font-weight: 600;
}

.leaderboard-explainer__rules {
    display: flex;
    flex-direction: column;
}

.leaderboard-explainer__rules > div:last-child {
    border-bottom: 0;
}

.leaderboard-explainer__rules > div {
    display: flex;
    gap: 12px;
    padding: 10px 2px;
    align-items: flex-start;
    border-bottom: 1px solid rgba(88, 80, 68, 0.08);
}

.leaderboard-rule-number {
    display: grid;
    width: 25px;
    height: 25px;
    flex: 0 0 25px;
    place-items: center;
    color: #987547;
    border-radius: 9px;
    background: #f1e8d8;
    font-size: 9px;
    font-weight: 850;
}

.leaderboard-explainer__rules p {
    display: flex;
    margin: 0;
    flex-direction: column;
    gap: 3px;
}

.leaderboard-explainer__rules strong {
    color: #3f3b43;
    font-size: 14px;
}

.leaderboard-explainer__rules small {
    color: #7d7881;
    font-size: 12px;
    line-height: 1.5;
}

.leaderboard-explainer__promise {
    display: flex;
    gap: 9px;
    margin: 12px 0;
    padding: 10px 12px;
    align-items: flex-start;
    color: #62537a;
    border: 1px solid rgba(123, 100, 151, 0.11);
    border-radius: 14px;
    background: #f3eff7;
}

.leaderboard-explainer__promise > span {
    color: #9077ac;
    font-size: 16px;
}

.leaderboard-explainer__promise p {
    margin: 0;
    color: #716b7a;
    font-size: 12px;
    line-height: 1.5;
}

.leaderboard-explainer__button {
    width: 100%;
    min-height: 46px;
}

[data-bs-theme="dark"] .leaderboard-profile-card {
    color: #f0edf4;
    border-color: rgba(var(--color-primary-rgb, 232, 149, 125), .25);
    background:
        radial-gradient(circle at 0 0, color-mix(in srgb, var(--color-primary-subtle, #3a2824) 90%, transparent), transparent 55%),
        linear-gradient(135deg, #292631, #211f28);
    box-shadow: 0 10px 28px rgba(0, 0, 0, .18), inset 0 1px 0 rgba(255, 255, 255, .035);
}

[data-bs-theme="dark"] .leaderboard-profile-card__detail { color: #aaa5b2; }
[data-bs-theme="dark"] .leaderboard-profile-card__detail > span { color: #706a78; }
[data-bs-theme="dark"] .leaderboard-profile-card__chevron { stroke: #908a98; }

[data-bs-theme="dark"] .leaderboard-explainer {
    color: #f0edf4;
    border-color: rgba(255, 255, 255, .09);
    background:
        radial-gradient(circle at 100% 0, color-mix(in srgb, var(--color-primary-subtle, #3a2824) 92%, transparent), transparent 38%),
        linear-gradient(155deg, #292631, #211f28);
    box-shadow: 0 28px 100px rgba(0, 0, 0, .58);
}

[data-bs-theme="dark"] .leaderboard-explainer__close {
    color: #c7c1ce;
    border-color: rgba(255, 255, 255, .1);
    background: rgba(255, 255, 255, .07);
}

[data-bs-theme="dark"] .leaderboard-explainer__eyebrow { color: var(--color-primary, #e8957d); }
[data-bs-theme="dark"] .leaderboard-explainer__eyebrow span { color: var(--color-primary, #e8957d); }
[data-bs-theme="dark"] .leaderboard-explainer h2 { color: #f7f3fa; }
[data-bs-theme="dark"] .leaderboard-explainer__intro { color: #b7b1bf; }
[data-bs-theme="dark"] .leaderboard-formula-art {
    border-color: rgba(var(--color-primary-rgb, 232, 149, 125), .2);
    background: linear-gradient(145deg, color-mix(in srgb, var(--color-primary-subtle, #3a2824) 72%, #292631), #24222c);
}
[data-bs-theme="dark"] .leaderboard-formula-art__heading b { color: #d6d0dc; }
[data-bs-theme="dark"] .leaderboard-formula-art__item {
    border-color: rgba(255, 255, 255, .065);
    background: rgba(255, 255, 255, .045);
}
[data-bs-theme="dark"] .leaderboard-formula-art__item strong { color: #f0ecf4; }
[data-bs-theme="dark"] .leaderboard-formula-art__item small { color: #aaa4b2; }
[data-bs-theme="dark"] .leaderboard-explainer__rules > div { border-color: rgba(255, 255, 255, .085); }
[data-bs-theme="dark"] .leaderboard-rule-number {
    color: var(--color-primary, #e8957d);
    background: var(--color-primary-subtle, #3a2824);
}
[data-bs-theme="dark"] .leaderboard-explainer__rules strong { color: #eeeaf2; }
[data-bs-theme="dark"] .leaderboard-explainer__rules small { color: #aaa4b2; }
[data-bs-theme="dark"] .leaderboard-explainer__promise {
    color: #d1c2e8;
    border-color: rgba(155, 127, 232, .17);
    background: rgba(123, 91, 212, .11);
}
[data-bs-theme="dark"] .leaderboard-explainer__promise > span { color: #b59bdd; }
[data-bs-theme="dark"] .leaderboard-explainer__promise p { color: #c0b8ca; }

@keyframes leaderboard-launch-in {
    from { opacity: 0; transform: translateY(7px) scale(.82); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes leaderboard-launch-halo {
    0% { opacity: .75; transform: scale(.88); }
    100% { opacity: 0; transform: scale(1.36); }
}

@keyframes leaderboard-rank-arrive {
    from { opacity: 0; transform: translateY(4px) scale(.8); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes leaderboard-platinum-arrive {
    from { opacity: 0; transform: rotate(-10deg) scale(.65); }
    to { opacity: 1; transform: rotate(0) scale(1); }
}

@keyframes leaderboard-platinum-sheen {
    0%, 50% { left: -55%; }
    72%, 100% { left: 125%; }
}

@keyframes leaderboard-orbit {
    to { transform: rotate(1turn); }
}

@keyframes leaderboard-twinkle {
    0%, 100% { opacity: .65; transform: scale(.86); }
    50% { opacity: 1; transform: scale(1.12); }
}

@keyframes leaderboard-card-in {
    from { opacity: 0; transform: translateY(8px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes leaderboard-shimmer {
    to { background-position-x: -220%; }
}

@keyframes leaderboard-scrim-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

@keyframes leaderboard-modal-in {
    from { opacity: 0; transform: translateY(12px) scale(.985); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes leaderboard-rank-halo {
    0% { opacity: .7; transform: scale(.94); }
    100% { opacity: 0; transform: scale(1.24); }
}

@keyframes leaderboard-founder-pulse {
    0%, 100% { box-shadow: 0 3px 13px rgba(105,91,121,.24), 0 0 0 2px rgba(222,204,154,.2), inset 0 1px 0 rgba(255,255,255,.98), inset 0 -2px 3px rgba(81,71,95,.16); }
    50% { box-shadow: 0 4px 17px rgba(121,99,149,.34), 0 0 0 4px rgba(222,204,154,.15), 0 0 19px rgba(230,205,143,.34), inset 0 1px 0 #fff; }
}

@keyframes leaderboard-pro-pulse {
    0%, 100% { filter: saturate(1); transform: scale(1); box-shadow: 0 2px 9px rgba(201,151,58,.18); }
    50% { filter: saturate(1.16) brightness(1.04); transform: scale(1.045); box-shadow: 0 3px 14px rgba(201,151,58,.34), 0 0 0 3px rgba(213,171,87,.12); }
}

@keyframes leaderboard-champion-arrive {
    0% { opacity: 0; transform: translateY(28px) scale(.86) rotate(-2deg); box-shadow: 0 0 0 rgba(177,125,50,0); }
    58% { opacity: 1; transform: translateY(-7px) scale(1.035) rotate(.7deg); box-shadow: 0 18px 38px rgba(174,126,53,.2); }
    78% { transform: translateY(2px) scale(.992) rotate(-.2deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); box-shadow: 0 7px 18px rgba(52,47,58,.055); }
}

@keyframes leaderboard-champion-aura {
    0% { opacity: 0; transform: scale(.98); }
    26% { opacity: .72; }
    100% { opacity: 0; transform: scale(1.06); }
}

@keyframes leaderboard-champion-rank {
    0% { opacity: 0; transform: translateY(7px) scale(.45) rotate(-24deg); }
    65% { opacity: 1; transform: translateY(-2px) scale(1.18) rotate(5deg); }
    100% { opacity: 1; transform: translateY(0) scale(1) rotate(0); }
}

@keyframes leaderboard-champion-avatar {
    0% { opacity: 0; transform: scale(.62) rotate(-10deg); box-shadow: 0 0 0 rgba(211,167,100,0); }
    68% { opacity: 1; transform: scale(1.08) rotate(3deg); box-shadow: 0 0 0 7px rgba(211,167,100,.18), 0 9px 25px rgba(143,100,42,.24); }
    100% { opacity: 1; transform: scale(1) rotate(0); box-shadow: 0 4px 12px rgba(50,43,57,.11); }
}

@keyframes leaderboard-champion-copy {
    from { opacity: 0; transform: translateY(7px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes leaderboard-crown-arrive {
    from { opacity: 0; transform: translateY(-7px) rotate(-18deg) scale(.55); }
    to { opacity: 1; transform: translateY(0) rotate(0) scale(1); }
}

@keyframes leaderboard-flow {
    to { stroke-dashoffset: -44; }
}

@keyframes leaderboard-node-arrive {
    from { opacity: 0; transform: scale(.88); }
    to { opacity: 1; transform: scale(1); }
}

@media (max-width: 560px) {
    .leaderboard-page {
        padding: 10px 14px max(22px, env(safe-area-inset-bottom));
    }

    .leaderboard-hero {
        min-height: 166px;
        margin-top: 10px;
        padding: 18px 17px;
        border-radius: 22px;
    }

    .leaderboard-hero__art {
        right: -34px;
        transform: translateY(-50%) scale(.86);
    }

    .leaderboard-hero--collapsed { min-height: 70px; padding: 12px 52px 12px 15px; }
    .leaderboard-hero--collapsed h1 { font-size: 18px; }
    .leaderboard-hero--collapsed .leaderboard-hero__art { right: 41px; transform: translateY(-50%) scale(.82); }

    .leaderboard-hero__copy {
        max-width: 70%;
    }

    .leaderboard-toolbar {
        gap: 8px;
        margin-bottom: 14px;
    }

    .leaderboard-switch__tab {
        min-height: 33px;
        padding: 0 11px;
    }

    .leaderboard-search {
        min-width: 112px;
        height: 38px;
        gap: 6px;
        padding: 0 9px;
    }

    .leaderboard-search input {
        font-size: 11px;
    }

    .leaderboard-podium {
        min-height: 188px;
        gap: 7px;
    }

    .leaderboard-podium-card {
        min-height: 148px;
        padding-right: 3px;
        padding-left: 3px;
        border-radius: 18px 18px 12px 12px;
    }

    .leaderboard-podium-card--rank-1 {
        min-height: 174px;
    }

    .leaderboard-avatar--podium {
        width: 56px;
        height: 56px;
    }

    .leaderboard-podium-card--rank-1 .leaderboard-avatar--podium {
        width: 65px;
        height: 65px;
    }

    .leaderboard-podium-card__name {
        font-size: 10px;
    }

    .leaderboard-podium-card__score {
        font-size: 11px;
    }

    .leaderboard-row {
        min-height: 62px;
        gap: 8px;
        padding: 8px 9px;
    }

    .leaderboard-row__rank {
        width: 23px;
        flex-basis: 23px;
        font-size: 11px;
    }

    .leaderboard-avatar--row {
        width: 39px;
        height: 39px;
    }

    .leaderboard-row__name {
        font-size: 12px;
    }

    .leaderboard-pro-chip {
        padding: 3px 6px;
    }

    .leaderboard-explainer-backdrop {
        padding: max(7px, env(safe-area-inset-top)) 7px max(7px, env(safe-area-inset-bottom));
    }

    .leaderboard-explainer {
        padding: 24px 18px 18px;
        border-radius: 24px;
    }

    .leaderboard-formula-art { padding: 13px; border-radius: 18px; }
    .leaderboard-formula-art__grid { grid-template-columns: 1fr; gap: 7px; }
    .leaderboard-formula-art__item { min-height: 64px; }
    .leaderboard-formula-art__item strong { font-size: 14px; }
    .leaderboard-formula-art__item small { font-size: 12px; }
}

@media (max-width: 365px) {
    .leaderboard-page {
        padding-right: 10px;
        padding-left: 10px;
    }

    .leaderboard-switch__tab {
        padding: 0 8px;
        font-size: 11px;
    }

    .leaderboard-row__score small {
        font-size: 8px;
    }

    .leaderboard-podium {
        gap: 5px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .leaderboard-launch-button,
    .leaderboard-launch-button::before,
    .leaderboard-rank-badge,
    .leaderboard-rank-badge::after,
    .leaderboard-founder-badge,
    .leaderboard-founder-badge::after,
    .leaderboard-profile-identity--top-ten .profile-pro-badge,
    .leaderboard-hero__halo--two,
    .leaderboard-hero__orbit--one,
    .leaderboard-hero,
    .leaderboard-hero__art,
    .leaderboard-hero__toggle svg,
    .leaderboard-podium-card,
    .leaderboard-podium-card--rank-1::before,
    .leaderboard-podium-card--rank-1 .leaderboard-podium-card__crown,
    .leaderboard-podium-card--rank-1 .leaderboard-podium-card__rank,
    .leaderboard-podium-card--rank-1 .leaderboard-avatar--podium,
    .leaderboard-podium-card--rank-1 .leaderboard-podium-card__name,
    .leaderboard-podium-card--rank-1 .leaderboard-podium-card__score,
    .leaderboard-loading__line,
    .leaderboard-loading__row,
    .leaderboard-loading__podium span,
    .leaderboard-explainer-backdrop,
    .leaderboard-explainer,
    .leaderboard-formula-art__item {
        animation: none !important;
        transition: none !important;
    }
}
