@font-face { font-family: "Fredoka"; src: url("../fonts/Fredoka-Variable.ttf") format("truetype"); font-weight: 300 700; font-display: swap; }
@font-face { font-family: "Nunito"; src: url("../fonts/Nunito-Variable.ttf") format("truetype"); font-weight: 200 1000; font-display: swap; }

:root {
  --coral: #FF6B4A; --coral-forte: #CF4828; --coral-esc: #B03A1B; --coral-cl: #FFE3DA; --claro-fixo: #FFF6EC;
  --teal: #12464F; --teal-cl: #DCEBEA;
  --creme: #FFF6EC; --amarelo: #FFC23D; --amarelo-cl: #FFF0C7; --menta: #BFE8D6;
  --branco: #FFFFFF; --suave: #536366; --linha: rgba(18, 70, 79, .14);
  --amarelo-txt: #5C3D00; --teal-txt: #B9D3D2;
  --ok: #1E7A4E; --ok-esc: #145C3A; --ok-cl: #DDF3E6;
  --erro: #B3261E; --erro-esc: #8C1D18; --erro-cl: #FCE4E1;
  --sombra: 0 4px 16px rgba(18, 70, 79, .07);
  --base: 18px; --raio: 18px;
}
html.letra-grande { --base: 21px; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html, body { margin: 0; height: 100%; }
body { background: var(--creme); color: var(--teal); font: 500 var(--base)/1.45 "Nunito", system-ui, sans-serif; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, .fred { font-family: "Fredoka", system-ui, sans-serif; font-weight: 600; margin: 0; line-height: 1.15; }
h1 { font-size: 1.6em; } h2 { font-size: 1.25em; } h3 { font-size: 1.05em; }
p { margin: 0; }
a { color: inherit; }
button { font: inherit; color: inherit; cursor: pointer; }

.app { max-width: 480px; margin: 0 auto; min-height: 100%; display: flex; flex-direction: column; }
.vista { flex: 1; padding: 20px 18px 110px; outline: none; display: flex; flex-direction: column; gap: 16px; }
.app.sem-abas .vista { padding-bottom: 28px; }
.app.sem-abas .abas { display: none; }

.abas { position: fixed; bottom: 0; left: 50%; transform: translateX(-50%); width: 100%; max-width: 480px; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--branco); border-top: 1px solid var(--linha); padding: 6px 4px calc(8px + env(safe-area-inset-bottom)); z-index: 5; }
.abas a { text-decoration: none; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .78em; font-weight: 700; color: var(--suave); padding: 6px 0; border-radius: 12px; }
.abas a.ativa { color: var(--coral-esc); background: var(--coral-cl); }

.ico { width: 26px; height: 26px; display: inline-block; background: currentColor; -webkit-mask: var(--m) center / contain no-repeat; mask: var(--m) center / contain no-repeat; }
.ico-casa { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 11l9-7 9 7v9a1 1 0 0 1-1 1h-5v-6H9v6H4a1 1 0 0 1-1-1z'/%3E%3C/svg%3E"); }
.ico-camino { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='6' cy='19' r='2'/%3E%3Ccircle cx='18' cy='5' r='2'/%3E%3Cpath d='M12 19h4.5a3.5 3.5 0 0 0 0-7h-9a3.5 3.5 0 0 1 0-7H12'/%3E%3C/svg%3E"); }
.ico-micro { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Crect x='9' y='3' width='6' height='11' rx='3'/%3E%3Cpath d='M5 11a7 7 0 0 0 14 0M12 18v3'/%3E%3C/svg%3E"); }
.ico-barras { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M5 20V12M12 20V5M19 20v-9'/%3E%3C/svg%3E"); }
.ico-play { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M7 4.5v15l13-7.5z' fill='black'/%3E%3C/svg%3E"); }
.ico-pausa { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Crect x='6' y='4.5' width='4' height='15' rx='1' fill='black'/%3E%3Crect x='14' y='4.5' width='4' height='15' rx='1' fill='black'/%3E%3C/svg%3E"); }
.ico-som { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 9v6h4l5 4V5L8 9z'/%3E%3Cpath d='M16.5 8.5a5 5 0 0 1 0 7M19 6a8.5 8.5 0 0 1 0 12'/%3E%3C/svg%3E"); }
.ico-cadeado { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Crect x='5' y='11' width='14' height='10' rx='2'/%3E%3Cpath d='M8 11V8a4 4 0 0 1 8 0v3'/%3E%3C/svg%3E"); }
.ico-check { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E"); }
.ico-x { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M6 6l12 12M18 6L6 18'/%3E%3C/svg%3E"); }
.ico-fogo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3c1 4 6 6 6 11a6 6 0 0 1-12 0c0-3 2-4.5 2-7 2 1 3 2.5 3 4 1.5-2 1-5 1-8z'/%3E%3C/svg%3E"); }
.ico-copiar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='8' y='8' width='12' height='12' rx='2'/%3E%3Cpath d='M16 8V5a1 1 0 0 0-1-1H5a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3'/%3E%3C/svg%3E"); }
.ico-seta { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E"); }
.ico-voltar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M15 6l-6 6 6 6'/%3E%3C/svg%3E"); }

.topo { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.marca { height: 30px; }
.chip { white-space: nowrap; flex: none; display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 99px; background: var(--amarelo-cl); color: var(--amarelo-txt); font-weight: 800; font-size: .8em; }
.chip .ico { width: 18px; height: 18px; }
.sub { color: var(--suave); font-size: .9em; }
.rotulo { font-size: .78em; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--suave); }

.cartao { background: var(--branco); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.cartao.destaque { background: var(--teal); color: var(--claro-fixo); border: 0; }
.cartao.destaque .sub { color: var(--teal-txt); }
.cartao.coral { background: var(--coral-cl); border-color: transparent; }
.cartao.menta { background: var(--menta); border-color: transparent; }
.lista { display: flex; flex-direction: column; gap: 10px; }
.linha { display: flex; align-items: center; gap: 12px; background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 14px; text-decoration: none; width: 100%; text-align: left; }
.linha .txt { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.linha .txt b { font-weight: 800; }
.linha .ico-seta { width: 20px; height: 20px; color: var(--suave); }
.linha.bloq { background: transparent; border-style: dashed; color: var(--suave); }
.bolinha { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; flex: none; font-family: "Fredoka"; font-weight: 600; background: var(--teal-cl); color: var(--teal); }
.bolinha .ico { width: 22px; height: 22px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 16px; padding: 15px 20px; font-family: "Fredoka"; font-weight: 600; font-size: 1.05em; text-decoration: none; background: var(--coral-forte); color: var(--branco); width: 100%; min-height: 56px; }
.btn:active { transform: scale(.98); }
.btn:disabled { opacity: .4; }
.btn.sec { background: var(--branco); color: var(--teal); border: 1.5px solid var(--linha); }
.btn.teal { background: var(--teal); color: var(--claro-fixo); }
.btn.peq { width: auto; min-height: 44px; padding: 10px 16px; font-size: .9em; border-radius: 14px; }
.btn .ico { width: 22px; height: 22px; }
.fila { display: flex; gap: 10px; }
.fila > * { flex: 1; }

.lorito { display: block; margin: 0 auto; }
.ola { display: flex; align-items: flex-end; gap: 12px; }
.ola img { width: 92px; flex: none; }
.balao { background: var(--branco); border: 1px solid var(--linha); border-radius: 18px 18px 18px 4px; padding: 12px 14px; font-weight: 700; }

/* caminho */
.trilha { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; }
.dia { aspect-ratio: 1; border-radius: 14px; display: grid; place-items: center; font-family: "Fredoka"; font-weight: 600; font-size: 1.05em; border: 1.5px solid var(--linha); background: var(--branco); color: var(--suave); text-decoration: none; }
.dia.feito { background: var(--coral-forte); border-color: var(--coral-forte); color: var(--branco); }
.dia.atual { border: 3px solid var(--coral); color: var(--coral-esc); }
.dia.fecha { opacity: .55; }

/* lição */
.cab-licao { display: flex; align-items: center; gap: 10px; }
.cab-licao .fechar { width: 44px; height: 44px; border-radius: 14px; border: 1.5px solid var(--linha); background: var(--branco); display: grid; place-items: center; flex: none; }
.cab-licao .fechar .ico { width: 20px; height: 20px; }
.passos { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; }
.passo { text-align: center; font-size: .78em; font-weight: 800; padding: 8px 4px; border-radius: 12px; background: var(--branco); border: 1px solid var(--linha); color: var(--suave); }
.passo.on { background: var(--coral-forte); border-color: var(--coral-forte); color: var(--branco); }
.passo.ok { background: var(--teal-cl); color: var(--teal); }
.quadro { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--raio); background: var(--teal-cl); display: block; }
.texto { font-size: 1.22em; line-height: 1.7; font-weight: 600; }
.texto .p { padding: 2px 1px; border-radius: 6px; cursor: pointer; transition: background .12s; }
.texto .p.clave { text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: 3px; text-underline-offset: 5px; }
.texto .p.agora { background: var(--amarelo); color: var(--amarelo-txt); }
.texto .p.tocada { background: var(--coral-cl); }
.pagina-ind { display: flex; gap: 6px; justify-content: center; }
.pagina-ind i { width: 8px; height: 8px; border-radius: 9px; background: var(--linha); }
.pagina-ind i.on { background: var(--coral); width: 22px; }
.controle { display: flex; align-items: center; gap: 10px; }
.play { width: 64px; height: 64px; border-radius: 50%; border: 0; background: var(--coral-forte); color: var(--branco); display: grid; place-items: center; flex: none; }
.play .ico { width: 28px; height: 28px; }
.vel { display: flex; background: var(--branco); border: 1.5px solid var(--linha); border-radius: 14px; padding: 3px; flex: 1; }
.vel button { flex: 1; border: 0; background: transparent; border-radius: 11px; padding: 10px 4px; font-weight: 800; color: var(--suave); }
.vel button.on { background: var(--teal); color: var(--claro-fixo); }
.dica { text-align: center; font-size: .85em; color: var(--suave); }

.frase-en { font-family: "Fredoka"; font-weight: 600; font-size: 1.2em; }
.frase-es { color: var(--suave); }
.uso { font-size: .88em; background: var(--amarelo-cl); color: var(--amarelo-txt); padding: 8px 12px; border-radius: 12px; }

.gravar { width: 96px; height: 96px; border-radius: 50%; border: 0; background: var(--coral-forte); color: var(--branco); display: grid; place-items: center; margin: 4px auto; }
.gravar .ico { width: 40px; height: 40px; }
.gravar.rec { background: var(--erro); animation: pulso 1s infinite; }
@keyframes pulso { 50% { transform: scale(1.06); } }
.contagem { text-align: center; font-family: "Fredoka"; font-weight: 600; font-size: 1.1em; min-height: 1.4em; }

.fim { text-align: center; align-items: center; }
.fim img { width: 190px; }
.numeros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; width: 100%; }
.num { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 12px 6px; text-align: center; }
.num b { display: block; font-family: "Fredoka"; font-size: 1.6em; font-weight: 600; color: var(--coral-esc); }
.num span { font-size: .78em; color: var(--suave); font-weight: 700; }

.folha { position: fixed; inset: 0; background: rgba(18, 70, 79, .35); display: flex; align-items: flex-end; justify-content: center; z-index: 10; }
.folha[hidden] { display: none; }
.folha .caixa { background: var(--branco); width: 100%; max-width: 480px; border-radius: 24px 24px 0 0; padding: 22px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: sobe .2s ease-out; }
@keyframes sobe { from { transform: translateY(40px); opacity: 0; } }
.palavra-grande { font-family: "Fredoka"; font-weight: 600; font-size: 2em; }
.pron { color: var(--coral-esc); font-weight: 800; }
.aviso { font-size: .8em; color: var(--suave); text-align: center; }
.prompt { white-space: pre-wrap; font-size: .85em; background: var(--creme); border-radius: 12px; padding: 12px; border: 1px solid var(--linha); }
.ico-relogio { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='8.5'/%3E%3Cpath d='M12 7.5V12l3 2'/%3E%3C/svg%3E"); }
.quem { font-size: .78em; font-weight: 800; color: var(--coral-esc); text-transform: uppercase; letter-spacing: .05em; }
.dialogo.falando, .explica.falando { outline: 3px solid var(--amarelo); outline-offset: 2px; border-radius: 12px; }
.explica { margin: 0; padding: 4px 6px; }
.campo { width: 100%; min-height: 56px; border-radius: 16px; border: 1.5px solid var(--linha); padding: 12px 16px; font: inherit; background: var(--branco); color: var(--teal); }
.campo:focus { outline: 3px solid var(--coral-cl); border-color: var(--coral); }
.erro { color: var(--erro); font-weight: 700; font-size: .9em; min-height: 1.2em; }
.cert { width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--linha); }
.vocab { gap: 0; padding: 4px 16px; }
.voc { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); align-items: baseline; }
.voc:last-child { border-bottom: 0; }
.voc b { font-family: "Fredoka"; font-weight: 600; }
.voc span { color: var(--suave); }
.voc i { grid-column: 1 / -1; font-style: normal; font-size: .85em; color: var(--coral-esc); }
.exemplo { display: flex; flex-direction: column; padding: 6px 0 0; }
.errado-certo { display: flex; flex-direction: column; gap: 6px; }
.errado-certo span, .mal-linha { display: flex; align-items: center; gap: 8px; font-weight: 800; margin: 0; }
.errado-certo .ico, .mal-linha .ico { width: 18px; height: 18px; flex: none; }
.mal, .mal-linha { color: var(--erro); text-decoration: line-through; text-decoration-thickness: 2px; }
.mal-linha { text-decoration: none; font-weight: 600; }
.bien { color: var(--ok); }
.opcao { text-align: left; border: 1.5px solid var(--linha); background: var(--creme); border-radius: 14px; padding: 12px 14px; font-weight: 700; color: var(--teal); }
.opcao.certa { background: var(--ok-cl); border-color: var(--ok); color: var(--ok-esc); }
.opcao.errada { background: var(--erro-cl); border-color: var(--erro); color: var(--erro-esc); }
.porque { font-size: .9em; font-weight: 700; color: var(--suave); }
.uso-mini { font-size: .8em; color: var(--coral-esc); font-weight: 700; }
.passos-lista { margin: 0; padding-left: 1.2em; display: flex; flex-direction: column; gap: 6px; }
.resultado { width: 100%; text-align: left; background: var(--branco); border-radius: 14px; padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.resultado .nota { font-family: "Fredoka"; font-weight: 600; font-size: 1.8em; }
.nota.alta { color: var(--ok); } .nota.media { color: var(--amarelo-txt); } .nota.baixa { color: var(--erro); }
.certa { color: var(--ok); }
.resultado .errada { color: var(--erro); text-decoration: underline wavy; text-underline-offset: 4px; }
/* ---------- boas-vindas ---------- */
.bv { min-height: calc(100vh - 48px); display: flex; flex-direction: column; justify-content: center; gap: 18px; text-align: center; }
.bv h1 { font-size: 1.75em; }
.bv-txt { color: var(--suave); font-size: 1.05em; }
.bv-txt b { color: var(--teal); }
.bv-logo { height: 34px; margin: 0 auto; }
.bv-arte { position: relative; width: 240px; height: 240px; margin: 0 auto; }
.bv-arte.peq { width: 170px; height: 170px; }
.bv-arte img { position: relative; width: 100%; height: 100%; object-fit: contain; z-index: 1; }
.bolha { position: absolute; border-radius: 50%; }
.bolha.b1 { inset: 12% 8% 4% 8%; background: var(--menta); }
.bolha.b2 { width: 34%; height: 34%; right: -4%; top: 2%; background: var(--amarelo-cl); }
.bv-pontos { display: flex; gap: 6px; justify-content: center; }
.bv-pontos i { width: 8px; height: 8px; border-radius: 9px; background: var(--linha); }
.bv-pontos i.on { width: 24px; background: var(--coral); }
.bv-etapas { display: flex; flex-direction: column; gap: 10px; text-align: left; }
.bv-etapa { display: flex; align-items: center; gap: 14px; background: var(--branco); border-radius: 18px; padding: 14px; box-shadow: var(--sombra); }
.bv-etapa div { display: flex; flex-direction: column; }
.bv-etapa span:not(.bv-num) { color: var(--suave); font-size: .9em; }
.bv-num { width: 46px; height: 46px; border-radius: 15px; display: grid; place-items: center; background: var(--coral-cl); color: var(--coral-esc); flex: none; }
.bv-num .ico { width: 24px; height: 24px; }
.bv-fatos { display: flex; flex-direction: column; gap: 6px; font-weight: 800; font-size: .9em; }
.bv-fatos span { display: inline-flex; align-items: center; justify-content: center; gap: 6px; }
.bv-fatos .ico { width: 18px; height: 18px; color: var(--coral); }

/* ---------- Hoy ---------- */
.inicio-topo { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; padding-top: 4px; }
.ola-txt { font-family: "Fredoka"; font-weight: 600; font-size: 1.35em; line-height: 1.15; }
.ola-sub { color: var(--suave); margin-top: -6px; }
.heroi { position: relative; background: var(--teal); color: var(--claro-fixo); border-radius: 26px; overflow: hidden; box-shadow: 0 14px 30px rgba(18, 70, 79, .22); margin-top: 26px; }
.heroi-img { height: 150px; background: center / cover no-repeat var(--teal-cl); position: relative; }
.heroi-tag { position: absolute; left: 14px; top: 14px; background: var(--creme); color: var(--teal); font-weight: 800; font-size: .78em; padding: 6px 12px; border-radius: 99px; }
.heroi-tag.escura { position: static; align-self: flex-start; background: rgba(255, 246, 236, .14); color: var(--claro-fixo); }
.heroi-min { position: absolute; right: 14px; top: 14px; background: rgba(18, 70, 79, .78); color: var(--claro-fixo); font-weight: 800; font-size: .78em; padding: 6px 10px; border-radius: 99px; display: inline-flex; align-items: center; gap: 4px; }
.heroi-min .ico { width: 15px; height: 15px; }
.heroi-corpo { padding: 18px 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.heroi-nivel { font-size: .78em; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--amarelo); }
.heroi h2 { font-size: 1.5em; padding-right: 70px; }
.heroi-etapas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.heroi-etapas > span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: .78em; font-weight: 800; color: var(--teal-txt); background: rgba(255, 246, 236, .08); border-radius: 12px; padding: 8px 2px; }
.heroi-etapas .ico { width: 20px; height: 20px; color: var(--claro-fixo); }
.heroi-btn { margin-top: 4px; min-height: 60px; font-size: 1.1em; }
.heroi-aviso { display: flex; align-items: center; justify-content: center; gap: 8px; background: rgba(255, 246, 236, .1); border-radius: 16px; padding: 14px; font-weight: 800; }
.heroi-aviso .ico { width: 20px; height: 20px; }
.painel { display: flex; align-items: center; gap: 14px; background: var(--branco); border-radius: 22px; padding: 14px 16px; box-shadow: var(--sombra); }
.painel-anel { position: relative; width: 76px; height: 76px; flex: none; }
.anel { width: 100%; height: 100%; }
.anel circle { fill: none; stroke-width: 8; }
.anel-fundo { stroke: var(--teal-cl); }
.anel-cor { stroke: var(--coral); stroke-linecap: round; }
.anel-num { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; }
.anel-num b { font-family: "Fredoka"; font-size: 1.35em; }
.anel-num span { font-size: .74em; color: var(--suave); font-weight: 800; }
.painel-txt { flex: 1; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.painel-txt > span { color: var(--suave); font-size: .85em; }
.semana { display: grid; grid-template-columns: repeat(7, 1fr); gap: 3px; margin-top: 6px; }
.sem-dia { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .74em; font-weight: 800; color: var(--suave); }
.sem-dia i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: var(--creme); color: var(--suave); }
.sem-dia i .ico { width: 14px; height: 14px; }
.sem-dia.feito i { background: var(--coral-forte); color: var(--branco); }
.sem-dia.hoje i { outline: 2px solid var(--coral); outline-offset: 1px; }
.atalhos { display: grid; grid-auto-flow: column; grid-auto-columns: 46%; gap: 10px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -18px; padding: 2px 18px 8px; scrollbar-width: none; }
.atalhos::-webkit-scrollbar { display: none; }
.atalhos { cursor: grab; touch-action: pan-x pan-y; scroll-padding: 0 18px; }
.atalhos.arrastando { cursor: grabbing; scroll-snap-type: none; user-select: none; }
.atalhos.arrastando .atalho { pointer-events: none; }
.atalho img, .atalho .ico { -webkit-user-drag: none; }
.rotulo-fila { display: flex; align-items: center; justify-content: space-between; }
.setas { display: flex; gap: 8px; }
.seta-btn { width: 36px; height: 36px; border-radius: 50%; border: 1.5px solid var(--linha); background: var(--branco); display: grid; place-items: center; color: var(--teal); }
.seta-btn .ico { width: 18px; height: 18px; }
.seta-btn:active { transform: scale(.94); }
.atalhos-pontos { display: flex; justify-content: center; gap: 6px; margin-top: -6px; }
.atalhos-pontos i { width: 8px; height: 8px; border-radius: 9px; background: var(--linha); cursor: pointer; transition: width .2s; }
.atalhos-pontos i.on { width: 22px; background: var(--coral); }
.atalho { scroll-snap-align: start; border: 1px solid var(--linha); background: var(--branco); box-shadow: var(--sombra); border-radius: 20px; padding: 14px; text-decoration: none; text-align: left; display: flex; flex-direction: column; gap: 4px; min-height: 140px; color: var(--teal); }
.atalho b { font-family: "Fredoka"; font-weight: 600; line-height: 1.15; margin-top: auto; }
.atalho span:not(.atalho-ico) { font-size: .78em; color: var(--suave); font-weight: 700; }
.atalho-ico { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; background: var(--coral-cl); color: var(--coral-esc); flex: none; }
.atalho-ico .ico { width: 22px; height: 22px; }
.atalho.bloq { box-shadow: none; border-style: dashed; background: transparent; }
.atalho.bloq .atalho-ico { background: var(--teal-cl); color: var(--suave); }
/* ---------- gamificação adulta ---------- */
.ico-escudo { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M12 3l7.5 3v5.5c0 4.6-3.2 8.2-7.5 9.5-4.3-1.3-7.5-4.9-7.5-9.5V6z'/%3E%3Cpath d='M8.8 12.2l2.2 2.2 4.3-4.4' stroke-linecap='round'/%3E%3C/svg%3E"); }
.confete { position: fixed; inset: 0; pointer-events: none; z-index: 30; overflow: hidden; }
.confete i { position: absolute; top: -16px; width: 9px; height: 14px; border-radius: 2px; animation: cai linear forwards; }
@keyframes cai { to { transform: translateY(110vh) rotate(var(--r)); opacity: .9; } }
.toast { position: fixed; left: 50%; top: 14px; transform: translate(-50%, -140%); width: calc(100% - 28px); max-width: 452px; z-index: 31; display: flex; align-items: center; gap: 12px;
  background: var(--teal); color: var(--claro-fixo); border-radius: 18px; padding: 14px 16px; box-shadow: 0 12px 28px rgba(18, 70, 79, .3); transition: transform .35s cubic-bezier(.2, 1.3, .4, 1); font-size: .92em; }
.toast.on { transform: translate(-50%, 0); }
.toast-ico { width: 44px; height: 44px; border-radius: 14px; background: var(--amarelo); color: var(--amarelo-txt); display: grid; place-items: center; flex: none; }
.toast-ico .ico { width: 24px; height: 24px; }
.ex { gap: 10px; }
.ex-tit { font-family: "Fredoka"; font-weight: 600; font-size: 1.05em; }
.ligar { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ligar > div { display: flex; flex-direction: column; gap: 8px; }
.lig { border: 1.5px solid var(--linha); background: var(--creme); border-radius: 14px; padding: 12px 8px; font-weight: 800; color: var(--teal); min-height: 52px; transition: transform .1s; }
.lig.sel { border-color: var(--coral); background: var(--coral-cl); transform: scale(1.03); }
.lig.ok { background: var(--ok-cl); border-color: var(--ok); color: var(--ok-esc); opacity: .75; }
.lig.nao { background: var(--erro-cl); border-color: var(--erro); animation: treme .3s; }
@keyframes treme { 25% { transform: translateX(-4px); } 75% { transform: translateX(4px); } }
.montada { min-height: 58px; border-bottom: 2px dashed var(--linha); display: flex; flex-wrap: wrap; gap: 8px; padding: 6px 0 10px; }
.montada.certa { border-color: var(--ok); } .montada.errada { border-color: var(--erro); }
.banco { display: flex; flex-wrap: wrap; gap: 8px; min-height: 48px; }
.chip-pal { border: 1.5px solid var(--linha); border-bottom-width: 3px; background: var(--branco); border-radius: 12px; padding: 9px 13px; font-weight: 800; color: var(--teal); }
.chip-pal:disabled { opacity: .85; }
.barra-prog { height: 10px; border-radius: 9px; background: var(--teal-cl); overflow: hidden; }
.barra-prog i { display: block; height: 100%; background: var(--coral); border-radius: 9px; transition: width .4s; }
.logros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.logro { background: var(--branco); border: 1px solid var(--linha); border-radius: 16px; padding: 12px 6px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; opacity: .55; }
.logro.on { opacity: 1; box-shadow: 0 4px 14px rgba(18, 70, 79, .08); }
.logro b { font-size: .78em; line-height: 1.15; }
.logro > span:not(.logro-ico) { font-size: .74em; color: var(--suave); line-height: 1.2; }
.logro-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--teal-cl); color: var(--suave); }
.logro.on .logro-ico { background: var(--amarelo); color: var(--amarelo-txt); }
.logro-ico .ico { width: 22px; height: 22px; }
.aviso-card { display: flex; align-items: center; gap: 12px; border-radius: 20px; padding: 14px; text-decoration: none; color: var(--teal); font-size: .9em; background: var(--branco); border: 1px solid var(--linha); border-left: 4px solid var(--coral); }
.aviso-card > span:nth-child(2) { flex: 1; }
.aviso-card > .ico { width: 20px; height: 20px; color: var(--suave); }
.dia-livre { display: inline-flex; align-items: center; gap: 5px; font-size: .78em; font-weight: 800; color: var(--ok); margin-top: 6px; }
.dia-livre .ico { width: 15px; height: 15px; }
.cks { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.ck { border-radius: 16px; padding: 12px 8px; display: flex; flex-direction: column; align-items: center; gap: 2px; text-decoration: none; background: var(--branco); border: 1.5px dashed var(--linha); color: var(--suave); font-size: .85em; }
.ck .ico { width: 20px; height: 20px; }
.ck span { font-size: .8em; }
.ck.aberto { border: 2px solid var(--coral); color: var(--coral-esc); background: var(--coral-cl); }
.ck.feito { border-style: solid; background: var(--ok-cl); color: var(--ok-esc); }
.bv-motivos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.bv-motivo { border: 2px solid transparent; background: var(--branco); border-radius: 18px; padding: 16px 10px; display: flex; flex-direction: column; align-items: center; gap: 8px; box-shadow: var(--sombra); color: var(--teal); }
.bv-motivo.on { border-color: var(--coral); background: var(--coral-cl); }
.grande-num { font-family: "Fredoka"; font-weight: 600; font-size: 2.2em; color: var(--coral-esc); min-width: 76px; text-align: center; }
a.num { text-decoration: none; color: inherit; }
.pulsa { animation: pulso 1s 3; }
/* ---------- níveis, perfil e ranking ---------- */
.ico-trofeu { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M7 4h10v5a5 5 0 0 1-10 0z'/%3E%3Cpath d='M7 6H4a3 3 0 0 0 3 4M17 6h3a3 3 0 0 1-3 4M12 14v4M8 20h8'/%3E%3C/svg%3E"); }
.ico-camera { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 8h3l2-3h6l2 3h3v11H4z'/%3E%3Ccircle cx='12' cy='13' r='3.5'/%3E%3C/svg%3E"); }
.ico-editar { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 20h4L19 9l-4-4L4 16z'/%3E%3C/svg%3E"); }
.avatar { border-radius: 50%; object-fit: cover; display: inline-grid; place-items: center; color: #fff; font-family: "Fredoka"; font-weight: 600; flex: none; border: 2px solid var(--branco); box-shadow: 0 2px 8px rgba(18, 70, 79, .15); }
.xp-pop { position: fixed; left: 50%; bottom: 96px; transform: translateX(-50%); z-index: 32; background: var(--amarelo); color: var(--amarelo-txt); font-family: "Fredoka"; font-weight: 600;
  padding: 8px 16px; border-radius: 99px; box-shadow: 0 6px 16px rgba(18, 70, 79, .2); animation: xpsobe 1.3s ease-out forwards; pointer-events: none; }
@keyframes xpsobe { 0% { opacity: 0; transform: translate(-50%, 10px) scale(.8); } 20% { opacity: 1; transform: translate(-50%, 0) scale(1.08); } 80% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -28px); } }
.subiu { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.subiu img { width: 140px; }
.subiu-num { width: 76px; height: 76px; border-radius: 50%; background: var(--amarelo); color: var(--amarelo-txt); display: grid; place-items: center; font-family: "Fredoka"; font-weight: 600; font-size: 2.4em; box-shadow: 0 0 0 8px var(--amarelo-cl); }
.topo-av { flex: none; text-decoration: none; }
.topo-txt { flex: 1; min-width: 0; }
.inicio-topo { align-items: center; }
.nivel-linha { display: flex; align-items: center; gap: 12px; background: var(--branco); border-radius: 18px; padding: 10px 12px; text-decoration: none; color: var(--teal); box-shadow: var(--sombra); }
.nivel-badge { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex: none; background: var(--amarelo); color: var(--amarelo-txt); font-family: "Fredoka"; font-weight: 600; font-size: 1.5em; }
.nivel-badge.peq { width: 38px; height: 38px; border-radius: 12px; font-size: 1.1em; }
.nivel-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 5px; }
.nivel-rot { display: flex; justify-content: space-between; gap: 8px; font-size: .88em; }
.nivel-rot span { color: var(--suave); font-weight: 800; white-space: nowrap; }
.nivel-rot b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.barra-prog.fina { height: 7px; }
.nivel-rank { display: inline-flex; align-items: center; gap: 4px; font-weight: 800; font-size: .78em; color: var(--coral-esc); background: var(--coral-cl); border-radius: 99px; padding: 6px 10px; flex: none; }
.nivel-rank .ico { width: 16px; height: 16px; }
.perfil-topo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.perfil-foto { position: relative; cursor: pointer; }
.perfil-cam { position: absolute; right: -2px; bottom: 2px; width: 38px; height: 38px; border-radius: 50%; background: var(--coral-forte); color: var(--branco); display: grid; place-items: center; border: 3px solid var(--creme); }
.perfil-cam .ico { width: 18px; height: 18px; }
.link-sutil { background: none; border: 0; color: var(--suave); text-decoration: underline; font-weight: 700; font-size: .85em; }
.nivel-topo { display: flex; align-items: center; gap: 12px; }
.xp-linha b { color: var(--coral-esc); justify-self: end; }
.niveis { display: flex; flex-direction: column; gap: 6px; }
.nivel-item { display: flex; align-items: center; gap: 10px; background: var(--branco); border-radius: 14px; padding: 8px 12px; opacity: .55; }
.nivel-item.on { opacity: 1; }
.nivel-item b { flex: 1; font-size: .9em; }
.nivel-item span:last-child { font-size: .78em; color: var(--suave); font-weight: 800; }
.nivel-item:not(.on) .nivel-badge { background: var(--teal-cl); color: var(--suave); }
.minha-pos { display: flex; align-items: center; gap: 12px; background: var(--teal); color: var(--claro-fixo); border-radius: 20px; padding: 12px 14px; text-decoration: none; }
.minha-pos > div { flex: 1; display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.minha-pos span:not(.avatar) { font-size: .82em; color: var(--teal-txt); }
.minha-pos > .ico { width: 20px; height: 20px; }
.minha-pos .barra-prog { background: rgba(255, 246, 236, .18); }
.chip-link { text-decoration: none; background: var(--coral-cl); color: var(--coral-esc); }
.podio { display: grid; grid-template-columns: repeat(3, 1fr); align-items: end; gap: 8px; margin-top: 8px; }
.podio-col { display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; min-width: 0; }
.podio-col b { font-size: .82em; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podio-col > span:not(.avatar) { font-size: .78em; color: var(--suave); font-weight: 800; }
.podio-base { width: 100%; border-radius: 14px 14px 0 0; display: grid; place-items: center; font-family: "Fredoka"; font-weight: 600; font-size: 1.4em; color: var(--branco); }
.p1 .podio-base { height: 96px; background: var(--amarelo); color: var(--amarelo-txt); }
.p2 .podio-base { height: 72px; background: var(--teal); }
.p3 .podio-base { height: 56px; background: var(--teal-cl); color: var(--teal); }
.podio-col.eu .avatar { box-shadow: 0 0 0 3px var(--coral); }
.rank-lista { display: flex; flex-direction: column; gap: 6px; }
.rank-linha { display: flex; align-items: center; gap: 10px; background: var(--branco); border-radius: 16px; padding: 8px 12px; }
.rank-linha.eu { background: var(--coral-cl); outline: 2px solid var(--coral); }
.rank-pos { width: 24px; text-align: center; font-family: "Fredoka"; font-weight: 600; color: var(--suave); }
.rank-nome { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.rank-nome b { font-size: .9em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-nome span { font-size: .78em; color: var(--suave); font-weight: 700; }
.rank-xp { font-weight: 800; font-size: .85em; color: var(--coral-esc); }
/* ---------- placar da lição ---------- */
.faixa-livre { display: flex; align-items: center; gap: 8px; background: var(--amarelo-cl); color: var(--amarelo-txt); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: .82em; }
.faixa-livre .ico { width: 18px; height: 18px; }
.placar { display: flex; align-items: center; gap: 14px; width: 100%; background: var(--branco); border-radius: 20px; padding: 14px; box-shadow: 0 4px 16px rgba(18, 70, 79, .08); text-align: left; }
.placar-prec { width: 88px; height: 88px; border-radius: 50%; flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; background: var(--teal); color: var(--claro-fixo); }
.placar-prec b { font-family: "Fredoka"; font-size: 1.6em; line-height: 1; }
.placar-prec span { font-size: .74em; font-weight: 800; color: var(--teal-txt); }
.placar-linhas { flex: 1; display: flex; flex-direction: column; gap: 4px; font-size: .88em; }
.placar-linhas > div { display: flex; justify-content: space-between; gap: 8px; }
.placar-linhas b { color: var(--coral-esc); }
.placar-det span { font-size: .85em; color: var(--suave); }
.placar-total { border-top: 1px solid var(--linha); padding-top: 6px; font-weight: 800; }
.placar-total b { font-family: "Fredoka"; font-size: 1.2em; }
.placar-total.solo { display: flex; gap: 10px; align-items: center; justify-content: center; border: 0; background: var(--amarelo-cl); border-radius: 16px; padding: 10px 16px; }
/* ---------- módulos, prova e reforço ---------- */
.modulo { background: var(--branco); border-radius: 22px; padding: 14px; display: flex; flex-direction: column; gap: 12px; box-shadow: var(--sombra); }
.modulo.bloq { opacity: .6; }
.modulo.aprovado { outline: 2px solid var(--ok-cl); }
.modulo-cab { display: flex; align-items: center; gap: 12px; }
.modulo-cab > div { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.modulo-cab > div > span:not([class]) { font-size: .78em; color: var(--suave); }
.modulo-num { width: 40px; height: 40px; border-radius: 13px; display: grid; place-items: center; flex: none; background: var(--coral-forte); color: var(--branco); font-family: "Fredoka"; font-weight: 600; font-size: 1.15em; }
.modulo-num .ico { width: 20px; height: 20px; }
.modulo-prog { font-weight: 800; font-size: .8em; color: var(--suave); background: var(--creme); border-radius: 99px; padding: 4px 10px; flex: none; }
.modulo .trilha { grid-template-columns: repeat(6, 1fr); }
.prova-no { display: flex; align-items: center; gap: 10px; border-radius: 16px; padding: 12px; text-decoration: none; color: var(--suave); background: var(--creme); border: 1.5px dashed var(--linha); font-size: .85em; }
.prova-no > span { flex: 1; }
.prova-no > .ico:first-child { width: 26px; height: 26px; flex: none; }
.prova-no > .ico:last-child { width: 18px; height: 18px; }
.prova-no.aberta { border: 2px solid var(--amarelo); background: var(--amarelo-cl); color: var(--amarelo-txt); }
.prova-no.revisar { border: 2px solid var(--coral); background: var(--coral-cl); color: var(--coral-esc); }
.prova-no.ok { border-style: solid; border-color: var(--ok-cl); background: var(--ok-cl); color: var(--ok-esc); }
.faixa-prova { display: flex; align-items: center; gap: 8px; background: var(--amarelo-cl); color: var(--amarelo-txt); border-radius: 12px; padding: 8px 12px; font-weight: 800; font-size: .82em; }
.faixa-prova .ico { width: 18px; height: 18px; }
.reforco { display: flex; align-items: center; gap: 6px; font-size: .8em; font-weight: 800; color: var(--suave); }
.reforco i { width: 22px; height: 10px; border-radius: 6px; background: var(--teal-cl); }
.reforco i.on { background: var(--ok); }
.reforco span { margin-left: 6px; }
.placar-prec.grande { width: 120px; height: 120px; margin: 4px auto; }
.placar-prec.grande b { font-size: 2.2em; }
.placar-prec.baixo { background: var(--coral-forte); }
.placar-prec.baixo span { color: var(--coral-cl); }
.campo-ok { border-color: var(--ok); background: var(--ok-cl); }
.campo-erro { border-color: var(--erro); background: var(--erro-cl); }
.toggle { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.toggle input { width: 26px; height: 26px; accent-color: var(--coral); }
/* ---------- catálogo (Camino) ---------- */
.nv-princ { --nv: var(--coral); --nv-txt: var(--branco); --nv-cl: var(--coral-cl); --nv-esc: var(--coral-esc); }
.nv-inter { --nv: var(--teal); --nv-txt: var(--creme); --nv-cl: var(--teal-cl); --nv-esc: var(--teal); }
.nv-avanz { --nv: var(--amarelo); --nv-txt: var(--amarelo-txt); --nv-cl: var(--amarelo-cl); --nv-esc: var(--amarelo-txt); }
.modulo-num[class*="nv-"] { background: var(--nv); color: var(--nv-txt); }
.nivel-tag { align-self: flex-start; display: inline-block; font-size: .74em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; padding: 2px 8px; border-radius: 99px; margin-bottom: 3px; background: var(--nv-cl); color: var(--nv-esc); }
.nivel-tag.nv-inter { background: var(--teal); color: var(--claro-fixo); }
.modulo-cab .nivel-tag { font-size: .74em; color: var(--nv-esc); }
.modulo-cab .nivel-tag.nv-inter { color: var(--claro-fixo); }
.modulo.bloq-suave { box-shadow: none; border: 1.5px dashed var(--linha); background: transparent; }
.dia.prod { opacity: .45; border-style: dashed; }
.resumo-app { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.resumo-app span { background: var(--branco); border-radius: 14px; padding: 10px 6px; text-align: center; font-size: .78em; font-weight: 700; color: var(--suave); box-shadow: var(--sombra); line-height: 1.2; }
.resumo-app b { display: block; font-family: "Fredoka"; font-weight: 600; font-size: 1.6em; color: var(--teal); }
.folha-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; margin: 0 auto; background: var(--teal-cl); color: var(--teal); }
.folha-ico .ico { width: 28px; height: 28px; }
.folha-ico.grande { width: 84px; height: 84px; border-radius: 26px; background: var(--ok-cl); color: var(--ok); }
.folha-ico.grande .ico { width: 40px; height: 40px; }
/* ---------- gamificação: meta do dia, sequência de acertos, trilha, prática ---------- */
.ico-fone { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 15v-3a8 8 0 0 1 16 0v3'/%3E%3Cpath d='M4 15h3v5H5a1 1 0 0 1-1-1zM20 15h-3v5h2a1 1 0 0 0 1-1z'/%3E%3C/svg%3E"); }
.ico-cartas { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Crect x='8' y='3' width='12' height='16' rx='2'/%3E%3Cpath d='M5 7v12a2 2 0 0 0 2 2h9' stroke-linecap='round'/%3E%3C/svg%3E"); }
.meta-dia { background: var(--branco); border-radius: 20px; padding: 12px 14px; display: flex; flex-direction: column; gap: 10px; box-shadow: var(--sombra); }
.meta-dia.ok { outline: 2px solid var(--amarelo); background: var(--amarelo-cl); }
.meta-tit { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.meta-tit b { font-family: "Fredoka"; font-weight: 600; }
.meta-tit span { font-size: .78em; color: var(--suave); font-weight: 700; text-align: right; }
.meta-itens { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.meta-item { display: flex; align-items: center; gap: 8px; border: 1.5px dashed var(--linha); border-radius: 14px; padding: 10px 12px; text-decoration: none; font-weight: 800; font-size: .88em; color: var(--suave); }
.meta-item .ico { width: 20px; height: 20px; flex: none; color: var(--coral); }
.meta-item.ok { border-style: solid; border-color: transparent; background: var(--ok-cl); color: var(--ok-esc); }
.meta-item.ok .ico { color: var(--ok); }
.combo { margin-left: auto; display: inline-flex; align-items: center; gap: 3px; padding: 6px 10px; border-radius: 99px; background: var(--teal-cl); color: var(--suave); font-family: "Fredoka"; font-weight: 600; opacity: .35; transition: opacity .2s, background .2s; flex: none; }
.combo .ico { width: 18px; height: 18px; }
.combo.on { opacity: 1; background: var(--amarelo); color: var(--amarelo-txt); }
.combo.pula { animation: pula .45s cubic-bezier(.2, 1.6, .4, 1); }
@keyframes pula { 40% { transform: scale(1.3); } }
.resumo-app b small { font-size: .55em; color: var(--suave); font-weight: 600; }
.trilho { position: relative; display: flex; flex-direction: column; gap: 14px; padding-left: 26px; }
.trilho::before { content: ""; position: absolute; left: 13px; top: 18px; bottom: 30px; width: 4px; border-radius: 4px; background: repeating-linear-gradient(var(--teal-cl) 0 10px, transparent 10px 16px); }
.parada { position: relative; }
.parada-ponto { position: absolute; left: -33px; top: 14px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; font-family: "Fredoka"; font-weight: 600; background: var(--nv); color: var(--nv-txt); box-shadow: 0 0 0 4px var(--creme); z-index: 1; }
.parada-ponto .ico { width: 18px; height: 18px; }
.parada.ok .parada-ponto { background: var(--ok); color: var(--branco); }
.parada.aqui .modulo { outline: 2px solid var(--coral); }
.parada.aqui .parada-ponto { animation: pulso 1.6s infinite; }
.parada.futura .parada-ponto { background: var(--teal-cl); color: var(--suave); }
.aqui-tag { align-self: flex-start; display: inline-flex; align-items: center; gap: 4px; font-size: .78em; font-weight: 800; color: var(--coral-esc); margin-bottom: 4px; }
.aqui-tag .ico { width: 16px; height: 16px; }
.trilho-meta { display: flex; flex-direction: column; gap: 2px; padding: 6px 0 0; }
.trilho-meta b { font-family: "Fredoka"; font-weight: 600; font-size: 1.1em; }
.cat { background: var(--branco); border-radius: 20px; padding: 14px; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; box-shadow: var(--sombra); align-items: start; }
.cat > .btn, .cat > .fila { grid-column: 1 / -1; }
.cat > .btn.peq { width: 100%; }
.cat.bloq { box-shadow: none; border: 1.5px dashed var(--linha); background: transparent; }
.cat-ico { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--coral-cl); color: var(--coral-esc); }
.cat.bloq .cat-ico { background: var(--teal-cl); color: var(--suave); }
.cat-ico .ico { width: 24px; height: 24px; }
.cat-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.cat-txt b { font-family: "Fredoka"; font-weight: 600; font-size: 1.05em; }
.cat-tag { font-size: .78em; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--suave); }
.cat-qtd { font-size: .82em; font-weight: 800; color: var(--coral-esc); }
.cat.destaque { background: var(--teal); color: var(--claro-fixo); grid-template-columns: 1fr; }
.cat.destaque span { color: var(--teal-txt); font-size: .9em; }
.pratica-card { background: var(--teal); color: var(--claro-fixo); border-radius: 24px; padding: 18px; display: flex; flex-direction: column; gap: 10px; box-shadow: 0 14px 30px rgba(18, 70, 79, .22); }
.pratica-card .rotulo { color: var(--amarelo); }
.pratica-card .sub { color: var(--teal-txt); }
.pratica-topo { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.pill-ok { display: inline-flex; align-items: center; gap: 4px; background: var(--ok-cl); color: var(--ok-esc); font-weight: 800; font-size: .78em; padding: 4px 10px; border-radius: 99px; }
.pill-ok .ico { width: 14px; height: 14px; }
.pratica-xp { display: flex; flex-direction: column; gap: 4px; }
.pratica-xp .barra-prog { background: rgba(255, 246, 236, .18); }
.pratica-xp .barra-prog i { background: var(--amarelo); }
.pratica-xp span { font-size: .78em; font-weight: 700; color: var(--teal-txt); }
.ferrs { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ferr { position: relative; background: var(--branco); border-radius: 20px; padding: 14px; text-decoration: none; color: var(--teal); display: flex; flex-direction: column; gap: 4px; min-height: 132px; box-shadow: var(--sombra); }
.ferr b { font-family: "Fredoka"; font-weight: 600; margin-top: auto; line-height: 1.15; }
.ferr > span:not(.atalho-ico):not(.ferr-num) { font-size: .78em; color: var(--suave); font-weight: 700; }
.ferr:active { transform: scale(.98); }
.ferr-num { position: absolute; right: 12px; top: 12px; min-width: 26px; height: 26px; padding: 0 7px; border-radius: 99px; background: var(--coral-forte); color: var(--branco); font-weight: 800; font-size: .82em; display: grid; place-items: center; }
.historia { display: flex; align-items: center; gap: 12px; background: var(--branco); border-radius: 18px; padding: 10px; text-decoration: none; box-shadow: var(--sombra); }
.historia .txt { flex: 1; display: flex; flex-direction: column; }
.historia > .ico { width: 26px; height: 26px; color: var(--coral); margin-right: 6px; }
.historia-img { width: 64px; height: 64px; border-radius: 14px; background: center / cover var(--teal-cl); flex: none; }
.tarjeta { border: 0; background: none; padding: 0; perspective: 1000px; width: 100%; min-height: 240px; }
.tarjeta-in { position: relative; display: block; width: 100%; min-height: 240px; transition: transform .45s; transform-style: preserve-3d; }
.tarjeta.virada .tarjeta-in { transform: rotateY(180deg); }
.tarjeta-cara { position: absolute; inset: 0; backface-visibility: hidden; -webkit-backface-visibility: hidden; border-radius: 24px; background: var(--branco); box-shadow: 0 10px 28px rgba(18, 70, 79, .12); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; padding: 20px; }
.tarjeta-cara b { font-family: "Fredoka"; font-weight: 600; font-size: 2em; color: var(--teal); text-align: center; }
.tarjeta-cara.verso { transform: rotateY(180deg); background: var(--teal); }
.tarjeta-cara.verso b { color: var(--claro-fixo); }
.tarjeta-cara.verso .sub, .tarjeta-cara.verso .rotulo { color: var(--teal-txt); }
.dominio { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .82em; font-weight: 800; color: var(--suave); }
.dominio i { width: 22px; height: 10px; border-radius: 6px; background: var(--teal-cl); }
.dominio i.on { background: var(--ok); }
.dominio span { margin-left: 6px; }
.num b small { font-size: .55em; color: var(--suave); }

/* ---------- barra fixa de ação (lição e sessões) ---------- */
.ico-livro { --m: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2.2' stroke-linejoin='round'%3E%3Cpath d='M4 5.5A2.5 2.5 0 0 1 6.5 3H20v15H6.5A2.5 2.5 0 0 0 4 20.5z'/%3E%3Cpath d='M4 20.5A2.5 2.5 0 0 0 6.5 23H20v-5' stroke-linecap='round'/%3E%3C/svg%3E"); }
.vista:has(#barra) { padding-bottom: 190px; }
.barra-acao { position: fixed; left: 50%; bottom: 0; transform: translateX(-50%); width: 100%; max-width: 480px; z-index: 6; background: var(--creme); border-top: 1px solid var(--linha); padding: 14px 18px calc(16px + env(safe-area-inset-bottom)); transition: background .2s; }
.barra-in { display: flex; flex-direction: column; gap: 12px; }
.barra-msg { display: flex; align-items: center; gap: 12px; animation: sobe .2s ease-out; }
.barra-ico { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--branco); }
.barra-ico .ico { width: 24px; height: 24px; }
.barra-txt { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.barra-txt b { font-family: "Fredoka"; font-weight: 600; font-size: 1.12em; line-height: 1.2; }
.barra-txt span { font-size: .9em; }
.barra-acao.ok { background: var(--ok-cl); border-color: transparent; }
.barra-acao.ok b, .barra-acao.ok .barra-txt span, .barra-acao.ok .barra-ico { color: var(--ok-esc); }
.barra-acao.ok .btn { background: var(--ok); box-shadow: 0 3px 0 var(--ok-esc); }
.barra-acao.erro { background: var(--erro-cl); border-color: transparent; }
.barra-acao.erro b, .barra-acao.erro .barra-txt span, .barra-acao.erro .barra-ico { color: var(--erro-esc); }
.barra-acao.erro .btn { background: var(--erro); box-shadow: 0 3px 0 var(--erro-esc); }
.barra-acao.neutra { background: var(--teal-cl); border-color: transparent; }
.barra-acao.neutra .barra-ico { color: var(--teal); }
/* ---------- lição: uma barra de progresso no lugar das abas ---------- */
.cab-prog { align-items: center; }
.prog-licao { flex: 1; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.prog-licao .barra-prog { height: 12px; }
.prog-rot { display: flex; gap: 8px; align-items: baseline; font-size: .82em; min-width: 0; }
.prog-rot b { font-weight: 800; color: var(--coral-esc); flex: none; }
.prog-rot span { color: var(--suave); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
button.fechar { cursor: pointer; color: var(--teal); }
.tela-tit { margin-top: 4px; }
.link-sutil { cursor: pointer; }
/* ---------- opções que parecem tocáveis ---------- */
.opcao, .lig, .chip-pal { background: var(--branco); border: 2px solid var(--linha); border-bottom-width: 4px; }
.opcao { padding: 14px 16px; font-size: 1.02em; }
.opcao:active, .lig:active, .chip-pal:active { transform: translateY(2px); border-bottom-width: 2px; }
.opcao.sel { border-color: var(--teal); background: var(--teal-cl); }
.opcao.certa { border-color: var(--ok); }
.opcao.errada { border-color: var(--erro); }
/* ---------- botões com uma leve profundidade (sem o degrau 3D de jogo) ---------- */
.btn { box-shadow: 0 3px 0 var(--coral-esc); }
.btn:active { transform: translateY(2px); box-shadow: 0 1px 0 var(--coral-esc); }
.btn.sec { box-shadow: 0 2px 0 var(--linha); }
.btn.teal { box-shadow: 0 3px 0 #0A2B31; }
.btn:disabled { box-shadow: none; background: var(--teal-cl); color: var(--suave); opacity: 1; }
.btn.peq { box-shadow: 0 2px 0 var(--coral-esc); }
.btn.sec.peq { box-shadow: 0 2px 0 var(--linha); }
/* ---------- Camino: cabeçalho do módulo fixo, Guía e dias em círculo ---------- */
.parada .modulo-cab { position: sticky; top: 0; z-index: 2; background: var(--branco); margin: -14px -14px 0; padding: 14px; border-radius: 22px 22px 0 0; }
.modulo-lado { display: flex; flex-direction: column; align-items: flex-end; gap: 6px; flex: none; }
.guia-btn { display: inline-flex; align-items: center; gap: 4px; font-size: .78em; font-weight: 800; text-decoration: none; color: var(--teal); border: 1.5px solid var(--linha); border-bottom-width: 3px; border-radius: 12px; padding: 5px 9px; }
.guia-btn .ico { width: 16px; height: 16px; }
.modulo .trilha { grid-template-columns: repeat(5, 1fr); gap: 10px; justify-items: center; }
.dia { width: 52px; height: 52px; aspect-ratio: auto; border-radius: 50%; border: 2px solid var(--linha); border-bottom-width: 4px; cursor: pointer; font-size: 1.1em; }
.dia .ico { width: 22px; height: 22px; }
.dia.feito { border-color: var(--coral-esc); }
.dia.atual { background: var(--coral); color: var(--branco); border-color: var(--coral-esc); box-shadow: 0 0 0 5px var(--coral-cl); animation: pulso 1.8s infinite; }
.dia-info { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: .85em; color: var(--suave); font-weight: 700; }
.dia-info .ico { width: 16px; height: 16px; vertical-align: -3px; margin-right: 3px; }
.dia-info .nivel-tag { margin: 0; }
/* ---------- Guía do módulo ---------- */
.guia-topo { display: flex; flex-direction: column; gap: 4px; }
.balao-frase { display: flex; align-items: center; gap: 12px; text-align: left; width: 100%; background: var(--branco); border: 2px solid var(--linha); border-bottom-width: 4px; border-radius: 18px; padding: 12px 14px; color: var(--teal); cursor: pointer; }
.balao-frase > .ico { width: 24px; height: 24px; color: var(--coral); flex: none; }
.balao-frase span { display: flex; flex-direction: column; gap: 2px; }
.balao-frase b { font-family: "Fredoka"; font-weight: 600; }
.meta-tit span .ico { width: 14px; height: 14px; vertical-align: -2px; margin-right: 3px; }
#tema { margin-top: 6px; }
/* ---------- modo escuro (automático pelo celular, ou escolhido nos Ajustes) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-tema="claro"]) { --creme: #0F1B1E; --branco: #18282C; --teal: #E4ECEA; --teal-cl: #22393E; --suave: #9AACAE;
    --linha: rgba(228, 236, 234, .14); --coral-cl: #3B2520; --coral-esc: #FF8F74; --coral-forte: #FF7A5C; --amarelo-cl: #3A3118; --amarelo-txt: #F1CF73;
    --ok: #3FB27C; --ok-esc: #8BE0B2; --ok-cl: #173A2B; --erro: #E8655A; --erro-esc: #FFA197; --erro-cl: #3D1F1D; --menta: #1E3B33;
    --sombra: 0 4px 16px rgba(0, 0, 0, .3); }
:root:not([data-tema="claro"]) body { background: var(--creme); color: var(--teal); }
:root:not([data-tema="claro"]) .heroi, :root:not([data-tema="claro"]) .pratica-card, :root:not([data-tema="claro"]) .minha-pos, :root:not([data-tema="claro"]) .cat.destaque, :root:not([data-tema="claro"]) .toast, :root:not([data-tema="claro"]) .placar-prec, :root:not([data-tema="claro"]) .vel button.on, :root:not([data-tema="claro"]) .btn.teal, :root:not([data-tema="claro"]) .tarjeta-cara.verso, :root:not([data-tema="claro"]) .nivel-tag.nv-inter, :root:not([data-tema="claro"]) .modulo-num.nv-inter, :root:not([data-tema="claro"]) .parada-ponto.nv-inter { background: #1F4A52; color: #F2EDE4; }
:root:not([data-tema="claro"]) .subiu-num, :root:not([data-tema="claro"]) .nivel-badge, :root:not([data-tema="claro"]) .toast-ico, :root:not([data-tema="claro"]) .logro.on .logro-ico, :root:not([data-tema="claro"]) .xp-pop, :root:not([data-tema="claro"]) .combo.on, :root:not([data-tema="claro"]) .p1 .podio-base, :root:not([data-tema="claro"]) .texto .p.agora, :root:not([data-tema="claro"]) .modulo-num.nv-avanz, :root:not([data-tema="claro"]) .parada-ponto.nv-avanz { color: #3D2A00; }
:root:not([data-tema="claro"]) .btn, :root:not([data-tema="claro"]) .dia.feito, :root:not([data-tema="claro"]) .dia.atual, :root:not([data-tema="claro"]) .passo.on, :root:not([data-tema="claro"]) .parada.ok .parada-ponto, :root:not([data-tema="claro"]) .ferr-num, :root:not([data-tema="claro"]) .perfil-cam { color: #10201F; }
:root:not([data-tema="claro"]) .btn.sec { color: var(--teal); }
:root:not([data-tema="claro"]) .btn:disabled { color: var(--suave); }
:root:not([data-tema="claro"]) .btn.teal { box-shadow: 0 3px 0 #0A2226; }
:root:not([data-tema="claro"]) .abas { background: #132226; }
:root:not([data-tema="claro"]) .folha { background: rgba(0, 0, 0, .55); }
:root:not([data-tema="claro"]) .quadro, :root:not([data-tema="claro"]) .historia-img { filter: brightness(.92); }
:root:not([data-tema="claro"]) .barra-acao.ok .btn, :root:not([data-tema="claro"]) .barra-acao.erro .btn { color: #10201F; }
:root:not([data-tema="claro"]) .campo { color: var(--teal); }
}
:root[data-tema="oscuro"] { --creme: #0F1B1E; --branco: #18282C; --teal: #E4ECEA; --teal-cl: #22393E; --suave: #9AACAE;
    --linha: rgba(228, 236, 234, .14); --coral-cl: #3B2520; --coral-esc: #FF8F74; --coral-forte: #FF7A5C; --amarelo-cl: #3A3118; --amarelo-txt: #F1CF73;
    --ok: #3FB27C; --ok-esc: #8BE0B2; --ok-cl: #173A2B; --erro: #E8655A; --erro-esc: #FFA197; --erro-cl: #3D1F1D; --menta: #1E3B33;
    --sombra: 0 4px 16px rgba(0, 0, 0, .3); }
:root[data-tema="oscuro"] body { background: var(--creme); color: var(--teal); }
:root[data-tema="oscuro"] .heroi, :root[data-tema="oscuro"] .pratica-card, :root[data-tema="oscuro"] .minha-pos, :root[data-tema="oscuro"] .cat.destaque, :root[data-tema="oscuro"] .toast, :root[data-tema="oscuro"] .placar-prec, :root[data-tema="oscuro"] .vel button.on, :root[data-tema="oscuro"] .btn.teal, :root[data-tema="oscuro"] .tarjeta-cara.verso, :root[data-tema="oscuro"] .nivel-tag.nv-inter, :root[data-tema="oscuro"] .modulo-num.nv-inter, :root[data-tema="oscuro"] .parada-ponto.nv-inter { background: #1F4A52; color: #F2EDE4; }
:root[data-tema="oscuro"] .subiu-num, :root[data-tema="oscuro"] .nivel-badge, :root[data-tema="oscuro"] .toast-ico, :root[data-tema="oscuro"] .logro.on .logro-ico, :root[data-tema="oscuro"] .xp-pop, :root[data-tema="oscuro"] .combo.on, :root[data-tema="oscuro"] .p1 .podio-base, :root[data-tema="oscuro"] .texto .p.agora, :root[data-tema="oscuro"] .modulo-num.nv-avanz, :root[data-tema="oscuro"] .parada-ponto.nv-avanz { color: #3D2A00; }
:root[data-tema="oscuro"] .btn, :root[data-tema="oscuro"] .dia.feito, :root[data-tema="oscuro"] .dia.atual, :root[data-tema="oscuro"] .passo.on, :root[data-tema="oscuro"] .parada.ok .parada-ponto, :root[data-tema="oscuro"] .ferr-num, :root[data-tema="oscuro"] .perfil-cam { color: #10201F; }
:root[data-tema="oscuro"] .btn.sec { color: var(--teal); }
:root[data-tema="oscuro"] .btn:disabled { color: var(--suave); }
:root[data-tema="oscuro"] .btn.teal { box-shadow: 0 3px 0 #0A2226; }
:root[data-tema="oscuro"] .abas { background: #132226; }
:root[data-tema="oscuro"] .folha { background: rgba(0, 0, 0, .55); }
:root[data-tema="oscuro"] .quadro, :root[data-tema="oscuro"] .historia-img { filter: brightness(.92); }
:root[data-tema="oscuro"] .barra-acao.ok .btn, :root[data-tema="oscuro"] .barra-acao.erro .btn { color: #10201F; }
:root[data-tema="oscuro"] .campo { color: var(--teal); }

/* ---------- contraste (revisão de 2026-10-31): nada de texto apagado por opacidade ---------- */
.parada-ponto.nv-princ, .modulo-num.nv-princ { background: var(--coral-forte); }
.nv-princ { --nv: var(--coral-forte); }
.logro { opacity: 1; }
.logro:not(.on) { background: transparent; border-style: dashed; }
.logro:not(.on) b { color: var(--suave); }
.logro:not(.on) .logro-ico { background: var(--teal-cl); color: var(--suave); }
.nivel-item { opacity: 1; }
.nivel-item:not(.on) { background: transparent; border: 1.5px dashed var(--linha); }
.nivel-item:not(.on) b { color: var(--suave); }
.nivel-item:not(.on) .nivel-badge { background: var(--teal-cl); color: var(--teal); }
.dia.prod { opacity: 1; color: var(--suave); border-style: dashed; }
.atalho.bloq, .linha.bloq { opacity: 1; }
.prova-no { color: var(--teal); }
.prova-no b { color: var(--teal); }
.prova-no > .ico:first-child { color: var(--coral-esc); }
.heroi-etapas > span { color: var(--teal-txt); }
.heroi-etapas .ico { color: var(--claro-fixo); background: currentColor; }
.avatar { color: #fff; }
.dia.atual { background: var(--coral-forte); border-color: var(--coral-esc); }
.meta-item .ico, .balao-frase > .ico { color: var(--coral-esc); }
