/* Grand Gaming — base.css: variables, reset, tipografía */
:root {
  --color-fondo-oscuro: #2B2A1E;
  --color-superficie: #39382A;
  --color-acento: #C97A2E;
  --color-fondo-claro: #F7F4EC;
  --color-texto-claro: #1D1B14;
  --color-texto-oscuro: #F1EFE6;
  --color-advertencia: #A8471F;
  --color-exito: #3A7A4A;
  --fuente-titulos: 'Sora', sans-serif;
  --fuente-texto: 'Source Sans 3', sans-serif;
  --radio: 10px;
  --max-ancho: 1100px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--fuente-texto);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-texto-claro);
  background: var(--color-fondo-claro);
}

h1, h2, h3, h4 {
  font-family: var(--fuente-titulos);
  line-height: 1.25;
  margin-top: 0;
}

h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); font-weight: 700; }
h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 600; }
h3 { font-size: 1.2rem; font-weight: 600; }

p { margin: 0 0 1em; }

a { color: var(--color-acento); text-decoration: underline; }
a:hover { text-decoration: none; }

img, svg { max-width: 100%; }

ul, ol { padding-left: 1.3em; }

table { border-collapse: collapse; width: 100%; }
th, td { padding: 0.6em 0.8em; text-align: left; border-bottom: 1px solid #ccc5ad; }

/* Foco visible en todo elemento interactivo */
a:focus-visible,
button:focus-visible,
input:focus-visible,
[tabindex]:focus-visible {
  outline: 2px solid var(--color-acento);
  outline-offset: 2px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--color-acento);
  color: #fff;
  padding: 0.6em 1em;
  z-index: 1000;
  border-radius: 0 0 var(--radio) 0;
}
.skip-link:focus {
  left: 0;
}

/* Oculta el main mientras el age gate decide */
html.gg-pendiente main,
html.gg-pendiente footer {
  display: none;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

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