/* Template set "utility" (ofgamezone): dense, fast, tool-like. Graphite / acid lime, sans + mono. */
main { max-width: 1320px; }
.site-header { position: sticky; top: 0; z-index: 30; background: var(--color-bg); border-bottom: 1px solid var(--color-divider); }
.site-header__bar { max-width: 1320px; margin: 0 auto; padding: 6px var(--pad); min-height: 58px; display: flex; align-items: center; gap: 12px; }
.site-header .brand { gap: 9px; margin-right: auto; }
.site-header .brand__mark { width: 14px; height: 14px; transform: skewX(-12deg); }
.site-header .brand__name { font-size: 21px; font-weight: 800; letter-spacing: -.03em; }
.header-search { display: none; position: relative; flex: 1; max-width: 420px; margin-left: auto; }
.header-search svg { position: absolute; left: 12px; top: 14px; color: var(--color-muted); pointer-events: none; }
.header-search .input { padding: 0 12px 0 38px; border-radius: 3px; }
.nav-link { padding: 0 12px; font-weight: 500; }
.nav-link[aria-current="page"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 4px; height: 3px; background: var(--color-accent); }
.menu-btn { border-radius: 3px; }
@media (min-width: 960px) {
  .site-header .brand { margin-right: 0; }
  .nav-inline { display: flex; }
  .header-search { display: block; }
  .search-icon, .menu-btn { display: none !important; }
}
.site-footer__bar { max-width: 1320px; margin: 0 auto; padding: 20px var(--pad) 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.site-footer__brand { display: flex; align-items: center; gap: 8px; font-family: var(--font-brand); font-weight: 800; font-size: 18px; }
.site-footer__brand .brand__mark { width: 10px; height: 10px; transform: skewX(-12deg); }
.footer-nav { display: flex; flex-wrap: wrap; gap: 0 4px; }
.footer-nav a { padding: 0 8px; font-size: 14px; }
.site-footer__note { flex: 1 1 320px; font-size: 12px; line-height: 1.55; }

h1, h2, h3 { letter-spacing: -.025em; }
.rule-title { display: flex; align-items: center; gap: 12px; }
.rule-title__bar { width: 28px; height: 3px; background: var(--color-accent); }
.rule-title h2, .block h2, .home-col h2 { font-weight: 800; font-size: 22px; letter-spacing: -.02em; }
.h-link { display: inline-flex; align-items: center; min-height: 44px; text-decoration: none; }
.h-link:hover { color: var(--color-accent); }

/* — cards — */
.card--tile { background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; position: relative; }
.card--tile:hover { border-color: var(--color-accent); }
.card--tile .card__badge { position: absolute; left: 8px; top: 8px; padding: 2px 7px; font-family: var(--font-kicker); font-size: 12px; line-height: 1.5; letter-spacing: .04em; text-transform: uppercase; color: var(--color-text); background: var(--color-bg); border-radius: 2px; }
.card--tile .card__body { gap: 6px; padding: 10px 12px 12px; }
.card--tile .card__title { font-weight: 700; font-size: 17px; line-height: 1.2; letter-spacing: -.01em; }
.card--tile .card__meta { font-family: var(--font-kicker); font-size: 12px; line-height: 1.45; }
.grid--tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); gap: 14px; }
.grid--narrow { grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }

/* — home — */
.page--home { display: flex; flex-direction: column; gap: clamp(26px, 4vw, 44px); padding-top: clamp(18px, 3vw, 30px); }
.home-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; }
.home-head h1 { font-size: clamp(26px, 3.4vw, 38px); line-height: 1.05; letter-spacing: -.03em; text-wrap: balance; }
.home-head__sub { font-family: var(--font-kicker); font-size: 13px; color: var(--color-muted); }
.entry { display: flex; flex-direction: column; gap: 14px; padding: clamp(14px, 2.4vw, 22px); background: var(--color-surface); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-accent); border-radius: var(--radius-lg); }
.entry__title { font-family: var(--font-kicker); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--color-accent); }
.entry__groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 16px 28px; }
.entry__group { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.entry__group h3 { font-weight: 700; font-size: 16px; letter-spacing: -.01em; }
.entry__chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; }
.entry__chips li { flex: none; }
.entry__chips .chip-link { white-space: nowrap; border-radius: 3px; }
@media (max-width: 599px) {
  .entry__chips { flex-wrap: nowrap; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
}
.feat { display: flex; flex-direction: column; gap: 14px; }
.feat__list { list-style: none; display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.feat__list > li { min-width: 0; }
.feat__lead { grid-row: span 2; }
.feat-card { display: flex; flex-direction: column; height: 100%; min-width: 0; color: var(--color-text); text-decoration: none; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; }
.feat-card:hover { border-color: var(--color-accent); }
.feat-card .art { flex: none; }
.feat-card--lead .art { flex: 1; min-height: 220px; aspect-ratio: 16 / 9; }
.feat-card__body { display: flex; flex-direction: column; gap: 3px; padding: 9px 12px 11px; min-width: 0; }
.feat-card__idx { font-family: var(--font-kicker); font-size: 12px; color: var(--color-accent); font-variant-numeric: tabular-nums; }
.feat-card__title { font-family: var(--font-heading); font-weight: 700; font-size: 16px; line-height: 1.2; overflow-wrap: anywhere; }
.feat-card--lead .feat-card__body { gap: 8px; padding: 14px 16px 16px; }
.feat-card--lead .feat-card__idx { font-size: 13px; }
.feat-card--lead .feat-card__title { font-weight: 800; font-size: clamp(22px, 2.6vw, 30px); line-height: 1.08; letter-spacing: -.025em; }
.feat-card__logline { font-size: 15px; line-height: 1.5; color: var(--color-muted); }
@media (max-width: 599px) {
  .feat__list { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 82%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 6px; }
  .feat__list > li { scroll-snap-align: start; }
  .feat__lead { grid-row: auto; }
  .feat-card--lead .art { flex: none; min-height: 0; }
  .feat-card__logline, .feat-card .tags { display: none; }
  .feat-card--lead .feat-card__body { gap: 3px; padding: 9px 12px 11px; }
  .feat-card--lead .feat-card__title { font-size: 16px; font-weight: 700; letter-spacing: 0; }
}
@media (min-width: 600px) and (max-width: 799px) {
  .feat__list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feat__lead { grid-column: 1 / -1; grid-row: auto; }
  .feat-card--lead .art { flex: none; min-height: 0; }
}
.home-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 28px 40px; padding-top: 8px; border-top: 1px solid var(--color-divider); }
.home-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; padding-top: 16px; }
.home-col > .kicker { font-size: 12px; }
.home-col .row-links { margin-top: 4px; }
.guide-list { list-style: none; }
.guide-list li { border-top: 1px solid var(--color-divider); }
.guide-list a { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 14px; padding: 14px 0; text-decoration: none; }
.guide-list a:hover { color: var(--color-accent); }
.guide-list__kind { grid-row: span 3; font-family: var(--font-kicker); font-size: 13px; color: var(--color-accent); }
.guide-list__title { font-family: var(--font-heading); font-weight: 700; font-size: 18px; line-height: 1.25; }
.guide-list__dek { font-size: 14px; line-height: 1.5; }
.guide-list__meta { grid-column: 2; font-family: var(--font-kicker); }

/* — catalog — */
.page--catalog { display: flex; flex-direction: column; gap: 14px; padding-top: clamp(16px, 2.6vw, 26px); }
.cat-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
.cat-bar h1 { font-size: clamp(28px, 3.4vw, 36px); line-height: 1; letter-spacing: -.03em; }
.cat-bar .count { font-family: var(--font-kicker); font-size: 14px; }
.cat-bar__spacer { flex: 1; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 10px 0; border-top: 1px solid var(--color-divider); border-bottom: 1px solid var(--color-divider); }
.quick__label { margin-right: 4px; }
.page--catalog .term-btn { border-radius: 3px; }
.page--catalog .chips { padding-top: 2px; }
.catalog__layout { display: flex; flex-direction: column; align-items: stretch; gap: 0; }
.catalog__results { flex: 1; min-width: 0; }
@media (min-width: 960px) {
  .catalog__layout { flex-direction: row; align-items: flex-start; gap: 32px; }
  .filters { flex: 0 0 232px; position: sticky; top: 74px; max-height: calc(100vh - 90px); overflow-y: auto; padding: 4px 4px 0 0; }
  .filters__foot [data-clear-all] { width: 100%; }
  .filters .facet { margin-bottom: 20px; }
}
@media (max-width: 959px) { .filters { margin-bottom: 0; } }
.page--catalog .empty { background: transparent; }

/* — detail — */
.page--detail { padding-top: 8px; }
.detail { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; padding-bottom: clamp(20px, 3vw, 32px); border-bottom: 1px solid var(--color-divider); }
.detail__head, .detail__body { min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.detail__art { min-width: 0; }
.detail__art .art--detail { aspect-ratio: 16 / 9; max-height: 460px; width: 100%; border-radius: var(--radius-lg); background: var(--color-surface); }
.detail__tags .kicker { font-size: 13px; letter-spacing: .06em; }
.detail__head h1 { font-size: clamp(30px, 4.4vw, 52px); line-height: 1.02; letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.detail__head .lead { font-size: clamp(17px, 1.8vw, 20px); line-height: 1.45; color: var(--color-text); }
.detail__body .prose { font-size: 16px; line-height: 1.65; max-width: 66ch; text-align: left; }
.related { display: flex; flex-direction: column; gap: 8px; padding-top: 6px; }
.related h2 { font-weight: 800; font-size: 20px; }
.related__list { list-style: none; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 10px; }
.related__list a { display: flex; flex-direction: column; gap: 4px; height: 100%; padding: 12px 14px; text-decoration: none; border: 1px solid var(--color-divider); border-left: 3px solid var(--color-accent); border-radius: 3px; }
.related__list a:hover { background: var(--color-surface); }
.related__title { font-weight: 600; font-size: 16px; line-height: 1.3; }
.facts { display: flex; flex-direction: column; gap: 12px; padding: 16px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); min-width: 0; align-self: start; }
.facts h2 { font-family: var(--font-kicker); font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; }
.facts__groups { display: flex; flex-direction: column; }
.facts__groups > div { display: flex; flex-direction: column; gap: 6px; padding: 10px 0; border-top: 1px solid var(--color-divider); }
.facts__groups dt { font-size: 13px; color: var(--color-muted); }
.facts__groups dd { display: flex; flex-wrap: wrap; gap: 6px; }
.chip-link--sm { padding: 0 12px; font-size: 14px; border-radius: 3px; min-width: 44px; justify-content: center; }
.facts__notes { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 8px 14px; padding-top: 10px; border-top: 1px solid var(--color-divider); font-size: 14px; }
.facts__notes dt { color: var(--color-muted); }
.facts__notes dd { overflow-wrap: anywhere; }
.facts__disclaimer { padding-top: 10px; border-top: 1px solid var(--color-divider); font-size: 12px; line-height: 1.5; }
.in-colls, .other-colls { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding-top: 18px; }
.block--tight { padding-top: 24px; }
/* Composition from 800px: wide scene on top, text left, Game facts panel right.
   Below it the page is one column in reading order: head, scene, text, facts. */
@media (min-width: 800px) {
  .detail { grid-template-columns: minmax(0, 1fr) minmax(280px, 360px); column-gap: clamp(28px, 4vw, 48px); grid-template-rows: auto auto 1fr; grid-template-areas: "art art" "head facts" "body facts"; }
  .detail__art { grid-area: art; }
  .detail__head { grid-area: head; }
  .detail__body { grid-area: body; }
  .facts { grid-area: facts; }
}

/* — collections / articles / about / 404 — */
.page--index { display: flex; flex-direction: column; gap: 18px; padding-top: clamp(16px, 2.6vw, 26px); }
.page--narrow { max-width: 900px; }
.idx-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 16px; }
.idx-head h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.03em; }
.coll-grid { list-style: none; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; }
.coll-grid li { min-width: 0; }
.coll-card { display: flex; flex-direction: column; height: 100%; text-decoration: none; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); overflow: hidden; }
.coll-card:hover { border-color: var(--color-accent); }
.strip { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px; }
.coll-card__body { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px 14px; font-size: 14px; line-height: 1.5; }
.coll-card__title { font-family: var(--font-heading); font-weight: 800; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; color: var(--color-text); }
.page--collection { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.panel-head { display: flex; flex-direction: column; gap: 10px; padding: 16px; background: var(--color-surface); border: 1px solid var(--color-divider); border-top: 3px solid var(--color-accent); border-radius: var(--radius-lg); }
.panel-head h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.04; letter-spacing: -.03em; overflow-wrap: anywhere; }
.panel-head .lead-sm { max-width: 70ch; }
.page--collection .grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); }
.other-colls { border-top: 1px solid var(--color-divider); padding-top: 12px; }
.other-colls h2, .in-colls h2 { font-weight: 500; }
.guide-list--index a { padding: 16px 0; grid-template-columns: auto minmax(0, 1fr); }
.guide-list--index .guide-list__title { font-weight: 800; font-size: clamp(19px, 2.2vw, 24px); line-height: 1.2; overflow-wrap: anywhere; }
.guide-list--index .guide-list__dek { font-size: 15px; }
.page--article { display: flex; flex-direction: column; gap: 16px; padding-top: 8px; }
.article-cols { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 28px 48px; }
.article-main { flex: 999 1 480px; min-width: 0; max-width: 72ch; display: flex; flex-direction: column; gap: 12px; }
.article-main h1 { font-size: clamp(28px, 4vw, 44px); line-height: 1.06; letter-spacing: -.03em; overflow-wrap: anywhere; text-wrap: balance; }
.article-main .lead { font-size: 18px; }
.prose--article { max-width: none; font-size: 17px; line-height: 1.7; }
.prose--article h2 { display: flex; align-items: baseline; gap: 10px; margin: 24px 0 6px; font-weight: 800; font-size: 21px; letter-spacing: -.01em; }
.prose--article h2::before { content: ""; flex: none; width: 10px; height: 10px; background: var(--color-accent); }
.article-aside { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding: 14px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); }
.page--about { display: flex; flex-direction: column; gap: 20px; padding-top: clamp(16px, 2.6vw, 26px); }
.page--about h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.03em; }
.about-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 20px 40px; }
.about-cols > * { min-width: 0; }
.about-cols--ruled { padding-top: 16px; border-top: 1px solid var(--color-divider); }
.about-cols .prose { font-size: 16px; line-height: 1.65; }
.about-cols h2 { font-weight: 800; font-size: 20px; margin-bottom: 8px; }
.about-cols .about-cols--ruled p { margin-bottom: 10px; line-height: 1.65; }
.panel { padding: 16px; background: var(--color-surface); border: 1px solid var(--color-divider); border-radius: var(--radius-lg); }
.panel h2.kicker { font-size: 12px; font-weight: 500; margin-bottom: 10px; }
.about-facets { display: flex; flex-direction: column; gap: 10px; margin-bottom: 12px; }
.about-facets dt { font-weight: 600; }
.about-facets dd { margin-top: 2px; font-size: 14px; }
.page--404 { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; max-width: 820px; padding-top: clamp(28px, 6vw, 72px); }
.page--404 h1 { font-size: clamp(30px, 5vw, 52px); line-height: 1.02; letter-spacing: -.03em; }
.page--404 .lead { font-size: 17px; }

/* — search — */
.page--search h1 { font-size: clamp(28px, 3.4vw, 36px); letter-spacing: -.03em; }
.search-form .input { border-radius: 3px; }
.search-form .btn-primary { color: var(--color-on-accent); background: var(--color-accent); font-weight: 600; border-radius: 3px; }
.search-form .btn-primary:hover { filter: brightness(1.08); background: var(--color-accent); }
#search-status { font-family: var(--font-kicker); font-size: 13px; }
.search-group h2 { font-weight: 700; font-size: 17px; }
.search-results h2 { font-weight: 800; font-size: 20px; }
.page--search .grid--tiles { grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
