/* =============================================================================
   native-catalog.css — the catalog inside Pixwell (egamers.io). Project 8.

   Scoped to .cg-native; NEVER a body/html rule (that is what cryptogames.css
   does, and why it is not loaded here). Tokens are defined for the light theme
   and redefined under [data-theme="dark"], the attribute Pixwell's header
   toggle flips on <body>. Typography is inherited from the theme (Poppins body,
   Quicksand headings) — nothing here names a font.
   ============================================================================= */

.cg-native {
	--cg-bg: #ffffff;
	--cg-surface: #f4f4f4;
	--cg-surface-2: #e9e9e9;
	--cg-text: #191919;
	--cg-muted: #6b6b6b;
	--cg-line: #e2e2e2;
	--cg-accent: #ff570a;
	--cg-accent-text: #ffffff;
	--cg-secondary: #568fce;
	--cg-live: #2e9e5b;
	--cg-beta: #d98a1a;
	--cg-upcoming: #568fce;
	--cg-radius: 10px;
	color: var(--cg-text);
}
[data-theme="dark"] .cg-native {
	--cg-bg: #191919;
	--cg-surface: #333333;
	--cg-surface-2: #3f3f3f;
	--cg-text: #ffffff;
	--cg-muted: #b5b5b5;
	--cg-line: #444444;
	--cg-accent: #ff570a;
	--cg-accent-text: #ffffff;
	--cg-secondary: #7fb0e6;
	--cg-live: #4cc47a;
	--cg-beta: #f0a640;
	--cg-upcoming: #7fb0e6;
}

.cg-native .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.cg-native .material-symbols-outlined { font-size: 20px; line-height: 1; vertical-align: -4px; }
/* The main column only (both templates print <main class="site-main rbc-content">):
   Templates::render_sidebar() sits inside .cg-native too, and Pixwell's widgets keep
   their own link colours. */
.cg-native .rbc-content a { color: inherit; }
.cg-native .rbc-content a:hover { color: var(--cg-accent); }
.cg-crumbs { font-size: 13px; color: var(--cg-muted); margin: 0 0 12px; }
/* Pixwell's main.rbc-content is a wrapping row flexbox with align-items:flex-start, so
   the list's direct children would shrink to fit (measured: rows at 421px of 773). The
   game page needs nothing — Pixwell's own .single-content-wrap is width:100%. */
.cg-native-list .rbc-content > * { width: 100%; min-width: 0; }

/* ---------- list head ---------- */
.cg-list-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin: 0 0 20px; }
.cg-list-title { font-size: 40px; line-height: 1.15; margin: 0; }
.cg-list-sub { margin: 4px 0 0; color: var(--cg-muted); font-size: 14px; }
.cg-list-search { display: flex; border: 1px solid var(--cg-line); border-radius: 999px; overflow: hidden; background: var(--cg-surface); }
.cg-list-search input { border: 0; background: transparent; color: inherit; padding: 10px 16px; min-width: 220px; font: inherit; }
.cg-list-search input:focus { outline: none; }
.cg-list-search button { border: 0; background: var(--cg-accent); color: var(--cg-accent-text); padding: 0 14px; cursor: pointer; }

/* ---------- filter bar ---------- */
.cg-filter-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding: 12px 0; border-top: 1px solid var(--cg-line); border-bottom: 1px solid var(--cg-line); margin: 0 0 16px; }
.cg-filters-toggle { display: none; }
.cg-filters { display: flex; flex-wrap: wrap; gap: 8px; flex: 1 1 auto; }
.cg-dd { position: relative; }
.cg-dd > summary { list-style: none; cursor: pointer; padding: 8px 14px; border: 1px solid var(--cg-line); border-radius: 999px; background: var(--cg-surface); font-size: 14px; font-weight: 600; user-select: none; }
.cg-dd > summary::-webkit-details-marker { display: none; }
.cg-dd > summary::after { content: " ▾"; color: var(--cg-muted); }
.cg-dd[open] > summary { border-color: var(--cg-accent); }
.cg-dd-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; min-width: 240px; max-height: 340px; overflow: auto; margin: 0; padding: 6px; list-style: none; background: var(--cg-bg); border: 1px solid var(--cg-line); border-radius: var(--cg-radius); box-shadow: 0 12px 32px rgba(0,0,0,.18); }
.cg-dd-list li { margin: 0; }
.cg-dd-opt { display: flex; justify-content: space-between; gap: 12px; padding: 8px 10px; border-radius: 6px; font-size: 14px; text-decoration: none; }
.cg-dd-opt:hover, .cg-dd-opt.is-active { background: var(--cg-surface); color: var(--cg-accent); }
.cg-dd-n { color: var(--cg-muted); font-size: 12px; }
.cg-sort { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 14px; }
.cg-sort select { font: inherit; font-size: 14px; padding: 7px 10px; border: 1px solid var(--cg-line); border-radius: 8px; background: var(--cg-surface); color: inherit; }

/* ---------- chips ---------- */
.cg-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.cg-chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--cg-secondary); color: #fff; font-size: 13px; text-decoration: none; }
.cg-chip:hover { color: #fff; background: var(--cg-accent); }
.cg-chip-clear { background: transparent; color: var(--cg-muted); border: 1px solid var(--cg-line); }

/* ---------- featured ---------- */
.cg-featured { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin: 0 0 24px; }
.cg-feat { position: relative; background: var(--cg-surface); border-radius: var(--cg-radius); overflow: hidden; }
.cg-feat-link { display: block; text-decoration: none; }
.cg-feat .cg-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; }
.cg-feat .cg-pos { position: absolute; top: 10px; left: 10px; }
.cg-feat-title { font-size: 18px; margin: 12px 14px 4px; }
.cg-feat .cg-row-meta { margin: 0 14px 14px; }

/* ---------- rows ---------- */
.cg-rows { list-style: none; margin: 0; padding: 0; }
.cg-row { display: grid; grid-template-columns: auto 160px 1fr; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--cg-line); }
/* ListView::rows() omits .cg-pos on every unranked view (a second filter, a search,
   a chosen sort), so the cover and the body are pinned to their columns rather than
   auto-placed — otherwise the cover slid into the rank column and the body into
   the 160px one. Where there is no rank the cover spans the empty first column
   too, so the row starts flush left; browsers without :has() keep a 14px indent. */
.cg-row-cover { grid-column: 2; }
.cg-row:not(:has(> .cg-pos)) .cg-row-cover { grid-column: 1 / 3; }
.cg-row-cover .cg-cover { display: block; width: 160px; height: 90px; object-fit: cover; border-radius: 8px; }
.cg-row-body { grid-column: 3; min-width: 0; }
.cg-cover-empty { display: block; background: var(--cg-surface-2); border-radius: 8px; width: 160px; height: 90px; }
.cg-row-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.cg-row-title { font-size: 18px; margin: 0; }
.cg-row-title a { text-decoration: none; }
.cg-row-excerpt { margin: 4px 0 6px; color: var(--cg-muted); font-size: 14px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cg-row-meta { margin: 0; font-size: 13px; color: var(--cg-muted); display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.cg-row-meta a { text-decoration: none; }
.cg-dot { opacity: .5; }
.cg-pos { display: inline-block; min-width: 34px; text-align: center; padding: 3px 6px; border-radius: 6px; background: var(--cg-accent); color: var(--cg-accent-text); font-weight: 700; font-size: 13px; }
.cg-status { padding: 2px 8px; border-radius: 999px; font-size: 12px; font-weight: 600; color: #fff; }
.cg-status-live { background: var(--cg-live); }
.cg-status-beta { background: var(--cg-beta); }
.cg-status-upcoming { background: var(--cg-upcoming); }
.cg-rating { white-space: nowrap; font-weight: 700; color: var(--cg-beta); font-size: 14px; }
.cg-empty, .cg-sorted-note { padding: 24px 0; color: var(--cg-muted); }

/* ---------- pagination ---------- */
.cg-pagination { margin: 24px 0 0; }
.cg-pagination .page-numbers { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; list-style: none; margin: 0; padding: 0; }
.cg-pagination .page-numbers li { margin: 0; }
.cg-pagination a.page-numbers, .cg-pagination span.page-numbers { display: inline-block; padding: 6px 12px; border: 1px solid var(--cg-line); border-radius: 8px; text-decoration: none; font-size: 14px; }
.cg-pagination span.current { background: var(--cg-accent); color: var(--cg-accent-text); border-color: var(--cg-accent); }
.cg-pagination .cg-pagination-jump { justify-content: center; }
.cg-pagination .cg-pagination-jump a, .cg-pagination .cg-pagination-jump span { color: inherit !important; border-color: var(--cg-line) !important; }

/* ---------- sidebar widgets ---------- */
.cg-w-terms { list-style: none; margin: 0; padding: 0; }
.cg-w-terms li { display: flex; justify-content: space-between; padding: 6px 0; border-bottom: 1px solid var(--cg-line); font-size: 14px; }
.cg-w-terms a { text-decoration: none; }
.cg-w-n { color: var(--cg-muted); font-size: 12px; }

/* ---------- game page ---------- */
.cg-game-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin: 0 0 16px; }
.cg-game-head .cg-icon { width: 72px; height: 72px; border-radius: 16px; object-fit: cover; }
.cg-game-head h1 { margin: 0; font-size: 40px; line-height: 1.1; }
.cg-game-head-text { flex: 1 1 320px; }
.cg-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 0; }
.cg-pill { padding: 3px 10px; border-radius: 999px; background: var(--cg-surface); font-size: 13px; text-decoration: none; }
.cg-game-cta { display: flex; align-items: center; gap: 12px; }
.cg-play { display: inline-flex; align-items: center; gap: 6px; padding: 12px 22px; border-radius: 999px; background: var(--cg-accent); color: var(--cg-accent-text) !important; font-weight: 700; text-decoration: none; }
.cg-socials { display: flex; gap: 6px; }
.cg-socials a { width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; background: var(--cg-surface); }
.cg-notice { margin: 12px 0 0; padding: 14px 18px; border-radius: var(--cg-radius); background: var(--cg-surface); font-size: 14px; }
.cg-notice p { margin: 0; }
.cg-notice-dead { border-left: 4px solid var(--cg-accent); }
.cg-notice-upcoming { border-left: 4px solid var(--cg-upcoming); }
.cg-hero-cover { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: var(--cg-radius); margin: 0 0 10px; }
.cg-hero-cover--logo { object-fit: contain; background: var(--cg-surface); padding: 24px; }
.cg-gallery { display: flex; gap: 8px; overflow-x: auto; padding: 0 0 8px; margin: 0 0 24px; scroll-snap-type: x mandatory; }
.cg-gallery-item { flex: 0 0 160px; border: 0; padding: 0; background: none; cursor: pointer; scroll-snap-align: start; position: relative; }
.cg-gallery-item img { width: 160px; height: 90px; object-fit: cover; border-radius: 8px; display: block; }
.cg-gallery-item .material-symbols-outlined { position: absolute; inset: 0; margin: auto; width: 32px; height: 32px; font-size: 32px; color: #fff; text-shadow: 0 0 8px rgba(0,0,0,.6); }
.cg-lightbox { border: 0; padding: 0; background: transparent; max-width: min(96vw, 1200px); }
.cg-lightbox::backdrop { background: rgba(0,0,0,.85); }
.cg-lightbox img, .cg-lightbox iframe { display: block; width: 100%; max-height: 85vh; object-fit: contain; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.cg-lightbox-close { position: absolute; top: -40px; right: 0; border: 0; background: transparent; color: #fff; font-size: 32px; cursor: pointer; }
.cg-lightbox-slot { display: flex; align-items: center; justify-content: center; }
.cg-lightbox-slot img, .cg-lightbox-slot iframe { display: block; width: 100%; max-height: 85vh; object-fit: contain; aspect-ratio: 16 / 9; border-radius: 8px; background: #000; }
.cg-facts { display: grid; grid-template-columns: 1fr 1fr; gap: 0 24px; padding: 16px 20px; margin: 0 0 24px; background: var(--cg-surface); border-radius: var(--cg-radius); }
.cg-facts-row { display: flex; justify-content: space-between; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cg-line); font-size: 14px; }
.cg-facts-row dt { color: var(--cg-muted); margin: 0; }
.cg-facts-row dd { margin: 0; text-align: right; }
.cg-facts-compact { grid-template-columns: 1fr; padding: 12px 14px; }
.cg-about { margin: 0 0 24px; }
.cg-proscons { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 0 0 24px; }
.cg-pros, .cg-cons { padding: 16px 20px; border-radius: var(--cg-radius); background: var(--cg-surface); }
.cg-pros h3, .cg-cons h3 { margin: 0 0 8px; font-size: 16px; }
.cg-pros ul, .cg-cons ul { margin: 0; padding-left: 18px; font-size: 14px; }
.cg-pros h3 { color: var(--cg-live); }
.cg-cons h3 { color: var(--cg-accent); }
.cg-verdict { margin: 0 0 24px; padding: 18px 22px; border-left: 4px solid var(--cg-accent); background: var(--cg-surface); border-radius: 0 var(--cg-radius) var(--cg-radius) 0; font-size: 17px; line-height: 1.6; }
.cg-verdict cite { display: block; margin-top: 8px; font-size: 13px; color: var(--cg-muted); font-style: normal; }
.cg-section-title { font-size: 22px; margin: 0 0 12px; }
.cg-token { margin: 0 0 24px; padding: 16px 20px; background: var(--cg-surface); border-radius: var(--cg-radius); }
.cg-token-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 12px; }
.cg-token-name { color: var(--cg-muted); font-weight: 400; }
.cg-token-rank { padding: 2px 8px; border-radius: 999px; background: var(--cg-surface-2); font-size: 12px; font-weight: 600; }
.cg-token-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin: 0 0 12px; }
.cg-token-stat b { display: block; font-size: 20px; }
.cg-token-stat span { font-size: 12px; color: var(--cg-muted); }
.cg-delta-pos { color: var(--cg-live); }
.cg-delta-neg { color: var(--cg-accent); }
.cg-news { margin: 0 0 24px; }
.cg-news-list { list-style: none; margin: 0; padding: 0; }
.cg-news-list li { display: flex; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cg-line); }
.cg-news-list img { width: 96px; height: 64px; object-fit: cover; border-radius: 6px; }
.cg-news-list a { text-decoration: none; font-weight: 600; }
.cg-news-list time { display: block; font-size: 12px; color: var(--cg-muted); }
.cg-similar { margin: 0 0 24px; }
.cg-similar-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.cg-similar-card { display: block; background: var(--cg-surface); border-radius: var(--cg-radius); overflow: hidden; text-decoration: none; }
.cg-similar-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.cg-similar-card span { display: block; padding: 8px 10px; font-size: 14px; font-weight: 600; }
.cg-quick-facts .cg-facts { grid-template-columns: 1fr; padding: 12px 14px; }
.cg-top-genre ol { margin: 0; padding-left: 20px; font-size: 14px; }
.cg-top-genre li { padding: 4px 0; }
.cg-top-genre-list { margin: 0; padding-left: 20px; font-size: 14px; }
.cg-top-genre-list li { padding: 4px 0; }
.cg-more-link { display: inline-block; margin: 8px 0 0; font-size: 13px; font-weight: 600; text-decoration: none; }
/* DeviceIcons::cell()'s "+N" overflow marker (modules.css styles it on the takeover). */
.cg-native .cg-more { font-size: 11px; color: var(--cg-muted); padding: 0 2px; }

/* ---------- shared partials (src/tpl/dapp/partials/token-chart.php, reviews.php) ----------
   Their structural classes live in cryptogames.css, which is NOT enqueued here
   (Templates::skips_takeover_css). Layout values copied from there; every
   colour is a token. The chart's inline stroke and gradient are recoloured
   through CSS — a presentation attribute loses to a stylesheet rule. */
.cg-tok-chart { margin: 0 0 24px; padding: 16px 20px; background: var(--cg-surface); border-radius: var(--cg-radius); }
.cg-tok-chart-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin: 0 0 12px; }
.cg-tok-chart-title { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; }
.cg-tok-chart-title .material-symbols-outlined { font-size: 18px; color: var(--cg-accent); }
.cg-tok-chart-range-pct { font-size: 13px; font-weight: 700; margin-left: 6px; }
.cg-tok-chart-ranges { display: inline-flex; gap: 2px; padding: 2px; background: var(--cg-surface-2); border: 1px solid var(--cg-line); border-radius: 6px; }
.cg-tok-chart-range { border: 0; background: transparent; color: var(--cg-muted); font: inherit; font-size: 11px; font-weight: 700; letter-spacing: .06em; padding: 6px 12px; border-radius: 4px; cursor: pointer; }
.cg-tok-chart-range:hover { color: var(--cg-text); }
.cg-tok-chart-range.is-active { background: var(--cg-accent); color: var(--cg-accent-text); }
.cg-tok-chart-canvas { position: relative; height: 200px; width: 100%; border-radius: 8px; overflow: hidden; }
.cg-tok-chart-svg { width: 100%; height: 100%; display: block; }
.cg-tok-chart-svg [data-role="chart-line"] { stroke: var(--cg-accent); }
.cg-tok-chart-svg stop { stop-color: var(--cg-accent); }
.cg-tok-chart-loading, .cg-tok-chart-error { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--cg-muted); background: var(--cg-surface); }
.cg-tok-chart-error { color: var(--cg-accent); }
.cg-tok-chart-foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 11px; font-weight: 600; letter-spacing: .04em; color: var(--cg-muted); }
.cg-tok-chart-foot-min { color: var(--cg-accent); }
.cg-tok-chart-foot-max { color: var(--cg-live); }
.cg-metric-delta-pos { font-size: 14px; font-weight: 700; color: var(--cg-live); }
.cg-metric-delta-neg { font-size: 14px; font-weight: 700; color: var(--cg-accent); }
.cg-dapp-section { margin: 0 0 24px; scroll-margin-top: 130px; }
.cg-dapp-reviews-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 16px; margin: 0 0 16px; }
.cg-section-heading { font-size: 22px; margin: 0 0 12px; }
.cg-section-heading-bar { border-left: 4px solid var(--cg-accent); padding-left: 14px; }
.cg-native .cg-write-review-btn { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border: 0; border-radius: 999px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.cg-native .cg-write-review-btn .material-symbols-outlined { font-size: 18px; }
.cg-native .cg-write-review-btn--empty { width: 100%; justify-content: center; }
.cg-already-reviewed { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 999px; font-size: 13px; color: var(--cg-muted); border: 1px solid var(--cg-line); }
.cg-already-reviewed .material-symbols-outlined { font-size: 16px; color: var(--cg-live); }
.cg-reviews-summary { display: grid; grid-template-columns: minmax(240px, 300px) 1fr; gap: 16px; margin: 0 0 20px; }
.cg-native .cg-review-score-card, .cg-native .cg-review-categories-card { padding: 22px 24px; }
.cg-score-row { display: flex; align-items: baseline; gap: 8px; }
.cg-native .cg-score-display { font-size: 64px; font-weight: 800; line-height: 1; letter-spacing: -.04em; }
.cg-score-suffix { font-size: 20px; font-weight: 600; color: var(--cg-muted); }
.cg-score-label { margin-top: 4px; font-size: 14px; color: var(--cg-muted); }
.cg-native .cg-reviews-score-block--empty .cg-score-display { font-size: 44px; opacity: .55; }
.cg-reviews-score-block--empty .cg-score-label { font-size: 15px; font-weight: 600; color: var(--cg-text); margin-top: 8px; }
.cg-reviews-count { margin: 8px 0 0; font-size: 14px; color: var(--cg-muted); }
.cg-reviews-empty-ask { margin: 10px 0 16px; font-size: 13px; line-height: 1.5; color: var(--cg-muted); }
.cg-rating-bar-wrap { margin-top: 20px; }
.cg-rating-bar-row { display: flex; justify-content: space-between; margin-bottom: 4px; }
.cg-rating-bar-label { font-size: 12px; font-weight: 700; text-transform: uppercase; color: var(--cg-muted); }
.cg-rating-bar-track { height: 6px; margin: 4px 0; border-radius: 999px; overflow: hidden; background: var(--cg-surface-2); }
.cg-rating-bar-fill { height: 100%; border-radius: 999px; }
.cg-rev-cat-title { margin: 0 0 16px; font-size: 16px; }
.cg-rev-cat-list { display: flex; flex-direction: column; gap: 14px; }
.cg-rev-cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 6px; }
.cg-rev-cat-name { font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.cg-rev-cat-pct { font-size: 14px; font-weight: 700; color: var(--cg-accent); }
.cg-rev-cat-meta { margin-top: 4px; font-size: 11px; color: var(--cg-muted); }
.cg-no-data { margin: 0; font-size: 14px; color: var(--cg-muted); }
.cg-reviews-list-v2 { display: flex; flex-direction: column; gap: 14px; }
.cg-native .cg-no-reviews-block { display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 32px; border: 1px dashed var(--cg-line) !important; }
.cg-no-reviews-block .material-symbols-outlined { font-size: 38px; color: var(--cg-muted); }
.cg-no-reviews { margin: 0; font-size: 15px; color: var(--cg-muted); }
.cg-native .cg-review-item { padding: 20px 22px; }
.cg-review-item-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-bottom: 12px; }
.cg-review-author { display: flex; align-items: center; gap: 12px; }
.cg-review-avatar { display: flex; align-items: center; justify-content: center; flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; background: var(--cg-accent); color: var(--cg-accent-text); font-size: 18px; font-weight: 800; }
.cg-review-author-name { font-size: 15px; font-weight: 700; }
.cg-review-author-date { margin-top: 2px; font-size: 11px; color: var(--cg-muted); }
.cg-review-score-pill { display: inline-flex; align-items: baseline; gap: 4px; flex-shrink: 0; padding: 6px 14px; border-radius: 999px; background: var(--cg-surface-2); }
.cg-native .cg-review-score-num { font-size: 22px; font-weight: 800; line-height: 1; }
.cg-review-score-denom { font-size: 12px; color: var(--cg-muted); }
.cg-review-text { margin: 0 0 12px; font-size: 15px; line-height: 1.65; white-space: pre-wrap; }
.cg-review-cats { display: flex; flex-wrap: wrap; gap: 6px; padding-top: 12px; border-top: 1px solid var(--cg-line); }
.cg-review-cat-chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--cg-line); font-size: 11px; font-weight: 600; }
.cg-review-cat-chip-label { text-transform: uppercase; letter-spacing: .06em; color: var(--cg-muted); }
.cg-review-cat-chip-val { font-weight: 700; }
.cg-review-cat-tone-pos .cg-review-cat-chip-val { color: var(--cg-live); }
.cg-review-cat-tone-neg .cg-review-cat-chip-val { color: var(--cg-accent); }
.cg-review-cat-tone-neu .cg-review-cat-chip-val { color: var(--cg-secondary); }

/* ---------- review wizard skin (review-*-dark.css reused, recoloured) ---------- */
.cg-native .cg-review-score-card, .cg-native .cg-review-categories-card, .cg-native .cg-review-item, .cg-native .cg-no-reviews-block { background: var(--cg-surface) !important; color: var(--cg-text) !important; border-color: var(--cg-line) !important; border-radius: var(--cg-radius); }
.cg-native .cg-write-review-btn, .cg-native .review-wizard-btn-primary { background: var(--cg-accent) !important; color: var(--cg-accent-text) !important; border-color: var(--cg-accent) !important; }
.cg-native .cg-rating-bar-fill { background: var(--cg-accent) !important; }
/* After the skin rule above: its border-color shorthand would otherwise repaint this side too. */
.cg-native .cg-review-item { border-left: 3px solid var(--cg-accent) !important; }
.cg-native .cg-score-display, .cg-native .cg-review-score-num { color: var(--cg-text) !important; }
.review-wizard-modal .review-wizard-modal-content { background: var(--cg-surface, #333) !important; color: var(--cg-text, #fff) !important; }

/* ---------- responsive ---------- */
@media (max-width: 1023px) {
	.cg-featured { grid-template-columns: 1fr 1fr; }
	.cg-similar-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
	.cg-list-title, .cg-game-head h1 { font-size: 30px; }
	.cg-list-search input { min-width: 0; width: 100%; }
	.cg-list-search { width: 100%; }
	.cg-filters-toggle { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border: 1px solid var(--cg-line); border-radius: 999px; background: var(--cg-surface); color: inherit; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
	.cg-filters { display: none; position: fixed; inset: auto 0 0 0; z-index: 90; flex-direction: column; gap: 6px; padding: 16px; background: var(--cg-bg); border-radius: 16px 16px 0 0; box-shadow: 0 -8px 32px rgba(0,0,0,.35); max-height: 80vh; overflow: auto; }
	.cg-filters.is-open { display: flex; }
	.cg-dd-list { position: static; box-shadow: none; border: 0; max-height: none; }
	.cg-featured { grid-template-columns: 1fr; }
	.cg-row { grid-template-columns: 1fr; }
	.cg-row > .cg-pos, .cg-row-cover, .cg-row-body { grid-column: 1; }
	/* Own rule: a browser without :has() drops the whole selector list it sits in. */
	.cg-row:not(:has(> .cg-pos)) .cg-row-cover { grid-column: 1; }
	.cg-row-cover .cg-cover, .cg-cover-empty { width: 100%; height: auto; aspect-ratio: 16 / 9; }
	.cg-facts, .cg-proscons, .cg-reviews-summary { grid-template-columns: 1fr; }
	.cg-similar-grid { grid-template-columns: 1fr; }
}
