/* Base: reset curto, tipografia e utilitarios. Proposta de 16/11/2026. */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--fonte-texto);
  font-size: var(--tam-texto);
  font-variant-numeric: tabular-nums lining-nums; /* numeros de mesma largura em todo lugar; nos titulos os digitos vem da Fira (familia Algarismos) */
  line-height: var(--entrelinha-texto);
  color: var(--cor-texto);
  background-color: var(--cor-fundo-pagina);
  background-image:
    radial-gradient(120% 80% at 50% 0%, #1a2b4a 0%, rgba(26,43,74,0) 60%),
    radial-gradient(90% 60% at 50% 100%, #0f1c33 0%, rgba(15,28,51,0) 70%);
  background-attachment: fixed;
}
img, svg { display: block; max-width: 100%; }
button, input, select { font: inherit; color: inherit; }
a { color: var(--cor-texto-titulo); }
a:hover { color: var(--cor-ouro-luz); }

h1, h2, h3, h4, .titulo {
  font-family: var(--fonte-titulo);
  font-weight: var(--peso-titulo);
  line-height: var(--entrelinha-titulo);
  letter-spacing: var(--espacamento-titulo);
  color: var(--cor-texto-titulo);
  text-shadow: var(--sombra-texto);
  margin: 0 0 var(--esp-3);
}
h1 { font-size: var(--tam-titulo-1); font-weight: var(--peso-titulo-forte); }
h2 { font-size: var(--tam-titulo-2); }
h3 { font-size: var(--tam-titulo-3); }
h4 { font-size: var(--tam-titulo-4); }
p { margin: 0 0 var(--esp-3); }
.texto-suave { color: var(--cor-texto-suave); }
.texto-apagado { color: var(--cor-texto-apagado); }
.legenda { font-size: var(--tam-legenda); color: var(--cor-texto-apagado); letter-spacing: .02em; }
.sobretitulo {
  font-family: var(--fonte-texto); font-weight: 600; font-size: var(--tam-pequeno);
  letter-spacing: .18em; text-transform: uppercase; color: var(--cor-texto-suave);
  margin: 0 0 var(--esp-2);
}
.numero { font-family: var(--fonte-numero); font-variant-numeric: tabular-nums lining-nums; font-weight: 600; }

/* Foco do teclado: anel claro com contorno escuro, visivel sobre qualquer fundo */
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--cor-foco); outline-offset: 3px; box-shadow: 0 0 0 3px var(--cor-contorno); }

.visualmente-oculto {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.pular-conteudo, .botao.pular-conteudo { position: absolute; left: var(--esp-4); top: -80px; z-index: 100; }
.pular-conteudo:focus, .botao.pular-conteudo:focus { top: var(--esp-4); }

/* Faixa de meandro grego (vetor, repete na horizontal) */
.meandro {
  height: 22px; border-block: 2px solid var(--cor-ouro-sombra);
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='18' viewBox='0 0 24 18'%3E%3Cpath d='M0 15.5H24M20.5 15.5V2.5H5.5V12H15V6.5H10.5' fill='none' stroke='%23c9a24f' stroke-width='2.2'/%3E%3C/svg%3E") repeat-x center / 24px 18px,
    var(--cor-fundo-poco);
}
.meandro--fino { height: 14px; border-width: 1px; background-size: 16px 12px, auto; }

.icone { width: 1.25em; height: 1.25em; flex: none; }
.oculto { display: none !important; }

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

/* Barras de rolagem no visual do jogo (20/11/2026: "personaliza para que seja do visual do jogo"): trilho azul-noite,
   alça de ouro velho com contorno escuro; sem setas. Vale em toda página do jogo. */
* { scrollbar-width: thin; scrollbar-color: var(--cor-ouro-sombra, #8a6a2c) #0b1426; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: #0b1426; border-left: 1px solid rgba(201, 162, 79, .25); }
::-webkit-scrollbar-thumb { background: linear-gradient(90deg, #8a6a2c, #c9a24f 55%, #8a6a2c); border: 2px solid #0b1426; border-radius: 6px; }
::-webkit-scrollbar-thumb:hover { background: linear-gradient(90deg, #a8832f, #f0d68f 55%, #a8832f); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-scrollbar-corner { background: #0b1426; }
