/* =====================================================================
   English for All - estilos globais (complementam o Tailwind via CDN)
   Mobile-first: tudo e pensado para 360px de largura e toque.
   ===================================================================== */

:root {
  --efa-blue: #2563eb;
  --efa-blue-dark: #1e3a8a;
  --efa-yellow: #facc15;
  --efa-green: #22c55e;
  --efa-red: #ef4444;
  --touch: 48px; /* alvo minimo de toque */
}

html { -webkit-text-size-adjust: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }

/* Qualquer botao ou alvo interativo tem no minimo 48px e texto centralizado */
button, a.btn, [role="button"], input, select { min-height: var(--touch); }
a.btn, button.btn {
  display: inline-flex; align-items: center; justify-content: center;
  text-align: center; line-height: 1.15;
}
/* botoes que ja definem seu proprio layout (coluna, entre itens) mandam neles */
a.btn.flex, button.btn.flex, a.btn.flex-col, button.flex-col, a.btn.justify-between { display: flex; }

/* Animacao leve do logo da pagina Hello */
@keyframes efa-bounce {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
.logo-bounce { animation: efa-bounce 2.4s ease-in-out infinite; }

/* Respeita quem desativou animacoes no sistema */
@media (prefers-reduced-motion: reduce) {
  .logo-bounce { animation: none; }
}

/* =====================================================================
   Mascotes (public/js/characters.js)
   Estado = classe no .efa-char: is-normal | is-celebrate | is-think
   ===================================================================== */
.efa-char { display: inline-block; position: relative; user-select: none; -webkit-user-select: none; }
.efa-char svg { width: 100%; height: 100%; overflow: visible; }
.efa-char .char-body { transform-origin: 100px 190px; transition: transform .35s ease; }

/* partes que mudam com o estado */
.efa-char .char-wing, .efa-char .char-arm, .efa-char .char-pupils, .efa-char .char-antennae {
  transition: transform .35s ease;
}
.efa-char .char-wing-left  { transform-origin: 52px 96px; }
.efa-char .char-wing-right { transform-origin: 148px 96px; }
.efa-char-nina .char-wing-left  { transform-origin: 96px 110px; }
.efa-char-nina .char-wing-right { transform-origin: 104px 110px; }
.efa-char .char-arm-left  { transform-origin: 72px 104px; }
.efa-char .char-arm-right { transform-origin: 128px 104px; }
.efa-char .char-antennae  { transform-origin: 100px 70px; }

/* ocultos por padrao */
.efa-char .char-sparkles, .efa-char .char-happy-eyes, .efa-char .char-dots, .efa-char .char-brow {
  opacity: 0; transition: opacity .25s ease;
}

/* --- respiracao suave no estado normal --- */
@keyframes efa-breathe { 0%,100% { transform: scaleY(1); } 50% { transform: scaleY(1.025); } }
.efa-char.is-normal .char-body { animation: efa-breathe 3.2s ease-in-out infinite; }
/* borboleta bate asas devagar sempre */
@keyframes efa-flap-slow { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.8); } }
.efa-char-nina.is-normal .char-wing { animation: efa-flap-slow 2.4s ease-in-out infinite; }

/* --- COMEMORANDO --- */
@keyframes efa-jump {
  0%,100% { transform: translateY(0) rotate(0); }
  30%     { transform: translateY(-18px) rotate(-4deg); }
  60%     { transform: translateY(0) rotate(0); }
  80%     { transform: translateY(-8px) rotate(3deg); }
}
@keyframes efa-twinkle { 0%,100% { opacity: 1; transform: scale(1); } 50% { opacity: .4; transform: scale(.7); } }
@keyframes efa-flap-fast { 0%,100% { transform: scaleX(1); } 50% { transform: scaleX(.55); } }
.efa-char.is-celebrate .char-body { animation: efa-jump .9s ease-in-out infinite; }
.efa-char.is-celebrate .char-sparkles { opacity: 1; animation: efa-twinkle .6s ease-in-out infinite; transform-origin: center; }
.efa-char.is-celebrate .char-happy-eyes { opacity: 1; }
.efa-char.is-celebrate .char-pupils { opacity: 0; }
.efa-char.is-celebrate .char-wing-left  { transform: rotate(-60deg) translateY(-10px); }
.efa-char.is-celebrate .char-wing-right { transform: rotate(60deg) translateY(-10px); }
.efa-char-nina.is-celebrate .char-wing-left,
.efa-char-nina.is-celebrate .char-wing-right { transform: none; animation: efa-flap-fast .35s ease-in-out infinite; }
.efa-char.is-celebrate .char-arm-left  { transform: rotate(-70deg); }
.efa-char.is-celebrate .char-arm-right { transform: rotate(70deg); }

/* --- PENSANDO --- */
@keyframes efa-dots { 0% { opacity: .2; } 50% { opacity: 1; } 100% { opacity: .2; } }
@keyframes efa-tilt { 0%,100% { transform: rotate(-5deg); } 50% { transform: rotate(-7deg); } }
.efa-char.is-think .char-body { animation: efa-tilt 2s ease-in-out infinite; }
.efa-char.is-think .char-dots { opacity: 1; animation: efa-dots 1.2s ease-in-out infinite; }
.efa-char.is-think .char-pupils { transform: translate(5px, -6px); }
.efa-char.is-think .char-brow { opacity: 1; }
/* Ollie leva a asa direita ao bico; Snowy leva o galho ao queixo */
.efa-char-ollie.is-think .char-wing-right { transform: rotate(-75deg) translate(-30px, -15px); }
.efa-char-snowy.is-think .char-arm-right  { transform: rotate(-95deg) translate(-10px, -6px); }
.efa-char-nina.is-think .char-antennae    { transform: rotate(12deg); }

@media (prefers-reduced-motion: reduce) {
  .efa-char * { animation: none !important; transition: none !important; }
}

/* =====================================================================
   Baloes de fala
   ===================================================================== */
.efa-bubble {
  position: relative;
  background: #fff;
  color: #1f2937;
  border-radius: 18px;
  padding: 12px 16px 14px;
  box-shadow: 0 4px 14px rgba(0,0,0,.12);
  font-size: 1.05rem;
  line-height: 1.45;
  min-height: 56px;
  max-width: 100%;
  border: 3px solid var(--bubble-color, #1e3a8a);
}
.efa-bubble-ollie { --bubble-color: #1e3a8a; }
.efa-bubble-nina  { --bubble-color: #7c3aed; }
.efa-bubble-snowy { --bubble-color: #0369a1; }
.efa-bubble-who {
  display: block; font-size: .75rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .04em; color: var(--bubble-color); margin-bottom: 4px;
}
.efa-bubble-text b { color: var(--bubble-color); font-weight: 800; }
.efa-bubble-text i { font-style: italic; color: #374151; }
/* rabinho do balao */
.efa-bubble::after {
  content: ""; position: absolute; top: 24px; width: 0; height: 0;
  border: 12px solid transparent;
}
.efa-bubble-left::after  { left: -24px; border-right-color: var(--bubble-color); }
.efa-bubble-right::after { right: -24px; border-left-color: var(--bubble-color); }
/* cursor piscando enquanto digita */
@keyframes efa-caret { 0%,100% { opacity: 1; } 50% { opacity: 0; } }
.efa-bubble.is-typing .efa-bubble-text::after {
  content: "▍"; color: var(--bubble-color); animation: efa-caret .7s step-end infinite; margin-left: 1px;
}

/* figuras do vocabulario */
.efa-icon { display: inline-flex; align-items: center; justify-content: center; vertical-align: middle; }
.efa-icon-svg { width: 100%; height: 100%; display: block; }

/* =====================================================================
   Telas, toasts e confete
   ===================================================================== */
@keyframes efa-screen-in { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.efa-screen-in { animation: efa-screen-in .3s ease both; }
.efa-toast { transition: opacity .3s, transform .3s; }
.efa-toast.is-out { opacity: 0; transform: translateY(10px); }

.efa-confetti { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 5; }
.efa-confetti i { position: absolute; top: -20px; display: block; border-radius: 2px; animation: efa-fall linear forwards; opacity: .95; }
@keyframes efa-fall {
  0%   { transform: translateY(0) rotate(0deg); }
  100% { transform: translateY(110vh) rotate(720deg); opacity: .6; }
}

/* =====================================================================
   Exercicios (public/js/exercises.js)
   ===================================================================== */
.efa-exercise { color: #fff; }
.efa-prompt-pt { font-style: italic; }
.efa-blank {
  display: inline-block; min-width: 4ch; padding: 0 .35em; margin: 0 .15em;
  border-bottom: 3px dashed rgba(255,255,255,.8); color: #fde68a; font-weight: 800;
}
.efa-blank.is-filled { border-bottom-style: solid; background: rgba(255,255,255,.15); border-radius: 6px; }

/* blocos de alternativa */
.efa-opt {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  min-height: 96px; padding: 12px 10px; border-radius: 16px; color: #fff; font-weight: 800;
  font-size: 1.1rem; line-height: 1.2; text-align: center; box-shadow: 0 4px 0 rgba(0,0,0,.25);
  transition: transform .08s, filter .2s, opacity .2s; -webkit-tap-highlight-color: transparent;
}
.efa-opt:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.efa-opt-shape { width: 22px; height: 22px; opacity: .9; }
.efa-opt-tall { min-height: 140px; font-size: 1.4rem; }
.efa-opt-icon { font-size: 2.6rem; line-height: 1; }
.is-locked .efa-opt { opacity: .55; }
.is-locked .efa-opt.is-chosen { opacity: 1; outline: 4px solid #fff; }
.efa-opt.is-right { opacity: 1 !important; outline: 4px solid #fff; animation: efa-pulse .5s 2; }
.efa-opt.is-wrong { opacity: .5 !important; filter: grayscale(.6); }
@keyframes efa-pulse { 50% { transform: scale(1.04); } }

/* fichas (palavras) */
.efa-chip {
  display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 16px;
  border-radius: 999px; background: #fff; color: #1e3a8a; font-weight: 800; font-size: 1.05rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.2); touch-action: none; user-select: none; -webkit-user-select: none;
  transition: transform .08s, background .2s;
}
.efa-chip:active { transform: translateY(2px); }
.efa-chip.is-selected { background: #fde68a; outline: 3px solid #f59e0b; }
.efa-chip.is-dragging { opacity: .35; }
.efa-ghost { position: fixed; left: 0; top: 0; z-index: 60; pointer-events: none; transform: translate(-100px,-100px); box-shadow: 0 10px 24px rgba(0,0,0,.35); }
.efa-bank { min-height: 56px; padding: 6px; border-radius: 16px; background: rgba(255,255,255,.12); }

/* linha da frase (ordenar) */
.efa-line {
  display: flex; flex-wrap: wrap; gap: 8px; min-height: 64px; padding: 8px; border-radius: 16px;
  background: rgba(255,255,255,.18); border: 3px dashed rgba(255,255,255,.6);
}
.efa-line.is-empty::before { content: "toque nas palavras na ordem certa"; opacity: .7; font-size: .9rem; align-self: center; padding-left: 6px; }
.efa-line .efa-chip { background: #fde68a; }

/* zonas do ligar */
.efa-zone {
  display: flex; flex-direction: column; align-items: center; gap: 6px; min-height: 120px; padding: 10px 8px;
  border-radius: 16px; background: rgba(255,255,255,.16); border: 3px dashed rgba(255,255,255,.6); text-align: center;
  font-weight: 700; font-size: .95rem; line-height: 1.2; transition: background .15s, transform .15s;
}
.efa-zone.is-over { background: rgba(253,230,138,.45); transform: scale(1.03); border-style: solid; }
.efa-zone.is-filled { border-style: solid; background: rgba(255,255,255,.26); }
.efa-zone-label { flex: 1; display: flex; align-items: center; justify-content: center; }
.efa-zone-slot { min-height: 48px; width: 100%; display: flex; justify-content: center; }
.efa-zone-slot .efa-chip { background: #bbf7d0; color: #14532d; }

/* botoes */
.efa-confirm {
  min-height: 56px; padding: 0 28px; border-radius: 999px; background: #facc15; color: #1e3a8a;
  font-weight: 900; font-size: 1.15rem; box-shadow: 0 4px 0 #ca8a04; transition: transform .08s, opacity .2s;
}
.efa-confirm:active { transform: translateY(3px); box-shadow: 0 1px 0 #ca8a04; }
.efa-confirm:disabled { opacity: .45; }
.efa-bigspeak {
  display: inline-flex; align-items: center; gap: 5px; min-height: 52px; padding: 0 13px; border-radius: 999px;
  background: #fff; color: #1e3a8a; font-weight: 800; font-size: 1.1rem; box-shadow: 0 4px 0 rgba(0,0,0,.2);
}
.efa-bigspeak span { font-size: .9rem; }
.efa-bigspeak:active { transform: translateY(2px); }
.efa-bigspeak.is-slow { background: #dcfce7; color: #14532d; }
.efa-bigspeak.is-spell { background: #fef3c7; color: #78350f; }
.efa-bigspeak.is-demo { background: #ede9fe; color: #4c1d95; }
.efa-bigspeak[hidden] { display: none; }

/* ditado */
.efa-spell-input {
  width: 100%; min-height: 64px; border-radius: 16px; border: 3px solid #fff; background: rgba(255,255,255,.95);
  color: #1e3a8a; font-size: 1.8rem; font-weight: 800; text-align: center; letter-spacing: .08em; padding: 8px 12px;
}
.efa-spell-input:focus { outline: 4px solid #facc15; }
.efa-spell-feedback { background: rgba(255,255,255,.12); border-radius: 14px; padding: 10px 12px; }
.efa-spell-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.efa-spell-label { font-size: .75rem; text-transform: uppercase; letter-spacing: .05em; opacity: .8; min-width: 96px; }
.efa-letters { display: flex; flex-wrap: wrap; gap: 4px; }
.efa-letter {
  display: inline-flex; align-items: center; justify-content: center; min-width: 30px; height: 36px; padding: 0 4px;
  border-radius: 8px; font-weight: 900; font-size: 1.25rem; font-family: ui-monospace, monospace;
}
.efa-letter.is-ok { background: #22c55e; color: #fff; }
.efa-letter.is-bad { background: #ef4444; color: #fff; text-decoration: line-through; }
.efa-letter.is-missing { background: #fff; color: #b91c1c; border: 2px solid #ef4444; }

/* feedback */
.efa-feedback-card { color: #1f2937; }
.efa-feedback-card .efa-spell-feedback { background: #f1f5f9; }

/* =====================================================================
   Quiz: timer circular, placar, fundos, podio
   ===================================================================== */
.efa-timer { position: relative; width: 72px; height: 72px; }
.efa-timer svg { transform: rotate(-90deg); width: 100%; height: 100%; }
.efa-timer circle { fill: none; stroke-width: 7; stroke-linecap: round; }
.efa-timer .track { stroke: rgba(255,255,255,.25); }
.efa-timer .bar { stroke: #22c55e; transition: stroke .3s; }
.efa-timer.is-warn .bar { stroke: #facc15; }
.efa-timer.is-danger .bar { stroke: #ef4444; }
.efa-timer .num {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  font-weight: 900; font-size: 1.35rem; color: #fff;
}
.efa-timer.is-danger .num { animation: efa-pulse .5s infinite; }

.efa-streak { transition: transform .2s; }
.efa-streak.is-bump { animation: efa-bump .4s; }
@keyframes efa-bump { 30% { transform: scale(1.4) rotate(-8deg); } }

/* fundos por questao */
.efa-bg-0 { background: linear-gradient(160deg, #1d4ed8, #3b82f6); }
.efa-bg-1 { background: linear-gradient(160deg, #7e22ce, #a855f7); }
.efa-bg-2 { background: linear-gradient(160deg, #0f766e, #14b8a6); }
.efa-bg-3 { background: linear-gradient(160deg, #be123c, #f43f5e); }
.efa-bg-4 { background: linear-gradient(160deg, #c2410c, #f97316); }
.efa-bg-5 { background: linear-gradient(160deg, #15803d, #22c55e); }
.efa-bg-6 { background: linear-gradient(160deg, #4338ca, #6366f1); }
.efa-bg-7 { background: linear-gradient(160deg, #0369a1, #0ea5e9); }
.efa-bg-ok { background: linear-gradient(160deg, #15803d, #22c55e); }
.efa-bg-bad { background: linear-gradient(160deg, #b91c1c, #ef4444); }
.efa-bg-neutral { background: linear-gradient(160deg, #1e3a8a, #2563eb); }
.efa-bg-transition { transition: background .4s; }

/* pontos voando */
@keyframes efa-points { 0% { opacity: 0; transform: translateY(10px) scale(.8); } 30% { opacity: 1; transform: translateY(-6px) scale(1.15); } 100% { opacity: 1; transform: none; } }
.efa-points { animation: efa-points .6s ease both; }

/* podio */
.efa-podium { display: flex; align-items: flex-end; justify-content: center; gap: 8px; height: 190px; }
.efa-podium-step {
  width: 84px; border-radius: 12px 12px 0 0; display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  color: #1e3a8a; font-weight: 900; animation: efa-rise .8s ease both; transform-origin: bottom;
}
.efa-podium-step .who { margin-bottom: 6px; font-size: 2rem; line-height: 1; }
.efa-podium-step .who small { display: block; font-size: .7rem; color: #fff; text-shadow: 0 1px 2px rgba(0,0,0,.4); margin-top: 2px; }
.efa-podium-step .rank { padding: 8px 0 10px; width: 100%; text-align: center; border-radius: 12px 12px 0 0; font-size: 1.4rem; }
.efa-podium-1 { height: 150px; } .efa-podium-1 .rank { background: #facc15; }
.efa-podium-2 { height: 112px; animation-delay: .15s; } .efa-podium-2 .rank { background: #cbd5e1; }
.efa-podium-3 { height: 90px; animation-delay: .3s; } .efa-podium-3 .rank { background: #d97706; color: #fff; }
@keyframes efa-rise { from { transform: scaleY(0); opacity: 0; } to { transform: scaleY(1); opacity: 1; } }

.efa-bar { height: 12px; border-radius: 999px; background: #e2e8f0; overflow: hidden; }
.efa-bar > i { display: block; height: 100%; border-radius: 999px; background: #2563eb; transition: width .8s ease; }

/* selo de conclusao */
@keyframes efa-stamp { 0% { transform: scale(2) rotate(-15deg); opacity: 0; } 60% { transform: scale(.95) rotate(-6deg); opacity: 1; } 100% { transform: scale(1) rotate(-6deg); } }
.efa-seal { animation: efa-stamp .7s cubic-bezier(.2,.9,.3,1.3) both; }

/* teclado de PIN */
.efa-pin-dots span { width: 18px; height: 18px; border-radius: 50%; border: 3px solid #1e3a8a; display: inline-block; }
.efa-pin-dots span.is-on { background: #1e3a8a; }
.efa-key { min-height: 60px; border-radius: 16px; background: #fff; color: #1e3a8a; font-weight: 900; font-size: 1.5rem; box-shadow: 0 3px 0 #cbd5e1; }
.efa-key:active { transform: translateY(2px); box-shadow: none; }

/* cartoes da home */
.efa-card { border-radius: 22px; box-shadow: 0 8px 24px rgba(30,58,138,.15); }
.efa-lesson { min-height: 56px; }
.efa-lesson.is-done { background: #dcfce7; }
.efa-zone.is-right { background: rgba(34,197,94,.45); border-color: #22c55e; }
.efa-zone.is-wrong { background: rgba(239,68,68,.35); border-color: #ef4444; }

/* =====================================================================
   Largura das paginas: celular em coluna unica, desktop aproveita a tela
   ===================================================================== */
.efa-page { max-width: 28rem; margin-left: auto; margin-right: auto; }
.efa-page-game { max-width: 28rem; margin-left: auto; margin-right: auto; }
@media (min-width: 768px) {
  .efa-page { max-width: 72rem; }
  .efa-page-game { max-width: 48rem; }
  .efa-opt { min-height: 150px; font-size: 1.45rem; }
  .efa-opt-tall { min-height: 190px; font-size: 1.8rem; }
  .efa-prompt-en { font-size: 2.4rem !important; line-height: 1.25; }
  .efa-zone { min-height: 150px; font-size: 1.1rem; }
  .efa-chip { font-size: 1.2rem; min-height: 54px; }
  .efa-spell-input { font-size: 2.4rem; min-height: 80px; }
  .efa-bubble { font-size: 1.2rem; }
  .efa-timer { width: 88px; height: 88px; }
  .efa-timer .num { font-size: 1.7rem; }
}
@media (min-width: 1024px) {
  .efa-page-game { max-width: 56rem; }
}
@media (min-width: 1280px) {
  .efa-page { max-width: 88rem; }
  .efa-page-game { max-width: 76rem; }
}

/* duelo */
.efa-duel { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 8px; }
.efa-duel-bar { height: 14px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.efa-duel-bar > i { display: block; height: 100%; border-radius: 999px; transition: width .6s ease; }
.efa-duel-me > i { background: #facc15; }
.efa-duel-bot > i { background: #67e8f9; }
@keyframes efa-pop { 0% { transform: scale(.6); opacity: 0; } 60% { transform: scale(1.1); opacity: 1; } 100% { transform: scale(1); } }
.efa-pop { animation: efa-pop .4s ease both; }

/* =====================================================================
   Cena das telas de jogo: particulas, trilha de etapas, palco dos
   mascotes e layout de duas colunas no desktop
   ===================================================================== */
.efa-scene { position: relative; isolation: isolate; overflow-x: hidden; }
.efa-particles { position: fixed; inset: 0; pointer-events: none; z-index: 0; overflow: hidden; }
.efa-particles span { position: absolute; top: -6vh; font-size: 1.2rem; opacity: .7; animation: efa-snow linear infinite; filter: drop-shadow(0 0 4px rgba(255,255,255,.6)); }
@keyframes efa-snow {
  0%   { transform: translateY(0) translateX(0) rotate(0deg); }
  50%  { transform: translateY(55vh) translateX(30px) rotate(180deg); }
  100% { transform: translateY(110vh) translateX(-20px) rotate(360deg); }
}
.efa-particles.is-fireflies span { animation: efa-firefly ease-in-out infinite; top: auto; bottom: -5vh; }
@keyframes efa-firefly {
  0%   { transform: translateY(0) scale(.6); opacity: 0; }
  20%  { opacity: .9; }
  50%  { transform: translateY(-55vh) translateX(25px) scale(1); opacity: .5; }
  80%  { opacity: .9; }
  100% { transform: translateY(-110vh) translateX(-25px) scale(.6); opacity: 0; }
}
.efa-scene header, .efa-scene main { position: relative; z-index: 1; }

/* trilha de etapas no cabecalho */
.efa-trail { display: flex; gap: 6px; align-items: center; justify-content: center; }
.efa-trail .chip {
  display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 4px 10px;
  background: rgba(255,255,255,.15); font-size: .8rem; font-weight: 800; opacity: .55; transition: all .3s;
}
.efa-trail .chip .lbl { display: none; }
.efa-trail .chip.is-done { opacity: .9; background: rgba(34,197,94,.4); }
.efa-trail .chip.is-now { opacity: 1; background: #facc15; color: #1e3a8a; transform: scale(1.08); box-shadow: 0 0 0 4px rgba(250,204,21,.3); }
@media (min-width: 768px) {
  /* Rotulos como "Como funciona" nao podem quebrar nem sumir: a trilha
     rola de lado se faltar espaco. */
  .efa-trail { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; max-width: 100%; }
  .efa-trail::-webkit-scrollbar { display: none; }
  .efa-trail .chip { font-size: .82rem; padding: 6px 12px; flex: none; white-space: nowrap; }
  .efa-trail .chip .lbl { display: inline; white-space: nowrap; }
}
@media (min-width: 1100px) { .efa-trail .chip { font-size: .95rem; padding: 6px 14px; } }

/* main ocupa a altura da tela e centraliza verticalmente no desktop */
.efa-fill { min-height: calc(100vh - 64px); display: flex; flex-direction: column; justify-content: center; }
.efa-fill > section { width: 100%; }

/* duas colunas: palco dos mascotes | conteudo */
.efa-two-col { display: grid; gap: 20px; align-items: center; }
@media (min-width: 768px) { .efa-two-col { grid-template-columns: 2fr 3fr; gap: 40px; } }
.efa-stage { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8px; }
.efa-stage-one { flex-direction: column; align-items: center; }
.efa-stage-bubble { width: 100%; max-width: 24rem; }
@media (min-width: 768px) { .efa-stage .efa-char { width: 180px !important; height: 180px !important; } .efa-stage-one .efa-char { width: 260px !important; height: 260px !important; } }
@media (min-width: 1280px) { .efa-stage .efa-char { width: 210px !important; height: 210px !important; } .efa-stage-one .efa-char { width: 300px !important; height: 300px !important; } }
@keyframes efa-floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.efa-float { animation: efa-floaty 3s ease-in-out infinite; display: inline-block; }

/* lista de etapas da intro */
.efa-steps { display: grid; gap: 10px; }
.efa-steps li {
  display: flex; align-items: center; gap: 12px; background: rgba(255,255,255,.14); border: 2px solid rgba(255,255,255,.2);
  border-radius: 18px; padding: 10px 14px; font-size: .95rem; animation: efa-screen-in .4s ease both;
}
.efa-steps li:nth-child(2) { animation-delay: .08s; } .efa-steps li:nth-child(3) { animation-delay: .16s; } .efa-steps li:nth-child(4) { animation-delay: .24s; }
.efa-step-icon { font-size: 1.8rem; width: 48px; height: 48px; display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 14px; }
@media (min-width: 768px) { .efa-steps li { font-size: 1.15rem; padding: 14px 18px; } .efa-step-icon { font-size: 2.2rem; width: 60px; height: 60px; } }

.efa-confirm-xl { font-size: 1.3rem; min-height: 64px; }
@media (min-width: 768px) { .efa-confirm-xl { font-size: 1.6rem; min-height: 76px; } }

/* balao grande da explicacao */
.efa-bubble-xl .efa-bubble { font-size: 1.15rem; padding: 16px 20px 18px; }
@media (min-width: 768px) { .efa-bubble-xl .efa-bubble { font-size: 1.6rem; line-height: 1.5; padding: 24px 28px; border-width: 4px; } }
.efa-bubble-xl .efa-bubble::after { display: none; }

/* cartao da palavra (Nina) */
.efa-wordcard { background: #fff; color: #1e3a8a; border-radius: 28px; padding: 22px; text-align: center; box-shadow: 0 18px 40px rgba(0,0,0,.25); }
.efa-wordcard-icon { min-height: 120px; display: flex; align-items: center; justify-content: center; }
/* Visual de conceito (Matematica): usa a largura toda, nao o quadrado do emoji. */
.efa-wordcard-icon:has(.cv-caixa) { height: auto; display: block; }
.efa-wordcard-word {
  /* "denominador" e longo: o tamanho acompanha a largura para nao partir a palavra */
  font-size: clamp(1.5rem, 8.5vw, 2.6rem); font-weight: 900; letter-spacing: -.02em;
  overflow-wrap: normal; word-break: keep-all; hyphens: none; line-height: 1.1;
}
.efa-wordcard-pt { font-size: 1.2rem; color: #475569; }
@media (min-width: 768px) {
  .efa-wordcard { padding: 36px; }
  .efa-wordcard-icon { min-height: 180px; } .efa-wordcard-icon .efa-icon { font-size: 9rem !important; } .efa-wordcard-icon .efa-icon:has(svg) { width: 160px !important; height: 160px !important; }
  .efa-wordcard-word { font-size: clamp(2rem, 5.2vw, 4.2rem); } .efa-wordcard-pt { font-size: 1.6rem; }
}
.efa-bubble-lg .efa-bubble { font-size: 1.1rem; }
@media (min-width: 768px) { .efa-bubble-lg .efa-bubble { font-size: 1.4rem; line-height: 1.5; padding: 20px 24px; } .efa-podium { height: 240px; } .efa-podium-step { width: 110px; } .efa-podium-1 { height: 190px; } .efa-podium-2 { height: 140px; } .efa-podium-3 { height: 110px; } .efa-podium-step .who { font-size: 2.8rem; } }

/* =====================================================================
   Trilha gamificada (home) e placar
   ===================================================================== */
.efa-scorepill { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; background: #1e3a8a; color: #fff; border-radius: 16px; padding: 6px 12px; min-width: 120px; text-decoration: none; }
.efa-scorepill-pts { font-size: .95rem; } .efa-scorepill-pts b { color: #facc15; font-size: 1.15rem; }
.efa-scorepill-lv { font-size: .7rem; opacity: .9; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; }
.efa-scorepill-bar { width: 100%; height: 5px; border-radius: 999px; background: rgba(255,255,255,.25); overflow: hidden; }
.efa-scorepill-bar i { display: block; height: 100%; background: #facc15; border-radius: 999px; }

.efa-trail-wrap { position: relative; }
.efa-trail-svg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; }
.efa-trail-svg path { fill: none; stroke: rgba(30,58,138,.14); stroke-width: 9; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.efa-trail-svg path.done { stroke: #86efac; stroke-dasharray: none; }
.efa-trail-svg path.todo { stroke-dasharray: 1 14; }
.efa-node { position: absolute; z-index: 1; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center; width: 160px; text-align: center; }
.efa-node-btn {
  width: 78px; height: 78px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 2.2rem;
  background: #fff; border: 5px solid #cbd5e1; box-shadow: 0 6px 0 #cbd5e1, 0 10px 20px rgba(30,58,138,.18); transition: transform .1s;
  position: relative;
}
.efa-node-btn:active { transform: translateY(4px); box-shadow: 0 2px 0 #cbd5e1; }
.efa-node.is-done .efa-node-btn { border-color: #22c55e; box-shadow: 0 6px 0 #15803d, 0 10px 20px rgba(21,128,61,.25); background: #f0fdf4; }
.efa-node.is-now .efa-node-btn { border-color: #facc15; box-shadow: 0 6px 0 #ca8a04, 0 0 0 10px rgba(250,204,21,.25); animation: efa-nodepulse 1.6s ease-in-out infinite; background: #fffbeb; }
.efa-node.is-locked .efa-node-btn { background: #f1f5f9; border-color: #cbd5e1; box-shadow: 0 6px 0 #cbd5e1; }
.efa-node.is-locked .efa-node-btn > span { filter: grayscale(1); opacity: .6; }
.efa-node.is-locked .efa-node-btn::after {
  content: "🔒"; position: absolute; right: -8px; top: -8px; z-index: 3; filter: none;
  font-size: 1.05rem; line-height: 1; background: #fff; border: 2px solid #cbd5e1;
  border-radius: 50%; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center;
  box-shadow: 0 2px 5px rgba(15,23,42,.2);
}
@keyframes efa-nodepulse { 0%,100% { box-shadow: 0 6px 0 #ca8a04, 0 0 0 6px rgba(250,204,21,.25); } 50% { box-shadow: 0 6px 0 #ca8a04, 0 0 0 16px rgba(250,204,21,.1); } }
.efa-node-stars { display: inline-flex; gap: 1px; margin-top: -16px; padding: 1px 8px; border-radius: 999px; background: #fff; box-shadow: 0 2px 6px rgba(30,58,138,.2); font-size: 1.45rem; line-height: 1.1; position: relative; z-index: 2; }
.efa-node-stars b { color: #cbd5e1; font-weight: 400; } .efa-node-stars b.on { color: #facc15; text-shadow: 0 1px 0 #ca8a04; }
.efa-node-stars:empty { display: none; }
.efa-node-label { font-size: .78rem; font-weight: 800; color: #1e3a8a; line-height: 1.15; margin-top: 3px; background: #fff; border-radius: 999px; padding: 4px 10px; box-shadow: 0 2px 6px rgba(30,58,138,.15); max-width: 100%; }
.efa-node-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: #facc15; color: #1e3a8a; font-size: .65rem; font-weight: 900; padding: 2px 8px; border-radius: 999px; text-transform: uppercase; white-space: nowrap; animation: efa-floaty 1.6s ease-in-out infinite; }
.efa-node.is-boss .efa-node-btn { width: 92px; height: 92px; font-size: 2.6rem; border-color: #0ea5e9; }
.efa-node.is-boss.is-done .efa-node-btn { border-color: #22c55e; }
@media (min-width: 768px) { .efa-node-btn { width: 88px; height: 88px; font-size: 2.5rem; } .efa-node-label { font-size: .9rem; } .efa-node-stars { font-size: 1.7rem; } }

/* =====================================================================
   Enunciado bilingue (crianca que ainda nao le ingles)
   1) instrucao em portugues (grande)  2) frase em ingles  3) traducao
   ===================================================================== */
.efa-prompt { display: flex; flex-direction: column; gap: 10px; align-items: center; }
.efa-prompt-pt {
  font-size: 1.25rem; font-weight: 800; line-height: 1.25; font-style: normal; opacity: 1;
  background: rgba(255,255,255,.16); border-radius: 16px; padding: 10px 16px; max-width: 40rem;
}
.efa-prompt-en { font-size: 1.5rem; font-weight: 900; line-height: 1.3; }
.efa-prompt-tr {
  font-size: 1.05rem; font-weight: 700; line-height: 1.35; color: #fde68a; max-width: 40rem;
  background: rgba(0,0,0,.18); border-radius: 14px; padding: 8px 14px;
}
.efa-flag { font-size: .8em; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; opacity: .8; }
@media (min-width: 768px) {
  .efa-prompt-pt { font-size: 1.7rem; padding: 14px 22px; }
  .efa-prompt-en { font-size: 2.6rem !important; }
  .efa-prompt-tr { font-size: 1.35rem; padding: 10px 18px; }
}

/* palavra com traducao ao tocar/passar o mouse */
.efa-w { border-bottom: 2px dotted rgba(255,255,255,.45); cursor: help; border-radius: 4px; padding: 0 1px; }
.efa-w:hover, .efa-w.is-on { background: rgba(253,224,71,.35); border-bottom-color: #facc15; }
.efa-tip {
  position: fixed; z-index: 80; background: #0f172a; color: #fff; font-size: 1rem; font-weight: 700;
  padding: 8px 14px; border-radius: 12px; box-shadow: 0 8px 24px rgba(0,0,0,.35); pointer-events: none; max-width: 16rem; text-align: center;
}
.efa-tip::after { content: ""; position: absolute; left: 50%; bottom: -6px; transform: translateX(-50%); border: 6px solid transparent; border-top-color: #0f172a; }

/* traducao pequena dentro das alternativas e fichas */
.efa-opt-pt { display: block; font-size: .78rem; font-weight: 700; opacity: .95; line-height: 1.15; margin-top: 2px; }
.efa-opt .efa-opt-pt { color: #fff; opacity: .9; }
.efa-chip .efa-opt-pt { color: #475569; font-size: .7rem; }
.efa-chip { flex-direction: column; gap: 0; padding: 6px 14px; }
.efa-zone-label .efa-opt-pt { color: #fde68a; }
@media (min-width: 768px) { .efa-opt-pt { font-size: .95rem; } .efa-chip .efa-opt-pt { font-size: .8rem; } }

/* janela de instrucoes (instalar o app) */
.efa-modal { position: fixed; inset: 0; z-index: 90; background: rgba(15,23,42,.6); display: flex; align-items: center; justify-content: center; padding: 20px; animation: efa-screen-in .2s ease both; }
.efa-modal-card { background: #fff; color: #1f2937; border-radius: 22px; padding: 22px; max-width: 26rem; width: 100%; box-shadow: 0 20px 50px rgba(0,0,0,.35); }
.efa-modal-card b { color: #1e3a8a; }

/* =====================================================================
   Unidades do livro
   ===================================================================== */
.efa-unit-tag {
  display: inline-block; background: rgba(255,255,255,.25); border-radius: 999px; padding: 2px 10px;
  font-size: .7rem; font-weight: 900; text-transform: uppercase; letter-spacing: .05em; vertical-align: middle;
}
.efa-unit-banner {
  border-radius: 22px; padding: 14px 18px; color: #fff; display: flex; align-items: center; gap: 14px;
  box-shadow: 0 8px 24px rgba(30,58,138,.18);
}
.efa-unit-banner .num { font-size: 2.6rem; font-weight: 900; line-height: 1; opacity: .9; }
.efa-unit-banner .big { font-size: 1.4rem; font-weight: 900; line-height: 1.1; }
.efa-unit-banner .sub { font-size: .8rem; opacity: .95; }
@media (min-width: 768px) { .efa-unit-banner .big { font-size: 1.9rem; } .efa-unit-banner .num { font-size: 3.4rem; } }
#unit-picker { min-height: 52px; }

/* faixa "tem versao nova" */
.efa-updatebar {
  position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 95;
  display: flex; align-items: center; gap: 12px; background: #1e3a8a; color: #fff;
  padding: 10px 14px; border-radius: 999px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-weight: 800;
  animation: efa-screen-in .3s ease both; max-width: calc(100vw - 24px);
}
.efa-updatebar-btn { background: #facc15; color: #1e3a8a; border-radius: 999px; padding: 6px 14px; font-weight: 900; min-height: 40px; }

/* =====================================================================
   Exercicios de ESCRITA (write_word / write_sentence)
   ===================================================================== */
.efa-write-input {
  width: 100%; min-height: 90px; border-radius: 18px; border: 3px solid #fff; background: rgba(255,255,255,.96);
  color: #1e3a8a; font-size: 1.35rem; font-weight: 700; padding: 12px 14px; line-height: 1.35; resize: none;
}
.efa-write-input:focus { outline: 4px solid #facc15; }
.efa-write-icon { display: flex; justify-content: center; }
.efa-model { background: rgba(255,255,255,.16); border-radius: 14px; padding: 8px 14px; font-size: 1rem; }
.efa-hint { min-height: 1.4em; font-family: ui-monospace, monospace; letter-spacing: .06em; }
.efa-words { display: flex; flex-wrap: wrap; gap: 6px; }
.efa-word { padding: 3px 10px; border-radius: 10px; font-weight: 800; font-size: 1.05rem; }
.efa-word.is-ok { background: #22c55e; color: #fff; }
.efa-word.is-bad { background: #ef4444; color: #fff; }
.efa-word.is-missing { background: #fff; color: #b91c1c; border: 2px dashed #ef4444; }
.efa-word.is-target { background: #1e3a8a; color: #fff; }
@media (min-width: 768px) { .efa-write-input { font-size: 1.7rem; min-height: 110px; } .efa-model { font-size: 1.2rem; } }
/* no com conteudo novo: 3a estrela pendente */
.efa-node-tag.is-new { background: #22c55e; color: #fff; }
.efa-node-stars b.redo { color: #86efac; animation: efa-pulse 1.4s ease-in-out infinite; }

/* ===== barra de AJUDA dos exercicios de escrita ===== */
.efa-helpbar { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding-top: 6px; }
.efa-help {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 14px; border-radius: 999px;
  background: #fff; color: #1e3a8a; font-weight: 800; font-size: 1.1rem; box-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.efa-help span { font-size: .85rem; }
.efa-help:active { transform: translateY(2px); }
.efa-help.is-hint { background: #fef3c7; color: #78350f; }
.efa-help.is-peek { background: #ede9fe; color: #4c1d95; }
.efa-help:disabled { opacity: .5; }
.efa-helptip { text-align: center; font-size: .85rem; opacity: .85; }
.efa-hint { min-height: 1.6em; text-align: center; font-family: ui-monospace, monospace; letter-spacing: .08em; font-size: 1.1rem; font-weight: 700; }
.efa-hint.is-peek { background: rgba(255,255,255,.22); border-radius: 12px; padding: 6px 10px; letter-spacing: normal; font-family: inherit; }

/* teclas de apoio (letras e palavras) */
.efa-letterbank, .efa-wordbank { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; padding: 8px; border-radius: 16px; background: rgba(255,255,255,.14); }
.efa-letterkey {
  min-width: 46px; min-height: 46px; border-radius: 12px; background: #fff; color: #1e3a8a;
  font-weight: 900; font-size: 1.25rem; text-transform: lowercase; box-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.efa-wordkey {
  min-height: 46px; padding: 0 14px; border-radius: 999px; background: #fff; color: #1e3a8a;
  font-weight: 800; font-size: 1.05rem; box-shadow: 0 3px 0 rgba(0,0,0,.2);
}
.efa-letterkey:active, .efa-wordkey:active { transform: translateY(2px); }
.efa-letterkey.is-del, .efa-wordkey.is-del { background: #fecaca; color: #991b1b; }
@media (min-width: 768px) {
  .efa-letterkey { min-width: 54px; min-height: 54px; font-size: 1.5rem; }
  .efa-wordkey { font-size: 1.2rem; min-height: 52px; }
  .efa-hint { font-size: 1.3rem; }
}
/* telas escondidas: vence qualquer utilitario responsivo (md:grid etc.) */
[data-screen][hidden] { display: none !important; }

/* =====================================================================
   PORTAL DE MATERIAS (reforço escolar)
   ===================================================================== */
.efa-sub-card {
  display: flex; flex-direction: column; text-align: left; overflow: hidden;
  border-radius: 22px; background: #fff; box-shadow: 0 8px 24px rgba(30, 58, 138, .15);
  transition: transform .12s, box-shadow .2s; min-height: 190px;
}
.efa-sub-card:active { transform: scale(.985); }
@media (hover: hover) { .efa-sub-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(30,58,138,.22); } }
.efa-sub-card.is-off { filter: grayscale(.75); opacity: .72; }

.efa-sub-top {
  position: relative; display: flex; align-items: center; justify-content: center;
  height: 96px; color: #fff;
}
.efa-sub-emoji { font-size: 3.2rem; line-height: 1; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.efa-sub-lock, .efa-sub-soon {
  position: absolute; top: 8px; right: 8px; font-size: .7rem; font-weight: 800;
  background: rgba(0,0,0,.45); color: #fff; padding: 3px 8px; border-radius: 999px;
}
.efa-sub-body { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px 14px; }
.efa-sub-name { font-size: 1.3rem; font-weight: 900; color: #1e3a8a; line-height: 1.1; }
.efa-sub-tag { font-size: .85rem; color: #475569; line-height: 1.25; }
.efa-sub-skills { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 4px; }
.efa-sub-skills i {
  font-style: normal; font-size: .7rem; font-weight: 700; color: #1e3a8a;
  background: #e0edff; border-radius: 999px; padding: 2px 8px;
}
.efa-sub-foot { margin-top: 6px; font-size: .72rem; font-weight: 700; color: #64748b; }

/* faixa da materia dentro do mapa */
.efa-subject-bar {
  display: flex; align-items: center; gap: 12px; color: #fff;
  border-radius: 20px; padding: 10px 14px; box-shadow: 0 6px 18px rgba(30,58,138,.2);
}
.efa-subject-bar .emoji { font-size: 2.2rem; line-height: 1; }
.efa-subject-bar .name { font-size: 1.15rem; font-weight: 900; line-height: 1.1; }
.efa-subject-bar .tag { font-size: .75rem; opacity: .9; }
.efa-subject-bar .swap {
  min-height: 44px; padding: 0 14px; border-radius: 999px; background: rgba(255,255,255,.95);
  color: #1e3a8a; font-weight: 800; font-size: .85rem; white-space: nowrap;
}
.efa-subject-bar .swap:active { transform: translateY(2px); }

/* dica dos exercicios digitados */
.efa-hint {
  display: inline-block; margin-top: 6px; padding: 4px 12px; border-radius: 999px;
  background: rgba(255,255,255,.2); font-size: .85rem; font-weight: 700;
}

/* =====================================================================
   TELA DE ENTRADA (hero + cartões de perfil)
   ===================================================================== */
.efa-hero {
  position: relative; overflow: hidden; isolation: isolate;
  max-width: 44rem; margin: 0 auto; padding: 22px 18px 16px;
  border-radius: 30px; background: rgba(255, 255, 255, .72);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(30, 58, 138, .16);
}
.efa-hero-art { position: absolute; inset: 0; z-index: -1; }
.efa-hero-blob { position: absolute; border-radius: 50%; filter: blur(26px); opacity: .55; }
.efa-blob-1 { width: 220px; height: 220px; background: #93c5fd; top: -70px; left: -60px; animation: efa-float 14s ease-in-out infinite; }
.efa-blob-2 { width: 180px; height: 180px; background: #fcd34d; bottom: -60px; right: -40px; animation: efa-float 18s ease-in-out infinite reverse; }
.efa-blob-3 { width: 150px; height: 150px; background: #c4b5fd; top: 40%; right: 12%; animation: efa-float 22s ease-in-out infinite; }
@keyframes efa-float {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50%      { transform: translate(14px, -18px) scale(1.08); }
}

.efa-hero-head { text-align: center; }
.efa-logo {
  display: inline-flex; align-items: center; justify-content: center;
  width: 74px; height: 74px; border-radius: 22px; margin-bottom: 6px;
  background: linear-gradient(160deg, #2563eb, #4f46e5);
  box-shadow: 0 10px 22px rgba(37, 99, 235, .35);
  animation: efa-logo-in .6s cubic-bezier(.2,.9,.3,1.3) both;
}
@keyframes efa-logo-in { from { transform: scale(.6) rotate(-8deg); opacity: 0; } }
.efa-hero-title {
  font-size: clamp(2.1rem, 8vw, 3.4rem); font-weight: 900; line-height: 1.02;
  color: #1e3a8a; letter-spacing: -.02em;
}
.efa-hero-tag { font-size: .95rem; font-weight: 700; color: #3b5bdb; margin-top: 2px; }
.efa-hero-chips {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 10px;
}
.efa-hero-chips li {
  font-size: .74rem; font-weight: 800; color: #1e3a8a;
  background: #e6efff; border-radius: 999px; padding: 4px 10px;
}
.efa-hero-say { display: flex; align-items: flex-start; gap: 6px; margin-top: 14px; }
.efa-hero-ask {
  text-align: center; font-size: 1.05rem; font-weight: 800; color: #1e3a8a;
  margin: 14px 0 8px;
}

/* cartões de perfil */
.efa-profiles { display: grid; gap: 10px; }
@media (min-width: 640px) { .efa-profiles { grid-template-columns: 1fr 1fr; } }
.efa-profiles-loading { text-align: center; font-size: .9rem; color: #1e40af; padding: 10px; }
.efa-profiles-empty {
  text-align: center; padding: 18px 14px; border-radius: 20px;
  background: #eef4ff; border: 2px dashed #b4ccff;
}

.efa-profile {
  display: flex; align-items: center; gap: 12px; text-align: left;
  min-height: 82px; padding: 10px 12px; border-radius: 22px; background: #fff;
  box-shadow: 0 6px 18px rgba(30, 58, 138, .12);
  transition: transform .12s, box-shadow .2s;
}
.efa-profile:active { transform: scale(.98); }
@media (hover: hover) { .efa-profile:hover { transform: translateY(-2px); box-shadow: 0 12px 26px rgba(30,58,138,.2); } }
.efa-profile-face {
  display: flex; align-items: center; justify-content: center;
  width: 58px; height: 58px; flex: 0 0 58px; border-radius: 50%;
  background: linear-gradient(160deg, #dbeafe, #ede9fe); font-size: 2rem; line-height: 1;
}
.efa-profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.efa-profile-name { font-size: 1.2rem; font-weight: 900; color: #1e3a8a; line-height: 1.1; }
.efa-profile-sub { font-size: .75rem; font-weight: 700; color: #6d28d9; }
.efa-profile-bar { height: 6px; border-radius: 999px; background: #e2e8f0; overflow: hidden; margin-top: 2px; }
.efa-profile-bar > i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #facc15, #f59e0b); }
.efa-profile-last { font-size: .68rem; color: #94a3b8; }
.efa-profile-go { font-size: 1.1rem; color: #2563eb; }

.efa-hero-note {
  margin-top: 14px; text-align: center; font-size: .78rem; color: #475569;
  background: #f1f5ff; border-radius: 14px; padding: 8px 10px;
}
.efa-hero-foot {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 6px;
  margin-top: 12px; font-size: .68rem; color: #94a3b8;
}
.efa-hero-foot i { font-style: normal; opacity: .6; }
.efa-btn-ghost {
  display: inline-flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 18px;
  border-radius: 999px; background: #2563eb; color: #fff; font-weight: 800; font-size: .9rem;
}

/* tela do PIN, no mesmo idioma visual */
.efa-pin-card {
  max-width: 22rem; margin: 0 auto; padding: 20px 18px;
  border-radius: 28px; background: rgba(255,255,255,.9);
  box-shadow: 0 16px 40px rgba(30,58,138,.16);
}
.efa-pin-face {
  display: flex; align-items: center; justify-content: center;
  width: 72px; height: 72px; margin: 0 auto 6px; border-radius: 50%;
  background: linear-gradient(160deg, #dbeafe, #ede9fe); font-size: 2.4rem;
}

/* =====================================================================
   Cabeçalho do mapa: no celular vira duas linhas (nada estoura a tela)
   ===================================================================== */
.efa-maphead { display: flex; flex-direction: column; gap: 8px; }
.efa-maphead-top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.efa-maphead-bottom { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.efa-maphead-bottom > * { flex: 1 1 auto; min-width: 0; }
.efa-maphead-bottom .efa-scorepill { flex: 1 1 60%; }
.efa-maphead-bottom #btn-install { flex: 0 1 auto; }
@media (min-width: 768px) {
  .efa-maphead { flex-direction: row; align-items: center; gap: 12px; }
  .efa-maphead-top { flex: 1; }
  .efa-maphead-bottom { flex: 0 0 auto; }
  .efa-maphead-bottom .efa-scorepill { flex: 0 0 auto; }
}

/* =====================================================================
   Painel no celular: cabeçalho e lista de alunos sem estourar a tela
   ===================================================================== */
.efa-dashhead { flex-wrap: wrap; row-gap: 6px; }
.efa-dashhead > * { min-width: 0; }

.efa-aluno-linha { display: flex; flex-direction: column; gap: 8px; }
.efa-aluno-topo { display: flex; align-items: center; gap: 10px; min-width: 0; }
.efa-aluno-acoes { display: flex; flex-wrap: wrap; gap: 6px; }
.efa-aluno-acoes .btn { flex: 1 1 auto; white-space: nowrap; }
@media (min-width: 640px) {
  .efa-aluno-linha { flex-direction: row; align-items: center; }
  .efa-aluno-topo { flex: 1; }
  .efa-aluno-acoes { flex: 0 0 auto; }
  .efa-aluno-acoes .btn { flex: 0 0 auto; }
}

/* tabelas do painel rolam sozinhas em vez de empurrar a página */
.efa-tabela-rolante { overflow-x: auto; -webkit-overflow-scrolling: touch; }

/* =====================================================================
   Trava contra vazamento horizontal: nenhuma tela pode ficar mais larga
   que o aparelho, aconteça o que acontecer (texto longo, tabela, canvas).
   ===================================================================== */
/* "clip" corta o vazamento SEM criar container de rolagem (com "hidden" as
   ancoras e o scrollTo param de funcionar em alguns navegadores). */
html, body { max-width: 100%; overflow-x: clip; }
@supports not (overflow-x: clip) { body { overflow-x: hidden; } }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
main, section, header, footer { max-width: 100%; }
/* quebra palavras enormes (e-mails, ids) em vez de esticar a caixa */
p, h1, h2, h3, li, td, th, span, .efa-card { overflow-wrap: anywhere; }
/* imagens e canvas nunca passam da largura disponível */
img, svg, canvas, video { max-width: 100%; }

/* =====================================================================
   Formulário de entrada (usuário e senha)
   ===================================================================== */
.efa-login { display: flex; flex-direction: column; gap: 12px; max-width: 22rem; margin: 0 auto; }
.efa-login-campo { display: flex; flex-direction: column; gap: 4px; text-align: left; }
.efa-login-campo > span { font-size: .8rem; font-weight: 800; color: #1e3a8a; padding-left: 4px; }
.efa-login input {
  width: 100%; min-height: 54px; padding: 0 14px; border-radius: 16px;
  border: 2px solid #c7d7ff; background: #fff; color: #1e3a8a;
  font-size: 1.05rem; font-weight: 700;
}
.efa-login input:focus { outline: 3px solid #facc15; border-color: #2563eb; }
.efa-login-senha { position: relative; display: block; }
.efa-login-senha input { padding-right: 52px; }
.efa-login-olho {
  position: absolute; right: 6px; top: 50%; transform: translateY(-50%);
  width: 42px; height: 42px; border-radius: 12px; font-size: 1.2rem; background: #eef4ff;
}

/* =====================================================================
   LANDING PAGE (site.html) — lúdica na arte, profissional na estrutura
   ===================================================================== */
.lp-body { background: #fff; color: #0f172a; }

/* topo ---------------------------------------------------------------- */
.lp-topo {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(8px);
  border-bottom: 1px solid #e8eefc;
}
.lp-marca { display: flex; align-items: center; gap: 8px; }
.lp-marca-icone {
  display: inline-flex; align-items: center; justify-content: center; width: 42px; height: 42px;
  border-radius: 13px; background: linear-gradient(160deg, #2563eb, #4f46e5);
  box-shadow: 0 6px 14px rgba(37,99,235,.3);
}
.lp-marca-nome { font-weight: 900; font-size: 1.1rem; color: #1e3a8a; letter-spacing: -.01em; }
.lp-nav { display: flex; align-items: center; gap: 14px; font-weight: 700; font-size: .9rem; color: #334155; }
.lp-nav a:not(.lp-btn-entrar) { display: none; }
@media (min-width: 860px) { .lp-nav a:not(.lp-btn-entrar) { display: inline; } .lp-nav a:hover { color: #2563eb; } }
.lp-btn-entrar {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0 18px; border-radius: 999px;
  background: #1e3a8a; color: #fff; font-weight: 800;
}
.lp-btn-entrar:active { transform: translateY(1px); }

/* herói --------------------------------------------------------------- */
.lp-heroi {
  position: relative; overflow: hidden; isolation: isolate;
  display: grid; gap: 28px; padding: 34px 18px 44px;
  background: linear-gradient(180deg, #eff5ff 0%, #f8fbff 100%);
}
@media (min-width: 900px) {
  .lp-heroi { grid-template-columns: 1.05fr .95fr; align-items: center; padding: 56px 40px 64px; gap: 40px; }
}
.lp-heroi-fundo { position: absolute; inset: 0; z-index: -1; }
.lp-bolha { position: absolute; border-radius: 50%; filter: blur(34px); opacity: .5; }
.lp-bolha-1 { width: 280px; height: 280px; background: #93c5fd; top: -90px; left: -70px; animation: efa-float 16s ease-in-out infinite; }
.lp-bolha-2 { width: 240px; height: 240px; background: #fcd34d; bottom: -80px; right: -50px; animation: efa-float 20s ease-in-out infinite reverse; }
.lp-bolha-3 { width: 200px; height: 200px; background: #c4b5fd; top: 45%; right: 25%; animation: efa-float 24s ease-in-out infinite; }

.lp-selo {
  display: inline-block; padding: 5px 14px; border-radius: 999px; background: #dbeafe;
  color: #1d4ed8; font-size: .78rem; font-weight: 800; margin-bottom: 12px;
}
.lp-titulo {
  font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 900; line-height: 1.06;
  color: #0f2b6b; letter-spacing: -.02em;
}
.lp-sub { margin-top: 12px; font-size: clamp(1rem, 2.6vw, 1.2rem); color: #33507f; line-height: 1.5; max-width: 34rem; }
.lp-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.lp-btn-principal {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 26px;
  border-radius: 999px; background: #facc15; color: #1e3a8a; font-weight: 900; font-size: 1.05rem;
  box-shadow: 0 5px 0 #ca8a04;
}
.lp-btn-principal:active { transform: translateY(3px); box-shadow: 0 2px 0 #ca8a04; }
.lp-btn-zap {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px; min-height: 56px; padding: 0 22px;
  border-radius: 999px; background: #16a34a; color: #fff; font-weight: 800; font-size: 1rem;
  box-shadow: 0 5px 0 #15803d;
}
.lp-btn-zap:active { transform: translateY(3px); box-shadow: 0 2px 0 #15803d; }
.lp-btn-zap-grande { min-height: 62px; font-size: 1.1rem; padding: 0 30px; }

.lp-provas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 26px; max-width: 30rem; }
@media (min-width: 620px) { .lp-provas { grid-template-columns: repeat(4, 1fr); } }
.lp-provas li {
  background: #fff; border-radius: 16px; padding: 10px 8px; text-align: center;
  box-shadow: 0 4px 14px rgba(30,58,138,.08);
}
.lp-provas b { display: block; font-size: 1.25rem; font-weight: 900; color: #1d4ed8; }
.lp-provas span { font-size: .72rem; color: #64748b; font-weight: 600; }

/* celular ilustrativo -------------------------------------------------- */
/* Sem folga lateral no celular: os 68px so existem para os mascotes, que
   aparecem a partir de 900px. No celular eles empurravam a coluna do grid
   para 416px e o overflow:hidden do heroi cortava os cartoes. */
.lp-heroi-arte { position: relative; display: flex; justify-content: center; padding: 10px 0 0; }
.lp-heroi > * { min-width: 0; }
@media (min-width: 900px) { .lp-heroi-arte { padding: 10px 68px 0; } }
.lp-celular {
  width: min(280px, 78vw); border-radius: 34px; padding: 12px; background: #0f172a;
  box-shadow: 0 24px 60px rgba(15,23,42,.34); transform: rotate(-2deg);
}
.lp-celular-tela {
  border-radius: 24px; padding: 14px 12px; min-height: 380px;
  background: linear-gradient(160deg, #1d4ed8, #3b82f6); color: #fff;
  display: flex; flex-direction: column; gap: 12px;
}
.lp-mini-topo { display: flex; align-items: center; gap: 8px; background: rgba(255,255,255,.16); border-radius: 14px; padding: 8px 10px; }
.lp-mini-avatar { font-size: 1.6rem; }
.lp-mini-topo b { display: block; font-size: .95rem; }
.lp-mini-topo small { font-size: .68rem; opacity: .85; }
.lp-mini-balao { background: #fff; color: #1e3a8a; border-radius: 16px; padding: 10px 12px; }
.lp-mini-balao b { font-size: .6rem; letter-spacing: .06em; color: #7c3aed; }
.lp-mini-balao p { font-size: .9rem; font-weight: 700; margin-top: 2px; }
.lp-mini-opcoes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.lp-mini-op {
  border-radius: 12px; padding: 12px 6px; text-align: center; font-weight: 800; font-size: .82rem;
  box-shadow: 0 3px 0 rgba(0,0,0,.22);
}
.lp-op-1 { background: #22c55e; animation: lp-pisca 2.6s ease-in-out infinite; }
.lp-op-2 { background: #ef4444; } .lp-op-3 { background: #f59e0b; } .lp-op-4 { background: #a855f7; }
@keyframes lp-pisca { 0%, 100% { transform: none; } 50% { transform: scale(1.06); box-shadow: 0 0 0 4px rgba(255,255,255,.5); } }
.lp-mini-pontos { margin-top: auto; text-align: center; font-weight: 900; background: rgba(255,255,255,.18); border-radius: 12px; padding: 8px; font-size: .9rem; }

/* Os mascotes ficam ATRAS do celular e para fora dele, nunca cobrindo a
   tela (que e o que mostra o produto). */
.lp-heroi-arte { position: relative; }
.lp-celular { position: relative; z-index: 2; }
.lp-mascotes { position: absolute; inset: -20px -10px -10px -10px; pointer-events: none; z-index: 1; }
.lp-mascote { position: absolute; display: block; }
#lp-ollie { left: -30px; bottom: -18px; animation: lp-flutua 5s ease-in-out infinite; }
#lp-nina { right: -26px; top: 4px; animation: lp-flutua 6.5s ease-in-out infinite reverse; }
@keyframes lp-flutua { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@media (max-width: 899px) { .lp-mascotes { display: none; } }

/* seções --------------------------------------------------------------- */
.lp-secao { padding: 44px 18px; max-width: 72rem; margin: 0 auto; }
/* Sem animacao de entrada nas secoes: em aba de segundo plano o navegador
   pausa animacoes, e qualquer estado inicial invisivel esconderia a oferta.
   O movimento da pagina vem das bolhas do heroi e dos mascotes. */
.lp-fundo-claro { background: #f6f9ff; max-width: none; }
.lp-fundo-claro > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.lp-h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; color: #0f2b6b; text-align: center; letter-spacing: -.01em; }
.lp-h2-claro { color: #fff; }
.lp-h2-sub { text-align: center; color: #5b7099; margin-top: 6px; }
.lp-h2-sub-claro { color: #c7dbff; }

/* dores ---------------------------------------------------------------- */
.lp-dores { display: grid; gap: 12px; margin-top: 22px; }
@media (min-width: 780px) { .lp-dores { grid-template-columns: repeat(3, 1fr); } }
.lp-dor { display: flex; gap: 12px; background: #fff; border-radius: 18px; padding: 16px; box-shadow: 0 6px 18px rgba(30,58,138,.08); }
.lp-dor span { font-size: 1.8rem; line-height: 1; }
.lp-dor p { font-size: .95rem; color: #475569; line-height: 1.45; }
.lp-virada { text-align: center; margin-top: 20px; font-weight: 800; color: #1d4ed8; }

/* passos --------------------------------------------------------------- */
.lp-passos { display: grid; gap: 14px; margin-top: 24px; counter-reset: passo; }
@media (min-width: 780px) { .lp-passos { grid-template-columns: repeat(4, 1fr); } }
.lp-passo { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 2px solid #e8eefc; border-radius: 18px; padding: 16px; }
.lp-passo-num { font-size: 1.5rem; }
.lp-passo h3 { font-weight: 900; color: #0f2b6b; font-size: 1rem; }
.lp-passo p { font-size: .88rem; color: #5b7099; margin-top: 3px; line-height: 1.45; }

/* matérias ------------------------------------------------------------- */
.lp-materias { display: grid; gap: 14px; margin-top: 24px; }
@media (min-width: 700px) { .lp-materias { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lp-materias { grid-template-columns: repeat(3, 1fr); } }
.lp-materia { background: #fff; border-radius: 20px; overflow: hidden; box-shadow: 0 8px 22px rgba(30,58,138,.1); display: flex; flex-direction: column; }
.lp-materia.is-breve { opacity: .72; }
.lp-materia-topo { position: relative; display: flex; align-items: center; justify-content: center; height: 92px; }
.lp-materia-emoji { font-size: 3rem; filter: drop-shadow(0 3px 6px rgba(0,0,0,.25)); }
.lp-materia-breve { position: absolute; top: 8px; right: 8px; background: rgba(0,0,0,.45); color: #fff; font-size: .68rem; font-weight: 800; padding: 3px 9px; border-radius: 999px; }
.lp-materia-corpo { padding: 14px; display: flex; flex-direction: column; gap: 4px; }
.lp-materia-corpo h3 { font-size: 1.2rem; font-weight: 900; color: #0f2b6b; }
.lp-materia-tag { font-size: .85rem; color: #475569; }
.lp-materia-por { font-size: .82rem; color: #64748b; font-style: italic; margin-top: 4px; }
.lp-materia-num { margin-top: 6px; font-size: .74rem; font-weight: 800; color: #1d4ed8; }

/* recursos ------------------------------------------------------------- */
.lp-recursos { display: grid; gap: 12px; margin-top: 24px; }
@media (min-width: 700px) { .lp-recursos { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .lp-recursos { grid-template-columns: repeat(3, 1fr); } }
.lp-recurso { background: #fff; border: 2px solid #eef3fd; border-radius: 18px; padding: 16px; }
.lp-recurso span { font-size: 1.9rem; }
.lp-recurso h3 { font-weight: 900; color: #0f2b6b; margin-top: 6px; }
.lp-recurso p { font-size: .88rem; color: #5b7099; line-height: 1.45; margin-top: 4px; }

/* planos --------------------------------------------------------------- */
.lp-fundo-azul { background: linear-gradient(160deg, #1e3a8a, #2563eb); max-width: none; }
.lp-fundo-azul > * { max-width: 72rem; margin-left: auto; margin-right: auto; }
.lp-planos { display: grid; gap: 16px; margin-top: 26px; }
@media (min-width: 700px) { .lp-planos { grid-template-columns: repeat(2, 1fr); align-items: start; } }
@media (min-width: 1100px) { .lp-planos { grid-template-columns: repeat(4, 1fr); } }
.lp-plano { position: relative; background: #fff; border-radius: 22px; padding: 22px 18px; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 12px 30px rgba(2,10,40,.25); }
.lp-plano.is-destaque { outline: 4px solid #facc15; transform: none; }
@media (min-width: 1100px) { .lp-plano.is-destaque { transform: scale(1.04); } }
.lp-plano-fita { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: #facc15; color: #1e3a8a; font-size: .72rem; font-weight: 900; padding: 4px 14px; border-radius: 999px; white-space: nowrap; }
.lp-plano h3 { font-size: 1.4rem; font-weight: 900; color: #0f2b6b; }
.lp-plano-chamada { font-size: .85rem; color: #64748b; }
.lp-plano-preco { margin: 8px 0 4px; }
.lp-plano-preco b { font-size: 2.1rem; font-weight: 900; color: #1d4ed8; }
.lp-plano-preco span { font-size: .85rem; color: #64748b; margin-left: 4px; }
.lp-plano ul { display: flex; flex-direction: column; gap: 6px; margin: 6px 0 14px; }
.lp-plano li { font-size: .9rem; color: #334155; }
.lp-plano-btn { margin-top: auto; display: inline-flex; align-items: center; justify-content: center; min-height: 54px; border-radius: 999px; background: #16a34a; color: #fff; font-weight: 900; box-shadow: 0 4px 0 #15803d; }
.lp-plano-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 #15803d; }
.lp-planos-nota { text-align: center; color: #c7dbff; font-size: .86rem; margin-top: 18px; }

/* dúvidas -------------------------------------------------------------- */
.lp-faq { display: grid; gap: 10px; margin-top: 22px; max-width: 46rem; margin-left: auto; margin-right: auto; }
.lp-faq-item { background: #f8fbff; border: 2px solid #e8eefc; border-radius: 16px; padding: 14px 16px; }
.lp-faq-item summary { font-weight: 800; color: #0f2b6b; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.lp-faq-item summary::after { content: '+'; font-size: 1.3rem; color: #2563eb; }
.lp-faq-item[open] summary::after { content: '−'; }
.lp-faq-item p { margin-top: 10px; color: #475569; line-height: 1.5; font-size: .93rem; }

/* chamada final e rodapé ------------------------------------------------ */
.lp-final { text-align: center; padding: 52px 18px; background: #f6f9ff; }
.lp-final h2 { font-size: clamp(1.5rem, 5vw, 2.2rem); font-weight: 900; color: #0f2b6b; }
.lp-final p { color: #5b7099; margin: 8px 0 18px; }
.lp-final-nota { margin-top: 16px; font-size: .88rem; }
.lp-final-nota a { color: #2563eb; font-weight: 800; text-decoration: underline; }
.lp-rodape { padding: 24px 18px 40px; text-align: center; color: #64748b; font-size: .85rem; background: #fff; }
.lp-rodape a { color: #2563eb; font-weight: 700; }
.lp-rodape p + p { margin-top: 6px; }
.lp-rodape-mini { font-size: .72rem; opacity: .6; }

/* botão flutuante do WhatsApp ------------------------------------------ */
.lp-zap-flutuante {
  position: fixed; right: 14px; bottom: 14px; z-index: 40;
  width: 58px; height: 58px; border-radius: 50%; background: #16a34a; color: #fff;
  display: flex; align-items: center; justify-content: center; font-size: 1.7rem;
  box-shadow: 0 8px 22px rgba(22,163,74,.45);
}
.lp-zap-flutuante:active { transform: scale(.94); }

@media (prefers-reduced-motion: reduce) {
  .lp-bolha, .lp-mascote, .lp-op-1 { animation: none; }
  .lp-secao, .lp-final { animation: none; }
}

/* plano avulso: etiqueta própria, para não competir com o "mais escolhido" */
.lp-plano.is-avulso { outline: 3px dashed #16a34a; }
.lp-fita-avulso { background: #16a34a; color: #fff; }
/* sombra suave e, no celular, mascotes menores nas pontas */
.lp-mascote .efa-char { filter: drop-shadow(0 10px 18px rgba(30,58,138,.28)); }
@media (max-width: 899px) {
  .lp-mascotes { display: block; inset: -6px -4px 0 -4px; }
  #lp-ollie { left: -14px; bottom: 6px; }
  #lp-nina { right: -10px; top: -6px; }
}

/* capítulos avulsos no plano do aluno (painel) */
.efa-caps { display: grid; gap: 4px; margin: -2px 0 6px 34px; }
.efa-cap { display: flex; align-items: center; gap: 8px; font-size: .82rem; color: #475569; }
.efa-cap.is-on { color: #047857; font-weight: 700; }
.efa-cap input { width: 18px; height: 18px; accent-color: #059669; }
.efa-cap input:disabled + span { opacity: .5; text-decoration: line-through; }

/* ícones das matérias em SVG (mesmo desenho em qualquer sistema) */
.efa-subject-icon { line-height: 0; }
.efa-subject-svg { width: 100%; height: 100%; display: block; filter: drop-shadow(0 2px 4px rgba(0,0,0,.18)); }
.lp-materia-emoji { display: inline-flex; }

/* selo da matéria ao lado do nome do aluno */
.efa-selo-materia {
  display: inline-flex; align-items: center; gap: 4px; flex: 0 0 auto;
  padding: 3px 10px 3px 6px; border-radius: 999px; background: #e0edff;
  color: #1e3a8a; font-size: .72rem; font-weight: 800; white-space: nowrap;
}
/* botão de demonstração */
.lp-btn-demo {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px;
  border-radius: 999px; background: #fff; color: #1e3a8a; font-weight: 800; font-size: 1rem;
  box-shadow: 0 5px 0 #cbd5e1;
}
.lp-btn-demo:active { transform: translateY(3px); box-shadow: 0 2px 0 #cbd5e1; }
.lp-demo-nota { margin-top: 10px; font-size: .82rem; color: #475569; }
.lp-final-demo { margin-top: 14px; font-size: .9rem; }
.lp-final-demo a { color: #2563eb; }

/* =====================================================================
   Exercícios com a cara de cada matéria
   ===================================================================== */

/* separar em grupos (Ciências, Português, História, Matemática) */
.efa-grupos { display: grid; gap: 10px; grid-template-columns: 1fr; }
@media (min-width: 560px) { .efa-grupos { grid-template-columns: repeat(min(var(--n, 2), 3), 1fr); } }
.efa-grupo {
  display: flex; flex-direction: column; gap: 6px; min-height: 110px; padding: 10px;
  border-radius: 16px; background: rgba(255,255,255,.16);
  border: 3px dashed rgba(255,255,255,.6); transition: background .15s;
}
.efa-grupo:active { background: rgba(253,230,138,.35); }
.efa-grupo-nome { font-weight: 900; font-size: .95rem; text-align: center; }
.efa-grupo-slot { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; min-height: 48px; }
.efa-grupo-slot .efa-chip { background: #bbf7d0; color: #14532d; font-size: .95rem; padding: 6px 12px; }

/* linha do tempo (História) */
.efa-linha-tempo { background: rgba(255,255,255,.14); border-radius: 18px; padding: 12px; }
.efa-lt-trilho { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 800; opacity: .9; }
.efa-lt-trilho i { flex: 1; height: 4px; border-radius: 999px; background: linear-gradient(90deg, #fcd34d, #f97316); }
.efa-lt-slots { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; min-height: 60px; counter-reset: fato; }
.efa-lt-slots:empty::before {
  content: "toque nos fatos na ordem, do mais antigo ao mais novo";
  display: block; text-align: center; font-size: .85rem; opacity: .75; padding: 14px 0;
}
.efa-lt-slots .efa-chip { width: 100%; justify-content: flex-start; background: #fde68a; }
.efa-lt-slots .efa-chip::before {
  counter-increment: fato; content: counter(fato); flex: 0 0 24px; height: 24px; margin-right: 8px;
  border-radius: 50%; background: #f97316; color: #fff; font-size: .8rem;
  display: inline-flex; align-items: center; justify-content: center;
}

/* reta numérica (Matemática) */
.efa-reta { position: relative; padding: 18px 6px 4px; }
.efa-reta-linha { position: absolute; left: 10px; right: 10px; top: 30px; height: 5px; border-radius: 999px; background: rgba(255,255,255,.55); }
.efa-reta-marcas { position: relative; display: flex; justify-content: space-between; }
.efa-reta-ponto {
  display: flex; flex-direction: column; align-items: center; gap: 20px; min-width: 44px;
  background: none; font-weight: 800; font-size: .85rem; color: #fff;
}
.efa-reta-ponto i {
  width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid #1e3a8a;
  transition: transform .12s, background .2s;
}
.efa-reta-ponto span { order: 2; }
.efa-reta-ponto i { order: 1; }
.efa-reta-ponto.is-on i { background: #facc15; border-color: #b45309; transform: scale(1.35); }
.efa-reta-ponto.is-on span { color: #fde68a; }

/* =====================================================================
   MATEMÁTICA: pizza para pintar, comparação visual e balança
   ===================================================================== */

/* pintar a fração */
.efa-fracao { display: flex; justify-content: center; padding: 6px 0; }
.efa-fig-pizza { width: min(240px, 62vw); height: min(240px, 62vw); }
.efa-fatia {
  fill: #fff; stroke: #1e3a8a; stroke-width: 1.4; cursor: pointer;
  transition: fill .15s, transform .12s; transform-origin: 50px 50px;
}
.efa-fatia:hover { fill: #fef3c7; }
.efa-fatia.is-pintado { fill: #facc15; }
.efa-fig-barra {
  display: flex; gap: 4px; width: min(320px, 88vw); padding: 6px;
  background: rgba(255,255,255,.15); border-radius: 14px;
}
.efa-pedaco {
  flex: 1; height: 62px; border-radius: 8px; background: #fff; border: 2px solid #1e3a8a;
  cursor: pointer; transition: background .15s, transform .12s;
}
.efa-pedaco:active { transform: scale(.95); }
.efa-pedaco.is-pintado { background: var(--cor, #facc15); }
.efa-fig-barra.is-fixa .efa-pedaco { cursor: default; height: 44px; }
.efa-fracao-conta { text-align: center; font-weight: 800; font-size: 1rem; margin-top: 4px; }

/* comparar duas frações */
.efa-comparar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; }
.efa-cmp-item { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.efa-cmp-rotulo { font-weight: 900; font-size: 1.2rem; }
.efa-cmp-sinal {
  width: 54px; height: 54px; border-radius: 50%; background: rgba(255,255,255,.9); color: #1e3a8a;
  display: flex; align-items: center; justify-content: center; font-size: 1.8rem; font-weight: 900;
}
.efa-cmp-botoes { display: flex; justify-content: center; gap: 10px; margin-top: 12px; }
.efa-cmp-btn {
  width: 76px; height: 68px; border-radius: 18px; background: #fff; color: #1e3a8a;
  font-size: 2rem; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.efa-cmp-btn:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.efa-cmp-btn.is-on { background: #facc15; }

/* balança */
.efa-balanca { padding: 8px 0 0; }
.efa-bal-pratos {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  transition: transform .35s ease;
}
.efa-balanca.is-equilibrando .efa-bal-pratos { animation: efa-bal-equilibra .5s ease; }
@keyframes efa-bal-equilibra { 30% { transform: rotate(-3deg); } 60% { transform: rotate(3deg); } 100% { transform: none; } }
.efa-bal-prato {
  display: flex; align-items: center; gap: 8px; min-width: 108px; min-height: 76px; padding: 10px 14px;
  border-radius: 16px 16px 6px 6px; background: rgba(255,255,255,.92); color: #1e3a8a;
  font-size: 1.5rem; font-weight: 900; justify-content: center;
  box-shadow: 0 6px 0 rgba(0,0,0,.2);
}
.efa-bal-prato b { min-width: 44px; height: 44px; border-radius: 12px; background: #fde68a; border: 3px dashed #b45309;
  display: inline-flex; align-items: center; justify-content: center; }
.efa-bal-igual { font-size: 2rem; font-weight: 900; }
.efa-bal-base { width: 70%; height: 10px; margin: 8px auto 0; border-radius: 999px; background: rgba(255,255,255,.5); }
.efa-bal-pecas { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 14px; }
.efa-bal-peca {
  min-width: 62px; min-height: 62px; border-radius: 16px; background: #fff; color: #1e3a8a;
  font-size: 1.4rem; font-weight: 900; box-shadow: 0 4px 0 rgba(0,0,0,.25);
}
.efa-bal-peca:active { transform: translateY(3px); box-shadow: 0 1px 0 rgba(0,0,0,.25); }
.efa-bal-peca.is-on { background: #facc15; }

/* =====================================================================
   PEDIDO DE CONTEÚDO SOB MEDIDA (pedido.html)
   ===================================================================== */
.ped-pagina { max-width: 46rem; margin: 0 auto; padding: 26px 16px 48px; }
.ped-titulo { font-size: clamp(1.6rem, 5.5vw, 2.3rem); font-weight: 900; color: #0f2b6b; text-align: center; }
.ped-sub { text-align: center; color: #475569; margin: 8px 0 22px; line-height: 1.5; }
.ped-form { display: flex; flex-direction: column; gap: 16px; }
.ped-linha { display: grid; gap: 14px; }
@media (min-width: 620px) { .ped-linha { grid-template-columns: 1fr 1fr; } }
.ped-campo { display: flex; flex-direction: column; gap: 5px; }
.ped-campo > span, .ped-rotulo { font-size: .85rem; font-weight: 800; color: #1e3a8a; }
.ped-campo i, .ped-rotulo i { color: #dc2626; font-style: normal; }
.ped-campo input, .ped-campo select, .ped-campo textarea {
  width: 100%; padding: 12px 14px; border-radius: 14px; border: 2px solid #d7e3ff;
  background: #fff; color: #0f172a; font-size: 1rem; font-weight: 600; min-height: 52px;
}
.ped-campo textarea { min-height: 92px; resize: vertical; line-height: 1.45; }
.ped-campo input:focus, .ped-campo select:focus, .ped-campo textarea:focus { outline: 3px solid #facc15; border-color: #2563eb; }
.ped-campo small { color: #64748b; font-size: .78rem; }

.ped-materias { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; margin-top: 6px; }
.ped-materia {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 10px 6px;
  border-radius: 16px; background: #fff; border: 2px solid #e2e8f0; transition: transform .1s, border-color .2s;
}
.ped-materia:active { transform: scale(.97); }
.ped-materia.is-on { border-color: #2563eb; background: #eef4ff; box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.ped-materia-icone { display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 14px; }
.ped-materia-nome { font-size: .8rem; font-weight: 800; color: #1e3a8a; text-align: center; }

.ped-arquivos {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center;
  margin-top: 6px; padding: 20px 16px; border-radius: 18px; cursor: pointer;
  background: #f6f9ff; border: 3px dashed #b4ccff; color: #334155; font-size: .92rem;
}
.ped-arquivos:hover { background: #eef4ff; }
.ped-arquivos-icone { font-size: 2rem; }
.ped-arquivos small { color: #64748b; font-size: .76rem; }
.ped-lista { display: flex; flex-direction: column; gap: 6px; margin-top: 8px; }
.ped-arquivo {
  display: flex; align-items: center; gap: 8px; padding: 8px 10px; border-radius: 12px;
  background: #eef4ff; font-size: .85rem; color: #1e3a8a;
}
.ped-arquivo-nome { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 700; }
.ped-arquivo-tam { font-size: .75rem; color: #64748b; }
.ped-arquivo-tirar { width: 30px; height: 30px; border-radius: 50%; background: #fff; color: #dc2626; font-weight: 900; }

.ped-msg { text-align: center; font-size: .9rem; font-weight: 700; color: #475569; min-height: 1.4em; }
.ped-msg.is-erro { color: #b91c1c; }
.ped-msg.is-ok { color: #047857; }

.ped-ok { text-align: center; padding: 30px 10px; }
.ped-ok-selo { font-size: 3.4rem; }
.ped-ok h2 { font-size: 1.9rem; font-weight: 900; color: #0f2b6b; margin-top: 6px; }
.ped-ok > p { color: #475569; margin: 8px auto 20px; max-width: 34rem; line-height: 1.5; }
.ped-passos { display: grid; gap: 10px; max-width: 34rem; margin: 0 auto 22px; }
@media (min-width: 620px) { .ped-passos { grid-template-columns: repeat(3, 1fr); } }
.ped-passos div {
  background: #f6f9ff; border-radius: 16px; padding: 14px 12px; display: flex; flex-direction: column; gap: 4px;
}
.ped-passos b { color: #1d4ed8; font-size: .9rem; }
.ped-passos span { font-size: .82rem; color: #475569; line-height: 1.4; }
.ped-ok-nota { margin-top: 16px; font-size: .85rem; color: #64748b; }

/* plano: cota semanal e link secundário */
.lp-plano-quota {
  display: inline-block; margin: -2px 0 6px; padding: 4px 10px; border-radius: 999px;
  background: #eef4ff; color: #1d4ed8; font-size: .78rem; font-weight: 800;
}
.lp-plano-zap { display: block; text-align: center; margin-top: 8px; font-size: .82rem; color: #64748b; text-decoration: underline; }
.lp-btn-ghost-claro {
  display: inline-flex; align-items: center; justify-content: center; min-height: 56px; padding: 0 22px;
  border-radius: 999px; background: rgba(255,255,255,.9); color: #1e3a8a; font-weight: 800;
  box-shadow: 0 5px 0 rgba(30,58,138,.15);
}
.lp-materia { text-decoration: none; }

/* ---------------------------------------------------------------------
   Conteudo sob medida em preparo. O aluno entra na hora; o capitulo que a
   familia pediu chega em ate 3 dias uteis e ele acompanha a espera aqui.
   --------------------------------------------------------------------- */
.efa-preparo {
  display: flex;
  gap: .75rem;
  align-items: flex-start;
  background: linear-gradient(135deg, #fffbeb, #fef3c7);
  border: 2px solid #fcd34d;
  border-radius: 1.25rem;
  padding: .9rem 1rem;
  margin-bottom: .75rem;
  color: #78350f;
}
.efa-preparo + .efa-preparo { margin-top: -.25rem; }
.efa-preparo-icone {
  font-size: 1.6rem;
  line-height: 1;
  flex: none;
  animation: efa-preparo-mexe 2.4s ease-in-out infinite;
}
.efa-preparo b { display: block; font-weight: 800; }
.efa-preparo span { display: block; font-size: .85rem; margin-top: .15rem; }
.efa-preparo small { display: block; font-size: .78rem; opacity: .85; margin-top: .3rem; font-weight: 700; }

@keyframes efa-preparo-mexe {
  0%, 100% { transform: rotate(-8deg); }
  50%      { transform: rotate(12deg); }
}
@media (prefers-reduced-motion: reduce) {
  .efa-preparo-icone { animation: none; }
}

/* ---------------------------------------------------------------------
   Visuais dos conceitos (aula de Matematica). As partes pintadas entram
   uma de cada vez: a crianca ve "3 de 4" acontecendo, nao so pronto.
   --------------------------------------------------------------------- */
.cv-caixa { display: block; width: 100%; }
.cv-svg { width: 100%; max-width: 340px; height: auto; display: block; margin: 0 auto; }
/* A animacao SO existe com a classe .cv-anima, que o JS poe num
   requestAnimationFrame. Em aba de segundo plano o navegador pausa
   animacoes: se o estado inicial fosse invisivel por padrao, o desenho
   sumia (foi o que aconteceu com as secoes da landing). Sem JS rodando,
   o desenho aparece inteiro e pronto. */
.cv-anima .cv-parte {
  transform-origin: center;
  animation: cv-pinta .45s cubic-bezier(.34, 1.56, .64, 1) both;
  animation-delay: calc(var(--i, 0) * .32s);
}
@keyframes cv-pinta {
  from { opacity: 0; transform: scale(.55); }
  to   { opacity: 1; transform: scale(1); }
}
@media (prefers-reduced-motion: reduce) {
  .cv-anima .cv-parte { animation: none; }
}
