/* ==========================================================================
   Steam Brasil SuperMentes — design system v0.2
   Lúdico para a criança, confiável para os pais. Sem frameworks, sem CDN.

   Sumário
     1. Tokens (cores, espaço, raio, sombra, tipografia, movimento)
     2. Base e acessibilidade
     3. Layout e utilitários
     4. Navegação (topo + barra inferior no celular)
     5. Componentes: botões, chips, cards, hero, progresso, radar, semana
     6. Telas: painel, trilha, missão, flashcards, desafios, descobertas,
        progresso, perfil, metodologia, relatório dos pais
     7. Impressão e movimento reduzido
     8. Trilha 4–6 (cartões de conceito), celebração, preferências,
        alto contraste e base pedagógica
     9. Modo Professor ao Vivo (painel, turmas, mapa, aula de bandeiras, relatório)
   ========================================================================== */

/* ---------------------------------------------------------------- 1. tokens */
:root {
  /* paleta base */
  --color-navy-900: #0f1a45;   /* azul profundo: confiança */
  --color-navy-800: #17245e;
  --color-blue-700: #2340c9;   /* marca */
  --color-blue-600: #2f55e4;
  --color-blue-100: #e8edff;
  --color-mint-600: #0b8f78;   /* ciência e progresso (texto) */
  --color-mint-500: #14b89a;
  --color-mint-100: #ddf7f0;
  --color-sun-400: #ffc53d;    /* energia infantil */
  --color-sun-600: #d99a00;
  --color-sun-100: #fff4d6;
  --color-orange-500: #ff8a3d;
  --color-orange-700: #a34a00;
  --color-orange-100: #fff0e3;
  --color-purple-500: #7b5cff; /* criatividade */
  --color-purple-100: #efeaff;
  --color-pink-500: #ff5c8a;
  --color-red-700: #b4233f;
  --color-red-100: #ffe8ec;
  --color-ink-900: #141a3a;
  --color-ink-600: #4b5275;
  --color-ink-400: #767c9b;
  --color-line: #e6e5ee;
  --color-track: #ecebf3;
  --color-bg: #f7f6f1;         /* off-white: clareza */
  --color-surface: #ffffff;

  /* papéis semânticos */
  --color-brand: var(--color-blue-700);
  --color-brand-strong: var(--color-navy-900);
  --color-brand-soft: var(--color-blue-100);
  --color-success: #17a673;
  --color-success-strong: #0f7a53;
  --color-success-soft: #e1f6ec;
  --color-warn: var(--color-orange-500);
  --color-warn-strong: var(--color-orange-700);
  --color-warn-soft: var(--color-orange-100);
  --color-focus: var(--color-sun-400);

  /* domínios */
  --c-memoria: #7b5cff;
  --c-matematica: #ff7a45;
  --c-logica: #13a89e;
  --c-arte: #ff5c8a;
  --c-ciencia: #2f8cff;

  /* missões */
  --m-verde: #17a673;
  --m-vermelho: #ef4b5b;
  --m-areia: #d99a2b;
  --m-azul: #2f8cff;
  --m-laranja: #ff7a45;
  --m-roxo: #7b5cff;

  /* espaço (escala 4px) */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;
  --space-8: 32px;
  --space-10: 40px;
  --space-12: 56px;

  /* raio */
  --radius-sm: 12px;
  --radius-md: 18px;
  --radius-lg: 24px;
  --radius-xl: 32px;
  --radius-pill: 999px;

  /* sombra */
  --shadow-sm: 0 1px 2px rgba(15, 26, 69, .06);
  --shadow-md: 0 1px 2px rgba(15, 26, 69, .06), 0 8px 24px rgba(15, 26, 69, .07);
  --shadow-lg: 0 2px 4px rgba(15, 26, 69, .08), 0 18px 44px rgba(15, 26, 69, .14);

  /* tipografia */
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Segoe UI Variable Display", "Segoe UI", system-ui, -apple-system, sans-serif;
  --text-sm: .88rem;
  --text-xs: .78rem;

  /* movimento */
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.2, .9, .3, 1.3);

  /* layout */
  --maxw: 1160px;
  --nav-h: 68px;

  /* aliases usados nos componentes */
  --ink: var(--color-ink-900);
  --ink-soft: var(--color-ink-600);
  --ink-mute: var(--color-ink-400);
  --bg: var(--color-bg);
  --surface: var(--color-surface);
  --line: var(--color-line);
  --track: var(--color-track);
  --brand: var(--color-brand);
  --shadow: var(--shadow-md);
}

/* ---------------------------------------------------------------- 2. base */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background:
    radial-gradient(1100px 480px at 110% -10%, #ffeedd 0, transparent 60%),
    radial-gradient(900px 480px at -10% 0, #e6ecff 0, transparent 60%),
    var(--bg);
  background-attachment: fixed;
  line-height: 1.55;
  font-size: 17px;
}
img, svg { max-width: 100%; }
img { height: auto; }
a { color: var(--color-brand); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { color: var(--color-navy-900); }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .4em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 850; }
h2 { font-size: clamp(1.3rem, 2.4vw, 1.7rem); font-weight: 800; }
h3, .h3 { font-size: 1.15rem; font-weight: 800; }
.h4 { font-size: .95rem; font-weight: 800; }
p { margin: 0 0 .8em; }
ul, ol { padding-left: 1.2em; }
kbd {
  font: inherit; font-size: .8em; font-weight: 800; padding: 1px 7px; border-radius: 6px;
  background: var(--surface); border: 1px solid var(--line); box-shadow: 0 2px 0 var(--line);
}
code { font-size: .9em; background: var(--track); padding: 1px 6px; border-radius: 6px; }

/* foco sempre visível e com contraste nos fundos claros e escuros */
:focus-visible { outline: 3px solid var(--color-focus); outline-offset: 3px; border-radius: 8px; box-shadow: 0 0 0 6px rgba(15, 26, 69, .55); }
main:focus { outline: none; }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link {
  position: absolute; left: -999px; top: 8px; background: var(--color-navy-900); color: #fff;
  padding: 10px 16px; border-radius: 10px; z-index: 100; font-weight: 800;
}
.skip-link:focus { left: 8px; color: #fff; }
.ico, .art { display: block; flex-shrink: 0; }

/* ---------------------------------------------------------------- 3. layout */
.container { width: min(100% - 32px, var(--maxw)); margin-inline: auto; }
main { padding: 28px 0 56px; min-height: 70vh; }
.stack > * + * { margin-top: var(--space-6); }
.narrow { max-width: 820px; margin-inline: auto; }
.narrow-sm { max-width: 620px; margin: 40px auto; }
.grid { display: grid; gap: var(--space-5); }
.grid-2 { grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); }
.grid-fixed-3 { grid-template-columns: repeat(3, 1fr); }
.gap-sm { gap: var(--space-3); }
.gap-lg { gap: var(--space-5); }
.row { display: flex; gap: var(--space-3); align-items: center; flex-wrap: wrap; }
.row-center { justify-content: center; }
.row-between { display: flex; gap: var(--space-4); align-items: center; justify-content: space-between; flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.muted { color: var(--ink-soft); }
.small { font-size: var(--text-sm); }
.center { text-align: center; }
.lead { font-size: 1.1rem; font-weight: 750; }
.m-0 { margin: 0; }
.mb-1 { margin-bottom: var(--space-2); }
.mb-2 { margin-bottom: var(--space-4); }
.mt-1 { margin-top: var(--space-2); }
.mt-2 { margin-top: var(--space-5); }
.w-full { width: 100%; }
.crumbs { display: flex; gap: var(--space-2) var(--space-3); flex-wrap: wrap; align-items: center; font-weight: 750; }

.page-head { display: flex; gap: var(--space-4); align-items: center; flex-wrap: wrap; }
.page-head h1 { margin: 0; }
.page-head p { margin: 4px 0 0; max-width: 70ch; }
.page-head-ico { width: 64px; height: 64px; }

/* ---------------------------------------------------------------- 4. navegação */
.topbar {
  position: sticky; top: 0; z-index: 30;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar-inner { display: flex; align-items: center; gap: 18px; min-height: var(--nav-h); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.05; }
.brand-text strong { font-size: 1.02rem; font-weight: 850; }
.brand-text span { font-size: var(--text-xs); font-weight: 800; color: var(--color-brand); letter-spacing: .06em; text-transform: uppercase; }

.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav::-webkit-scrollbar { display: none; }
.nav a {
  display: flex; align-items: center; gap: 6px; white-space: nowrap;
  padding: 9px 12px; border-radius: var(--radius-pill); text-decoration: none;
  color: var(--ink-soft); font-weight: 750; font-size: .93rem; min-height: 44px;
}
.nav a:hover { background: var(--color-brand-soft); color: var(--color-navy-900); }
.nav a[aria-current="page"] { background: var(--color-brand); color: #fff; }
.top-actions { display: flex; gap: var(--space-2); align-items: center; flex-shrink: 0; }
.profile-chip {
  display: flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: var(--radius-pill); min-height: 44px;
  background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 800; font-size: .9rem;
}
.profile-chip .avatar { width: 34px; height: 34px; font-size: 1.1rem; }
.parents-link {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px;
  padding: 8px 16px; border-radius: var(--radius-pill); background: var(--color-navy-900); color: #fff; text-decoration: none;
  font-weight: 800; font-size: var(--text-sm); white-space: nowrap;
}
.parents-link:hover { background: var(--color-navy-800); color: #fff; }

@media (min-width: 921px) and (max-width: 1340px) {
  .nav a { padding: 8px 9px; font-size: .88rem; gap: 4px; }
  .nav-ico { display: none; }
  .brand-text span { display: none; }
}
@media (min-width: 721px) and (max-width: 920px) {
  .topbar-inner { flex-wrap: wrap; padding: 10px 0 6px; gap: 10px; }
  .nav { order: 3; flex-basis: 100%; padding-bottom: 6px; }
  .profile-chip .name { display: none; }
  .top-actions { margin-left: auto; }
}
/* celular: barra inferior com os 5 destinos principais, alvos de toque ≥ 56px */
@media (max-width: 720px) {
  :root { --nav-h: 60px; }
  body { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .brand-text span { display: none; }
  .profile-chip .name { display: none; }
  .top-actions { margin-left: auto; }
  .nav {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
    display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
    padding: 6px 6px calc(6px + env(safe-area-inset-bottom));
    background: rgba(255, 255, 255, .96); border-top: 1px solid var(--line);
    box-shadow: 0 -6px 20px rgba(15, 26, 69, .08);
    backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  }
  .nav .nav-extra { display: none; }
  .nav a {
    flex-direction: column; gap: 2px; padding: 6px 2px; border-radius: 14px; min-height: 56px;
    font-size: .72rem; justify-content: center;
  }
  .nav-ico { font-size: 1.35rem; line-height: 1; }
  .nav a[aria-current="page"] { background: var(--color-brand-soft); color: var(--color-navy-900); }
  .nav a[aria-current="page"] .nav-txt { font-weight: 900; text-decoration: underline; text-underline-offset: 3px; }
  .toasts { bottom: calc(84px + env(safe-area-inset-bottom)); }
}

/* ---------------------------------------------------------------- toasts */
.toasts { position: fixed; right: 16px; bottom: 16px; display: grid; gap: 10px; z-index: 50; max-width: min(420px, calc(100% - 32px)); }
.toast {
  background: var(--color-navy-900); color: #fff; padding: 14px 18px; border-radius: 16px; border-left: 6px solid var(--color-sun-400);
  box-shadow: var(--shadow-lg); font-weight: 750; animation: toast-in .35s var(--ease-spring);
}
.toast-ok { border-left-color: var(--color-mint-500); }
.toast-review { border-left-color: var(--color-orange-500); }
.toast.hide { animation: toast-out .3s forwards; }
@keyframes toast-in { from { transform: translateY(20px) scale(.96); opacity: 0; } }
@keyframes toast-out { to { transform: translateY(10px); opacity: 0; } }

/* ---------------------------------------------------------------- 5. botões */
.btn {
  --b: var(--color-brand); --b-dark: var(--color-navy-900); --b-ink: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 13px 22px; border-radius: 16px; border: 0; cursor: pointer; text-align: center;
  background: var(--b); color: var(--b-ink); font: inherit; font-weight: 850; font-size: 1rem; line-height: 1.2;
  text-decoration: none; box-shadow: 0 4px 0 var(--b-dark); transition: transform .08s, box-shadow .08s, filter .15s;
  min-height: 48px;
}
.btn:hover { filter: brightness(1.07); color: var(--b-ink); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--b-dark); }
.btn-primary { --b: var(--color-brand); --b-dark: var(--color-navy-900); }
.btn-lg { padding: 16px 28px; font-size: 1.1rem; border-radius: 18px; min-height: 58px; }
.btn-sun { --b: var(--color-sun-400); --b-dark: var(--color-sun-600); --b-ink: var(--color-navy-900); }
.btn-success { --b: var(--color-success); --b-dark: var(--color-success-strong); }
.btn-warn { --b: #fff; --b-dark: #f2c79c; --b-ink: var(--color-orange-700); border: 2px solid #f6c89a; }
.btn-ghost { --b: #fff; --b-dark: var(--line); --b-ink: var(--ink); border: 2px solid var(--line); }
.btn-ghost-dark { --b: rgba(255, 255, 255, .12); --b-dark: rgba(0, 0, 0, .25); --b-ink: #fff; border: 2px solid rgba(255, 255, 255, .45); }
.btn-dark { --b: var(--color-navy-900); --b-dark: #000; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; cursor: not-allowed; filter: grayscale(.4); }

/* ---------------------------------------------------------------- chips */
.chip {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: var(--radius-pill);
  font-size: .8rem; font-weight: 800; background: var(--track); color: var(--ink-soft); white-space: nowrap;
}
.chip-lg { font-size: 1rem; padding: 8px 14px; }
.chip-novo { background: #eef0f6; color: #4d5470; }
.chip-aprendendo { background: var(--color-warn-soft); color: var(--color-warn-strong); }
.chip-dominado, .chip-resolvido { background: var(--color-success-soft); color: var(--color-success-strong); }
.chip-revisar { background: var(--color-red-100); color: var(--color-red-700); }
.chip-tentado { background: var(--color-warn-soft); color: var(--color-warn-strong); }
.chip-brand { background: var(--color-brand-soft); color: var(--color-navy-900); }
.chip-on-dark { background: rgba(255, 255, 255, .16); color: #fff; }

.avatar {
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; font-size: 1.8rem;
  background: var(--color-brand-soft); flex-shrink: 0;
}
.avatar.xl { width: 96px; height: 96px; font-size: 3.2rem; }
.avatar.laranja { background: #ffe7d9; } .avatar.azul { background: var(--color-blue-100); } .avatar.roxo { background: var(--color-purple-100); } .avatar.verde { background: #dcf5e8; }

/* ---------------------------------------------------------------- cards */
.card {
  background: var(--surface); border-radius: var(--radius-lg); padding: var(--space-6);
  box-shadow: var(--shadow-md); border: 1px solid rgba(230, 229, 238, .8); position: relative;
}
.card.tight { padding: 18px; }
.card-link { text-decoration: none; color: inherit; display: block; transition: transform .15s var(--ease-out), box-shadow .15s; }
.card-link:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); color: inherit; }
.card-accent { border-top: 6px solid var(--accent, var(--color-brand)); }
.accent-sun { --accent: var(--color-sun-400); }
.accent-sun .eyebrow { color: #8a6100; }
.card-head { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; }
.icon-bubble {
  width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0;
  font-size: 1.7rem; background: color-mix(in srgb, var(--accent, var(--color-brand)) 14%, white);
}
.icon-bubble.lg { width: 72px; height: 72px; font-size: 2.4rem; border-radius: 22px; }
.eyebrow {
  font-size: var(--text-xs); font-weight: 850; text-transform: uppercase; letter-spacing: .08em; margin-bottom: 4px;
  color: color-mix(in srgb, var(--accent, var(--color-brand)) 75%, black);
}
.empty-state { text-align: center; padding: 40px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-art { width: 120px; }

/* ---------------------------------------------------------------- hero */
.hero {
  border-radius: var(--radius-xl); padding: clamp(24px, 4vw, 44px); color: #fff; position: relative; overflow: hidden;
  background:
    radial-gradient(600px 300px at 92% 0, rgba(255, 197, 61, .38), transparent 60%),
    radial-gradient(500px 300px at 0 110%, rgba(20, 184, 154, .38), transparent 60%),
    linear-gradient(135deg, var(--color-blue-600), var(--color-navy-900));
  box-shadow: var(--shadow-lg);
}
.hero::after { /* constelação sutil de fundo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(2px 2px at 12% 22%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 38% 80%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 64% 16%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 82% 70%, #fff 50%, transparent 51%);
}
.hero > * { position: relative; z-index: 1; }
.hero h1 { color: #fff; }
.hero p { color: rgba(255, 255, 255, .9); font-size: 1.08rem; max-width: 62ch; }
.hero .eyebrow { color: var(--color-sun-400); }
.hero a:not(.btn) { color: #fff; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 28px; align-items: center; }
.hero-visual { display: flex; flex-direction: column; align-items: center; gap: 12px; position: relative; }
.hero-mascot { width: clamp(130px, 18vw, 200px); filter: drop-shadow(0 14px 24px rgba(0, 0, 0, .28)); animation: float 5s ease-in-out infinite; }
.hero-duo { flex-direction: row; justify-content: center; align-items: flex-end; }
.hero-rocket { width: clamp(90px, 12vw, 150px); animation: float 6s ease-in-out infinite; animation-delay: -2s; }
.hero-passport { width: clamp(160px, 20vw, 220px); transform: rotate(-4deg); filter: drop-shadow(0 12px 20px rgba(0, 0, 0, .25)); }
.hero-constellation { width: clamp(180px, 24vw, 280px); border-radius: var(--radius-lg); box-shadow: 0 0 0 6px rgba(255, 255, 255, .12); }
.hero-ring { position: absolute; right: -6px; bottom: -6px; --size: 92px !important; }
.hero-note { font-weight: 750; color: rgba(255, 255, 255, .88); font-size: var(--text-sm); }
.cycle-chips { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cycle-chips .chip { padding: 6px 12px; }
@keyframes float { 50% { transform: translateY(-8px) rotate(1.5deg); } }
@media (max-width: 760px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; flex-direction: row; justify-content: center; }
  .hero-ring { position: static; }
  .hero-mascot { width: 120px; }
}

/* trilha de etapas da missão (hero do painel) */
.trail { list-style: none; padding: 0; margin: 18px 0 22px; display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; counter-reset: trail; }
.trail-step {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; position: relative;
  padding: 12px 6px 10px; border-radius: 18px; background: rgba(255, 255, 255, .1); border: 2px solid rgba(255, 255, 255, .18);
}
.trail-step:not(:last-child)::after {
  content: ""; position: absolute; top: 36px; right: -10px; width: 12px; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .35);
}
.trail-ico { width: 40px; height: 40px; border-radius: 12px; }
.trail-name { font-weight: 850; font-size: .92rem; }
.trail-count { font-size: var(--text-xs); font-weight: 800; color: rgba(255, 255, 255, .85); }
.trail-step.done { background: rgba(20, 184, 154, .28); border-color: var(--color-mint-500); }
.trail-step.done .trail-count { color: #c9fff1; }
.trail-step.now { background: rgba(255, 197, 61, .22); border-color: var(--color-sun-400); box-shadow: 0 0 0 4px rgba(255, 197, 61, .25); }
.trail-step.now .trail-count::before { content: "agora · "; }
@media (max-width: 480px) { .trail { grid-template-columns: repeat(2, 1fr); } .trail-step::after { display: none; } }

/* ---------------------------------------------------------------- progresso */
.bar { height: 14px; border-radius: var(--radius-pill); background: var(--track); overflow: hidden; }
.bar > span {
  display: block; height: 100%; width: calc(var(--p, 0) * 1%); border-radius: inherit;
  background: linear-gradient(90deg, var(--accent, var(--color-brand)), color-mix(in srgb, var(--accent, var(--color-brand)) 65%, white));
  transition: width .6s var(--ease-out);
}
.bar.thin { height: 8px; }
.bar.on-dark { background: rgba(255, 255, 255, .22); }
.bar.on-dark > span { background: linear-gradient(90deg, var(--color-sun-400), #ffe28a); }

.ring {
  --size: 120px; --p: 0; --accent: var(--color-brand);
  width: var(--size); height: var(--size); border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: conic-gradient(var(--accent) calc(var(--p) * 1%), var(--track) 0);
}
.ring::before { content: ""; grid-area: 1 / 1; width: 76%; height: 76%; border-radius: 50%; background: var(--surface); }
.ring > * { grid-area: 1 / 1; position: relative; text-align: center; line-height: 1.05; }
.ring strong { font-size: calc(var(--size) * .24); font-weight: 900; display: block; }
.ring span { font-size: .72rem; color: var(--ink-soft); font-weight: 800; }
.ring.sm { --size: 72px; }
.ring.on-dark { background: conic-gradient(var(--color-sun-400) calc(var(--p) * 1%), rgba(255, 255, 255, .25) 0); }
.ring.on-dark::before { background: var(--color-navy-800); }
.ring.on-dark strong { color: #fff; } .ring.on-dark span { color: rgba(255, 255, 255, .85); }

.stat { display: flex; flex-direction: column; gap: 2px; }
.stat strong { font-size: 2rem; font-weight: 900; line-height: 1; }
.stat strong small { font-size: 1rem; color: var(--ink-soft); }
.stat span { color: var(--ink-soft); font-weight: 700; font-size: .9rem; }
.stat-card { display: flex; gap: 14px; align-items: center; }

/* domínios */
.domain { --accent: var(--color-brand); }
.domain-memoria { --accent: var(--c-memoria); }
.domain-matematica { --accent: var(--c-matematica); }
.domain-logica { --accent: var(--c-logica); }
.domain-arte { --accent: var(--c-arte); }
.domain-ciencia { --accent: var(--c-ciencia); }
.domain-row { display: grid; grid-template-columns: 44px 1fr auto; gap: 12px; align-items: center; padding: 10px 0; }
.domain-row + .domain-row { border-top: 1px dashed var(--line); }
.domain-row-ico { width: 44px; height: 44px; }
.domain-row .label { display: flex; justify-content: space-between; gap: 8px; font-weight: 800; margin-bottom: 6px; }
.domain-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 8px; }
.domain-card {
  display: flex; gap: 12px; align-items: center; padding: 12px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent) 7%, white); border: 1px solid color-mix(in srgb, var(--accent) 20%, white);
}
.domain-card-ico { width: 48px; height: 48px; }
.domain-card-body { flex: 1; min-width: 0; display: grid; gap: 6px; justify-items: start; }
.domain-card-head { display: flex; justify-content: space-between; width: 100%; gap: 6px; align-items: baseline; }
.domain-card h3 { font-size: .95rem; margin: 0; }
.domain-card-pct { font-size: .95rem; }
.domain-card .bar { width: 100%; }

.missao-verde { --accent: var(--m-verde); } .missao-vermelho { --accent: var(--m-vermelho); }
.missao-areia { --accent: var(--m-areia); } .missao-azul { --accent: var(--m-azul); }
.missao-laranja { --accent: var(--m-laranja); } .missao-roxo { --accent: var(--m-roxo); }

/* radar */
.radar { margin: 0 auto; max-width: 360px; }
.radar svg { display: block; width: 100%; height: auto; overflow: visible; }
.radar-sm { max-width: 320px; }
.radar-grade { fill: none; stroke: var(--line); stroke-width: 1.2; }
.radar-grade:last-of-type { stroke: #d6d5e2; }
.radar-eixo { stroke: var(--line); stroke-width: 1; }
.radar-area { fill: rgba(47, 85, 228, .18); stroke: var(--color-brand); stroke-width: 2.5; stroke-linejoin: round; }
.radar-ponto { fill: var(--accent); stroke: #fff; stroke-width: 2; }
.radar-rotulo { font-size: 12px; font-weight: 800; fill: var(--ink); font-family: var(--font); }
.radar-pct { fill: var(--ink-soft); font-weight: 700; }

/* semana */
.week-days { list-style: none; padding: 0; margin: 0 0 10px; display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; }
.week-day { display: flex; flex-direction: column; align-items: center; gap: 4px; }
.week-dot {
  width: 100%; max-width: 42px; aspect-ratio: 1; border-radius: 12px; display: grid; place-items: center;
  background: var(--track); color: var(--ink-mute); font-weight: 900; border: 2px solid transparent;
}
.week-day.on .week-dot { background: var(--color-success); color: #fff; }
.week-day.today .week-dot { border-color: var(--color-brand); }
.week-label { font-size: .72rem; font-weight: 800; color: var(--ink-soft); }
.week-day.today .week-label { color: var(--color-brand); }
.week-streak { margin: 0 0 6px; font-weight: 750; }

/* próximo passo */
.next-step {
  display: grid; grid-template-columns: auto 1fr auto; gap: 18px; align-items: center;
  padding: 20px 24px; border-radius: var(--radius-lg); background: var(--surface);
  border: 2px solid var(--color-sun-400); box-shadow: 0 6px 0 var(--color-sun-100), var(--shadow-md);
}
.next-step-ico { width: 64px; height: 64px; }
.next-step h2 { margin: 0 0 4px; font-size: 1.3rem; }
.next-step p { margin: 0; color: var(--ink-soft); }
.next-step .eyebrow { color: #8a6100; }
@media (max-width: 720px) { .next-step { grid-template-columns: auto 1fr; } .next-step-cta { grid-column: 1 / -1; width: 100%; } }

/* atividades do painel */
.activity { display: flex; flex-direction: column; gap: 4px; border-top: 6px solid var(--accent); }
.activity-ico { width: 56px; height: 56px; margin-bottom: 6px; }
.activity h3 { margin: 0; }
.activity p { flex: 1; margin: 6px 0 10px; }
.activity-go { font-weight: 850; color: color-mix(in srgb, var(--accent) 70%, black); }
.activity:hover .activity-go { text-decoration: underline; text-underline-offset: 3px; }

/* faixa da jornada (painel) */
.journey-strip { list-style: none; padding: 0; margin: 16px 0 0; display: grid; grid-template-columns: repeat(7, minmax(92px, 1fr)); gap: 8px; overflow-x: auto; }
.journey-stop a {
  display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; text-decoration: none; color: var(--ink);
  padding: 10px 6px; border-radius: var(--radius-md);
}
.journey-stop a:hover { background: var(--bg); color: var(--ink); }
.journey-node {
  width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; position: relative;
  background: var(--surface); border: 4px solid var(--line);
}
.journey-state {
  position: absolute; right: -6px; bottom: -4px; min-width: 24px; height: 24px; border-radius: 12px; padding: 0 4px;
  font-size: .72rem; display: grid; place-items: center; background: var(--track); color: var(--ink-soft); border: 2px solid #fff; font-weight: 900;
}
.journey-name { font-weight: 800; font-size: .82rem; line-height: 1.2; }
.journey-label { font-size: .72rem; font-weight: 800; color: var(--ink-soft); }
.is-concluida .journey-node { border-color: var(--color-success); background: var(--color-success-soft); }
.is-concluida .journey-state { background: var(--color-success); color: #fff; }
.is-atual .journey-node { border-color: var(--accent); box-shadow: 0 0 0 5px color-mix(in srgb, var(--accent) 22%, transparent); }
.is-atual .journey-state { background: var(--color-sun-400); color: var(--color-navy-900); }
.is-atual .journey-label { color: var(--color-brand); }
.is-em_andamento .journey-node { border-color: color-mix(in srgb, var(--accent) 55%, white); }
.is-bloqueada .journey-node { filter: grayscale(.7); opacity: .75; border-style: dashed; }

/* ---------------------------------------------------------------- conquistas */
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; }
.badge {
  --rar: var(--color-ink-400);
  text-align: center; padding: 26px 12px 16px; border-radius: 20px; background: var(--surface); border: 2px solid var(--line);
  display: flex; flex-direction: column; align-items: center; gap: 6px; position: relative;
}
.badge.rarity-comum { --rar: #5d6480; }
.badge.rarity-rara { --rar: var(--color-blue-700); }
.badge.rarity-epica { --rar: #6a3fe0; }
.badge.rarity-lendaria { --rar: #a36b00; }
.badge:not(.locked) { border-color: color-mix(in srgb, var(--rar) 40%, white); background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 8%, white), #fff 60%); }
.badge-rarity {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  padding: 2px 10px; border-radius: 0 0 10px 10px; font-size: .68rem; font-weight: 900; letter-spacing: .06em; text-transform: uppercase;
  background: var(--rar); color: #fff; white-space: nowrap;
}
.badge .medal {
  width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: radial-gradient(circle at 30% 30%, #fff6d1, var(--color-sun-400)); box-shadow: 0 4px 0 var(--color-sun-600), inset 0 0 0 4px rgba(255, 255, 255, .6);
}
.badge.rarity-epica:not(.locked) .medal { background: radial-gradient(circle at 30% 30%, #f3edff, #a88bff); box-shadow: 0 4px 0 #6a3fe0, inset 0 0 0 4px rgba(255, 255, 255, .6); }
.badge.rarity-lendaria:not(.locked) .medal { box-shadow: 0 4px 0 var(--color-sun-600), 0 0 0 6px rgba(255, 197, 61, .3), inset 0 0 0 4px rgba(255, 255, 255, .6); }
.badge.locked .medal { background: var(--track); box-shadow: 0 4px 0 #d8d5e6; filter: grayscale(1); opacity: .6; }
.badge.locked .badge-rarity { background: #8b8fa6; }
.badge strong { font-size: .95rem; line-height: 1.2; }
.badge small { color: var(--ink-soft); font-size: var(--text-xs); line-height: 1.3; }
.badge-cat { font-size: .72rem; font-weight: 800; color: var(--ink-soft); }
.badge .bar { width: 100%; margin-top: 4px; }

/* ---------------------------------------------------------------- 6. trilha */
.world-card { overflow: hidden; }
.legend { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 14px; font-weight: 750; }
.legend li { display: flex; align-items: center; gap: 6px; }
.pin-sample { width: 24px; height: 24px; border-radius: 50%; display: inline-grid; place-items: center; font-size: .7rem; font-weight: 900; border: 3px solid var(--line); background: #fff; }
.pin-sample.is-concluida { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.pin-sample.is-atual { background: var(--color-sun-400); border-color: var(--color-navy-900); }
.pin-sample.is-em_andamento { border-color: var(--color-brand); color: var(--color-brand); }
.pin-sample.is-bloqueada { border-style: dashed; font-size: .6rem; }

.world-map { position: relative; margin-top: 16px; aspect-ratio: 400 / 220; }
.world-map-img { width: 100%; height: 100%; border-radius: var(--radius-lg); }
.world-route { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-route polyline { fill: none; stroke: var(--color-brand); stroke-width: 2; stroke-dasharray: 5 6; stroke-linecap: round; opacity: .55; }
.world-pins { list-style: none; padding: 0; margin: 0; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }
.pin a {
  width: clamp(36px, 6vw, 52px); height: clamp(36px, 6vw, 52px); border-radius: 50% 50% 50% 8px; transform: rotate(-45deg);
  display: grid; place-items: center; text-decoration: none; background: #fff; color: var(--ink);
  border: 3px solid var(--accent); box-shadow: 0 6px 14px rgba(15, 26, 69, .22); transition: transform .15s;
}
.pin a:hover { transform: rotate(-45deg) scale(1.12); }
.pin-num { transform: rotate(45deg); font-weight: 900; font-size: clamp(.85rem, 2vw, 1.15rem); }
.pin-state {
  position: absolute; right: -10px; top: -10px; transform: rotate(45deg);
  width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .65rem; font-weight: 900;
  background: var(--track); border: 2px solid #fff;
}
.pin.is-concluida a { background: var(--color-success); border-color: var(--color-success-strong); color: #fff; }
.pin.is-concluida .pin-state { background: #fff; color: var(--color-success-strong); }
.pin.is-atual a { background: var(--color-sun-400); border-color: var(--color-navy-900); animation: pin-bounce 1.8s var(--ease-out) infinite; }
.pin.is-atual .pin-state { background: var(--color-navy-900); color: #fff; }
.pin.is-bloqueada a { background: #f3f3f7; border-style: dashed; border-color: #aeb1c4; color: var(--ink-soft); }
@keyframes pin-bounce { 0%, 100% { transform: rotate(-45deg) translate(0, 0); } 50% { transform: rotate(-45deg) translate(3px, -3px); } }

.journey { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; position: relative; }
.journey::before {
  content: ""; position: absolute; left: 39px; top: 40px; bottom: 40px; width: 6px; border-radius: 6px;
  background: repeating-linear-gradient(to bottom, #d6d5e2 0 12px, transparent 12px 22px);
}
.mission-card {
  display: grid; grid-template-columns: 84px 1fr; gap: 16px; align-items: center; position: relative;
  text-decoration: none; color: var(--ink); padding: 14px 18px 14px 0;
}
.mission-card:hover { color: var(--ink); }
.mission-card:hover .mission-body { box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.mission-node {
  width: 84px; height: 84px; border-radius: 50%; display: grid; place-items: center; font-size: 2.2rem; position: relative; z-index: 1;
  background: var(--surface); border: 6px solid var(--line); box-shadow: var(--shadow-md);
}
.mission-node-state {
  position: absolute; right: -4px; bottom: -4px; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; font-size: .85rem; font-weight: 900; border: 3px solid #fff; background: var(--track); color: var(--ink-soft);
}
.mission-body {
  display: grid; gap: 6px; padding: 16px 18px; border-radius: var(--radius-lg); background: var(--surface);
  box-shadow: var(--shadow-md); border-left: 6px solid var(--accent); transition: transform .15s, box-shadow .15s;
}
.mission-meta { font-size: var(--text-xs); font-weight: 850; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-soft); }
.mission-state { color: var(--ink); }
.mission-title { font-size: 1.15rem; }
.mission-flags { display: flex; gap: 6px; }
.flag-mini { width: 30px; height: 20px; border-radius: 4px; box-shadow: 0 0 0 1px var(--line); }
.mission-pct { color: var(--ink-soft); font-weight: 700; }
.mission-card.is-concluida .mission-node { border-color: var(--color-success); background: var(--color-success-soft); }
.mission-card.is-concluida .mission-node-state { background: var(--color-success); color: #fff; }
.mission-card.is-concluida .mission-state { color: var(--color-success-strong); }
.mission-card.is-atual .mission-node { border-color: var(--accent); animation: pulse 2.2s infinite; }
.mission-card.is-atual .mission-node-state { background: var(--color-sun-400); color: var(--color-navy-900); }
.mission-card.is-atual .mission-body { box-shadow: 0 0 0 3px var(--color-sun-400), var(--shadow-md); }
.mission-card.is-atual .mission-state { color: var(--color-brand); }
.mission-card.is-bloqueada .mission-node { filter: grayscale(.8); opacity: .7; border-style: dashed; }
.mission-card.is-bloqueada .mission-body { background: #fbfbfd; }
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 40%, transparent); } 50% { box-shadow: 0 0 0 14px transparent; } }
@media (min-width: 900px) {
  .journey-item:nth-child(even) .mission-card { margin-left: 64px; }
  .journey::before { display: none; }
}
@media (max-width: 520px) {
  .mission-card { grid-template-columns: 64px 1fr; gap: 10px; padding-right: 0; }
  .mission-node { width: 64px; height: 64px; font-size: 1.7rem; border-width: 4px; }
  .journey::before { left: 29px; }
}

/* mapa mental */
.world { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 14px; margin-top: 16px; }
.continent { background: var(--bg); border-radius: var(--radius-md); padding: 14px; }
.continent h3 { margin-bottom: 10px; color: var(--ink-soft); }
.flags { display: flex; flex-wrap: wrap; gap: 8px; }
.flag {
  width: 58px; height: 44px; border-radius: 12px; display: grid; place-items: center; text-decoration: none; position: relative;
  background: #fff; border: 3px solid var(--line); padding: 4px;
}
.flag .flag-img { width: 100%; height: 100%; border-radius: 4px; object-fit: cover; }
.flag.aprendendo { border-color: #ffc58f; }
.flag.dominado { border-color: var(--color-success); }
.flag.novo .flag-img { filter: grayscale(.85); opacity: .55; }
.flag-star { position: absolute; top: -9px; right: -9px; font-size: .9rem; }

/* ---------------------------------------------------------------- missão */
.steps { display: grid; gap: 18px; }
.step { display: grid; grid-template-columns: 64px 1fr; gap: 16px; }
.step-num { width: 64px; height: 64px; position: relative; }
.step-ico { width: 64px; height: 64px; }
.step.done .step-num::after {
  content: "✓"; position: absolute; right: -6px; top: -6px; width: 26px; height: 26px; border-radius: 50%;
  background: var(--color-success); color: #fff; font-size: .8rem; font-weight: 900; display: grid; place-items: center; border: 2px solid #fff;
}
.mini-list { list-style: none; padding: 0; margin: 12px 0; display: grid; gap: 10px; }
.mini-item {
  display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 14px; background: var(--bg);
  text-decoration: none; color: inherit; font-weight: 700;
}
a.mini-item:hover { background: var(--color-brand-soft); color: inherit; }
.mini-item .grow { flex: 1; min-width: 0; }
.mini-item .emoji { font-size: 1.6rem; }
.mini-flag { width: 42px; height: 28px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.mini-ico { width: 44px; height: 44px; }
.stepper { display: flex; gap: 8px; flex-wrap: wrap; }
.stepper .chip { padding: 6px 12px; }

/* ---------------------------------------------------------------- flashcards */
.fc-layout { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 24px; align-items: start; }
@media (max-width: 900px) { .fc-layout { grid-template-columns: 1fr; } }
.fc-session { display: grid; gap: 8px; margin-bottom: 14px; padding: 12px 16px; background: var(--surface); border-radius: var(--radius-md); border: 1px solid var(--line); }

.fc { perspective: 1600px; position: relative; scroll-margin-top: calc(var(--nav-h) + 16px); }
.fc-inner { display: grid; transform-style: preserve-3d; transition: transform .6s var(--ease-out); }
.fc-face {
  grid-area: 1 / 1; backface-visibility: hidden; -webkit-backface-visibility: hidden;
  border-radius: 30px; background: var(--surface); box-shadow: var(--shadow-lg); border: 1px solid var(--line);
  padding: 34px 28px 28px; position: relative; min-height: 440px;
}
.fc-front {
  text-align: center; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
  background: linear-gradient(165deg, #fff 30%, var(--color-brand-soft));
}
.fc-back { transform: rotateY(180deg); visibility: hidden; transition: visibility 0s .3s; background: linear-gradient(165deg, #fff 40%, var(--color-mint-100)); }
.fc-back:focus { outline: none; }
.fc.is-flipped .fc-inner, .no-js .fc:target .fc-inner { transform: rotateY(180deg); }
.fc.is-flipped .fc-back, .no-js .fc:target .fc-back { visibility: visible; transition-delay: 0s; }
.fc.is-flipped .fc-front, .no-js .fc:target .fc-front { visibility: hidden; transition: visibility 0s .3s; }
.fc-side-tag {
  position: absolute; top: 16px; left: 18px; font-size: .72rem; font-weight: 900; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 10px; border-radius: var(--radius-pill); background: var(--color-navy-900); color: #fff;
}
.fc-back .fc-side-tag { background: var(--color-mint-600); }
.fc-flag { width: clamp(150px, 34vw, 220px); border-radius: 14px; box-shadow: 0 12px 26px rgba(15, 26, 69, .22), 0 0 0 1px var(--line); margin-bottom: 10px; }
.fc-country { font-size: clamp(1.9rem, 4vw, 2.5rem); font-weight: 900; }
.fc-prompt { color: var(--ink-soft); font-weight: 750; margin: 0; }
.fc-meta { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center; margin: 8px 0 14px; }
.leitner { display: inline-flex; align-items: center; gap: 4px; padding: 4px 10px; border-radius: var(--radius-pill); background: #fff; border: 1px solid var(--line); }
.leitner-dot { width: 10px; height: 10px; border-radius: 3px; background: var(--track); }
.leitner-dot.on { background: var(--color-mint-500); }
.leitner-txt { font-size: .75rem; font-weight: 800; color: var(--ink-soft); margin-left: 4px; }
.fc-keys { margin: 10px 0 0; }
.no-js .fc-keys { display: none; }
.fc-back-head { display: flex; align-items: center; gap: 10px; margin: 18px 0 14px; font-size: 1.4rem; }
.fc-flag-sm { width: 54px; border-radius: 6px; box-shadow: 0 0 0 1px var(--line); }
.fc-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 14px; }
.fc-fact { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.fc-fact span { display: block; font-size: var(--text-xs); font-weight: 850; color: var(--ink-mute); text-transform: uppercase; letter-spacing: .06em; }
.fc-fact strong { font-size: 1.35rem; }
.fc-curio { background: var(--color-sun-100); border-radius: 16px; padding: 14px 16px; margin-bottom: 14px; }
.fc-ask { font-weight: 850; text-align: center; margin: 0 0 10px; }
.fc-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 480px) { .fc-actions, .fc-facts { grid-template-columns: 1fr; } .fc-face { min-height: 0; padding: 40px 18px 22px; } }

/* feedback visual depois de responder (JS) */
.fc.is-answered-ok .fc-back { box-shadow: 0 0 0 5px var(--color-success), var(--shadow-lg); }
.fc.is-answered-review .fc-back { box-shadow: 0 0 0 5px var(--color-warn), var(--shadow-lg); animation: nudge .4s; }
.fc-burst { position: absolute; inset: 0; pointer-events: none; display: grid; place-items: center; font-size: 4.5rem; }
.fc.is-answered-ok .fc-burst::after { content: "🎉"; animation: pop .5s var(--ease-spring) forwards; }
.fc.is-answered-review .fc-burst::after { content: "🔁"; animation: pop .5s var(--ease-spring) forwards; }
@keyframes pop { from { transform: scale(.3); opacity: 0; } 60% { opacity: 1; } to { transform: scale(1.2); opacity: .95; } }
@keyframes nudge { 25% { transform: rotateY(180deg) translateX(-6px); } 75% { transform: rotateY(180deg) translateX(6px); } }

.deck { display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 10px; }
.deck-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 12px 8px; border-radius: 16px;
  background: var(--surface); border: 2px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 750; font-size: var(--text-sm); text-align: center;
}
.deck-item:hover { border-color: var(--color-brand); color: var(--ink); }
.deck-item.is-current { border-color: var(--color-brand); background: var(--color-brand-soft); box-shadow: 0 3px 0 var(--color-brand); }
.deck-flag { width: 48px; height: 32px; border-radius: 5px; box-shadow: 0 0 0 1px var(--line); }
.deck-item.is-novo .deck-flag { filter: grayscale(.5); }
.filter-bar { display: flex; gap: 8px; flex-wrap: wrap; }
.filter-bar a {
  padding: 8px 14px; border-radius: var(--radius-pill); background: var(--surface); border: 2px solid var(--line); min-height: 44px;
  display: inline-flex; align-items: center; text-decoration: none; color: var(--ink-soft); font-weight: 800; font-size: .9rem;
}
.filter-bar a:hover { border-color: var(--color-brand); color: var(--ink); }
.filter-bar a[aria-current="true"] { background: var(--color-navy-900); border-color: var(--color-navy-900); color: #fff; }

/* ---------------------------------------------------------------- desafios */
.challenge-card { display: flex; flex-direction: column; gap: 10px; height: 100%; border-top: 6px solid var(--accent); }
.challenge-card h3 { margin: 4px 0 0; }
.challenge-card p { flex: 1; margin: 0; }
.challenge-card.is-resolvido { background: linear-gradient(180deg, var(--color-success-soft), #fff 45%); }
.challenge-ico { width: 44px; height: 44px; }
.challenge { border-top: 6px solid var(--accent); }
.challenge-title { margin-top: 16px; }
.enunciado { font-size: 1.25rem; font-weight: 750; }
.options { list-style: none; display: grid; gap: 12px; margin: 18px 0; border: 0; padding: 0; }
.option { position: relative; }
.option input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.option label, .option-box {
  display: flex; align-items: center; gap: 14px; padding: 16px 18px; border-radius: 18px; min-height: 64px;
  background: var(--surface); border: 3px solid var(--line); font-weight: 800; font-size: 1.08rem; box-shadow: 0 4px 0 var(--line);
  transition: border-color .12s, background .12s, transform .12s;
}
.option label { cursor: pointer; }
.option .letter {
  width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); font-weight: 900; flex-shrink: 0;
}
.option-check { margin-left: auto; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; border: 3px solid var(--line); color: transparent; font-weight: 900; flex-shrink: 0; }
.option label:hover { border-color: #b9c4f6; transform: translateY(-1px); }
.option input:checked + label { border-color: var(--color-brand); background: var(--color-brand-soft); box-shadow: 0 4px 0 var(--color-brand); }
.option input:checked + label .letter { background: var(--color-brand); color: #fff; }
.option input:checked + label .option-check { background: var(--color-brand); border-color: var(--color-brand); color: #fff; }
.option input:focus-visible + label { outline: 3px solid var(--color-focus); outline-offset: 3px; box-shadow: 0 0 0 6px rgba(15, 26, 69, .45); }
.option.is-correct .option-box { border-color: var(--color-success); background: var(--color-success-soft); box-shadow: 0 4px 0 var(--color-success); }
.option.is-correct .letter { background: var(--color-success); color: #fff; }
.option.is-wrong .option-box { border-color: #f5a3b2; background: #fff0f3; box-shadow: 0 4px 0 #f5a3b2; }
.option-tag { margin-left: auto; }
.no-js .hint-js { display: none; }
.hint-js { margin: 10px 0 0; }

.feedback { border-radius: 22px; padding: 22px; margin-top: 8px; display: grid; gap: 14px; animation: rise .35s var(--ease-out); }
.feedback:focus { outline: none; }
.feedback.ok { background: var(--color-success-soft); border: 2px solid #9fe0c2; }
.feedback.nope { background: var(--color-warn-soft); border: 2px solid #ffd2a6; }
.feedback h2 { margin: 0 0 4px; }
.feedback-head { display: flex; gap: 14px; align-items: center; }
.feedback-ico { width: 64px; height: 64px; }
.feedback-mascot { width: 64px; }
.explain-card { background: #fff; border-radius: 18px; padding: 16px 18px; border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.explain-card h3 { margin-bottom: 6px; }
details.explain summary { cursor: pointer; font-weight: 850; color: var(--color-brand); min-height: 32px; }
details.explain p { margin: 10px 0 0; }
.strategy { margin: 0; padding: 12px 14px; border-radius: 14px; background: rgba(255, 255, 255, .7); border: 1px dashed #c9c8d8; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } }

.mission-progress { background: var(--surface); border-radius: var(--radius-md); padding: 14px 18px; border: 1px solid var(--line); border-left: 6px solid var(--accent); }
.dots { list-style: none; padding: 0; margin: 10px 0 0; display: flex; gap: 8px; flex-wrap: wrap; }
.dot-step a {
  display: flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: var(--radius-pill);
  text-decoration: none; color: var(--ink-soft); background: var(--bg); font-weight: 750; font-size: var(--text-sm); min-height: 44px;
}
.dot-num { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; background: #fff; border: 2px solid var(--line); }
.dot-step.is-resolvido .dot-num { background: var(--color-success); border-color: var(--color-success); color: #fff; }
.dot-step.is-tentado .dot-num { border-color: var(--color-warn); color: var(--color-warn-strong); }
.dot-step.is-here a { background: var(--color-brand-soft); color: var(--color-navy-900); box-shadow: inset 0 0 0 2px var(--color-brand); }

/* ---------------------------------------------------------------- descobertas */
.discovery { display: flex; flex-direction: column; gap: 10px; height: 100%; }
.discovery .grow { flex: 1; }
.discovery-figure {
  margin: 2px 0 4px;
  border-radius: 22px;
  overflow: hidden;
  background: color-mix(in srgb, var(--accent, var(--color-brand)) 10%, white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.discovery-figure img { display: block; width: 100%; height: auto; aspect-ratio: 12 / 7; object-fit: cover; }
.discovery-figure figcaption {
  margin: 0;
  padding: 9px 12px 11px;
  font-size: var(--text-sm);
  color: var(--muted);
  background: rgba(255,255,255,.72);
}
.discovery .question { background: var(--bg); border-radius: 14px; padding: 12px 14px; font-style: italic; }
.discovery-quiz {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 18px;
  border: 1px solid color-mix(in srgb, var(--accent, var(--color-brand)) 28%, var(--line));
  background: linear-gradient(135deg, #fff8db, color-mix(in srgb, var(--accent, var(--color-brand)) 8%, white));
}
.discovery-quiz .quiz-question { margin: 0; font-weight: 850; color: var(--ink); }
.quiz-options { display: grid; gap: 8px; }
.quiz-option {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 9px 10px;
  border-radius: 13px;
  background: rgba(255,255,255,.78);
  border: 1px solid var(--line);
  cursor: pointer;
}
.quiz-option:has(input:checked) {
  border-color: var(--accent, var(--color-brand));
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent, var(--color-brand)) 18%, transparent);
}
.quiz-option input { margin-top: 3px; accent-color: var(--accent, var(--color-brand)); }
.discovery.explored { outline: 3px solid var(--color-success-soft); }
.discovery > .chip { align-self: flex-start; }
.question-card {
  background: linear-gradient(135deg, var(--color-sun-100), #ffe3ec); border-radius: var(--radius-lg); padding: 24px;
  display: flex; flex-direction: column; justify-content: center; gap: 10px;
}
.question-card .eyebrow { color: #a3284f; }
.question-card .q { font-size: 1.3rem; font-weight: 850; }

/* ---------------------------------------------------------------- perfil */
.profile-option { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.profile-option.is-active { outline: 4px solid var(--color-brand); }
.privacy { background: #eef9f4; border: 2px dashed #9fe0c2; border-radius: var(--radius-md); padding: 18px 20px; }
.days { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---------------------------------------------------------------- metodologia */
.hero-method { background:
    radial-gradient(600px 300px at 92% 0, rgba(123, 92, 255, .45), transparent 60%),
    radial-gradient(500px 300px at 0 110%, rgba(20, 184, 154, .35), transparent 60%),
    linear-gradient(135deg, var(--color-blue-700), var(--color-navy-900)); }
.cycle { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.cycle-step {
  background: var(--surface); border-radius: 22px; padding: 22px 14px 18px; text-align: center; box-shadow: var(--shadow-md);
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
}
.cycle-num {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900;
  background: var(--color-navy-900); color: #fff; border: 3px solid var(--bg);
}
.cycle-ico { width: 56px; height: 56px; }
.cycle-step h3 { margin: 4px 0 2px; }
.cycle-step p { font-size: var(--text-sm); color: var(--ink-soft); margin: 0; }
.cycle-step:not(:last-child)::after {
  content: "→"; position: absolute; right: -13px; top: 44px; color: var(--color-brand); font-weight: 900; font-size: 1.1rem; z-index: 1;
}
.cycle-loop { text-align: center; margin-top: 14px; font-weight: 750; }
@media (max-width: 980px) { .cycle { grid-template-columns: repeat(3, 1fr); row-gap: 24px; } .cycle-step::after { display: none; } }
@media (max-width: 560px) {
  .cycle { grid-template-columns: 1fr; }
  .cycle-step { flex-direction: row; text-align: left; flex-wrap: wrap; padding: 16px; }
  .cycle-step p { flex-basis: 100%; }
  .cycle-num { left: 16px; transform: none; }
}
.pillar { border-top: 6px solid var(--accent); }
.pillar-ico { width: 60px; height: 60px; margin-bottom: 12px; }
.safety {
  display: grid; grid-template-columns: auto 1fr; gap: 20px; align-items: start;
  background: var(--color-mint-100); border: 2px solid #9fe0cf; border-radius: var(--radius-lg); padding: 24px;
}
.safety-ico { width: 72px; height: 72px; }
.safety-list { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 10px 20px; }
.safety-list li { padding-left: 28px; position: relative; }
.safety-list li::before { content: "✓"; position: absolute; left: 0; top: 0; color: var(--color-mint-600); font-weight: 900; }
@media (max-width: 560px) { .safety { grid-template-columns: 1fr; } }
.audience { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; align-items: start; }
.audience-art { grid-row: span 2; width: 84px; }
.audience ul { margin: 0; }

/* ---------------------------------------------------------------- relatório dos pais (tom sóbrio) */
body.area-pais { background: #f4f5f8; }
body.area-pais .hero { background: linear-gradient(135deg, var(--color-navy-900), #2a3478); }
.report { max-width: 980px; margin-inline: auto; }
.report-cover {
  border-radius: var(--radius-xl); padding: clamp(22px, 4vw, 40px); color: #fff;
  background:
    radial-gradient(500px 260px at 100% 0, rgba(20, 184, 154, .3), transparent 60%),
    linear-gradient(135deg, var(--color-navy-900), #2a3478);
  box-shadow: var(--shadow-lg);
}
.report-cover-top { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center; padding-bottom: 18px; border-bottom: 1px solid rgba(255, 255, 255, .18); }
.report-brand { display: flex; gap: 12px; align-items: center; }
.report-brand img { border-radius: 12px; }
.report-cover-main { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding-top: 22px; }
.report-cover h1 { color: #fff; margin-bottom: 6px; }
.report-cover .eyebrow { color: var(--color-sun-400); }
.report-meta { color: rgba(255, 255, 255, .8); margin: 0 0 12px; }
.report-summary { font-size: 1.15rem; font-weight: 700; max-width: 60ch; margin: 0; }
.report-cover-ring { text-align: center; }
.report-cover-ring .ring.on-dark::before { background: #1f2a66; }
.report-cover-ring p { margin: 8px 0 0; color: rgba(255, 255, 255, .85); }
@media (max-width: 640px) { .report-cover-main { grid-template-columns: 1fr; } }
.report-section h2 { display: flex; gap: 10px; align-items: center; font-size: 1.25rem; }
.inline-ico { width: 32px; height: 32px; }
.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; }
.kpi {
  background: var(--surface); border-radius: var(--radius-md); padding: 16px; border: 1px solid var(--line); box-shadow: var(--shadow-sm);
  display: grid; gap: 2px;
}
.kpi-ico { font-size: 1.4rem; }
.kpi-value { font-size: 1.9rem; font-weight: 900; line-height: 1.1; }
.kpi-value small { font-size: 1rem; color: var(--ink-soft); }
.kpi-label { color: var(--ink-soft); font-weight: 750; font-size: var(--text-sm); }
.report-next { border-left: 6px solid var(--color-sun-400); }
.report-next-text { font-size: 1.12rem; font-weight: 750; margin: 0; }
.actions { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.action { display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start; padding: 14px; border-radius: 16px; background: var(--bg); }
.action-num { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-weight: 900; background: var(--color-navy-900); color: #fff; }
.action-time { align-self: center; }
@media (max-width: 560px) { .action { grid-template-columns: auto 1fr; } .action-time { grid-column: 2; justify-self: start; } }
.report-domains { display: grid; grid-template-columns: minmax(0, 300px) 1fr; gap: 20px; align-items: center; }
@media (max-width: 760px) { .report-domains { grid-template-columns: 1fr; } }
.report-list { margin: 0; padding-left: 0; list-style: none; display: grid; gap: 10px; }
.report-list li { padding: 12px 14px 12px 44px; border-radius: 14px; background: var(--bg); position: relative; }
.report-list li::before { position: absolute; left: 14px; top: 11px; }
.report-list.fortes li::before { content: "💪"; }
.report-list.revisar li::before { content: "🔁"; }
.report-list.conversa li::before { content: "💬"; }
.report-list.dicas li::before { content: "🗣️"; }
.report-list.praticou li::before { content: "✅"; }
.report-list.cuidados li::before { content: "🛡️"; }
.talk h3 { font-size: 1rem; color: var(--ink-soft); }
.report-care { background: #fbfbfd; }
.callout { border-left: 6px solid var(--color-brand); background: var(--color-brand-soft); padding: 16px 18px; border-radius: 14px; }
.callout.warn { border-color: var(--color-warn); background: var(--color-warn-soft); }
.no-js [data-print] { display: none; }

/* ---------------------------------------------------------------- rodapé */
.footer { border-top: 1px solid var(--line); padding: 28px 0 40px; color: var(--ink-soft); font-size: var(--text-sm); background: rgba(255, 255, 255, .6); }
.footer .pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; margin: 10px 0 0; }
.footer .chip { white-space: normal; }

@media (max-width: 560px) {
  .chip { white-space: normal; }
  .step { grid-template-columns: 1fr; }
  .card { padding: 18px; }
  .grid-fixed-3 { grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
  .page-head-ico { width: 52px; height: 52px; }
  body { font-size: 16px; }
}

/* ---------------------------------------------------------------- 7. impressão */
@media print {
  @page { size: A4; margin: 14mm; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .topbar, .footer, .toasts, .no-print, .skip-link, .nav { display: none !important; }
  body { background: #fff; font-size: 11pt; padding: 0; }
  main { padding: 0; }
  .container { width: 100%; }
  .stack > * + * { margin-top: 12px; }
  .card, .kpi, .report-cover, .action, .report-list li { box-shadow: none !important; break-inside: avoid; }
  .card { border: 1px solid #d9d9e3; padding: 14px 16px; }
  .report-cover { border-radius: 14px; padding: 18px 22px; }
  .report-summary { font-size: 12pt; }
  .kpis { grid-template-columns: repeat(6, 1fr); gap: 6px; }
  .kpi { padding: 8px; }
  .kpi-value { font-size: 16pt; }
  .report-domains { grid-template-columns: 220px 1fr; }
  .grid-2 { grid-template-columns: 1fr 1fr; }
  .report-section h2 { font-size: 13pt; break-after: avoid; }
  .hero { box-shadow: none; }
  .print-sheet { font-size: 10.5pt; }
  .print-sheet h1 { font-size: 20pt; }
  .print-sheet h2 { font-size: 13pt; }
  .print-sheet h3 { font-size: 10.8pt; margin-bottom: 3px; }
  .print-marcos-grid { grid-template-columns: 1fr 1fr; gap: 8px; }
  .print-marco-card { padding: 9px; border-radius: 10px; }
  .print-marco-ico { width: 32px; height: 32px; border-radius: 10px; font-size: 1.2rem; }
  .print-evidencias, .print-marco-card .small { font-size: 9pt; }
  .print-checks { gap: 4px 10px; padding: 4px 0; font-size: 9.5pt; }
  .print-notes { padding: 10px; }
  .print-lines { min-height: 58px; background: repeating-linear-gradient(to bottom, transparent 0 19px, #cfd3e6 20px); }
  .print-lines.short { min-height: 40px; }
  .print-guardrails { font-size: 9pt; }
  a { color: inherit; text-decoration: none; }
}

/* ---------------------------------------------------------------- movimento reduzido */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .fc-inner { transform: none !important; }
  .fc-face { backface-visibility: visible; -webkit-backface-visibility: visible; }
  .fc-back { transform: none; display: none; }
  .fc.is-flipped .fc-front, .no-js .fc:target .fc-front { display: none; }
  .fc.is-flipped .fc-back, .no-js .fc:target .fc-back { display: block; }
}

/* ---------------------------------------------------------------- 8. trilha 4–6 e cartões de conceito */
.concept-img {
  display: inline-grid; place-items: center; line-height: 1; background: var(--surface);
  font-size: 22px; aspect-ratio: 3 / 2; font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", var(--font);
}
.fc-flag.concept-img { font-size: clamp(76px, 16vw, 116px); height: auto; }
.fc-flag-sm.concept-img { font-size: 26px; }
.deck-flag.concept-img, .mini-flag.concept-img { font-size: 20px; }
.flag-mini.concept-img { font-size: 13px; }
.flag .concept-img { font-size: 24px; }

/* ---------------------------------------------------------------- celebração (só CSS) */
.celebration { position: relative; margin: var(--space-4) 0 var(--space-2); }
.celebration-card {
  display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-sun-100), var(--color-purple-100));
  border: 2px solid var(--color-sun-400); box-shadow: var(--shadow-md);
  animation: celebra-pop .5s var(--ease-spring) both;
}
.celebration-medal { font-size: 2.4rem; line-height: 1; animation: celebra-medalha 1.1s var(--ease-spring) .15s both; }
.celebration-text h2 { margin: 0 0 2px; font-size: 1.2rem; }
.celebration-close {
  margin-left: auto; min-width: 44px; min-height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1rem; font-weight: 900;
}
.no-js .celebration-close { display: none; }
.celebration.is-closing { opacity: 0; transform: translateY(-6px); transition: opacity .3s, transform .3s; }
.confetti { position: fixed; top: 0; left: 0; right: 0; height: 0; pointer-events: none; z-index: 60; }
.confetti span {
  position: absolute; top: -18px; left: calc(2% + var(--i) * 4%); width: 9px; height: 14px; border-radius: 3px;
  background: var(--c, var(--color-sun-400)); opacity: 0;
  animation: confete 2.2s var(--ease-out) calc(var(--i) * 40ms) forwards;
}
.confetti span:nth-child(4n+1) { --c: var(--color-purple-500); }
.confetti span:nth-child(4n+2) { --c: var(--color-mint-500); }
.confetti span:nth-child(4n+3) { --c: var(--color-pink-500); }
.confetti span:nth-child(3n) { border-radius: 50%; width: 10px; height: 10px; animation-duration: 2.7s; }
.confetti span:nth-child(5n) { animation-duration: 1.9s; }
.celebration-dominou .confetti span:nth-child(2n) { display: none; } /* cartão dominado: festa menor */
@keyframes confete {
  0% { opacity: 1; transform: translate3d(0, 0, 0) rotate(0deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translate3d(calc((var(--i) - 12) * 5px), 75vh, 0) rotate(520deg); }
}
@keyframes celebra-pop { from { opacity: 0; transform: translateY(-8px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes celebra-medalha { 0% { transform: scale(.4) rotate(-20deg); } 70% { transform: scale(1.15) rotate(6deg); } 100% { transform: none; } }

/* ---------------------------------------------------------------- preferências (som e contraste) */
.prefs { display: flex; gap: 4px; }
.pref-btn {
  display: grid; place-items: center; min-width: 44px; min-height: 44px; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--line); background: var(--surface); color: var(--ink); font-size: 1.05rem; font-weight: 900;
}
.pref-btn:hover { background: var(--color-brand-soft); }
.pref-btn[aria-pressed="true"] { background: var(--color-navy-900); border-color: var(--color-navy-900); color: #fff; box-shadow: inset 0 0 0 2px var(--color-sun-400); }
.no-js .prefs { display: none; }
@media (max-width: 420px) { .brand-text { display: none; } .parents-link { padding: 8px 12px; } }

/* ---------------------------------------------------------------- alto contraste
   Ativado pelo botão 🌓 (data-contrast="high" no <html>, salvo em localStorage) ou pela
   preferência do sistema (prefers-contrast: more). Estados continuam com texto + ícone. */
:root[data-contrast="high"] {
  --color-ink-900: #000; --color-ink-600: #111; --color-ink-400: #222;
  --ink: #000; --ink-soft: #111; --ink-mute: #222;
  --color-line: #000; --line: #000; --color-track: #c4c4c4; --track: #c4c4c4;
  --color-bg: #fff; --bg: #fff; --color-surface: #fff; --surface: #fff;
  --color-brand: #0a2385; --brand: #0a2385; --color-brand-soft: #fff;
  --color-success: #0b5d3b; --color-success-strong: #07472d; --color-warn: #8a3a00; --color-warn-strong: #6b2d00;
  --color-focus: #000;
  --shadow-sm: none; --shadow-md: none; --shadow-lg: none; --shadow: none;
}
[data-contrast="high"] body { background: #fff; color: #000; }
[data-contrast="high"] a:not(.btn):not(.card-link):not(.mission-card):not(.deck-item):not(.mini-item):not(.nav a) { text-decoration: underline; }
[data-contrast="high"] .card, [data-contrast="high"] .btn, [data-contrast="high"] .chip, [data-contrast="high"] .toast,
[data-contrast="high"] .mission-card, [data-contrast="high"] .deck-item, [data-contrast="high"] .mini-item,
[data-contrast="high"] .option label, [data-contrast="high"] .badge, [data-contrast="high"] .celebration-card,
[data-contrast="high"] .fc-face, [data-contrast="high"] .callout { border: 2px solid #000 !important; }
[data-contrast="high"] .muted { color: #1a1a1a !important; }
[data-contrast="high"] .topbar { background: #fff; border-bottom: 3px solid #000; backdrop-filter: none; }
[data-contrast="high"] .nav a { color: #000; }
[data-contrast="high"] .nav a[aria-current="page"] { background: #000; color: #fff; text-decoration: underline; }
[data-contrast="high"] .hero, [data-contrast="high"] .report-cover { background: #000 !important; color: #fff; }
[data-contrast="high"] .hero * { color: #fff; }
[data-contrast="high"] .hero .btn-sun { background: #ffd400; color: #000 !important; border-color: #ffd400 !important; }
[data-contrast="high"] .bar span { background: #000 !important; }
[data-contrast="high"] .celebration-card { background: #fff; }
[data-contrast="high"] :focus-visible { outline: 4px solid #000; outline-offset: 2px; box-shadow: 0 0 0 8px #ffd400; }
[data-contrast="high"] .flag.novo .flag-img, [data-contrast="high"] .deck-item.is-novo .deck-flag { filter: none; opacity: 1; }
@media (prefers-contrast: more) {
  :root:not([data-contrast]) { --ink-soft: #111; --ink-mute: #222; --line: #000; --color-line: #000; }
}

/* ---------------------------------------------------------------- base pedagógica */
.check-list, .num-list { margin: 0; padding-left: 1.3em; display: grid; gap: 8px; }
.check-list { list-style: none; padding-left: 0; }
.check-list li { padding-left: 1.7em; position: relative; }
.check-list li::before { content: "✓"; position: absolute; left: 0; font-weight: 900; color: var(--color-success-strong); }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.table-wrap { overflow-x: auto; }
.ped-table { width: 100%; border-collapse: collapse; font-size: var(--text-sm); }
.ped-table th, .ped-table td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.ped-table thead th { font-size: var(--text-xs); text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.ped-table tbody th { min-width: 180px; }
.ped-box summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; flex-wrap: wrap; }
.ped-meta { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 14px 0; }
.ped-meta dt { font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.ped-meta dd { margin: 4px 0 0; }

@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
}
@media print {
  .celebration, .prefs { display: none !important; }
}
[data-contrast="high"] .hero .muted { color: #fff !important; }

/* ---------------------------------------------------------------- 9. Modo Professor ao Vivo
   Pensado para projetor: tipografia grande, alvos amplos e contraste alto.
   Sem JS tudo aparece em lista; com JS (.js no <html>) a aula mostra um cartão por vez. */
.js .no-js-only { display: none; }
.no-js .js-only { display: none; }
.no-print { display: block; }
.area-professor { --prof: var(--color-purple-500); }
.prof-verde { --accent: var(--m-verde); }
.prof-azul { --accent: var(--m-azul); }
.prof-roxo { --accent: var(--m-roxo); }
.prof-laranja { --accent: var(--m-laranja); }
.prof-aviso, .prof-aviso-diag {
  display: block;
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 12px 16px;
  border-radius: var(--radius-md);
  font-weight: 700;
  font-size: var(--text-sm);
  line-height: 1.45;
  overflow-wrap: anywhere;
  word-break: normal;
  background: var(--color-purple-100); color: #3d2a99; border: 1px dashed #b7a6ff;
}
.prof-aviso-diag { background: var(--color-sun-100); color: #6b4a00; border-color: #f0c96a; font-size: 1rem; }
.hero-prof { background:
  radial-gradient(600px 300px at 92% 0, rgba(255, 197, 61, .35), transparent 60%),
  radial-gradient(500px 300px at 0 110%, rgba(123, 92, 255, .45), transparent 60%),
  linear-gradient(135deg, #3b2bb8, var(--color-navy-900)); }
.prof-hero-map { width: clamp(200px, 28vw, 320px); border-radius: var(--radius-lg); background: rgba(255, 255, 255, .92); padding: 8px; }

.prof-kpis { list-style: none; margin: 0 0 var(--space-3); padding: 0; display: grid; gap: var(--space-4);
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr)); }
.prof-kpi { display: flex; flex-direction: column; gap: 2px; }
.prof-kpi-ico { font-size: 1.6rem; }
.prof-kpi-num { font-size: 2.2rem; font-weight: 900; line-height: 1.1; color: var(--color-navy-900); }
.prof-kpi-rot { font-weight: 800; color: var(--ink-soft); font-size: var(--text-sm); }
.prof-kpi-next { border: 2px solid var(--color-sun-400); background: var(--color-sun-100); }
.prof-atalho h3 { margin-top: var(--space-3); }
.prof-semana { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-3);
  grid-template-columns: repeat(auto-fit, minmax(min(190px, 100%), 1fr)); }
.prof-dia { display: flex; flex-direction: column; gap: 4px; border-top: 6px solid var(--accent, var(--color-brand)); }
.prof-dia a { min-height: 44px; display: inline-flex; align-items: center; font-weight: 800; }
.professor-login { max-width: 720px; margin-inline: auto; overflow: hidden; }
.professor-login .card-head { align-items: flex-start; }
.professor-login .card-head > div { min-width: 0; }
.professor-login h1 { overflow-wrap: anywhere; }
.login-form { display: grid; gap: 14px; margin-top: var(--space-4); }
.login-form label { display: grid; gap: 6px; font-weight: 850; }
.login-form input {
  min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius-md); padding: 10px 12px;
  font: inherit; background: #fff; color: var(--ink);
}
.classroom-card { display: flex; flex-direction: column; gap: 12px; border-top: 6px solid var(--accent, var(--color-brand)); }
.classroom-card:nth-child(1) { --accent: var(--m-verde); }
.classroom-card:nth-child(2) { --accent: var(--m-laranja); }
.classroom-card:nth-child(3) { --accent: var(--m-azul); }
.mini-panel { padding: 12px 14px; border-radius: var(--radius-md); background: var(--bg); border: 1px solid var(--line); }
.compact-list { margin: 6px 0 0; padding-left: 1.2rem; }
.compact-list li + li { margin-top: 4px; }
.strong { font-weight: 850; }

.print-head { border-top: 8px solid var(--accent, var(--color-brand)); display: flex; gap: var(--space-4); justify-content: space-between; align-items: start; }
.print-marcos-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); }
.print-marco-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: var(--space-4); box-shadow: var(--shadow-sm); break-inside: avoid; }
.print-marco-top { display: flex; gap: var(--space-3); align-items: start; }
.print-marco-ico { width: 44px; height: 44px; border-radius: 16px; display: grid; place-items: center; flex: 0 0 auto; background: var(--color-purple-100); font-size: 1.6rem; }
.print-evidencias { font-size: var(--text-sm); }
.print-checks { display: flex; flex-wrap: wrap; gap: 8px 14px; padding: 10px 0; font-weight: 850; }
.print-notes { background: #fff; border: 2px solid var(--color-ink-900); border-radius: var(--radius-lg); padding: var(--space-4); break-inside: avoid; }
.print-lines { min-height: 88px; background: repeating-linear-gradient(to bottom, transparent 0 27px, #cfd3e6 28px); }
.print-lines.short { min-height: 56px; }
.print-note-boxes { margin-top: var(--space-4); }

.prof-dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px 18px; margin: 0 0 var(--space-4); }
.prof-dl dt { font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.prof-dl dd { margin: 2px 0 0; font-weight: 700; }
.prof-dl-wide { grid-column: 1 / -1; }
.prof-dl-wide dd { font-weight: 500; }

/* mapa de trilhas: jornada vertical com marcos */
.prof-legenda { list-style: none; margin: 0; padding: 0; }
.prof-status-disponivel { background: var(--color-success-soft); color: var(--color-success-strong); }
.prof-status-demo { background: var(--color-sun-100); color: #7a5600; }
.prof-status-futuro { background: #eef0f6; color: #4d5470; }
.prof-jornada { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); position: relative; }
.prof-jornada::before { content: ""; position: absolute; left: 31px; top: 20px; bottom: 20px; width: 6px; border-radius: 6px;
  background: repeating-linear-gradient(to bottom, var(--color-brand) 0 14px, transparent 14px 24px); opacity: .35; }
.prof-faixa { display: grid; grid-template-columns: 68px minmax(0, 1fr); gap: var(--space-4); align-items: start; position: relative; }
.prof-faixa-marco { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 2rem;
  background: var(--surface); border: 5px solid var(--accent, var(--color-brand)); box-shadow: var(--shadow-md); }
.prof-faixa .card { border-left: 6px solid var(--accent, var(--color-brand)); }
.prof-faixa-futuro .card { background: repeating-linear-gradient(135deg, #fff 0 18px, #fafaff 18px 36px); }
.prof-faixa-futuro .prof-faixa-marco { border-style: dashed; }
.prof-mundos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prof-mundos .chip { white-space: normal; }
.prof-missoes { list-style: none; margin: 0 0 var(--space-4); padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.prof-missao { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-pill);
  background: color-mix(in srgb, var(--accent, var(--color-brand)) 12%, white); color: var(--ink); font-weight: 800; text-decoration: none; }
a.prof-missao:hover { background: color-mix(in srgb, var(--accent, var(--color-brand)) 24%, white); color: var(--ink); }
.prof-missao.is-futuro { background: #f1f1f6; color: var(--ink-soft); border: 1px dashed var(--line); }
.prof-projeto { padding: 12px 14px; border-radius: var(--radius-md); background: var(--color-sun-100); }
@media (max-width: 560px) {
  .professor-login { padding: 22px 18px; }
  .professor-login .card-head { display: grid; grid-template-columns: 1fr; gap: 12px; }
  .professor-login .icon-bubble.lg { width: 64px; height: 64px; }
  .prof-aviso, .prof-aviso-diag { font-size: .92rem; padding: 12px 14px; }
  .prof-faixa { grid-template-columns: 1fr; }
  .prof-jornada::before { display: none; }
}

/* aula ao vivo */
.prof-escolha { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.prof-campo { display: grid; gap: 6px; flex: 1 1 240px; }
.prof-campo label { font-weight: 850; }
.area-professor select, .deck-filtros select { font: inherit; font-weight: 700; min-height: 48px; padding: 8px 12px; border-radius: 14px;
  border: 2px solid var(--line); background: var(--surface); color: var(--ink); max-width: 100%; }
.prof-sequencia { list-style: none; margin: var(--space-5) 0; padding: 0; display: grid; gap: var(--space-3); }
.prof-etapa { display: flex; gap: var(--space-4); align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--accent, var(--color-brand)) 7%, white); }
.prof-etapa-num { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  background: var(--color-navy-900); color: #fff; font-weight: 900; font-size: 1.2rem; }
.prof-min { background: var(--surface); border: 2px solid var(--line); color: var(--ink); }

/* aula de bandeiras (tela de projetor) */
.live-deck { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-6); }
.live-card { background: var(--surface); border-radius: var(--radius-xl); padding: clamp(18px, 3vw, 36px); box-shadow: var(--shadow-lg);
  border: 1px solid var(--line); display: grid; gap: var(--space-5); scroll-margin-top: calc(var(--nav-h) + 16px); }
.js .live-card { display: none; }
.js .live-card.is-atual { display: grid; animation: live-in .25s var(--ease-out); }
@keyframes live-in { from { opacity: 0; transform: translateY(8px); } }
.live-card-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: clamp(18px, 3vw, 40px); align-items: center; }
.live-visual { display: grid; gap: 10px; justify-items: center; }
.live-flag { width: 100%; max-width: 440px; aspect-ratio: 3 / 2; object-fit: cover; border-radius: 14px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), var(--shadow-md); }
.live-pergunta { font-size: clamp(1.5rem, 3vw, 2.3rem); font-weight: 900; }
.live-revelar { display: grid; gap: var(--space-3); }
.live-revelar details { border-radius: var(--radius-md); border: 2px solid var(--line); background: #fbfbfe; }
.live-revelar summary { cursor: pointer; min-height: 56px; padding: 12px 18px; display: flex; align-items: center; gap: 10px;
  font-weight: 900; font-size: 1.2rem; list-style: none; border-radius: var(--radius-md); }
.live-revelar summary::-webkit-details-marker { display: none; }
.live-revelar summary::after { content: "＋"; margin-left: auto; font-weight: 900; }
.live-revelar details[open] > summary::after { content: "−"; }
.live-revelar details > :not(summary) { padding: 0 18px 16px; margin: 0; font-size: 1.2rem; }
.live-dica[open] { background: var(--color-sun-100); border-color: #f0c96a; }
.live-resposta > summary { background: var(--color-navy-900); color: #fff; }
.live-resposta[open] { border-color: var(--color-success); background: var(--color-success-soft); }
.live-resposta[open] > summary { background: var(--color-success-strong); }
.live-resposta-corpo { padding-top: 14px !important; }
.live-pais { font-size: clamp(2rem, 5vw, 3.2rem); font-weight: 900; line-height: 1.1; margin: 0 0 10px; color: var(--color-navy-900); }
.live-fatos { display: flex; flex-wrap: wrap; gap: 8px 24px; margin: 0 0 12px; }
.live-fatos dt { font-size: var(--text-xs); font-weight: 900; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-soft); }
.live-fatos dd { margin: 0; font-weight: 850; font-size: 1.25rem; }
.live-curiosidade { margin: 0; font-size: 1.1rem; }
.live-registro { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding-top: var(--space-4); border-top: 2px dashed var(--line); }
.live-reg[aria-pressed="true"] { --b: var(--color-navy-900); --b-dark: #000; --b-ink: #fff; border-color: var(--color-navy-900); }
.live-reg[aria-pressed="true"]::after { content: "✓"; font-weight: 900; }
.live-nav { display: flex; justify-content: space-between; gap: var(--space-3); flex-wrap: wrap; }
.live-nav [aria-disabled="true"] { opacity: .45; cursor: default; box-shadow: none; }
.live-contador { font-size: 1.1rem; }
.live-resumo .btn { margin-top: var(--space-3); }
.invest-ico {
  display: grid; place-items: center; width: min(260px, 55vw); aspect-ratio: 1; border-radius: 36px;
  font-size: clamp(5rem, 14vw, 9rem); background: linear-gradient(135deg, var(--color-sun-100), var(--color-purple-100));
  border: 4px solid rgba(123, 92, 255, .22); box-shadow: var(--shadow-md);
}
@media (max-width: 760px) {
  .live-card-grid { grid-template-columns: 1fr; }
  .live-nav .btn { flex: 1; }
}
/* modo apresentação: só o cartão, grande, sem barra de navegação */
.live-apresentando .topbar, .live-apresentando .footer, .live-apresentando .prof-aviso,
.live-apresentando .live-instrucoes, .live-apresentando .skip-link { display: none !important; }
.live-apresentando { padding-bottom: 0 !important; background: var(--color-navy-900); }
.live-apresentando main { padding-top: 16px; }
.live-apresentando .container { width: min(100% - 24px, 1500px); }
.live-apresentando .live-head h1, .live-apresentando .live-head .eyebrow { color: #fff; }
.live-apresentando .live-card { min-height: calc(100vh - 140px); align-content: space-between; }
.live-apresentando .live-flag { max-width: 620px; }
.live-apresentando .live-pergunta { font-size: clamp(1.8rem, 3.6vw, 3rem); }

/* relatório da aula */
.prof-texto-pais { white-space: pre-line; padding: 16px 18px; border-radius: var(--radius-md); background: #fbfbfe;
  border: 2px solid var(--line); font-size: 1.05rem; user-select: all; }

[data-contrast="high"] .prof-aviso, [data-contrast="high"] .prof-aviso-diag, [data-contrast="high"] .live-card,
[data-contrast="high"] .live-revelar details, [data-contrast="high"] .prof-etapa { border: 2px solid #000 !important; background: #fff !important; color: #000; }
[data-contrast="high"] .live-resposta > summary { background: #000 !important; color: #fff; }
[data-contrast="high"] .live-apresentando { background: #000; }
/* movimento reduzido: o bloco global da seção 7 já desliga live-in e a rolagem suave. */
@media print {
  .live-registro, .live-nav, .live-tools, .prof-escolha { display: none !important; }
}

/* ------------------------------------------------------------------ decks SuperMentes */
.deck-azul { --accent: var(--m-azul); --accent-soft: var(--color-blue-100); }
.deck-rosa { --accent: var(--color-pink-500); --accent-soft: var(--color-red-100); }
.deck-laranja { --accent: var(--m-laranja); --accent-soft: var(--color-orange-100); }
.deck-verde { --accent: var(--m-verde); --accent-soft: var(--color-mint-100); }
.deck-roxo { --accent: var(--m-roxo); --accent-soft: var(--color-purple-100); }
.deck-sol { --accent: var(--color-sun-600); --accent-soft: var(--color-sun-100); }
.deck-hero-ico { font-size: 3rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 20px;
  background: var(--color-sun-100); flex-shrink: 0; }
.deck-filtros { display: flex; flex-wrap: wrap; gap: var(--space-4); align-items: end; }
.deck-grade { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5);
  grid-template-columns: repeat(auto-fill, minmax(min(250px, 100%), 1fr)); }
/* cada deck parece uma caixinha de baralho: tampa colorida + corpo */
.deck-caixa { display: flex; flex-direction: column; border-radius: var(--radius-lg); background: var(--surface);
  border: 2px solid color-mix(in srgb, var(--accent) 35%, white); box-shadow: 0 6px 0 color-mix(in srgb, var(--accent) 45%, white), var(--shadow-md);
  overflow: hidden; transition: transform .15s var(--ease-out); }
.deck-caixa:hover { transform: translateY(-3px) rotate(-.4deg); }
.deck-caixa-link { display: flex; flex-direction: column; flex: 1; color: inherit; text-decoration: none; }
.deck-caixa-link:hover { color: inherit; }
.deck-caixa-tampa { display: grid; place-items: center; min-height: 104px;
  background: repeating-linear-gradient(135deg, var(--accent) 0 14px, color-mix(in srgb, var(--accent) 85%, white) 14px 28px); }
.deck-caixa-ico { font-size: 2.6rem; width: 72px; height: 72px; display: grid; place-items: center; border-radius: 50%;
  background: #fff; box-shadow: var(--shadow-md); }
.deck-caixa-corpo { display: grid; gap: 6px; padding: 16px 18px; }
.deck-chip { background: var(--accent-soft); color: var(--ink); justify-self: start; white-space: normal; }
.deck-caixa-titulo { font-size: 1.2rem; line-height: 1.2; }
.deck-caixa-sub { color: var(--ink-soft); font-size: var(--text-sm); }
.deck-caixa-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-weight: 800; font-size: var(--text-sm); }
.deck-caixa-prof { display: flex; align-items: center; min-height: 44px; padding: 0 18px; font-weight: 800;
  border-top: 2px dashed var(--line); }
.deck-convite { border-left: 6px solid var(--color-sun-400); }
.deck-cabeca { display: flex; gap: var(--space-4); align-items: center; padding: var(--space-5); border-radius: var(--radius-xl);
  background: var(--accent-soft); border-left: 8px solid var(--accent); }
.deck-usos { list-style: none; margin: 0 0 8px; padding: 0; }
.deck-cards { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--space-5); }
.deck-card { display: grid; gap: var(--space-4); padding: clamp(18px, 3vw, 32px); border-radius: var(--radius-xl); background: var(--surface);
  border: 1px solid var(--line); border-top: 8px solid var(--accent); box-shadow: var(--shadow-md); scroll-margin-top: calc(var(--nav-h) + 16px); }
.deck-card-topo { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.deck-card-frente { display: flex; gap: var(--space-4); align-items: center; }
.deck-card-emoji { font-size: 2.6rem; width: 76px; height: 76px; flex-shrink: 0; display: grid; place-items: center;
  border-radius: 22px; background: var(--accent-soft); }
.deck-card-img { width: 132px; height: auto; border-radius: 10px; flex-shrink: 0; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12), var(--shadow-md); }
.deck-card-pergunta { font-size: clamp(1.25rem, 2.6vw, 1.7rem); font-weight: 900; margin: 0; }
.deck-verso { font-size: 1.35rem; font-weight: 900; color: var(--color-navy-900); margin: 0 0 8px !important; padding: 0 !important; }
.deck-desafio { margin: 0; padding: 12px 16px; border-radius: var(--radius-md); background: var(--accent-soft); }
.deck-nivel-inicial { background: var(--color-success-soft); color: var(--color-success-strong); }
.deck-nivel-intermediario { background: var(--color-sun-100); color: #7a5600; }
.deck-nivel-avancado { background: var(--color-purple-100); color: #4b2fc2; }
.deck-live-ico { background: var(--accent-soft); border-color: color-mix(in srgb, var(--accent) 30%, white); }
.deck-live-verso { font-size: clamp(1.3rem, 2.6vw, 1.9rem); }
@media (max-width: 560px) {
  .deck-card-frente { flex-direction: column; align-items: flex-start; }
}
[data-contrast="high"] .deck-caixa, [data-contrast="high"] .deck-card, [data-contrast="high"] .deck-cabeca,
[data-contrast="high"] .deck-desafio { border: 2px solid #000 !important; background: #fff !important; color: #000; box-shadow: none; }
@media print {
  .deck-filtros, .deck-caixa-prof { display: none !important; }
  .deck-card { break-inside: avoid; box-shadow: none; }
  .deck-cards details { display: block; }
}
