/* Leetdom — game reviews, "leetest.com, 2007" skin.
   Layered on /css/leetest.css (loaded first, in server/lib/layout.js): every colour here is
   one of leetest.css's :root tokens (--ink --link --visited --paper --rule --band --feature
   --altA --altB --muted), or a literal that belongs to that palette (e.g. #333333, matching
   leetest's own .tile .blurb). There are NO dark backgrounds, no text-shadow, no box-shadow,
   no border-radius flourish — 2007 portals were flat boxes with 1px borders.

   Rendered by server/lib/reviews.js (read-only from here — never edit it). This file styles
   every class it emits: the landing hero, the section hub (browse tiles, charts, A–Z), the
   featured review, the card grid, the review detail page (score, quick verdict, prose body,
   pros/cons, category bars, gallery + lightbox, game info, related), and pagination/breadcrumbs.
   Mobile-first: every grid starts as one column, same 620/760/900px breakpoints as leetest.css.

   The old dark-theme file this replaces used a ten-star glyph bar with a glowing gold fill and
   a large serif score number. Per the brief's own suggestion, the star bar survives but goes
   quiet (grey track, link-blue fill, no glow) and the number becomes a bold score chip — link
   blue on a --band background, boxed in 1px --rule — which is the 2007-appropriate read: a
   plain, boxed "score: 8.5" rather than a shine effect. */

.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;
}

/* --------------------------------------------------------------------------
   Breadcrumbs — every reviews page opens with one; leetest.css has no
   opinion on them, so they are styled here.
   -------------------------------------------------------------------------- */
.crumbs { margin: 10px 0 14px; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 4px; list-style: none; margin: 0; padding: 0; font-size: 0.85rem; }
.crumbs li { color: var(--muted); }
.crumbs li + li::before { content: "\00bb"; margin: 0 6px 0 2px; color: var(--rule); }
.crumbs li[aria-current] { color: var(--ink); font-weight: bold; }
.crumbs a { color: var(--link); }

/* --------------------------------------------------------------------------
   Buttons — reviews.js calls these "cards"/CTAs .btn.gold / .btn.ghost; the
   2007 equivalent of a call-to-action is just a bordered box, the same
   treatment leetest.css gives its own search button and category grid.
   -------------------------------------------------------------------------- */
.btn {
  display: inline-block; border: 1px solid var(--link); background: var(--band);
  color: var(--ink); font-weight: bold; text-decoration: none;
  padding: 8px 14px; min-height: 40px; line-height: 24px;
}
.btn:hover { background: var(--feature); text-decoration: none; }
.btn.gold { background: var(--link); border-color: var(--link); color: var(--paper); }
.btn.gold:hover { background: var(--visited); border-color: var(--visited); }
.btn.ghost { background: var(--paper); border-color: var(--rule); color: var(--ink); }
.btn.ghost:hover { background: var(--altA); border-color: var(--link); }

/* --------------------------------------------------------------------------
   Score — ten quiet stars plus the bold number-chip
   -------------------------------------------------------------------------- */
.stars {
  position: relative; display: inline-block; flex: none;
  font-size: 14px; line-height: 1; letter-spacing: 0; white-space: nowrap;
  font-family: 'Segoe UI Symbol', 'Apple Color Emoji', sans-serif;
}
.stars-track { color: var(--rule); }
.stars-fill { position: absolute; inset: 0 auto 0 0; overflow: hidden; color: var(--link); }
.score { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 6px 0; }
.score-num { color: var(--muted); font-size: 0.9rem; }
.score-num strong {
  display: inline-block; margin-left: 2px; background: var(--band); border: 1px solid var(--rule);
  color: var(--link); font-weight: bold; padding: 2px 9px; font-size: 1.1rem;
}
.score-lg .stars { font-size: 20px; }
.score-lg .score-num { font-size: 1rem; }
.score-lg .score-num strong { font-size: 1.6rem; padding: 3px 14px; }

/* --------------------------------------------------------------------------
   Chips + the sample flag
   -------------------------------------------------------------------------- */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip {
  display: inline-block; padding: 2px 9px; border: 1px solid var(--rule); background: var(--band);
  color: var(--link); font-size: 0.8rem; font-weight: bold; text-decoration: none;
}
a.chip:hover { background: var(--feature); text-decoration: none; }
.chip-plain { background: var(--paper); color: var(--muted); font-weight: normal; }
a.chip-plain:hover { background: var(--altA); }
.sample-flag {
  display: inline-block; padding: 2px 9px; border: 1px dashed var(--visited);
  background: var(--paper); color: var(--visited); font-size: 0.8rem; font-weight: bold;
}
.sample-flag.sm { padding: 1px 6px; font-size: 0.7rem; }
.sample-banner {
  margin: 18px 0; padding: 10px 14px; border: 1px solid var(--rule); border-left: 3px solid var(--visited);
  background: var(--altA); color: var(--ink); font-size: 0.95rem;
}
.sample-banner strong { color: var(--visited); }

/* --------------------------------------------------------------------------
   Landing hero — a plain boxed banner, no gradients or decoration
   -------------------------------------------------------------------------- */
.reviews-hero { margin: 0 0 20px; border: 1px solid var(--rule); background: var(--band); }
.reviews-hero-copy { padding: 16px 18px; }
.reviews-hero h1 { font-size: 1.9rem; line-height: 1.15; }
.page .reviews-hero p.lede, .reviews-hero p.lede { max-width: 640px; margin-top: 8px; color: var(--ink); font-size: 1rem; }
.review-eyebrow { color: var(--link); text-transform: uppercase; letter-spacing: 0.06em; font-size: 0.75rem; font-weight: bold; margin-bottom: 4px; }
.reviews-honesty { display: none; } /* dead: no longer emitted by reviews.js */

.reviews-hero-sm .reviews-hero-copy { padding: 12px 16px; }
.reviews-hero-sm h1 { font-size: 1.5rem; }

/* --------------------------------------------------------------------------
   Featured review
   -------------------------------------------------------------------------- */
.review-featured {
  display: grid; gap: 0; margin: 0 0 24px; border: 1px solid var(--rule); background: var(--paper);
}
.review-featured-art { display: flex; align-items: center; justify-content: center; background: var(--altA); border-bottom: 1px solid var(--rule); }
.review-featured-art img { width: 100%; height: 100%; max-height: 320px; object-fit: contain; background: var(--altA); }
.review-featured-copy { display: flex; flex-direction: column; gap: 10px; padding: 16px 18px; }
.review-featured-copy h2 { font-size: 1.5rem; line-height: 1.15; }
.review-featured-copy h2 a { color: var(--ink); }
.review-featured-copy h2 a:hover { color: var(--link); }
.review-featured-copy .summary { color: var(--ink); }
.featured-verdict { color: var(--ink); font-size: 0.95rem; border-left: 2px solid var(--link); padding-left: 12px; }
.card-cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; }

/* --------------------------------------------------------------------------
   Controls
   -------------------------------------------------------------------------- */
.review-controls {
  display: grid; gap: 12px; margin: 0 0 20px; padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper);
}
.review-search label, .review-filters label {
  display: block; color: var(--ink); font-size: 0.85rem; font-weight: bold;
}
.review-search input {
  width: 100%; margin-top: 4px; padding: 8px 10px; font: inherit; font-size: 1rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
}
.review-filters { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(148px, 1fr)); align-items: end; }
.review-filters select {
  width: 100%; margin-top: 4px; padding: 7px 8px; font: inherit; font-size: 0.95rem;
  color: var(--ink); background: var(--paper); border: 1px solid var(--rule);
}
.review-search input:focus-visible, .review-filters select:focus-visible {
  outline: 3px solid var(--visited); outline-offset: 2px;
}
.review-filters .btn { text-align: center; }
.review-count { color: var(--muted); font-size: 0.85rem; }

/* --------------------------------------------------------------------------
   Review grid + cards
   -------------------------------------------------------------------------- */
.review-grid {
  display: grid; gap: 14px; margin-top: 4px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.review-card {
  display: flex; flex-direction: column; border: 1px solid var(--rule); background: var(--paper);
}
.review-card:hover { border-color: var(--link); }
.review-card[hidden] { display: none; }
.review-card .media { display: block; background: var(--altA); border-bottom: 1px solid var(--rule); }
.review-card .media img { width: 100%; height: 160px; object-fit: cover; }
.review-card .body { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px 14px; flex: 1; }
.review-card h3 { font-size: 1.05rem; line-height: 1.3; }
.review-card h3 a { color: var(--link); }
.review-card .summary { color: #333333; font-size: 0.9rem; line-height: 1.5; }
.review-card .card-meta { color: var(--muted); font-size: 0.8rem; }
.review-card .card-cta { margin-top: auto; padding-top: 4px; }

/* Cards/featured art with no image yet: a bordered box in --altA, never a broken image. */
.ph {
  display: grid; place-items: center; height: 160px; border-bottom: 1px solid var(--rule); background: var(--altA);
}
.ph span { color: var(--muted); font-weight: bold; font-size: 0.9rem; letter-spacing: 1px; text-align: center; padding: 0 10px; }
.review-featured-art .ph { height: 100%; min-height: 200px; border-bottom: 0; }

/* --------------------------------------------------------------------------
   Pager — leetest.css already lays out .pager as a flex row; these are the
   extra numbered-pagination classes reviews.js adds on top of it.
   -------------------------------------------------------------------------- */
.pager { flex-wrap: wrap; }
.pager-pos { color: var(--muted); font-size: 0.85rem; align-self: center; width: 100%; text-align: center; margin: 8px 0 0; }
.pager-nums { display: flex; gap: 4px; align-items: center; justify-content: center; flex-wrap: wrap; }
.pager-num {
  min-width: 36px; min-height: 36px; display: flex; align-items: center; justify-content: center;
  padding: 4px 8px; border: 1px solid var(--rule); color: var(--link); text-decoration: none; font-size: 0.9rem;
}
.pager-num:hover { border-color: var(--link); background: var(--altA); }
.pager-num.on { border-color: var(--link); background: var(--feature); color: var(--ink); font-weight: bold; }

/* --------------------------------------------------------------------------
   Invitation to the Flash archive
   -------------------------------------------------------------------------- */
.review-invite {
  margin: 34px 0 0; padding: 16px 18px; border: 1px solid var(--rule); border-left: 3px solid var(--link); background: var(--paper);
}
.review-invite h2 { font-size: 1.15rem; color: var(--ink); margin-bottom: 6px; }
.review-invite p { color: var(--ink); font-size: 0.95rem; margin-bottom: 10px; }
.review-invite p:last-child { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; }

/* --------------------------------------------------------------------------
   Review page
   -------------------------------------------------------------------------- */
article.review { max-width: 860px; margin-inline: auto; }
.review-head { display: grid; gap: 16px; margin-bottom: 6px; }
.review-head-art { overflow: hidden; border: 1px solid var(--rule); background: var(--altA); }
.review-head-art img { width: 100%; height: auto; max-height: 380px; object-fit: contain; background: var(--altA); }
.review-head-copy { display: flex; flex-direction: column; gap: 8px; }
.review-head-copy h1 { font-size: 1.9rem; line-height: 1.15; }
.review-byline { color: var(--muted); font-size: 0.85rem; }
.review-byline .upd { color: var(--ink); }
.review-facts {
  display: grid; gap: 8px 16px; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  margin-top: 4px; padding-top: 10px; border-top: 1px solid var(--rule);
}
.review-facts dt { color: var(--muted); font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.05em; }
.review-facts dd { color: var(--ink); font-size: 0.9rem; margin-top: 2px; }

/* Quick verdict — the panel a reader who wants the answer and nothing else stops at. */
.quick-verdict { margin: 24px 0; padding: 16px 18px; border: 1px solid var(--rule); background: var(--band); }
.quick-verdict h2 { font-size: 1.2rem; color: var(--ink); margin-bottom: 8px; }
.verdict-lead { color: var(--ink); font-size: 1rem; line-height: 1.6; margin-bottom: 10px; }
.qv-cols { display: grid; gap: 12px; margin: 12px 0 4px; }
.qv-col h3 { font-size: 0.85rem; color: var(--ink); text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 4px; }
.qv-col ul { margin: 0 0 0 18px; color: var(--ink); font-size: 0.9rem; }
.qv-col li { margin-bottom: 3px; }
.qv-line { color: var(--ink); font-size: 0.9rem; margin-top: 6px; }
.qv-line strong { color: var(--ink); }
.quick-verdict .score { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--rule); }

/* Contents */
.review-toc { margin: 24px 0; padding: 12px 16px; border: 1px solid var(--rule); background: var(--paper); }
.review-toc h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--muted); margin-bottom: 6px; }
.review-toc ol { display: grid; gap: 3px 16px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); margin: 0 0 0 18px; }
.review-toc li { color: var(--ink); font-size: 0.9rem; }

/* Body prose. */
.review .prose h2 { font-size: 1.3rem; margin: 32px 0 10px; padding-top: 6px; color: var(--ink); border-top: 1px solid var(--rule); scroll-margin-top: 78px; }
.review .prose h3 { font-size: 1.05rem; margin: 20px 0 5px; color: var(--ink); }
.review .prose p { margin: 0 0 14px; color: var(--ink); line-height: 1.65; }
.review .prose ul, .review .prose ol { margin: 0 0 14px 22px; color: var(--ink); }
.review .prose li { margin-bottom: 5px; }
.review .prose a { text-decoration: underline; text-underline-offset: 2px; }
.review .prose strong { color: var(--ink); }
.review .prose blockquote {
  margin: 0 0 16px; padding: 10px 16px; color: var(--ink); font-style: italic;
  border-left: 3px solid var(--link); background: var(--altA);
}
.review .prose figure { margin: 0 0 18px; border: 1px solid var(--rule); background: var(--altA); }
.review .prose img { width: 100%; }

/* --------------------------------------------------------------------------
   Pros and cons
   -------------------------------------------------------------------------- */
.pros-cons { margin: 34px 0; }
.pros-cons h2, .cat-ratings h2, .review-gallery h2, .game-info h2, .review-related h2 {
  font-size: 1.3rem; color: var(--ink); margin-bottom: 12px; padding-top: 6px; border-top: 1px solid var(--rule);
}
.pros-cons-grid { display: grid; gap: 12px; }
.pros-cons-grid > div { padding: 14px 16px; border: 1px solid var(--rule); background: var(--paper); }
.pros-cons-grid .pros { border-left: 3px solid var(--link); }
.pros-cons-grid .cons { border-left: 3px solid var(--visited); }
.pros-cons-grid h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 8px; }
.pros-cons-grid .pros h3 { color: var(--link); }
.pros-cons-grid .cons h3 { color: var(--visited); }
.pros-cons-grid ul { list-style: none; margin: 0; }
.pros-cons-grid li { position: relative; margin-bottom: 6px; padding-left: 20px; color: var(--ink); font-size: 0.95rem; line-height: 1.5; }
.pros-cons-grid li::before { position: absolute; left: 0; top: 0; font-weight: bold; }
.pros-cons-grid .pros li::before { content: '+'; color: var(--link); }
.pros-cons-grid .cons li::before { content: '\2212'; color: var(--visited); }

/* --------------------------------------------------------------------------
   Category scores
   -------------------------------------------------------------------------- */
.cat-ratings { margin: 34px 0; }
.cat-note { color: var(--muted); font-size: 0.85rem; margin-bottom: 12px; }
.cat-list { list-style: none; margin: 0; display: grid; gap: 8px; }
.cat-list li { display: grid; grid-template-columns: minmax(96px, 1fr) 2fr auto; align-items: center; gap: 10px; }
.cat-label { color: var(--ink); font-size: 0.9rem; }
.cat-bar { height: 9px; background: var(--altA); border: 1px solid var(--rule); overflow: hidden; }
.cat-bar > span { display: block; height: 100%; background: var(--link); }
.cat-score { color: var(--link); font-weight: bold; font-size: 0.95rem; white-space: nowrap; }
.cat-of { color: var(--muted); font-size: 0.75rem; }

/* --------------------------------------------------------------------------
   Screenshot gallery + lightbox
   -------------------------------------------------------------------------- */
.review-gallery { margin: 34px 0; }
.shot-grid { list-style: none; margin: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.shot-item figure { margin: 0; border: 1px solid var(--rule); background: var(--altA); }
.shot-link { display: block; position: relative; background: var(--altA); }
.shot-link img { width: 100%; height: clamp(150px, 30vw, 200px); object-fit: contain; background: var(--altA); }
.shot-link::after {
  content: '+'; position: absolute; right: 6px; bottom: 6px; width: 26px; height: 26px;
  display: grid; place-items: center; border: 1px solid var(--rule); background: var(--paper);
  color: var(--link); font-size: 15px; font-weight: bold; opacity: 0;
}
.shot-link:hover::after, .shot-link:focus-visible::after { opacity: 1; }
.shot-item figcaption { padding: 8px 10px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 0.8rem; }
.shot-credit { display: block; margin-top: 3px; color: var(--muted); font-size: 0.72rem; font-style: italic; }

/* Lightbox. Created by public/js/reviews.js; without JavaScript the thumbnails above are plain
   links to the full image, which is a perfectly good fallback. The one dark surface on this
   whole page: a modal image viewer needs a scrim to read against any photo, in any era. */
.lightbox { position: fixed; inset: 0; z-index: 100; display: flex; flex-direction: column; background: rgba(0, 0, 0, .82); }
.lightbox[hidden] { display: none; }
.lightbox-stage { flex: 1; display: grid; place-items: center; min-height: 0; padding: 12px; position: relative; }
.lightbox-stage img { max-width: 100%; max-height: 100%; width: auto; height: auto; object-fit: contain; background: var(--paper); border: 1px solid var(--rule); }
.lightbox-bar { display: flex; align-items: center; gap: 10px; padding: 8px 12px; border-bottom: 1px solid var(--rule); background: var(--paper); }
.lightbox-count { color: var(--muted); font-size: 0.85rem; margin-right: auto; }
.lightbox-caption { padding: 10px 14px 16px; color: var(--muted); font-size: 0.85rem; text-align: center; border-top: 1px solid var(--rule); background: var(--paper); }
.lightbox-caption .shot-credit { text-align: center; }
.lightbox button {
  display: grid; place-items: center; width: 40px; height: 40px; cursor: pointer;
  color: var(--link); background: var(--paper); border: 1px solid var(--rule); font-size: 18px; line-height: 1;
}
.lightbox button:hover { background: var(--band); border-color: var(--link); }
.lightbox button[disabled] { opacity: .35; cursor: default; }
.lightbox .lb-prev, .lightbox .lb-next { position: absolute; top: 50%; transform: translateY(-50%); }
.lightbox .lb-prev { left: 10px; }
.lightbox .lb-next { right: 10px; }

/* --------------------------------------------------------------------------
   Game information
   -------------------------------------------------------------------------- */
.game-info { margin: 34px 0; padding: 4px 0 0; }
.game-info dl { display: grid; gap: 0; border: 1px solid var(--rule); background: var(--paper); }
.info-row { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 10px; padding: 9px 14px; border-bottom: 1px solid var(--rule); }
.info-row:nth-child(even) { background: var(--altA); }
.info-row:last-child { border-bottom: 0; }
.info-row dt { color: var(--muted); font-size: 0.8rem; }
.info-row dd { color: var(--ink); font-size: 0.9rem; }
.info-row a.ext::after { content: ' \2197'; color: var(--link); font-size: 0.75rem; }
.info-note { margin-top: 8px; color: var(--muted); font-size: 0.8rem; }
.info-also { display: block; margin-top: 3px; color: var(--muted); font-size: 0.8rem; }
.info-also a { color: var(--link); }

/* --------------------------------------------------------------------------
   Related
   -------------------------------------------------------------------------- */
.review-related { margin: 40px 0 0; }
.related-cols { display: grid; gap: 14px; }
.related-cols h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); margin-bottom: 6px; }
.related-list { list-style: none; margin: 0; display: grid; gap: 0; border: 1px solid var(--rule); }
.related-list li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; padding: 8px 10px; }
.related-list li:nth-child(odd) { background: var(--altA); }
.related-list li:nth-child(even) { background: var(--altB); }
.related-list a { flex: 1 1 auto; color: var(--link); }
.related-score { color: var(--ink); font-weight: bold; font-size: 0.85rem; }
.related-empty { color: var(--muted); font-size: 0.9rem; }
.related-more { margin: 8px 0 0; font-size: 0.9rem; }
.related-more a { color: var(--link); font-weight: bold; }
.related-all { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }

/* --------------------------------------------------------------------------
   The section: hub navigation, browse tiles, charts, A-Z
   -------------------------------------------------------------------------- */
.section-nav {
  display: grid; gap: 8px; margin: 0 0 22px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}
.section-nav a {
  display: flex; flex-direction: column; gap: 2px; padding: 10px 14px;
  border: 1px solid var(--rule); background: var(--band); text-decoration: none;
}
.section-nav a:hover { background: var(--feature); }
.sn-name { color: var(--link); font-weight: bold; font-size: 1rem; }
.sn-sub { color: var(--muted); font-size: 0.8rem; }

.browse-block { margin: 0 0 26px; }
.browse-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.browse-head h2 { font-size: 1.2rem; color: var(--ink); }
.browse-more { color: var(--link); font-size: 0.85rem; font-weight: bold; white-space: nowrap; }
.browse-blurb { color: var(--muted); font-size: 0.85rem; margin: 4px 0 0; }
.browse-tiles { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; padding: 0; list-style: none; }
.browse-tiles a {
  display: inline-flex; align-items: center; gap: 6px; padding: 6px 11px; min-height: 40px;
  border: 1px solid var(--rule); background: var(--paper); color: var(--link); font-size: 0.9rem; text-decoration: none;
}
.browse-tiles a:hover { background: var(--band); }
.tile-name { font-weight: bold; }
.tile-count { color: var(--muted); font-size: 0.75rem; }

/* ---------- charts ---------- */
.chart-band { margin: 0 0 28px; }
.chart-band h2 { font-size: 1.3rem; color: var(--ink); }
.band-range { display: inline-block; margin-left: 4px; background: var(--band); border: 1px solid var(--rule); color: var(--link); font-weight: bold; padding: 1px 8px; font-size: 0.85rem; }
.chart-list { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: chart; }
.chart-list li { display: grid; align-items: center; gap: 2px 12px; padding: 9px 8px; grid-template-columns: 1fr auto; }
.chart-list li:nth-child(odd) { background: var(--altA); }
.chart-list li:nth-child(even) { background: var(--altB); }
.chart-title { color: var(--link); font-weight: bold; font-size: 0.95rem; }
.chart-title:hover { color: var(--visited); }
.chart-meta { grid-column: 1; color: var(--muted); font-size: 0.78rem; }
.chart-score { grid-column: 2; grid-row: 1 / span 2; display: flex; align-items: center; gap: 8px; white-space: nowrap; }
.chart-score strong { color: var(--link); font-size: 0.95rem; }
.chart-all { margin: 12px 0 0; }
.chart-genres { margin: 34px 0 0; }
.chart-genres > h2 { font-size: 1.3rem; color: var(--ink); margin-bottom: 4px; }
.chart-mini-grid { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.chart-mini { padding: 12px 14px; border: 1px solid var(--rule); background: var(--paper); }
.chart-mini h3 { font-size: 1rem; }
.chart-mini h3 a { color: var(--link); }
.chart-mini .chart-list li { padding: 6px 8px; }
.chart-mini .chart-title { font-size: 0.9rem; font-weight: bold; }
.chart-mini .chart-meta { display: none; }

/* ---------- A-Z index ---------- */
.az-jump {
  display: flex; flex-wrap: wrap; gap: 4px; margin: 0 0 22px; padding: 10px;
  border: 1px solid var(--rule); background: var(--paper);
  position: sticky; top: 0; z-index: 2;
}
.az-jump a {
  min-width: 32px; padding: 5px 6px; text-align: center; border: 1px solid var(--rule);
  color: var(--link); font-weight: bold; font-size: 0.9rem; text-decoration: none;
}
.az-jump a:hover { background: var(--band); }
.az-group { margin: 0 0 22px; scroll-margin-top: 80px; }
.az-group h2 { font-size: 1.4rem; color: var(--ink); border-bottom: 1px solid var(--rule); padding-bottom: 5px; }
.az-list { margin: 10px 0 0; padding: 0; list-style: none; columns: 240px 3; column-gap: 22px; }
.az-list li { break-inside: avoid; padding: 4px 0; font-size: 0.9rem; }
.az-list a { color: var(--link); }
.az-score { color: var(--muted); font-size: 0.78rem; }

/* --------------------------------------------------------------------------
   Wider screens
   -------------------------------------------------------------------------- */
@media (min-width: 620px) {
  .qv-cols { grid-template-columns: 1fr 1fr; }
  .pros-cons-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 760px) {
  .review-featured { grid-template-columns: 1.05fr 1fr; }
  .review-featured-art { aspect-ratio: 16 / 9; align-self: center; border-bottom: 0; border-right: 1px solid var(--rule); }
  .review-featured-art img { max-height: 100%; }
  .review-controls { grid-template-columns: minmax(230px, 1fr) 2.4fr; align-items: end; }
  .review-controls .review-count { grid-column: 1 / -1; margin: 0; }
  .related-cols { grid-template-columns: repeat(3, 1fr); }
  .review-head { grid-template-columns: minmax(0, 1fr); }
}
@media (min-width: 900px) {
  .lightbox-stage { padding: 20px 70px; }
}

@media (prefers-reduced-motion: reduce) {
  .review-card, .shot-link::after { transition: none; }
}

/* ==========================================================================
   2026 redesign overrides
   ==========================================================================
   Everything above is the stylesheet inherited from Wanderer with the 1,941
   review pages. It is left intact — the markup it targets comes out of a
   1,079-line reviews.js that is not being refactored — and the token aliases in
   leetdom-archive.css already repoint its colours at the new palette.

   This section only restyles the surfaces a reader actually judges the site by:
   the reviews index hero, the cards, the article header, and the verdict block.
   Ordered last so it wins on equal specificity; where a rule below is more
   specific than it "should" be, that is to beat an earlier rule, not by accident.
   ========================================================================== */

/* ------------------------------------------------------------------- hero -- */
/* The index hero sat on --band as a flat grey slab. On the blue ground it can be
   the blue ground: dark card, white type, cyan rule. */
.reviews-hero {
  background: var(--bg-rise);
  border: 1px solid var(--bg-line);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--lift-2);
  margin-bottom: 22px;
}
.reviews-hero-copy { padding: 22px 24px; }
.reviews-hero h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -0.025em;
  color: #fff;
  margin: 0 0 8px;
}
.reviews-hero p.lede,
.page .reviews-hero p.lede {
  color: #b9d5ec;
  font-size: 16px;
  max-width: 66ch;
  margin-top: 0;
}
.review-eyebrow {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 6px;
}
.reviews-hero-sm .reviews-hero-copy { padding: 16px 20px; }
.reviews-hero-sm h1 { font-size: clamp(21px, 2.6vw, 27px); }

/* --------------------------------------------------------------- the cards -- */
.review-grid { grid-template-columns: repeat(auto-fill, minmax(268px, 1fr)); gap: 16px; }

.review-card {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--lift-1);
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}
.review-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--lift-2);
  border-color: #b6e2fb;
}
/* 16:9 rather than a fixed 160px: review art is screenshots, and a consistent
   ratio is what makes a grid of them read as a designed set. */
.review-card .media img {
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.review-card h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 17px;
  line-height: 1.25;
  letter-spacing: -0.015em;
  margin: 0;
}
.review-card h3 a { color: var(--ink); text-decoration: none; }
.review-card h3 a:visited { color: var(--ink); }
.review-card:hover h3 a { color: var(--steel-dk); }
.review-card .summary { color: var(--ink-2); font-size: 14px; line-height: 1.5; }
.review-card .card-meta { color: var(--ink-3); font-size: 12px; }

/* The score badge — the one place gold is right, and the strongest single mark
   on a card, so it gets the display face and tabular figures. */
.score-num strong {
  font-family: var(--font-display);
  font-weight: 800;
  font-variant-numeric: tabular-nums;
  color: #fff;
  background: var(--steel-dk);
  border-radius: 3px;
  padding: 2px 9px;
  letter-spacing: -0.01em;
}
.score-lg .score-num strong { padding: 4px 14px; }
.stars-fill { color: var(--gold); }

/* ------------------------------------------------------------ the article -- */
article.review { max-width: 880px; }

.review-head-copy h1 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: clamp(28px, 4.4vw, 46px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--ink);
}
.review-head-art {
  border-radius: var(--radius);
  border-color: var(--rule);
  box-shadow: var(--lift-1);
}
.review-byline { color: var(--ink-3); font-size: 13px; }
.review-byline .upd { color: var(--ink-2); }

.review-facts { border-color: var(--rule); }
.review-facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--ink-3);
}

/* The verdict block is the most-read part of a review after the headline. */
.quick-verdict {
  background: var(--feature);
  border: 1px solid #b6e2fb;
  border-left: 3px solid var(--cyan);
  border-radius: var(--radius);
  padding: 18px 20px;
}
.quick-verdict h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-dk);
}
.verdict-lead { font-size: 17px; line-height: 1.6; color: #22384c; }
.qv-cols { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.qv-col h3 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: .09em;
  color: var(--steel-dk);
}

/* Pros and cons: green and red, not blue and purple. */
.pros-cons-grid { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.pros-cons-grid > div { border-radius: var(--radius); }
.pros-cons-grid .pros { border-left: 3px solid var(--good); }
.pros-cons-grid .cons { border-left: 3px solid var(--bad); }
.pros-cons-grid .pros h3 { color: var(--good); }
.pros-cons-grid .cons h3 { color: var(--bad); }
.pros-cons-grid .pros li::before { color: var(--good); }
.pros-cons-grid .cons li::before { color: var(--bad); }
.pros-cons h2, .cat-ratings h2, .review-gallery h2, .game-info h2, .review-related h2 {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--steel-dk);
}

/* Category bars. */
.cat-bar { border-radius: 999px; background: var(--paper-3); height: 8px; }
.cat-bar > span { background: linear-gradient(90deg, var(--steel-dk), var(--cyan)); }
.cat-score { color: var(--steel-dk); font-variant-numeric: tabular-nums; }

.review-toc { border-radius: var(--radius); background: var(--paper-2); }
.review-toc h2 { font-family: var(--font-display); letter-spacing: .1em; }

.shot-item figure, .review-gallery .shot-link { border-radius: var(--radius); overflow: hidden; }
.game-info dl, .related-list { border-radius: var(--radius); overflow: hidden; }

/* --------------------------------------------------------- section-nav etc -- */
.section-nav a {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  transition: border-color .14s ease, transform .14s ease;
}
.section-nav a:hover { background: var(--paper); border-color: var(--cyan); transform: translateY(-1px); }
.sn-name { font-family: var(--font-display); color: var(--ink); }
.sn-sub { color: var(--ink-2); }

.browse-head h2 {
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
  color: #fff;
}
.browse-blurb { color: #9fc0dc; }
.browse-more { color: var(--cyan-lt); }
.browse-tiles a {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: 3px;
  color: var(--ink);
  text-decoration: none;
}
.browse-tiles a:hover { background: var(--cyan); border-color: var(--cyan); color: #04202f; }

/* The review controls sit on the blue, so they need to be a card to stay legible. */
.review-controls {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  padding: 14px 16px;
  box-shadow: var(--lift-1);
}
.review-search input, .review-filters select {
  font: inherit;
  font-size: 14px;
  border: 1px solid var(--rule);
  border-radius: 3px;
  padding: 8px 10px;
  background: var(--paper);
  color: var(--ink);
}
.review-search label, .review-filters label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.review-count { color: #9fc0dc; }

.review-invite {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius);
  padding: 16px 18px;
}
.review-invite h2 { font-family: var(--font-display); font-size: 18px; }

.crumbs li { color: #9fc0dc; }
.crumbs a { color: #d6e9f8; }
.crumbs li[aria-current] { color: #fff; }
.crumbs li + li::before { color: #4d7ba1; }

@media (max-width: 720px) {
  .reviews-hero-copy { padding: 16px 16px; }
  .review-grid { grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
  .review-head-copy h1 { font-size: clamp(24px, 7vw, 32px); }
  .quick-verdict { padding: 14px 15px; }
}

/* --------------------------------------------------- the article as a sheet --
   THE BUG THIS FIXES: article.review is not inside a .panel — it renders straight
   onto the page. That was harmless when the page was cream, but the page is now
   the deep blue field, and every colour reviews.css sets above (--ink headlines,
   --ink dd values, --muted dt labels) is a dark colour chosen for a light ground.
   The result was a black headline on navy: technically present, practically
   invisible.

   Rather than restate a light-on-dark colour for each of those rules, the article
   gets the surface they were written for. That is also the most faithful thing to
   do: a white content box floating on the blue is exactly what leetest.com was. */
article.review {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-top: 2px solid var(--cyan);
  border-radius: var(--radius);
  box-shadow: var(--lift-2);
  padding: clamp(20px, 3.5vw, 44px);
  margin-bottom: 26px;
}
/* The head art is edge-to-edge inside the sheet rather than inset — it reads as a
   hero rather than as a picture someone pasted in. */
article.review .review-head-art {
  margin: calc(clamp(20px, 3.5vw, 44px) * -1) calc(clamp(20px, 3.5vw, 44px) * -1) 0;
  border: 0;
  border-bottom: 1px solid var(--rule);
  border-radius: var(--radius) var(--radius) 0 0;
  box-shadow: none;
}
article.review .review-head-art img { max-height: 420px; object-fit: cover; width: 100%; }

/* Sections that follow the article (gallery, info, related) sit outside the sheet
   in the markup, so they need their own surface for the same reason. */
.review-gallery, .game-info, .review-related, .pros-cons, .cat-ratings {
  background: var(--paper);
  border: 1px solid var(--rule);
  border-radius: var(--radius);
  box-shadow: var(--lift-1);
  padding: clamp(16px, 2.4vw, 26px);
  margin: 0 0 18px;
  max-width: 880px;
  margin-inline: auto;
}
/* Those blocks were written as spacers inside a light page; as cards they must not
   also carry their old outer margins. */
.pros-cons, .cat-ratings { margin-top: 0; }

.review-toc { background: var(--paper-2); border-color: var(--rule); }

/* --------------------------------------------------------- the facts table --
   Each fact is `<div><dt>Label</dt><dd>Value</dd></div>`, so the DIVS are the grid
   items — not the dt/dd. (Styling grid-column on the dt/dd does nothing at all,
   which is worth stating because it looks like it should work.)

   The inherited rule flowed those divs into auto-fit 140px columns. That works
   while every value is one or two words, and it is not: "Monetisation" and
   "Players" carry whole sentences, so a sentence landed in a 140px column as a
   tall one-word-per-line ladder beside four short ones.

   A single column of label|value rows handles both lengths, reads as the spec
   block it is, and stays scannable with a hairline between rows. */
.review-facts {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  padding-top: 6px;
  border-top: 1px solid var(--rule);
}
.review-facts > div {
  display: grid;
  grid-template-columns: 148px minmax(0, 1fr);
  gap: 4px 18px;
  align-items: baseline;
  padding: 9px 0;
  border-bottom: 1px solid var(--rule-2);
}
.review-facts > div:last-child { border-bottom: 0; }
.review-facts dt {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--ink-3);
  margin: 0;
}
.review-facts dd {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--ink);
  max-width: 62ch;
}
@media (max-width: 560px) {
  /* A 148px label column is a third of a phone screen; stack instead. */
  .review-facts > div { grid-template-columns: minmax(0, 1fr); gap: 1px; }
}
