/* Mobile-first. Números grandes, toque fácil, cor com significado - não o padrão
   "menos é mais" do painel do gestor (esse aqui é a área do colaborador, ver
   ARQUITETURA_PROPOSTA.md secao 11). */
:root {
  /* Paleta da marca LEC/TCM - mesmo azul-marinho + azul vivo do Portal Operacional,
     Analítico de Entrega e Portal de Reavisos (extraída do CSS em produção). */
  --bg: #030c19;
  --superficie: #0a1a31;
  --borda: #1a2e45;
  --texto: #eaf1fb;
  --texto-fraco: #8ea9ca;
  --acerto: #5ee3a8;
  --acerto-bg: #0f2a1e;
  --erro: #ff9eb4;
  --erro-bg: #300f1e;
  --acento: #1178dc;
  --acento-fraco: #14304f;
  --combo: #ffc06a;
  --raio: 14px;
  font-size: 16px;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; padding: 0; background: var(--bg); color: var(--texto);
  font-family: Arial, 'Helvetica Neue', Helvetica, sans-serif;
  -webkit-tap-highlight-color: transparent;
}
body { min-height: 100vh; display: flex; flex-direction: column; }
.tela { max-width: 480px; margin: 0 auto; width: 100%; padding: 20px 16px 40px; flex: 1; }

h1 { font-size: 1.4rem; margin: 0 0 4px; }
p.sub { color: var(--texto-fraco); margin: 0 0 24px; font-size: 0.95rem; }

label { display: block; font-size: 0.85rem; color: var(--texto-fraco); margin-bottom: 6px; }
input[type=text], input[type=tel], input[type=password] {
  width: 100%; font-size: 1.3rem; padding: 14px 16px; border-radius: var(--raio);
  border: 2px solid var(--borda); background: var(--superficie); color: var(--texto);
  font-family: inherit;
}
input:focus { outline: none; border-color: var(--acento); }

button.botao {
  width: 100%; font-size: 1.15rem; font-weight: bold; padding: 16px; border: none;
  border-radius: var(--raio); background: var(--acento); color: #fff; margin-top: 18px;
  cursor: pointer;
}
button.botao:active { filter: brightness(0.92); }
button.botao:disabled { opacity: 0.5; }
button.secundario { background: var(--superficie); color: var(--acento); border: 2px solid var(--acento); }

.erro-msg {
  background: var(--erro-bg); color: var(--erro); padding: 12px 14px; border-radius: var(--raio);
  font-size: 0.9rem; margin-top: 14px; display: none;
}
.erro-msg.mostrar { display: block; }

/* --- painel --- */
.cartao {
  background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio);
  padding: 18px; margin-bottom: 14px;
}
.linha-kpis { display: flex; gap: 10px; }
.kpi { flex: 1; text-align: center; }
.kpi .num { font-size: 1.8rem; font-weight: bold; font-variant-numeric: tabular-nums; }
.kpi .rot { font-size: 0.75rem; color: var(--texto-fraco); }
.barra-nivel { background: var(--acento-fraco); border-radius: 100px; height: 10px; overflow: hidden; margin-top: 8px; }
.barra-nivel > div { height: 100%; background: var(--acento); }

/* --- sessão / desafio --- */
.progresso-topo {
  display: flex; align-items: center; gap: 10px; font-size: 0.85rem; color: var(--texto-fraco);
  margin-bottom: 16px;
}
.progresso-barra { flex: 1; background: var(--borda); border-radius: 100px; height: 6px; overflow: hidden; }
.progresso-barra > div { height: 100%; background: var(--acento); }
.combo-tag {
  font-weight: bold; color: var(--combo); font-size: 0.85rem; white-space: nowrap;
}

.categoria-tag {
  display: inline-block; font-size: 0.72rem; font-weight: bold; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--acento); background: var(--acento-fraco);
  padding: 4px 10px; border-radius: 100px; margin-bottom: 10px;
}
.enunciado { font-size: 1.15rem; line-height: 1.5; margin-bottom: 16px; }
.midia-wrap { text-align: center; margin-bottom: 16px; }
.midia-wrap img {
  max-width: 100%; border-radius: var(--raio); border: 1px solid var(--borda); cursor: zoom-in;
}
.midia-wrap svg { width: 100%; height: auto; cursor: zoom-in; }
.alternativas { display: flex; flex-direction: column; gap: 10px; }
.alt-btn {
  display: block; width: 100%; text-align: left; font-size: 1.05rem; padding: 14px 16px;
  border-radius: var(--raio); border: 2px solid var(--borda); background: var(--superficie);
  color: var(--texto); cursor: pointer; font-family: inherit;
}
.alt-btn.selecionado { border-color: var(--acento); background: var(--acento-fraco); }
.alt-btn.acertou { border-color: var(--acerto); background: var(--acerto-bg); color: var(--acerto); }
.alt-btn.errou { border-color: var(--erro); background: var(--erro-bg); color: var(--erro); }

.feedback {
  position: fixed; inset: 0; background: rgba(0,0,0,.55); display: none;
  align-items: flex-end; justify-content: center; z-index: 20;
}
.feedback.mostrar { display: flex; }
.feedback-painel {
  background: var(--superficie); width: 100%; max-width: 480px; border-radius: 20px 20px 0 0;
  padding: 22px 20px 28px; box-shadow: 0 -8px 30px rgba(0,0,0,.2);
}
.feedback-titulo { font-size: 1.3rem; font-weight: bold; margin-bottom: 8px; }
.feedback-titulo.acerto { color: var(--acerto); }
.feedback-titulo.erro { color: var(--erro); }
.feedback-explicacao { font-size: 0.95rem; color: var(--texto-fraco); margin-bottom: 16px; line-height: 1.5; }
.feedback-pontos { font-size: 0.9rem; color: var(--texto-fraco); margin-bottom: 4px; }

.zoom-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,.85); display: none;
  align-items: center; justify-content: center; z-index: 30; padding: 20px;
}
.zoom-overlay.mostrar { display: flex; }
#zoom-conteudo { width: 100%; }
.zoom-overlay img { max-width: 100%; max-height: 100%; border-radius: 8px; }
.zoom-overlay svg { width: 100%; height: auto; max-height: 100%; border-radius: 8px; }

.carregando { text-align: center; color: var(--texto-fraco); padding: 40px 0; }

.resumo-titulo { font-size: 1.5rem; margin-bottom: 4px; }
.resumo-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 20px 0; }
.resumo-item { background: var(--superficie); border: 1px solid var(--borda); border-radius: var(--raio); padding: 14px; text-align: center; }
.resumo-item .num { font-size: 1.7rem; font-weight: bold; }
.resumo-item .rot { font-size: 0.8rem; color: var(--texto-fraco); }

.revisao-lista { display: flex; flex-direction: column; gap: 10px; margin: 20px 0; }
.revisao-item {
  display: flex; gap: 12px; background: var(--superficie); border-radius: var(--raio);
  padding: 14px; border-left: 4px solid var(--borda);
}
.revisao-item.acertou { border-left-color: var(--acerto); }
.revisao-item.errou { border-left-color: var(--erro); }
.revisao-numero { font-weight: bold; color: var(--texto-fraco); font-variant-numeric: tabular-nums; flex-shrink: 0; }
.revisao-corpo { min-width: 0; }
.revisao-enunciado { font-size: 0.95rem; margin-bottom: 6px; }
.revisao-resposta { font-size: 0.85rem; color: var(--texto-fraco); margin-bottom: 2px; }
.revisao-resposta strong { color: var(--texto); }
.revisao-explicacao { font-size: 0.85rem; color: var(--texto-fraco); margin-top: 6px; line-height: 1.4; font-style: italic; }
