/* Área de membros do Código da Virada. Feita primeiro para celular. */
:root {
  --verde: #0c4b35; --verde-2: #0e6b41; --verde-3: #12924c; --verde-claro: #e8f3ec;
  --ouro: #ecca72; --ouro-2: #cfa13e; --ouro-claro: #fff6dc;
  --fundo: #f3f5f0; --cartao: #fff; --tinta: #16261d; --texto: #3c4d42; --suave: #66766b; --linha: #e1e7dd;
  --vermelho: #c62828; --vermelho-claro: #fdecec; --azul: #1f6f9c; --azul-claro: #e6f2f8;
  --cor: #0e7a4b; --cor-escura: #0a5a37; --cor-clara: #e3f4ea;      /* cor da loteria escolhida */
  --sombra: 0 1px 2px rgba(16, 38, 26, .05), 0 8px 24px rgba(16, 38, 26, .07);
  --raio: 16px; --abas: 64px;
  --fonte: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
[data-loteria="lotofacil"] { --cor: #7b2a8f; --cor-escura: #5b1c6b; --cor-clara: #f4e8f7; }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--fonte); font-size: 16px; line-height: 1.5; color: var(--texto); background: var(--fundo);
  -webkit-font-smoothing: antialiased; -webkit-tap-highlight-color: transparent; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { color: var(--tinta); line-height: 1.2; letter-spacing: -.015em; }
a { color: var(--verde-2); }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.so-leitor { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 3px solid var(--ouro-2); outline-offset: 2px; border-radius: 6px; }
svg.ic { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Estrutura ---------- */
.topo { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 10px; padding: 10px 16px;
  padding-top: calc(10px + env(safe-area-inset-top)); background: var(--verde); color: #fff; }
.topo .marca { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-weight: 800; letter-spacing: -.01em; }
.topo .marca img { width: 30px; height: 30px; border-radius: 8px; }
.topo .marca small { display: block; font-size: 11px; font-weight: 600; color: var(--ouro); letter-spacing: .04em; text-transform: uppercase; line-height: 1.1; }
.topo .marca span { display: block; font-size: 15px; line-height: 1.15; }
.topo .conta { margin-left: auto; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: rgba(255, 255, 255, .12); color: #fff; text-decoration: none; font-weight: 800; }
main { max-width: 620px; margin: 0 auto; padding: 18px 16px calc(var(--abas) + 96px + env(safe-area-inset-bottom)); }
.abas { position: fixed; z-index: 40; left: 0; right: 0; bottom: 0; display: grid; grid-template-columns: repeat(5, 1fr);
  background: #fff; border-top: 1px solid var(--linha); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(16, 38, 26, .06); }
.abas a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: var(--abas);
  color: var(--suave); text-decoration: none; font-size: 11px; font-weight: 700; }
.abas a[aria-current="page"] { color: var(--verde-2); }
.abas a[aria-current="page"] svg { stroke-width: 2.4; }
.abas .principal { position: relative; }
.abas .principal i { display: grid; place-items: center; width: 52px; height: 52px; margin-top: -22px; border-radius: 50%;
  background: linear-gradient(180deg, #22b863, var(--verde-3)); color: #fff; box-shadow: 0 6px 16px rgba(18, 146, 76, .4); border: 3px solid #fff; }

/* ---------- Blocos comuns ---------- */
.titulo { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 0 0 14px; }
.titulo h1 { font-size: 26px; font-weight: 900; }
.titulo p { color: var(--suave); font-size: 14px; margin-top: 4px; }
.cartao { background: var(--cartao); border: 1px solid var(--linha); border-radius: var(--raio); padding: 16px; box-shadow: var(--sombra); margin: 0 0 14px; }
.cartao > h2 { font-size: 18px; font-weight: 800; margin-bottom: 4px; }
.cartao > h2 + p { color: var(--suave); font-size: 14px; margin-bottom: 12px; }
.passo { display: flex; align-items: center; gap: 10px; margin-bottom: 4px; }
.passo b { display: grid; place-items: center; width: 28px; height: 28px; flex: none; border-radius: 50%; background: var(--cor); color: #fff; font-size: 14px; font-weight: 900; }
.passo h2 { font-size: 18px; font-weight: 800; }
.nota { font-size: 13px; color: var(--suave); }
.aviso-legal { font-size: 12px; color: var(--suave); text-align: center; margin: 18px 4px 0; }
.botao { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 12px 18px; border: 0; border-radius: 12px;
  background: linear-gradient(180deg, #22b863, var(--verde-3)); color: #fff; font-weight: 800; font-size: 16px; text-decoration: none;
  box-shadow: 0 6px 16px rgba(18, 146, 76, .25), inset 0 -2px 0 rgba(0, 0, 0, .14); transition: transform .12s ease; }
.botao:active { transform: scale(.98); }
.botao[disabled] { opacity: .5; pointer-events: none; }
.botao.largo { width: 100%; }
.botao.claro { background: #fff; color: var(--verde); border: 1.5px solid var(--linha); box-shadow: none; }
.botao.ouro { background: linear-gradient(180deg, var(--ouro), var(--ouro-2)); color: #1b1300; box-shadow: 0 6px 16px rgba(207, 161, 62, .3), inset 0 -2px 0 rgba(0, 0, 0, .12); }
.botao.perigo { background: #fff; color: var(--vermelho); border: 1.5px solid #f1c7c7; box-shadow: none; }
.botao.pequeno { min-height: 40px; padding: 8px 12px; font-size: 14px; border-radius: 10px; }
.botoes { display: flex; flex-wrap: wrap; gap: 8px; }
.botoes > * { flex: 1 1 140px; }
.vazio { text-align: center; padding: 28px 12px; color: var(--suave); }
.vazio b { display: block; color: var(--tinta); font-size: 17px; margin-bottom: 4px; }
.vazio .botao { margin-top: 14px; }
.selo { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 999px; font-size: 12px; font-weight: 800; background: var(--cor-clara); color: var(--cor-escura); }
.selo.ouro { background: var(--ouro-claro); color: #7a5600; }
.selo.cinza { background: #eef1ec; color: var(--suave); }

/* Troca de loteria */
.troca { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; padding: 4px; margin: 0 0 14px; background: #e6ebe3; border-radius: 14px; }
.troca button { min-height: 44px; border: 0; border-radius: 10px; background: transparent; font-weight: 800; color: var(--suave); font-size: 15px; }
.troca button[aria-pressed="true"] { background: #fff; color: var(--cor-escura); box-shadow: 0 1px 3px rgba(16, 38, 26, .14); }
.troca button[data-valor="mega"][aria-pressed="true"] { color: #0a5a37; }
.troca button[data-valor="lotofacil"][aria-pressed="true"] { color: #5b1c6b; }

/* Bolinhas */
.bolas { display: flex; flex-wrap: wrap; gap: 6px; }
.bola { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--cor); color: #fff; font-weight: 800; font-size: 15px; font-variant-numeric: tabular-nums; flex: none; }
.bola.vazia { background: #eef1ec; color: var(--texto); }
.bola.acerto { background: var(--verde-3); color: #fff; box-shadow: 0 0 0 3px rgba(18, 146, 76, .2); }
.bola.erro { background: #eef1ec; color: #9aa69d; }
.bola.pequena { width: 30px; height: 30px; font-size: 13px; }
.bola.grande { width: 46px; height: 46px; font-size: 19px; }

/* Volante */
.volante { display: grid; grid-template-columns: repeat(6, 1fr); gap: 7px; margin: 12px 0; }
.volante.lf { grid-template-columns: repeat(5, 1fr); max-width: 360px; margin-inline: auto; }
.volante button { position: relative; aspect-ratio: 1; min-height: 44px; border: 1.5px solid var(--linha); border-radius: 12px; background: #fff;
  font-weight: 800; font-size: 17px; color: var(--tinta); font-variant-numeric: tabular-nums; transition: transform .08s ease, background .12s ease; }
.volante button:active { transform: scale(.93); }
.volante button[aria-pressed="true"] { background: var(--cor); border-color: var(--cor); color: #fff; box-shadow: 0 4px 10px rgba(14, 122, 75, .25); }
.volante button.cheio:not([aria-pressed="true"]) { opacity: .4; }
.volante button::after { content: ""; position: absolute; top: 5px; right: 5px; width: 8px; height: 8px; border-radius: 50%; }
.volante.calor button.quente::after { background: #e8590c; }
.volante.calor button.frio::after { background: #3b8fd0; }
.volante.calor button.atrasado::before { content: ""; position: absolute; top: 5px; left: 5px; width: 8px; height: 8px; border-radius: 2px; background: var(--ouro-2); }
.legenda { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 12px; color: var(--suave); font-weight: 600; }
.legenda span { display: inline-flex; align-items: center; gap: 6px; }
.legenda i { width: 9px; height: 9px; border-radius: 50%; background: #e8590c; }
.legenda i.frio { background: #3b8fd0; }
.legenda i.atrasado { background: var(--ouro-2); border-radius: 2px; }
.ferramentas { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.ferramentas select { min-height: 40px; border: 1.5px solid var(--linha); border-radius: 10px; background: #fff; padding: 0 8px; font-weight: 700; }
.estado { margin-top: 10px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 14px; background: #eef1ec; color: var(--texto); }
.estado.ok { background: var(--verde-claro); color: var(--verde-2); }
.estado.alerta { background: var(--ouro-claro); color: #7a5600; }
.interruptor { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; color: var(--texto); cursor: pointer; }
.interruptor input { width: 20px; height: 20px; accent-color: var(--verde-3); }

/* Raio-X */
.raiox { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.raiox div { padding: 10px 12px; border-radius: 12px; background: #f6f8f4; border: 1px solid var(--linha); }
.raiox span { display: block; font-size: 12px; color: var(--suave); font-weight: 600; }
.raiox b { font-size: 17px; color: var(--tinta); }
.raiox div.ok { background: var(--verde-claro); border-color: #cfe6d7; }
.raiox div.alerta { background: var(--ouro-claro); border-color: #f0dfa8; }
.dicas { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; font-size: 14px; }
.dicas li { display: flex; gap: 8px; align-items: flex-start; }
.dicas li::before { content: "✓"; color: var(--verde-3); font-weight: 900; }
.dicas li.alerta::before { content: "!"; display: grid; place-items: center; width: 16px; height: 16px; margin-top: 3px; border-radius: 50%; background: var(--ouro-2); color: #fff; font-size: 11px; }

/* Opções de jogo */
.opcoes { display: grid; gap: 8px; }
.opcao { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; width: 100%; text-align: left; padding: 14px; border: 2px solid var(--linha);
  border-radius: 14px; background: #fff; }
.opcao strong { color: var(--tinta); font-size: 16px; }
.opcao small { grid-column: 1; color: var(--suave); font-size: 13px; line-height: 1.35; }
.opcao .valor { grid-row: 1 / span 2; grid-column: 2; text-align: right; font-weight: 800; color: var(--tinta); font-size: 15px; white-space: nowrap; }
.opcao .valor em { display: block; font-style: normal; font-size: 13px; font-weight: 700; color: var(--suave); }
.opcao[aria-pressed="true"] { border-color: var(--cor); background: var(--cor-clara); }
.opcao[disabled] { opacity: .55; }
.bolso { margin-top: 10px; padding: 12px; border-radius: 14px; background: #f6f8f4; border: 1px solid var(--linha); }
.bolso label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.dinheiro { display: flex; align-items: center; gap: 8px; }
.dinheiro span { font-weight: 800; color: var(--tinta); }
.dinheiro input, .campo input { width: 100%; min-height: 48px; padding: 10px 12px; border: 1.5px solid #cbd5c8; border-radius: 12px; background: #fff; font-size: 17px; font-weight: 700; }
.fichas { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
.fichas button { min-height: 36px; padding: 6px 12px; border: 1.5px solid var(--linha); border-radius: 999px; background: #fff; font-weight: 700; font-size: 14px; }

/* Resumo e lista de jogos */
.resumo { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 12px 0; }
.resumo div { padding: 10px 8px; border-radius: 12px; background: var(--cor-clara); text-align: center; }
.resumo span { display: block; font-size: 11px; font-weight: 700; color: var(--cor-escura); text-transform: uppercase; letter-spacing: .03em; }
.resumo b { font-size: 18px; color: var(--tinta); font-variant-numeric: tabular-nums; }
.resumo b.menor { font-size: 14px; }
.garantia { padding: 12px 14px; border-radius: 12px; background: var(--ouro-claro); border: 1px solid #f0dfa8; color: #5c4200; font-size: 14px; margin-bottom: 12px; }
.garantia b { color: #3d2c00; }
.lista-jogos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.lista-jogos li { display: flex; align-items: center; gap: 10px; padding: 10px; border: 1px solid var(--linha); border-radius: 12px; background: #fff; }
.lista-jogos li > span { flex: none; width: 30px; font-size: 12px; font-weight: 800; color: var(--suave); text-align: center; }
.lista-jogos li .bolas { flex: 1; gap: 5px; }
.lista-jogos li .premio { flex: none; font-size: 12px; font-weight: 900; color: var(--verde-2); text-align: right; }
.lista-jogos li.premiado { border-color: var(--verde-3); background: var(--verde-claro); }
.lista-jogos.lf .bola { width: 28px; height: 28px; font-size: 12px; }
.lista-jogos.conf .bola { width: 30px; height: 30px; font-size: 13px; }
.lista-jogos.conf.lf .bola { width: 26px; height: 26px; font-size: 11.5px; }
.lista-jogos.conf li { gap: 6px; padding: 8px; }
.lista-jogos.conf li > span { width: 22px; }
.ver-mais { margin-top: 10px; }
.barra { position: fixed; z-index: 35; left: 0; right: 0; bottom: calc(var(--abas) + env(safe-area-inset-bottom)); display: flex; align-items: center; gap: 12px;
  padding: 10px 16px; background: var(--tinta); color: #fff; }
.barra div { flex: 1; font-size: 13px; line-height: 1.25; color: #c9d6cd; }
.barra div b { display: block; font-size: 16px; color: #fff; }
.barra .botao { min-height: 44px; }

/* Início */
.ola { margin-bottom: 14px; }
.ola h1 { font-size: 24px; font-weight: 900; }
.ola p { color: var(--suave); }
.contagem { display: flex; align-items: center; gap: 14px; padding: 16px; border-radius: var(--raio); color: #fff; margin-bottom: 14px;
  background: radial-gradient(120% 140% at 0% 0%, #17794f 0%, var(--verde) 55%, #062e20 100%); box-shadow: var(--sombra); }
.contagem .dias { flex: none; display: grid; place-items: center; min-width: 78px; padding: 8px 10px; border-radius: 14px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(236, 202, 114, .5); }
.contagem .dias b { font-size: 34px; line-height: 1; color: var(--ouro); font-weight: 900; }
.contagem .dias span { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.contagem h2 { color: #fff; font-size: 18px; }
.contagem p { font-size: 14px; color: #cfe3d6; }
.contagem .botao { margin-top: 10px; }
.atalhos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.atalho { display: flex; flex-direction: column; gap: 4px; padding: 14px; border-radius: var(--raio); background: #fff; border: 1px solid var(--linha); box-shadow: var(--sombra); text-decoration: none; color: var(--texto); }
.atalho i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--verde-claro); color: var(--verde-2); margin-bottom: 4px; }
.atalho b { color: var(--tinta); font-size: 16px; }
.atalho span { font-size: 13px; color: var(--suave); line-height: 1.35; }
.resultado { border-radius: var(--raio); overflow: hidden; background: #fff; border: 1px solid var(--linha); box-shadow: var(--sombra); margin-bottom: 14px; }
.resultado header { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 16px; background: var(--cor); color: #fff; }
.resultado header b { font-size: 17px; letter-spacing: -.01em; }
.resultado header span { font-size: 12px; font-weight: 700; text-align: right; line-height: 1.25; }
.resultado .corpo { padding: 14px 16px; }
.resultado .bolas { justify-content: center; }
.resultado .info { margin-top: 12px; text-align: center; font-size: 14px; }
.resultado .info b { display: block; color: var(--cor-escura); font-size: 16px; letter-spacing: .02em; }
.resultado .info strong { color: var(--tinta); }
.resultado .faixas { margin: 10px 0 0; padding: 0; list-style: none; font-size: 13px; display: grid; gap: 4px; }
.resultado .faixas li { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-top: 1px solid var(--linha); }
.resultado footer { padding: 0 16px 14px; }
.progresso { height: 8px; border-radius: 999px; background: #e6ebe3; overflow: hidden; margin: 8px 0 4px; }
.progresso i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--ouro-2), var(--ouro)); }

/* Quentes e frios */
.trio { display: grid; gap: 10px; }
.ranking h3 { font-size: 15px; margin-bottom: 8px; display: flex; align-items: center; gap: 8px; }
.ranking ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.ranking li button { width: 100%; padding: 6px 2px; border: 1.5px solid var(--linha); border-radius: 10px; background: #fff; text-align: center; }
.ranking li b { display: block; font-size: 17px; color: var(--tinta); }
.ranking li span { font-size: 11px; color: var(--suave); font-weight: 600; }
.ranking li button[aria-pressed="true"] { background: var(--cor); border-color: var(--cor); }
.ranking li button[aria-pressed="true"] b, .ranking li button[aria-pressed="true"] span { color: #fff; }
.tabela-rolavel { overflow-x: auto; margin: 0 -4px; }
table.dados { width: 100%; border-collapse: collapse; font-size: 14px; }
table.dados th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .03em; color: var(--suave); padding: 8px 6px; border-bottom: 2px solid var(--linha); white-space: nowrap; }
table.dados td { padding: 8px 6px; border-bottom: 1px solid var(--linha); vertical-align: middle; }
table.dados td.num { white-space: nowrap; font-variant-numeric: tabular-nums; font-weight: 700; color: var(--tinta); }

/* Simulador */
.fonte-jogo select { width: 100%; min-height: 48px; padding: 0 12px; border: 1.5px solid #cbd5c8; border-radius: 12px; background: #fff; font-weight: 700; }
.globo { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; min-height: 54px; margin: 14px 0; }
.globo .bola.grande { width: 42px; height: 42px; font-size: 18px; }
.globo .bola { animation: cair .45s cubic-bezier(.2, 1.4, .4, 1) both; }
@keyframes cair { from { transform: translateY(-26px) scale(.4); opacity: 0; } to { transform: none; opacity: 1; } }
.placar { display: grid; grid-template-columns: repeat(auto-fit, minmax(92px, 1fr)); gap: 8px; margin: 12px 0; }
.placar div { padding: 10px 8px; border-radius: 12px; background: #f6f8f4; border: 1px solid var(--linha); text-align: center; }
.placar div.tem { background: var(--verde-claro); border-color: #bfe0cb; }
.placar span { display: block; font-size: 12px; font-weight: 700; color: var(--suave); }
.placar b { font-size: 20px; color: var(--tinta); font-variant-numeric: tabular-nums; }
.frase { padding: 12px 14px; border-radius: 12px; background: #f6f8f4; font-size: 14px; }
.frase.bom { background: var(--verde-claro); color: var(--verde); font-weight: 700; }

/* Meus jogos */
.salvos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.salvos button { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; width: 100%; text-align: left; padding: 14px; border: 1px solid var(--linha);
  border-radius: var(--raio); background: #fff; box-shadow: var(--sombra); }
.salvos i { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; background: var(--cor); color: #fff; font-style: normal; font-weight: 900; font-size: 13px; }
.salvos b { display: block; color: var(--tinta); }
.salvos span { font-size: 13px; color: var(--suave); }
.voltar { display: inline-flex; align-items: center; gap: 4px; margin-bottom: 10px; padding: 6px 0; border: 0; background: none; font-weight: 800; color: var(--verde-2); text-decoration: none; }
.conferidor .volante { gap: 5px; }
.conferidor .volante button { min-height: 38px; font-size: 14px; border-radius: 9px; }

/* Manual */
.capitulos { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.capitulos a { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 12px; padding: 14px; border: 1px solid var(--linha); border-radius: var(--raio);
  background: #fff; text-decoration: none; color: var(--texto); box-shadow: var(--sombra); }
.capitulos i { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: #eef1ec; color: var(--tinta); font-style: normal; font-weight: 900; }
.capitulos a.lido i { background: var(--verde-3); color: #fff; }
.capitulos b { display: block; color: var(--tinta); line-height: 1.25; }
.capitulos span { font-size: 13px; color: var(--suave); }
.leitura { background: #fff; border: 1px solid var(--linha); border-radius: var(--raio); padding: 20px 18px; box-shadow: var(--sombra); }
.leitura .numero { font-size: 12px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--ouro-2); }
.leitura h1 { font-size: 25px; font-weight: 900; margin: 4px 0 16px; }
.leitura h2 { font-size: 18px; margin: 20px 0 8px; }
.leitura p { font-size: 17px; line-height: 1.65; margin-bottom: 14px; }
.leitura ul, .leitura ol { margin: 0 0 14px; padding-left: 22px; display: grid; gap: 10px; font-size: 16.5px; line-height: 1.55; }
.leitura li b { color: var(--tinta); }
.leitura .destaque { padding: 14px 16px; border-radius: 14px; background: var(--ouro-claro); border-left: 4px solid var(--ouro-2); color: #4a3600; font-size: 16px; line-height: 1.55; margin-bottom: 14px; }
.leitura table { font-size: 14px; }
.leitura .tabela-rolavel { margin-bottom: 14px; }
.navegar { display: flex; gap: 8px; margin-top: 14px; }
.navegar > * { flex: 1; }

/* Folha (painel que sobe) e aviso rápido */
.folha { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center; background: rgba(10, 25, 17, .55); }
.folha > div { width: 100%; max-width: 560px; max-height: 88vh; overflow: auto; padding: 20px 18px calc(20px + env(safe-area-inset-bottom)); background: #fff; border-radius: 22px 22px 0 0; }
.folha h2 { font-size: 20px; margin-bottom: 6px; }
.folha p { margin-bottom: 12px; }
.campo { display: block; margin-bottom: 12px; }
.campo > span { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; color: var(--tinta); }
.campo small { display: block; margin-top: 5px; font-size: 13px; color: var(--suave); }
.texto-pronto { white-space: pre-wrap; padding: 12px; border-radius: 12px; background: #f6f8f4; border: 1px solid var(--linha); font-size: 14px; margin-bottom: 12px; max-height: 220px; overflow: auto; }
.torrada { position: fixed; z-index: 80; left: 50%; bottom: calc(var(--abas) + 84px + env(safe-area-inset-bottom)); transform: translateX(-50%); max-width: calc(100% - 32px);
  padding: 12px 18px; border-radius: 999px; background: var(--tinta); color: #fff; font-weight: 700; font-size: 14px; box-shadow: 0 10px 30px rgba(0, 0, 0, .25); animation: subir .25s ease both; }
@keyframes subir { from { opacity: 0; transform: translate(-50%, 10px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ---------- Entrar / senha ---------- */
body.portaria { min-height: 100vh; min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px;
  background: radial-gradient(120% 90% at 50% 0%, #17794f 0%, var(--verde) 45%, #062e20 100%); }
.porta { width: 100%; max-width: 400px; }
.porta .logo { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 20px; color: #fff; text-align: center; }
.porta .logo img { width: 64px; height: 64px; border-radius: 18px; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); }
.porta .logo b { font-size: 22px; font-weight: 900; letter-spacing: -.01em; }
.porta .logo span { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--ouro); }
.porta form, .porta .caixa { background: #fff; border-radius: 20px; padding: 22px 20px; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); }
.porta h1 { font-size: 22px; font-weight: 900; margin-bottom: 4px; }
.porta h1 + p { color: var(--suave); font-size: 15px; margin-bottom: 16px; }
.porta .campo input { font-weight: 600; }
.senha { position: relative; }
.senha input { padding-right: 84px; }
.senha button { position: absolute; right: 6px; top: 6px; height: 36px; padding: 0 10px; border: 0; border-radius: 9px; background: #eef1ec; font-size: 13px; font-weight: 800; color: var(--texto); }
.erro { padding: 10px 12px; border-radius: 12px; background: var(--vermelho-claro); color: var(--vermelho); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.certo { padding: 10px 12px; border-radius: 12px; background: var(--verde-claro); color: var(--verde-2); font-weight: 700; font-size: 14px; margin-bottom: 12px; }
.porta .rodape { margin-top: 14px; text-align: center; font-size: 14px; }
.porta .rodape a { font-weight: 700; }
.porta .seguro { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 16px; color: #cfe3d6; font-size: 12px; font-weight: 600; text-align: center; }
.porta .seguro svg { width: 14px; height: 14px; }
.forca { height: 6px; border-radius: 999px; background: #e6ebe3; overflow: hidden; margin-top: 8px; }
.forca i { display: block; height: 100%; width: 0; border-radius: 999px; background: var(--vermelho); transition: width .2s ease, background .2s ease; }
.forca i[data-nivel="2"] { background: var(--ouro-2); }
.forca i[data-nivel="3"] { background: var(--verde-3); }
.regras { list-style: none; margin: 8px 0 0; padding: 0; font-size: 13px; color: var(--suave); display: grid; gap: 2px; }
.regras li::before { content: "○ "; }
.regras li.ok { color: var(--verde-2); font-weight: 700; }
.regras li.ok::before { content: "✓ "; }
.linha-conta { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linha); font-size: 15px; }
.linha-conta b { color: var(--tinta); word-break: break-all; text-align: right; }

/* ---------- Telas largas ---------- */
@media (min-width: 900px) {
  body.app { padding-left: 232px; }
  .topo { position: fixed; top: 0; left: 0; bottom: 0; width: 232px; flex-direction: column; align-items: stretch; padding: 22px 16px; gap: 0; }
  .topo .conta { margin: auto 0 0; width: auto; height: auto; border-radius: 12px; padding: 12px; justify-content: flex-start; display: flex; gap: 10px; font-size: 14px; }
  .topo .conta::after { content: "Minha conta"; }
  .abas { top: 92px; bottom: auto; left: 0; right: auto; width: 232px; display: flex; flex-direction: column; gap: 4px; padding: 0 12px; background: transparent; border: 0; box-shadow: none; }
  .abas a { flex-direction: row; justify-content: flex-start; gap: 12px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: #cfe3d6; font-size: 15px; }
  .abas a[aria-current="page"] { background: rgba(255, 255, 255, .12); color: #fff; }
  .abas .principal i { width: 24px; height: 24px; margin: 0; border: 0; background: none; box-shadow: none; }
  main { max-width: 1040px; padding: 32px 32px 120px; }
  .titulo h1 { font-size: 30px; }
  .duas { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); gap: 18px; align-items: start; }
  .volante { grid-template-columns: repeat(10, 1fr); }
  .volante.lf { grid-template-columns: repeat(5, 1fr); }
  .barra { left: 232px; bottom: 0; }
  .torrada { bottom: 84px; }
  .atalhos { grid-template-columns: repeat(4, 1fr); }
  .trio { grid-template-columns: repeat(3, 1fr); }
  .folha { align-items: center; }
  .folha > div { border-radius: 22px; }
  .leitura { padding: 32px 36px; max-width: 760px; }
  .capitulos { grid-template-columns: 1fr 1fr; }
  .resultados-grade { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
  .resultados-grade .resultado { margin: 0; }
}
@media (max-width: 359px) {
  .volante { gap: 5px; }
  .bola { width: 32px; height: 32px; font-size: 14px; }
  .resumo b { font-size: 16px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }
@media print {
  .topo, .abas, .barra, .troca, .botoes, .botao, .voltar, .conferidor, .nao-imprimir { display: none !important; }
  body.app { padding: 0; background: #fff; }
  main { max-width: none; padding: 0; }
  .cartao { box-shadow: none; border: 0; padding: 0; }
  .bola { border: 1px solid #000; background: #fff !important; color: #000 !important; }
}
