/* Base: reset, tipografia do sistema, botões, foco, "reduzir movimento" (A26). */

*, *::before, *::after { box-sizing: border-box; }
html, body, h1, h2, h3, p, ul, ol, figure { margin: 0; }
ul, ol { padding: 0; }

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: var(--fundo);
  /* Sem "puxar para recarregar" no Chrome do Android: uma recarga no meio do treino
     interromperia o timer. Precisa estar no <html>, que é quem rola a página. */
  overscroll-behavior-y: none;
}

body {
  min-height: 100vh;
  min-height: 100dvh;
  font-family: var(--fonte);
  font-size: var(--tam-n);
  line-height: 1.4;
  background: var(--fundo);
  color: var(--texto);
  -webkit-tap-highlight-color: transparent;
  overscroll-behavior-y: none;
}

button, input, select { font: inherit; color: inherit; }

button {
  min-height: var(--alvo);
  min-width: var(--alvo);
  border: 0;
  background: none;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  -webkit-user-select: none;
  user-select: none;
}
button:disabled { cursor: default; opacity: 0.45; }

:focus { outline: none; }
:focus-visible {
  outline: 3px solid var(--foco);
  outline-offset: 2px;
}

[hidden] { display: none !important; }

/* Só para leitores de tela */
.so-leitor {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* Números com largura fixa (o tempo não "dança") */
.num-tab { font-variant-numeric: tabular-nums; }

@media (prefers-reduced-motion: reduce) {
  :root { --transicao: 0ms; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
