/* Jogo do Polvinho: estilos do bloco do jogo (o resto vem do /style.css do site) */
.jogo-sec { padding: 28px 0 40px; background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%); }
.jogo-sec h2 { margin: 0 0 6px; text-align: center; }
.jogo-intro { text-align: center; color: var(--muted); max-width: 620px; margin: 0 auto 16px; }
.pv { max-width: 500px; margin: 0 auto; background: var(--card); border: 1px solid var(--border); border-radius: 22px; padding: 12px; box-shadow: 0 14px 34px rgba(11, 80, 120, .14); }
.pv-hud { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: 8px; }
.pv-box { background: var(--bg2); border-radius: 12px; padding: 6px 4px; text-align: center; line-height: 1.15; }
.pv-box small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pv-box b { font-family: "Baloo 2", system-ui, sans-serif; font-size: 22px; color: var(--text); }
.pv-metas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; min-height: 40px; margin-bottom: 8px; }
.pv-meta { display: flex; align-items: center; gap: 6px; background: var(--bg2); border-radius: 999px; padding: 4px 12px 4px 6px; font-weight: 600; font-size: 15px; color: var(--text); }
.pv-meta.ok { background: #d9f7e4; color: #1b6b3a; }
.pv-tela { display: flex; justify-content: center; width: 100%; }
#pv-canvas { display: block; border-radius: 18px; touch-action: none; -webkit-user-select: none; user-select: none; -webkit-tap-highlight-color: transparent; cursor: pointer; max-width: 100%; }
#pv-canvas:focus-visible { outline: 3px solid var(--acc); outline-offset: 3px; }
.pv-botoes { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 10px; }
.pv-botoes button { font: 600 15px/1 Inter, system-ui, sans-serif; color: var(--text); background: var(--bg2); border: 1px solid var(--border); border-radius: 999px; padding: 11px 16px; cursor: pointer; min-height: 44px; }
.pv-botoes button:hover { border-color: var(--acc2); }
.pv-botoes button:focus-visible { outline: 3px solid var(--acc); outline-offset: 2px; }
.pv-aviso { text-align: center; font-size: 14px; color: var(--muted); min-height: 1.4em; margin: 8px 0 0; }
.pv-como { max-width: 540px; margin: 18px auto 0; background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 16px 20px; }
.pv-como h3 { margin: 0 0 8px; }
.pv-como ol { margin: 0; }
.pv-como p { margin: 10px 0 0; font-size: 15px; color: var(--muted); }
@media (max-width: 420px) {
  .pv { padding: 8px; border-radius: 18px; }
  .pv-box b { font-size: 19px; }
  .pv-botoes button { font-size: 14px; padding: 10px 12px; }
}
/* figuras próprias das páginas (passo a passo, colorir) */
.pv-passos { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 18px 0 22px; }
.pv-passos figure { margin: 0; background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 10px; text-align: center; }
.pv-passos svg { width: 100%; height: auto; max-width: 180px; }
.pv-passos figcaption { font-size: 14px; color: var(--muted); }
.pv-colorir { background: #fff; border: 2px dashed var(--border); border-radius: 16px; padding: 12px; margin: 18px 0 22px; text-align: center; }
.pv-colorir svg { width: 100%; max-width: 520px; height: auto; }
@media print {
  header, footer, .lateral, .toc-mobile, .topo .ilus, details, .cards, .autor, .pv-passos { display: none !important; }
  .pv-colorir { border: 0; }
}
/* ilustração do Pipo no lugar dos motivos genéricos do gerador (hero e topo das páginas) */
.hero .hero-ilus, .topo .ilus { background: url(/jogo/pipo.svg) center / contain no-repeat; min-height: 260px; }
.hero .hero-ilus svg, .topo .ilus svg { display: none; }
@media (max-width: 900px) {
  .hero { padding: 26px 0 18px; }
  .hero .hero-ilus { display: none; }
  .topo .ilus { min-height: 150px; width: 100%; max-width: 170px; }
}
/* celular: o jogo aparece logo depois do título */
@media (max-width: 600px) {
  .hero h1 { font-size: 28px; margin-bottom: 10px; }
  .hero .lead { font-size: 16px; }
  .hero .acoes { margin-top: 12px; }
  .jogo-sec { padding-top: 16px; }
  .jogo-intro { display: none; }
}
