/* GenUP landing: news, guides and the games library. Same HUD as the rest of
   the site (site.css): cut corners, one cyan accent, Tektur and Onest; the
   cards, chips and adverts are built from its panels, tags and buttons. */

/* ---------- preview bar ---------- */
.pv-bar { position: relative; z-index: 120; padding: 8px 16px; text-align: center; background: var(--direct); color: #1C0C00; font: 800 12px/1.3 var(--f-display); letter-spacing: .12em; text-transform: uppercase; }

/* ---------- banner ---------- */
.nstage { grid-template-columns: minmax(0, 1fr); min-height: 340px; padding: 34px 56px 40px; }
.nstage .hero-body { max-width: 800px; gap: 18px; }
.nstage .crumbs { margin-bottom: 0; }
.nstage h1 { font-size: clamp(38px, 5.2vw, 76px); line-height: .9; }
.nstage .sub { max-width: 34em; font-size: 18px; }
/* the banner's watermark stays inside the slab: its width follows the letters (--n) */
.nstage .art { --sw: 31%; --swn: 31; --sk: 22%; container-type: inline-size; }
.nstage .art .wm { right: 3cqw; bottom: .8cqw; font-size: min(calc(var(--swn) * .84cqw / (var(--n, 4) * .64)), 15cqw); }
.nb-stats { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 26px; font: 700 12.5px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--text-2); }
.nb-stats b { margin-left: 4px; color: var(--ours); font: 600 14px/1 var(--f-mono); letter-spacing: 0; }

/* ---------- chips: rubrics, games, genres ---------- */
.nlist { padding-top: 44px; }
.nfilters { display: grid; gap: 12px; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; padding: 0; list-style: none; }
.chip {
  --c: 9px; position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 42px; min-width: 42px; padding: 0 20px; border: 0; background: var(--line-2); color: var(--text-2); cursor: pointer;
  font: 700 13px/1 var(--f-display); letter-spacing: .1em; text-transform: uppercase; text-decoration: none; white-space: nowrap;
  clip-path: polygon(var(--c) 0, 100% 0, calc(100% - var(--c)) 100%, 0 100%); transition: color .2s;
}
.chip::before { content: ""; position: absolute; inset: 1px; z-index: -1; background: var(--bg); clip-path: inherit; transition: background .2s; }
.chip:hover { color: var(--text); }
.chip:hover::before { background: var(--panel-2); }
.chip i { font: 600 11.5px/1 var(--f-mono); font-style: normal; letter-spacing: 0; opacity: .62; }
.chip.on, .chip[aria-pressed="true"] { background: var(--ours); color: var(--ours-ink); }
.chip.on::before, .chip[aria-pressed="true"]::before { display: none; }
.chip.sm { height: 34px; min-width: 34px; padding: 0 15px; font-size: 12px; }
.nf-l { margin-right: 6px; font: 700 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--text-3); }

/* ---------- cards ---------- */
.ngrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); grid-auto-flow: dense; gap: 20px; margin-top: 34px; }
.nc { --c: 16px; display: flex; flex-direction: column; min-width: 0; transition: transform .3s var(--snap); }
.nc:hover { transform: translateY(-4px); }
.nc::after { content: ""; position: absolute; left: 0; top: 0; z-index: 3; width: 0; height: 3px; background: var(--ours); box-shadow: 0 0 12px var(--glow); transition: width .45s var(--snap); }
.nc:hover::after { width: 100%; }
.nc-cover { position: relative; display: block; aspect-ratio: 16 / 9; overflow: hidden; background: var(--panel-2); }
.nc-cover img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .7s var(--out); }
.nc:hover .nc-cover img { transform: scale(1.05); }
.nc-cover > .gart { display: block; width: 100%; height: 100%; }
/* the watermark fits its cover: its width follows the number of letters (--n) */
.nc-gen, .gt .gart { container-type: inline-size; }
.nc-gen .wm, .gt .gart .wm { right: 5cqw; bottom: -4cqw; font-size: min(calc(78cqw / (var(--n, 4) * .64)), 44cqw); }
.nc-gen .wm { color: rgba(39, 225, 250, .2); }
.gt .gart .wm { color: rgba(2, 18, 22, .34); }
.nc-gen .slab { background: linear-gradient(160deg, #15505d, #0c313b); }
.nc-gen .hatch { background: linear-gradient(-45deg, rgba(39, 225, 250, .1) 0 9%, transparent 9% 50%, rgba(39, 225, 250, .1) 50% 59%, transparent 59% 100%); background-size: 22px 22px; animation: none; }
.nc:hover .nc-gen .hatch { animation: slide22 .9s linear infinite; }
.nc-tags { position: absolute; left: 20px; top: 14px; z-index: 1; display: flex; flex-wrap: wrap; gap: 6px; }
.nc-tags .tag { height: 26px; padding: 0 13px; font-size: 11.5px; }
.nc-body { display: flex; flex: 1; flex-direction: column; gap: 12px; padding: 20px 22px 20px; }
/* Titles are set in Onest: the small letters of Tektur (its «д» looks like a «g») are for short labels. */
.nc h3 { font: 700 20px/1.27 var(--f-ui); letter-spacing: -.005em; text-wrap: balance; }
.nc h3 a { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 4; overflow: hidden; color: var(--text); text-decoration: none; transition: color .2s; }
.nc h3 a::after { content: ""; position: absolute; inset: 0; z-index: 2; }
.nc:hover h3 a { color: var(--ours-2); }
.nc p { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; overflow: hidden; color: var(--text-2); font-size: 15px; line-height: 1.55; }
.nc-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: auto; padding-top: 6px; font: 500 12.5px/1.3 var(--f-mono); color: var(--text-3); }
.nc-meta span + span::before, .nc-meta time + span::before { content: "·"; margin-right: 14px; color: var(--line-2); }
.nc.soon { opacity: .72; }
.nc.soon:hover { transform: none; }
.nc.soon::after { display: none; }

/* the lead of the first page: two columns wide, the picture beside the text */
.nc.lead { grid-column: span 2; flex-direction: row; }
.nc.lead .nc-cover { flex: 1.2; aspect-ratio: auto; min-height: 340px; }
.nc.lead .nc-body { flex: 1; justify-content: center; gap: 16px; padding: 30px 32px 30px; }
.nc.lead h3 { font-size: 30px; line-height: 1.15; font-weight: 800; letter-spacing: -.015em; }
.nc.lead h3 a { -webkit-line-clamp: 5; }
.nc.lead p { -webkit-line-clamp: 5; font-size: 16px; }

/* the advert card: the "route found" band, small */
.nc.ad { --c: 18px; }
.nc.ad::before { background: var(--ours); }
.nc.ad::after { display: none; }
.nc.ad .ad-in { position: relative; display: flex; flex: 1; flex-direction: column; align-items: flex-start; gap: 14px; padding: 26px 26px 26px; color: var(--ours-ink); }
.nc.ad .ad-in::before { content: ""; position: absolute; inset: 0; background: var(--hatch); background-size: 30px 30px; animation: slide30 1.4s linear infinite; }
.nc.ad .ad-in > * { position: relative; }
.nc.ad .tag { background: var(--ours-ink); color: var(--ours); }
.nc.ad h3 { margin-top: auto; font: 900 40px/.92 var(--f-display); font-stretch: 76%; letter-spacing: .012em; text-transform: uppercase; color: var(--ours-ink); }
.nc.ad p { display: block; color: var(--ours-ink); font: 600 15px/1.4 var(--f-ui); }
.nc.ad .btn { margin-top: 6px; background: var(--ours-ink); color: var(--ours); }
.nc.ad .btn::after { display: none; }

.pager { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 44px; }
.nsub { --c: 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px 32px; margin-top: 40px; padding: 26px 30px; }
.nsub b { display: block; font: 900 24px/1.05 var(--f-display); font-stretch: 80%; text-transform: uppercase; }
.nsub p { margin-top: 6px; color: var(--text-2); font-size: 15.5px; }

/* ---------- a post ---------- */
.post-head { padding-block: 52px 26px; }
.post-head h1 { max-width: 25em; font: 800 clamp(30px, 4vw, 50px)/1.1 var(--f-ui); letter-spacing: -.02em; text-transform: none; }
.post-head h1::after { bottom: 0; }
.post-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.post-tags a.tag { text-decoration: none; }
.post-meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 24px; font: 500 13.5px/1.3 var(--f-mono); color: var(--text-3); }
.post-sec { padding-block: 20px 84px; }
.post-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 56px; align-items: start; }
.post-main { min-width: 0; max-width: 780px; }
.post-cover { --c: 18px; margin: 0; }
.post-cover .nc-cover { aspect-ratio: 16 / 9; }
.post-cover .nc-gen { aspect-ratio: 21 / 8; }
.post-cover figcaption { position: relative; padding: 10px 18px 12px; background: var(--panel); font: 500 12.5px/1.3 var(--f-mono); color: var(--text-3); }
.post-lead { margin-top: 30px; color: var(--text); font-size: 21px; line-height: 1.55; font-weight: 500; }
.post-body { margin-top: 26px; max-width: none; }
.post-body > :first-child { margin-top: 0; }
.take { margin-top: 34px; padding: 22px 26px 24px; background: var(--panel-2); border-left: 4px solid var(--ours); clip-path: polygon(0 0, 100% 0, 100% calc(100% - 14px), calc(100% - 14px) 100%, 0 100%); }
.take-k { display: block; font: 800 12px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ours); }
.take p { margin-top: 12px; color: var(--text); font-size: 17px; line-height: 1.6; }
.lbl { display: block; font: 700 12px/1 var(--f-display); letter-spacing: .14em; text-transform: uppercase; color: var(--text-3); }
.post-src { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); }
.post-src p { margin-top: 8px; color: var(--text); font-size: 16px; }
.post-src .btn { min-height: 46px; }
.post-more { flex-basis: 100%; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.post-more .lbl { margin-right: 6px; }
.post-more .tag { text-decoration: none; }
.post-share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 26px; }
.post-share .lbl { margin-right: 8px; }
.post-aside { position: sticky; top: 96px; display: grid; gap: 18px; }
.ad-aside { justify-self: stretch; width: 100%; padding-bottom: 22px; animation: none; }
.ad-aside .ad-t { display: block; margin-top: 18px; font: 900 26px/1 var(--f-display); font-stretch: 78%; text-transform: uppercase; }
.ad-aside p { margin-top: 8px; color: var(--text-2); font-size: 15px; }
.ad-aside .btn { width: 100%; margin-top: 16px; }
.aside-nav { --c: 12px; padding: 18px 22px 20px; background: var(--panel); border: 1px solid var(--line); }
.aside-nav ul { display: grid; gap: 4px; margin: 14px 0 0; padding: 0; list-style: none; }
.aside-nav a { display: block; padding: 8px 0; color: var(--text-2); font: 700 13px/1 var(--f-display); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; }
.aside-nav a:hover { color: var(--ours); }

/* the advert inside the text */
.ad-strip { --c: 14px; margin: 38px 0; }
.ad-strip .in { position: relative; display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 22px 36px; align-items: center; padding: 26px 28px 26px 34px; }
.ad-strip .in::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--ours); box-shadow: 0 0 14px var(--glow); }
.ad-k { display: flex; align-items: center; gap: 10px; font: 800 11.5px/1 var(--f-display); letter-spacing: .16em; text-transform: uppercase; color: var(--ours); }
.ad-k svg { width: 20px; height: 20px; flex: none; }
.ad-t { display: block; margin-top: 12px; font: 900 28px/1 var(--f-display); font-stretch: 78%; text-transform: uppercase; color: var(--text); }
.ad-strip p { margin-top: 8px; color: var(--text-2); font-size: 15px; line-height: 1.5; }
.ad-text .btn { margin-top: 18px; }
.ad-cmp { display: grid; gap: 12px; padding: 16px 18px; background: var(--bg-2); }
.ad-cmp .cmp { grid-template-columns: 84px minmax(0, 1fr) 66px; gap: 12px; }
.ad-cmp .cmp b { font-size: 20px; }
.ad-cmp .cmp-note { font-size: 12.5px; line-height: 1.35; }
.ad-strip .btn { white-space: normal; text-align: center; }

/* related posts: smaller cards */
.related { background: var(--bg-2); }
.related-grid .nc p { -webkit-line-clamp: 2; }

/* ---------- the games library ---------- */
.lib-tools { display: none; gap: 14px; margin-bottom: 28px; }
.js .lib-tools { display: grid; }
.lib-q { width: 100%; height: 54px; padding: 0 20px; background: var(--panel); border: 1px solid var(--line-2); color: var(--text); font: 500 17px/1 var(--f-ui); }
.lib-q::placeholder { color: var(--text-3); }
.lib-q:focus { outline: none; border-color: var(--ours); box-shadow: 0 0 0 3px rgba(39, 225, 250, .18); }
.glib { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.gt { --c: 12px; display: flex; flex-direction: column; min-width: 0; color: var(--text); text-decoration: none; transition: transform .3s var(--snap); }
.gt[hidden] { display: none; }
.gt .gart { display: block; height: auto; aspect-ratio: 5 / 4; }
.gt-b { display: flex; flex: 1; flex-direction: column; gap: 6px; padding: 14px 16px 16px; }
.gt-b b { font: 700 16px/1.2 var(--f-ui); }
.gt-b > span { font: 500 12px/1.35 var(--f-mono); color: var(--text-3); }
.gt-b .gt-go { display: inline-flex; align-items: center; gap: 8px; margin-top: auto; padding-top: 6px; font: 800 12px/1 var(--f-display); letter-spacing: .12em; text-transform: uppercase; color: var(--ours); }
.gt-go svg { width: 14px; height: 14px; transition: transform .25s var(--snap); }
.gt.has-page:hover { color: var(--text); transform: translateY(-4px); }
.gt.has-page:hover .gt-go svg { transform: translateX(5px); }
.gt:not(.has-page) .gart i { opacity: .55; }
.lib-empty { margin-top: 24px; color: var(--text-2); }
.glib + .lib-empty + .answer { margin-top: 36px; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .ngrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  /* one column: the poster is a band at the bottom, the text keeps the dark ground above it */
  .nstage { padding: 36px 36px 170px; }
  .nstage .art i { height: 150px; }
  .post-grid { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .post-aside { position: static; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  .ad-strip .in { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 700px) {
  .ngrid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .nc.lead { grid-column: auto; flex-direction: column; }
  .nc.lead .nc-cover { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .nc.lead .nc-body { padding: 22px 22px 22px; }
  .nc.lead h3 { font-size: 24px; }
  .nstage { min-height: 0; padding: 28px 20px 140px; }
  .nstage .art i { height: 120px; }
  /* chips scroll sideways in one line instead of taking four */
  .nfilters .chips, .lib-tools .chips { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; -webkit-mask: linear-gradient(90deg, #000 90%, transparent); mask: linear-gradient(90deg, #000 90%, transparent); }
  .nfilters .chips::-webkit-scrollbar, .lib-tools .chips::-webkit-scrollbar { display: none; }
  .nfilters .chip, .lib-tools .chip { flex: none; }
  .post-aside { grid-template-columns: minmax(0, 1fr); }
  .post-lead { font-size: 18.5px; }
  .chip { height: 40px; padding: 0 16px; }
  .chip.sm { height: 34px; padding: 0 13px; }
  .glib { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .nc.ad h3 { font-size: 34px; }
}
