* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

#pop-up {
    display: block;
}

body {
    font-family: "Baloo Bhai 2", sans-serif;
    min-height: 100vh;
    background: url('../imgs/mbg.png') no-repeat center/cover;
    display: flex;
    flex-direction: column;
    background-attachment: fixed;
}



.wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.logo {
    position: absolute;
    top: 40px;
    right: 60px;
    height: 110px;
}



.change {
    position: absolute;
    top: 40px;
    left: 0;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.change input {
    display: none;
}

.radio-btn {
    width: 400px;
    height: 110px;
    background: rgba(0, 0, 0, 0.4);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    font-weight: 700;
    border-radius: 0 12px 12px 0;
    cursor: pointer;
    transition: .3s;
}

.change input:checked+label {
    background: #ff1a1a;
}



.main {
    flex: 1;
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 6vw;
    padding: 140px 5vw 10px 5vw;
    flex-wrap: wrap-reverse;
}



.classificacao {
    width: 520px;
    max-width: 90vw;
    height: 520px;
    background: #ff1a1a;
    border-radius: 30px;
    padding: 25px;
    margin-top: 30px;
    display: none;
}

.wrapper:has(#turma:checked) .classificacao:has(.scrollturma) {
    display: block;
}

.wrapper:has(#individual:checked) .classificacao:has(.scrollindividual) {
    display: block;
}



.scrollturma,
.scrollindividual {
    height: 100%;
    overflow-y: auto;
    overflow-x: hidden;
    padding-right: 10px;
}

.scrollindividual {
    display: none;
}

.wrapper:has(#individual:checked) .scrollturma {
    display: none;
}

.wrapper:has(#individual:checked) .scrollindividual {
    display: block;
}



.itemT,
.itemA {
    background: white;
    border-radius: 25px;
    padding: 18px 30px;
    margin-bottom: 20px;
    font-size: 22px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
}



.scrollturma::-webkit-scrollbar,
.scrollindividual::-webkit-scrollbar {
    width: 10px;
}

.scrollturma::-webkit-scrollbar-thumb,
.scrollindividual::-webkit-scrollbar-thumb {
    background: #d9d9d9;
    border-radius: 10px;
}



.podio {
    display: flex;
    align-items: flex-end;
    gap: 60px;
    flex-wrap: wrap;
    justify-content: center;
    margin-top: 220px;
}



.primeiro-wrapper,
.segundo-wrapper,
.terceiro-wrapper {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}



.primeiro,
.segundo,
.terceiro {
    display: flex;
    align-items: flex-end;
    justify-content: center;
    background: #ff1a1a;
    border-radius: 20px 20px 0 0;
    position: relative;
}



.primeiro {
    width: 260px;
    height: 420px;
    -webkit-mask: radial-gradient(circle 70px at 50% 120px, transparent 98%, black 100%);
    mask: radial-gradient(circle 70px at 50% 120px, transparent 98%, black 100%);
}

.segundo {
    width: 230px;
    height: 320px;
    -webkit-mask: radial-gradient(circle 60px at 50% 90px, transparent 98%, black 100%);
    mask: radial-gradient(circle 60px at 50% 90px, transparent 98%, black 100%);
}

.terceiro {
    width: 230px;
    height: 280px;
    -webkit-mask: radial-gradient(circle 60px at 50% 80px, transparent 98%, black 100%);
    mask: radial-gradient(circle 60px at 50% 80px, transparent 98%, black 100%);
}



.circulo1 {

    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    font-weight: 800;
    color: #ff1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 5px;

}

.circulo2 {

    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    font-weight: 800;
    color: #ff1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
    top: 10px;

}

.circulo3 {

    width: 130px;
    height: 130px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 90px;
    font-weight: 800;
    color: #ff1a1a;
    position: absolute;
    left: 50%;
    transform: translateX(-50%);

}




.circulo1 {
    margin-top: 50px;
}

.circulo2 {
    margin-top: 20px;
}

.circulo3 {
    margin-top: 15px;
}



.turma,
.individual {
    position: absolute;
    top: -60px;
    width: 240px;
    height: 60px;
    background: url('../imgs/top.svg') no-repeat center/contain;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 700;
    font-size: 28px;
}

.podio .individual {
    display: none;
}

.wrapper:has(#individual:checked) .podio .turma {
    display: none;
}

.wrapper:has(#individual:checked) .podio .individual {
    display: flex;
}

.wrapper:has(#turma:checked) .primeiro-wrapper:not(:has(.turma)),
.wrapper:has(#turma:checked) .segundo-wrapper:not(:has(.turma)),
.wrapper:has(#turma:checked) .terceiro-wrapper:not(:has(.turma)) {
    display: none;
}

.wrapper:has(#individual:checked) .primeiro-wrapper:not(:has(.individual)),
.wrapper:has(#individual:checked) .segundo-wrapper:not(:has(.individual)),
.wrapper:has(#individual:checked) .terceiro-wrapper:not(:has(.individual)) {
    display: none;
}



.pontos1 {
    position: absolute;
    top: -100px;
    color: white;
    font-size: 52px;
    font-weight: 800;
}

.pontos2 {
    position: absolute;
    top: -80px;
    color: white;
    font-size: 48px;
    font-weight: 800;
}

.pontos3 {
    position: absolute;
    top: -80px;
    color: white;
    font-size: 48px;
    font-weight: 800;
}

.primeiro-wrapper .tempo {
    top: 400px;
}

.segundo-wrapper .tempo {
    top: 320px;
}

.terceiro-wrapper .tempo {
    top: 280px;
}

.tempo {
    position: absolute;
    color: white;
    font-size: 28px;
    font-weight: 800;
    bottom: 10px;
}

.footer {
    width: 100%;
    height: 110px;
    background: #1f3b6d;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 40px 0 40px;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.footer-links a {
    color: white;
    text-decoration: none;
    font-weight: 700;
    font-size: 18px;
}

.footer-logo img {
    height: 70px;
}

.footer-socials {
    display: flex;
    gap: 20px;
}

.footer-socials img {
    height: 25px;
    filter: brightness(0) invert(1);
}


@media (max-width:1618px) {

    .classificacao {
        width: 850px;
    }


}

@media (max-width:1440px) {

    .main {
        gap: 0px;
        padding-top: 120px;
        flex-wrap: wrap-reverse;
    }

    .logo {
        height: 90px;
    }

    .classificacao {
        height: 460px;
        width: 860px;
    }

    .primeiro {
        transform: scale(.9);
        margin-bottom: -20px;
    }

    .circulo1 {
        top: 15px;
    }

    .circulo3 {
        top: 2px;
    }

    .wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:1100px) {

    .main {
        align-items: center;
        flex-wrap: wrap-reverse;
    }

    .change {
        top: 20px;
    }

    .radio-btn {
        width: 400px;
        height: 110px;
    }

    .logo {
        height: 70px;
        right: 20px;
    }

    .podio {
        transform: scale(.85);
    }

    .classificacao {
        width: 725px;
    }

    .wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

@media (max-width:700px) {

    .podio {
        transform: scale(.7);
    }

    .footer {
        flex-direction: column;
        gap: 10px;
        height: auto;
        padding: 20px;
    }

    .wrapper {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

}

.primeiro-wrapper.destaque .individual,
.segundo-wrapper.destaque .individual,
.terceiro-wrapper.destaque .individual,
.primeiro-wrapper.destaque .turma,
.segundo-wrapper.destaque .turma,
.terceiro-wrapper.destaque .turma {
    background-image: url(../imgs/top_destaque.svg);
}

.itemA.destaque,
.itemT.destaque {
    background: #2684d2;
    color: #ffffff;
}

.primeiro-wrapper.destaque .primeiro,
.segundo-wrapper.destaque .segundo,
.terceiro-wrapper.destaque .terceiro {
    background-color: #FF8400;
}

.primeiro-wrapper.destaque .circulo1,
.segundo-wrapper.destaque .circulo2,
.terceiro-wrapper.destaque .circulo3 {
    color: #FF8400;
}

.btn-back-admin {
    position: fixed;
    top: 18px;
    right: 20px;
    z-index: 100;
    background: rgba(17, 24, 39, 0.85);
    color: #fff;
    text-decoration: none;
    font-family: "Baloo Bhai 2", sans-serif;
    font-weight: 700;
    font-size: 15px;
    padding: 8px 16px;
    border-radius: 8px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(4px);
    transition: background 0.15s;
}

.btn-back-admin:hover {
    background: rgba(17, 24, 39, 1);
}

.empty-state {
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #fff;
    width: 100%;
    padding: 50px 0 30px;
    gap: 18px;
}

.ghost-podio {
    display: flex;
    align-items: flex-end;
    gap: 10px;
}

.ghost-slot {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.ghost-info {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.ghost-pts {
    font-size: 12px;
    font-weight: 700;
    color: #ffffff;
    letter-spacing: 1px;
}

.ghost-nome {
    font-size: 13px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 3px;
}

.ghost-circle-num {
    width: 46px;
    height: 46px;
    border-radius: 50%;
    border: 2px dashed #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    font-weight: 800;
    color: #ffffff;
}

.ghost-slot .ghost-bar {
    width: 90px;
    border-radius: 6px 6px 0 0;
    border: 2px dashed #ffffff;
    background: rgba(255, 255, 255, 0.12);
}

.ghost-2nd .ghost-bar {
    height: 90px;
}

.ghost-1st .ghost-bar {
    height: 130px;
}

.ghost-3rd .ghost-bar {
    height: 65px;
}

.empty-state .empty-title {
    font-size: 26px;
    font-weight: 700;
}

.empty-state .empty-sub {
    font-size: 16px;
    font-weight: 400;
    opacity: 0.5;
    max-width: 380px;
}

.wrapper:has(#turma:checked) .empty-turma,
.wrapper:has(#individual:checked) .empty-individual {
    display: flex;
}

.wrapper:has(#turma:checked) .podio:not(:has(.turma)),
.wrapper:has(#individual:checked) .podio:not(:has(.individual)) {
    margin-top: 0;
}