#ranks {
    margin-bottom:50px;
    transition: all ease 0.3s;
}

#ranks.ranks-hidden {
    opacity:0;
}

#ranks .rank canvas {
    z-index:10;
    position:relative;
}

#ranks .rank {
    perspective:400px;
    position:relative;
}

#ranks .rank .number {
    font-size: var(--text-size-xl);
    color:var(--text-color-4);
}

#ranks .rank .name {
    position:absolute;
    bottom:calc(100% - 10px);
    left:50%;
    transform:translateX(-50%);
    text-align:center;
    color:var(--text-color-3);
    font-weight:900;
    white-space:nowrap;
    transition:all ease 0.15s;
}

#ranks .rank.rank2 .name {
    bottom:calc(100%) !important;
}

#ranks .rank:hover .name {
    color:var(--text-color-2);
}

#ranks .rank .value {
    color:var(--text-color-5);
}

#ranks .rank * {
    cursor:default;
}

#ranks .rank canvas {
    cursor:pointer;
}

#ranks .rank .cube {
    transform-style:preserve-3d;
    transform:translateZ(-100px) rotateX(-6deg) rotateY(0deg);
}

#ranks .rank .face1 {
    position:absolute;
    left:0;
    right:0;
    top:calc(100% - 75px);
    padding-bottom:120%;
    background:var(--gradient-1-reverted);
    transform:rotateX(90deg) translateZ(26px) translateY(58px);
    box-shadow:0px -2px 0px 0 #a3a3a311;
    border:3px solid var(--color-2);
}

#ranks .rank:hover .face1 {
    box-shadow:0px -2px 27px 14px #a3a3a311;
}

#ranks .rank .face2 {
    line-height:1.1;
    position:absolute;
    left:0;
    right:0;
    top:calc(100% - 75px);
    height:130px;
    background:var(--gradient-1);
    transform:rotateY(0deg) rotateX(-20deg) translateZ(100px);
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    font-size:var(--text-size-xl);
    font-family:'VT323', monospace;
    border:3px solid var(--color-2);
    color:var(--text-color-5);
    box-shadow:0px -2px 27px 14px #0000003d;
}

#ranks .rank .face2 i {
    font-size:var(--text-size-md);
    margin-top:6px;
}

#ranks .rank.rank1 {
    margin-top:15px;
}

#ranks .rank.rank1 .face1 {
    transform:rotateX(90deg) translateZ(27px) translateY(56px);
}

#ranks .rank.rank1 .face2 {
    height:112px;
}

#ranks .rank.rank3 {
    margin-top:34px;
}

#ranks .rank.rank3 .face1 {
    transform:rotateX(90deg) translateZ(26px) translateY(49px);
}

#ranks .rank.rank3 .face2 {
    height:88px;
}


/*
 Voting Section Purple Glow
*/

.ranks-section {

    box-shadow:
        0 0 20px rgba(168,85,247,.25),
        0 0 45px rgba(126,34,206,.18);

    transition:.3s ease;

}


.ranks-section:hover {

    box-shadow:
        0 0 35px rgba(168,85,247,.45),
        0 0 75px rgba(126,34,206,.30);

}


/*
 Voting Section Title
*/

.ranks-section .section-title {

    font-size:2.2rem;

    font-weight:900;

    letter-spacing:1.5px;

    text-transform:uppercase;

    color:#d8b4fe;

    text-shadow:
        0 0 8px rgba(216,180,254,.85),
        0 0 20px rgba(168,85,247,.65),
        0 0 40px rgba(126,34,206,.45);

}


/*
 Purple accent line
*/

.ranks-section .section-title::after {

    content:"";

    display:block;

    width:100px;

    height:3px;

    margin:12px auto 0;

    border-radius:10px;

    background:
        linear-gradient(
            90deg,
            transparent,
            #d8b4fe,
            #9333ea,
            transparent
        );

    box-shadow:
        0 0 12px rgba(168,85,247,.85),
        0 0 25px rgba(126,34,206,.55);

}


/* BEGIN I85 COMMUNITY CHAMPIONS HEADER */

/* =========================================================
   COMMUNITY CHAMPIONS HEADER
   ========================================================= */

.ranks-section .i85-vote-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;

    margin: 0 0 28px;
    padding: 0 clamp(8px, 2vw, 22px);
}

.ranks-section .i85-vote-heading {
    min-width: 0;
}

.ranks-section .i85-vote-header .section-title {
    display: flex;
    align-items: center;
    gap: 13px;

    margin: 0;
    padding: 0;

    text-align: left;
}

.ranks-section .i85-vote-header .section-title i {
    flex: 0 0 auto;

    color: #e9c8ff;

    font-size: 0.78em;

    filter:
        drop-shadow(0 0 8px rgba(216, 180, 254, 0.58));
}

.ranks-section .i85-vote-header .section-title::after {
    display: none;
    content: none;
}

.ranks-section .i85-vote-subtitle {
    margin: 7px 0 0 49px;

    color: rgba(231, 226, 244, 0.70);

    font-size: 0.98rem;
    line-height: 1.45;
}

.ranks-section .i85-vote-now-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;

    flex: 0 0 auto;

    min-height: 46px;
    padding: 11px 21px;

    border: 1px solid rgba(92, 222, 255, 0.48);
    border-radius: 999px;

    color: #ffffff;
    text-decoration: none;

    background:
        linear-gradient(
            135deg,
            rgba(25, 156, 218, 0.96),
            rgba(45, 99, 220, 0.96)
        );

    box-shadow:
        0 8px 22px rgba(20, 92, 190, 0.24),
        0 0 20px rgba(70, 217, 255, 0.18),
        inset 0 1px 0 rgba(255, 255, 255, 0.16);

    font-size: 0.96rem;
    font-weight: 850;
    letter-spacing: 0.025em;

    transition:
        transform 0.22s ease,
        border-color 0.22s ease,
        box-shadow 0.22s ease,
        filter 0.22s ease;
}

.ranks-section .i85-vote-now-button:hover,
.ranks-section .i85-vote-now-button:focus-visible {
    color: #ffffff;
    text-decoration: none;

    transform: translateY(-2px);

    border-color: rgba(139, 236, 255, 0.72);

    box-shadow:
        0 12px 30px rgba(20, 92, 190, 0.32),
        0 0 30px rgba(70, 217, 255, 0.30),
        inset 0 1px 0 rgba(255, 255, 255, 0.20);

    filter: brightness(1.06);
}

.ranks-section .i85-vote-now-button:active {
    transform: translateY(0);
}

.ranks-section .i85-vote-now-button i {
    font-size: 1.08rem;
}

@media (max-width: 760px) {
    .ranks-section .i85-vote-header {
        flex-direction: column;
        align-items: stretch;
        gap: 17px;

        margin-bottom: 24px;
        padding: 0 8px;
    }

    .ranks-section .i85-vote-header .section-title {
        justify-content: center;

        font-size: clamp(1.65rem, 8vw, 2.15rem);
        line-height: 1.08;
        text-align: center;
    }

    .ranks-section .i85-vote-subtitle {
        margin: 9px auto 0;

        text-align: center;
    }

    .ranks-section .i85-vote-now-button {
        width: 100%;
    }
}

@media (prefers-reduced-motion: reduce) {
    .ranks-section .i85-vote-now-button {
        transition: none;
    }

    .ranks-section .i85-vote-now-button:hover,
    .ranks-section .i85-vote-now-button:focus-visible {
        transform: none;
    }
}

/* END I85 COMMUNITY CHAMPIONS HEADER */

