html,
body{
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    height:100% !important;
    overflow:hidden !important;
    background:#050505 !important;
}

body,
body.page,
.site,
.site-content,
.content-area,
.site-main,
.entry-content,
.wp-site-blocks,
.wp-block-post-content{
    margin:0 !important;
    padding:0 !important;
    width:100% !important;
    max-width:100% !important;
    background:#050505 !important;
}

#gpo-jogo{
    position:fixed !important;
    inset:0 !important;
    width:100vw !important;
    height:100vh !important;
    overflow:hidden !important;
    box-sizing:border-box !important;
    z-index:999999 !important;
    background:
        radial-gradient(circle at center, rgba(255,170,0,0.08), transparent 60%),
        linear-gradient(180deg,#0b0b0b,#050505) !important;
    color:#fff;
    display:flex;
    flex-direction:column;
    font-family:Arial,sans-serif;
}

.gpo-topo{
    height:74px;
    min-height:74px;
    border-bottom:1px solid rgba(255,180,50,0.2);
    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:16px;
    padding:0 18px;
    box-sizing:border-box;
    background:rgba(0,0,0,0.58);
}

.gpo-logo-area{
    min-width:0;
}

.gpo-logo-area h1{
    margin:0;
    color:#f3b233;
    font-size:32px;
    line-height:1;
    white-space:nowrap;
}

.gpo-subtitulo{
    color:#888;
    margin-top:6px;
    font-size:12px;
}

.gpo-recursos{
    display:flex;
    gap:10px;
    flex-shrink:0;
}

.gpo-recurso{
    background:#121212;
    border:1px solid rgba(255,180,50,0.22);
    padding:8px 12px;
    border-radius:9px;
    display:flex;
    flex-direction:column;
    min-width:106px;
    box-shadow:0 0 20px rgba(0,0,0,0.35);
    font-size:12px;
}

.gpo-recurso strong{
    margin-top:5px;
    color:#f3b233;
    font-size:13px;
}

.gpo-centro{
    flex:1;
    min-height:0;
    display:grid;
    grid-template-columns:215px minmax(0,1fr) 215px;
    gap:16px;
    padding:16px;
    box-sizing:border-box;
    overflow:hidden;
}

.gpo-lateral-esquerda,
.gpo-lateral-direita{
    min-width:0;
    display:flex;
    flex-direction:column;
    gap:16px;
    overflow:hidden;
}

.gpo-card{
    background:#111;
    border:1px solid rgba(255,180,50,0.18);
    border-radius:12px;
    padding:14px;
    box-shadow:0 0 20px rgba(0,0,0,0.4);
    box-sizing:border-box;
}

.gpo-card h3{
    margin:0 0 12px 0;
    color:#f3b233;
    font-size:20px;
    line-height:1.1;
}

#gpo-setor-titulo,
.gpo-defesa-info{
    font-size:13px;
}

.gpo-cenario-area{
    min-width:0;
    min-height:0;
    display:flex;
}

#gpo-cenario{
    width:100%;
    height:100%;
    min-width:0;
    min-height:0;
    border-radius:16px;
    border:2px solid rgba(255,180,50,0.22);
    position:relative;
    overflow:hidden;
    background:
        radial-gradient(circle at center, rgba(255,180,50,0.15), transparent 55%),
        linear-gradient(135deg,#1a1a1a,#4b3214);
    background-size:cover;
    background-position:center;
    box-shadow:
        inset 0 0 90px rgba(0,0,0,0.65),
        0 0 40px rgba(255,180,50,0.08);
}

#gpo-setor-nome{
    position:absolute;
    top:36px;
    left:0;
    width:100%;
    text-align:center;
    font-size:36px;
    font-weight:bold;
    color:#f3b233;
    text-shadow:0 0 22px #000;
    z-index:4;
}

.gpo-tropas-area{
    position:absolute;
    bottom:52px;
    left:0;
    width:100%;
    display:flex;
    justify-content:space-between;
    padding:0 80px;
    box-sizing:border-box;
    z-index:5;
}

.gpo-tropas-atacantes,
.gpo-tropas-defensoras{
    display:flex;
    gap:12px;
}

.gpo-tropa{
    width:26px;
    height:26px;
    border-radius:6px;
    animation:gpoTropaMove 0.5s infinite alternate;
}

.gpo-tropa.atacante{
    background:#4da6ff;
    box-shadow:0 0 14px rgba(77,166,255,0.7);
}

.gpo-tropa.defensora{
    background:#ff4d4d;
    box-shadow:0 0 14px rgba(255,77,77,0.7);
}

.gpo-tropa:nth-child(2){ animation-delay:0.1s; }
.gpo-tropa:nth-child(3){ animation-delay:0.2s; }
.gpo-tropa:nth-child(4){ animation-delay:0.3s; }

.gpo-barra{
    width:100%;
    height:24px;
    background:#222;
    border-radius:30px;
    overflow:hidden;
    margin-bottom:12px;
}

#gpo-barra-defesa{
    width:100%;
    height:100%;
    background:linear-gradient(90deg,#8b0000,#ff3c3c);
    transition:width 0.2s linear;
}

.gpo-setores{
    display:flex;
    flex-direction:column;
    gap:9px;
}

.gpo-setores span{
    padding:11px;
    border-radius:8px;
    background:#1a1a1a;
    border:1px solid #333;
    color:#aaa;
    font-size:13px;
}

.gpo-setores span.ativo{
    background:#4a2d09;
    border-color:#f3b233;
    color:#fff;
}

.gpo-setores span.conquistado{
    background:#144d1f;
    border-color:#3cff77;
    color:#fff;
}

.gpo-upgrades{
    display:flex;
    flex-direction:column;
    gap:11px;
}

.gpo-upgrades button,
#gpo-btn-atacar,
#gpo-btn-recuar{
    width:100%;
    padding:14px 10px;
    border-radius:9px;
    cursor:pointer;
    font-size:13px;
    transition:0.2s;
    color:#fff;
    box-sizing:border-box;
}

.gpo-upgrades button{
    background:#24170b;
    border:1px solid rgba(255,180,50,0.25);
}

.gpo-upgrades button:hover{
    background:#3a2511;
    transform:scale(1.03);
}

#gpo-btn-atacar{
    margin-bottom:10px;
    background:linear-gradient(180deg,#b82828,#7a1010);
    border:0;
}

#gpo-btn-atacar:hover{
    transform:scale(1.03);
}

#gpo-btn-recuar{
    background:#222;
    border:0;
}

#gpo-btn-recuar:hover{
    background:#333;
}

@keyframes gpoTropaMove{
    from{ transform:translateY(0); }
    to{ transform:translateY(-8px); }
}

@media (max-width:1100px){
    .gpo-centro{
        grid-template-columns:190px minmax(0,1fr) 190px;
        gap:12px;
        padding:12px;
    }

    .gpo-logo-area h1{
        font-size:26px;
    }

    .gpo-recurso{
        min-width:88px;
        font-size:11px;
        padding:7px 9px;
    }

    #gpo-setor-nome{
        font-size:30px;
    }
}
#gpo-cenario::after{
    content:"";
    position:absolute;
    inset:0;
    z-index:1;
    pointer-events:none;
    opacity:0.9;
}

#gpo-cenario.gpo-setor-portao::after{
    background:
        linear-gradient(to top, rgba(0,0,0,.85), transparent 55%),
        radial-gradient(circle at 50% 70%, rgba(255,180,50,.18), transparent 18%),
        linear-gradient(90deg, transparent 35%, rgba(140,90,30,.55) 36%, rgba(140,90,30,.55) 64%, transparent 65%);
}

#gpo-cenario.gpo-setor-vilarejo::after{
    background:
        linear-gradient(to top, rgba(0,0,0,.85), transparent 60%),
        radial-gradient(circle at 25% 65%, rgba(160,90,35,.45), transparent 12%),
        radial-gradient(circle at 50% 60%, rgba(160,90,35,.45), transparent 13%),
        radial-gradient(circle at 75% 65%, rgba(160,90,35,.45), transparent 12%);
}

#gpo-cenario.gpo-setor-praca::after{
    background:
        linear-gradient(to top, rgba(0,0,0,.85), transparent 55%),
        radial-gradient(circle at 50% 55%, rgba(160,20,20,.45), transparent 18%),
        radial-gradient(circle at 30% 65%, rgba(255,120,30,.25), transparent 12%),
        radial-gradient(circle at 70% 65%, rgba(255,120,30,.25), transparent 12%);
}

#gpo-cenario.gpo-setor-cofres::after{
    background:
        linear-gradient(to top, rgba(0,0,0,.85), transparent 55%),
        radial-gradient(circle at 50% 65%, rgba(255,190,40,.45), transparent 18%),
        radial-gradient(circle at 40% 55%, rgba(150,80,255,.35), transparent 10%),
        radial-gradient(circle at 62% 55%, rgba(150,80,255,.35), transparent 10%);
}

#gpo-setor-nome,
.gpo-tropas-area{
    z-index:5;
}

/* Ajuste: deixar as imagens dos setores visíveis */
#gpo-cenario::after{ opacity:0.25 !important; }
.gpo-tropas-atacantes{
    transition: transform 0.3s linear;
}

.gpo-tropas-defensoras{
    transition: transform 0.3s linear;
}

.gpo-tropas-atacantes.avancando{
    animation: gpoAvancarTropas 2s linear infinite;
}

.gpo-tropas-defensoras.defendendo{
    animation: gpoDefenderTropas 0.7s ease-in-out infinite alternate;
}

@keyframes gpoAvancarTropas{
    0%{
        transform:translateX(0);
    }
    50%{
        transform:translateX(25px);
    }
    100%{
        transform:translateX(0);
    }
}

@keyframes gpoDefenderTropas{
    from{
        transform:translateX(0);
    }
    to{
        transform:translateX(-10px);
    }
}
.gpo-batalha-visual{
    position:absolute;
    left:0;
    right:0;
    bottom:70px;
    height:170px;
    z-index:8;
}

.gpo-cavaleiro{
    position:absolute;
    left:8%;
    bottom:10px;
    width:55px;
    height:85px;
    transition:left 0.4s linear;
}

.gpo-cavaleiro-cabeca{
    width:24px;
    height:24px;
    background:#c9c9c9;
    border-radius:50%;
    margin:0 auto;
    box-shadow:0 0 8px rgba(255,255,255,.5);
}

.gpo-cavaleiro-corpo{
    width:38px;
    height:48px;
    background:linear-gradient(#4b6cff,#1d2b80);
    border-radius:8px;
    margin:2px auto 0;
    border:2px solid #b7c4ff;
}

.gpo-cavaleiro-espada{
    position:absolute;
    width:8px;
    height:48px;
    background:#ddd;
    right:-10px;
    top:28px;
    transform:rotate(-25deg);
    transform-origin:bottom;
    border-radius:4px;
}

.gpo-cavaleiro.andando{
    animation:gpoCavaleiroAnda .45s infinite alternate;
}

.gpo-cavaleiro.atacando .gpo-cavaleiro-espada{
    animation:gpoGolpeEspada .35s infinite alternate;
}

.gpo-torre{
    position:absolute;
    right:13%;
    bottom:8px;
    width:80px;
    height:120px;
    transition:.3s;
}

.gpo-torre-topo{
    width:90px;
    height:30px;
    background:#5a4a3a;
    border:3px solid #c9a45a;
    border-radius:8px 8px 0 0;
}

.gpo-torre-corpo{
    width:70px;
    height:90px;
    margin:0 auto;
    background:linear-gradient(#777,#333);
    border:3px solid #b89a54;
    border-top:none;
}

.gpo-torre.tomando-dano{
    animation:gpoTorreDano .25s infinite;
}

.gpo-torre.destruida{
    opacity:.45;
    transform:rotate(-8deg) translateY(12px);
    filter:grayscale(1);
}

.gpo-impacto{
    position:absolute;
    right:21%;
    bottom:78px;
    width:35px;
    height:35px;
    border-radius:50%;
    background:rgba(255,190,40,.8);
    box-shadow:0 0 25px rgba(255,190,40,.9);
    opacity:0;
    transform:scale(.2);
}

.gpo-impacto.ativo{
    animation:gpoImpacto .35s ease-out;
}

@keyframes gpoCavaleiroAnda{
    from{ transform:translateY(0); }
    to{ transform:translateY(-8px); }
}

@keyframes gpoGolpeEspada{
    from{ transform:rotate(-25deg); }
    to{ transform:rotate(35deg); }
}

@keyframes gpoTorreDano{
    0%{ transform:translateX(0); }
    50%{ transform:translateX(5px); }
    100%{ transform:translateX(-5px); }
}

@keyframes gpoImpacto{
    0%{ opacity:1; transform:scale(.2); }
    70%{ opacity:1; transform:scale(1.2); }
    100%{ opacity:0; transform:scale(1.6); }
}