/* =========================================================
   IKARYS GAMING — BASE
   Reset + reglas globales de tipografía y layout.
   ========================================================= */

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

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ik-black);
  color: var(--ik-white);
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-normal);
  -webkit-font-smoothing: antialiased;
}

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

a { color: inherit; text-decoration: none; }

ul, ol { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 600;
  line-height: var(--lh-tight);
  margin: 0;
  letter-spacing: 0.01em;
}

p { margin: 0; }

button {
  font-family: inherit;
  cursor: pointer;
  background: none;
  border: none;
  color: inherit;
}

input, select {
  font-family: inherit;
  font-size: inherit;
}

/* Foco visible para accesibilidad — nunca se elimina el outline sin sustituto */
:focus-visible {
  outline: 2px solid var(--ik-red-bright);
  outline-offset: 3px;
}

/* ---- Layout utilities ---- */
.container {
  width: 100%;
  max-width: var(--content-max);
  margin-inline: auto;
  padding-inline: var(--sp-4);
}

.container--narrow {
  max-width: var(--content-narrow);
}

.section {
  padding-block: var(--sp-7);
}

.section--tight {
  padding-block: var(--sp-6);
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--sp-5);
}

.section-head h2 {
  font-size: var(--fs-h1);
  text-transform: uppercase;
}

.section-head p {
  color: var(--ik-grey);
  margin-top: var(--sp-2);
  max-width: 60ch;
}

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

/* Contenedores con scroll horizontal para tablas/listas anchas en móvil */
.scroll-x {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
