/* ============ JORNADA NA PALAVRA — estilo desenho animado ============ */
:root {
  --tinta: #2A1E3B;
  --fundo: #8ED8FF;
  --papel: #FFFBF0;
  --amarelo: #FFD23F;
  --laranja: #FF8C42;
  --verde: #56C45A;
  --vermelho: #F0544F;
  --azul: #3FA7E0;
  --roxo: #7B6CF6;
  --rosa: #FF6FB5;
  --sombra: 4px 4px 0 var(--tinta);
  --raio: 22px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; }
body {
  font-family: "Baloo 2", "Nunito", "Trebuchet MS", system-ui, sans-serif;
  color: var(--tinta);
  background: var(--fundo);
  min-height: 100vh;
  font-size: 17px;
  line-height: 1.4;
}
button { font-family: inherit; color: inherit; cursor: pointer; }
#app { max-width: 620px; margin: 0 auto; min-height: 100vh; position: relative; z-index: 1; padding-bottom: 96px; }

/* ---------- topo ---------- */
.topo, .topo-licao {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 10px 14px; background: var(--papel);
  border-bottom: 3px solid var(--tinta);
}
.quem { display: flex; align-items: center; gap: 10px; line-height: 1.1; }
.quem small { display: block; font-size: 13px; opacity: .75; }
.avatar { font-size: 26px; width: 44px; height: 44px; display: grid; place-items: center; background: var(--amarelo); border: 3px solid var(--tinta); border-radius: 50%; }
.chips { display: flex; gap: 8px; }
.chip { font-weight: 800; padding: 4px 12px; border: 3px solid var(--tinta); border-radius: 999px; background: #fff; box-shadow: 2px 2px 0 var(--tinta); white-space: nowrap; }
.chip.fogo { background: #FFE0CC; }
.chip.xp { background: #FFF3B0; }
.fechar { width: 42px; height: 42px; border-radius: 50%; border: 3px solid var(--tinta); background: #fff; font-size: 18px; font-weight: 900; box-shadow: 2px 2px 0 var(--tinta); flex: none; }
.topo-licao .barra { flex: 1; }

.conteudo { padding: 16px 14px 20px; display: flex; flex-direction: column; gap: 16px; }

/* ---------- navegação inferior ---------- */
.nav {
  position: fixed; bottom: 0; left: 50%; transform: translateX(-50%);
  width: min(620px, 100%); display: grid; grid-template-columns: repeat(4, 1fr);
  background: var(--papel); border-top: 3px solid var(--tinta); z-index: 30;
  padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
}
.nav button { background: none; border: 0; display: flex; flex-direction: column; align-items: center; font-weight: 700; font-size: 13px; padding: 4px; border-radius: 14px; }
.nav button span { font-size: 24px; line-height: 1.1; transition: transform .2s; }
.nav button.ativo { background: var(--amarelo); border: 2.5px solid var(--tinta); }
.nav button.ativo span { transform: scale(1.15) rotate(-6deg); }

/* ---------- cartões e botões ---------- */
.cartao { background: var(--papel); border: 3px solid var(--tinta); border-radius: var(--raio); box-shadow: var(--sombra); padding: 16px; }
.cartao small, .pergaminho small { font-weight: 800; letter-spacing: .04em; opacity: .7; font-size: 13px; }
.centro { text-align: center; }
.btn {
  border: 3px solid var(--tinta); border-radius: 16px; background: var(--verde); color: #fff;
  font-weight: 800; font-size: 17px; padding: 12px 18px; box-shadow: var(--sombra);
  text-shadow: 1px 1px 0 rgba(0,0,0,.25); transition: transform .08s, box-shadow .08s;
}
.btn:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.btn:disabled { filter: grayscale(.9); opacity: .6; cursor: not-allowed; }
.btn.grande { font-size: 19px; padding: 14px 20px; width: 100%; }
.btn.sec { background: #fff; color: var(--tinta); text-shadow: none; }
.btn.amarelo { background: var(--amarelo); color: var(--tinta); text-shadow: none; }
.btn.perigo { background: var(--vermelho); }
.btn-mini { border: 2.5px solid var(--tinta); background: #fff; border-radius: 12px; font-weight: 700; padding: 4px 10px; margin-top: 8px; box-shadow: 2px 2px 0 var(--tinta); }
.acoes { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.acoes .btn:last-child { flex: 1; }
.acoes.col { flex-direction: column; }
.barra { height: 16px; background: #fff; border: 3px solid var(--tinta); border-radius: 999px; overflow: hidden; }
.barra i { display: block; height: 100%; background: repeating-linear-gradient(-45deg, var(--verde) 0 10px, #7BDA7E 10px 20px); border-right: 3px solid var(--tinta); transition: width .5s cubic-bezier(.3,1.5,.6,1); }
.barra.grossa { height: 20px; }

/* ---------- narrador Lumi ---------- */
.narrador { display: flex; align-items: flex-end; gap: 6px; }
.lumi { width: 92px; flex: none; animation: bob 2.4s ease-in-out infinite; }
.lumi-svg { width: 100%; overflow: visible; }
.balao {
  position: relative; flex: 1; background: #fff; border: 3px solid var(--tinta); border-radius: 22px;
  padding: 12px 16px; box-shadow: var(--sombra); margin-bottom: 22px; cursor: pointer; min-height: 64px;
  animation: entrar .35s cubic-bezier(.3,1.6,.6,1);
}
.balao::before { content: ""; position: absolute; left: -16px; bottom: 14px; border: 10px solid transparent; border-right: 14px solid var(--tinta); }
.balao::after { content: ""; position: absolute; left: -9px; bottom: 17px; border: 7px solid transparent; border-right: 10px solid #fff; }
.balao p { margin: 0; font-size: 18px; font-weight: 600; }

/* ---------- boas-vindas ---------- */
.boas-vindas { padding: 26px 14px; display: flex; flex-direction: column; gap: 18px; }
.logo { text-align: center; font-weight: 800; line-height: .95; transform: rotate(-3deg); }
.logo span { display: block; font-size: 46px; color: var(--amarelo); -webkit-text-stroke: 2.5px var(--tinta); text-shadow: 4px 4px 0 var(--tinta); }
.logo span + span { font-size: 34px; color: #fff; }
.rotulo { font-weight: 800; margin: 4px 0 8px; display: block; }
input#nome { width: 100%; font: inherit; font-size: 20px; padding: 12px 14px; border: 3px solid var(--tinta); border-radius: 14px; background: #fff; margin-bottom: 10px; }
.avatares { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; margin-bottom: 16px; }
.av { font-size: 30px; aspect-ratio: 1; border: 3px solid var(--tinta); border-radius: 18px; background: #fff; transition: transform .15s; }
.av.sel { background: var(--amarelo); transform: scale(1.08) rotate(-4deg); box-shadow: var(--sombra); }

/* ---------- início ---------- */
.licao-hoje { background: var(--cor); border: 3px solid var(--tinta); border-radius: var(--raio); box-shadow: 6px 6px 0 var(--tinta); overflow: hidden; }
.mini-cena { border-bottom: 3px solid var(--tinta); aspect-ratio: 16/9; overflow: hidden; }
.mini-cena svg, .cena svg { width: 100%; height: 100%; display: block; }
.lh-info { padding: 14px 16px 16px; color: #fff; }
.lh-info small { font-weight: 800; letter-spacing: .05em; text-shadow: 1px 1px 0 var(--tinta); }
.lh-info h2 { margin: 2px 0 12px; font-size: 28px; line-height: 1.05; -webkit-text-stroke: 1.2px var(--tinta); text-shadow: 3px 3px 0 var(--tinta); }
.grade2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.versiculo-dia { background: #FFF3B0; }
.desafio-dia { background: #E2DCFF; display: flex; flex-direction: column; }
.desafio-dia .btn { margin-top: auto; }
.grade2 p { margin: 6px 0 8px; font-weight: 600; font-size: 15.5px; }
.nv-top { display: flex; justify-content: space-between; margin-bottom: 8px; }
.grande-emoji { font-size: 60px; }

/* ---------- trilha ---------- */
.trilha { display: flex; flex-direction: column; gap: 12px; }
.trilha-grupo { align-self: center; background: var(--tinta); color: #fff; font-weight: 800; padding: 6px 16px; border-radius: 999px; margin: 10px 0 2px; }
.no { display: flex; align-items: center; gap: 12px; width: 82%; padding: 10px 14px 10px 10px; background: var(--papel); border: 3px solid var(--tinta); border-radius: 999px; box-shadow: var(--sombra); text-align: left; position: relative; }
.no.esq { align-self: flex-start; }
.no.dir { align-self: flex-end; }
.bolinha { width: 54px; height: 54px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--cor); color: #fff; font-weight: 800; font-size: 22px; border: 3px solid var(--tinta); text-shadow: 1px 1px 0 var(--tinta); }
.no-txt { display: flex; flex-direction: column; line-height: 1.15; }
.no-txt small { opacity: .7; }
.no-txt em { color: #E8A100; font-style: normal; font-size: 18px; letter-spacing: 2px; -webkit-text-stroke: .6px var(--tinta); }
.no.feito { background: #E4F8E1; }
.no.bloq { background: #ECE8F2; filter: grayscale(.8); cursor: not-allowed; box-shadow: 2px 2px 0 rgba(42,30,59,.5); }
.no.bloq > * { opacity: .6; }
.no.bloq .bolinha { background: #ccc; }
.no.atual { animation: pulsar 1.6s ease-in-out infinite; }
.no.atual::after { content: "VOCÊ ESTÁ AQUI"; position: absolute; top: -12px; right: 18px; background: var(--amarelo); border: 2.5px solid var(--tinta); font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }

/* ---------- biblioteca ---------- */
.sec-tit { margin: 8px 0 -4px; font-size: 21px; }
.jogo-card { display: flex; align-items: center; gap: 14px; background: #FFE0CC; }
.jogo-card p { margin: 4px 0; font-size: 15px; }
.grupo b small { font-weight: 600; }
.livros { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.livros span { background: #fff; border: 2px solid var(--tinta); border-radius: 10px; padding: 2px 9px; font-weight: 600; font-size: 15px; }
.gAT0 { background: #FFE7B8; } .gAT1 { background: #D7F0FF; } .gAT2 { background: #FFDDEB; } .gAT3 { background: #E2DCFF; } .gAT4 { background: #DDF5D8; }
.gNT0 { background: #FFF3B0; } .gNT1 { background: #FFE0CC; } .gNT2 { background: #D7F0FF; } .gNT3 { background: #DDF5D8; } .gNT4 { background: #FFDDEB; }
.nota { font-size: 14px; opacity: .8; text-align: center; }
.livro-grande { align-self: center; font-size: 34px; font-weight: 800; background: #fff; border: 4px solid var(--tinta); border-radius: 24px; padding: 26px 30px; box-shadow: 6px 6px 0 var(--tinta); animation: entrar .4s cubic-bezier(.3,1.6,.6,1); text-align: center; }
.livro-grande.certo { background: #C9F2C4; }
.livro-grande.errado { background: #FFD0CE; }

/* ---------- conquistas ---------- */
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.stat { text-align: center; padding: 12px 6px; }
.stat b { font-size: 26px; display: block; }
.badges { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.badge { background: #eee; border: 3px dashed #aaa; border-radius: 18px; padding: 10px 6px; text-align: center; display: flex; flex-direction: column; align-items: center; line-height: 1.15; }
.badge span { font-size: 34px; filter: grayscale(1); opacity: .45; }
.badge b { font-size: 14px; margin-top: 4px; }
.badge small { font-size: 11.5px; opacity: .7; }
.badge.ok { background: #FFF3B0; border: 3px solid var(--tinta); box-shadow: 3px 3px 0 var(--tinta); }
.badge.ok span { filter: none; opacity: 1; animation: balancar 2.5s ease-in-out infinite; }
.config { display: flex; flex-direction: column; gap: 10px; }

/* ---------- lição: palco de desenho animado ---------- */
.palco { position: relative; border: 4px solid var(--tinta); border-radius: 26px; overflow: hidden; box-shadow: 6px 6px 0 var(--tinta); background: var(--cor); aspect-ratio: 16/10; }
.cena { width: 100%; height: 100%; transition: transform 1.6s cubic-bezier(.45,.05,.3,1); transform-origin: center; }
.cena.cam0 { transform: scale(1); }
.cena.cam1 { transform: scale(1.35) translate(-9%, 4%); }
.cena.cam2 { transform: scale(1.3) translate(9%, 3%); }
.cena.cam3 { transform: scale(1.12) translate(0, -2%); }
.claquete { position: absolute; top: 10px; left: 10px; background: var(--tinta); color: #fff; font-weight: 800; font-size: 14px; padding: 3px 10px; border-radius: 10px; }
.quiz-top .claquete { position: static; display: inline-block; }
.titulo-cena { position: absolute; bottom: 10px; right: 10px; background: var(--amarelo); border: 3px solid var(--tinta); font-weight: 800; padding: 2px 12px; border-radius: 12px; transform: rotate(-2deg); max-width: 80%; }
.licao { padding-bottom: 30px; }

.pergaminho { background: #FFF1C9; border: 4px solid var(--tinta); border-radius: 18px; padding: 22px 20px; text-align: center; box-shadow: 6px 6px 0 var(--tinta); position: relative; animation: entrar .5s cubic-bezier(.3,1.6,.6,1); }
.pergaminho::before, .pergaminho::after { content: ""; position: absolute; left: -8px; right: -8px; height: 18px; background: #E9C680; border: 4px solid var(--tinta); border-radius: 999px; }
.pergaminho::before { top: -12px; } .pergaminho::after { bottom: -12px; }
.pergaminho p { font-size: 23px; font-weight: 700; margin: 8px 0; line-height: 1.3; }
.pergaminho b { font-size: 18px; color: #B3541E; display: block; }
.pergaminho em { display: block; font-size: 13px; opacity: .65; margin-top: 4px; }
.curio { background: #E2DCFF; } .aplic { background: #FFE0CC; }
.curio p, .aplic p { margin: 6px 0 0; font-size: 18px; font-weight: 600; }

/* atividades */
.ordem { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 6px; }
.ordem li { display: flex; align-items: center; gap: 10px; border: 3px dashed #bbb; border-radius: 14px; padding: 8px 10px; font-weight: 700; min-height: 46px; }
.ordem li span { width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--tinta); color: #fff; display: grid; place-items: center; font-size: 15px; }
.ordem li.vazio { color: #aaa; }
.ordem li.cheio { border: 3px solid var(--tinta); background: #fff; cursor: pointer; animation: entrar .25s; }
.ordem li.certo { background: #C9F2C4; }
.ordem li.errado { background: #FFD0CE; animation: tremer .4s; }
.pool, .lac-ops { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.ficha { border: 3px solid var(--tinta); background: var(--amarelo); border-radius: 14px; padding: 8px 12px; font-weight: 700; font-size: 16px; box-shadow: 3px 3px 0 var(--tinta); }
.ficha:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 var(--tinta); }
.ficha.errado { background: #FFD0CE; }
.msg { font-weight: 700; padding: 8px 12px; border-radius: 12px; margin: 6px 0 10px; }
.msg.ok { background: #C9F2C4; } .msg.erro { background: #FFD0CE; }
.pares { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 8px; }
.pares > div { display: flex; flex-direction: column; gap: 8px; }
.par { border: 3px solid var(--tinta); border-radius: 14px; background: #fff; padding: 10px 8px; font-weight: 700; font-size: 15.5px; box-shadow: 3px 3px 0 var(--tinta); min-height: 58px; }
.par.sel { background: var(--amarelo); transform: scale(1.04); }
.par.feito { background: #C9F2C4; box-shadow: none; opacity: .75; }
.par.errado { background: #FFD0CE; }
.vf-lista { display: flex; flex-direction: column; gap: 12px; }
.vf p { margin: 0 0 10px; font-weight: 700; font-size: 18px; }
.vf.certo, .lacuna.certo { background: #E4F8E1; }
.vf.errado { background: #FFECEA; }
.vf-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.vf-btns.grandes .btn { font-size: 21px; padding: 18px; }
.btn.v { background: var(--verde); } .btn.f { background: var(--vermelho); }
.btn.at { background: #E9A23B; } .btn.nt { background: var(--roxo); }
.lacuna p { font-size: 18px; font-weight: 600; margin: 0 0 10px; }
.lac { display: inline-block; min-width: 60px; text-align: center; border-bottom: 3px dashed var(--tinta); padding: 0 6px; font-weight: 800; color: var(--roxo); }
.lac.ok { border-bottom-style: solid; color: #2E8B3A; animation: entrar .3s; }

/* quiz */
.pergunta h2 { margin: 0; font-size: 23px; line-height: 1.2; }
.opcoes { display: flex; flex-direction: column; gap: 10px; }
.opcao { display: flex; align-items: center; gap: 12px; text-align: left; border: 3px solid var(--tinta); border-radius: 18px; padding: 10px 14px; font-weight: 700; font-size: 17px; box-shadow: var(--sombra); background: #fff; transition: transform .1s; animation: entrar .35s backwards; }
.opcao:nth-child(2) { animation-delay: .06s; } .opcao:nth-child(3) { animation-delay: .12s; } .opcao:nth-child(4) { animation-delay: .18s; }
.opcao:active:not(:disabled) { transform: translate(3px, 3px); box-shadow: 1px 1px 0 var(--tinta); }
.letra { width: 36px; height: 36px; flex: none; border-radius: 12px; display: grid; place-items: center; color: #fff; font-weight: 800; border: 2.5px solid var(--tinta); text-shadow: 1px 1px 0 var(--tinta); }
.op0 .letra { background: var(--vermelho); } .op1 .letra { background: var(--azul); } .op2 .letra { background: #E9A23B; } .op3 .letra { background: var(--verde); }
.opcao.certo { background: #C9F2C4; transform: scale(1.02); }
.opcao.errado { background: #FFD0CE; }
.opcao.apagado { opacity: .45; box-shadow: none; }

/* fim */
.fim { text-align: center; display: flex; flex-direction: column; align-items: center; gap: 10px; }
.grande-lumi { width: 140px; }
.fim h1 { margin: 0; font-size: 38px; color: var(--amarelo); -webkit-text-stroke: 2px var(--tinta); text-shadow: 4px 4px 0 var(--tinta); transform: rotate(-2deg); }
.estrelas { display: flex; gap: 6px; }
.estrelas span { font-size: 62px; color: #fff; -webkit-text-stroke: 3px var(--tinta); line-height: 1; }
.estrelas span.on { color: var(--amarelo); animation: estrela .6s cubic-bezier(.3,1.8,.6,1) backwards; }
.fim-msg { font-size: 20px; font-weight: 700; margin: 0; }
.fim-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; width: 100%; }
.fim-stats b { font-size: 26px; display: block; }
.bonus { background: var(--amarelo); border: 3px solid var(--tinta); border-radius: 14px; padding: 6px 14px; font-weight: 800; margin: 0; }
.fim .acoes { width: 100%; }

/* toast e confete */
.toast { position: fixed; bottom: 110px; left: 50%; transform: translateX(-50%); z-index: 100; display: flex; align-items: center; gap: 12px; background: var(--amarelo); border: 3px solid var(--tinta); border-radius: 18px; box-shadow: var(--sombra); padding: 10px 18px; font-size: 16px; animation: toast 3.6s ease forwards; }
.toast-ic { font-size: 36px; }
.toast { width: max-content; max-width: min(92vw, 440px); }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confete i { position: absolute; top: -20px; width: 10px; height: 16px; border: 2px solid var(--tinta); border-radius: 3px; animation: cair linear forwards; }

/* ---------- animações de desenho animado ---------- */
svg [class^="anim-"], svg [class*=" anim-"] { transform-box: fill-box; transform-origin: center; }
.anim-bob { animation: bob 2.4s ease-in-out infinite; }
.anim-float { animation: flutuar 5s ease-in-out infinite; }
.anim-twinkle { animation: piscarEstrela 2.2s ease-in-out infinite; }
.anim-wave { animation: onda 3s ease-in-out infinite; }
.anim-wave2 { animation: onda 3s ease-in-out infinite reverse; }
.anim-flicker { animation: chama .5s ease-in-out infinite alternate; transform-origin: bottom center !important; }
.anim-blink { animation: piscar 4s infinite; }
.anim-sway { animation: balancar 3s ease-in-out infinite; transform-origin: bottom center !important; }
.anim-sway-slow { animation: balancar 4s ease-in-out infinite; transform-origin: bottom center !important; }
.anim-spin { animation: girar 14s linear infinite; }
.anim-spin-slow { animation: girar 40s linear infinite; }
.anim-spin-fast { animation: girar .6s linear infinite; transform-origin: bottom center !important; }
.anim-pulse { animation: pulso 2s ease-in-out infinite; }
.anim-swim { animation: nadar 2s ease-in-out infinite; }
.anim-jump { animation: pular 3s ease-in-out infinite; }
.anim-fly { animation: voar 6s ease-in-out infinite; }
.anim-hop { animation: saltitar 1.2s ease-in-out infinite; transform-origin: bottom center !important; }
.anim-run { animation: saltitar .5s ease-in-out infinite; transform-origin: bottom center !important; }
.anim-walk { animation: saltitar .9s ease-in-out infinite; transform-origin: bottom center !important; }
.anim-peek { animation: espiar 3.5s ease-in-out infinite; }
.anim-zzz { animation: zzz 2.5s ease-in-out infinite; }
.anim-breathe { animation: respirar 3s ease-in-out infinite; }
.anim-rise { animation: subir 3s ease-in infinite; }
.anim-wall { animation: parede 2.6s ease-in-out infinite; }
.anim-wind { animation: vento 2.5s ease-in-out infinite; }
.anim-wave-hand { animation: acenar .8s ease-in-out infinite alternate; transform-origin: 0% 100% !important; }
.tremer { animation: tremer .4s; }

@keyframes bob { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes flutuar { 0%,100% { transform: translateX(0); } 50% { transform: translateX(14px); } }
@keyframes piscarEstrela { 0%,100% { transform: scale(1) rotate(0); opacity: 1; } 50% { transform: scale(.6) rotate(20deg); opacity: .6; } }
@keyframes onda { 0%,100% { transform: translateX(0); } 50% { transform: translateX(-20px); } }
@keyframes chama { from { transform: scale(1, 1) rotate(-4deg); } to { transform: scale(.9, 1.12) rotate(4deg); } }
@keyframes piscar { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(.1); } }
@keyframes balancar { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes pulso { 0%,100% { opacity: .55; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes nadar { 0%,100% { transform: translate(0,0) rotate(0); } 50% { transform: translate(6px,-3px) rotate(-6deg); } }
@keyframes pular { 0%, 60%, 100% { transform: translateY(0) rotate(0); } 75% { transform: translateY(-26px) rotate(-25deg); } 88% { transform: translateY(-8px) rotate(20deg); } }
@keyframes voar { 0%,100% { transform: translate(0,0); } 25% { transform: translate(12px,-8px); } 50% { transform: translate(24px,0); } 75% { transform: translate(12px,6px); } }
@keyframes saltitar { 0%,100% { transform: translateY(0) scale(1,1); } 40% { transform: translateY(-8px) scale(.97,1.04); } 80% { transform: translateY(0) scale(1.04,.95); } }
@keyframes espiar { 0%,100% { transform: translateY(0) rotate(0); } 50% { transform: translateY(-4px) rotate(-6deg); } }
@keyframes zzz { 0% { transform: translate(0,0) scale(.7); opacity: 0; } 30% { opacity: 1; } 100% { transform: translate(10px,-16px) scale(1.1); opacity: 0; } }
@keyframes respirar { 0%,100% { transform: scale(1); } 50% { transform: scale(1.04); } }
@keyframes subir { 0% { transform: translateY(10px); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(-40px); opacity: 0; } }
@keyframes parede { 0%,100% { transform: translateY(0) skewX(0); } 50% { transform: translateY(-3px) skewX(-1.5deg); } }
@keyframes vento { 0%,100% { transform: translateX(-10px); opacity: .6; } 50% { transform: translateX(14px); opacity: 1; } }
@keyframes acenar { from { transform: rotate(-10deg); } to { transform: rotate(14deg); } }
@keyframes tremer { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-7px); } 40%,80% { transform: translateX(7px); } }
@keyframes entrar { from { transform: scale(.7); opacity: 0; } to { transform: scale(1); opacity: 1; } }
@keyframes pulsar { 0%,100% { transform: scale(1); } 50% { transform: scale(1.03); } }
@keyframes estrela { from { transform: scale(0) rotate(-180deg); } to { transform: scale(1) rotate(0); } }
@keyframes cair { to { transform: translateY(110vh) rotate(720deg); } }
@keyframes toast { 0% { transform: translate(-50%, 200px); } 12%, 85% { transform: translate(-50%, 0); } 100% { transform: translate(-50%, 260px); } }

@media (max-width: 420px) {
  body { font-size: 16px; }
  .grade2 { grid-template-columns: 1fr; }
  .lumi { width: 72px; }
  .balao p { font-size: 16.5px; }
  .lh-info h2 { font-size: 24px; }
  .no { width: 92%; }
  .badges { grid-template-columns: repeat(2, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.troca { display: flex; gap: 8px; }
.troca input { flex: 1; font: inherit; font-size: 18px; padding: 10px 12px; border: 3px solid var(--tinta); border-radius: 14px; min-width: 0; }

/* =================== EPISÓDIOS: PALCO DE DESENHO ANIMADO =================== */
.ep-titulo { text-align: center; line-height: 1.1; }
.ep-titulo span { display: inline-block; background: var(--tinta); color: var(--amarelo); font-weight: 800; font-size: 13px; padding: 2px 12px; border-radius: 999px; letter-spacing: .08em; }
.ep-titulo b { display: block; font-size: 26px; margin-top: 4px; color: #fff; -webkit-text-stroke: 1.2px var(--tinta); text-shadow: 3px 3px 0 var(--tinta); }
.ep-titulo small { font-weight: 700; opacity: .7; }
.ep { display: flex; flex-direction: column; gap: 12px; }
.palco2 { position: relative; aspect-ratio: 16/10.5; border: 4px solid var(--tinta); border-radius: 24px; overflow: hidden; box-shadow: 6px 6px 0 var(--tinta); background: #8ED8FF; cursor: pointer; user-select: none; -webkit-user-select: none; touch-action: manipulation; }
.pl-bg, .pl-bg svg, .pl-bg-novo, .pl-ov, .pl-atores { position: absolute; inset: 0; width: 100%; height: 100%; }
.pl-bg svg, .pl-bg-novo svg { display: block; }
.pl-bg-novo { animation: aparecerFundo .6s ease forwards; }
@keyframes aparecerFundo { from { opacity: 0; transform: scale(1.15); } to { opacity: 1; transform: scale(1); } }
.pl-atores { z-index: 2; }
.ator { position: absolute; aspect-ratio: 124/184; transform: translateX(-50%); transition: left 1s cubic-bezier(.45,.05,.3,1); z-index: 2; }
.ator.prop { aspect-ratio: auto; }
.ator.prop svg { height: 100%; width: auto; display: block; margin: 0 auto; overflow: visible; }
.ator-in, .ator-flip { width: 100%; height: 100%; display: flex; justify-content: center; align-items: flex-end; }
.ator.prop .ator-in, .ator.prop .ator-flip { width: auto; }
.ator-flip.flip { transform: scaleX(-1); }
.ator svg.pers-svg { height: 100%; width: auto; overflow: visible; }
.ator-in { transform-origin: 50% 100%; animation: respirarAtor 3s ease-in-out infinite; }
@keyframes respirarAtor { 0%,100% { transform: scale(1,1); } 50% { transform: scale(1.015,.985); } }
.ator.falando .ator-in { animation: falarCorpo .35s ease-in-out infinite alternate; }
@keyframes falarCorpo { from { transform: translateY(0) rotate(-1deg); } to { transform: translateY(-2%) rotate(1deg); } }
.boca { transform-box: fill-box; transform-origin: center; }
.falando .boca, .ep-quem .boca { animation: falarBoca .16s ease-in-out infinite alternate; }
.ep-txt + * .boca, .apagada .boca { animation: none; }
@keyframes falarBoca { from { transform: scaleY(.35); } to { transform: scaleY(1.25); } }
.mao-acena { transform-box: fill-box; transform-origin: 0% 100%; animation: acenar .5s ease-in-out infinite alternate; }
.ator.alvo .ator-in { animation: alvoPulsa .9s ease-in-out infinite; filter: drop-shadow(0 0 6px #FFE27A) drop-shadow(0 0 2px #fff); }
@keyframes alvoPulsa { 0%,100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* efeitos dos atores */
.fx-pulo { animation: fxPulo .55s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes fxPulo { 0% { transform: translateY(0) scale(1,1); } 30% { transform: translateY(-22%) scale(.92,1.08); } 60% { transform: translateY(0) scale(1.1,.9); } 100% { transform: translateY(0) scale(1); } }
.fx-tremer { animation: fxTremer .45s !important; }
@keyframes fxTremer { 0%,100% { transform: translateX(0); } 20%,60% { transform: translateX(-6%) rotate(-3deg); } 40%,80% { transform: translateX(6%) rotate(3deg); } }
.fx-girar { animation: fxGirar .7s ease-in-out !important; }
@keyframes fxGirar { from { transform: rotateY(0); } to { transform: rotateY(360deg); } }
.fx-aparecer { animation: fxAparecer .6s cubic-bezier(.3,1.6,.5,1) !important; }
@keyframes fxAparecer { from { transform: scale(0) rotate(-20deg); opacity: 0; } to { transform: scale(1) rotate(0); opacity: 1; } }
.fx-voltar { animation: fxVoltar 1.4s ease-out !important; }
@keyframes fxVoltar { from { transform: translate(300%, -200%); } to { transform: translate(0,0); } }
.fx-brilhar { filter: drop-shadow(0 0 10px #FFE27A) drop-shadow(0 0 4px #fff); animation: fxBrilho 1.2s ease-in-out infinite !important; }
@keyframes fxBrilho { 0%,100% { transform: scale(1); } 50% { transform: scale(1.05); } }
.fx-cair { animation: fxCair .9s cubic-bezier(.5,0,.8,.5) forwards !important; transform-origin: 90% 100% !important; }
@keyframes fxCair { to { transform: rotate(84deg) translateY(10%); } }
.fx-rolar { animation: fxRolar 1.3s ease-in-out forwards !important; transform-origin: 50% 50% !important; }
@keyframes fxRolar { to { transform: translateX(95%) rotate(300deg); } }
.fx-sumir { animation: fxSumir .5s ease-in forwards !important; }
@keyframes fxSumir { 50% { transform: scale(1.3); } to { transform: scale(0) rotate(180deg); opacity: 0; } }
.fx-sumirDir { animation: fxSumirDir 1.4s ease-in forwards !important; }
@keyframes fxSumirDir { 20% { transform: translateY(-10%); } to { transform: translateX(500%); opacity: 0; } }
.fx-subirCeu { animation: fxSubir 2.6s ease-in forwards !important; filter: drop-shadow(0 0 12px #fff); }
@keyframes fxSubir { to { transform: translateY(-160%) scale(.6); opacity: 0; } }
.fx-balanco { animation: fxBalanco 2.2s ease-in-out infinite !important; }
@keyframes fxBalanco { 0%,100% { transform: rotate(-4deg) translateY(0); } 50% { transform: rotate(4deg) translateY(-4%); } }
.fx-voarLonge { animation: fxVoarLonge 1.4s ease-in forwards !important; }
@keyframes fxVoarLonge { to { transform: translate(400%, -300%) scale(.4); opacity: 0; } }
.fx-cairMar { animation: fxCairMar 1.2s ease-in forwards !important; }
@keyframes fxCairMar { 30% { transform: translate(20%, -30%) rotate(30deg); } to { transform: translate(60%, 120%) rotate(120deg); opacity: 0; } }

/* overlays */
.pl-ov { z-index: 3; pointer-events: none; }
.pl-ov.ov-arcoiris { z-index: 1; } /* o arco-íris fica atrás dos personagens */
.ov-chuva { background: repeating-linear-gradient(105deg, transparent 0 14px, rgba(255,255,255,.45) 14px 16px, transparent 16px 30px); background-size: 60px 60px; animation: chuva .35s linear infinite; }
@keyframes chuva { to { background-position: -16px 60px; } }
.ov-brilho { background: radial-gradient(circle at 50% 35%, rgba(255,243,176,.85), rgba(255,243,176,0) 60%); animation: pulso 2s ease-in-out infinite; }
.ov-vento { background: repeating-linear-gradient(0deg, transparent 0 28px, rgba(255,255,255,.55) 28px 31px, transparent 31px 60px); animation: vento2 .6s linear infinite; }
@keyframes vento2 { from { background-position: -320px 0; } to { background-position: 320px 0; } }
.ov-arcoiris svg { width: 100%; height: 100%; animation: fxAparecer 1s ease; opacity: .85; }
.ov-confete i { position: absolute; top: -10px; width: 8px; height: 13px; border: 1.5px solid var(--tinta); border-radius: 2px; animation: cair 2.4s linear infinite; }
.terremoto { animation: terremoto .6s; }
@keyframes terremoto { 0%,100% { transform: translate(0,0); } 15% { transform: translate(-8px,4px); } 30% { transform: translate(7px,-5px); } 45% { transform: translate(-6px,3px); } 60% { transform: translate(5px,-2px); } 80% { transform: translate(-3px,1px); } }
.flash::after { content: ""; position: absolute; inset: 0; background: #fff; z-index: 8; animation: flash .5s ease-out forwards; pointer-events: none; }
@keyframes flash { from { opacity: .9; } to { opacity: 0; } }
.luz-voz::before { content: ""; position: absolute; inset: 0; z-index: 3; pointer-events: none; background: linear-gradient(180deg, rgba(255,236,150,.85), rgba(255,236,150,0) 70%); animation: flash 1.4s ease-out forwards; }
.raio { animation: raio 3s infinite; }
@keyframes raio { 0%, 88%, 100% { opacity: 0; } 90%, 94% { opacity: 1; } }

/* balões no palco */
.pl-balao { position: absolute; top: 3%; z-index: 6; background: #fff; border: 3px solid var(--tinta); border-radius: 20px; padding: 6px 12px 8px; box-shadow: 3px 3px 0 var(--tinta); pointer-events: none; }
.pl-balao.pop, .pl-voz.pop { animation: entrar .3s cubic-bezier(.3,1.6,.6,1); }
.pl-balao p { margin: 0; font-weight: 700; font-size: clamp(13px, 3.6vw, 17px); line-height: 1.25; }
.pl-nome { display: inline-block; font-size: 11.5px; background: var(--amarelo); border: 2px solid var(--tinta); border-radius: 8px; padding: 0 8px; margin-bottom: 2px; }
.pl-cauda { position: absolute; bottom: -15px; width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent; border-top: 15px solid var(--tinta); transform: translateX(-50%); }
.pl-cauda::after { content: ""; position: absolute; left: -7px; top: -18px; border-left: 7px solid transparent; border-right: 7px solid transparent; border-top: 11px solid #fff; }
.pl-voz { position: absolute; top: 4%; left: 8%; right: 8%; z-index: 6; text-align: center; background: linear-gradient(180deg, #FFF7CF, #FFE27A); border: 3px solid var(--tinta); border-radius: 22px; padding: 6px 14px 10px; box-shadow: 0 0 0 4px rgba(255,255,255,.6), 0 0 28px #FFE27A; pointer-events: none; }
.pl-voz small { font-weight: 800; font-size: 11px; letter-spacing: .1em; color: #9A6B00; }
.pl-voz p { margin: 0; font-weight: 800; font-size: clamp(14px, 3.8vw, 18px); }
.escondido { display: none !important; }
.pl-tag { position: absolute; right: 10px; bottom: 10px; opacity: 0; z-index: 6; background: var(--tinta); color: #fff; font-weight: 800; font-size: 13px; padding: 2px 10px; border-radius: 10px; }
.pl-tag.pop { animation: tagPop 2.8s ease forwards; }
@keyframes tagPop { 0% { opacity: 0; transform: scale(.5); } 12% { opacity: 1; transform: scale(1.1); } 20%, 80% { opacity: 1; transform: scale(1); } 100% { opacity: 0; } }
.ator.alvo { z-index: 4; }
.ator.alvo::after { content: ""; position: absolute; inset: -16px; border-radius: 50%; }
.pl-tag, .pl-balao, .pl-voz, .pl-ov, .pl-iris { pointer-events: none; }
.pl-iris { position: absolute; inset: 0; z-index: 9; background: var(--tinta); pointer-events: none; clip-path: circle(0% at 50% 50%); }
.pl-iris.fechar { animation: irisFecha .5s ease-in forwards; }
.pl-iris.abrir { animation: irisAbre .55s ease-out forwards; }
@keyframes irisFecha { from { clip-path: circle(0% at 50% 50%); } to { clip-path: circle(80% at 50% 50%); } }
@keyframes irisAbre { from { clip-path: circle(80% at 50% 50%); } to { clip-path: circle(0% at 50% 50%); } }
.pl-momento { position: absolute; top: 8px; left: 50%; transform: translateX(-50%); z-index: 7; background: var(--amarelo); border: 3px solid var(--tinta); border-radius: 999px; padding: 4px 14px; font-weight: 800; font-size: clamp(12px, 3.4vw, 15px); box-shadow: 3px 3px 0 var(--tinta); white-space: nowrap; max-width: 94%; overflow: hidden; text-overflow: ellipsis; animation: momento 1s ease-in-out infinite; pointer-events: none; display: flex; gap: 8px; align-items: center; }
.pl-cont { background: var(--tinta); color: #fff; border-radius: 999px; padding: 0 8px; font-size: 12px; }
.pl-cont:empty { display: none; }
@keyframes momento { 0%,100% { transform: translateX(-50%) scale(1); } 50% { transform: translateX(-50%) scale(1.05); } }
.pl-mao { position: absolute; z-index: 7; font-size: 34px; pointer-events: none; transform: translate(-30%, 10%); animation: mao .8s ease-in-out infinite; filter: drop-shadow(2px 2px 0 var(--tinta)); }
@keyframes mao { 0%,100% { transform: translate(-30%, 10%) scale(1); } 50% { transform: translate(-30%, 30%) scale(.88); } }
.pl-emoji { position: absolute; z-index: 7; font-size: 30px; pointer-events: none; transform: translate(-50%, -50%); animation: emojiSobe 1.1s ease-out forwards; }
@keyframes emojiSobe { 0% { transform: translate(-50%,-50%) scale(.3); opacity: 1; } 30% { transform: translate(-50%,-90%) scale(1.3); } 100% { transform: translate(-50%,-220%) scale(1); opacity: 0; } }
.pl-proj { position: absolute; left: 0; top: 0; z-index: 7; font-size: 26px; pointer-events: none; margin: -13px; }
.pl-quip { position: absolute; z-index: 7; transform: translate(-50%, 0); background: #fff; border: 2.5px solid var(--tinta); border-radius: 14px; padding: 2px 10px; font-weight: 800; font-size: 14px; white-space: nowrap; box-shadow: 2px 2px 0 var(--tinta); animation: quip 1.5s ease forwards; pointer-events: none; }
@keyframes quip { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.6); } 15% { opacity: 1; transform: translate(-50%, 0) scale(1.05); } 85% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -14px); } }
.pl-bravo { position: absolute; z-index: 8; top: 40%; left: 50%; transform: translate(-50%,-50%); font-size: clamp(26px, 8vw, 42px); font-weight: 800; color: var(--amarelo); -webkit-text-stroke: 2px var(--tinta); text-shadow: 3px 3px 0 var(--tinta); animation: bravo 1.3s cubic-bezier(.3,1.6,.6,1) forwards; pointer-events: none; white-space: nowrap; }
@keyframes bravo { 0% { transform: translate(-50%,-50%) scale(0) rotate(-20deg); } 25% { transform: translate(-50%,-50%) scale(1.15) rotate(-4deg); } 80% { transform: translate(-50%,-50%) scale(1) rotate(-4deg); opacity: 1; } 100% { transform: translate(-50%,-80%) scale(1); opacity: 0; } }

/* legenda e controles */
.ep-legenda { display: flex; gap: 10px; align-items: center; background: var(--papel); border: 3px solid var(--tinta); border-radius: 20px; padding: 8px 12px; box-shadow: var(--sombra); min-height: 84px; }
.ep-quem { width: 62px; height: 62px; flex: none; border-radius: 50%; background: #FFF3B0; border: 3px solid var(--tinta); overflow: hidden; display: grid; place-items: center; }
.ep-quem svg { width: 100%; height: 100%; }
.ep-txt b { font-size: 13px; opacity: .7; display: block; }
.ep-txt p { margin: 0; font-weight: 700; font-size: 17px; line-height: 1.3; }
.ep-legenda.apagada .ep-txt p { font-size: 14px; opacity: .6; font-weight: 600; }
.ep-ctrl { display: flex; gap: 8px; }
.btn-ic { width: 50px; height: 50px; flex: none; border: 3px solid var(--tinta); border-radius: 14px; background: #fff; font-size: 18px; font-weight: 800; box-shadow: 3px 3px 0 var(--tinta); }
.btn-ic.on { background: var(--amarelo); }
.ep-prox { flex: 1; }

/* narrador com personagem */
.lumi.pers { width: 92px; cursor: pointer; position: relative; }
.lumi.pers svg { width: 100%; height: auto; display: block; overflow: visible; }
.lumi.pers.comemora { animation: comemora .6s ease-in-out 2; }
@keyframes comemora { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px) rotate(-4deg); } }
.pula { animation: fxPulo .55s cubic-bezier(.3,1.6,.5,1); }
.balao-nome { display: inline-block; font-size: 12px; background: var(--amarelo); border: 2px solid var(--tinta); border-radius: 8px; padding: 0 8px; margin-bottom: 2px; }
.quip-flutua { position: absolute; top: -16px; left: 50%; transform: translateX(-50%); background: #fff; border: 2.5px solid var(--tinta); border-radius: 12px; padding: 1px 8px; font-weight: 800; font-size: 13px; white-space: nowrap; animation: quip 1.4s ease forwards; z-index: 5; }

/* início: mini palco */
.mini-palco { position: relative; cursor: pointer; }
.mini-palco > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.mp-ator { position: absolute; left: 30%; bottom: 4%; height: 82%; transform: translateX(-50%); animation: bob 2.2s ease-in-out infinite; }
.mp-ator svg { height: 100%; width: auto; overflow: visible; }
.mp-balao { position: absolute; right: 5%; top: 14%; width: 48%; background: #fff; border: 3px solid var(--tinta); border-radius: 18px; padding: 8px 12px; font-weight: 800; font-size: clamp(14px, 3.8vw, 18px); box-shadow: 3px 3px 0 var(--tinta); animation: entrar .6s .3s cubic-bezier(.3,1.6,.6,1) backwards; }
.mp-balao::before { content: ""; position: absolute; left: -14px; top: 40%; border: 8px solid transparent; border-right: 12px solid var(--tinta); }
.btn.brilha { position: relative; overflow: hidden; }
.btn.brilha::after { content: ""; position: absolute; top: 0; left: -60%; width: 40%; height: 100%; background: linear-gradient(90deg, transparent, rgba(255,255,255,.55), transparent); transform: skewX(-20deg); animation: reflexo 2.6s ease-in-out infinite; }
@keyframes reflexo { 0%, 60% { left: -60%; } 100% { left: 130%; } }

/* trilha com rostos */
.bolinha.rosto { position: relative; overflow: visible; background: var(--cor); padding: 0; }
.bolinha.rosto svg { width: 100%; height: 100%; border-radius: 50%; }
.bolinha .ok { position: absolute; right: -6px; bottom: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--verde); color: #fff; font-size: 13px; font-style: normal; display: grid; place-items: center; border: 2.5px solid var(--tinta); }
.bolinha .num { position: absolute; left: -6px; top: -6px; width: 22px; height: 22px; border-radius: 50%; background: var(--amarelo); color: var(--tinta); font-size: 12px; font-style: normal; display: grid; place-items: center; border: 2.5px solid var(--tinta); text-shadow: none; }

/* álbum */
.album-barra { margin-top: -6px; }
.album { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.figurinha { background: #fff; border: 3px solid var(--tinta); border-radius: 16px; padding: 8px 4px 6px; box-shadow: 3px 3px 0 var(--tinta); display: flex; flex-direction: column; align-items: center; line-height: 1.1; transition: transform .15s; }
.figurinha:active { transform: scale(.95); }
.figurinha:nth-child(4n+1) { background: #FFF3B0; } .figurinha:nth-child(4n+2) { background: #D7F0FF; } .figurinha:nth-child(4n+3) { background: #FFDDEB; } .figurinha:nth-child(4n) { background: #DDF5D8; }
.fig-img { width: 72px; height: 72px; border-radius: 50%; background: #fff; border: 2.5px solid var(--tinta); overflow: hidden; display: block; margin-bottom: 4px; }
.fig-img svg { width: 100%; height: 100%; }
.figurinha b { font-size: 13px; }
.figurinha small { font-size: 11px; opacity: .7; }
.figurinha.bloq { background: #ddd !important; }
.figurinha.bloq .fig-img svg { filter: brightness(0) opacity(.35); }
.modal { position: fixed; inset: 0; z-index: 200; background: rgba(42,30,59,.6); display: grid; place-items: center; padding: 20px; animation: aparecerFundo .3s; }
.modal-card { background: var(--papel); border: 4px solid var(--tinta); border-radius: 26px; box-shadow: 6px 6px 0 var(--tinta); padding: 16px 18px 18px; max-width: 380px; width: 100%; text-align: center; animation: entrar .4s cubic-bezier(.3,1.6,.6,1); }
.modal-fig { height: 200px; display: flex; justify-content: center; cursor: pointer; background: radial-gradient(circle, #FFF3B0 0 45%, transparent 46%); }
.modal-fig svg { height: 100%; width: auto; overflow: visible; }
.modal-card h2 { margin: 6px 0 2px; font-size: 26px; }
.modal-card p { margin: 0 0 8px; font-weight: 600; }
.modal-quip { background: #fff; border: 2.5px dashed var(--tinta); border-radius: 14px; padding: 4px 10px; font-weight: 800; margin-bottom: 12px; }

/* quiz extras */
.quiz-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.combo { background: var(--laranja); color: #fff; font-weight: 800; padding: 2px 10px; border-radius: 999px; border: 2.5px solid var(--tinta); animation: entrar .4s cubic-bezier(.3,1.6,.6,1), pulsar 1s ease-in-out infinite; text-shadow: 1px 1px 0 var(--tinta); }
.btn-mini.dica { margin: 0 0 0 auto; background: #FFF3B0; }
.opcao.cortada { opacity: .25; text-decoration: line-through; box-shadow: none; }
.quiz-host .narrador { margin-bottom: -6px; }
.quiz-host .lumi.pers { width: 76px; }
.resumo summary { font-weight: 800; cursor: pointer; }
.resumo p { margin: 8px 0 0; }
.fim-herois { display: flex; align-items: flex-end; gap: 6px; }
.fim-host { width: 110px; animation: comemora .7s ease-in-out infinite; }
.fim-host svg { width: 100%; height: auto; overflow: visible; }
.novas-figs { background: #fff; border: 3px solid var(--tinta); border-radius: 16px; padding: 8px 12px; box-shadow: 3px 3px 0 var(--tinta); }
.novas-figs div { display: flex; gap: 8px; justify-content: center; margin-top: 6px; flex-wrap: wrap; }
.mini-fig { width: 54px; height: 54px; border-radius: 50%; overflow: hidden; border: 2.5px solid var(--tinta); background: #FFF3B0; display: block; animation: estrela .6s .4s cubic-bezier(.3,1.8,.6,1) backwards; }
.mini-fig svg { width: 100%; height: 100%; }
.nav { grid-template-columns: repeat(5, 1fr); }
.nav button { font-size: 12px; }
@media (max-width: 420px) { .album { grid-template-columns: repeat(3, 1fr); } .fig-img { width: 60px; height: 60px; } .btn-ic { width: 44px; height: 46px; } }

/* tentativas e dicas */
.tent { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; background: #fff; border: 2.5px solid var(--tinta); border-radius: 999px; padding: 3px 12px; font-weight: 800; font-size: 14px; box-shadow: 2px 2px 0 var(--tinta); align-self: flex-start; }
.tent span { margin-right: 4px; }
.tent.dica { background: #FFF3B0; animation: entrar .4s cubic-bezier(.3,1.6,.6,1); }
.tent.revelar { background: #E2DCFF; }
.dica-txt { margin: 6px 0 4px; font-weight: 700; font-size: 15px; color: #8A5A00; background: #FFF3B0; border-radius: 10px; padding: 4px 10px; display: inline-block; }
.riscada { text-decoration: line-through; opacity: .4; box-shadow: none !important; }
.opcao.errado.riscada { background: #FFD0CE; }
.msg.revela { background: #E2DCFF; }
.cartao.revelado { background: #F0ECFF; }
.ordem li.travado { background: #E4F8E1; border: 3px solid var(--tinta); }
.par.dica-par { animation: alvoPulsa .8s ease-in-out infinite; box-shadow: 0 0 0 4px #FFE27A, 3px 3px 0 var(--tinta); }
.lista-rev { margin: 4px 0 12px; padding-left: 20px; font-weight: 600; }

/* =================== FUNDO ANIMADO (céu) =================== */
body { --c-nuvem: #fff; --c-morro1: #7ED36F; --c-morro2: #5DBB63; --c-copa: #4CAF50; }
#ceu { position: fixed; inset: 0; z-index: 0; overflow: hidden; pointer-events: none;
  background: linear-gradient(180deg, var(--c-ceu1) 0%, var(--c-ceu2) 62%, var(--c-ceu3) 100%); transition: background 1s; }
body.ceu-manha { --c-ceu1: #7FCBFF; --c-ceu2: #BDE6FF; --c-ceu3: #FFE7B8; }
body.ceu-dia   { --c-ceu1: #4FB6F5; --c-ceu2: #8ED8FF; --c-ceu3: #C9EEFF; }
body.ceu-tarde { --c-ceu1: #7B6CF6; --c-ceu2: #FF8FB1; --c-ceu3: #FFC27A; --c-nuvem: #FFE3EC; --c-morro1: #8BC34A; --c-morro2: #6A9F3E; --c-copa: #5E9B3A; }
body.ceu-noite { --c-ceu1: #1E1A4A; --c-ceu2: #3A3384; --c-ceu3: #5B4C9E; --c-nuvem: #C9C3F0; --c-morro1: #3E7A55; --c-morro2: #2F5E45; --c-copa: #2E6B3F; }
body.ceu-tarde, body.ceu-noite { --fundo: #3A3384; }

#ceu.pausado *, #ceu.pausado *::before, #ceu.pausado *::after { animation-play-state: paused !important; }

/* sol e lua */
.c-astro { position: absolute; top: 3%; right: max(4%, calc(50% - 400px)); width: clamp(84px, 16vw, 130px); aspect-ratio: 1; animation: c-flutua 6s ease-in-out infinite; }
.c-raios { transform-origin: 80px 80px; animation: c-gira 26s linear infinite; }
.ceu-noite .c-astro { width: clamp(70px, 13vw, 104px); }
.ceu-tarde .c-astro { top: auto; bottom: 120px; right: 10%; filter: saturate(1.2); }

/* estrelas */
.c-est { position: absolute; line-height: 0; animation: c-pisca 3s ease-in-out infinite; }
.ceu-dia .c-est, .ceu-manha .c-est { opacity: 0; animation-name: c-brilha-dia; }
.ceu-tarde .c-est { display: none; }
.c-cadente { position: absolute; top: 12%; left: 70%; width: 90px; height: 3px; border-radius: 3px;
  background: linear-gradient(90deg, #FFF3B0, transparent); transform: rotate(-24deg); opacity: 0; animation: c-cadente 9s ease-in 3s infinite; }

/* arco-íris discreto (só de dia) */
.c-arcoiris { display: none; }
.ceu-dia .c-arcoiris { display: block; position: absolute; left: -12vw; bottom: 60px; width: 60vw; max-width: 560px; aspect-ratio: 2/1; border-radius: 999px 999px 0 0; opacity: .28;
  background: radial-gradient(circle at 50% 100%, transparent 54%, #7B6CF6 54% 59%, #3FA7E0 59% 64%, #56C45A 64% 69%, #FFD23F 69% 74%, #FF8C42 74% 79%, #F0544F 79% 84%, transparent 84%);
  animation: c-arco 8s ease-in-out infinite; }

/* nuvens */
.c-nuvem { position: absolute; left: 0; line-height: 0; animation: c-passa 100s linear infinite; will-change: transform; }
.c-nuvem.c0 { opacity: .75; } .c-nuvem.c1 { opacity: .9; } .c-nuvem.c2 { opacity: 1; }
.ceu-noite .c-nuvem { opacity: .45; }
.c-boia { animation: c-flutua 5s ease-in-out infinite; }

/* passarinhos */
.c-bando { position: absolute; left: 0; animation: c-voa 34s linear infinite; }
.c-bando span { position: absolute; transform: translate(var(--dx), var(--dy)); line-height: 0; }
.c-asa { animation: c-bate .45s ease-in-out infinite alternate; transform-origin: 20px 12px; }
.c-bando span:nth-child(2) .c-asa { animation-delay: .15s; } .c-bando span:nth-child(3) .c-asa { animation-delay: .3s; }

/* vagalumes */
.c-vaga { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: #FFF59A; box-shadow: 0 0 10px 4px rgba(255,240,120,.7); animation: c-vaga 8s ease-in-out infinite; }

/* brilhos subindo */
.c-bri { position: absolute; bottom: -20px; width: 14px; height: 14px; transform: scale(var(--s)); animation: c-sobe 14s linear infinite; opacity: 0; }
.c-bri::before, .c-bri::after { content: ""; position: absolute; left: 50%; top: 50%; background: #fff; border-radius: 2px; }
.c-bri::before { width: 3px; height: 14px; margin: -7px 0 0 -1.5px; }
.c-bri::after { width: 14px; height: 3px; margin: -1.5px 0 0 -7px; }
.ceu-noite .c-bri::before, .ceu-noite .c-bri::after { background: #FFF3B0; }

/* morros, ovelhas, árvores e flores */
.c-morros { position: absolute; left: 0; right: 0; bottom: 0; aspect-ratio: 1200 / 220; min-height: 150px; }
.c-ovelha { animation: c-pula 2.8s ease-in-out infinite; }
.c-copa { transform-box: fill-box; transform-origin: 50% 100%; animation: c-balanca 4s ease-in-out infinite; }
.c-flor { transform-box: fill-box; transform-origin: 50% 100%; animation: c-balanca 3s ease-in-out infinite; }

/* estrelinhas do toque */
.c-faisca { position: fixed; z-index: 50; pointer-events: none; line-height: 0; margin: -9px 0 0 -9px; animation: c-faisca .85s cubic-bezier(.2,.8,.3,1) forwards; }

@keyframes c-passa { from { transform: translateX(-260px); } to { transform: translateX(calc(100vw + 40px)); } }
@keyframes c-voa { from { transform: translate(-120px, 0); } 50% { transform: translate(50vw, -30px); } to { transform: translate(calc(100vw + 60px), 10px); } }
@keyframes c-flutua { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes c-gira { to { transform: rotate(360deg); } }
@keyframes c-pisca { 0%,100% { opacity: .35; transform: scale(.75) rotate(0); } 50% { opacity: 1; transform: scale(1.1) rotate(15deg); } }
@keyframes c-brilha-dia { 0%,70%,100% { opacity: 0; transform: scale(.4); } 82% { opacity: .9; transform: scale(1.1) rotate(30deg); } }
@keyframes c-cadente { 0% { opacity: 0; transform: translate(0,0) rotate(-24deg); } 3% { opacity: 1; } 12% { opacity: 0; transform: translate(-260px, 116px) rotate(-24deg); } 100% { opacity: 0; } }
@keyframes c-arco { 0%,100% { opacity: .22; } 50% { opacity: .36; } }
@keyframes c-bate { from { transform: scaleY(1); } to { transform: scaleY(-.6); } }
@keyframes c-vaga { 0%,100% { transform: translate(0,0); opacity: .2; } 25% { transform: translate(24px,-30px); opacity: 1; } 50% { transform: translate(-10px,-60px); opacity: .4; } 75% { transform: translate(-30px,-24px); opacity: 1; } }
@keyframes c-sobe { 0% { transform: translateY(0) scale(var(--s)) rotate(0); opacity: 0; } 10% { opacity: .8; } 80% { opacity: .5; } 100% { transform: translateY(-105vh) scale(var(--s)) rotate(180deg); opacity: 0; } }
@keyframes c-pula { 0%,60%,100% { transform: translateY(0); } 70% { transform: translateY(-9px); } 80% { transform: translateY(0); } 88% { transform: translateY(-4px); } }
@keyframes c-balanca { 0%,100% { transform: rotate(-4deg); } 50% { transform: rotate(4deg); } }
@keyframes c-faisca { 0% { transform: translate(0,0) scale(.3) rotate(0); opacity: 1; } 100% { transform: translate(var(--tx), var(--ty)) scale(1) rotate(var(--rot)); opacity: 0; } }

/* títulos soltos no fundo ficam legíveis em qualquer céu */
.sec-tit { color: #fff; -webkit-text-stroke: 1px var(--tinta); text-shadow: 2px 2px 0 var(--tinta); paint-order: stroke fill; }
.ceu-noite .ep-titulo small, .ceu-tarde .ep-titulo small { color: #fff; opacity: .9; }

@media (prefers-reduced-motion: reduce) {
  #ceu *, .c-faisca { animation: none !important; }
}

/* =================== ACESSO COMPLETO (lições pagas) =================== */
.faixa-premium { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #FFF3B0; cursor: pointer; font: inherit; color: inherit; animation: f-brilho 2.4s ease-in-out infinite; }
.faixa-premium b { display: block; font-size: 18px; line-height: 1.1; }
.faixa-premium small { font-weight: 700; opacity: .8; }
.fp-rostos { display: flex; flex: none; }
.fp-rostos i { width: 40px; height: 40px; border-radius: 50%; border: 2.5px solid var(--tinta); background: #fff; overflow: hidden; margin-left: -12px; }
.fp-rostos i:first-child { margin-left: 0; }
.fp-rostos i svg { width: 100%; height: 100%; }
.fp-seta { margin-left: auto; font-size: 26px; }
@keyframes f-brilho { 0%,100% { box-shadow: var(--sombra); } 50% { box-shadow: 4px 4px 0 var(--tinta), 0 0 0 6px rgba(255,210,63,.55); } }
.no.premium { cursor: pointer; }
.no.premium::after { content: "🔓 ACESSO COMPLETO"; position: absolute; top: -12px; right: 18px; background: #fff; border: 2.5px solid var(--tinta); font-size: 11px; font-weight: 800; padding: 1px 8px; border-radius: 999px; }
.lh-nota { display: block; margin-top: 8px; font-weight: 700; text-shadow: 1px 1px 0 var(--tinta); }
.licao-hoje .btn.amarelo { color: var(--tinta); }

/* =================== GALERIA DE HERÓIS =================== */
.herois-card { display: flex; align-items: center; gap: 12px; width: 100%; text-align: left; background: #E2DCFF; cursor: pointer; font: inherit; color: inherit; }
.herois-card b { display: block; font-size: 18px; }
.herois-card small { font-weight: 700; opacity: .8; }
.hc-rostos { display: flex; flex: none; }
.hc-rostos i { width: 38px; height: 38px; border-radius: 50%; border: 2.5px solid var(--tinta); background: #fff; overflow: hidden; margin-left: -12px; }
.hc-rostos i:first-child { margin-left: 0; }
.hc-rostos i svg { width: 100%; height: 100%; }
.h-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.h-card { display: flex; flex-direction: column; padding: 0; overflow: hidden; text-align: left; background: var(--papel); border: 3px solid var(--tinta); border-radius: 20px; box-shadow: var(--sombra); font: inherit; color: inherit; cursor: pointer; transition: transform .15s; animation: h-entra .5s cubic-bezier(.2,1.4,.4,1) calc(var(--i) * .08s) both; }
.h-card:hover { transform: translateY(-4px) rotate(-1deg); }
.h-card:active { transform: scale(.97); }
@keyframes h-entra { from { opacity: 0; transform: translateY(24px) scale(.9); } }
.h-cena { position: relative; display: block; aspect-ratio: 4/3; border-bottom: 3px solid var(--tinta); overflow: hidden; background: var(--cor); }
.h-cena > svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.h-pers { position: absolute; left: 50%; bottom: -4%; width: 52%; transform: translateX(-50%); }
.h-pers svg { width: 100%; height: auto; display: block; overflow: visible; }
.h-card:hover .h-pers svg { animation: h-pulo .5s; }
@keyframes h-pulo { 50% { transform: translateY(-10%); } }
.h-ok { position: absolute; top: 6px; right: 6px; width: 28px; height: 28px; border-radius: 50%; background: var(--verde); color: #fff; border: 2.5px solid var(--tinta); display: grid; place-items: center; font-style: normal; font-weight: 900; }
.h-info { display: flex; flex-direction: column; padding: 8px 10px 10px; line-height: 1.15; }
.h-info b { font-size: 18px; color: var(--tinta); }
.h-info small { font-weight: 800; font-size: 12px; color: var(--cor); filter: brightness(.75); }
.h-info em { font-style: normal; font-size: 13.5px; font-weight: 600; margin-top: 4px; opacity: .85; }
.h-topo { text-align: center; line-height: 1.1; margin-bottom: 10px; }
.h-topo span { display: inline-block; background: var(--cor); color: #fff; font-weight: 800; font-size: 12.5px; letter-spacing: .06em; padding: 2px 12px; border-radius: 999px; border: 2.5px solid var(--tinta); text-shadow: 1px 1px 0 var(--tinta); }
.h-topo b { display: block; font-size: 28px; margin-top: 4px; color: #fff; -webkit-text-stroke: 1.2px var(--tinta); text-shadow: 3px 3px 0 var(--tinta); paint-order: stroke fill; }
.h-topo small { font-weight: 800; color: #fff; text-shadow: 1px 1px 0 var(--tinta), -1px -1px 0 var(--tinta); font-size: 15px; }
.h-quiz { display: flex; flex-direction: column; gap: 12px; }
.h-fala { display: flex; align-items: flex-end; gap: 8px; }
.h-fala-pers { width: 92px; flex: none; }
.h-fala-pers svg { width: 100%; height: auto; display: block; overflow: visible; }
.h-fala-pers.comemora svg { animation: h-pulo .6s ease-in-out 3; }
.h-balao { position: relative; flex: 1; background: #fff; border: 3px solid var(--tinta); border-radius: 20px; padding: 10px 14px; box-shadow: var(--sombra); margin-bottom: 18px; }
.h-balao b { display: inline-block; background: var(--amarelo); border: 2px solid var(--tinta); border-radius: 8px; font-size: 12px; padding: 0 6px; }
.h-balao p { margin: 4px 0 0; font-weight: 700; font-size: 16.5px; }
.h-balao::before { content: ""; position: absolute; left: -13px; bottom: 16px; border: 10px solid transparent; border-right-color: var(--tinta); border-left: 0; }
.h-perg { margin: 0; font-size: 22px; line-height: 1.2; background: var(--papel); border: 3px solid var(--tinta); border-radius: 18px; padding: 12px 14px; box-shadow: var(--sombra); }
.h-ops { display: flex; flex-direction: column; gap: 8px; }
.h-op.cortada { opacity: .35; text-decoration: line-through; }
.h-op.errado { animation: tremer .4s; }
.h-tent { margin: 0; text-align: center; font-weight: 800; color: #fff; text-shadow: 1px 1px 0 var(--tinta), -1px -1px 0 var(--tinta), 1px -1px 0 var(--tinta), -1px 1px 0 var(--tinta); }
.h-fim { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.h-fim-pers { width: 140px; animation: h-pulo .8s ease-in-out infinite; }
.h-fim-pers svg { width: 100%; height: auto; overflow: visible; }
.h-fim h1 { margin: 0; font-size: 40px; color: var(--amarelo); -webkit-text-stroke: 2px var(--tinta); text-shadow: 4px 4px 0 var(--tinta); paint-order: stroke fill; transform: rotate(-2deg); }
.h-fim-txt { margin: 0; font-size: 18px; font-weight: 700; background: var(--papel); border: 3px solid var(--tinta); border-radius: 16px; padding: 8px 14px; }
.h-teaser { width: 100%; text-align: left; border-left: 10px solid var(--cor); display: flex; flex-direction: column; gap: 2px; }
.h-teaser small { font-weight: 800; letter-spacing: .06em; color: var(--cor); filter: brightness(.75); }
.h-teaser b { font-size: 19px; }
.h-teaser span { font-weight: 600; }
.h-fim .acoes { width: 100%; }
@media (min-width: 760px) { .h-grade { grid-template-columns: repeat(3, 1fr); } }
