/* Brincolar Games — estilos do site */
:root {
  --azul: #8FD3E8;
  --rosa: #FF8FB8;
  --lilas: #B79CED;
  --amarelo: #FFD166;
  --noite: #2B2A4C;
  --fundo: #FFFBF5;
  --azul-claro: #E3F4FA;
  --rosa-claro: #FFE9F1;
  --lilas-claro: #EFE8FB;
  --texto-suave: #44436B;
  --rosa-escuro: #C2356F;
  --titulo: 'Baloo 2', 'Trebuchet MS', sans-serif;
  --texto: 'Nunito', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--texto);
  font-size: 17px;
  line-height: 1.55;
  color: var(--noite);
  background: var(--fundo);
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: var(--titulo); font-weight: 800; line-height: 1.1; margin: 0; }
p { margin: 0; }
a { color: var(--noite); }
:focus-visible { outline: 3px solid var(--rosa-escuro); outline-offset: 3px; border-radius: 6px; }
[hidden] { display: none !important; }

.pular {
  position: absolute; left: 8px; top: -60px; z-index: 100;
  background: var(--amarelo); border: 3px solid var(--noite); border-radius: 12px;
  padding: 8px 14px; font-weight: 800;
}
.pular:focus { top: 8px; }

.contem { max-width: 1120px; margin: 0 auto; padding-left: 20px; padding-right: 20px; }

/* Cabeçalho */
.topo { border-bottom: 3px solid var(--noite); background: var(--fundo); }
.topo.sem-borda { border-bottom: 0; }
.topo .contem {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between;
  gap: 4px 8px; padding-top: 12px; padding-bottom: 12px;
}
.marca { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.marca img { width: 68px; height: 44px; object-fit: contain; }
.marca span { font-family: var(--titulo); font-weight: 800; font-size: 26px; line-height: 1; }
.marca em { font-style: normal; color: var(--rosa-escuro); }
.menu { display: flex; flex-wrap: wrap; gap: 2px; }
.menu a { font-weight: 800; text-decoration: none; padding: 11px 10px; border-radius: 12px; }
.menu a:hover, .menu a[aria-current="page"] { background: var(--rosa-claro); }

/* Botões */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 6px 22px;
  border: 3px solid var(--noite); border-radius: 999px;
  background: #fff; color: var(--noite);
  font-family: inherit; font-weight: 800; font-size: 17px; line-height: 1.2; text-align: center; text-decoration: none;
  box-shadow: 0 4px 0 var(--noite); cursor: pointer;
  transition: transform .12s, box-shadow .12s;
}
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 0 var(--noite); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--noite); }
.btn.rosa { background: var(--rosa); }
.btn.azul { background: var(--azul); }
.btn.amarelo { background: var(--amarelo); }
.btn.redondo { width: 48px; padding: 0; }

.selo {
  display: inline-block; background: var(--amarelo);
  border: 3px solid var(--noite); border-radius: 999px;
  padding: 3px 14px; font-weight: 800; font-size: 14px;
}

/* Herói */
.heroi { display: flex; flex-wrap: wrap; align-items: center; gap: 32px; padding-top: 36px; padding-bottom: 72px; }
.heroi-texto { flex: 1 1 420px; min-width: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 20px; }
.heroi-texto .selo { transform: rotate(-2deg); }
.heroi h1 { font-size: clamp(40px, 7vw, 68px); }
.heroi h1 em { font-style: normal; color: var(--rosa-escuro); }
.heroi-texto p { font-size: 20px; max-width: 520px; color: var(--texto-suave); }
.acoes { display: flex; flex-wrap: wrap; gap: 14px; }
.heroi-arte { flex: 1 1 320px; min-width: 0; position: relative; min-height: 340px; display: flex; align-items: center; justify-content: center; }
.heroi-arte .bola { position: absolute; width: min(300px, 80%); aspect-ratio: 1; border-radius: 50%; background: var(--azul); border: 3px solid var(--noite); }
.heroi-arte .quadrado { position: absolute; right: 6%; top: 4%; width: 64px; height: 64px; border-radius: 18px; background: var(--amarelo); border: 3px solid var(--noite); animation: gira 14s linear infinite; }
.heroi-arte .bolinha { position: absolute; left: 4%; bottom: 6%; width: 46px; height: 46px; border-radius: 50%; background: var(--lilas); border: 3px solid var(--noite); animation: pulsa 3s ease-in-out infinite; }
.heroi-arte .triangulo { position: absolute; left: 10%; top: 8%; width: 0; height: 0; border-left: 22px solid transparent; border-right: 22px solid transparent; border-bottom: 38px solid var(--rosa); transform: rotate(-18deg); }
.heroi-arte img { position: relative; width: min(430px, 100%); animation: flutua 4s ease-in-out infinite; }

/* Seções */
.faixa { border-top: 3px solid var(--noite); border-bottom: 3px solid var(--noite); padding: 64px 0; }
.faixa.azul { background: var(--azul-claro); }
.faixa.lilas { background: var(--lilas-claro); border-bottom: 0; padding: 72px 0 80px; }
.secao { padding-top: 72px; padding-bottom: 36px; display: flex; flex-direction: column; gap: 20px; }
.secao + .secao { padding-top: 36px; padding-bottom: 80px; }
.secao h2, .faixa h2 { font-size: clamp(30px, 5vw, 46px); }
.sub { color: var(--texto-suave); max-width: 640px; }
.titulo-linha { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cabeca-jogos { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.cabeca-jogos .sub { margin-top: 6px; }
.setas { display: flex; gap: 10px; }

/* Carrossel */
.trilho {
  display: flex; gap: 20px; overflow-x: auto;
  scroll-snap-type: x mandatory; scroll-behavior: smooth;
  padding: 6px 4px 22px; margin: 0; list-style: none;
  scrollbar-width: thin; -webkit-overflow-scrolling: touch;
}
.trilho > li { flex: 0 0 300px; max-width: 82%; scroll-snap-align: start; display: flex; }
.cartao {
  background: #fff; border: 3px solid var(--noite); border-radius: 24px;
  box-shadow: 0 5px 0 var(--noite); overflow: hidden;
  display: flex; flex-direction: column; width: 100%;
  transition: transform .2s;
}
a.cartao { text-decoration: none; }
.cartao:hover { transform: translateY(-5px); }
.cartao > img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-bottom: 3px solid var(--noite); background: var(--azul); }
.cartao .nome { font-family: var(--titulo); font-weight: 800; font-size: 22px; line-height: 1.1; padding: 14px 18px 16px; }
.centro { display: flex; justify-content: center; margin-top: 4px; }

/* Banners */
.banner {
  display: block; border: 3px solid var(--noite); border-radius: 28px;
  box-shadow: 0 6px 0 var(--noite); overflow: hidden; background: var(--rosa-claro);
  transition: transform .2s;
}
a.banner:hover { transform: translateY(-5px) rotate(-.4deg); }
.banner img { display: block; width: 100%; min-height: 180px; object-fit: cover; }

/* Sobre e equipe */
.sobre-texto { display: flex; flex-direction: column; gap: 14px; max-width: 800px; }
.sobre-texto p { font-size: 19px; }
.equipe-titulo { font-size: 30px; margin: 36px 0 20px; }
.equipe { display: flex; flex-wrap: wrap; gap: 24px; }
.pessoa {
  flex: 1 1 320px; min-width: 0; background: #fff;
  border: 3px solid var(--noite); border-radius: 28px; box-shadow: 0 5px 0 var(--noite);
  padding: 26px; display: flex; flex-direction: column; gap: 14px;
}
.pessoa-topo { display: flex; align-items: center; gap: 16px; }
.pessoa-topo img { width: 104px; height: 104px; flex: none; border-radius: 50%; object-fit: cover; border: 3px solid var(--noite); }
.pessoa h3 { font-size: 26px; }
.pessoa .papel { font-weight: 700; color: #A8275B; }
.pessoa .papel.azul { color: #1F6F8B; }

/* Rodapé */
.rodape { background: var(--noite); color: var(--fundo); padding: 56px 0 150px; text-align: center; }
.rodape .contem { display: flex; flex-direction: column; align-items: center; gap: 24px; }
.rodape h2 { font-size: 30px; }
.rodape .acoes { justify-content: center; }
.rodape .btn { border-color: var(--fundo); box-shadow: 0 4px 0 var(--fundo); }
.rodape .btn:hover { box-shadow: 0 6px 0 var(--fundo); }
.rodape .btn:active { box-shadow: 0 1px 0 var(--fundo); }
.rodape .insta { color: var(--amarelo); font-weight: 700; padding: 12px; }
.rodape small { font-size: 14px; color: #D9D7EE; }
.rodape :focus-visible { outline-color: var(--amarelo); }

/* Páginas internas */
.pagina { padding-top: 48px; padding-bottom: 150px; display: flex; flex-direction: column; gap: 32px; }
.pagina h1 { font-size: clamp(36px, 6vw, 56px); }
.pagina .intro { font-size: 19px; color: var(--texto-suave); max-width: 640px; margin-top: 8px; }
body.fundo-azul { background: var(--azul-claro); }
body.fundo-rosa { background: var(--rosa-claro); }

.grade { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.grade > li { display: flex; }
.cartao .corpo { padding: 18px 20px 22px; display: flex; flex-direction: column; align-items: flex-start; gap: 10px; flex-grow: 1; }
.cartao h2 { font-size: 24px; }
.plataforma { background: var(--lilas-claro); border: 2px solid var(--noite); border-radius: 999px; padding: 1px 12px; font-weight: 700; font-size: 14px; }
.cartao .corpo p { color: var(--texto-suave); margin-bottom: 6px; }
.cartao .corpo .btn { margin-top: auto; }
.aviso { background: #fff; border: 3px dashed var(--noite); border-radius: 20px; padding: 20px; }

.construcao { max-width: 960px; align-items: center; text-align: center; gap: 28px; }
.construcao .selo { font-size: 18px; padding: 6px 22px; animation: balanca 2.4s ease-in-out infinite; }
.construcao .banner { width: 100%; background: var(--fundo); }
.construcao .intro { max-width: 600px; margin: 0; font-size: 20px; }
.construcao .acoes { justify-content: center; }

.servicos { display: flex; flex-wrap: wrap; gap: 24px; }
.servico {
  flex: 1 1 320px; min-width: 0; border: 3px solid var(--noite); border-radius: 28px;
  box-shadow: 0 5px 0 var(--noite); padding: 28px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 14px;
}
.servico.rosa { background: var(--rosa-claro); }
.servico.azul { background: var(--azul-claro); }
.servico h2 { font-size: 28px; }
.servico .btn { margin-top: auto; }
.icone { width: 60px; height: 60px; border-radius: 50%; border: 3px solid var(--noite); display: flex; align-items: center; justify-content: center; }
.servico.rosa .icone { background: var(--rosa); }
.servico.azul .icone { background: var(--azul); }

/* Morceguinha fixa */
.mascote {
  position: fixed; right: 10px; bottom: 10px; z-index: 50;
  width: min(280px, calc(100vw - 20px));
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
  pointer-events: none;
}
.mascote > * { pointer-events: auto; }
.mascote-btn { width: 132px; height: 132px; padding: 0; border: 0; background: transparent; cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.mascote-btn img { display: block; width: 100%; height: 100%; }
.balao {
  width: 100%; background: #fff; border: 3px solid var(--noite);
  border-radius: 24px 24px 6px 24px; box-shadow: 0 5px 0 var(--noite);
  padding: 16px; display: flex; flex-direction: column; gap: 10px;
  transform-origin: bottom right; animation: surge .22s ease-out;
}
.balao-titulo { font-family: var(--titulo); font-weight: 800; font-size: 20px; line-height: 1.1; }
.balao-menu { display: flex; flex-direction: column; gap: 10px; }
.balao .opcao {
  min-height: 46px; padding: 6px 12px; border: 3px solid var(--noite); border-radius: 22px;
  display: flex; align-items: center; justify-content: center; text-align: center;
  font-family: inherit; font-weight: 800; font-size: 16px; line-height: 1.2; color: var(--noite);
  text-decoration: none; cursor: pointer; transition: transform .12s;
}
.balao .opcao:hover { transform: scale(1.03); }
.balao .opcao.azul { background: var(--azul); }
.balao .opcao.amarelo { background: var(--amarelo); }
.balao .opcao.rosa { background: var(--rosa); }
.balao .opcao.lilas { background: var(--lilas); }
.balao-pe { display: flex; justify-content: space-between; gap: 4px; }
.balao-pe button {
  min-height: 44px; padding: 0 10px; border: 0; background: transparent; color: var(--noite);
  font-family: inherit; font-weight: 700; font-size: 14px; text-decoration: underline; cursor: pointer;
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .topo .contem { justify-content: center; }
  .heroi { padding-top: 24px; padding-bottom: 56px; }
  .heroi-arte { min-height: 280px; }
  .pessoa { padding: 20px; }
  .pessoa-topo img { width: 84px; height: 84px; }
  .mascote-btn { width: 104px; height: 104px; }
}

@keyframes flutua { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-16px) rotate(2deg); } }
@keyframes gira { to { transform: rotate(360deg); } }
@keyframes pulsa { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.12); } }
@keyframes balanca { 0%, 100% { transform: rotate(-3deg); } 50% { transform: rotate(3deg); } }
@keyframes surge { from { transform: scale(.6); opacity: 0; } to { transform: scale(1); opacity: 1; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
