@import url("https://fonts.googleapis.com/css2?family=Open+Sans:ital,wght@0,300..800;1,300..800&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Spectral:ital,wght@0,200;0,300;0,400;0,500;0,600;0,700;0,800;1,200;1,300;1,400;1,500;1,600;1,700;1,800&display=swap");

@font-face {
    font-family: "MyCustomFont";
    src: url("../Font/Colfax-Black.otf");
    font-weight: normal;
    font-style: normal;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    scrollbar-color: transparent transparent;
}

*:hover {
    scrollbar-color: rgba(0, 0, 0, 0.3490196078) transparent;
}

*::-webkit-scrollbar {
    width: 6px;
    height: 6px;
    background: transparent;
}

*::-webkit-scrollbar-track {
    background: transparent;
}

*::-webkit-scrollbar-thumb {
    background: transparent;
    border-radius: 999px;
    border: 2px solid transparent;
    background-clip: padding-box;
}

*:hover::-webkit-scrollbar-thumb {
    background: rgba(0, 0, 0, 0.35);
}

*:hover::-webkit-scrollbar-thumb:active {
    background: rgba(0, 0, 0, 0.6);
}

body {
    background: black;
}

.background {
    width: 100%;
    height: 100%;
    position: fixed;
}

.background span {
    width: 3vmin;
    height: 3vmin;
    border-radius: 3vmin;
    backface-visibility: hidden;
    position: absolute;
    animation-name: move;
    animation-duration: 6s;
    animation-timing-function: linear;
    animation-iteration-count: infinite;
}

.background span:nth-child(1) {
    color: #cc7919;
    top: 93%;
    left: 80%;
    animation-duration: 10.9s;
    animation-delay: -8.3s;
    transform-origin: 24vw 14vh;
    box-shadow: -6vmin 0 1.1493910145vmin currentColor;
}

.background span:nth-child(2) {
    color: #877c3c;
    top: 92%;
    left: 53%;
    animation-duration: 10.6s;
    animation-delay: -1.6s;
    transform-origin: -15vw -13vh;
    box-shadow: 6vmin 0 2.1072617618vmin currentColor;
}

.background span:nth-child(3) {
    color: #877c3c;
    top: 40%;
    left: 64%;
    animation-duration: 15.8s;
    animation-delay: -10.8s;
    transform-origin: -7vw -21vh;
    box-shadow: -6vmin 0 2.212221564vmin currentColor;
}

.background span:nth-child(4) {
    color: #FFACAC;
    top: 77%;
    left: 73%;
    animation-duration: 11s;
    animation-delay: -13.5s;
    transform-origin: 13vw 23vh;
    box-shadow: -6vmin 0 1.9212375215vmin currentColor;
}

.background span:nth-child(5) {
    color: #cc7919;
    top: 38%;
    left: 86%;
    animation-duration: 13.8s;
    animation-delay: -7.6s;
    transform-origin: 3vw -3vh;
    box-shadow: -6vmin 0 1.0460852654vmin currentColor;
}

.background span:nth-child(6) {
    color: #FFACAC;
    top: 42%;
    left: 24%;
    animation-duration: 13.6s;
    animation-delay: -0.5s;
    transform-origin: 17vw -13vh;
    box-shadow: 6vmin 0 1.4439315712vmin currentColor;
}

.background span:nth-child(7) {
    color: #FFACAC;
    top: 69%;
    left: 99%;
    animation-duration: 10.7s;
    animation-delay: -3.8s;
    transform-origin: -12vw -10vh;
    box-shadow: 6vmin 0 2.0699903216vmin currentColor;
}

.background span:nth-child(8) {
    color: #cc7919;
    top: 96%;
    left: 3%;
    animation-duration: 12.9s;
    animation-delay: -0.3s;
    transform-origin: -5vw 24vh;
    box-shadow: -6vmin 0 1.4902635692vmin currentColor;
}

.background span:nth-child(9) {
    color: #cc7919;
    top: 28%;
    left: 7%;
    animation-duration: 10.6s;
    animation-delay: -10.9s;
    transform-origin: -15vw 10vh;
    box-shadow: 6vmin 0 0.7663020217vmin currentColor;
}

.background span:nth-child(10) {
    color: #877c3c;
    top: 17%;
    left: 43%;
    animation-duration: 12.8s;
    animation-delay: -3.9s;
    transform-origin: 21vw 24vh;
    box-shadow: 6vmin 0 0.8588606824vmin currentColor;
}

.background span:nth-child(11) {
    color: #FFACAC;
    top: 20%;
    left: 8%;
    animation-duration: 14.3s;
    animation-delay: -8.6s;
    transform-origin: 18vw -19vh;
    box-shadow: -6vmin 0 2.019193786vmin currentColor;
}

.background span:nth-child(12) {
    color: #FFACAC;
    top: 82%;
    left: 77%;
    animation-duration: 12.3s;
    animation-delay: -2.3s;
    transform-origin: 11vw -10vh;
    box-shadow: -6vmin 0 1.3128291254vmin currentColor;
}

.background span:nth-child(13) {
    color: #FFACAC;
    top: 63%;
    left: 23%;
    animation-duration: 14.2s;
    animation-delay: -10s;
    transform-origin: 8vw -5vh;
    box-shadow: 6vmin 0 2.2476969195vmin currentColor;
}

.background span:nth-child(14) {
    color: #cc7919;
    top: 38%;
    left: 88%;
    animation-duration: 10.7s;
    animation-delay: -13.3s;
    transform-origin: 2vw -23vh;
    box-shadow: -6vmin 0 2.2106723966vmin currentColor;
}

.background span:nth-child(15) {
    color: #FFACAC;
    top: 44%;
    left: 26%;
    animation-duration: 10.2s;
    animation-delay: -2.4s;
    transform-origin: 24vw 23vh;
    box-shadow: 6vmin 0 2.1547656513vmin currentColor;
}

.background span:nth-child(16) {
    color: #FFACAC;
    top: 44%;
    left: 8%;
    animation-duration: 12.5s;
    animation-delay: -9.8s;
    transform-origin: 23vw 21vh;
    box-shadow: -6vmin 0 2.0583702476vmin currentColor;
}

.background span:nth-child(17) {
    color: #877c3c;
    top: 66%;
    left: 12%;
    animation-duration: 14.1s;
    animation-delay: -9.4s;
    transform-origin: -13vw -24vh;
    box-shadow: -6vmin 0 0.9218026646vmin currentColor;
}

.background span:nth-child(18) {
    color: #cc7919;
    top: 5%;
    left: 96%;
    animation-duration: 15.2s;
    animation-delay: -0.8s;
    transform-origin: 13vw 2vh;
    box-shadow: -6vmin 0 1.3190146116vmin currentColor;
}

.background span:nth-child(19) {
    color: #FFACAC;
    top: 15%;
    left: 13%;
    animation-duration: 12.7s;
    animation-delay: -13.9s;
    transform-origin: 17vw 25vh;
    box-shadow: 6vmin 0 0.9708375443vmin currentColor;
}

.background span:nth-child(20) {
    color: #877c3c;
    top: 69%;
    left: 21%;
    animation-duration: 10.1s;
    animation-delay: -11.1s;
    transform-origin: 17vw 8vh;
    box-shadow: 6vmin 0 1.2310164864vmin currentColor;
}

.background span:nth-child(21) {
    color: #877c3c;
    top: 58%;
    left: 22%;
    animation-duration: 15.9s;
    animation-delay: -4.7s;
    transform-origin: -12vw 3vh;
    box-shadow: -6vmin 0 1.624833253vmin currentColor;
}

.background span:nth-child(22) {
    color: #877c3c;
    top: 84%;
    left: 92%;
    animation-duration: 14.1s;
    animation-delay: -11s;
    transform-origin: 14vw 13vh;
    box-shadow: 6vmin 0 1.4277984127vmin currentColor;
}

.background span:nth-child(23) {
    color: #FFACAC;
    top: 74%;
    left: 72%;
    animation-duration: 15.8s;
    animation-delay: -11.8s;
    transform-origin: -21vw 21vh;
    box-shadow: 6vmin 0 1.651799519vmin currentColor;
}

.background span:nth-child(24) {
    color: #FFACAC;
    top: 68%;
    left: 72%;
    animation-duration: 13s;
    animation-delay: -12.8s;
    transform-origin: 14vw -16vh;
    box-shadow: 6vmin 0 2.1292269271vmin currentColor;
}

.background span:nth-child(25) {
    color: #FFACAC;
    top: 18%;
    left: 37%;
    animation-duration: 12.5s;
    animation-delay: -0.6s;
    transform-origin: 16vw 5vh;
    box-shadow: 6vmin 0 1.0096234322vmin currentColor;
}

@keyframes move {
    100% {
        transform: translate3d(0, 0, 1px) rotate(360deg);
    }
}

.row {
    display: flex;
}

.col {
    display: flex;
    flex-direction: column;
}

body {
    background-image: url(../img/leaderboard/bg.png);
    width: 100%;
    min-height: 100vh;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    min-height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9;
    position: relative;
}

.container .logo {
    width: 40%;
    max-width: 220px;
    position: absolute;
    top: 20px;
    left: 20px;
}

.container .logo img {
    width: 100%;
}

.right_widget_row {
    position: absolute;
    top: 20px;
    right: 20px;
    width: -moz-fit-content;
    width: fit-content;
    gap: 20px;
    align-items: center;
}

.right_widget_row .music_btn {
    display: flex;
    justify-content: center;
    align-items: center;
}

.right_widget_row .music_btn svg {
    display: none;
    transition: opacity 0.3s ease;
}

.right_widget_row .music_btn.is-playing .play {
    display: block;
}

.right_widget_row .music_btn.is-playing .muted {
    display: none;
}

.right_widget_row .music_btn.is-paused .play {
    display: none;
}

.right_widget_row .music_btn.is-paused .muted {
    display: block;
}

.right_widget_row svg {
    cursor: pointer;
    color: white;
    transition: 0.4s;
}

.right_widget_row svg:hover {
    opacity: 0.5;
}

.wrap {
    width: 90%;
    max-width: 550px;
    min-height: 100vh;
    align-items: center;
    padding: 5rem 0 0;
}

.wrap .banner {
    width: 100%;
    max-width: 320px;
    position: relative;
}

.wrap .banner img {
    width: 100%;
}

.leaderboard_wrap {
    width: 100%;
    position: relative;
}

.leaderboard_wrap .text {
    position: absolute;
    top: -28px;
    right: 2px;
    align-self: flex-end;
    font-size: 21px;
    color: white;
    font-weight: 900;
    -webkit-text-stroke: 1px #8f079e;
    text-shadow: 0 0 10px #ff4cfd;
    cursor: default;
}

.leaderboard_wrap .leader_block {
    background: linear-gradient(35deg, #41044c, #85400d);
    width: 100%;
    border-radius: 20px;
    border: 2px solid white;
    box-shadow: 0px 0px 10px #ff9053;
    padding: 10px;
    gap: 8px;
}

.leaderboard_wrap .leader_block .block_title {
    width: 100%;
    gap: 10px;
    justify-content: center;
    align-items: center;
    position: relative;
}

.leaderboard_wrap .leader_block .block_title span {
    font-family: MyCustomFont;
    font-size: 40px;
    text-transform: uppercase;
    font-weight: 900;
    letter-spacing: 0.2px;
    background: linear-gradient(180deg, #e98c30, #8f12a6);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -webkit-text-stroke: 0.4mm white;
    filter: drop-shadow(2px 2px 2px black);
    z-index: 9;
}

.leaderboard_wrap .leader_block .block_title .title {
    width: 50%;
}

.leaderboard_wrap .leader_block .block_title .lamp {
    width: 50px;
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
}

/* -----------------Old---------------------*/
/*.leader_table_wrap {*/
/*    position: relative;*/
/*    width: 100%;*/
/*    max-height: 303px;*/
/*    border-radius: 12px;*/
/*    padding: 0 !important;*/
/*    filter: drop-shadow(0px 0px 6px #ff9053);*/
/*    !* the wrapper itself is the scrollable viewport *!*/
/*    overflow: auto;*/
/*    -webkit-overflow-scrolling: touch;*/
/*    !* hide native scrollbars (so layout doesn't shift) *!*/
/*    scrollbar-width: none; !* Firefox *!*/
/*    !* Chrome/Safari/Edge *!*/
/*    !* overlay scrollbar track *!*/
/*    !* show the bar while interacting *!*/
/*    !* ====== your table styles ====== *!*/
/*}*/

/*.leader_table_wrap::-webkit-scrollbar {*/
/*    width: 0;*/
/*    height: 0;*/
/*}*/

/*.leader_table_wrap .abs-scroll__bar {*/
/*    --bar-size: 8px;*/
/*    --bar-margin: 8px;*/
/*    --thumb: rgba(0, 0, 0, .45);*/
/*    --thumb-active: rgba(0, 0, 0, .7);*/
/*    position: absolute;*/
/*    top: var(--bar-margin);*/
/*    right: var(--bar-margin);*/
/*    bottom: var(--bar-margin);*/
/*    width: var(--bar-size);*/
/*    pointer-events: none;*/
/*    opacity: 0;*/
/*    transition: opacity 0.18s ease;*/
/*}*/

/*.leader_table_wrap .abs-scroll__thumb {*/
/*    position: absolute;*/
/*    left: 0;*/
/*    right: 0;*/
/*    min-height: 28px;*/
/*    border-radius: 999px;*/
/*    background: var(--thumb);*/
/*    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);*/
/*    pointer-events: auto;*/
/*    touch-action: none;*/
/*}*/

/*.leader_table_wrap:hover .abs-scroll__bar, .leader_table_wrap.is-scrolling .abs-scroll__bar, .leader_table_wrap.is-dragging .abs-scroll__bar {*/
/*    opacity: 1;*/
/*}*/

/*.leader_table_wrap table {*/
/*    width: 100%;*/
/*    border-spacing: 0;*/
/*}*/

/*.leader_table_wrap table th {*/
/*    padding: 7px;*/
/*}*/

/*.leader_table_wrap table th, .leader_table_wrap table td {*/
/*    font-size: 12px;*/
/*    text-align: center;*/
/*    color: white;*/
/*}*/

/*.leader_table_wrap table th img, .leader_table_wrap table td img {*/
/*    width: 18px;*/
/*}*/

/*.leader_table_wrap table th .place, .leader_table_wrap table td .place {*/
/*    padding: 3px;*/
/*    font-size: 14px;*/
/*    font-weight: 600;*/
/*    display: flex;*/
/*    justify-content: center;*/
/*    gap: 2px;*/
/*}*/

/*.leader_table_wrap table th .place span, .leader_table_wrap table td .place span {*/
/*    font-size: 8px;*/
/*}*/

/*.leader_table_wrap table tr {*/
/*    height: 20px;*/
/*}*/

/*.leader_table_wrap table tr:first-child {*/
/*    background: black !important;*/
/*}*/

/*.leader_table_wrap table tr:first-child th:first-child {*/
/*    border-top-left-radius: 15px;*/
/*}*/

/*.leader_table_wrap table tr:first-child th:last-child {*/
/*    border-top-right-radius: 15px;*/
/*}*/

/*.leader_table_wrap table tr:last-child td:first-child {*/
/*    border-bottom-left-radius: 15px;*/
/*}*/

/*.leader_table_wrap table tr:last-child td:last-child {*/
/*    border-bottom-right-radius: 15px;*/
/*}*/

/*.leader_table_wrap table tr:nth-child(even) {*/
/*    background: #0f2862;*/
/*}*/

/*.leader_table_wrap table tr:nth-child(odd) {*/
/*    background: #0d3285;*/
/*}*/

/* -----------------New---------------------*/
.leader_table_wrap {
    position: relative;
    width: 100%;
    max-height: 303px;
    border-radius: 12px;
    padding: 0 !important;
    filter: drop-shadow(0px 0px 6px #ff9053);
    /* the wrapper itself is the scrollable viewport */
    overflow: auto;
    -webkit-overflow-scrolling: touch;
    /* hide native scrollbars (so layout doesn't shift) */
    scrollbar-width: none; /* Firefox */
}

/* Hide scrollbars in WebKit */
.leader_table_wrap::-webkit-scrollbar {
    width: 0;
    height: 0;
}

/* Custom scrollbar track (optional) */
.leader_table_wrap .abs-scroll__bar {
    --bar-size: 8px;
    --bar-margin: 8px;
    --thumb: rgba(0, 0, 0, .45);
    --thumb-active: rgba(0, 0, 0, .7);
    position: absolute;
    top: var(--bar-margin);
    right: var(--bar-margin);
    bottom: var(--bar-margin);
    width: var(--bar-size);
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.18s ease;
}
.leader_table_wrap .abs-scroll__thumb {
    position: absolute;
    left: 0;
    right: 0;
    min-height: 28px;
    border-radius: 999px;
    background: var(--thumb);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
    pointer-events: auto;
    touch-action: none;
}
.leader_table_wrap:hover .abs-scroll__bar,
.leader_table_wrap.is-scrolling .abs-scroll__bar,
.leader_table_wrap.is-dragging .abs-scroll__bar {
    opacity: 1;
}

/* ===== Table styles ===== */
.leader_table_wrap table {
    width: 100%;
    border-spacing: 0;
}
.leader_table_wrap table th {
    padding: 7px;
}
.leader_table_wrap table th,
.leader_table_wrap table td {
    font-size: 12px;
    text-align: center;
    color: white;
}
.leader_table_wrap table th img,
.leader_table_wrap table td img {
    width: 18px;
}

/* rank number + suffix */
.leader_table_wrap table th .place,
.leader_table_wrap table td .place {
    padding: 3px;
    font-size: 14px;
    font-weight: 600;
    display: flex;
    justify-content: center;
    gap: 2px;
}
.leader_table_wrap table th .place span,
.leader_table_wrap table td .place span {
    font-size: 8px;
}

/* row sizing */
.leader_table_wrap table tr {
    height: 20px;
}

/* header row only */
.leader_table_wrap table tr.lb-head {
    background: black !important;
}
.leader_table_wrap table tr.lb-head th:first-child {
    border-top-left-radius: 15px;
}
.leader_table_wrap table tr.lb-head th:last-child {
    border-top-right-radius: 15px;
}

/* stripe only tbody rows */
.leader_table_wrap table tbody tr:nth-child(even) {
    background: #0f2862;
}
.leader_table_wrap table tbody tr:nth-child(odd) {
    background: #0d3285;
}

/* rounded corners bottom */
.leader_table_wrap table tbody tr:last-child td:first-child {
    border-bottom-left-radius: 15px;
}
.leader_table_wrap table tbody tr:last-child td:last-child {
    border-bottom-right-radius: 15px;
}


.bonus_wrap {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    margin: 5px 0;
    gap: 10px;
}

.bonus_wrap .bonus_block {
    flex: 1;
    align-items: center;
    gap: 4px;
}

.bonus_wrap .bonus_block .bonus_title {
    font-size: 11px;
    font-weight: 800;
    color: #fff;
}

.bonus_wrap .bonus_block .bonus_infor {
    width: 100%;
    padding: 5px 0;
}

.bonus_wrap .bonus_block .bonus_infor .point {
    background: black;
    border-radius: 999rem;
    position: relative;
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    height: 30px;
}

.bonus_wrap .bonus_block .bonus_infor .point img {
    width: 45px;
    height: 45px;
    margin-left: -8px;
}

.bonus_wrap .bonus_block .bonus_infor .point span {
    color: white;
    font-size: 12px;
    font-weight: 700;
    white-space: nowrap;
}

.rank_prize_wrap {
    width: 100%;
    margin: 10px 0;
    position: relative;
    border-radius: 20px;
    border: 1px solid white;
    justify-content: center;
    align-items: center;
}

.rank_prize_wrap .rank_bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: -1;
    width: 100%;
    height: 100%;
}

.rank_prize_wrap .rank_block {
    flex: 1;
    align-items: center;
    padding: 15px 0;
    color: white;
    gap: 10px;
    cursor: default;
    position: relative;
}

.rank_prize_wrap .rank_block::after {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    width: 2px;
    height: 100%;
    background: white;
    opacity: 0.5;
}

.rank_prize_wrap .rank_block:last-child::after {
    display: none;
}

.rank_prize_wrap .rank_block .place {
    color: white;
    font-weight: 700;
    font-size: 16px;
    text-shadow: -1px -1px 0 #c417d7, 0 -1px 0 #c417d7, 1px -1px 0 #c417d7, 1px 0 0 #c417d7, 1px 1px 0 #c417d7, 0 1px 0 #c417d7, -1px 1px 0 #c417d7, -1px 0 0 #c417d7;
}

.rank_prize_wrap .rank_block .prize {
    flex: 1;
    align-items: center;
    font-size: 16px;
    font-weight: 900;
    color: white;
    text-shadow: -3px 3px 1px #a90000;
}

.rank_prize_wrap .rank_block .prize .shadow {
    animation: prize-span-glow 1.8s ease-in-out infinite;
}

.rank_prize_wrap .rank_block .prize span {
    font-size: 30px;
    font-weight: 900;
    color: #ffff47;
    text-shadow: -3px 3px 1px #db2626;
}

@keyframes prize-span-glow {
    0%, 100% {
        filter: drop-shadow(0 0 4px #db2626) drop-shadow(0 0 8px #db2626);
        color: #ffff47;
    }
    50% {
        filter: drop-shadow(0 0 8px #ff3b3b) drop-shadow(0 0 16px #ff3b3b);
        color: #fff97a;
    }
}

.alert_wrap {
    width: 100%;
    justify-content: space-around;
    align-items: flex-start;
}

.alert_wrap .alert {
    flex: 1;
    padding: 10px;
    align-items: center;
    gap: 10px;
}

.alert_wrap .alert p {
    color: white;
    font-size: 12px;
    font-weight: 600;
    text-align: center;
}

.scroll_down {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    display: flex;
    background: linear-gradient(0deg, #000000 35%, rgba(0, 0, 0, 0));
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
    min-height: 15vh;
    pointer-events: none;
}

.scroll_down .box span {
    width: 20px;
    height: 20px;
    display: block;
    border-right: 2px solid #fff;
    border-bottom: 2px solid #fff;
    transform: rotate(45deg);
    margin: -10px;
    animation: animate 2s infinite;
}

.scroll_down .box span:nth-child(2) {
    animation-delay: -0.2s;
}

.scroll_down .box span:nth-child(3) {
    animation-delay: -0.4s;
}

@keyframes animate {
    0% {
        opacity: 0;
    }
    50% {
        opacity: 1;
        transform: rotate(45deg) translate(10px, 10px);
    }
    100% {
        opacity: 0;
    }
}

@media only screen and (max-width: 700px) {
    .bonus_wrap {
        grid-template-columns: repeat(2, 1fr);
    }

    .rank_prize_wrap .rank_block .place {
        font-size: 11px;
    }

    .rank_prize_wrap .rank_block .prize span {
        font-size: 22px;
    }
}