.leaderboard {
    padding: 0px;
}

.medal {
    position: relative;
    text-align: center;
}

.medal img {
    width: 20px; /* 调整奖章图标的大小 */
    height: auto;
}

.confetti {
    display: flex;
    justify-content: center;
    align-items: center;
    position: absolute;
    width: 90%;
    height: 150px;
    overflow: hidden;
    z-index: 0;
}

.confetti-piece {
    position: absolute;
    width: 10px;
    height: 20px;
    background-color: hsl(39, 100%, 56%);
    top: 0;
    opacity: 0;
    animation: makeItRain 3000ms infinite ease-in-out;
}

.confetti-piece:nth-child(1) {
    left: 7%;
    transform: rotate(-10deg);
    animation-delay: 182ms;
    animation-duration: 2000ms;
}

.confetti-piece:nth-child(2) {
    left: 14%;
    transform: rotate(20deg);
    animation-delay: 161ms;
    animation-duration: 2076ms;
}

.confetti-piece:nth-child(3) {
    left: 21%;
    transform: rotate(-51deg);
    animation-delay: 481ms;
    animation-duration: 2103ms;
}

.confetti-piece:nth-child(4) {
    left: 28%;
    transform: rotate(61deg);
    animation-delay: 334ms;
    animation-duration: 1008ms;
}

.confetti-piece:nth-child(5) {
    left: 35%;
    transform: rotate(-52deg);
    animation-delay: 302ms;
    animation-duration: 1776ms;
}

.confetti-piece:nth-child(6) {
    left: 42%;
    transform: rotate(38deg);
    animation-delay: 180ms;
    animation-duration: 1168ms;
}

.confetti-piece:nth-child(7) {
    left: 49%;
    transform: rotate(11deg);
    animation-delay: 395ms;
    animation-duration: 1200ms;
}

.confetti-piece:nth-child(8) {
    left: 56%;
    transform: rotate(49deg);
    animation-delay: 14ms;
    animation-duration: 1887ms;
}

.confetti-piece:nth-child(9) {
    left: 63%;
    transform: rotate(-72deg);
    animation-delay: 149ms;
    animation-duration: 1805ms;
}

.confetti-piece:nth-child(10) {
    left: 70%;
    transform: rotate(10deg);
    animation-delay: 351ms;
    animation-duration: 2059ms;
}

.confetti-piece:nth-child(11) {
    left: 77%;
    transform: rotate(4deg);
    animation-delay: 307ms;
    animation-duration: 1132ms;
}

.confetti-piece:nth-child(12) {
    left: 84%;
    transform: rotate(42deg);
    animation-delay: 464ms;
    animation-duration: 1776ms;
}

.confetti-piece:nth-child(13) {
    left: 91%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 1818ms;
}

.confetti-piece:nth-child(14) {
    left: 94%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 818ms;
}

.confetti-piece:nth-child(15) {
    left: 96%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 2818ms;
}

.confetti-piece:nth-child(16) {
    left: 98%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 2818ms;
}

.confetti-piece:nth-child(17) {
    left: 50%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 2818ms;
}

.confetti-piece:nth-child(18) {
    left: 60%;
    transform: rotate(-72deg);
    animation-delay: 429ms;
    animation-duration: 1818ms;
}

.confetti-piece:nth-child(odd) {
    background-color: hsl(0, 100%, 67%);
}

.confetti-piece:nth-child(even) {
    z-index: 1;
}

.confetti-piece:nth-child(4n) {
    width: 6px;
    height: 14px;
    animation-duration: 4000ms;
    background-color: #c33764;
}

.confetti-piece:nth-child(5n) {
    width: 3px;
    height: 10px;
    animation-duration: 4000ms;
    background-color: #b06ab3;
}

.confetti-piece:nth-child(3n) {
    width: 4px;
    height: 12px;
    animation-duration: 2500ms;
    animation-delay: 3000ms;
    background-color: #dd2476;
}

.confetti-piece:nth-child(3n-7) {
    background-color: hsl(166, 100%, 37%);
}

@keyframes makeItRain {
    from {
        opacity: 0;
    }

    50% {
        opacity: 1;
    }

    to {
        transform: translateY(120px);
    }
}

#leaderboard-nav-tab {
    border: none;
}

#leaderboard-nav-tab .active{
    border: none;
    color: white;
    background-color: var(--main-color);
}

.leaderboard .nav-item {
    background-color: var(--second-color);
}

.leaderboard .table, .nav-item {
    font-size: 13px;
}

.leaderboard .table-body {
    color: white;
}

.leaderboard .table-row {
    background-color: hsla(0, 0%, 0%, 0.5)
}

.leaderboard .image-cell {
    position: relative;
}

.leaderboard .table-image {
    width: 50px;
}

.leaderboard .table td {
    padding: 5px 10px;
    border-top: solid 1px #2e2e2e81;
}

/* first prize */
.leaderboard .table tr:nth-child(1) td {
    background-color: rgba(var(--main-color-rgba), 0.5);
}

/* second prize */
.leaderboard .table tr:nth-child(2) td {
    background-color: rgba(var(--main-color-rgba), 0.35);
}

/* third prize */
.leaderboard .table tr:nth-child(3) td {
    background-color: rgba(var(--main-color-rgba), 0.2);
}

.leaderboard .product-logo {
    -webkit-filter: drop-shadow(0 0 2px #fff);
    filter: drop-shadow(0 0 0px #fff);
}

.leaderboard-nav-wrapper {
    animation: outerSpin 2s infinite;
    border-radius: 4px;
}

@keyframes outerSpin{
0%{
    box-shadow: 2px -2px 5px var(--main-color), -2px 2px 5px var(--main-color);
}
25%{
    box-shadow: 2px 2px 5px var(--second-color), -2px -2px 5px var(--second-color);
}
50%{
    box-shadow: -2px 2px 5px var(--main-color), 2px -2px 5px var(--main-color);
}
75%{
    box-shadow: -2px -2px 5px var(--second-color), 2px 2px 5px var(--second-color);
}
100%{
    box-shadow: 2px -2px 5px var(--main-color), -2px 2px 5px var(--main-color);
}
}