/* Letrinhas do Meu Nome — páginas A4 das atividades (tela e impressão) */
.pg { position: relative; box-sizing: border-box; width: 210mm; height: 297mm; padding: 12mm 12mm 10mm; background: #fff; color: #1f2430;
  font-family: Andika, "Segoe UI", sans-serif; overflow: hidden; display: flex; flex-direction: column; }
.pg header { border-bottom: 0.6mm solid #f2c94c; padding-bottom: 3mm; margin-bottom: 5mm; }
.pg header h2 { margin: 0; font: 700 9.5mm/1.1 Andika, sans-serif; color: #1f2430; }
.pg header p { margin: 2mm 0 0; font: 400 4.6mm/1.35 Andika, sans-serif; color: #4a5160; }
.pg .corpo { flex: 1; display: flex; flex-direction: column; gap: 3mm; }
.pg footer { display: flex; justify-content: space-between; font: 400 3.2mm Andika, sans-serif; color: #8a90a0; border-top: 0.3mm solid #e5e7eb; padding-top: 2mm; }
.pg .marca { position: absolute; inset: 0; display: grid; place-items: center; pointer-events: none; font: 700 13mm Andika, sans-serif; color: rgba(215, 38, 30, .16);
  transform: rotate(-30deg); letter-spacing: 1mm; text-align: center; }
/* linhas de caligrafia */
svg.linha, svg.vazado { display: block; overflow: visible; }
svg .g { stroke: #9aa3b5; stroke-width: .35; } svg .gb { stroke: #5b6475; stroke-width: .45; } svg .gm { stroke: #c3c8d4; stroke-width: .3; stroke-dasharray: 2 1.6; }
svg .tp { font-family: Andika, sans-serif; font-weight: 700; fill: none; stroke: #5f6779; stroke-width: .55; stroke-dasharray: 1.3 1; stroke-linecap: round; }
svg .ts { font-family: Andika, sans-serif; font-weight: 700; fill: #1f2430; }
svg .tc { font-family: "Playwrite BR", cursive; fill: #cfd4de; }
svg .tv { font-family: Andika, sans-serif; font-weight: 700; fill: none; stroke: #1f2430; stroke-width: .6; }
svg .tv.grosso { stroke-width: .9; }
/* blocos */
.pg .capa { display: flex; justify-content: center; gap: 8mm; margin: 6mm 0 2mm; }
.pg .sub { text-align: center; font-size: 5.5mm; color: #4a5160; margin: 0; }
.pg .desenho { flex: 1; border: .5mm dashed #b8bfcc; border-radius: 6mm; display: grid; place-items: end center; padding-bottom: 4mm; min-height: 60mm; }
.pg .desenho span { font-size: 4.2mm; color: #8a90a0; }
.pg .desenho.baixo { min-height: 80mm; }
.pg .desenho.peq { min-height: 46mm; flex: none; }
.pg .campos { display: grid; gap: 2mm; }
.pg .campos p { display: flex; align-items: flex-end; gap: 3mm; margin: 0; font-size: 6mm; }
.pg .grade-letras { display: flex; flex-wrap: wrap; gap: 4mm; justify-content: center; }
.pg .grade-letras .bloco { width: 40mm; border: .4mm solid #e2e5ec; border-radius: 4mm; padding: 2mm; text-align: center; }
.pg .grade-letras small { font-size: 4mm; color: #8a90a0; }
.pg .conta { font-size: 6.4mm; text-align: center; margin: 4mm 0 0; }
.pg .bola { display: inline-grid; place-items: center; min-width: 13mm; height: 13mm; border: .5mm solid #1f2430; border-radius: 50%; font-weight: 700; vertical-align: middle; margin: 0 1mm; }
.pg .duas { display: flex; justify-content: center; }
.pg .exemplos { display: flex; justify-content: space-around; gap: 4mm; margin-top: 2mm; }
.pg .exemplos > div { display: flex; flex-direction: column; align-items: center; gap: 2mm; }
.pg .caca { display: grid; grid-template-columns: repeat(9, 1fr); border: .5mm solid #1f2430; border-radius: 3mm; overflow: hidden; margin: 2mm 6mm; }
.pg .caca span { aspect-ratio: 1; display: grid; place-items: center; font: 700 9.5mm Andika, sans-serif; border-right: .25mm solid #d9dde5; border-bottom: .25mm solid #d9dde5; }
.pg .dica { font-size: 5mm; color: #4a5160; text-align: center; margin: 2mm 0; }
.pg .dica b { font-size: 6mm; color: #1f2430; margin: 0 1mm; }
.pg .alvo, .pg .pecas, .pg .falta, .pg .mist { display: flex; flex-wrap: wrap; justify-content: center; gap: 3mm; }
.pg .alvo span { width: 24mm; height: 28mm; border: .5mm solid #1f2430; border-radius: 3mm; background: repeating-linear-gradient(45deg, #fff, #fff 2mm, #f6f7fa 2mm, #f6f7fa 4mm); }
.pg .tesoura { display: flex; align-items: center; gap: 2mm; margin: 6mm 0 2mm; }
.pg .tesoura i { flex: 1; border-top: .5mm dashed #8a90a0; }
.pg .pecas span { width: 24mm; height: 28mm; display: grid; place-items: center; font: 700 18mm Andika, sans-serif; border: .5mm dashed #8a90a0; }
.pg .sil { display: flex; justify-content: center; gap: 4mm; flex-wrap: wrap; }
.pg .sil > div { border: .5mm solid #f2c94c; border-radius: 4mm; padding: 2mm 3mm; }
.pg .falta { margin: 3mm 0; }
.pg .falta span { width: 20mm; height: 24mm; display: grid; place-items: center; font: 700 15mm Andika, sans-serif; border-bottom: .6mm solid #1f2430; }
.pg .falta span.vazia { background: #f6f7fa; border-radius: 2mm 2mm 0 0; }
.pg .mist { margin-top: 3mm; }
.pg .cx { display: inline-grid; place-items: center; min-width: 16mm; height: 18mm; padding: 0 1.5mm; font: 700 11mm Andika, sans-serif; border: .5mm solid #1f2430; border-radius: 2.5mm; }
.pg .ligue { display: flex; justify-content: space-between; padding: 4mm 22mm; flex: 1; }
.pg .ligue > div { display: flex; flex-direction: column; justify-content: space-around; gap: 4mm; }
.pg .ligue span { display: flex; align-items: center; gap: 4mm; font: 700 14mm Andika, sans-serif; }
.pg .ligue > div:first-child span::after { content: ""; width: 4mm; height: 4mm; border-radius: 50%; background: #1f2430; }
.pg .ligue > div:last-child span::before { content: ""; width: 4mm; height: 4mm; border-radius: 50%; background: #1f2430; }
.pg .ligue .min { font-weight: 400; }
.pg .cert { flex: 1; border: 1.5mm double #f2c94c; border-radius: 6mm; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4mm; text-align: center; }
.pg .cert h3 { font: 700 14mm/1.05 Andika, sans-serif; margin: 0; padding: 0 8mm; }
.pg .cert p { font-size: 8mm; margin: 0; }
.pg .medalha { display: flex; gap: 6mm; align-items: center; }
.pg .ass { display: flex; gap: 20mm; margin-top: 16mm; }
.pg .ass span { width: 60mm; border-top: .4mm solid #1f2430; padding-top: 2mm; font-size: 4.4mm; color: #4a5160; }
.pg .alfa { display: flex; align-items: center; justify-content: center; gap: 6mm; }
.pg .fam { display: grid; grid-template-columns: repeat(5, 1fr); gap: 3mm; }
.pg .fam > div { border: .5mm solid #f2c94c; border-radius: 4mm; padding: 1mm; display: flex; justify-content: center; }
.pg .fam svg.linha { width: 100% !important; height: auto !important; }
.pg .pal { display: grid; gap: 3.5mm; }
.pg .pal > div { display: grid; grid-template-columns: 26mm 1fr; grid-template-rows: auto auto; align-items: center; column-gap: 4mm; }
.pg .pal .ic { grid-row: span 2; }
.pg .ps { display: flex; gap: 2mm; }
.pg .frase { display: flex; gap: 5mm; align-items: center; margin-bottom: 3mm; }
.pg .fam-des { display: grid; grid-template-columns: repeat(3, 1fr); gap: 5mm; }
.pg .fam-des > div { display: flex; flex-direction: column; gap: 2mm; align-items: center; }
.pg .fam-des .desenho.peq { align-self: stretch; width: 100%; }
.pg img.ic { display: block; }

/* impressão: só as páginas, uma por folha A4 */
@page { size: A4; margin: 0; }
@media print {
  html, body { margin: 0 !important; padding: 0 !important; background: #fff !important; }
  body > *:not(#imprimir) { display: none !important; }
  #imprimir { display: block !important; }
  #imprimir .pg { break-after: page; page-break-after: always; box-shadow: none !important; margin: 0 !important; }
  #imprimir .pg:last-child { break-after: auto; page-break-after: auto; }
}
#imprimir { display: none; }
