/* ==========================================================================
   xGamerss 2026 design — tokens, layout, components
   ========================================================================== */
:root {
  --xg-bg: #0F1311;
  --xg-bg-deep: #0B0E0C;
  --xg-surface: #171C19;
  --xg-surface-2: #131815;
  --xg-line: #242C27;
  --xg-line-2: #2A332D;
  --xg-text: #EEF2EF;
  --xg-text-2: #C4CDC7;
  --xg-muted: #A3AEA7;
  --xg-accent: #2BD67B;
  --xg-accent-ink: #06140C;
  --xg-accent-deep: #10251A;
  --xg-accent-line: #1D4A31;
  --xg-amber: #F5B400;
  --xg-amber-bg: #16140B;
  --xg-amber-card: #221E0F;
  --xg-amber-line: #3A3313;
  --xg-blue: #7CC4FF;
  --xg-pink: #E9A6FF;
  --xg-teal: #5FE0D2;
  --xg-radius: 14px;
  --xg-wrap: 1240px;
  --xg-display: 'Barlow Condensed', 'Arial Narrow', sans-serif;
  --xg-body: 'Libre Franklin', system-ui, -apple-system, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body.xg {
  margin: 0; background: var(--xg-bg); color: var(--xg-text);
  font-family: var(--xg-body); font-size: 16px; line-height: 1.5;
}
.xg a { color: var(--xg-text); text-decoration: none; }
.xg a:hover { color: var(--xg-accent); }
.xg img { max-width: 100%; height: auto; }
.xg-logo img, .xg-footer .xg-logo img { height: 52px; }
.xg :focus-visible { outline: 2px solid var(--xg-accent); outline-offset: 2px; }
.xg-wrap { width: 100%; max-width: calc(var(--xg-wrap) + 40px); margin: 0 auto; padding: 0 20px; }
.xg-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.xg-display { font-family: var(--xg-display); font-weight: 800; letter-spacing: .3px; }

/* ---------- Header ---------- */
.xg-header { background: var(--xg-bg-deep); border-bottom: 1px solid var(--xg-line); position: sticky; top: 0; z-index: 50; }
.xg-header .xg-wrap { display: flex; align-items: center; gap: 32px; height: 72px; }
.xg-logo { display: flex; align-items: center; gap: 12px; font-family: var(--xg-display); font-weight: 800; font-size: 30px; letter-spacing: .5px; color: var(--xg-text); flex-shrink: 0; }
.xg-logo img { height: 52px; width: auto; display: block; }
.xg-logo b { color: var(--xg-accent); font-weight: 800; }
.xg-nav { display: flex; gap: 24px; flex-grow: 1; font-size: 15px; font-weight: 600; }
.xg-nav a.is-free { color: var(--xg-amber); }
.xg-iconbtn { width: 44px; height: 44px; border-radius: 10px; border: 1px solid var(--xg-line-2); background: var(--xg-surface); color: var(--xg-text); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; flex-shrink: 0; }
.xg-iconbtn:hover { border-color: var(--xg-accent); color: var(--xg-accent); }
.xg-btn { height: 44px; padding: 0 20px; border-radius: 10px; border: 0; background: var(--xg-accent); color: var(--xg-accent-ink) !important; font: 700 15px var(--xg-body); display: inline-flex; align-items: center; cursor: pointer; }
.xg-btn:hover { filter: brightness(1.08); }
.xg-btn--ghost { background: var(--xg-surface); border: 1px solid var(--xg-line-2); color: var(--xg-text) !important; }
.xg-search { display: none; padding: 12px 0 16px; }
.xg-search.is-open { display: block; }
.xg-search form { display: flex; gap: 10px; }
.xg-input { height: 44px; flex-grow: 1; border-radius: 10px; border: 1px solid var(--xg-line-2); background: var(--xg-bg); color: var(--xg-text); padding: 0 14px; font: 16px var(--xg-body); }
.xg-burger { display: none; }
.xg-mnav { display: none; }

/* ---------- Trending ---------- */
.xg-trending { border-bottom: 1px solid var(--xg-line); }
.xg-trending .xg-wrap { display: flex; align-items: center; gap: 10px; min-height: 52px; overflow-x: auto; scrollbar-width: none; white-space: nowrap; }
.xg-trending .xg-wrap::-webkit-scrollbar { display: none; }
.xg-trending__label { font-family: var(--xg-display); font-weight: 700; font-size: 16px; letter-spacing: 1px; color: var(--xg-accent); margin-right: 6px; }
.xg-chip { padding: 7px 14px; border-radius: 999px; background: var(--xg-surface); border: 1px solid var(--xg-line-2); font-size: 14px; flex-shrink: 0; }
.xg-chip.is-active { background: var(--xg-text); color: var(--xg-bg) !important; border-color: var(--xg-text); }
.xg-chip.is-free { color: var(--xg-amber); border-color: var(--xg-amber-line); }

/* ---------- Tags ---------- */
.xg-tag { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 4px 8px; border-radius: 6px; background: var(--xg-accent); color: var(--xg-accent-ink); line-height: 1.2; }
.xg-tag--preview { background: var(--xg-blue); color: #06131F; }
.xg-tag--best { background: var(--xg-pink); color: #1E0A26; }
.xg-tag--free { background: var(--xg-amber); color: #1A1400; }
.xg-tag--hw { background: var(--xg-teal); color: #04201D; }
.xg-kicker { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--xg-accent); }
.xg-kicker--preview { color: var(--xg-blue); } .xg-kicker--best { color: var(--xg-pink); }
.xg-kicker--free { color: var(--xg-amber); } .xg-kicker--hw { color: var(--xg-teal); }

/* ---------- Section heads ---------- */
.xg-section { margin-top: 56px; }
.xg-head { display: flex; align-items: baseline; gap: 16px; border-bottom: 1px solid var(--xg-line); padding-bottom: 12px; margin-bottom: 20px; flex-wrap: wrap; }
.xg-head h2 { margin: 0; font-family: var(--xg-display); font-weight: 800; font-size: 30px; text-transform: uppercase; line-height: 1.1; }
.xg-head p { margin: 0; font-size: 14px; color: var(--xg-muted); }
.xg-head a.more { margin-left: auto; font-size: 14px; font-weight: 600; color: var(--xg-accent); }
.xg-boxhead { font-family: var(--xg-display); font-weight: 800; font-size: 22px; text-transform: uppercase; border-bottom: 2px solid var(--xg-accent); padding-bottom: 8px; margin: 0 0 14px; }

/* ---------- Hero ---------- */
.xg-hero { display: grid; grid-template-columns: minmax(0, 640fr) minmax(0, 300fr) minmax(0, 260fr); gap: 20px; margin-top: 32px; }
.xg-lead, .xg-sec { display: flex; flex-direction: column; border-radius: var(--xg-radius); overflow: hidden; background: var(--xg-surface); }
.xg-lead img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; display: block; background: var(--xg-surface-2); }
.xg-lead__body { padding: 20px 24px 24px; display: flex; flex-direction: column; gap: 10px; }
.xg-lead h1, .xg-lead h2 { margin: 0; font-family: var(--xg-display); font-weight: 800; font-size: 44px; line-height: 1.02; }
.xg-lead p { margin: 0; color: var(--xg-text-2); }
.xg-meta { font-size: 13px; color: var(--xg-muted); }
.xg-stack { display: flex; flex-direction: column; gap: 20px; }
.xg-sec { flex: 1; }
.xg-sec img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; object-position: left center; display: block; background: var(--xg-surface-2); }
.xg-sec__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.xg-sec h2 { margin: 0; font-family: var(--xg-display); font-weight: 700; font-size: 24px; line-height: 1.05; }
.xg-rail { background: var(--xg-surface); border-radius: var(--xg-radius); padding: 20px; display: flex; flex-direction: column; gap: 16px; }
.xg-rail a { display: flex; flex-direction: column; gap: 4px; }
.xg-rail a span:last-child { font-size: 15px; font-weight: 600; line-height: 1.35; }
.xg-rail .more { margin-top: auto; font-size: 14px; font-weight: 600; color: var(--xg-accent); }

/* ---------- Free games strip ---------- */
.xg-free { margin-top: 48px; background: var(--xg-amber-bg); border: 1px solid var(--xg-amber-line); border-radius: 16px; padding: 24px 28px; }
.xg-free .xg-head { border: 0; padding: 0; margin-bottom: 18px; }
.xg-free .xg-head h2 { color: var(--xg-amber); }
.xg-free .xg-head p { color: #CFC7A6; }
.xg-free .xg-head a.more { color: var(--xg-amber); }
.xg-free__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.xg-deal { background: var(--xg-amber-card); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 6px; }
.xg-deal small { font-size: 12px; color: #CFC7A6; }
.xg-deal strong { font-size: 17px; }
.xg-deal s { color: #9E977B; }
.xg-deal em { font-style: normal; font-weight: 700; color: var(--xg-amber); }

/* ---------- Latest grid + sidebar ---------- */
.xg-tabs { display: flex; gap: 6px; margin-left: auto; align-self: center; }
.xg-tabs button { height: 36px; padding: 0 14px; border-radius: 8px; border: 1px solid var(--xg-line-2); background: transparent; color: var(--xg-text); font: 14px var(--xg-body); cursor: pointer; }
.xg-tabs button[aria-selected="true"] { background: var(--xg-text); color: var(--xg-bg); border-color: var(--xg-text); font-weight: 600; }
.xg-cards--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.xg-searchpage { display: flex; gap: 10px; max-width: 720px; }
.xg-card--m, .xg-card.is-hidden { display: none !important; }
.xg-mchips { display: none; }
.xg-rail .xg-kicker { text-transform: none; letter-spacing: 0; font-weight: 600; }
.xg-main-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 20px; }
.xg-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.xg-card { display: flex; flex-direction: column; gap: 10px; }
.xg-card__img { display: block; width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; border-radius: 12px; background: var(--xg-surface); transition: transform .25s ease; }
.xg-card:hover .xg-card__img { transform: translateY(-2px); }
.xg-card__txt { display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.xg-card h3 { margin: 0; font-family: var(--xg-display); font-weight: 700; font-size: 23px; line-height: 1.08; }
.xg-card p { margin: 0; font-size: 14px; color: var(--xg-muted); }
.xg-loadmore { display: flex; justify-content: center; margin-top: 28px; }
.xg-loadmore .xg-btn { height: 48px; padding: 0 28px; font-weight: 600; }
.xg-side { display: flex; flex-direction: column; gap: 20px; }
.xg-box { background: var(--xg-surface); border-radius: var(--xg-radius); padding: 20px; }
.xg-rank { display: flex; gap: 14px; align-items: flex-start; padding: 8px 0; }
.xg-rank b { font-family: var(--xg-display); font-weight: 800; font-size: 30px; line-height: 1; color: var(--xg-accent); width: 26px; flex-shrink: 0; }
.xg-rank span { font-size: 15px; font-weight: 600; line-height: 1.35; }
.xg-news { background: var(--xg-accent-deep); border: 1px solid var(--xg-accent-line); border-radius: var(--xg-radius); padding: 20px; display: flex; flex-direction: column; gap: 10px; }
.xg-news h3 { margin: 0; font-family: var(--xg-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.xg-news p { margin: 0; font-size: 14px; color: var(--xg-text-2); }
.xg-news label { font-size: 13px; font-weight: 600; }
.xg-news .xg-btn { justify-content: center; }
.xg-ad { min-height: 250px; border-radius: var(--xg-radius); border: 1px dashed var(--xg-line-2); display: flex; align-items: center; justify-content: center; color: #6F7A73; font-size: 12px; overflow: hidden; }
.xg-ad--tall { min-height: 600px; }

/* ---------- Hub ---------- */
.xg-hub { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xg-hub a { background: var(--xg-surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.xg-hub img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.xg-hub span { padding: 14px; font-weight: 700; font-size: 16px; line-height: 1.3; }

/* ---------- Footer ---------- */
.xg-footer { margin-top: 72px; background: var(--xg-bg-deep); border-top: 1px solid var(--xg-line); padding: 40px 0 32px; font-size: 14px; color: var(--xg-muted); }
.xg-footer__grid { display: flex; gap: 60px; }
.xg-footer__brand { width: 320px; display: flex; flex-direction: column; gap: 10px; }
.xg-footer__brand p { margin: 0; line-height: 1.5; }
.xg-footer__logo { font-family: var(--xg-display); font-weight: 800; font-size: 26px; color: var(--xg-text) !important; }
.xg-footer__logo b { color: var(--xg-accent); font-weight: 800; }
.xg-footer nav { display: flex; flex-direction: column; gap: 8px; }
.xg-footer h4 { margin: 0 0 12px; color: var(--xg-text); font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.xg-footer ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.xg-footer a { color: var(--xg-muted); }
.xg-footer__legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--xg-line); font-size: 12px; line-height: 1.6; }
.xg-social { display: flex; gap: 10px; margin-top: 4px; }

/* ---------- Article ---------- */
.xg-progress { position: fixed; top: 0; left: 0; height: 3px; width: 0; background: var(--xg-accent); z-index: 60; }
.xg-article-grid { display: grid; grid-template-columns: minmax(0, 820px) 360px; gap: 60px; justify-content: space-between; margin-top: 28px; }
.xg-crumbs { font-size: 13px; color: var(--xg-muted); display: flex; gap: 8px; flex-wrap: wrap; }
.xg-crumbs a { color: var(--xg-accent); }
.xg-article > * + * { margin-top: 20px; }
.xg-article h1 { margin-top: 14px; margin-bottom: 0; font-family: var(--xg-display); font-weight: 800; font-size: 56px; line-height: 1; }
.xg-dek { font-size: 20px; line-height: 1.5; color: var(--xg-text-2); margin-bottom: 0; }
.xg-byline { display: flex; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--xg-line); border-bottom: 1px solid var(--xg-line); }
.xg-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--xg-accent-line); color: var(--xg-accent); display: flex; align-items: center; justify-content: center; font-weight: 700; flex-shrink: 0; }
.xg-byline__who { display: flex; flex-direction: column; gap: 2px; flex-grow: 1; }
.xg-byline__who strong { font-size: 15px; }
.xg-byline__who span { font-size: 13px; color: var(--xg-muted); }
.xg-hero-img { margin: 20px 0 0; }
.xg-hero-img img { width: 100%; aspect-ratio: 1.9 / 1; object-fit: cover; border-radius: var(--xg-radius); display: block; background: var(--xg-surface); }
.xg-toc-mobile { display: none; background: var(--xg-surface); border: 1px solid var(--xg-line); border-radius: 12px; }
.xg-toc-mobile summary { padding: 14px 16px; font-weight: 700; cursor: pointer; min-height: 44px; }
.xg-toc-mobile nav { padding: 0 8px 10px; }
.xg-toc a { display: block; padding: 10px 12px; font-size: 14px; color: var(--xg-text-2); border-radius: 8px; border-left: 3px solid transparent; }
.xg-toc a.is-active { background: var(--xg-accent-deep); color: var(--xg-accent); font-weight: 600; border-left-color: var(--xg-accent); }
.xg-sticky { position: sticky; top: 92px; display: flex; flex-direction: column; gap: 20px; }

/* Article body: CMS HTML was authored for a white page — normalise it for the dark theme */
.xg-article, .xg-prose { min-width: 0; }
.xg-prose div[style*="overflow-x"], .xg-prose .table-responsive { max-width: 100%; overflow-x: auto !important; -webkit-overflow-scrolling: touch; }
.xg-prose { font-size: 18px; line-height: 1.7; color: #D9E0DB; overflow-wrap: anywhere; }
.xg-prose h1, .xg-prose h2, .xg-prose h3, .xg-prose h4 { font-family: var(--xg-display); color: var(--xg-text); line-height: 1.1; scroll-margin-top: 96px; }
.xg-prose h2 { font-size: 34px; margin: 40px 0 12px; font-weight: 800; }
.xg-prose h3 { font-size: 24px; margin: 28px 0 10px; font-weight: 700; }
.xg-prose p, .xg-prose ul, .xg-prose ol { margin: 0 0 18px; }
.xg-prose a { color: var(--xg-accent); text-decoration: underline; text-underline-offset: 3px; }
.xg-prose img { height: auto; border-radius: 12px; }
.xg-prose iframe { max-width: 100%; }
.xg-prose strong { color: var(--xg-text); }
.xg-prose [style*="color"] { color: inherit !important; }
.xg-prose [style*="background"]:not(img):not(iframe):not(span) { background: var(--xg-surface) !important; border-color: var(--xg-line-2) !important; box-shadow: none !important; }
.xg-prose span[style*="background"] { background: var(--xg-accent) !important; color: var(--xg-accent-ink) !important; }
.xg-prose table { width: 100%; border-collapse: collapse; font-size: 15px; background: var(--xg-surface); }
.xg-prose th { background: var(--xg-accent-line) !important; color: var(--xg-text) !important; text-align: left; }
.xg-prose thead tr { background: var(--xg-accent-line) !important; }
.xg-prose td, .xg-prose th { padding: 11px 14px; border-bottom: 1px solid var(--xg-line) !important; }
.xg-prose tbody tr:nth-child(even) { background: var(--xg-surface-2) !important; }
.xg-prose figure { margin: 0 0 18px; }
/* Table wrapper → rounded card */
body.xg .xg-prose div[style*="overflow-x"] { border: 1px solid var(--xg-line) !important; border-radius: 12px !important; box-shadow: none !important; background: transparent !important; }
body.xg .xg-prose div[style*="overflow-x"] table { margin: 0; }
.xg-prose th, .xg-prose td { padding: 11px 16px !important; }
.xg-prose tbody tr { background: var(--xg-surface) !important; }
/* Quick answer box (CMS: light green box) → design callout */
body.xg .xg-prose div[style*="#eef7f2"], body.xg .xg-prose div[style*="#EEF7F2"] { background: var(--xg-accent-deep) !important; border: 1px solid var(--xg-accent-line) !important; border-radius: 12px !important; padding: 18px 20px !important; }
body.xg .xg-prose div[style*="#eef7f2"] > p:first-child, body.xg .xg-prose div[style*="#EEF7F2"] > p:first-child { color: var(--xg-accent) !important; font-size: 13px !important; letter-spacing: .5px; text-transform: uppercase; margin-bottom: 6px !important; }
body.xg .xg-prose div[style*="#eef7f2"] p { font-size: 17px; line-height: 1.6; }
/* FAQ cards */
body.xg .xg-prose div[style*="#f5f9f7"], body.xg .xg-prose div[style*="#F5F9F7"] { background: transparent !important; padding: 0 !important; display: flex; flex-direction: column; gap: 10px; }
body.xg .xg-prose div[style*="#f5f9f7"] > div { background: var(--xg-surface) !important; border: 1px solid var(--xg-line) !important; border-radius: 12px !important; padding: 16px 18px !important; margin: 0 !important; }
body.xg .xg-prose div[style*="#f5f9f7"] h3 { font-family: var(--xg-body); font-size: 17px !important; font-weight: 700; margin: 0 0 6px !important; line-height: 1.35; }
body.xg .xg-prose div[style*="#f5f9f7"] h3 span { display: none !important; }
body.xg .xg-prose div[style*="#f5f9f7"] p { margin: 0 !important; font-size: 16px !important; color: var(--xg-text-2) !important; }
.xg-author { background: var(--xg-surface); border-radius: var(--xg-radius); padding: 20px; display: flex; gap: 16px; align-items: center; }
.xg-author .xg-avatar { width: 64px; height: 64px; font-size: 20px; }
.xg-comments { background: var(--xg-surface); border-radius: var(--xg-radius); padding: 20px; }
.xg-comment { padding: 12px 0; border-bottom: 1px solid var(--xg-line); }
.xg-comment b { font-size: 14px; } .xg-comment small { color: var(--xg-muted); margin-left: 8px; }
.xg-textarea { width: 100%; min-height: 96px; border-radius: 10px; border: 1px solid var(--xg-line-2); background: var(--xg-bg); color: var(--xg-text); padding: 12px 14px; font: 16px var(--xg-body); margin: 10px 0; }
.xg-readnext { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xg-readnext .xg-card__img { aspect-ratio: 16 / 9; object-position: left center; }
.xg-readnext .xg-card h3 { font-family: var(--xg-body); font-weight: 700; font-size: 16px; line-height: 1.3; }
.xg-dock { display: none; }

/* ---------- Author ---------- */
.xg-avatar--img { object-fit: cover; padding: 0; background: var(--xg-accent-line); }
.xg-author .xg-avatar--img { width: 64px; height: 64px; }
.xg-byline__name { font-weight: 700; font-size: 15px; }
.xg-profile { display: flex; gap: 32px; align-items: flex-start; margin-top: 20px; background: var(--xg-surface); border-radius: 16px; padding: 32px; }
.xg-profile__avatar { width: 160px; height: 160px; flex-shrink: 0; border-radius: 50%; overflow: hidden; background: var(--xg-accent-line); border: 3px solid var(--xg-accent); display: flex; align-items: center; justify-content: center; font: 800 56px var(--xg-display); color: var(--xg-accent); }
.xg-profile__avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.xg-profile__main { min-width: 0; }
.xg-profile h1 { margin: 12px 0 4px; font-family: var(--xg-display); font-weight: 800; font-size: 56px; line-height: 1; }
.xg-profile__role { margin: 0 0 14px; color: var(--xg-muted); font-size: 15px; }
.xg-profile__bio { margin: 0 0 12px; font-size: 17px; line-height: 1.65; color: var(--xg-text-2); max-width: 760px; }
.xg-profile__grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 20px; margin-top: 20px; }
.xg-pov { background: var(--xg-accent-deep); border: 1px solid var(--xg-accent-line); }
.xg-pov p { margin: 0 0 12px; font-size: 16px; line-height: 1.65; color: var(--xg-text-2); }
.xg-pov p:first-of-type { font-family: var(--xg-display); font-weight: 700; font-size: 24px; line-height: 1.2; color: var(--xg-text); }
.xg-favs { margin: 0; padding: 0; list-style: none; counter-reset: fav; }
.xg-favs li { counter-increment: fav; display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--xg-line); font-weight: 600; }
.xg-favs li:last-child { border-bottom: 0; }
.xg-favs li::before { content: counter(fav); font: 800 22px var(--xg-display); color: var(--xg-accent); width: 20px; }

/* ---------- Games catalog & game hub ---------- */
.xg-gfilter { display: grid; grid-template-columns: minmax(0, 1fr) 220px 180px; gap: 10px; margin-bottom: 12px; }
.xg-select { appearance: none; -webkit-appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23A3AEA7' stroke-width='2'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; }
.xg-tabs--wrap { margin: 0 0 24px; flex-wrap: wrap; }
.xg-tabs button[aria-pressed="true"] { background: var(--xg-text); color: var(--xg-bg); border-color: var(--xg-text); font-weight: 600; }
.xg-games { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.xg-gcard { background: var(--xg-surface); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; border: 1px solid transparent; transition: border-color .2s, transform .2s; }
.xg-gcard:hover { border-color: var(--xg-accent-line); transform: translateY(-2px); }
.xg-gcard img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; background: var(--xg-surface-2); }
.xg-gcard__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; }
.xg-gcard__meta { font-size: 12px; font-weight: 600; color: var(--xg-accent); }
.xg-gcard strong { font-family: var(--xg-display); font-weight: 700; font-size: 22px; line-height: 1.08; color: var(--xg-text); }
.xg-gcard__plat { margin-top: auto; font-size: 12px; color: var(--xg-muted); }
.xg-gchips { display: flex; flex-wrap: wrap; gap: 6px; }
.xg-gchips span { font-size: 12px; padding: 3px 9px; border-radius: 999px; background: var(--xg-surface-2); border: 1px solid var(--xg-line-2); color: var(--xg-text-2); }
.xg-game-hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 32px; margin-top: 16px; background: var(--xg-surface); border-radius: 16px; overflow: hidden; }
.xg-game-hero__img img { width: 100%; height: 100%; min-height: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.xg-game-hero__info { padding: 28px 28px 28px 0; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.xg-game-hero h1 { margin: 0; font-family: var(--xg-display); font-weight: 800; font-size: 52px; line-height: 1; }
.xg-game-hero__sum { margin: 0; font-size: 17px; line-height: 1.55; color: var(--xg-text-2); }
.xg-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px 20px; margin: 4px 0 0; width: 100%; }
.xg-facts div { min-width: 0; }
.xg-facts__wide { grid-column: 1 / -1; }
.xg-facts dt { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--xg-muted); margin-bottom: 4px; }
.xg-facts dd { margin: 0; font-weight: 600; font-size: 15px; }
.xg-facts dd small { display: block; font-weight: 400; font-size: 13px; color: var(--xg-muted); }
.xg-game-links { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
.xg-req { border: 1px solid var(--xg-line); border-radius: 12px; overflow-x: auto; }
.xg-req table { width: 100%; border-collapse: collapse; font-size: 15px; }
.xg-req th, .xg-req td { padding: 11px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--xg-line); }
.xg-req thead th { background: var(--xg-accent-line); font-size: 13px; letter-spacing: .5px; text-transform: uppercase; }
.xg-req tbody th { width: 150px; color: var(--xg-muted); font-weight: 600; font-size: 14px; }
.xg-req tbody tr { background: var(--xg-surface); }
.xg-req tbody tr:nth-child(even) { background: var(--xg-surface-2); }
.xg-req tbody tr:last-child th, .xg-req tbody tr:last-child td { border-bottom: 0; }
.xg-req__note { margin: 10px 0 0; font-size: 14px; color: var(--xg-amber); }
.xg-mini { display: flex; gap: 12px; align-items: center; padding: 8px 0; }
.xg-mini img { width: 96px; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.xg-mini span { display: flex; flex-direction: column; min-width: 0; }
.xg-mini strong { font-size: 15px; line-height: 1.3; }
.xg-mini small { color: var(--xg-muted); font-size: 12px; }
.xg-more-link { display: inline-block; margin-top: 10px; font-size: 14px; font-weight: 600; color: var(--xg-accent) !important; }

.xg-gamebox { display: flex; flex-direction: column; padding: 0; overflow: hidden; }
.xg-gamebox img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.xg-gamebox__body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 4px; }
.xg-gamebox small { font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; color: var(--xg-accent); }
.xg-gamebox strong { font-family: var(--xg-display); font-size: 24px; line-height: 1.05; }
.xg-gamebox span > span, .xg-gamebox__body > span { font-size: 13px; color: var(--xg-muted); }
.xg-gamebox em { font-style: normal; font-size: 14px; font-weight: 600; color: var(--xg-accent); margin-top: 4px; }

/* ---------- Legacy pages (flash, account, search…) keep their old light look ---------- */
.xg-legacy { background: #ffffff; color: #111111; border-radius: var(--xg-radius); padding: 20px; margin-top: 28px; }
.xg-legacy a { color: #038754; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1100px) {
  .xg-games { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .xg-game-hero { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .xg-game-hero__info { padding: 24px; }
  .xg-nav { gap: 16px; font-size: 14px; }
  .xg-hero { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); }
  .xg-rail { grid-column: 1 / -1; }
  .xg-article-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 36px; }
}
@media (max-width: 900px) {
  .xg-header .xg-wrap { height: 60px; gap: 8px; padding: 0 8px; }
  .xg-logo { font-size: 24px; gap: 8px; flex-grow: 1; }
  .xg-logo img { height: 40px; }
  .xg-nav, .xg-header .xg-btn { display: none; }
  .xg-burger { display: inline-flex; border: 0; background: transparent; }
  .xg-header .xg-iconbtn { border: 0; background: transparent; }
  .xg-mnav { display: none; border-top: 1px solid var(--xg-line); padding: 8px 16px 16px; }
  .xg-mnav.is-open { display: block; }
  .xg-mnav a { display: block; padding: 12px 4px; font-weight: 600; font-size: 17px; border-bottom: 1px solid var(--xg-line); }
  .xg-wrap { padding: 0 16px; }
  .xg-hero { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .xg-lead h1, .xg-lead h2 { font-size: 30px; }
  .xg-lead__body { padding: 14px 16px 16px; }
  .xg-stack { display: none; }
  .xg-rail { display: none; }
  .xg-lead p { display: none; }
  .xg-lead__body { gap: 8px; }
  .xg-trending { display: none; }
  .xg-mchips { display: flex; gap: 8px; padding: 12px 16px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--xg-line); white-space: nowrap; font-weight: 600; }
  .xg-mchips::-webkit-scrollbar { display: none; }
  .xg-mchips .xg-chip { padding: 9px 14px; }
  .xg-card--m { display: flex !important; }
  .xg-tabs { display: none; }
  .xg-free .xg-head p { display: none; }
  .xg-free .xg-head h2 { font-size: 24px; }
  .xg-head { border-bottom: 2px solid var(--xg-accent); padding-bottom: 6px; margin-bottom: 4px; }
  .xg-free .xg-head { margin-bottom: 12px; }
  .xg-box { background: transparent; padding: 0; }
  .xg-box .xg-boxhead { font-size: 24px; margin-bottom: 4px; padding-bottom: 6px; }
  .xg-rank { padding: 12px 0; border-bottom: 1px solid var(--xg-line); gap: 12px; }
  .xg-rank b { font-size: 26px; width: 22px; }
  .xg-news { padding: 16px; }
  .xg-news p { display: none; }
  .xg-news .xg-input, .xg-news .xg-btn { height: 48px; }
  .xg-free { padding: 16px; margin-top: 24px; }
  .xg-free__grid { grid-template-columns: 1fr; gap: 10px; }
  .xg-deal { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: center; padding: 12px 14px; }
  .xg-main-grid { grid-template-columns: minmax(0, 1fr); }
  .xg-section { margin-top: 32px; }
  .xg-head h2 { font-size: 24px; }
  .xg-cards { grid-template-columns: 1fr; gap: 0; }
  .xg-card { flex-direction: row; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--xg-line); align-items: flex-start; }
  .xg-card__img { width: 128px; flex-shrink: 0; border-radius: 8px; object-position: left center; }
  .xg-card h3 { font-family: var(--xg-body); font-size: 15px; font-weight: 600; line-height: 1.3; }
  .xg-card p, .xg-card .xg-meta { display: none; }
  .xg-ad { display: none; }
  .xg-hub { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .xg-footer { padding: 24px 0; margin-top: 40px; }
  .xg-footer__grid { flex-direction: column; gap: 14px; }
  .xg-footer__brand { width: auto; }
  .xg-footer nav { flex-direction: row; flex-wrap: wrap; gap: 14px; }
  /* article */
  .xg-article-grid { grid-template-columns: minmax(0, 1fr); margin-top: 16px; }
  .xg-article-grid > aside { display: none; }
  .xg-article h1 { font-size: 36px; line-height: 1.02; }
  .xg-dek { font-size: 17px; }
  .xg-prose { font-size: 17px; }
  .xg-prose h2 { font-size: 28px; }
  .xg-prose table { min-width: 0 !important; font-size: 14px; }
  .xg-prose th, .xg-prose td { padding: 9px 10px !important; }
  .xg-toc-mobile { display: block; }
  .xg-games { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .xg-gcard strong { font-size: 18px; }
  .xg-gcard__body { padding: 10px 12px 12px; }
  .xg-gchips span { font-size: 11px; }
  .xg-gfilter { grid-template-columns: 1fr 1fr; }
  .xg-gfilter .xg-input[type=search] { grid-column: 1 / -1; }
  .xg-tabs--wrap { display: flex; overflow-x: auto; flex-wrap: nowrap; }
  .xg-tabs--wrap button { flex-shrink: 0; }
  .xg-game-hero h1 { font-size: 38px; }
  .xg-game-hero__info { padding: 18px 16px 20px; }
  .xg-facts { grid-template-columns: 1fr 1fr; }
  .xg-req tbody th { width: 96px; }
  .xg-req th, .xg-req td { padding: 9px 10px; font-size: 14px; }
  .xg-profile { flex-direction: column; align-items: center; text-align: center; padding: 24px 16px; gap: 16px; }
  .xg-profile__avatar { width: 120px; height: 120px; }
  .xg-profile h1 { font-size: 40px; }
  .xg-profile__grid { grid-template-columns: minmax(0, 1fr); }
  .xg-pov { padding: 16px !important; background: var(--xg-accent-deep) !important; }
  .xg-readnext { grid-template-columns: 1fr; gap: 0; }
  .xg-dock { display: flex; position: fixed; left: 12px; right: 12px; bottom: 16px; height: 56px; border-radius: 14px; background: var(--xg-surface); border: 1px solid var(--xg-line-2); align-items: center; justify-content: space-around; box-shadow: 0 8px 24px rgba(0,0,0,.5); z-index: 40; }
  .xg-dock button { width: 48px; height: 48px; border: 0; background: transparent; color: var(--xg-text); display: inline-flex; align-items: center; justify-content: center; }
  body.has-dock .xg-footer { padding-bottom: 96px; }
}
@media (prefers-reduced-motion: reduce) { .xg-card__img { transition: none; } }

/* ---------- Accounts: sign-in, sign-up, profile ---------- */
.xg-auth { display: grid; grid-template-columns: minmax(0, 480px) minmax(0, 360px); gap: 28px; justify-content: center; margin: 48px auto 0; align-items: start; }
.xg-auth--single { grid-template-columns: minmax(0, 440px); }
.xg-auth__card { background: var(--xg-surface); border: 1px solid var(--xg-line); border-radius: 16px; padding: 32px; }
.xg-auth__card h1 { margin: 0; font-family: var(--xg-display); font-weight: 800; font-size: 40px; line-height: 1; }
.xg-auth__sub { margin: 8px 0 20px; color: var(--xg-text-2); }
.xg-auth__alt { margin: 18px 0 0; color: var(--xg-muted); font-size: 14px; }
.xg-auth__alt a { color: var(--xg-accent); font-weight: 600; }
.xg-auth__perks { padding: 24px; border-radius: 16px; background: var(--xg-accent-deep); border: 1px solid var(--xg-accent-line); }
.xg-auth__perks h2 { margin: 0 0 14px; font-family: var(--xg-display); font-weight: 800; font-size: 24px; text-transform: uppercase; }
.xg-auth__perks ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.xg-auth__perks li { display: flex; flex-direction: column; gap: 2px; }
.xg-auth__perks span { color: var(--xg-text-2); font-size: 14px; }
.xg-form { display: flex; flex-direction: column; gap: 6px; }
.xg-form label { font-size: 13px; font-weight: 600; margin-top: 8px; }
.xg-form label small { font-weight: 400; color: var(--xg-muted); margin-left: 6px; }
.xg-form .xg-input { width: 100%; }
.xg-form .xg-btn { justify-content: center; margin-top: 14px; }
.xg-btn--wide { width: 100%; }
.xg-check { display: flex; align-items: center; gap: 8px; font-weight: 500 !important; }
.xg-pass { position: relative; }
.xg-pass .xg-input { padding-right: 64px; }
.xg-pass__eye { position: absolute; right: 6px; top: 6px; height: 32px; padding: 0 10px; border: 0; border-radius: 8px; background: var(--xg-surface-2); color: var(--xg-text-2); font: 600 12px var(--xg-body); cursor: pointer; }
.xg-alert { border-radius: 10px; padding: 10px 14px; font-size: 14px; margin-bottom: 8px; }
.xg-alert--err { background: #2A1414; border: 1px solid #5B2424; color: #FFB4AB; }
.xg-alert--ok { background: var(--xg-accent-deep); border: 1px solid var(--xg-accent-line); color: var(--xg-accent); }
.xg-details { margin-top: 10px; border: 1px solid var(--xg-line); border-radius: 10px; padding: 10px 14px; }
.xg-details summary { cursor: pointer; font-weight: 600; font-size: 14px; }
.xg-linkbtn { background: none; border: 0; color: var(--xg-muted); font: 600 14px var(--xg-body); cursor: pointer; padding: 0; text-decoration: underline; }
.xg-karma { display: flex; align-items: center; gap: 18px; margin-top: 10px; flex-wrap: wrap; }
.xg-karma__n { display: flex; align-items: baseline; gap: 6px; }
.xg-karma__n b { font-family: var(--xg-display); font-weight: 800; font-size: 44px; color: var(--xg-accent); line-height: 1; }
.xg-karma__n span { color: var(--xg-muted); font-weight: 600; }
.xg-karma__bar { flex-grow: 1; min-width: 200px; max-width: 420px; display: flex; flex-direction: column; gap: 6px; }
.xg-karma__track { height: 8px; border-radius: 8px; background: var(--xg-surface-2); overflow: hidden; }
.xg-karma__track div { height: 100%; background: var(--xg-accent); border-radius: 8px; }
.xg-karma__bar small { color: var(--xg-muted); font-size: 13px; }
.xg-klog { list-style: none; margin: 0; padding: 0; }
.xg-klog li { display: flex; gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--xg-line); font-size: 14px; }
.xg-klog li:last-child { border-bottom: 0; }
.xg-klog b { font-family: var(--xg-display); font-weight: 800; font-size: 20px; color: var(--xg-accent); width: 44px; flex-shrink: 0; }
.xg-klog b.neg { color: #FF8A80; }
.xg-klog span { flex-grow: 1; color: var(--xg-text-2); }
.xg-klog time { color: var(--xg-muted); font-size: 12px; white-space: nowrap; }
.xg-useravatar { width: 36px; height: 36px; border-radius: 50%; object-fit: cover; border: 2px solid var(--xg-accent-line); display: block; }
.xg-userchip { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; background: var(--xg-accent-line); color: var(--xg-accent) !important; font-weight: 700; font-size: 14px; flex-shrink: 0; overflow: hidden; }
@media (max-width: 900px) {
  .xg-auth { grid-template-columns: minmax(0, 1fr); margin-top: 20px; }
  .xg-auth__card { padding: 22px 18px; }
}
.xg-userchip { position: relative; }
.xg-userchip img { position: absolute; inset: 0; }
@media (max-width: 1100px) { .xg-hide-sm { display: none !important; } }
