/* Jogo: pensado primeiro para o celular. Usa as variáveis de tema.css. */
.topo {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: max(14px, env(safe-area-inset-top)) 18px 14px;
  border-bottom: 1px solid var(--line);
}
.topo img { height: 34px; width: auto; flex: none; }
.topo-texto {
  flex: 1;
  min-width: 0;
  padding-left: 14px;
  border-left: 2px solid var(--line);
  color: var(--muted);
  font-family: var(--mono);
  font-size: .82rem;
  line-height: 1.25;
}
.sair {
  font: inherit;
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--muted);
  background: none;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
.sair:hover { color: var(--accent); border-color: var(--accent); }
.sair:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }

.palco {
  width: min(100%, 720px);
  margin: 0 auto;
  padding: 28px 18px max(48px, env(safe-area-inset-bottom));
}
.tela { display: flex; flex-direction: column; gap: 20px; }
.tela > .btn { align-self: stretch; }
@media (min-width: 560px) { .tela > .btn { align-self: flex-start; } }

.titulo {
  margin: 0;
  font-size: clamp(2rem, 8.4vw, 3.3rem);
  line-height: 1.05;
  font-weight: 780;
  letter-spacing: -0.02em;
}
.titulo:focus { outline: none; }
.cursor, .pisca { color: var(--accent); animation: pisca 1.1s steps(1) infinite; }
@keyframes pisca { 50% { opacity: 0; } }
.status { color: var(--muted); font-family: var(--mono); }
.subtitulo { margin: 0; color: var(--muted); font-size: 1.1rem; line-height: 1.5; max-width: 52ch; }
.nota { margin: 0; color: var(--muted); font-size: .9rem; line-height: 1.5; max-width: 58ch; }
.rotulo { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .95rem; }

.regras { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.regras li {
  display: grid;
  grid-template-columns: 1.4em 1fr;
  line-height: 1.45;
  font-size: 1.02rem;
}
.regras li::before { content: ">"; color: var(--accent); font-family: var(--mono); font-weight: 800; }

.palco .btn { width: 100%; min-height: 64px; }
@media (min-width: 560px) { .palco .btn { width: auto; min-width: 320px; } }

/* ------------------------------------------------------------- pergunta */
.cabeca-pergunta { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.passos { margin: 0; padding: 0; list-style: none; display: flex; gap: 6px; flex: 1; }
.passos li {
  flex: 1;
  height: 8px;
  border-radius: 4px;
  background: var(--surface-2);
  border: 1px solid var(--line);
}
.passos li.feita { background: var(--muted); border-color: var(--muted); }
.passos li.ok { background: var(--ok); border-color: var(--ok); }
.passos li.erro { background: var(--erro); border-color: var(--erro); }
.passos li.atual { border-color: var(--accent); box-shadow: 0 0 12px -2px var(--glow); }
.placar-parcial { margin: 0; font-family: var(--mono); color: var(--muted); font-size: .95rem; white-space: nowrap; font-variant-numeric: tabular-nums; }
.placar-parcial span { color: var(--accent); font-weight: 800; }

.meta { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.chip {
  font-family: var(--mono);
  font-size: .85rem;
  color: var(--accent);
  border: 1px solid var(--line);
  background: var(--surface);
  padding: 6px 12px;
  border-radius: 999px;
}
.dif { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: .85rem; color: var(--muted); }
.dif i { width: 6px; height: 14px; border-radius: 2px; background: var(--surface-2); border: 1px solid var(--line); }
.dif i.on { background: var(--accent); border-color: var(--accent); }
.dif b { margin-left: 8px; font-weight: 600; }

.relogio { display: flex; align-items: center; gap: 14px; }
.relogio-barra { flex: 1; height: 10px; border-radius: 5px; background: var(--surface-2); overflow: hidden; border: 1px solid var(--line); }
.relogio-barra span { display: block; height: 100%; width: 100%; background: var(--accent); transform-origin: left center; }
.relogio-num { font-family: var(--mono); font-size: 1.5rem; font-weight: 800; min-width: 2.2ch; text-align: right; font-variant-numeric: tabular-nums; }
.relogio.baixo .relogio-barra span { background: var(--erro); }
.relogio.baixo .relogio-num { color: var(--erro); }
.relogio.parado .relogio-barra span { opacity: .35; }

.enunciado {
  margin: 0;
  font-size: clamp(1.28rem, 4.8vw, 1.75rem);
  line-height: 1.35;
  font-weight: 650;
  letter-spacing: -0.005em;
  text-wrap: pretty;
}
.enunciado:focus { outline: none; }

.opcoes { display: grid; gap: 12px; }
.opcoes.gv { grid-template-columns: 1fr 1fr; }
.op {
  display: grid;
  grid-template-columns: 2.1em 1fr;
  align-items: center;
  gap: 4px;
  text-align: left;
  font: inherit;
  font-size: 1.05rem;
  line-height: 1.35;
  color: var(--ink);
  background: var(--surface);
  border: 2px solid var(--line);
  border-radius: var(--raio);
  padding: 15px 16px;
  min-height: 64px;
  cursor: pointer;
  transition: border-color .15s, background .15s;
}
.op .letra { font-family: var(--mono); font-weight: 800; color: var(--accent); }
.op:hover:not(:disabled) { border-color: var(--accent); }
.op:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.op:disabled { cursor: default; }
.opcoes.gv .op { grid-template-columns: 1fr; text-align: center; justify-items: center; min-height: 92px; font-size: 1.3rem; font-weight: 780; letter-spacing: .02em; }
.op.certa { border-color: var(--ok); background: color-mix(in srgb, var(--ok) 14%, var(--surface)); }
.op.errada { border-color: var(--erro); background: color-mix(in srgb, var(--erro) 14%, var(--surface)); }
.op.apagada { opacity: .55; }

.retorno {
  border: 1px solid var(--line);
  border-left: 5px solid var(--muted);
  background: var(--surface);
  border-radius: var(--raio);
  padding: 18px;
  display: grid;
  gap: 12px;
}
.retorno.ok { border-left-color: var(--ok); }
.retorno.erro { border-left-color: var(--erro); }
.veredito { margin: 0; font-size: 1.35rem; font-weight: 780; }
.retorno.ok .veredito { color: var(--ok); }
.retorno.erro .veredito { color: var(--erro); }
.explicacao { margin: 0; line-height: 1.5; font-size: 1.02rem; }
.conta { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .9rem; }
.conta:empty { display: none; }
.retorno .btn { margin-top: 4px; }

/* ------------------------------------------------------------ resultado */
.pontuacao {
  margin: 0;
  font-family: var(--mono);
  font-weight: 800;
  font-size: clamp(4.2rem, 22vw, 7.5rem);
  line-height: 1;
  color: var(--accent);
  text-shadow: 0 0 36px var(--glow);
  font-variant-numeric: tabular-nums;
}
.pontuacao small { font-size: .28em; margin-left: .35em; color: var(--muted); text-shadow: none; }
.mini { margin: 0; padding: 0; list-style: none; display: flex; gap: 8px; }
.mini li { width: 14px; height: 14px; border-radius: 50%; background: var(--erro); }
.mini li.ok { background: var(--ok); }
.numeros { margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.numeros div { border: 1px solid var(--line); background: var(--surface); border-radius: var(--raio); padding: 12px 12px 14px; }
.numeros dt { color: var(--muted); font-size: .78rem; line-height: 1.25; }
.numeros dd { margin: 6px 0 0; font-family: var(--mono); font-weight: 800; font-size: clamp(1.05rem, 4.6vw, 1.5rem); font-variant-numeric: tabular-nums; }

.numeros dd small { display: block; margin-top: 2px; font-family: var(--fonte); font-size: .72rem; font-weight: 600; color: var(--muted); }

/* placar na tela de resultado */
.placar { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.placar-titulo { margin: 0; font-size: 1.3rem; font-weight: 780; letter-spacing: -0.01em; }
.placar-info { margin: 0; color: var(--muted); font-family: var(--mono); font-size: .8rem; line-height: 1.4; }
.placar-info.falha { color: var(--erro); }
.placar-lista { margin: 0; padding: 0; list-style: none; border: 1px solid var(--line); border-radius: var(--raio); background: var(--surface); overflow: hidden; }
.placar-lista .linha { display: grid; grid-template-columns: 3rem minmax(0, 1fr) auto; align-items: center; gap: 8px; padding: 12px 14px 12px 11px; border-top: 1px solid var(--line); border-left: 3px solid transparent; }
.placar-lista .linha:first-child { border-top: 0; }
.placar-lista .p { font-family: var(--mono); font-weight: 800; color: var(--muted); font-variant-numeric: tabular-nums; }
.placar-lista .n { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.placar-lista .v { font-family: var(--mono); font-weight: 800; font-variant-numeric: tabular-nums; }
.placar-lista .podio .p { color: var(--accent); }
.placar-lista .podio .n { font-weight: 700; }
.placar-lista .eu { background: var(--surface-2); border-left-color: var(--accent); }
.placar-lista .eu em { margin-left: 8px; padding: 1px 8px; font-style: normal; font-family: var(--mono); font-size: .72rem; font-weight: 700; color: var(--accent-ink); background: var(--accent); border-radius: 999px; }

.tela:focus, .tela:focus-visible { outline: none; }
