.leader {
    width: 100%;
    height: 100%;
    background-color: #020035;
}


.leaderboard {
    position: fixed;
    width: 45%;
    max-height: 900px;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    border-radius: 12px;
    overflow-y: scroll;
    overflow-x: hidden;
    background-color: #0e031c;
}


header {
    --start: 15%;
    height: 130px;
    background-color: #020035;
    background-image: url('/ressource/catIO/pixel-cat_hires.png');
    position: relative;
    border-radius: 12px 12px 0 0;
    overflow: hidden;
}

.leaderboard__title {
    position: absolute;
    background-color: #0d0d44;
    color: wheat;
    z-index: 2;
    top: 50%;
    right: calc(var(--start) * .75);
    transform: translateY(-50%);
    text-transform: uppercase;
    margin: 0;
}

.leaderboard__profiles span {
    display: block;
}

.leaderboard__title--top {
    font-size: 24px;
    font-weight: 700;
    letter-spacing: 6.5px;
}

leaderboard__title--bottom {
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 3.55px;
    opacity: .65;
    transform: translateY(-2px);
}


.leaderboard__icon {
    fill: #fff;
    opacity: .35;
    width: 50px;
    position: absolute;
    top: 50%;
    left: var(--start);
    transform: translate(-50%, -50%);
}


.leaderboard__profiles {
    overflow: hidden;
    background-color: #0d0d44;
    border-radius: 0 0 12px 12px;
    padding: 15px 15px 20px;
    display: grid;
    row-gap: 8px;
}


.leaderboard__profile {
    display: grid;
    grid-template-columns: 1fr 3fr 1fr;
    align-items: center;
    padding: 10px 30px 10px 10px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 5px 7px -1px rgba(51, 51, 51, 0.23);
    cursor: pointer;
    transition: transform .25s cubic-bezier(.7, .98, .86, .98), box-shadow .25s cubic-bezier(.7, .98, .86, .98);
    background-color: #05052d;
}


.leaderboard__profile:hover {
    overflow: hidden;
    transform: scale(1.05);
    box-shadow: 0 9px 47px 11px rgba(51, 51, 51, 0.18);
}


.leaderboard__name {
    color: wheat;
    font-weight: 600;
    font-size: 34px;
    letter-spacing: 0.64px;
    margin-left: 12px;
}

.leaderboard__value {
    color: wheat;
    font-weight: 700;
    font-size: 20px;
    text-align: right;
}

.leaderboard__profiles > span {
    opacity: .8;
    font-weight: 600;
    font-size: 13px;
    margin-left: 3px;
}


.leader .buttonRetourLeader span {
    left: 45%;
    position: fixed;
    display: flex;
    justify-content: center;
    align-items: center;
    bottom: 0.4em;
    width: 8.25em;
    height: 2.5em;
    background-color: #212121;
    border-radius: 0.2em;
    font-size: 1.5em;
    color: #ffffff;
    border: 0.08em solid #561b8d;
    box-shadow: 0 0.4em 0.1em 0.019em #561b8d;
    margin-bottom: 5%;
}

.leader .buttonRetourLeader span:hover {
    transition: all 0.5s;
    transform: translate(0, 0.4em);
    box-shadow: 0 0 0 0 #fff;
}

.leader .buttonRetourLeader span:not(hover) {
    transition: all 1s;
}


.leader .refresh {
    --border-radius: 25px;
    --border-width: 7px;
    appearance: none;
    position: fixed;
    left: 80%;
    transform: translate(-50%, -50%);
    top: 20%;
    padding: 1em 2em;
    border: 0;
    background-color: rgba(33, 33, 33, 0);
    font-family: "Roboto", Arial, "Segoe UI", sans-serif;
    font-size: 18px;
    font-weight: 500;
    color: #ffff;
    z-index: 2;
}

.leader .refresh::after {
    --m-i: linear-gradient(#000, #000);
    --m-o: content-box, padding-box;
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    padding: var(--border-width);
    background-image: conic-gradient(
            #ff0080,
            #ff0080,
            #ff0080,
            #ff0080,
            #ff0080,
            #ff0080,
            #ff0080
    );
    -webkit-mask-image: var(--m-i), var(--m-i);
    mask-image: var(--m-i), var(--m-i);
    -webkit-mask-origin: var(--m-o);
    mask-origin: var(--m-o);
    mask-clip: var(--m-o);
    mask-composite: exclude;
    -webkit-mask-composite: destination-out;
    filter: hue-rotate(0);
    animation: rotate-hue634 linear 500ms infinite;
    animation-play-state: paused;
    border-radius: 20px;
    border-color: #000;
}

.leader .refresh:hover::after {
    animation-play-state: running;
    border-radius: 10px;
}

@keyframes rotate-hue634 {
    to {
        filter: hue-rotate(1turn);
    }
}

.leader .refresh,
.leader .refresh::after {
    box-sizing: border-box;
    border-radius: 20px;
}

.leader .refresh:active {
    --border-width: 5px;
}

.refresh {
    padding: 0.9em 1.6em;
    border: none;
    outline: none;
    color: #FFF;
    font-family: inherit;
    font-weight: 500;
    font-size: 17px;
    cursor: pointer;
    position: relative;
    z-index: 0;
    border-radius: 32px;
}

.refresh::after {
    content: "";
    z-index: -1;
    position: absolute;
    width: 100%;
    height: 100%;
    background-color: rgb(46, 46, 46);
    left: 0;
    top: 0;
    border-radius: 10px;
}

.refresh::before {
    content: "";
    background: linear-gradient(
            45deg,
            #07d888, #e40851, #2f00ff, #00ff37,
            #ec0808, #2600ff, #0bd157, #2f00ff
    );
    position: absolute;
    top: -2px;
    left: -2px;
    background-size: 600%;
    z-index: -1;
    width: calc(100% + 4px);
    height: calc(100% + 4px);
    filter: blur(8px);
    animation: glowing345 20s linear infinite;
    transition: opacity .3s ease-in-out;
    border-radius: 20px;
    opacity: 0;
}

@keyframes glowing345 {
    0% {
        background-position: 0 0;
    }

    50% {
        background-position: 400% 0;
    }

    100% {
        background-position: 0 0;
    }
}

.refresh:hover::before {
    opacity: 1;
}

.refresh:active:after {
    background: transparent;
}

.refresh:active {
    color: #000;
    font-weight: bold;
}
