:root{
--sky:#b4d9ff;
--grass:#9fe37f;
--sun:#ffe89b;
--red:#d43030;
--text:#141518;
--white:#ffffff;
--glass-bg:rgba(255,255,255,.18);
--glass-border:rgba(255,255,255,.35);
--shadow:0 10px 40px rgba(0,0,0,.25);
--radius:20px;
--max:1200px;
}

*{box-sizing:border-box;margin:0;padding:0}
html{scroll-behavior:smooth}
body{font-family:Nunito,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;background:var(--sky);color:var(--text)}

header{
position:fixed;inset:0 0 auto 0;z-index:998;
backdrop-filter:blur(10px) saturate(180%);
background:var(--glass-bg);
border-bottom:1px solid var(--glass-border);
box-shadow:var(--shadow);
}
.nav{
max-width:var(--max);margin:0 auto;
padding:12px 24px;display:flex;align-items:center;justify-content:space-between;gap:16px;
position:relative;
}
.brand{
display:flex;
align-items:center;
gap:12px;
font-family:Chewy,cursive;
font-weight:400;
text-transform:uppercase;
text-shadow:1px 1px 2px rgba(0,0,0,0.7);
color:#ffffff;
}
.brand img{width:42px;height:42px}
nav{
display:flex;
align-items:center;
gap:8px;
}
nav a{
padding:8px 10px;
border-radius:12px;
text-decoration:none;
font-weight:600;
color:#ffffff;
text-shadow:1px 1px 2px rgba(0,0,0,0.7);
transition:all 0.3s ease;
}
nav a:hover{
background:rgba(255,255,255,0.2);
text-shadow:1px 1px 3px rgba(0,0,0,0.9);
}

/* Menu hambúrguer para mobile */
.menu-toggle{
display:none;
flex-direction:column;
cursor:pointer;
padding:8px;
background:none;
border:none;
z-index:1001;
}

.menu-toggle span{
width:25px;
height:3px;
background:#ffffff;
margin:3px 0;
transition:0.3s;
border-radius:2px;
box-shadow:1px 1px 2px rgba(0,0,0,0.7);
}

.menu-toggle.active span:nth-child(1){
transform:rotate(-45deg) translate(-5px, 6px);
}

.menu-toggle.active span:nth-child(2){
opacity:0;
}

.menu-toggle.active span:nth-child(3){
transform:rotate(45deg) translate(-5px, -6px);
}
.edit-btn{margin-left:8px;border:0;border-radius:12px;background:var(--red);color:#fff;padding:10px 14px;font-weight:800}

section{
min-height:100vh;display:flex;align-items:center;justify-content:center;flex-direction:column;
padding:112px 20px 72px;position:relative;text-align:center;
background-repeat:no-repeat;
background-attachment:scroll;
}

/* Configuração para imagens de fundo individuais (1920x1080) */
#inicio{
background-image:url(scr/bg44.png);
background-position:center center;
background-size:cover;
background-repeat:no-repeat;
}

#jogos{
background-image:url(scr/bg33.png);
background-position:center center;
background-size:cover;
background-repeat:no-repeat;
}

#quem-somos{
background-image:url(scr/bg22.png);
background-position:center center;
background-size:cover;
background-repeat:no-repeat;
align-items: flex-start; /* não centraliza verticalmente (mantém conteúdo no topo da seção) */
padding-top: 160px; /* espaço extra para o header fixo; ajuste se necessário */
padding-bottom: 80px;
text-align: center;
}

#quem-somos .section-wrap{
width:100%;
max-width:var(--max);
margin:0 auto;
display:flex;
flex-direction:column;
align-items:center; /* centraliza horizontalmente dentro da section-wrap */
}

#quem-somos .manifesto-box{
position:relative;
z-index:5; /* acima dos cards e do fundo */
max-width:760px;
width:min(100%,760px);
margin:-60px auto 40px; /* sobe o box e adiciona espaço inferior para os cards */
padding:24px 28px;
border-radius:24px;
box-shadow:0 18px 40px rgba(0,0,0,0.45);
background:rgba(0,0,0,0.45);
}

#quem-somos .title-row{
margin-top:18px;
padding:0 10px;
z-index:2;
width:100%;
display:flex;
justify-content:flex-start;
align-items:center;
}
#quem-somos .title-row h2{ margin-left:6px; }
#quem-somos .team-grid{ margin-top:8px; z-index:1; }

#contato{
background-image:url(scr/bg11.png);
background-position:center center;
background-size:cover;
background-repeat:no-repeat;
}
.bg-tools{position:absolute;right:24px;top:90px;display:none;gap:8px;z-index:2}
.bg-tools input{width:min(60vw,420px);height:44px;border-radius:12px;border:1px solid var(--glass-border);background:rgba(0,0,0,.15);color:#fff;padding:0 12px}
.bg-tools button{height:44px;border-radius:12px;border:0;background:var(--sun);color:#2a1b06;font-weight:800;padding:0 14px}
body.edit-bg .bg-tools{display:flex}

.glass{
background:rgba(255,255,255,0.25);
border:1px solid rgba(255,255,255,0.4);
border-radius:var(--radius);
box-shadow:var(--shadow);
backdrop-filter:blur(12px);
}

.glass-hero{
border-radius:var(--radius);
box-shadow:var(--shadow);
backdrop-filter:blur(12px);
}

.glass-member{
border-radius:var(--radius);
box-shadow:var(--shadow);
backdrop-filter:blur(12px);
}

.manifesto-box{
background:rgba(0,0,0,0.4);
border:1px solid rgba(255,255,255,0.2);
backdrop-filter:blur(15px);
}

.hero-box{
    padding:38px;
}
.hero-box h1{
font-family:Chewy,cursive;
font-size:2.1rem;
font-weight:400;
margin-bottom:14px;
text-shadow:2px 2px 4px rgba(0, 0, 0, 0);
color:#ffffff;
}
.hero-box p{
font-family:Nunito,sans-serif;
font-size:1.08rem;
line-height:1.65;
text-shadow:2px 2px 4px rgb(0, 0, 0);
color:#ffffff;
}

.hero-content{
width:50%;
max-width:var(--max);
margin:0 auto;
padding:38px 24px;
text-align:center;
}
.hero-content h1{
font-family:Chewy,cursive;
font-size:2.1rem;
font-weight:400;
margin-bottom:14px;
text-shadow:2px 2px 4px rgba(0,0,0,0.7);
color:#cece0c;
}
.hero-content p{
font-family:Nunito,sans-serif;
font-size:1.5rem;
line-height:1.65;
text-shadow:1px 1px 3px rgba(0, 0, 0, 0.8);
color:#cece0c;
}

.section-wrap{width:100%;max-width:var(--max);margin:0 auto}
.title-row{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px;padding:0 6px}
.title-row h2{
font-family:Chewy,cursive;
font-size:1.4rem;
font-weight:400;
text-transform:uppercase;
text-shadow:2px 2px 4px rgba(0,0,0,0.8);
color:#ffffff;
}

#quem-somos .title-row{
margin-top:40px;
}
.badge{background:var(--sun);color:#2a1b06;border-radius:12px;padding:8px 12px;font-weight:800}

.games-grid{
display:grid;gap:20px;
grid-template-columns:repeat(3, minmax(0,1fr));
width:100%;
}
.game-card{
overflow:hidden;
text-align:left;
position:relative;
cursor:pointer;
transition:transform 0.3s ease, box-shadow 0.3s ease;
}
.game-card:hover{
transform:translateY(-4px);
box-shadow:0 8px 25px rgba(0,0,0,0.3);
}
.game-card img{
width:100%;
height:auto;
display:block;
transition:transform 0.3s ease;
}
.game-card:hover img{
transform:scale(1.05);
}
.game-body{padding:20px}
.game-title{
font-family:Chewy,cursive;
font-weight:400;
margin-bottom:12px;
text-shadow:1px 1px 2px rgba(0,0,0,0.7);
color:#ffffff;
font-size:1.1rem;
}
.game-btn{
background:linear-gradient(135deg, var(--red), #ff6b6b);
color:#fff;
border:0;
border-radius:12px;
padding:12px 20px;
font-weight:800;
cursor:pointer;
width:100%;
font-size:0.95rem;
text-transform:uppercase;
letter-spacing:0.5px;
transition:all 0.3s ease;
box-shadow:0 4px 12px rgba(212, 48, 48, 0.3);
}
.game-btn:hover{
background:linear-gradient(135deg, #ff6b6b, var(--red));
transform:translateY(-2px);
box-shadow:0 6px 16px rgba(212, 48, 48, 0.4);
}
.game-btn:active{
transform:translateY(0);
}

.manifesto-box{padding:36px;margin-bottom:60px}
.manifesto-box h3{
font-family:Chewy,cursive;
color:#ffffff;
font-size:1.4rem;
margin-bottom:8px;
text-shadow:2px 2px 4px rgba(0,0,0,0.8);
font-weight:400;
}
.manifesto-box p{
font-family:Nunito,sans-serif;
line-height:1.6;
text-shadow:1px 1px 3px rgba(0,0,0,0.8);
color:#ffffff;
font-weight:500;
}
.manifesto-box .mark{
font-family:Nunito,sans-serif;
display:block;
margin-top:12px;
font-weight:800;
font-style: italic;
text-shadow:1px 1px 3px rgba(0,0,0,0.8);
color:#ffffff;
}

.team-grid{
display:grid;gap:24px;max-width:var(--max);width:100%;
grid-template-columns:repeat(3,minmax(0,1fr));
grid-template-rows:repeat(2,1fr);
}
.member{padding:20px}
.member img{
width:160px;
height:213px;
border-radius:12px;
margin:0 auto 12px;
display:block;
object-fit:cover;
box-shadow:0 4px 12px rgba(0,0,0,0.3);
}
.member h4{
font-family:Chewy,cursive;
font-weight:400;
text-shadow:1px 1px 2px rgba(0,0,0,0.7);
color:#ffffff;
}
.member .role{
font-family:Nunito,sans-serif;
opacity:.9;
text-shadow:1px 1px 2px rgba(0,0,0,0.6);
color:#ffffff;
}

.contact-box{max-width:640px;padding:40px}
.contact-box p{
font-family:Nunito,sans-serif;
text-shadow:1px 1px 2px rgba(0,0,0,0.6);
color:#ffffff;
margin-bottom:20px;
font-size:1.1rem;
line-height:1.6;
}
.contact-box a{
color:#FFD700;
font-weight:800;
text-decoration:none;
text-shadow:2px 2px 4px rgba(0,0,0,0.8);
transition:color 0.3s ease;
}
.contact-box a:hover{
color:#FFA500;
text-shadow:2px 2px 4px rgba(0,0,0,0.9);
}

.social-links{
display:flex;
justify-content:center;
align-items:center;
gap:24px;
margin-top:30px;
flex-wrap:wrap;
}

.social-link{
display:flex;
align-items:center;
justify-content:center;
width:60px;
height:60px;
background:rgba(255,255,255,0.1);
border:2px solid rgba(255,255,255,0.2);
border-radius:50%;
text-decoration:none;
transition:all 0.3s ease;
backdrop-filter:blur(10px);
}

.social-link:hover{
background:#4CAF50;
border-color:#2E7D32;
transform:translateY(-3px);
box-shadow:0 6px 20px rgba(76, 175, 80, 0.4);
}

.social-link img{
width:28px;
height:19px;
object-fit:contain;
filter:brightness(0) invert(1);
transition:filter 0.3s ease;
}

.social-link:hover img{
filter:brightness(0) invert(1);
}

.contact-title{
font-family:Chewy,cursive;
font-size:1.8rem;
font-weight:400;
text-align:center;
margin-bottom:20px;
text-shadow:2px 2px 4px rgba(0,0,0,0.8);
color:#ffffff;
}

footer{font-family:Nunito,sans-serif;text-align:center;background:#fff;color:#3a3a3a;padding:18px}

@media (max-width:1024px){ 
.games-grid{grid-template-columns:repeat(2,1fr)} 
.team-grid{grid-template-columns:repeat(2,1fr)}

.member img{
    width:140px;
    height:187px;
}
}

@media (max-width:768px){
.menu-toggle{
    display:flex;
}

.team-grid{
    grid-template-columns:repeat(2,1fr);
}

.member img{
    width:120px;
    height:160px;
}

nav{
    position:fixed;
    top:0;
    right:-100%;
    width:280px;
    height:100vh;
    background:rgba(0,0,0,0.95);
    backdrop-filter:blur(20px);
    flex-direction:column;
    justify-content:flex-start;
    align-items:flex-start;
    padding:80px 30px 30px;
    transition:right 0.3s ease;
    z-index:1001;
    box-shadow:-5px 0 20px rgba(0,0,0,0.3);
    display:flex;
}

nav.active{
    right:0;
}

nav a{
    width:100%;
    padding:15px 20px;
    margin:5px 0;
    border-radius:8px;
    font-size:1.1rem;
    text-align:left;
}

nav a:hover{
    background:rgba(255,255,255,0.15);
}
}

@media (max-width:560px){
.hero-box h1{font-size:1.7rem}
.hero-content{padding:20px}
.hero-content h1{font-size:1.7rem}
.games-grid{grid-template-columns:1fr}
.team-grid{grid-template-columns:1fr}

.member{
    padding:15px;
}

.member img{
    width:100px;
    height:133px;
}

.contact-box{
    padding:30px 20px;
}

.contact-title{
    font-size:1.5rem;
}

.social-links{
    gap:16px;
    margin-top:25px;
}

.social-link{
    width:50px;
    height:50px;
}

.social-link img{
    width:24px;
    height:16px;
}

.nav{
    padding:12px 16px;
}

.brand{
    font-size:0.9rem;
}

.brand img{
    width:36px;
    height:36px;
}

nav{
    width:260px;
    padding:70px 20px 20px;
}
}