@import url('https://fonts.googleapis.com/css2?family=Atkinson+Hyperlegible:wght@400;700&display=swap');
:root {
  --fundo: #0f1b2d; --cartao: #182a45; --cartao2: #20375a; --texto: #f2f5fa; --suave: #a9b6cc;
  --azul: #4da3ff; --verde: #3ecf8e; --vermelho: #ff6b6b; --amarelo: #ffd166; --roxo: #b79cff;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { background: var(--fundo); color: var(--texto); font-family: 'Atkinson Hyperlegible', system-ui, sans-serif; font-size: 18px; line-height: 1.45; }
main { max-width: 640px; margin: 0 auto; padding: 16px 14px 32px; }
h1 { font-size: 1.5rem; margin: .2rem 0 .8rem; }
h2 { font-size: 1.15rem; margin: 1.4rem 0 .6rem; color: var(--suave); font-weight: 700; }
.cartao { background: var(--cartao); border-radius: 18px; padding: 16px; margin: 12px 0; }
.suave { color: var(--suave); }
.pequeno { font-size: .85rem; }
.centro { text-align: center; }
.saldo { font-size: 2.4rem; font-weight: 700; color: var(--verde); }
.barra { height: 10px; background: #0b1424; border-radius: 99px; overflow: hidden; margin: 4px 0 10px; }
.barra > div { height: 100%; background: var(--verde); border-radius: 99px; }
.status { padding: 12px 14px; border-radius: 14px; font-weight: 700; margin: 12px 0; }
.status.livre { background: rgba(62,207,142,.15); color: var(--verde); }
.status.preso { background: rgba(255,107,107,.13); color: var(--vermelho); }
button { font: inherit; border: none; border-radius: 14px; padding: 12px 16px; cursor: pointer; color: var(--texto); background: var(--cartao2); }
button:disabled { opacity: .45; cursor: default; }
.btn-principal { background: var(--azul); color: #04101f; font-weight: 700; }
.btn-ok { background: var(--verde); color: #04101f; font-weight: 700; }
.btn-perigo { background: var(--vermelho); color: #210404; font-weight: 700; }
.largo { width: 100%; }
.temas { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 10px; }
.tema { text-align: left; padding: 14px; border-radius: 16px; background: var(--cartao2); min-height: 92px; }
.tema b { display: block; margin-bottom: 4px; }
.tema .valor { color: var(--amarelo); font-weight: 700; }

/* rodada */
.topo-rodada { display: flex; justify-content: space-between; align-items: center; gap: 8px; color: var(--suave); font-weight: 700; }
.pontos { display: flex; flex-wrap: wrap; gap: 5px; margin: 10px 0 4px; }
.pontos span { width: 13px; height: 13px; border-radius: 50%; background: #2c4266; }
.pontos span.certo { background: var(--verde); } .pontos span.errado { background: var(--vermelho); }
.pontos span.pulado { background: var(--amarelo); } .pontos span.atual { outline: 3px solid var(--texto); }
.questao { font-size: 2.3rem; font-weight: 700; text-align: center; margin: 22px 0 10px; min-height: 3.2rem; word-break: break-word; }
.questao.longa { font-size: 1.7rem; }
.visor { background: #0b1424; border-radius: 14px; font-size: 2rem; text-align: center; padding: 10px; min-height: 64px; letter-spacing: 1px; }
.visor.vazio { color: #3c4f70; }
.dica-tipo { text-align: center; color: var(--suave); font-size: .85rem; min-height: 1.2em; margin: 4px 0; }
.teclado { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 10px; }
.teclado button { font-size: 1.6rem; padding: 14px 0; border-radius: 14px; background: var(--cartao2); font-weight: 700; }
.teclado button.esp { background: #2a2f55; color: var(--roxo); }
.acoes { display: grid; grid-template-columns: 1fr 2fr; gap: 10px; margin-top: 10px; }
.acoes button { padding: 16px; font-size: 1.15rem; }
.flash { position: fixed; inset: 0; pointer-events: none; opacity: 0; transition: opacity .25s; }
.flash.certo { background: rgba(62,207,142,.25); opacity: 1; }
.flash.errado { background: rgba(255,107,107,.25); opacity: 1; }

/* resultado */
.grande { font-size: 3rem; font-weight: 700; }
.lista-erros { list-style: none; padding: 0; margin: 0; }
.lista-erros li { padding: 8px 0; border-bottom: 1px solid #2c4266; }
.lista-erros .certa { color: var(--verde); font-weight: 700; }
.lista-erros .dada { color: var(--vermelho); text-decoration: line-through; }

/* painel do responsável */
body.admin { background: #f4f6fa; color: #1f2430; font-size: 16px; }
body.admin main { max-width: 980px; }
body.admin .cartao { background: #fff; border: 1px solid #dfe3ea; }
body.admin h2 { color: #4a5568; }
body.admin button { background: #e8edf5; color: #1f2430; padding: 8px 12px; border-radius: 10px; }
body.admin .btn-principal { background: #1f5fbf; color: #fff; }
body.admin .btn-perigo { background: #c8322b; color: #fff; }
body.admin .suave { color: #6b6f7a; }
body.admin .saldo { color: #2e7d4f; }
body.admin .status.livre { background: #e9f5ee; color: #2e7d4f; }
body.admin .status.preso { background: #fdecea; color: #c8322b; }
table { border-collapse: collapse; width: 100%; font-size: .9rem; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e4e7ee; vertical-align: top; }
th { background: #f0f2f6; }
.tabela { overflow-x: auto; }
input, select { font: inherit; padding: 7px 9px; border: 1px solid #cdd3dd; border-radius: 8px; max-width: 100%; }
input[type=number] { width: 7rem; }
.linha { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 6px 0; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 10px 18px; }
.form-grid label { display: flex; flex-direction: column; gap: 3px; font-size: .9rem; color: #4a5568; }
.tag { display: inline-block; padding: 1px 8px; border-radius: 99px; font-size: .8rem; font-weight: 700; }
.tag.pendente { background: #fff7d6; color: #8a6d00; } .tag.aprovado { background: #e9f5ee; color: #2e7d4f; } .tag.bloqueado { background: #fdecea; color: #c8322b; }
.alerta { color: #c26a00; font-weight: 700; }
.oculto { display: none !important; }
