/* ==========================================================================
   UltraWideCheck — Base / Reset / Typography
   ========================================================================== */

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

/* The `hidden` attribute must always win over any component's own display
   rule (e.g. `.btn { display: inline-flex }`, `.form-success { display: flex }`)
   — otherwise a hidden-by-default element silently renders visible the
   moment it also carries a class that sets `display`. Found live on the
   request-a-game/community success panels and the games.html "Clear all"
   button during a QA pass; fixed here once, globally, instead of per-class. */
[hidden] { display: none !important; }

html {
  color-scheme: dark;
  scroll-behavior: smooth;
}

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

body {
  margin: 0;
  background: var(--bg-canvas);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4, h5, h6 {
  margin: 0;
  font-weight: 650;
  letter-spacing: -0.02em;
  line-height: 1.12;
}

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

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

button, input, select, textarea {
  font: inherit;
  color: inherit;
  background: none;
  border: none;
}

button { cursor: pointer; }

:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus);
  border-radius: var(--radius-sm);
}

::selection {
  background: var(--accent-soft-strong);
  color: var(--text-primary);
}

/* ---- Layout primitives ---- */

.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

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

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

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

.skip-link {
  position: absolute;
  left: 12px; top: -60px;
  background: var(--accent-10);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  z-index: 200;
  transition: top var(--dur-fast) var(--ease-out);
}
.skip-link:focus { top: 12px; }

/* ---- Section rhythm ---- */

.section {
  padding-block: clamp(64px, 9vw, 128px);
}

.section--tight { padding-block: clamp(40px, 6vw, 80px); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-text);
}

.eyebrow::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: clamp(28px, 4vw, 48px);
}

.section-head h2 {
  font-size: clamp(1.6rem, 2.4vw, 2.2rem);
  max-width: 46ch;
}

.section-head p {
  color: var(--text-secondary);
  max-width: 52ch;
  margin-top: 10px;
}

.text-secondary { color: var(--text-secondary); }
.text-tertiary { color: var(--text-tertiary); }

.mono { font-family: var(--font-mono); }

/* SAMPLE DATA notice used across the site */
.sample-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status-partial);
  background: var(--status-partial-soft);
  border: 1px solid var(--status-partial-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

/* Same shape, excellent-tone, for games checked against real public sources
   (PCGamingWiki, Nexus Mods, etc.) rather than invented for the MVP. */
.verified-flag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--status-excellent);
  background: var(--status-excellent-soft);
  border: 1px solid var(--status-excellent-border);
  padding: 4px 10px;
  border-radius: var(--radius-pill);
}

.source-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-top: 10px;
}
.source-links a {
  font-size: 0.775rem;
  color: var(--accent-text);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.source-links a:hover { color: var(--text-primary); }
