/* ============================================================================
   VGNW — game lists (Game Pass, PS Plus, Epic) and the game finder wall (inc/catalogs-pages.php).
   Tokens only, monochrome interface; the covers bring the colour. Motion respects prefers-reduced-motion.
   ============================================================================ */
.vgnw-cat .vgnw-ct-sechead { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.vgnw-cat .vgnw-ct-sechead-l { display: flex; align-items: baseline; gap: 12px; flex-wrap: wrap; min-width: 0; }
.vgnw-cat .vgnw-ct-h2 { font-family: var(--font-deck); font-weight: 600; font-size: 26px; margin: 0; }
.vgnw-cat .vgnw-ct-seccount { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); }
.vgnw-cat .vgnw-breadcrumb { margin-bottom: 0; }

/* Tabs (sub pages are real addresses). */
.vgnw-cat-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 4px; padding-bottom: 14px; border-bottom: 1px solid var(--border-subtle); }
.vgnw-cat-tab { display: inline-flex; align-items: center; gap: 6px; padding: 9px 14px; border-radius: 8px; border: 1px solid var(--border-default); background: var(--bg-surface); font-family: var(--font-micro); font-weight: 700; font-size: 12.5px; color: var(--fg-muted); text-decoration: none; transition: border-color var(--dur-fast, 140ms), color var(--dur-fast, 140ms); }
.vgnw-cat-tab span { font-weight: 600; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.vgnw-cat-tab:hover { border-color: var(--border-strong); color: var(--fg-default); }
.vgnw-cat-tab.is-on { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse); }
.vgnw-cat-tab.is-on span { color: inherit; opacity: 0.7; }

/* Tools: search, device chips, sort, count; genre chips. */
.vgnw-cat-tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 18px; }
.vgnw-cat-search { flex: 0 1 340px; display: flex; align-items: center; gap: 10px; height: 42px; padding: 0 13px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); }
.vgnw-cat-search:focus-within { border-color: var(--border-strong); box-shadow: var(--shadow-focus); }
.vgnw-cat-search i { color: var(--fg-subtle); font-size: 17px; }
.vgnw-cat-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-family: var(--font-text); font-size: 14px; color: var(--fg-default); }
.vgnw-cat-sort { height: 42px; padding: 0 12px; border: 1px solid var(--border-default); border-radius: 9px; background: var(--bg-surface); color: var(--fg-default); font-family: var(--font-micro); font-weight: 700; font-size: 12.5px; }
.vgnw-cat-count { margin-left: auto; font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); font-variant-numeric: tabular-nums; }
.vgnw-cat-chips { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.vgnw-cat-chip, .vgnw-gf2-chip { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border: 1px solid var(--border-default); border-radius: 999px; background: var(--bg-surface); cursor: pointer; font-family: var(--font-micro); font-weight: 700; font-size: 12px; color: var(--fg-muted); transition: all var(--dur-fast, 140ms); }
.vgnw-cat-chip span, .vgnw-gf2-chip span { font-weight: 600; color: var(--fg-subtle); font-variant-numeric: tabular-nums; }
.vgnw-cat-chip:hover, .vgnw-gf2-chip:hover { border-color: var(--border-strong); color: var(--fg-default); }
.vgnw-cat-chip.is-on, .vgnw-gf2-chip.is-on { background: var(--bg-inverse); border-color: var(--bg-inverse); color: var(--fg-inverse); }
.vgnw-cat-chip.is-on span, .vgnw-gf2-chip.is-on span { color: inherit; opacity: 0.7; }
.vgnw-cat-chip--dev { border-radius: 9px; height: 42px; padding: 0 14px; }

/* Cover grid. */
.vgnw-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 18px 14px; margin-top: 22px; }
.vgnw-cat-grid--wide { grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); }
.vgnw-cat-card, .vgnw-cat-epic { display: flex; flex-direction: column; gap: 6px; min-width: 0; text-decoration: none; color: inherit; }
.vgnw-cat-card[hidden], .vgnw-cat-epic[hidden], .vgnw-cat-year[hidden] { display: none; }
.vgnw-cat-cover { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 8px; overflow: hidden; background: var(--bg-inset); border: 1px solid var(--border-subtle); transition: transform 200ms var(--ease-out, ease-out), box-shadow 200ms var(--ease-out, ease-out); }
.vgnw-cat-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vgnw-cat-card:hover .vgnw-cat-cover, .vgnw-cat-epic:hover .vgnw-cat-cover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.vgnw-cat-mono { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 12px; text-align: center; font-family: var(--font-deck); font-weight: 600; font-size: 14px; color: var(--fg-muted); }
.vgnw-cat-mono i { font-size: 40px; }
.vgnw-cat-on { position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px; border-radius: 999px; display: inline-flex; align-items: center; justify-content: center; background: var(--bg-inverse); color: var(--fg-inverse); font-size: 14px; }
.vgnw-cat-t { font-family: var(--font-deck); font-weight: 600; font-size: 14px; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.vgnw-cat-m { font-family: var(--font-micro); font-size: 11.5px; color: var(--fg-muted); }
.vgnw-cat-note { font-family: var(--font-micro); font-size: 12px; color: var(--fg-subtle); margin: 18px 0 0; }

/* Epic: this week, the archive by year. */
.vgnw-cat-now { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; margin-top: 20px; }
.vgnw-cat-epic.is-big .vgnw-cat-cover { aspect-ratio: 3 / 4; }
.vgnw-cat-epic.is-big .vgnw-cat-t { font-size: 20px; }
.vgnw-cat-epic.is-big .vgnw-cat-m { font-size: 13px; font-weight: 700; color: var(--fg-default); }
.vgnw-cat-year { margin-top: 28px; }
.vgnw-cat-year-h { font-family: var(--font-deck); font-weight: 600; font-size: 20px; margin: 0; display: flex; align-items: baseline; gap: 8px; }
.vgnw-cat-year-h span { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); font-weight: 700; }

/* FAQ and more lists. */
.vgnw-cat-faq .vgnw-lg-faq:first-of-type { margin-top: 16px; }
.vgnw-cat-mores { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 18px; }
.vgnw-cat-more { display: flex; align-items: center; gap: 14px; padding: 16px 18px; border: 1px solid var(--border-default); border-radius: 10px; background: var(--bg-surface); text-decoration: none; color: inherit; transition: border-color var(--dur-fast, 140ms); }
.vgnw-cat-more:hover { border-color: var(--border-strong); }
.vgnw-cat-more > i:first-child { font-size: 22px; }
.vgnw-cat-more > span { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; }
.vgnw-cat-more b { font-family: var(--font-deck); font-weight: 600; font-size: 15px; }
.vgnw-cat-more span span { font-family: var(--font-micro); font-size: 12px; color: var(--fg-muted); }
.vgnw-cat-more > i:last-child { transition: transform var(--dur-fast, 140ms); }
.vgnw-cat-more:hover > i:last-child { transform: translateX(3px); }
.vgnw-cat-taglinks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.vgnw-cat-taglinks .vgnw-tag { text-decoration: none; }

/* ---- Game finder: the wall ------------------------------------------------------------------------------- */
.vgnw-gf2-bar { display: flex; flex-direction: column; gap: 12px; margin-top: 4px; }
.vgnw-gf2-chips { display: flex; gap: 6px; flex-wrap: wrap; }
.vgnw-gf2-chip i { font-size: 13px; }
.vgnw-gf2-random { white-space: nowrap; }
.vgnw-gf2-stage { position: relative; margin-top: 22px; padding: 0 12px; }
.vgnw-gf2-wall { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 4px; }
.vgnw-gf2-tile { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: 4px; overflow: hidden; background: var(--bg-inset); transition: opacity 260ms var(--ease-out, ease-out), filter 260ms var(--ease-out, ease-out), transform 420ms var(--ease-expo, ease-out), box-shadow 420ms; }
.vgnw-gf2-tile img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vgnw-gf2-tile:hover { transform: scale(1.06); z-index: 2; box-shadow: var(--shadow-lg); }
.vgnw-gf2-tile.is-dim { opacity: 0.12; filter: grayscale(1); }
.vgnw-gf2-wall.is-filtered .vgnw-gf2-tile:not(.is-dim) { box-shadow: 0 0 0 1px var(--border-strong); }
.vgnw-gf2-tile.is-sweep { transform: scale(1.18); z-index: 3; box-shadow: 0 0 0 2px var(--fg-default), var(--shadow-lg); }
.vgnw-gf2-tile.is-pick { transform: scale(1.35); z-index: 4; box-shadow: 0 0 0 3px var(--fg-default), var(--shadow-lg); }
.vgnw-gf2-pick { position: fixed; left: 24px; bottom: 24px; z-index: 60; display: flex; gap: 16px; align-items: stretch; width: min(460px, calc(100vw - 48px)); padding: 14px; border-radius: 14px; background: var(--bg-surface); border: 1px solid var(--border-default); box-shadow: var(--shadow-lg); animation: vgnw-gf2-in 240ms var(--ease-out, ease-out); }
.vgnw-gf2-pick[hidden] { display: none; }
.vgnw-gf2-pick-img { width: 104px; aspect-ratio: 3 / 4; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.vgnw-gf2-pick-b { display: flex; flex-direction: column; gap: 6px; min-width: 0; padding-right: 22px; }
.vgnw-gf2-pick-k { font-family: var(--font-micro); font-weight: 700; font-size: 10.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--fg-muted); }
.vgnw-gf2-pick-t { font-family: var(--font-deck); font-weight: 700; font-size: 20px; line-height: 1.2; }
.vgnw-gf2-pick-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.vgnw-gf2-pick-acts { display: flex; gap: 8px; flex-wrap: wrap; margin-top: auto; }
.vgnw-gf2-pick-x { position: absolute; top: 8px; right: 8px; width: 28px; height: 28px; border: 0; border-radius: 6px; background: transparent; color: var(--fg-muted); cursor: pointer; font-size: 16px; }
.vgnw-gf2-pick-x:hover { background: var(--bg-inset); color: var(--fg-default); }
@keyframes vgnw-gf2-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

@media (max-width: 1100px) { .vgnw-cat-mores { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 760px) {
  .vgnw-cat-grid { grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 14px 10px; }
  .vgnw-cat-mores { grid-template-columns: minmax(0, 1fr); }
  .vgnw-cat-search { flex: 1 1 100%; }
  .vgnw-cat-count { margin-left: 0; }
  .vgnw-gf2-wall { grid-template-columns: repeat(auto-fill, minmax(58px, 1fr)); gap: 3px; }
  .vgnw-gf2-stage { padding: 0 6px; }
  .vgnw-gf2-pick { left: 12px; right: 12px; bottom: 12px; width: auto; }
  .vgnw-gf2-pick-img { width: 80px; }
  .vgnw-cat .vgnw-ct-h2 { font-size: 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .vgnw-cat-cover, .vgnw-gf2-tile, .vgnw-gf2-pick { transition: none; animation: none; }
  .vgnw-gf2-tile:hover, .vgnw-cat-card:hover .vgnw-cat-cover { transform: none; }
}

/* Finder: a compact head so the wall is the first thing on screen. */
.vgnw-gf2 .vgnw-cat-head { padding-bottom: 18px; }
.vgnw-gf2 .vgnw-cat-head h1 { font-size: clamp(40px, 5vw, 64px); }
.vgnw-gf2-bar { flex-direction: row; align-items: center; flex-wrap: wrap; gap: 10px; }
.vgnw-gf2-bar .vgnw-cat-search { flex: 0 0 280px; height: 40px; }
.vgnw-gf2-chips { flex: 1; min-width: 0; }
.vgnw-gf2-stage { margin-top: 16px; }
@media (max-width: 760px) { .vgnw-gf2-bar .vgnw-cat-search { flex: 1 1 100%; } }
body > .vgnw-gf2-pick { position: fixed; }

/* Owner 2026-12-04: list filters use the deals page's bar (search + dropdowns), on one line. */
.vgnw-cat-filterbar { flex-wrap: nowrap; padding: 4px 0 18px; }
.vgnw-cat-filterbar .vgnw-cat-search { flex: 1 1 260px; max-width: 360px; min-width: 0; }
.vgnw-cat-filterbar .vgnw-cat-search input { width: 100%; min-width: 0; }
.vgnw-cat-filterbar .vgnw-cat-search input::-webkit-search-cancel-button { display: none; }
.vgnw-cat-filterbar .vgnw-cat-count { margin-left: auto; white-space: nowrap; }
.vgnw-cat-filterbar .vgnw-dl-dd-panel { max-height: min(70vh, 520px); overflow-y: auto; }
.vgnw-cat-filterbar button.vgnw-dl-radio, .vgnw-cat-filterbar button.vgnw-dl-check { font: inherit; color: inherit; text-align: left; cursor: pointer; }
.vgnw-cat-filterbar .vgnw-dl-clearall[hidden], .vgnw-cat-filterbar [data-cat-badge][hidden], .vgnw-cat-filterbar [data-cat-sum]:empty { display: none !important; }
@media (max-width: 767px) {
  .vgnw-cat-filterbar { flex-wrap: wrap; position: relative; }
  .vgnw-cat-filterbar .vgnw-cat-search { flex: 1 1 100%; max-width: none; }
  .vgnw-cat-filterbar .vgnw-dl-dd { position: static; }
  .vgnw-cat-filterbar .vgnw-dl-dd-panel { left: 0 !important; right: 0 !important; width: auto !important; }
}
