/* ============================================================
   GTA 100% Trackers — hub
   Same HUD tokens as the per-game checklists.
   No gradients, hairline borders, per-card accent.
   ============================================================ */

:root {
  --bg:      #111214;
  --panel:   #1A1C20;
  --panel-2: #1F2126;
  --text:    #EDEAE2;
  --muted:   #868D98;
  --line:    #2A2D33;
  --line-hi: #3A3E46;

  --accent: #FFB13D;          /* fallback; each card overrides */

  --sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --display: "Anton", "Arial Narrow", Impact, var(--sans);

  --radius: 6px;
  --wrap: 1180px;
}

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

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

body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.num { font-family: var(--mono); font-variant-numeric: tabular-nums; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

a { color: var(--accent); text-underline-offset: 2px; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 3px;
}

/* ---------------- masthead ---------------- */

.hub-head {
  padding: clamp(38px, 8vw, 84px) 0 clamp(24px, 4vw, 40px);
}

.hub-title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(34px, 7vw, 66px);
  line-height: .98;
  letter-spacing: .075em;
  text-transform: uppercase;
  margin: 0 0 10px;
  transform: skewX(-6deg);
}

.hub-sub {
  margin: 0;
  color: var(--muted);
  font-size: 12.5px;
  letter-spacing: .1em;
  text-transform: uppercase;
  display: flex; align-items: center; gap: 9px; flex-wrap: wrap;
}
.hub-sub .dot { color: var(--line); }

.hub-rule {
  height: 1px; background: var(--line);
  margin: 0 0 clamp(22px, 4vw, 34px);
}

/* ---------------- card grid ---------------- */

/* A 6-column track so an odd card count still fills every row: the first three
   cards take two columns each, the trailing two take three each. No orphan
   sitting alone in a half-empty row on wide screens. */
.games {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 18px;
  padding-bottom: 44px;
  list-style: none;
  margin: 0;
}

.card { grid-column: span 2; }
.card:nth-child(n + 4) { grid-column: span 3; }

@media (max-width: 1039px) {
  .games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .card, .card:nth-child(n + 4) { grid-column: span 1; }
  /* a trailing odd card widens instead of stranding a gap */
  .card:last-child:nth-child(odd) { grid-column: span 2; }
}

@media (max-width: 640px) {
  .games { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .card, .card:nth-child(n + 4), .card:last-child:nth-child(odd) { grid-column: span 1; }
}

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 20px 18px 18px;
  transition: border-color .18s ease, background .18s ease;
}
.card:hover { border-color: var(--line-hi); border-top-color: var(--accent); background: var(--panel-2); }

/* per-card accent outline for keyboard focus */
.card :focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.card-name {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(21px, 2.3vw, 27px);
  line-height: 1.06;
  letter-spacing: .07em;
  text-transform: uppercase;
  color: var(--accent);
  transform: skewX(-6deg);
  margin: 0 0 4px;
}

.card-city {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
}

.card-stat {
  display: flex; align-items: baseline; gap: 8px;
  margin-bottom: 7px;
}
.card-count {
  font-family: var(--mono);
  font-variant-numeric: tabular-nums;
  font-size: 17px; font-weight: 600;
  color: var(--text);
}
.card-label {
  font-size: 10.5px; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}

.card-bar {
  height: 4px;
  background: var(--line);
  border-radius: 2px;
  overflow: hidden;
  margin-bottom: 18px;
}
.card-bar > span {
  display: block; height: 100%; width: 0%;
  background: var(--accent);
  transition: width .28s ease;
}

.card-actions {
  display: flex; gap: 8px; margin-top: auto; flex-wrap: wrap;
}

.btn {
  flex: 1 1 0;
  text-align: center;
  text-decoration: none;
  font-family: var(--sans);
  font-size: 11.5px; font-weight: 600;
  letter-spacing: .11em; text-transform: uppercase;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--text);
  background: transparent;
  white-space: nowrap;
  transition: background .15s ease, border-color .15s ease, color .15s ease;
}
.btn:hover { border-color: var(--line-hi); background: #23262C; color: var(--text); }

.btn-accent {
  background: var(--accent);
  border-color: var(--accent);
  color: #111214;
}
.btn-accent:hover { background: var(--accent); border-color: var(--accent); color: #111214; filter: brightness(1.12); }

/* ---------------- foot ---------------- */

.hub-foot {
  border-top: 1px solid var(--line);
  padding: 18px 0 40px;
  color: var(--muted);
  font-size: 12.5px;
}
.hub-foot p { margin: 0 0 4px; }
.hub-foot code {
  font-family: var(--mono); font-size: 11.5px;
  color: var(--text); background: var(--panel);
  border: 1px solid var(--line); border-radius: 3px; padding: 1px 5px;
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
