/* Next Indie Games. Every list is an issue with its own cover colour; the interface stays quiet. */

@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-latin.woff2) format("woff2-variations"), url(/fonts/bricolage-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Bricolage";
  font-style: normal;
  font-display: swap;
  font-weight: 200 800;
  src: url(/fonts/bricolage-latin-ext.woff2) format("woff2-variations"), url(/fonts/bricolage-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/public-sans-latin.woff2) format("woff2-variations"), url(/fonts/public-sans-latin.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-display: swap;
  font-weight: 100 900;
  src: url(/fonts/public-sans-latin-ext.woff2) format("woff2-variations"), url(/fonts/public-sans-latin-ext.woff2) format("woff2");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- tokens ---------- */
/* Every list is an issue with its own cover colour (--a, set inline from the list JSON). The colour
   comes from the games' art and that one accent; the interface itself stays quiet. */

:root {
  --page: #FCFCFE;
  --surface: #F1F2F8;
  --surface-2: #E6E7F0;
  --ink: #1B1933;
  --ink-2: #575570;
  --line: #E2E3ED;
  --brand: #2F5BFF;        /* Next Blue */
  --signal: #FFC83D;       /* Signal Yellow: on Shelf Ink only, never as text on a light page */
  --link: #2747E0;
  --foot: #1B1933;
  --foot-ink: #CFCDE3;

  --head: "Bricolage", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --body: "Public Sans", system-ui, sans-serif;
  --measure: 39rem;
  --wrap: 62rem;
  --gutter: clamp(1rem, 4vw, 2.5rem);
  color-scheme: light dark;
}
body, [style*="--a:"] {
  --a-text: var(--a-ink);
  --a-soft: color-mix(in srgb, var(--a) 16%, var(--page));
  --a-chip: color-mix(in srgb, var(--a) 10%, var(--page));
}

@media (prefers-color-scheme: dark) {
  :root {
    --page: #121120;
    --surface: #1C1A2E;
    --surface-2: #26243C;
    --ink: #EFEEF8;
    --ink-2: #ABA9C4;
    --line: #2E2C46;
    --brand: #94A8FF;
    --link: #A5B5FF;
    --foot: #1C1A2E;
    --foot-ink: #ABA9C4;
  }
  body, [style*="--a:"] {
    --a-text: var(--a-ink-d);
    --a-soft: color-mix(in srgb, var(--a) 22%, var(--page));
    --a-chip: color-mix(in srgb, var(--a) 18%, var(--page));
  }
}

/* ---------- base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 112.5%; -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; background: var(--page); color: var(--ink);
  font-family: var(--body); font-size: 1rem; line-height: 1.6;
  font-variant-numeric: lining-nums; text-rendering: optimizeLegibility;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--link); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 4px; }
h1, h2, h3 { font-family: var(--head); color: var(--ink); text-wrap: balance; margin: 0; overflow-wrap: break-word; hyphens: auto; }
h1 { font-size: clamp(2.05rem, 1.25rem + 3.3vw, 3.5rem); line-height: 1.02; font-weight: 800; letter-spacing: -0.03em; }
h2 { font-size: clamp(1.45rem, 1.2rem + 1vw, 1.9rem); line-height: 1.12; font-weight: 760; letter-spacing: -0.018em; }
h3 { font-size: 1.1rem; line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; }
p { margin: 0 0 1em; max-width: var(--measure); }
.lead { font-size: 1.1rem; line-height: 1.55; }
.muted, .note { color: var(--ink-2); }
.small { font-size: 0.88rem; }
.wrap { max-width: calc(var(--wrap) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section-title { margin: 3.5rem 0 1.25rem; }
.small-title { font-size: 1rem; font-weight: 700; margin: 0 0 0.7rem; }

.skip { position: absolute; left: 1rem; top: -4rem; z-index: 1000; background: var(--ink); color: var(--page); padding: 0.5rem 0.9rem; border-radius: 8px; }
.skip:focus { top: 1rem; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- header and footer ---------- */

.site-head { background: var(--page); border-bottom: 1px solid var(--line); }
.site-head-in { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.6rem; }
.wordmark { display: inline-flex; align-items: center; gap: 0.55rem; font-family: var(--head); font-weight: 800; font-size: 1.08rem; letter-spacing: -0.02em; color: var(--ink); text-decoration: none; white-space: nowrap; }
.mark { color: var(--ink); flex: none; }
.site-head nav ul { display: flex; gap: 0.2rem; list-style: none; margin: 0; padding: 0; }
.site-head nav a { display: block; color: var(--ink); text-decoration: none; font-size: 0.9rem; font-weight: 600; padding: 0.4rem 0.7rem; border-radius: 999px; }
.site-head nav a:hover, .site-head nav a[aria-current="page"] { background: var(--surface); }
.site-head nav { margin-left: auto; }
/* Language switcher: a native <details>, so it opens without script. */
.langs { position: relative; flex: none; }
.langs summary { display: flex; align-items: center; gap: 0.3rem; list-style: none; cursor: pointer; font-size: 0.8rem; font-weight: 700; letter-spacing: 0.02em; padding: 0.4rem 0.55rem; border-radius: 999px; color: var(--ink-2); }
.langs summary::-webkit-details-marker { display: none; }
.langs summary:hover, .langs[open] summary { background: var(--surface); color: var(--ink); }
.langs ul { position: absolute; right: 0; top: calc(100% + 0.35rem); z-index: 50; min-width: 11.5rem; list-style: none; margin: 0; padding: 0.35rem; background: var(--page); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 28px rgb(0 0 0 / 0.14); }
.langs a { display: block; padding: 0.5rem 0.7rem; border-radius: 8px; color: var(--ink); text-decoration: none; font-size: 0.9rem; }
.langs a:hover { background: var(--surface); }
.langs a[aria-current] { font-weight: 700; background: var(--surface); }
@media (max-width: 26rem) {
  .site-head-in { gap: 0.3rem; }
  .wordmark { font-size: 0.9rem; gap: 0.4rem; }
  .mark { width: 22px; height: 22px; }
  .site-head nav ul { gap: 0; }
  .site-head nav a { padding: 0.4rem 0.36rem; font-size: 0.8rem; }
  .langs summary { padding: 0.4rem 0.3rem; gap: 0.2rem; }
}
/* Narrow phones: the wordmark already links home, so the Lists link goes; labels never wrap.
   The smallest phones get a second header row rather than a sideways scroll. */
.site-head nav a { white-space: nowrap; }
@media (max-width: 30rem) { .site-head .nav-lists { display: none; } }
@media (max-width: 22.5rem) {
  .site-head-in { flex-wrap: wrap; padding-block: 0.3rem; }
  .site-head nav { order: 3; width: 100%; margin-left: -0.42rem; }
  .langs { margin-left: auto; }
}

main { padding-bottom: 5rem; }
main:has(> .more:last-child) { padding-bottom: 0; }
.site-foot { background: var(--foot); color: var(--foot-ink); padding-block: 2.5rem 3rem; font-size: 0.88rem; }
.site-foot .disclosure { color: #FFFFFF; font-weight: 600; margin: 0 0 1.1rem; }
.foot-brand { margin: 0 0 0.6rem; }
.foot-name { font-family: var(--head); font-weight: 800; color: #FFFFFF; margin-right: 0.35rem; }
.nav-ext a { color: var(--ink-2); }
@media (max-width: 47.99rem) { .nav-ext { display: none; } }
.foot-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.4rem; list-style: none; margin: 0 0 1.25rem; padding: 0; }
.foot-links a { color: #FFFFFF; }
.copy { margin: 0; }

/* ---------- pills, the Sponsored label, chips, buttons ---------- */

.pills { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0; }
.pill { display: inline-flex; align-items: center; font-size: 0.78rem; font-weight: 650; line-height: 1; padding: 0.42rem 0.7rem; border-radius: 999px; background: var(--a); color: var(--a-on); text-decoration: none; white-space: nowrap; }
a.pill:hover { text-decoration: underline; text-decoration-thickness: 1px; }
.pill-plain { background: color-mix(in srgb, var(--ink) 8%, transparent); color: var(--ink); }

/* Sponsored: a small, soft pill in sentence case. Visible, never loud. */
.tag {
  display: inline-block; font-family: var(--body); font-size: 0.74rem; font-weight: 600; line-height: 1;
  letter-spacing: 0.01em; padding: 0.34rem 0.58rem; border-radius: 999px; white-space: nowrap; vertical-align: middle;
  background: color-mix(in srgb, var(--ink) 8%, var(--page)); color: var(--ink-2);
}

.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 0.4rem; padding: 0; margin: 1.1rem 0 1.25rem; }
.chips li { background: var(--a-chip); border-radius: 10px; padding: 0.38rem 0.65rem; font-size: 0.84rem; line-height: 1.3; }
.chips .k { color: var(--ink-2); }
.chips .v { font-weight: 650; }
.chips-sm { margin: 0.5rem 0 0; }
.chips-sm li { font-size: 0.78rem; padding: 0.28rem 0.55rem; background: var(--page); }

.actions { list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem; padding: 0; margin: 1.25rem 0 0; }
.btn {
  display: inline-flex; align-items: center; gap: 0.45rem; min-height: 2.6rem; padding: 0.5rem 1rem;
  border-radius: 999px; font-size: 0.9rem; font-weight: 650; line-height: 1.2; text-decoration: none;
  background: var(--surface); color: var(--ink);
}
.btn:hover { background: var(--surface-2); }
.btn-main { background: var(--ink); color: var(--page); }
.btn-main:hover { background: color-mix(in srgb, var(--ink) 85%, var(--a)); }
.btn-quiet { background: transparent; color: var(--link); text-decoration: underline; padding-inline: 0.5rem; }
.btn-quiet:hover { background: transparent; text-decoration-thickness: 2px; }
.ext { flex: none; opacity: 0.75; }

/* ---------- the cover: hero band in the list's colour ---------- */

.cover { background: var(--a-soft); padding-block: 0.1rem 2.5rem; }
.cover-slim { padding-bottom: 2.25rem; }
.cover-slim .cover-head { padding-top: 1.75rem; }
.cover-slim .crumbs + .cover-head { padding-top: 0; }
.cover-head h1 { margin: 0.75rem 0 0.85rem; max-width: 19ch; }
.crumbs + .cover-grid, .crumbs + .cover-head, .crumbs + .game-hero { margin-top: 0.9rem; }
.cover-head .lead { margin-top: 0.5rem; }
.dateline { font-size: 0.88rem; color: var(--ink-2); margin-bottom: 0.9rem; }
.sponsor-note { display: flex; gap: 0.5rem; align-items: flex-start; font-size: 0.88rem; line-height: 1.45; margin: 0; color: var(--ink); }
.sponsor-note svg { flex: none; margin-top: 0.12rem; color: var(--a-text); }
.cover-grid { display: grid; gap: 1.25rem; grid-template-areas: "head" "art" "intro"; }
.cover-head { grid-area: head; }
.cover-art { grid-area: art; }
.cover-intro { grid-area: intro; }
.cover-intro .lead:last-child { margin-bottom: 0; }
@media (min-width: 64rem) {
  .cover { padding-bottom: 3rem; }
  .cover-grid { grid-template-columns: minmax(0, 1fr) 29rem; column-gap: 4rem; row-gap: 1.5rem; grid-template-areas: "head head" "intro art"; align-items: start; }
  .cover-grid .cover-head h1 { max-width: 24ch; }
  .cover-grid .dateline, .cover-grid .sponsor-note { max-width: 44rem; }
  .cover-intro { padding-top: 0.2rem; }
}

/* the art tray: one large tile and two small ones on a block of the list colour */
.mosaic { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 6px; }
.mosaic .tile:first-child { grid-row: 1 / 3; }
.mosaic.n1, .mosaic.n2 { grid-template-rows: auto; }
.mosaic.n1 { grid-template-columns: 1fr; }
.mosaic.n2 { grid-template-columns: 1fr 1fr; }
.mosaic.n2 .tile:first-child { grid-row: auto; }
.tile { display: block; overflow: hidden; border-radius: 10px; background: var(--ink); }
.tile img { width: 100%; height: 100%; object-fit: cover; aspect-ratio: 616 / 353; }
.cover-art .mosaic { background: var(--a); padding: 8px; border-radius: 18px; }
a.tile { transition: transform 140ms ease-out; }
a.tile:hover { transform: translateY(-3px); }

.blank {
  display: flex; align-items: flex-end; width: 100%; aspect-ratio: 616 / 353; padding: 0.8rem 0.9rem; overflow: hidden;
  border-radius: 12px; background: linear-gradient(150deg, rgba(255, 255, 255, 0.16), transparent 55%), var(--a); color: var(--a-on);
  font-family: var(--head); font-weight: 780; font-size: 1.15rem; line-height: 1.05; letter-spacing: -0.015em;
}

.crumbs { font-size: 0.82rem; color: var(--ink-2); padding-top: 1rem; }
.crumbs ol { list-style: none; display: flex; margin: 0; padding: 0; white-space: nowrap; }
.crumbs li { flex: none; }
.crumbs li:last-child { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.crumbs li + li::before { content: "/"; margin: 0 0.45rem; opacity: 0.55; }
.crumbs a { color: var(--ink-2); }

/* ---------- list page body ---------- */

.list-body { padding-top: 0.25rem; }
@media (min-width: 64rem) {
  .list-body {
    display: grid; grid-template-columns: minmax(0, var(--measure)) minmax(13rem, 1fr); column-gap: clamp(3rem, 7vw, 7rem);
    grid-template-areas: "glance glance" "video video" "items jump" "end jump"; align-items: start;
  }
  .glance { grid-area: glance; }
  .video { grid-area: video; }
  .items { grid-area: items; }
  .list-end { grid-area: end; }
}

/* jump to a game: a row of chips on phones, a sticky rail on wide screens */
.jump { margin: 1.4rem calc(-1 * var(--gutter)) 0; }
.jump-h { font-family: var(--body); font-size: 0.8rem; font-weight: 650; letter-spacing: 0; color: var(--ink-2); margin: 0 var(--gutter) 0.5rem; }
.jump ol { display: flex; gap: 0.4rem; overflow-x: auto; list-style: none; margin: 0; padding: 0.15rem var(--gutter) 0.5rem; scrollbar-width: none; }
.jump ol::-webkit-scrollbar { display: none; }
.jump a { display: flex; align-items: center; gap: 0.5rem; white-space: nowrap; padding: 0.3rem 0.85rem 0.3rem 0.3rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.86rem; font-weight: 600; line-height: 1.2; }
.jump a:hover { background: var(--surface-2); }
.jn { flex: none; display: grid; place-items: center; width: 1.65rem; height: 1.65rem; border-radius: 50%; background: var(--a); color: var(--a-on); font-family: var(--head); font-weight: 800; font-size: 0.8rem; }
@media (min-width: 64rem) {
  .jump { grid-area: jump; position: sticky; top: 1.25rem; margin: 3.4rem 0 0; max-height: calc(100vh - 2.5rem); overflow-y: auto; }
  .jump-h { margin: 0 0 0.6rem 0.4rem; }
  .jump ol { flex-direction: column; overflow: visible; padding: 0; gap: 0.1rem; }
  .jump a { white-space: normal; background: transparent; padding: 0.35rem 0.5rem 0.35rem 0.35rem; border-radius: 12px; font-size: 0.88rem; }
}

/* at a glance */
.glance { margin: 2.5rem 0 3.5rem; }
.glance h2 { margin-bottom: 0.35rem; }
.glance-cap { font-size: 0.86rem; color: var(--ink-2); max-width: 46rem; margin-bottom: 1rem; }
.glance-wrap { overflow-x: auto; }
.glance-table { width: 100%; border-collapse: collapse; font-size: 0.84rem; line-height: 1.35; }
.glance-table thead th { text-align: left; font-size: 0.74rem; font-weight: 650; color: var(--ink-2); padding: 0.45rem 0.5rem; border-bottom: 2px solid var(--a); vertical-align: bottom; }
.glance-table tbody th, .glance-table td { text-align: left; vertical-align: middle; padding: 0.65rem 0.5rem; border-bottom: 1px solid var(--line); }
.glance-table thead th:first-child, .glance-table tbody th { padding-left: 0; }
.g-cell { display: flex; align-items: center; gap: 0.7rem; }
.g-cell img, .g-ph { flex: none; width: 3.8rem; border-radius: 6px; }
.g-ph { aspect-ratio: 616 / 353; background: linear-gradient(150deg, rgba(255, 255, 255, 0.2), transparent 60%), var(--a); }
.g-name { font-weight: 400; }
.g-name a { font-family: var(--head); font-weight: 720; font-size: 0.98rem; line-height: 1.2; color: var(--ink); text-decoration: none; }
.g-name a:hover { text-decoration: underline; }
.g-name .tag { margin-top: 0.25rem; }
.glance-table td.col-for { min-width: 10.5rem; }
.glance-table tr.is-ref > * { background: var(--surface); color: var(--ink-2); }
.glance-table tr.is-ref .g-name a { color: var(--ink-2); }
.glance-table td.yes { font-weight: 650; }
.glance-table td.no { color: var(--ink-2); }
.col-table td.col-found { min-width: 14rem; font-size: 0.82rem; }
@media (min-width: 48rem) {
  .glance-table tbody th { min-width: 10.5rem; }
  .glance-table tr.is-ref th { padding-left: 0.5rem; border-radius: 10px 0 0 10px; }
}
/* the game column stays put while the rest of the table scrolls sideways */
.glance-table .col-game { position: sticky; left: 0; z-index: 1; background: var(--page); }
.glance-hint { display: none; }
@media (max-width: 47.99rem) {
  .glance { margin: 1.5rem 0 2.25rem; }
  .glance-cap { font-size: 0.8rem; line-height: 1.45; margin-bottom: 0.75rem; }
  .glance-hint { display: inline; font-weight: 600; color: var(--ink); }
  p.glance-hint { display: block; }
  .glance-wrap { margin-inline: calc(-1 * var(--gutter)); }
  .glance-table { font-size: 0.8rem; line-height: 1.3; }
  .glance-table thead th { font-size: 0.7rem; white-space: nowrap; padding: 0.4rem 0.55rem; }
  .glance-table tbody th, .glance-table td { padding: 0.42rem 0.55rem; }
  .glance-table .col-game, .glance-table thead th.col-game, .glance-table tr.is-ref th { width: 9.6rem; min-width: 9.6rem; max-width: 9.6rem; padding-left: var(--gutter); box-shadow: inset -1px 0 0 var(--line); }
  .glance-table td { min-width: 6.4rem; }
  .glance-table td.col-for { min-width: 14.5rem; }
  .glance-table td.col-players, .glance-table td.col-also_on, .glance-table td.col-reviews { min-width: 7.6rem; }
  .glance-table td:last-child { padding-right: var(--gutter); }
  .col-table td.col-found { min-width: 12rem; }
  .g-cell { gap: 0.45rem; }
  .g-cell img, .g-ph { width: 2.6rem; border-radius: 4px; }
  .g-name a { font-size: 0.8rem; }
  .g-name .nm-rest { display: none; }
  .g-name .tag { font-size: 0.62rem; padding: 0.22rem 0.42rem; margin-top: 0.2rem; }
}

.video { margin: 0 0 3rem; }
.video h2 { margin-bottom: 1rem; }
.video-frame { aspect-ratio: 16 / 9; background: var(--surface); border-radius: 14px; overflow: hidden; }
.video-frame iframe { display: block; width: 100%; height: 100%; border: 0; }
.ytf { position: relative; display: block; width: 100%; height: 100%; padding: 0; border: 0; background: #1B1933; color: #FFFFFF; cursor: pointer; }
.ytf img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.ytf .play { top: 50%; width: 3.6rem; height: 3.6rem; }
.ytf:hover .play, .ytf:focus-visible .play { transform: translate(-50%, -50%) scale(1.08); }
.video-cap { margin: 0.6rem 0 0; font-size: 0.9rem; }

/* ---------- list entries ---------- */
/* Entries sit in normal flow. Anything placed between two entries later (an in-content ad unit)
   takes the column width and the same spacing, without markup changes. */
.items > * + * { margin-top: clamp(3.5rem, 8vw, 5rem); }
.items > :not(.item) { display: block; max-width: 100%; margin-inline: auto; text-align: center; }
.item { scroll-margin-top: 1rem; }
.item-head { display: flex; align-items: flex-start; gap: 0.8rem; margin-bottom: 1rem; }
.item-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem 0.7rem; min-height: 2.55rem; min-width: 0; }
.item-head h2 { font-size: clamp(1.6rem, 1.25rem + 1.4vw, 2.15rem); letter-spacing: -0.022em; }
.num { flex: none; display: grid; place-items: center; width: 2.55rem; height: 2.55rem; border-radius: 12px; background: var(--a); color: var(--a-on); font-family: var(--head); font-weight: 800; font-size: 1.3rem; line-height: 1; }
.item:target .num { outline: 3px solid var(--a-text); outline-offset: 3px; }
.item-art img, .item-art .blank { width: 100%; border-radius: 14px; }
.item-art .blank { font-size: clamp(1.4rem, 1rem + 2vw, 2.2rem); padding: 1.1rem 1.25rem; }
.item-text p { line-height: 1.65; }
.for { background: var(--surface); border-radius: 14px; padding: 0.85rem 1.1rem 0.95rem; font-size: 1.02rem; line-height: 1.5; margin: 0 0 1.4rem; max-width: none; }
.for-k { display: block; font-size: 0.78rem; font-weight: 700; color: var(--a-text); margin-bottom: 0.2rem; }

.media { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.5rem; margin: 1.6rem 0 1.4rem; }
.media.n2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.media.n1 { grid-template-columns: minmax(0, 22rem); }
.media img { width: 100%; height: 100%; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 10px; background: var(--surface); }
.trailer { position: relative; display: block; overflow: hidden; border-radius: 10px; aspect-ratio: 16 / 9; background: #1B1933; color: #FFFFFF; text-decoration: none; }
.trailer img { position: absolute; inset: 0; border-radius: 0; }
.trailer::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 12, 30, 0.85), rgba(14, 12, 30, 0.1) 65%); }
.play { position: absolute; z-index: 2; left: 50%; top: 42%; transform: translate(-50%, -50%); display: grid; place-items: center; width: 2.9rem; height: 2.9rem; border-radius: 50%; background: #FFFFFF; color: #1B1933; box-shadow: 0 4px 14px rgba(0, 0, 0, 0.35); transition: transform 140ms ease-out; }
.play svg { margin-left: 3px; }
.trailer:hover .play { transform: translate(-50%, -50%) scale(1.08); }
.trailer-t { position: absolute; z-index: 2; left: 0.65rem; right: 0.65rem; bottom: 0.5rem; font-size: 0.84rem; font-weight: 700; line-height: 1.2; }
.trailer-n { display: block; font-size: 0.7rem; font-weight: 500; opacity: 0.9; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 47.99rem) {
  .media, .media.n2 { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); scrollbar-width: none; }
  .media::-webkit-scrollbar { display: none; }
  .media { align-items: flex-start; }
  .media > * { flex: 0 0 76%; min-width: 0; scroll-snap-align: start; }
  .media img { height: auto; }
  .media.n1 > * { flex-basis: 100%; }
}

.fine { display: flex; flex-wrap: wrap; gap: 0.35rem 1.5rem; margin: 0 0 0.25rem; font-size: 0.84rem; line-height: 1.45; color: var(--ink-2); }
.fine dt, .fine dd { display: inline; }
.fine dt { font-weight: 650; color: var(--ink); margin-right: 0.35rem; }
.fine dd { margin: 0; }

.list-end { margin-top: 3.5rem; }
.outro { padding-top: 2.5rem; border-top: 1px solid var(--line); }
.outro p { font-size: 1.05rem; }

.also { margin-top: 3.5rem; }
.also h2 { margin-bottom: 0.4rem; }
.also-intro { font-size: 0.9rem; color: var(--ink-2); }
.also-list { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: 0.75rem; }
.also-item { display: grid; grid-template-columns: 6.5rem minmax(0, 1fr); gap: 1rem; padding: 1rem; border-radius: 14px; background: var(--surface); }
.also-art img, .also-art .blank { border-radius: 8px; width: 100%; aspect-ratio: 616 / 353; object-fit: cover; }
.also-art .blank { font-size: 0.75rem; padding: 0.4rem; }
.also-body h3 { margin-bottom: 0.25rem; }
.also-body h3 a { color: var(--ink); text-decoration: none; }
.also-body h3 a:hover { text-decoration: underline; }
.also-body p { margin-bottom: 0; font-size: 0.92rem; line-height: 1.5; }
.also-body .also-date { margin-top: 0.5rem; font-size: 0.8rem; color: var(--ink-2); }
@media (max-width: 30rem) { .also-item { grid-template-columns: 1fr; } .also-art { max-width: 12rem; } }

.qa { margin-top: 3.5rem; }
.qa h2 { margin-bottom: 1rem; }
.qa-pair { padding-block: 1rem; border-top: 1px solid var(--line); }
.qa-pair h3 { margin-bottom: 0.35rem; }
.qa-pair p { margin: 0; }

/* related lists, at the foot of a list page */
.more { background: var(--surface); margin-top: 5rem; padding-block: 3rem 3.5rem; }
.more h2 { margin-bottom: 1.5rem; }
.more .lcard-art { box-shadow: none; }
.more-links { list-style: none; display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; margin: 2rem 0 0; padding: 0; font-weight: 600; }

/* ---------- list cards (home, hubs, related) ---------- */

.card-grid { list-style: none; margin: 0; padding: 0; display: grid; gap: 2.25rem 1.5rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.lcard { position: relative; display: flex; flex-direction: column; gap: 0.9rem; }
.lcard-art { background: var(--a); padding: 6px; border-radius: 16px; }
.lcard-art .mosaic { gap: 5px; }
.lcard-art .tile { border-radius: 10px; }
.lcard-body .pills { margin-bottom: 0.55rem; }
.lcard-title { font-size: 1.22rem; line-height: 1.18; font-weight: 760; letter-spacing: -0.015em; margin: 0 0 0.4rem; }
.lcard-title a { color: var(--ink); text-decoration: none; }
.lcard-title a::after { content: ""; position: absolute; inset: 0; border-radius: 16px; }
.lcard-title a:focus-visible { outline: none; }
.lcard:has(a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 6px; border-radius: 16px; }
.lcard:hover .lcard-title a { text-decoration: underline; text-decoration-color: var(--a); text-decoration-thickness: 3px; }
.lcard-text { font-size: 0.94rem; line-height: 1.5; color: var(--ink-2); margin: 0; }
.lcard-date { font-size: 0.8rem; color: var(--ink-2); margin: 0.55rem 0 0; }
.lcard-feature { background: var(--a-soft); border-radius: 24px; padding: 0.75rem 0.75rem 1.4rem; }
.lcard-feature .lcard-body { padding-inline: 0.5rem; }
.lcard-feature .lcard-title { font-size: clamp(1.6rem, 1.1rem + 2.2vw, 2.6rem); line-height: 1.05; letter-spacing: -0.025em; margin-bottom: 0.6rem; }
.lcard-feature .lcard-text { font-size: 1.02rem; color: var(--ink); }
.lcard-feature .lcard-title a::after { border-radius: 24px; }
@media (min-width: 48rem) {
  .lcard-feature { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 2.5rem; align-items: center; padding: 1rem 2.5rem 1rem 1rem; }
  .lcard-feature .lcard-body { padding: 0; }
  .lcard-feature .lcard-art { padding: 8px; border-radius: 18px; }
}

/* ---------- home ---------- */

.home-top { padding-block: clamp(1.5rem, 4vw, 2.5rem) 2rem; }
.home-title { max-width: 15ch; font-size: clamp(2.2rem, 1.2rem + 4vw, 4rem); line-height: 1; }
.home-intro { margin-top: 1.1rem; color: var(--ink-2); }
.home-intro p { max-width: 34rem; }
.home-intro p:first-child { font-size: 1.06rem; color: var(--ink); }
@media (min-width: 64rem) {
  .home-top-in { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); column-gap: 4rem; align-items: end; }
  .home-intro { margin: 0; }
  .home-intro p:last-child { margin-bottom: 0.2rem; }
}
.home-lists .section-title { margin-top: 3.5rem; }
.browse { display: grid; gap: 0 3rem; }
@media (min-width: 48rem) { .browse { grid-template-columns: 1fr 1fr; } }
.hub-tiles { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.6rem; }
.hub-tile { display: flex; align-items: baseline; gap: 0.65rem; padding: 0.85rem 1.15rem; border-radius: 14px; background: var(--a-soft); color: var(--ink); text-decoration: none; }
.hub-tile:hover { background: color-mix(in srgb, var(--a) 28%, var(--page)); }
.hub-name { font-family: var(--head); font-weight: 760; font-size: 1.15rem; line-height: 1.1; letter-spacing: -0.01em; }
.hub-count { font-size: 0.8rem; color: var(--ink-2); }
.hub-lists { margin-top: 2.5rem; }

/* ---------- games index and game cards ---------- */

.gcard-grid { list-style: none; margin: 2.5rem 0 0; padding: 0; display: grid; gap: 1.75rem 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(46%, 12rem), 1fr)); }
.gcard { position: relative; }
.gcard-art img, .gcard-art .blank { width: 100%; aspect-ratio: 616 / 353; object-fit: cover; border-radius: 10px; }
.gcard-art .blank { font-size: 0.95rem; padding: 0.6rem 0.7rem; }
.gcard-name { font-size: 1rem; line-height: 1.2; font-weight: 720; margin: 0.6rem 0 0.2rem; }
.gcard-name a { color: var(--ink); text-decoration: none; }
.gcard-name a::after { content: ""; position: absolute; inset: 0; }
.gcard-name a:focus-visible { outline: none; }
.gcard:has(a:focus-visible) { outline: 3px solid var(--brand); outline-offset: 4px; border-radius: 12px; }
.gcard:hover .gcard-name a { text-decoration: underline; }
.gcard-line, .gcard-in { font-size: 0.8rem; line-height: 1.4; color: var(--ink-2); margin: 0; }
.gcard-in { margin-top: 0.2rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.gcard-grid.rows { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17.5rem), 1fr)); gap: 0.4rem 1.25rem; }
.rows .gcard { display: grid; grid-template-columns: 6.6rem minmax(0, 1fr); column-gap: 0.9rem; align-content: center; padding: 0.55rem; border-radius: 14px; }
.rows .gcard:hover { background: var(--surface); }
.rows .gcard > * { grid-column: 2; }
.rows .gcard-art { grid-column: 1; grid-row: 1 / span 3; align-self: center; }
.rows .gcard-art img, .rows .gcard-art .blank { border-radius: 8px; }
.rows .gcard-art .blank { font-size: 0.7rem; padding: 0.35rem 0.45rem; }
.rows .gcard-name { margin: 0 0 0.1rem; font-size: 0.98rem; }
.games-collections { margin-top: 1rem; }
.pill-links { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill-links a { display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.5rem 0.9rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.88rem; font-weight: 600; line-height: 1.3; }
.pill-links a:hover { background: var(--surface-2); }
.pill-links .count { color: var(--ink-2); font-weight: 500; }

/* ---------- game page ---------- */

.game-hero { display: grid; gap: 1.5rem; padding-top: 1rem; }
.game-art { background: var(--a); padding: 8px; border-radius: 18px; align-self: start; }
.game-art img, .game-art .blank { width: 100%; border-radius: 11px; }
.game-art .blank { font-size: clamp(1.5rem, 1rem + 2vw, 2.4rem); }
.title-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.9rem; margin-bottom: 0.8rem; }
.title-row h1 { font-size: clamp(2rem, 1.3rem + 2.6vw, 3.1rem); }
.game-info .chips { margin-bottom: 0.25rem; }
.game-info .chips li { background: var(--page); }
@media (min-width: 64rem) {
  .game-hero { grid-template-columns: 31rem minmax(0, 1fr); column-gap: 3rem; align-items: center; }
}
.game-body > section, .game-body > .game-cols, .game-body > .game-more { margin-top: 3.25rem; }
.game-media h2, .game-about h2 { margin-bottom: 0.3rem; }
.game-about { max-width: 42rem; }
.game-about p { margin-top: 0.75rem; }
.game-media .media { margin-top: 1rem; }
.game-cols { display: grid; gap: 3.25rem; }
@media (min-width: 64rem) { .game-cols { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); column-gap: 3.5rem; } }
.game-cols h2 { margin-bottom: 0.9rem; }
.game-more { display: grid; gap: 1.5rem 3rem; }
@media (min-width: 48rem) { .game-more { grid-template-columns: 1fr 1fr; } }
.game-similar .gcard-grid { margin-top: 1.25rem; }
.game-lists h2 { margin-bottom: 1.25rem; }

table { border-collapse: collapse; width: 100%; font-size: 0.92rem; }
.fact-table th, .fact-table td, .lang-table th, .lang-table td { text-align: left; vertical-align: top; padding: 0.6rem 0.9rem 0.6rem 0; border-bottom: 1px solid var(--line); line-height: 1.45; overflow-wrap: anywhere; hyphens: auto; }
.fact-table th { width: 38%; font-weight: 600; color: var(--ink-2); font-size: 0.86rem; }
.fact-table tr:first-child > * { border-top: 2px solid var(--a); }
.lang-table thead th { font-weight: 650; color: var(--ink-2); font-size: 0.8rem; border-bottom: 2px solid var(--a); }
.lang-table tbody th { font-weight: 600; }
.lang-table td.no, .lang-simple .no { color: var(--ink-2); }
.lang-table td.yes, .lang-simple .yes { font-weight: 700; }
.lang-table td.yes::before, .lang-simple .yes::before { content: ""; display: inline-block; width: 0.5rem; height: 0.5rem; border-radius: 50%; background: var(--a); margin-right: 0.4rem; vertical-align: 0.08em; }
.table-scroll { overflow-x: auto; margin-bottom: 0.9rem; }
.lang-simple { padding-left: 1.1rem; }

/* ---------- prose pages (about) ---------- */

.prose { max-width: var(--measure); margin-top: 2.25rem; }
.stamp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.4rem 0.9rem; margin: 0.9rem 0 0; font-size: 0.82rem; }
.stamp { display: inline-flex; align-items: center; gap: 0.35rem; padding: 0.22rem 0.65rem 0.22rem 0.5rem; border: 1.5px solid var(--brand); border-radius: 8px; font-weight: 700; color: var(--ink); background: var(--page); }
.stamp svg { color: var(--brand); flex: none; }
.stamp-src { color: var(--ink-2); font-weight: 600; }
.fix { color: var(--ink-2); font-weight: 600; }
.stamp-row + .dateline { margin-top: 0.5rem; }
.log { list-style: none; padding: 0; margin: 0; }
.log li { padding-block: 1rem; border-top: 1px solid var(--line); }
.log p { margin: 0.25rem 0 0; }
.log-head { font-weight: 700; }
pre.code { background: var(--surface); border-radius: 8px; padding: 0.8rem 1rem; overflow-x: auto; font-size: 0.8rem; white-space: pre-wrap; word-break: break-all; }
.prose h2 { font-size: 1.5rem; margin: 2.6rem 0 0.7rem; scroll-margin-top: 1rem; }
.prose ul { padding-left: 1.2rem; }
.prose li { margin-bottom: 0.4rem; }
.toc ul { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 0.45rem; margin: 0; }
.toc a { display: inline-block; padding: 0.4rem 0.8rem; border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 0.84rem; font-weight: 600; }
.toc a:hover { background: var(--surface-2); }
.toc li { margin: 0; flex: none; }
@media (max-width: 47.99rem) {
  .toc ul { flex-wrap: nowrap; overflow-x: auto; margin-inline: calc(-1 * var(--gutter)); padding: 0 var(--gutter) 0.3rem; scrollbar-width: none; }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc a { white-space: nowrap; }
}
.callout { background: var(--a-soft); border-radius: 18px; padding: 0.4rem 1.5rem 0.6rem; margin: 2.6rem 0; scroll-margin-top: 1rem; }
.callout h2 { margin-top: 1.1rem; }
.col-more { margin-top: 3rem; display: grid; gap: 0.5rem; }
.col-more .small-title { margin-top: 1rem; }

@media (prefers-reduced-motion: reduce) {
  a.tile, .play { transition: none; }
  a.tile:hover { transform: none; }
  .trailer:hover .play, .ytf:hover .play, .ytf:focus-visible .play { transform: translate(-50%, -50%); }
}
