@font-face { font-family: Fredoka; font-weight: 500; src: url(../fonts/Fredoka-Medium.ttf); }
@font-face { font-family: Fredoka; font-weight: 600; src: url(../fonts/Fredoka-SemiBold.ttf); }
@font-face { font-family: Fredoka; font-weight: 700; src: url(../fonts/Fredoka-Bold.ttf); }
@font-face { font-family: Nunito; font-weight: 400; src: url(../fonts/Nunito-Regular.ttf); }
@font-face { font-family: Nunito; font-weight: 600; src: url(../fonts/Nunito-SemiBold.ttf); }
@font-face { font-family: Nunito; font-weight: 700; src: url(../fonts/Nunito-Bold.ttf); }
@font-face { font-family: Nunito; font-weight: 800; src: url(../fonts/Nunito-ExtraBold.ttf); }

@page { size: A4; margin: 0; }
:root {
  --ink: #23443D; --ink2: #3B5A53; --cream: #FFFBF2; --mint: #4FC9A8; --mintD: #2FA886; --coral: #FF7A6B;
  --coralD: #D9483A; --yellow: #FFD45C; --lilac: #B39DF0; --sky: #6EC1F2; --postit: #FFF1A6; --line: #E9E1D2;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html, body { background: #ddd; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
body { font-family: Nunito, sans-serif; color: var(--ink); font-size: 11pt; line-height: 1.35; }
h1, h2, h3, .fred { font-family: Fredoka, sans-serif; font-weight: 600; line-height: 1.12; }
img { display: block; }

.page { width: 210mm; height: 297mm; position: relative; overflow: hidden; background: var(--cream);
  page-break-after: always; break-after: page; margin: 0 auto; }
@media screen { .page { margin: 0 auto 8mm; box-shadow: 0 2px 12px #0002; } }
.body { position: absolute; left: 14mm; right: 14mm; top: 13mm; bottom: 19mm; display: flex; flex-direction: column; gap: 3.2mm; }
.foot { position: absolute; left: 14mm; right: 14mm; bottom: 8mm; display: flex; justify-content: space-between; align-items: center;
  font: 600 9pt Nunito; color: #6B847D; border-top: 1px solid var(--line); padding-top: 2.4mm; }
.foot .pnum { font: 700 10.5pt Fredoka; color: var(--ink); background: #fff; border: 1.5px solid var(--line); border-radius: 99px; min-width: 10mm; text-align: center; padding: .4mm 2.4mm; }
.page.nofoot .foot { display: none; }
.page.nofoot .body { bottom: 13mm; }

/* blobs decorativos — sempre dentro da página e atrás do conteúdo */
.blob { position: absolute; border-radius: 50%; z-index: 0; }
.body > * { position: relative; z-index: 1; }

/* cabeçalho de página de seção */
.phead { background: var(--hbg, #CDEFE2); border-radius: 7mm; padding: 5mm 6mm; display: flex; align-items: center; gap: 5mm; min-height: 30mm; }
.phead .tx { flex: 1; }
.phead h1 { font-size: 24pt; font-weight: 700; }
.phead p { font-weight: 700; margin-top: 1.2mm; color: var(--ink2); }
.phead .parte { font: 600 9.5pt Nunito; color: var(--ink2); }
.phead img { height: 30mm; margin: -3mm 0; }

.card { background: #fff; border-radius: 5mm; padding: 4mm 5mm; border: 1.5px solid var(--line); }
.chip { display: inline-block; border-radius: 99px; padding: .5mm 2.6mm; font-weight: 800; font-size: 10.5pt; background: #fff; }

/* ---------- capa ---------- */
.cover { background: radial-gradient(circle at 85% 8%, #FFF1B8 0 30mm, transparent 30.5mm), radial-gradient(circle at 6% 30%, #CDEFE2 0 34mm, transparent 34.5mm),
  radial-gradient(circle at 96% 70%, #EDE3FB 0 40mm, transparent 40.5mm), radial-gradient(circle at 10% 92%, #FFE1D6 0 26mm, transparent 26.5mm), var(--cream); }
.cover .body { align-items: center; text-align: center; gap: 4mm; }
.cover .kicker { background: #FFF1B8; border-radius: 99px; padding: 2mm 8mm; font: 800 11pt Nunito; letter-spacing: .08em; margin-top: 4mm; }
.cover h1 { font-size: 70pt; font-weight: 700; color: var(--coral); line-height: .9; margin-top: 2mm; }
.cover h1 small { display: block; font-size: 34pt; color: var(--ink); }
.cover .ribbon { background: var(--lilac); color: #fff; font: 700 30pt Fredoka; border-radius: 8mm; padding: 2mm 12mm; transform: rotate(-2deg); box-shadow: 0 2mm 0 #8F78D6; }
.cover .sub { font: 700 13pt Nunito; max-width: 150mm; }
.cover .hero { flex: 1; min-height: 0; width: 100%; display: flex; align-items: center; justify-content: center; position: relative; }
.cover .hero img { height: 100%; max-height: 125mm; }
.cover .stamp { position: absolute; right: 10mm; top: 6mm; transform: rotate(-12deg) scale(1.35); }
.cover .note { background: #fff; border: 2px dashed var(--mint); border-radius: 6mm; padding: 3mm 8mm; font-weight: 700; }

/* ---------- selo carimbo ---------- */
.stamp { width: 28mm; height: 28mm; border-radius: 50%; border: 2.2px solid var(--coralD); color: var(--coralD); display: flex; flex-direction: column;
  align-items: center; justify-content: center; text-align: center; transform: rotate(-10deg); position: relative; background: #ffffffb0; flex: none; }
.stamp::before { content: ""; position: absolute; inset: 1.2mm; border-radius: 50%; border: 1.4px dashed var(--coralD); }
.stamp b { font: 700 13pt/1 Fredoka; letter-spacing: .04em; }
.stamp b + b { font-size: 9.5pt; letter-spacing: .02em; }
.stamp small { font: 800 7pt/1.1 Nunito; margin-top: .8mm; }

/* ---------- ficha ---------- */
.ficha .body { gap: 2.6mm; }
.fh { background: var(--bg); border-radius: 7mm; padding: 4mm 5mm 4mm 6mm; display: flex; align-items: center; gap: 4mm; }
.fh .tx { flex: 1; }
.fh .pill { display: inline-block; background: #fff; border-radius: 99px; padding: .6mm 3mm; font: 800 10.5pt Nunito; letter-spacing: .03em; }
.fh .pill i { font-style: normal; color: var(--ink2); font-weight: 700; }
.fh h1 { font-size: 25pt; font-weight: 700; margin-top: 1.6mm; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 2.4mm; }
.stat { border-radius: 4mm; padding: 1.8mm 2mm; text-align: center; background: #fff; border: 1.5px solid var(--line); }
.stat small { display: block; font: 800 8.5pt Nunito; letter-spacing: .06em; color: var(--ink2); }
.stat b { font: 600 13pt Fredoka; }
.stat:nth-child(1) { background: #FFF6CF; } .stat:nth-child(2) { background: #EFE8FC; } .stat:nth-child(3) { background: #DDF5EC; } .stat:nth-child(4) { background: #FFE6DF; }
.senses { display: flex; align-items: center; gap: 1.6mm; flex-wrap: wrap; }
.senses .lbl { font: 800 9.5pt Nunito; letter-spacing: .05em; color: var(--ink2); margin-right: 1mm; }
.senses .chip { background: var(--bg); }
.desc { font-size: 11.5pt; font-weight: 600; }
.bubble-row { display: flex; align-items: center; gap: 3mm; }
.bubble-row img { width: 19mm; flex: none; }
.bubble { position: relative; flex: 1; background: #FFF6CF; border: 2px solid #F2CF55; border-radius: 6mm; padding: 2.6mm 5mm; }
.bubble::before { content: ""; position: absolute; left: -3.4mm; top: 50%; margin-top: -2.6mm; border: 2.6mm solid transparent; border-right: 3.4mm solid #F2CF55; border-left: 0; }
.bubble::after { content: ""; position: absolute; left: -2.3mm; top: 50%; margin-top: -2mm; border: 2mm solid transparent; border-right: 2.6mm solid #FFF6CF; border-left: 0; }
.bubble small { font: 800 8.5pt Nunito; letter-spacing: .06em; color: #8A6A00; }
.bubble p { font: 600 13pt Fredoka; }
.main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 3.5mm; }
.col-l { display: flex; flex-direction: column; gap: 3mm; min-height: 0; }
.col-l > * { flex: 1 1 auto; }
.postit { background: var(--postit); border-radius: 1.5mm 1.5mm 5mm 1.5mm; padding: 5mm 4.5mm 3mm; position: relative; transform: rotate(-1.2deg); box-shadow: 0 1.2mm 0 #E7D57A; }
.postit::before { content: ""; position: absolute; top: -2.6mm; left: 50%; width: 22mm; margin-left: -11mm; height: 6mm; background: #FFFFFFB0; border: 1px solid #E8DFC0; transform: rotate(2deg); }
.postit h3, .steps h3 { font-size: 12.5pt; margin-bottom: 1.4mm; }
.postit ul { list-style: none; }
.postit li { display: flex; gap: 2mm; align-items: flex-start; font-weight: 600; padding: .3mm 0; }
.postit li::before { content: ""; flex: none; width: 3.6mm; height: 3.6mm; margin-top: .9mm; border: 1.6px solid var(--ink); border-radius: 1mm; background: #fff; }
.postit .none { font-weight: 700; }
.steps { background: #fff; border-radius: 5mm; padding: 3mm 4mm; border: 1.5px solid var(--line); }
.steps ol { list-style: none; counter-reset: s; }
.steps li { counter-increment: s; display: flex; gap: 2.2mm; padding: .5mm 0; font-weight: 600; }
.steps li::before { content: counter(s); flex: none; width: 5.4mm; height: 5.4mm; border-radius: 50%; background: var(--mint); color: #fff; font: 700 9.5pt/5.4mm Fredoka; text-align: center; margin-top: .2mm; }
.steps.play li::before { background: var(--coral); }
.ill { background: var(--bg); border-radius: 6mm; display: flex; flex-direction: column; padding: 3mm; gap: 2.5mm; min-height: 0; overflow: hidden; }
.ill .scene { flex: 1; min-height: 0; width: 100%; object-fit: contain; }
.ill .photo { flex: 1; min-height: 0; width: 100%; object-fit: cover; border-radius: 4mm; }
.ill .badges { display: flex; justify-content: center; gap: 3mm; }
.ill .badges span { width: 17mm; height: 17mm; border-radius: 50%; background: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 .8mm 0 #0000000f; }
.ill .badges img { width: 11.5mm; }
.levels { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.levels > div { border-radius: 5mm; padding: 2.6mm 4mm; }
.levels .easy { background: #E3F5DD; } .levels .hard { background: #EFE8FC; }
.levels h3 { font-size: 11.5pt; margin-bottom: .6mm; }
.why { background: #fff; border-radius: 5mm; padding: 2.4mm 4mm; border: 1.5px dashed var(--mint); display: flex; gap: 3mm; align-items: center; }
.why b { font: 600 11pt Fredoka; white-space: nowrap; color: var(--mintD); }
.att { background: #FFEDE7; border: 2.2px solid var(--coral); border-radius: 5mm; padding: 2.6mm 4mm; display: flex; gap: 3mm; align-items: flex-start; }
.att .ic { flex: none; width: 7mm; height: 7mm; border-radius: 50%; background: var(--coral); color: #fff; font: 700 13pt/7mm Fredoka; text-align: center; }
.att b { font: 700 11pt Fredoka; color: var(--coralD); letter-spacing: .04em; display: block; }
.att p { font-weight: 700; }
.ficha.tight body, .ficha.tight .body { font-size: 10.5pt; gap: 2mm; }
.ficha.tight .desc { font-size: 10.5pt; }
.ficha.tight .bubble p { font-size: 12pt; }

/* ---------- abertura de capítulo ---------- */
.capa-cap { background: var(--bg); }
.capa-cap .body { gap: 5mm; }
.capa-cap .num { font: 700 12pt Nunito; letter-spacing: .1em; background: #fff; border-radius: 99px; padding: 1.5mm 5mm; align-self: flex-start; }
.capa-cap h1 { font-size: 36pt; font-weight: 700; }
.capa-cap .sub { font: 600 15pt Fredoka; color: var(--ink2); }
.capa-cap .art { flex: 1; min-height: 0; background: #fff; border-radius: 9mm; padding: 5mm; display: flex; }
.capa-cap .art img { width: 100%; height: 100%; object-fit: contain; }
.capa-cap .list { background: #ffffffc0; border-radius: 6mm; padding: 4mm 6mm; columns: 2; column-gap: 8mm; }
.capa-cap .list div { display: flex; gap: 2mm; font-weight: 700; break-inside: avoid; padding: .4mm 0; }
.capa-cap .list span { font: 700 10.5pt Fredoka; color: var(--ink2); min-width: 9mm; }
.capa-cap .list em { font-style: normal; margin-left: auto; font: 700 10.5pt Fredoka; }
.capa-cap .note { font-weight: 700; display: flex; gap: 3mm; align-items: center; }

/* ---------- fluxos (índices, segurança, materiais) ---------- */
.flow-list { flex: 1; min-height: 0; }
.cols2 { columns: 2; column-gap: 7mm; column-fill: auto; }
.cols2 > * { break-inside: avoid; }
.irow { display: flex; align-items: baseline; gap: 2mm; padding: 1mm 1.5mm; border-radius: 2mm; font-size: 11pt; font-weight: 600; }
.irow:nth-child(even) { background: #fff; }
.irow .id { font: 700 10.5pt Fredoka; color: var(--ink2); min-width: 8mm; }
.irow .dot { width: 2.6mm; height: 2.6mm; border-radius: 50%; flex: none; align-self: center; }
.irow .t { flex: 1; }
.irow .pg { font: 700 11pt Fredoka; }
.ihead { font: 600 12.5pt Fredoka; padding: 2mm 3mm; border-radius: 3mm; margin: 2mm 0 1mm; background: var(--bg); break-after: avoid; }
.calm { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.calm .card { display: flex; gap: 3mm; align-items: center; padding: 3mm 4mm; }
.calm .card .id { font: 700 13pt Fredoka; background: var(--bg); border-radius: 3mm; padding: 1mm 2mm; }
.calm .card b { display: block; font: 600 12pt Fredoka; }
.calm .card small { font-size: 10.5pt; font-weight: 600; color: var(--ink2); }

.sec { margin-bottom: 3.5mm; break-inside: avoid; }
.sec-h { font: 600 15pt Fredoka; margin: 2mm 0 2mm; display: flex; align-items: center; gap: 2.5mm; }
.sec-h::before { content: ""; width: 4mm; height: 4mm; border-radius: 50%; background: var(--mint); }
.sitem { background: #fff; border-radius: 4mm; padding: 2.4mm 4mm; margin-bottom: 2mm; border: 1.5px solid var(--line); break-inside: avoid; }
.sitem .g { font: 800 8.5pt Nunito; letter-spacing: .06em; background: #DDF5EC; border-radius: 99px; padding: .3mm 2.4mm; margin-right: 1.5mm; }
.sitem b { font-weight: 800; }
.sitem.never { border-color: #FFC4BA; background: #FFF4F1; }
.sitem.never b { color: var(--coralD); }
.sitem.stop { border-left: 4mm solid var(--coral); }
.sitem.rule b { font: 600 12pt Fredoka; display: block; }

.mitem { display: flex; gap: 3.5mm; align-items: flex-start; background: #fff; border-radius: 4mm; padding: 2.6mm 4mm; margin-bottom: 2mm; border: 1.5px solid var(--line); }
.mitem .box { flex: none; width: 5mm; height: 5mm; border: 2px solid var(--ink); border-radius: 1.4mm; margin-top: 1mm; }
.mitem img { width: 12mm; flex: none; }
.mitem .tx { flex: 1; }
.mitem b { font: 600 12pt Fredoka; }
.mitem p { font-size: 10.5pt; }
.mitem .uso { font-size: 10.5pt; font-weight: 700; color: var(--ink2); margin-top: .6mm; }
.room { font: 600 14pt Fredoka; background: #DDF5EC; border-radius: 4mm; padding: 2mm 4mm; margin: 1mm 0 2.4mm; break-after: avoid; }

/* calendário */
.cal-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2.4mm; }
.cal-week { grid-column: 1 / -1; font: 600 12.5pt Fredoka; padding: 1.6mm 3mm; border-radius: 3mm; background: var(--wk); margin-top: 1mm; }
.cal-day { background: #fff; border-radius: 4mm; border: 1.5px solid var(--line); padding: 2mm 2.4mm; min-height: 25mm; display: flex; flex-direction: column; gap: .8mm; }
.cal-day .n { font: 700 14pt Fredoka; color: #fff; background: var(--wkD); width: 8mm; height: 8mm; border-radius: 50%; text-align: center; line-height: 8mm; }
.cal-day b { font: 600 10.5pt/1.15 Fredoka; flex: 1; }
.cal-day small { font: 700 9pt Nunito; color: var(--ink2); }
.cal-day .done { display: flex; align-items: center; gap: 1.2mm; font: 700 8.5pt Nunito; color: var(--ink2); }
.cal-day .done::before { content: ""; width: 3.4mm; height: 3.4mm; border: 1.5px solid var(--ink2); border-radius: 1mm; }
.wrow { display: grid; grid-template-columns: 12mm 1fr 1fr; gap: 3mm; background: #fff; border: 1.5px solid var(--line); border-radius: 5mm; padding: 2.6mm 4mm; margin-bottom: 2.2mm; align-items: center; }
.wrow .n { font: 700 18pt Fredoka; color: #fff; background: var(--wkD); width: 11mm; height: 11mm; border-radius: 50%; text-align: center; line-height: 11mm; }
.wrow b { font: 600 12pt Fredoka; display: block; }
.wrow small { font-weight: 700; color: var(--ink2); font-size: 10.5pt; }
.wrow .alt { border-left: 2px dashed var(--line); padding-left: 3mm; }
.wrow .alt i { font: 800 8.5pt Nunito; letter-spacing: .06em; font-style: normal; color: var(--ink2); display: block; }
.wrow .dica { grid-column: 2 / -1; font-size: 10.5pt; font-weight: 600; background: #FFF6CF; border-radius: 3mm; padding: 1.2mm 3mm; }

/* sumário / como usar */
.toc .row { display: flex; align-items: baseline; gap: 2mm; padding: 2mm 3mm; border-bottom: 1.5px dashed var(--line); font: 600 13pt Fredoka; }
.toc .row .lead { flex: 1; border-bottom: 2px dotted #C9D6D2; transform: translateY(-1mm); }
.toc .row small { font: 700 10.5pt Nunito; color: var(--ink2); }
.toc .sub { padding-left: 8mm; font-size: 11.5pt; }
.howto { display: grid; grid-template-columns: 1fr 1fr; gap: 3mm; }
.howto .card h3 { font-size: 13pt; margin-bottom: 1.4mm; }
.howto .card p, .howto .card li { font-size: 11pt; }
.howto ul { padding-left: 4.5mm; }
.seal-rules { display: grid; grid-template-columns: repeat(3, 1fr); gap: 3mm; }
.seal-rules .card { text-align: center; }
.seal-rules .card b { font: 700 18pt Fredoka; color: var(--mintD); display: block; }

.final { background: radial-gradient(circle at 20% 15%, #FFF1B8 0 30mm, transparent 30.5mm), radial-gradient(circle at 85% 85%, #CDEFE2 0 40mm, transparent 40.5mm), var(--cream); }
.final .body { align-items: center; justify-content: center; text-align: center; gap: 6mm; }
.final h1 { font-size: 34pt; font-weight: 700; color: var(--coral); }
.final p { font: 600 14pt Nunito; max-width: 140mm; }
.final img { height: 95mm; }
.wrow .dica b { display: inline; font: 800 10.5pt Nunito; }
.cal-wpage .body { gap: 2.4mm; }
.cal-wpage .wrow { margin: 0; padding: 2mm 4mm; row-gap: 1.4mm; }
.cal-wpage .phead { min-height: 24mm; padding: 4mm 6mm; }
.cal-ov .cal-day { min-height: 0; padding: 1.6mm 2.2mm; gap: .4mm; }
.cal-ov .cal-day .n { width: 7mm; height: 7mm; line-height: 7mm; font-size: 12pt; }
