/* RewardOdds — sistema "Ledger": reset y fundamentos */

*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }

html {
  -webkit-text-size-adjust: 100%;
  /* El menú móvil se desplaza fuera de pantalla con translateX(100%); sin
     este corte, su caja de layout (ancho completo, aunque trasladada) puede
     seguir sumando al scrollWidth del documento en anchos muy angostos. */
  overflow-x: hidden;
}

@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;
  }
}

body {
  font-family: var(--fuente);
  font-size: var(--tipo-400);
  line-height: var(--interlineado-texto);
  color: var(--tinta);
  background: var(--fondo);
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--fuente);
  font-weight: 700;
  line-height: var(--interlineado-ajustado);
  letter-spacing: -0.01em;
  color: var(--tinta);
}
h1 { font-size: var(--tipo-900); font-weight: 800; }
h2 { font-size: var(--tipo-700); }
h3 { font-size: var(--tipo-500); }
h4 { font-size: var(--tipo-400); }

a { color: var(--indigo); text-underline-offset: 3px; }
a:hover { color: var(--indigo-oscuro); }

ul, ol { padding-left: 1.2em; }
table { border-collapse: collapse; width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible {
  /* Indirected through --anillo-foco so dark-surface containers (e.g. the
     cookie banner) can repoint it to a lighter ring without !important. */
  outline: 3px solid var(--anillo-foco, var(--indigo));
  outline-offset: 2px;
}
:focus:not(:focus-visible) { outline: none; }

/* ---- Utilidades de layout ---- */
.lgr-envoltorio { width: 100%; max-width: var(--ancho-max); margin-inline: auto; padding-inline: var(--e-4); }
.lgr-lectura { max-width: var(--ancho-lectura); }

.lgr-oculto {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

.lgr-saltar {
  position: absolute; left: var(--e-3); top: -60px;
  background: var(--tinta); color: var(--tinta-invertida);
  padding: var(--e-2) var(--e-3); border-radius: var(--radio-sm);
  z-index: 1000; transition: top var(--dur) var(--easing);
}
.lgr-saltar:focus { top: var(--e-3); }

.lgr-centro { text-align: center; }
.lgr-tenue { color: var(--tinta-media); }
