/* ============================================================
   Typer Mundial 2026 — Reset + baza
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html { -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  background: var(--ink);
  color: var(--text);
  line-height: 1.5;
  min-height: 100dvh;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

/* Tło: stadion nocą — gradient + siatka geometryczna "26" */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  background:
    radial-gradient(900px 500px at 50% -10%, rgba(242,193,78,0.10), transparent 60%),
    radial-gradient(700px 500px at 100% 100%, rgba(45,108,223,0.08), transparent 55%),
    radial-gradient(700px 500px at 0% 90%, rgba(0,135,90,0.07), transparent 55%),
    var(--ink);
}

/* Subtelna siatka kwadratów (nawiązanie do "26" z 48 figur) */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  -webkit-mask-image: radial-gradient(circle at 50% 30%, black, transparent 75%);
  opacity: 0.5;
  pointer-events: none;
}

img, svg { display: block; max-width: 100%; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
  border-radius: 4px;
}

::selection { background: var(--gold); color: var(--ink); }

/* Kontener mobile-first wyśrodkowany */
.shell {
  width: 100%;
  max-width: var(--max);
  margin-inline: auto;
  padding: var(--pad);
}

.hidden { display: none !important; }

/* Wejście strony — staggered reveal */
@keyframes rise {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.6s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.d1 { animation-delay: 0.05s; }
.d2 { animation-delay: 0.15s; }
.d3 { animation-delay: 0.25s; }
.d4 { animation-delay: 0.35s; }
.d5 { animation-delay: 0.45s; }

@media (prefers-reduced-motion: reduce) {
  .rise { animation: none; }
}
