/* Estatísticas e ajustes de acessibilidade da página de jogos. */

/* Estatísticas */
.stats-det, .ajustes-det { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); }
.stats-wrap { overflow-x: auto; }
.stats-table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.stats-table th { text-align: right; font: 400 .82rem var(--body); color: var(--muted); padding: 4px 8px; white-space: nowrap; }
.stats-table th:first-child, .stats-table td.name { text-align: left; }
.stats-table td { text-align: right; padding: 8px; border-top: 1px solid var(--line); font: 600 .95rem var(--display); }
.stats-table td.name { color: var(--accent); }
.ajustes-det .toggles { align-items: center; }

/* Alto contraste: texto secundário e linhas mais fortes, sem fundo decorativo */
:root.contraste { --muted: var(--ink); --line: color-mix(in srgb, var(--ink) 55%, var(--bg)); }
:root.contraste .sky { display: none; }

/* Menos animação: nada se mexe sozinho; fogos e contas caindo também ficam desligados (festa.js e core.js conferem) */
:root.calmo *, :root.calmo *::before, :root.calmo *::after { animation: none !important; transition: none !important; }
:root.calmo .sky { display: none; }

/* Busca de jogos: um campo só, no topo da aba (o botão de limpar e o estado vazio estão em hub.css) */
.busca { display: flex; align-items: center; gap: 10px; min-height: 46px; padding: 0 16px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface); }
.busca .ico { flex: none; color: var(--muted); }
.busca input { flex: 1; min-width: 0; min-height: 44px; border: 0; outline: 0; background: none; font: 400 1rem var(--body); color: var(--ink); }
.busca:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
/* "O que este jogo exige", no fim da folha de regras do jogo */
.treina { margin: 12px 0 0; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.treina strong { color: var(--ink); }
.telas button { min-height: 44px; }
.ajustes-det .tgl, .ajustes-det .btn { min-height: 44px; }

/* Quem acompanha você: um cartão por mentor, com retrato, nome e frase; o rádio fica por baixo do cartão */
.mentores { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.mentores legend { padding: 0 0 8px; font: 600 1rem var(--display); }
.mentor-op { position: relative; display: grid; grid-template-columns: 48px minmax(0, 1fr); align-items: center; gap: 10px; min-height: 64px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; }
.mentor-op input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.mentor-op .mentor { width: 48px; height: 48px; }
.mentor-txt { display: grid; min-width: 0; }
.mentor-txt strong { font: 700 .95rem/1.2 var(--display); }
.mentor-txt small { font-size: .8rem; line-height: 1.3; color: var(--muted); }
.mentor-op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.mentor-op:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.mentor-convite { display: grid; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 22px; background: var(--surface); }
.mentor-convite .btn { justify-self: start; min-height: 44px; }

/* Tema de cores: seis amostras em rádio; a amostra mostra o degradê da marca e, no canto, o realce do tema */
.cores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.cores legend { padding: 0 0 8px; font: 600 1rem var(--display); }
.cor-op { position: relative; display: grid; justify-items: center; gap: 6px; min-height: 84px; padding: 10px 4px 8px; border: 1px solid var(--line); border-radius: 16px; background: var(--surface); cursor: pointer; text-align: center; }
.cor-op input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.cor-amostra { position: relative; width: 44px; height: 44px; border-radius: 14px; background: linear-gradient(135deg, var(--a), var(--b)); box-shadow: inset 0 1px 0 rgba(255, 255, 255, .3), 0 6px 8px -5px var(--lift); }
.cor-amostra::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 18px; height: 18px; border-radius: 50%; background: var(--r); border: 2px solid var(--surface); }
.cor-nome { font: 600 .82rem/1.2 var(--display); }
.cor-op:has(input:checked) { border-color: var(--accent); background: var(--accent-soft); box-shadow: inset 0 0 0 1px var(--accent); }
.cor-op:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
@media (min-width: 641px) { .cores { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
/* No convite de primeira visita os mentores vão em grade de três, só retrato e nome: a lista de jogos não some da tela */
.mentor-convite .mentores { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.mentor-convite .mentor-op { grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 4px; min-height: 0; padding: 8px 4px; text-align: center; }
.mentor-convite .mentor-txt small { display: none; }
.mentor-convite .mentor-txt strong { font-size: .82rem; }
.mentor-linha { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.mentor-linha p { margin: 0; flex: 1 1 180px; font: 600 .95rem/1.3 var(--display); }
.mentor-acoes { display: flex; gap: 8px; }
.mentor-acoes .btn { min-height: 44px; }
.mentor-convite .mentores legend { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
/* Tema pastel: a amostra mostra o tom do fundo, com o degradê num disco dentro dele */
.cor-amostra.pastel { background: var(--p); box-shadow: inset 0 0 0 1px var(--line), 0 6px 8px -5px var(--lift); }
.cor-amostra.pastel::before { content: ""; position: absolute; inset: 9px; border-radius: 50%; background: linear-gradient(135deg, var(--a), var(--b)); }
/* Em Ajustes as opções quebram de linha em vez de rolar de lado: todas ficam à vista */
.ajustes-det .picker { flex-wrap: wrap; overflow: visible; padding: 0; }
/* Título de cada grupo de Ajustes (os seletores de tema e de mentor já trazem o seu, numa legenda) */
.aj-titulo, .cores legend, .mentores legend { margin: 8px 0 0; padding: 0 0 2px; font: 600 1rem var(--display); }
.ajustes-det .aj-titulo:first-of-type { margin-top: 0; }
/* Aba Você: evolução por área (jogos/evolucao.js) */
.evo-nums { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin: 0; }
.evo-nums dd { margin: 0; font: 800 1.35rem/1.1 var(--display); letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.evo-nums dt { margin-top: 2px; font-size: .8rem; line-height: 1.25; color: var(--muted); }
.evo-areas { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 12px; }
.evo-areas li { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; --g: var(--accent); }
.evo-areas strong { font: 600 1rem var(--display); }
.evo-v { font: 700 1rem var(--display); font-variant-numeric: tabular-nums; }
.evo-areas .card-bar { grid-column: 1 / -1; height: 8px; }
.evo-areas small { grid-column: 1 / -1; font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.evo-mais { margin: 0; padding: 0; list-style: none; display: grid; }
.evo-mais li { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 44px; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.evo-mais a { display: flex; align-items: center; flex: 1; min-height: 44px; color: var(--ink); font: 600 .98rem var(--display); text-decoration: none; }
.evo-mais span { color: var(--muted); font-size: .88rem; white-space: nowrap; }
.evo-v.vazio { font: 400 .86rem var(--body); color: var(--muted); }
