body {
    margin: 0;
    padding: 0;
    font-family: Arial, sans-serif;
    color: white;
    text-align: center;

    /* fundo dividido */
    background: linear-gradient(
        to bottom,
        #001b44 0px,
        #001b44 200px,
        transparent 320px
    ),
    url("Campo.png");

    background-size: 100% 320px, cover;
    background-position: top, center;
    background-repeat: no-repeat, no-repeat;
    background-attachment: scroll;
}

/* faixa superior */
#logoTitulo {
    width: 350px;
    margin-top:10px;
    margin-bottom: 20px;
}

/* botão */
button {
    background: #001b44;
    color: #D4AF37;
    border: 2px solid #D4AF37;

    padding: 22px 70px;
    font-size: 30px;
    font-weight: bold;

    border-radius: 14px;
    cursor: pointer;

    margin-top: 25px;
    margin-bottom: 40px;

    transition: 0.3s;
}

button:hover {
    background: #002b6b;
    transform: scale(1.05);
}

/* Área da animação */
.animation-area {
    position: relative;
    width: 100%;
    min-height: 400px;
}

/* Pacote */
#pack {
    width: 1000px;
    position: relative;
    margin: auto;
    display: block;
    transition: all 1s ease;
}

/* Tremor */
.shake {
    animation: shake 0.5s infinite;
}

@keyframes shake {
    0% { transform: translateX(0px); }
    25% { transform: translateX(-10px); }
    50% { transform: translateX(10px); }
    75% { transform: translateX(-10px); }
    100% { transform: translateX(0px); }
}

/* Flash */
#flash {
    position: fixed;
    width: 100%;
    height: 100%;
    background: white;
    top: 0;
    left: 0;
    opacity: 0;
    pointer-events: none;
}

.flash-active {
    animation: flashEffect 0.5s;
}

@keyframes flashEffect {
    0% { opacity: 0; }
    50% { opacity: 1; }
    100% { opacity: 0; }
}

/* Container geral ranking */
#cardContainer {
    display: none;
    width: 100%;
    margin-top: 30px;
}

/* TOP 3 */
.top3-container {
    position: relative;
    width: 100%;
    height: 500px;
    margin-bottom: 50px;
}

/* configuração base */
.top-card {
    position: absolute;
    text-align: center;
    color: white;
}

/* 1º lugar */
.primeiro-lugar {
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
}

.primeiro-lugar img {
    width: 260px;
}

.segundo-lugar {
    top: 50px;
    left: 35%;
    transform: translateX(-50%);
}

.segundo-lugar img {
    width: 230px;
}

.terceiro-lugar {
    top: 70px;
    left: 65%;
    transform: translateX(-50%);
}

.terceiro-lugar img {
    width: 210px;
}

/* Restante */
.restantes-container {
    display: grid;
    grid-template-columns: repeat(5, 180px);
    justify-content: center;
    column-gap: 90px;
    row-gap: 35px;
    width: 100%;
    margin: auto;
    padding-bottom: 50px;
}

/* Cards restantes */
.rest-card {
    width: 180px;
    background: transparent;
    padding: 0;
    margin: auto;
    box-shadow: none;
    min-height: auto;
}

.rest-card .card-wrapper {
    width: 100%;
}

.rest-card .card-wrapper img {
    width: 100%;
    display: block;
    transform: scale(1.14);
}

/* Faz a figurinha ocupar certinho o card */
.rest-card .card-wrapper {
    width: 100%;
}



/* Responsivo */
@media (max-width: 1200px) {
    .restantes-container {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 800px) {
    .top3-container {
        flex-direction: column;
        align-items: center;
    }

    .restantes-container {
        grid-template-columns: repeat(2, 1fr);
    }

    #pack {
        width: 350px;
    }
}

@media (max-width: 500px) {
    .restantes-container {
        grid-template-columns: 1fr;
    }

    h1 {
        font-size: 32px;
    }

    button {
        font-size: 18px;
        padding: 12px 25px;
    }
}
.card-wrapper {
    position: relative;
    display: inline-block;
}

.card-wrapper img {
    display: block;
}

/* posição dentro do card */
.ranking-position {
    position: absolute;
    top: 57px;
    left: 6px;

    width: 50px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    font-size: 35px;
    font-weight: bold;
    color: #D4AF37;
}

/* vendas dentro do card */
.ranking-sales {
    position: absolute;
    bottom: 14px;
    right: 37px;

    font-size: 34px;
    font-weight: bold;
    color: #001b44;
}
/* TOP 3 */
/* PRIMEIRO LUGAR */
.primeiro-position {
    top: 15%;
    left: 2%;
    font-size: 30px;
}

.primeiro-sales {
    bottom: 1%;
    right: 8%;
    font-size:30px;
}

/* SEGUNDO LUGAR */
.segundo-position {
    top: 14%;
    left: 1%;
    font-size: 25px;
}

.segundo-sales {
    bottom: 1%;
    right: 9%;
    font-size: 27px;
}

/* TERCEIRO LUGAR */
.terceiro-position {
    top: 14%;
    left: 0%;
    font-size: 23px;
}

.terceiro-sales {
    bottom: 1%;
    right: 9%;
    font-size: 25px;
}

/* RESTANTES */
.rest-position {
    top: 9%;
    left: -7%;
    font-size: 20px;
}

.rest-sales {
    bottom:-6%;
    right: 4%;
    font-size: 24px;
}
.top-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
#menuTopo {
    position: absolute;
    top: 20px;
    right: 30px;
    display: flex;
    gap: 10px;
}

#menuTopo button {
    padding: 8px 16px;
    font-size: 14px;
}
#campoScreen {
    display: none;
    width: 100%;
    height: 100vh; /* 🔥 ocupa a tela toda */
    position: relative;
}

#campoArea {
    position: relative;
    width: 100%;
    height: 100%;

    background-image: url("Campo1.png");
    background-position: center;
    background-repeat: no-repeat;
    background-size: contain;
}
.player {
    position: absolute;
    width: 100px;
    height: 100px;

    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #D4AF37;

    opacity: 1; /* 🔥 SEMPRE visível */

    filter: drop-shadow(0px 12px 10px rgba(0, 0, 0, 0.6))
            drop-shadow(0px 6px 4px rgba(0, 0, 0, 0.4));
}

.player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#popupOverlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.8);

    display: none;
    align-items: center;
    justify-content: center;

    z-index: 999;
}

#popupOverlay img {
    width: 300px;
    max-width: 90%;
}
#banco {
    position: absolute;
    width: 150px;
    cursor: grab;
    z-index: 5;

    transform-origin: center;
}
#adminBtn {
    position: fixed;
    bottom: 20px;
    left: 20px;

    background: rgba(0,0,0,0.7);
    color: #D4AF37;
    border: 1px solid #D4AF37;

    padding: 10px 15px;
    border-radius: 8px;
    cursor: pointer;
}
#listaCorretores {
    position: absolute;
    width: 220px;
    max-height: 300px;
    overflow-y: auto;

    background: rgba(0,0,0,0.85);
    padding: 10px;
    border-radius: 10px;

    display: none; /* 🔥 começa escondido */
    z-index: 10;
}

.item-corretor {
    display: flex;
    align-items: center;
    gap: 10px;

    margin-bottom: 10px;
    cursor: pointer;
}

.item-corretor img {
    width: 40px;
    height: 40px;
    border-radius: 50%;
}

.item-corretor span {
    font-size: 14px;
}
#var {
    position: absolute;
    width: 120px;
    cursor: grab;
    z-index: 5;
    transform-origin: center;
}
@keyframes pulsarLeve {
    0% {
        filter: brightness(1);
        opacity: 1;
    }
    50% {
        filter: brightness(1.4);
        opacity: 0.8;
    }
    100% {
        filter: brightness(1);
        opacity: 1;
    }
}

#banco, #var {
    animation: pulsarLeve 1.2s infinite;
}
#topoCampo {
    position: absolute;
    top: 10px;
    width: 100%;

    display: flex;
    justify-content: space-around;

    z-index: 20; /* 🔥 traz pra frente */
}

.bloco-topo {
    background: transparent;   /* 🔥 remove o fundo azul */
    border: none;              /* 🔥 remove a borda externa */
    box-shadow: none;          /* 🔥 remove a sombra */


    padding: 8px 12px;
    border-radius: 10px;

    text-align: center;
    min-width: 180px;

}

.bloco-topo h3 {
    display: none;
}

#comissaoArea, #arbitragemArea {
    display: flex;
    justify-content: center;
    gap: 8px;
}
#reservasBox {
    position: absolute;
    bottom: 20px;
    left: 200px;

    display: inline-block; /* 🔥 acompanha o tamanho do conteúdo */
}

#tituloReservas {
    background: linear-gradient(180deg, #0b2c5c, #081f40);
    color: #D4AF37;

    border: 2px solid #D4AF37;
    border-radius: 10px;

    padding: 6px;
    text-align: center;
    font-weight: bold;

    margin-bottom: 5px;
display: none; /* 🔥 REMOVE o duplicado */
}

#areaReservas {
    display: flex;
    justify-content: center;
}

#areaReservas button {
    background: linear-gradient(180deg, #0b2c5c, #081f40);
    color: #D4AF37;
    border: 2px solid #D4AF37;

    padding: 8px 20px;
    border-radius: 10px;
    cursor: pointer;
}
.reserva-player {
    width: 45px;
    height: 45px;

    border-radius: 50%;
    overflow: hidden;

    flex-shrink: 0; /* 🔥 NÃO deixa encolher */
border: 2px solid #D4AF37;
}

.reserva-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
#modalReservas {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 9999;
}

#modalContent {
    background: #081f40;
    border: 2px solid #D4AF37;
    border-radius: 12px;

    padding: 20px;
    text-align: center;
}

#modalContent h2 {
    color: #D4AF37;
    margin-bottom: 15px;
}

#modalLista {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}

.modal-player {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    overflow: hidden;
    cursor: pointer;

    border: 2px solid #D4AF37;
}

.modal-player img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.player.animar {
    animation: aparecerPlayer 0.5s ease;
}

@keyframes aparecerPlayer {
    from {
        opacity: 0;
        transform: scale(0.6);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}
.modal-player {
    position: relative;
}

.cargo {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);

    font-size: 12px;
    color: #D4AF37;
    font-weight: bold;
}
/* 🔥 MODAL ARBITRAGEM / COMISSÃO */

#modalTopo {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;

    background: rgba(0,0,0,0.7);

    display: none;
    justify-content: center;
    align-items: center;

    z-index: 99999;
}

#modalTopoContent {
    background: linear-gradient(180deg, #0b2c5c, #081f40);
    border: 2px solid #D4AF37;
    border-radius: 12px;

    padding: 20px 30px;
    text-align: center;

    box-shadow: 0 0 15px rgba(0,0,0,0.7);
}

#modalTopoTitulo {
    color: #D4AF37;
    font-size: 22px;
    margin-bottom: 15px;
}

#modalTopoLista {
    display: flex;
    gap: 15px;
    justify-content: center;
    flex-wrap: wrap;
}