/* Área do aluno: a mesma marca, um pouco mais brincalhona */
.pagina-alunos { --azul: #cfe1e4; --azul-forte: #5f8f99; --lilas: #e2d8ea; --lilas-forte: #8a72a3; --areia: #f1e2c8; --areia-forte: #a9803f; }
.marca-aluno { display: flex; flex-direction: column; line-height: 1.15; }
.marca-aluno b { font-family: var(--serif); font-weight: 600; font-size: 1.25rem; color: var(--verde-escuro); }
.marca-aluno small { font-size: .8rem; color: var(--texto-suave); font-weight: 600; }

.boas-vindas { position: relative; overflow: hidden; padding: 54px 0 44px; text-align: center;
  background: radial-gradient(ellipse at 20% 0%, var(--rose-claro), transparent 60%), radial-gradient(ellipse at 90% 100%, var(--salvia-fundo), transparent 55%); }
.boas-vindas .envolve { position: relative; z-index: 1; }
.boas-vindas { min-height: 260px; display: grid; align-items: center; }
.desenho { position: absolute; z-index: 0; bottom: 0; width: 230px; }
.desenho img { width: 100%; height: auto; }
.desenho.esquerda { left: max(2%, calc(50% - 620px)); bottom: 10px; animation: flutua 4s ease-in-out infinite; }
.desenho.esquerda .coracoes { position: absolute; width: 45%; left: 18%; bottom: -6%; z-index: -1; }
.desenho.direita { right: max(2%, calc(50% - 620px)); bottom: -14px; width: 210px; }
@keyframes flutua { 0%, 100% { transform: translateY(0) rotate(-2deg); } 50% { transform: translateY(-10px) rotate(2deg); } }
@media (prefers-reduced-motion: reduce) { .desenho.esquerda { animation: none; } }
.ola { font-family: var(--script); font-size: clamp(2.6rem, 7vw, 4rem); color: var(--rose-forte); line-height: 1; display: block; }
.boas-vindas h1 { font-size: clamp(1.6rem, 4vw, 2.4rem); margin: 6px 0 0; }

#conteudo { padding: 30px 0 80px; min-height: 50vh; }
.bloco { margin-bottom: 46px; }
.bloco > h2 { font-size: 1.5rem; display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.bloco > h2::after { content: ''; flex: 1; height: 1px; background: repeating-linear-gradient(90deg, var(--dourado) 0 6px, transparent 6px 12px); }

/* Turmas */
.turmas { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.turma {
  --cor: var(--salvia-fundo); --forte: var(--verde);
  background: var(--cor); border-radius: 28px; padding: 22px 12px 18px; text-align: center;
  text-decoration: none; color: var(--forte); transition: transform .15s, box-shadow .15s;
  box-shadow: 0 4px 0 rgba(0, 0, 0, .06);
}
.turma:hover { transform: translateY(-4px) rotate(-1deg); box-shadow: 0 10px 22px rgba(63, 90, 70, .15); }
.turma .numero { font-family: var(--serif); font-size: 2.6rem; font-weight: 600; line-height: 1; display: block; }
.turma .numero sup { font-size: .5em; }
.turma .rotulo { font-weight: 800; font-size: 1rem; display: block; margin-top: 6px; }
.turma .qtd { font-size: .82rem; opacity: .8; }
.turma.c1 { --cor: var(--rose-claro); --forte: var(--rose-forte); }
.turma.c2 { --cor: var(--salvia-fundo); --forte: var(--verde); }
.turma.c3 { --cor: var(--areia); --forte: var(--areia-forte); }
.turma.c4 { --cor: var(--azul); --forte: var(--azul-forte); }
.turma.c5 { --cor: var(--lilas); --forte: var(--lilas-forte); }

/* Temas */
.temas { display: flex; flex-wrap: wrap; gap: 10px; }
.tema { padding: 12px 20px; border-radius: 999px; background: var(--branco); text-decoration: none; font-weight: 700; color: var(--verde); box-shadow: inset 0 0 0 1.5px var(--salvia-clara); transition: background .15s; }
.tema:hover { background: var(--salvia-fundo); }
.tema small { color: var(--texto-suave); font-weight: 600; margin-left: 4px; }

/* Jogos */
.jogos { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 18px; }
.jogo {
  background: var(--branco); border-radius: 20px; overflow: hidden; text-decoration: none; color: var(--texto);
  box-shadow: 0 3px 0 rgba(198, 160, 106, .25), 0 6px 18px rgba(63, 90, 70, .07);
  transition: transform .15s, box-shadow .15s; display: flex; flex-direction: column;
}
.jogo:hover { transform: translateY(-4px); box-shadow: 0 3px 0 rgba(198, 160, 106, .35), 0 14px 28px rgba(63, 90, 70, .14); }
.jogo .capa { aspect-ratio: 4 / 3; background: #fff; display: grid; place-items: center; padding: 8px; }
.jogo .capa img { width: 100%; height: 100%; object-fit: contain; }
.jogo .capa.texto { background: linear-gradient(135deg, var(--rose-claro), var(--salvia-fundo)); font-family: var(--serif); font-size: 1.2rem; color: var(--verde-escuro); text-align: center; padding: 16px; }
.jogo .legenda { padding: 10px 14px 12px; font-weight: 700; font-size: .92rem; line-height: 1.3; border-top: 1px solid var(--creme-2); }
.jogo .site { display: block; font-weight: 600; font-size: .75rem; color: var(--texto-suave); margin-top: 2px; }
.jogo .site-so { padding: 8px 14px 10px; font-size: .75rem; font-weight: 600; color: var(--texto-suave); border-top: 1px solid var(--creme-2); }

.cabecalho-secao { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px; margin-bottom: 24px; }
.cabecalho-secao h2 { margin: 0; font-size: clamp(1.7rem, 4vw, 2.3rem); }
.voltar { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-weight: 700; color: var(--verde); padding: 10px 16px; border-radius: 999px; background: var(--branco); box-shadow: inset 0 0 0 1.5px var(--salvia-clara); }
.vazio { text-align: center; color: var(--texto-suave); padding: 40px 0; }
.carregando { text-align: center; color: var(--texto-suave); padding: 40px 0; }

@media (max-width: 1000px) {
  .desenho { width: 160px; }
  .desenho.direita { width: 145px; }
  .boas-vindas .envolve { padding-inline: 130px; }
}
@media (max-width: 640px) {
  .boas-vindas { min-height: 0; padding: 34px 0 150px; }
  .boas-vindas .envolve { padding-inline: 0; }
  .desenho { width: 130px; }
  .desenho.esquerda { left: 6%; }
  .desenho.direita { width: 118px; right: 6%; }
}
@media (max-width: 900px) {
  .turmas { grid-template-columns: repeat(3, 1fr); }
  .pagina-alunos .topo .botao { padding: 8px 14px; font-size: .85rem; }
}
@media (max-width: 520px) {
  .turmas { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .jogos { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .marca-aluno small { display: none; }
}
