/* Lesson slides (16:9). Shared by the on-site slideshow and the PDF version.
   Sizes use container units so a slide looks the same at any size. */
.slide {
  --sc: #3d6b8f; --ss: #dfecef; --tc: #e8762b;
  position: relative; aspect-ratio: 16 / 9; width: 100%; overflow: hidden; container-type: inline-size;
  background:
    radial-gradient(circle, color-mix(in srgb, var(--tc) 22%, transparent) 0.35cqw, transparent 0.42cqw) 0 0 / 5cqw 5cqw,
    linear-gradient(160deg, #fffaf2 0%, #fdf6ec 60%, color-mix(in srgb, var(--ss) 70%, #fff) 100%);
  color: #2b2a33; font-family: "Atkinson Hyperlegible", Inter, "Noto Color Emoji", sans-serif;
  border-radius: 1.4cqw; box-shadow: 0 1cqw 3cqw rgba(43, 42, 51, .18);
}
.slide::before, .slide::after { content: ""; position: absolute; left: 0; right: 0; height: 1.1cqw; z-index: 2;
  background: linear-gradient(90deg, #e8762b 0 16.6%, #ffc93c 16.6% 33.3%, #4fa36b 33.3% 50%, #3fa2d8 50% 66.6%, #7a5aa6 66.6% 83.3%, #ec6f9a 83.3%); }
.slide::before { top: 0; } .slide::after { bottom: 0; }
.slide .sl-inner { position: absolute; inset: 0; padding: 5cqw 7cqw 5.5cqw; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 1.6cqw; z-index: 1; }
.slide .sl-inner::before { content: ""; position: absolute; width: 34cqw; height: 34cqw; border-radius: 50%; right: -10cqw; top: -12cqw; background: color-mix(in srgb, var(--tc) 14%, transparent); z-index: -1; }
.slide .sl-inner::after { content: ""; position: absolute; width: 22cqw; height: 22cqw; border-radius: 50%; left: -8cqw; bottom: -9cqw; background: color-mix(in srgb, var(--sc) 12%, transparent); z-index: -1; }
.slide h1, .slide h2 { font-family: Fredoka, Poppins, "Noto Color Emoji", sans-serif; font-weight: 600; margin: 0; line-height: 1.12; }
.slide h1 { font-size: 5.6cqw; }
.slide h2 { font-size: 4.2cqw; color: var(--sc); }
.slide .emo, .slide .sl-big { font-family: "Noto Color Emoji", sans-serif; }
.slide .sl-big { font-size: 12cqw; line-height: 1; }
.slide .sl-text { font-size: 3cqw; line-height: 1.4; margin: 0; max-width: 72cqw; }
.slide .sl-num { position: absolute; right: 2.2cqw; bottom: 2cqw; font-size: 1.4cqw; color: #8a8794; z-index: 3; font-family: Poppins, sans-serif; }

.sl-tag { display: flex; gap: 1cqw; flex-wrap: wrap; justify-content: center; }
.sl-tag span { font-family: Fredoka, Poppins, "Noto Color Emoji", sans-serif; font-weight: 600; font-size: 1.9cqw; padding: .5cqw 1.6cqw; border-radius: 99cqw; background: #fff; border: .25cqw solid var(--sc); color: var(--sc); }
.sl-tag span:first-child { color: #fff; border-color: transparent; }
.sl-brand { position: absolute; left: 3cqw; bottom: 2.6cqw; display: flex; align-items: center; gap: 1cqw; font-family: Fredoka, Poppins, sans-serif; font-weight: 600; font-size: 1.7cqw; }
.sl-brand img { width: 4cqw; height: 4cqw; border-radius: 50%; }

.sl-checks { list-style: none; margin: 1cqw 0 0; padding: 0; display: flex; flex-direction: column; gap: 1.6cqw; text-align: left; }
.sl-checks li { font-size: 3.1cqw; display: flex; gap: 1.6cqw; align-items: center; background: #fff; padding: 1.2cqw 2cqw; border-radius: 1.6cqw; border-left: .9cqw solid var(--sc); box-shadow: 0 .4cqw 1.2cqw rgba(43,42,51,.07); }
.sl-checks li::before { content: "✓"; flex-shrink: 0; width: 4cqw; height: 4cqw; border-radius: 50%; background: var(--sc); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 2.3cqw; }

.sl-hook { display: flex; align-items: center; gap: 3cqw; }
.sl-bubble { position: relative; background: #fff; border: .4cqw solid var(--sc); border-radius: 3cqw; padding: 2.4cqw 3cqw; font-size: 3.4cqw; line-height: 1.35; max-width: 56cqw; text-align: left; box-shadow: 0 .8cqw 0 var(--ss); }
.sl-bubble::before { content: ""; position: absolute; left: -2.2cqw; top: 50%; border: 1.4cqw solid transparent; border-right: 2.2cqw solid var(--sc); transform: translate(-50%, -50%); }

.sl-visual { font-size: 7cqw; line-height: 1.15; background: #fff; border-radius: 2.4cqw; padding: 1.6cqw 4cqw; border: .35cqw dashed var(--sc); font-family: Fredoka, Poppins, "Noto Color Emoji", sans-serif; font-weight: 600; max-width: 84cqw; }
.sl-words { display: flex; flex-wrap: wrap; justify-content: center; gap: 1.6cqw; max-width: 80cqw; }
.sl-words span { font-family: Fredoka, Poppins, sans-serif; font-weight: 600; font-size: 3.6cqw; padding: 1cqw 2.6cqw; border-radius: 1.6cqw; background: #fff; border: .35cqw solid var(--sc); box-shadow: 0 .6cqw 0 var(--ss); }
.sl-words span:nth-child(3n+2) { border-color: var(--tc); box-shadow: 0 .6cqw 0 color-mix(in srgb, var(--tc) 25%, #fff); }
.sl-act { display: flex; align-items: center; gap: 4cqw; text-align: left; }
.sl-act img { width: 22cqw; border-radius: 1cqw; box-shadow: 0 .8cqw 2.4cqw rgba(43,42,51,.2); transform: rotate(-3deg); background: #fff; }
.sl-exit { font-size: 4cqw; line-height: 1.35; background: #fff; padding: 3cqw 4cqw; border-radius: 2cqw; border: .45cqw dashed var(--tc); max-width: 74cqw; position: relative; }
.sl-exit::before, .sl-exit::after { content: ""; position: absolute; top: 50%; width: 3cqw; height: 3cqw; border-radius: 50%; background: #fdf6ec; transform: translateY(-50%); }
.sl-exit::before { left: -1.7cqw; } .sl-exit::after { right: -1.7cqw; }
.slide .heart { width: 16cqw; height: 16cqw; }
.sl-title h1 { max-width: 80cqw; }
.sl-visual.sm { font-size: 4.6cqw; }

/* Slides that are pictures of a PowerPoint deck */
.slide.type-image { background: #1f2a5a; }
.slide.type-image .sl-inner { padding: 0; }
.slide.type-image .sl-inner::before, .slide.type-image .sl-inner::after { display: none; }
.slide .sl-full { width: 100%; height: 100%; object-fit: contain; display: block; }
.slide.type-image .sl-num { display: none; }
.slide .sl-sprite { background-repeat: no-repeat; width: 100%; height: 100%; }

/* ---------- Story slides (A Lenda de São Martinho): cartoon SVG scenes with gentle movement + easy-read captions ---------- */
.slide.type-story { background: #fff8ef; }
.slide.type-story .sl-inner { padding: 0; justify-content: flex-start; }
.slide.type-story .sl-inner::before, .slide.type-story .sl-inner::after { display: none; }
.sm-stage { position: absolute; inset: 0; }
.sm-svg { width: 100%; height: 100%; display: block; }
.sm-cap { position: absolute; left: 4cqw; right: 4cqw; bottom: 2.6cqw; z-index: 3; background: rgba(255, 255, 255, .94); border: .35cqw solid #4a3426; border-radius: 2.4cqw;
  padding: 1.2cqw 2.2cqw; font-family: Andika, "Atkinson Hyperlegible", Inter, sans-serif, "Noto Color Emoji"; font-size: 3.4cqw; line-height: 1.25; color: #3b2a1f; text-align: center;
  box-shadow: 0 .6cqw 0 rgba(74, 52, 38, .25); }
.sm-cap b { color: #d62839; }
.sm-cap-t { bottom: auto; top: 2.4cqw; left: 10cqw; right: 10cqw; font-size: 5.4cqw; background: #fff3c4; border-color: #e63946; }
.sm-cap-t b.t { color: #b5172a; }
.sm-svg [class^="sm-"], .sm-svg [class*=" sm-"] { transform-box: fill-box; }
.sm-trot { animation: smTrot .55s ease-in-out infinite; }
.sm-leg-a { transform-origin: 50% 0; animation: smLeg .55s ease-in-out infinite alternate; }
.sm-leg-b { transform-origin: 50% 0; animation: smLeg .55s ease-in-out infinite alternate-reverse; }
.sm-tail { transform-origin: 100% 0; animation: smTail 1.1s ease-in-out infinite alternate; }
.sm-cape { transform-origin: 100% 0; animation: smCape 1.4s ease-in-out infinite alternate; }
.sm-ride { animation: smRide 6s ease-in-out infinite alternate; }
.sm-rain { animation: smRain .8s linear infinite; }
.sm-leaf { animation: smLeaf 7s linear infinite; }
.sm-wind { animation: smWind 3s ease-in-out infinite; }
.sm-drift { animation: smDrift 7s ease-in-out infinite alternate; }
.sm-slow { animation-duration: 11s; }
.sm-spin { transform-origin: 50% 50%; animation: smSpin 18s linear infinite; }
.sm-shiver { animation: smShiver .14s linear infinite; }
.sm-hop { animation: smHop 1.6s ease-in-out infinite; }
.sm-pop { transform-origin: 50% 50%; animation: smPop 1.5s ease-in-out infinite; }
.sm-swing { transform-origin: 50% 100%; animation: smSwing 1.8s ease-in-out infinite; }
.sm-split { animation: smSplit 1.8s ease-in-out infinite; }
.sm-give { opacity: 0; animation: smGive 3.2s ease-in-out infinite; }
.sm-rise { animation: smRise 3s ease-out both; }
.sm-away-l { animation: smAwayL 3.5s ease-in both; }
.sm-away-r { animation: smAwayR 3.5s ease-in both; }
.sm-flame { transform-origin: 50% 100%; animation: smFlame .5s ease-in-out infinite alternate; }
.sm-smoke { transform-origin: 50% 50%; animation: smSmoke 3s ease-out infinite; }
@keyframes smTrot { 50% { transform: translateY(-10px); } }
@keyframes smLeg { from { transform: rotate(-14deg); } to { transform: rotate(14deg); } }
@keyframes smTail { from { transform: rotate(-8deg); } to { transform: rotate(10deg); } }
@keyframes smCape { from { transform: skewY(-4deg); } to { transform: skewY(5deg) scaleX(1.05); } }
@keyframes smRide { from { transform: translateX(-60px); } to { transform: translateX(60px); } }
@keyframes smRain { from { transform: translateY(-60px); opacity: 0; } 20% { opacity: 1; } to { transform: translateY(160px); opacity: 0; } }
@keyframes smLeaf { from { transform: translate(-40px, -120px) rotate(0); opacity: 0; } 10% { opacity: 1; } to { transform: translate(120px, 620px) rotate(320deg); opacity: 0; } }
@keyframes smWind { 0%, 100% { transform: translateX(-30px); opacity: 0; } 50% { transform: translateX(40px); opacity: .9; } }
@keyframes smDrift { from { transform: translateX(-40px); } to { transform: translateX(40px); } }
@keyframes smSpin { to { transform: rotate(360deg); } }
@keyframes smShiver { 0%, 100% { transform: translateX(-3px); } 50% { transform: translateX(3px); } }
@keyframes smHop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes smPop { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.18); } }
@keyframes smSwing { 0%, 30% { transform: rotate(-35deg); } 55%, 100% { transform: rotate(40deg); } }
@keyframes smSplit { 0%, 45% { transform: translate(0, 0); } 70%, 100% { transform: translate(26px, 14px) rotate(4deg); } }
@keyframes smGive { 0%, 10% { transform: translate(-420px, -60px) rotate(-8deg); opacity: 1; } 70% { transform: none; opacity: 1; } 85%, 100% { transform: none; opacity: 0; } }
@keyframes smRise { from { transform: translateY(420px); } to { transform: none; } }
@keyframes smAwayL { from { transform: none; } to { transform: translateX(-700px); } }
@keyframes smAwayR { from { transform: none; } to { transform: translateX(700px); } }
@keyframes smFlame { from { transform: scaleY(.8); } to { transform: scaleY(1.15); } }
@keyframes smSmoke { from { transform: translateY(0) scale(.6); opacity: .9; } to { transform: translateY(-260px) scale(1.8); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .slide.type-story * { animation: none !important; } }
.sm-still * { animation: none !important; }
.slide.type-story .sl-num { display: none; }
/* Word symbols slide (picture + label, one card per word) */
.slide.type-symbols .sl-inner { gap: 3cqw; }
.sm-wh { font-size: 4.4cqw; }
.sm-words { display: flex; gap: 2cqw; justify-content: center; }
.sm-wcard { width: 17cqw; background: #fff; border: .6cqw solid var(--c); border-radius: 2.2cqw; padding: 1cqw 1cqw 1.2cqw; display: flex; flex-direction: column; align-items: center;
  box-shadow: 0 .6cqw 1.6cqw rgba(43, 42, 51, .12); }
.sm-wcard svg { width: 100%; aspect-ratio: 1; display: block; }
.sm-wcard svg [class^="sm-"] { transform-box: fill-box; }
.sm-wcard span { font-family: "Atkinson Hyperlegible", Andika, sans-serif; font-weight: 700; font-size: 3cqw; color: #2b2a33; margin-top: .4cqw; }
/* Comprehension questions: multiple choice with symbols; tap an answer (radio + label) to see if it is right */
.slide.type-quiz { background: radial-gradient(circle at 20% 10%, #fff7e6, #ffeccc 70%); }
.slide.type-quiz .sl-inner { gap: 2.4cqw; }
.q-head { display: flex; align-items: center; gap: 1.6cqw; }
.q-num { width: 6cqw; height: 6cqw; border-radius: 50%; background: #e63946; color: #fff; display: grid; place-items: center; font: 700 3.4cqw Fredoka, Poppins, sans-serif; border: .4cqw solid #4a3426; flex: none; }
.q-h { font-size: 4.2cqw; color: #3b2a1f !important; }
.q-opts { display: flex; gap: 3cqw; justify-content: center; }
.q-in { position: absolute; opacity: 0; pointer-events: none; }
.q-opt { width: 22cqw; background: #fff; border: .6cqw solid #c9b8a6; border-radius: 2.4cqw; padding: 1.2cqw 1.2cqw 1.4cqw; display: flex; flex-direction: column; align-items: center;
  cursor: pointer; box-shadow: 0 .7cqw 0 rgba(74, 52, 38, .18); transition: transform .15s; position: relative; }
.q-opt:hover { transform: translateY(-.5cqw); }
.q-pic { width: 15cqw; height: 15cqw; display: grid; place-items: center; }
.q-pic svg { width: 100%; height: 100%; }
.q-pic svg [class^="sm-"] { transform-box: fill-box; }
.q-emo { font-family: "Noto Color Emoji", sans-serif; font-size: 11cqw; line-height: 1; }
.q-lbl { font-family: "Atkinson Hyperlegible", Andika, sans-serif; font-weight: 700; font-size: 3cqw; color: #2b2a33; margin-top: .6cqw; text-align: center; }
.q-fb { position: absolute; left: 50%; bottom: -3.6cqw; transform: translateX(-50%); white-space: nowrap; font: 700 2.2cqw "Atkinson Hyperlegible", sans-serif, "Noto Color Emoji";
  padding: .4cqw 1.4cqw; border-radius: 99px; display: none; }
.q-tip { font-size: 2.2cqw; color: #7a6a5c; margin: 2cqw 0 0; }
.q-in:checked + .q-opt .q-fb { display: block; }
.q-in:checked + .q-opt.ok { border-color: #2e9d4f; background: #eaffef; animation: qYes .6s ease; }
.q-in:checked + .q-opt.ok .q-fb { background: #2e9d4f; color: #fff; }
.q-in:checked + .q-opt.no { border-color: #e63946; background: #fff0f1; animation: qNo .45s ease; opacity: .8; }
.q-in:checked + .q-opt.no .q-fb { background: #e63946; color: #fff; }
.q-in:focus-visible + .q-opt { outline: .5cqw solid #3fa2d8; outline-offset: .4cqw; }
@keyframes qYes { 40% { transform: scale(1.08); } }
@keyframes qNo { 20%, 60% { transform: translateX(-1.2cqw); } 40%, 80% { transform: translateX(1.2cqw); } }
/* Interactive ordering (tap pictures in story order) */
.slide.type-order { background: radial-gradient(circle at 80% 10%, #eaf6ff, #fff4dc 70%); }
.slide.type-order .sl-inner { gap: 1.2cqw; padding-top: 3cqw; }
.ord-tip { font-size: 2.3cqw; margin: 0; color: #5a4a3c; } .ord-tip b { color: #d62839; }
.ord { display: grid; grid-template-columns: repeat(3, 24cqw); gap: 1.4cqw 2cqw; }
.ord-card { all: unset; box-sizing: border-box; cursor: pointer; background: #fff; border: .5cqw solid #c9b8a6; border-radius: 1.8cqw; padding: .7cqw; position: relative;
  display: flex; flex-direction: column; align-items: center; box-shadow: 0 .5cqw 0 rgba(74, 52, 38, .18); transition: transform .15s; }
.ord-card:hover { transform: translateY(-.4cqw); }
.ord-card:focus-visible { outline: .5cqw solid #3fa2d8; outline-offset: .3cqw; }
.ord-pic { width: 100%; aspect-ratio: 16 / 9; border-radius: 1.1cqw; overflow: hidden; display: block; }
.sm-mini { width: 100%; height: 100%; display: block; }
.sm-mini * { animation: none !important; }
.ord-cap { font: 700 1.8cqw "Atkinson Hyperlegible", Andika, sans-serif; color: #2b2a33; margin-top: .4cqw; }
.ord-badge { position: absolute; left: -1.2cqw; top: -1.2cqw; width: 4.6cqw; height: 4.6cqw; border-radius: 50%; background: #2e9d4f; color: #fff; border: .4cqw solid #4a3426;
  display: none; place-items: center; font: 700 2.8cqw Fredoka, Poppins, sans-serif; }
.ord-card.done { border-color: #2e9d4f; background: #eaffef; cursor: default; }
.ord-card.done .ord-badge { display: grid; animation: qYes .5s ease; }
.ord-card.wrong { border-color: #e63946; animation: qNo .45s ease; }
.ord-end { display: flex; visibility: hidden; font: 700 2.8cqw "Atkinson Hyperlegible", sans-serif, "Noto Color Emoji"; color: #2e9d4f; align-items: center; gap: 1.4cqw; }
.ord.complete + .ord-end { visibility: visible; }
.ord-reset { font: 700 2cqw "Atkinson Hyperlegible", sans-serif; background: #fff; border: .3cqw solid #2e9d4f; color: #2e9d4f; border-radius: 99px; padding: .4cqw 1.6cqw; cursor: pointer; }
/* Magusto number line slides */
.mr-wrap { width: 84cqw; } .mr-line { width: 100%; display: block; }
.mr-say { font-size: 3cqw; margin: 0; } .mr-say b { color: #d62839; }
.mr-jump { stroke-dasharray: 420; animation: mrDraw .8s ease-out both; }
.mr-pop { animation: mrPop .4s ease-out both; }
@keyframes mrDraw { from { stroke-dashoffset: 420; } to { stroke-dashoffset: 0; } }
@keyframes mrPop { from { opacity: 0; } to { opacity: 1; } }
.slide.type-quiz .mr-wrap { width: 70cqw; }
.mr-opt { width: 18cqw; }
.mr-num { font: 700 7cqw Fredoka, Poppins, sans-serif; color: #3d6b8f; line-height: 1.1; }
.mr-nuts { font-family: "Noto Color Emoji", sans-serif; font-size: 1.8cqw; letter-spacing: .1cqw; text-align: center; max-width: 14cqw; line-height: 1.3; }
/* Castanhas assadas (art steps) */
.ca-row { display: flex; align-items: center; gap: 4cqw; } .ca-h1 { font-size: 5.4cqw; margin: 0 0 1cqw; }
.ca-res svg { display: block; }
.ca-mats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4cqw; } .ca-mats div { background: #fff; border: .3cqw solid #e7dccf; border-radius: 1.4cqw; padding: 1cqw 1.4cqw; font-size: 1.9cqw; display: flex; flex-direction: column; align-items: center; gap: .6cqw; text-align: center; }
.ca-mats span { font-family: "Noto Color Emoji", sans-serif; font-size: 5cqw; }
.ca-step { display: grid; grid-template-columns: auto 46cqw; grid-template-rows: auto auto; gap: 1.5cqw 3cqw; align-items: center; }
.ca-n { grid-row: 1 / 3; width: 10cqw; height: 10cqw; border-radius: 50%; background: #e8762b; color: #fff; display: grid; place-items: center; font: 700 6cqw Fredoka, Poppins, sans-serif; border: .5cqw solid #3b2a1f; }
.ca-pic { background: #fff; border: .4cqw solid #f3d1b0; border-radius: 2cqw; padding: 1cqw; } .ca-pic svg { width: 100%; display: block; }
.ca-t { font-size: 2.9cqw; margin: 0; max-width: 46cqw; text-align: left; line-height: 1.3; }
/* Pyramids lesson */
.py-tbl{border-collapse:collapse;margin:1cqw auto;font-size:2.4cqw;background:#fff}
.py-tbl th,.py-tbl td{border:.25cqw solid #c9c4d1;padding:.6cqw 2cqw;text-align:center}
.py-tbl th{background:var(--ss,#e3f0fd)}
.py-tbl td svg{margin:0 auto}
/* Shapes collection: step pictures centred and larger */
.ca-pic.sh-pic{display:flex;flex-wrap:wrap;justify-content:center;align-items:center;gap:2cqw;min-height:24cqw}
.ca-pic.sh-pic svg{width:auto;margin:0}
.q-vis{display:flex;align-items:center;justify-content:center;gap:1cqw;max-height:14cqw}
.q-vis svg{max-height:14cqw;width:auto}
