/*
 * Theme "gold" — cs-game.net
 * Light "Dust2" (sand) + dark "VGUI" (client olive). Accent = default CS HUD orange 255 160 0.
 * All colors are tokens; the client replicas (.vgui) keep the client's own palette in both themes.
 */

/* ------------------------------------------------------------------ tokens */
:root {
    --bg: #f3eee3;
    --bg-2: #ebe4d4;
    --surface: #fffdf8;
    --surface-2: #f7f2e7;
    --line: #ddd3bf;
    --line-2: #cbbfa6;
    --text: #1e2318;
    --muted: #5e6452;
    --accent: #ffa000;
    --accent-2: #ffb733;
    --on-accent: #1e1400;
    --link: #8a4f00;
    --olive: #4c5844;
    --gold: #c4b550;
    --ok: #2f7d32;
    --warn: #b36b00;
    --bad: #b3261e;
    --hero-glow: rgba(255, 160, 0, .18);
    --shadow: 0 1px 2px rgba(30, 35, 24, .06), 0 8px 24px rgba(30, 35, 24, .08);
    --radius: 14px;
    --radius-sm: 8px;
    --wrap: 1200px;
    --font: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --font-display: "Bahnschrift", "DIN Alternate", "Barlow Semi Condensed", "Roboto Condensed", "Arial Narrow", var(--font);
    --font-mono: Consolas, "SF Mono", ui-monospace, Menlo, monospace;
    --font-vgui: Tahoma, Verdana, "Segoe UI", sans-serif;
    color-scheme: light;
}

:root[data-theme="dark"] {
    --bg: #1b1f18;
    --bg-2: #20251d;
    --surface: #262c22;
    --surface-2: #2e3529;
    --line: #3b4435;
    --line-2: #4c5844;
    --text: #e6eadf;
    --muted: #a6ad99;
    --link: #ffb84d;
    --hero-glow: rgba(255, 160, 0, .12);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
    --ok: #7bc47f;
    --warn: #f0b04a;
    --bad: #f08a80;
    color-scheme: dark;
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #1b1f18;
        --bg-2: #20251d;
        --surface: #262c22;
        --surface-2: #2e3529;
        --line: #3b4435;
        --line-2: #4c5844;
        --text: #e6eadf;
        --muted: #a6ad99;
        --link: #ffb84d;
        --hero-glow: rgba(255, 160, 0, .12);
        --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 10px 30px rgba(0, 0, 0, .35);
        --ok: #7bc47f;
        --warn: #f0b04a;
        --bad: #f08a80;
        color-scheme: dark;
    }
}

/* ------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 84px; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 16px/1.6 var(--font);
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg, canvas { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--link); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
code, pre { font-family: var(--font-mono); }
code { font-size: .92em; background: var(--surface-2); border: 1px solid var(--line); border-radius: 5px; padding: .05em .35em; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.icon { width: 1.25em; height: 1.25em; flex: none; }
.icon-sm { width: 1em; height: 1em; }
.is-rtl .flip-rtl { transform: scaleX(-1); }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: 16px; }
@media (min-width: 720px) { .wrap { padding-inline: 24px; } }
.block { margin-block: 56px; }
.skip { position: absolute; inset-inline-start: 8px; top: -60px; z-index: 100; background: var(--accent); color: var(--on-accent); padding: 8px 14px; border-radius: 8px; font-weight: 700; }
.skip:focus { top: 8px; }

.sec-title { font-size: clamp(1.4rem, 1.1rem + 1.2vw, 1.9rem); display: flex; align-items: center; gap: .45em; }
.page-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.1rem); }
.lead { font-size: clamp(1.05rem, 1rem + .3vw, 1.2rem); color: var(--muted); max-width: 62ch; }
.eyebrow { display: inline-flex; align-items: center; gap: .5em; margin: 0 0 14px; font: 600 .78rem/1 var(--font-display); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
.eyebrow .icon { color: var(--accent); }
.footnote { display: flex; gap: .5em; align-items: flex-start; font-size: .88rem; color: var(--muted); margin-top: 12px; }
.footnote .icon { margin-top: .2em; }
.notice { display: flex; gap: .5em; align-items: center; padding: 10px 14px; border-radius: var(--radius-sm); background: rgba(255, 160, 0, .14); border: 1px solid rgba(255, 160, 0, .45); font-size: .92rem; }
.link-arrow { display: inline-flex; align-items: center; gap: .3em; font-weight: 600; text-decoration: none; }
.link-arrow:hover { text-decoration: underline; }

/* ------------------------------------------------------------------ buttons */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: .55em;
    min-height: 44px; padding: 10px 18px; border-radius: 10px;
    border: 1px solid transparent; font-weight: 700; text-decoration: none; line-height: 1.2;
    transition: transform .12s ease, box-shadow .2s ease, background-color .2s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 6px 18px rgba(255, 160, 0, .35); }
.btn-primary:hover { background: var(--accent-2); }
.btn-ghost { background: var(--surface); color: var(--text); border-color: var(--line-2); }
.btn-ghost:hover { border-color: var(--accent); }
.btn-sm { min-height: 34px; padding: 6px 12px; font-size: .88rem; border-radius: 8px; }
.btn-xl { min-height: 60px; padding: 12px 22px; text-align: start; }
.btn-xl .icon { width: 1.6em; height: 1.6em; }
.btn-t { display: block; font-size: 1.05rem; }
.btn-s { display: block; font-size: .78rem; font-weight: 500; opacity: .75; }
.iconbtn {
    display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 10px;
    background: transparent; border: 1px solid var(--line); color: var(--text); text-decoration: none;
}
.iconbtn:hover { border-color: var(--accent); color: var(--link); }
.iconbtn-sm { width: 36px; height: 36px; }
.chipbtn, .chip {
    display: inline-flex; align-items: center; gap: .4em; min-height: 36px; padding: 6px 12px;
    border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); font-size: .88rem; font-weight: 600;
}
.chip small { color: var(--muted); font-weight: 500; }
.chip.is-on { background: var(--text); color: var(--bg); border-color: var(--text); }
.chip.is-on small { color: inherit; opacity: .7; }
.chipbtn:hover, .chip:hover { border-color: var(--accent); }
.dl { display: flex; flex-wrap: wrap; gap: 12px; margin: 24px 0 14px; }
.dl .btn { flex: 1 1 230px; justify-content: flex-start; max-width: 340px; }

/* ------------------------------------------------------------------ top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; flex: none; }
.logo-mark { border-radius: 9px; }
.brand-text { display: grid; line-height: 1; }
.brand-name { font: 700 1.15rem/1 var(--font-display); letter-spacing: .04em; }
.brand-name b { color: var(--accent); }
.brand-sub { font-size: .7rem; color: var(--muted); letter-spacing: .06em; margin-top: 3px; }
.mainnav { margin-inline-start: auto; }
.mainnav ul { display: flex; gap: 2px; list-style: none; margin: 0; padding: 0; }
.mainnav a { display: flex; align-items: center; gap: .45em; padding: 8px 11px; border-radius: 9px; color: var(--text); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; }
.mainnav a .icon { width: 1.05em; height: 1.05em; color: var(--muted); }
.mainnav a:hover { background: var(--surface-2); }
.mainnav a[aria-current="page"] { background: var(--surface); box-shadow: inset 0 -2px 0 var(--accent); }
.mainnav a[aria-current="page"] .icon { color: var(--accent); }
.topbar-tools { display: flex; align-items: center; gap: 8px; }
.nav-toggle { display: none; }
.theme-toggle .only-dark { display: none; }
:root[data-theme="dark"] .theme-toggle .only-dark { display: block; }
:root[data-theme="dark"] .theme-toggle .only-light { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .only-dark { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .only-light { display: none; }
}

.flag { display: inline-block; width: 20px; height: 20px; flex: none; border-radius: 50%; overflow: hidden; box-shadow: 0 0 0 1px rgba(0, 0, 0, .12); }
.flag svg { width: 100%; height: 100%; }
.flag-code { display: grid; place-items: center; width: 100%; height: 100%; background: var(--line); font: 700 8px/1 var(--font); }
.langmenu { position: relative; }
.langmenu summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; font-weight: 700; font-size: .85rem; }
.langmenu summary::-webkit-details-marker { display: none; }
.langmenu[open] summary { border-color: var(--accent); }
.langmenu-list {
    position: absolute; inset-inline-end: 0; top: calc(100% + 8px); z-index: 60;
    width: min(460px, calc(100vw - 32px)); max-height: 70vh; overflow: auto;
    display: grid; grid-template-columns: repeat(2, 1fr); gap: 2px;
    list-style: none; margin: 0; padding: 8px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.langmenu-list a { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; color: var(--text); text-decoration: none; font-size: .92rem; }
.langmenu-list a:hover { background: var(--surface-2); }
.langmenu-list a[aria-current="true"] { background: var(--surface-2); font-weight: 700; box-shadow: inset 3px 0 0 var(--accent); }

/* Navigation fits itself to the label length of each language (theme.js measures it):
   full → .is-tight (no icons, tighter padding) → .is-compact (burger). Without JS: width breakpoint. */
.mainnav { min-width: 0; }
.js .topbar:not(.is-compact) .mainnav { overflow: hidden; }
.js .topbar:not(.nav-ready) .mainnav { visibility: hidden; }
.topbar.is-tight .mainnav a { padding: 8px 8px; gap: 0; }
.topbar.is-tight .mainnav a .icon { display: none; }
.topbar.is-compact .nav-toggle { display: inline-grid; }
.topbar.is-compact .mainnav { position: fixed; inset: 64px 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 64px); overflow: auto; visibility: visible; }
.topbar.is-compact .mainnav.is-open { display: block; }
.topbar.is-compact .mainnav ul { flex-direction: column; }
.topbar.is-compact .mainnav a { padding: 12px; font-size: 1rem; gap: .45em; }
.topbar.is-compact .mainnav a .icon { display: block; }
.topbar.is-compact .topbar-tools { margin-inline-start: auto; }
@media (max-width: 1080px) {
    :root:not(.js) .nav-toggle { display: inline-grid; }
    :root:not(.js) .mainnav { position: fixed; inset: 64px 0 auto 0; margin: 0; background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); padding: 8px 16px 16px; display: none; max-height: calc(100vh - 64px); overflow: auto; }
    :root:not(.js) .mainnav.is-open { display: block; }
    :root:not(.js) .mainnav ul { flex-direction: column; }
    :root:not(.js) .mainnav a { padding: 12px; font-size: 1rem; }
    :root:not(.js) .topbar-tools { margin-inline-start: auto; }
}
@media (max-width: 480px) { .brand-sub { display: none; } .langmenu-code { display: none; } .topbar-in { gap: 10px; } .langmenu summary { padding: 0 8px; } }
@media (max-width: 360px) { .brand-text { display: none; } }

.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; margin: 16px auto 0; padding: 0; font-size: .85rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-inline-end: 6px; opacity: .5; }
.crumbs a { color: var(--muted); }

/* ------------------------------------------------------------------ hero */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line);
    background:
        radial-gradient(60% 80% at 85% 20%, var(--hero-glow), transparent 60%),
        linear-gradient(180deg, var(--bg-2), var(--bg));
}
.hero::before { /* faint crosshair grid */
    content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
    background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
    background-size: 48px 48px; mask-image: radial-gradient(70% 70% at 70% 30%, #000, transparent 75%);
}
.hero-in { position: relative; display: grid; gap: 40px; padding-block: 48px 56px; align-items: center; }
@media (min-width: 980px) { .hero-in { grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); padding-block: 72px 80px; } }
.hero-title { font-size: clamp(2.2rem, 1.4rem + 3.6vw, 3.9rem); font-weight: 700; margin-bottom: 16px; }
.hero-sm .hero-title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3rem); }
.hero-trust { display: flex; align-items: center; gap: .5em; font-size: .9rem; color: var(--muted); margin: 0 0 20px; }
.hero-trust .icon { color: var(--ok); }
.hero-cover { border-radius: var(--radius); box-shadow: var(--shadow); border: 1px solid var(--line); }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 16px; }
.facts div { padding: 8px 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); }
.facts dt { font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.facts dd { margin: 0; font-weight: 700; font-size: .92rem; }
.rating { display: inline-flex; align-items: center; gap: 8px; font-size: .92rem; }
.stars { position: relative; display: inline-block; line-height: 0; }
.stars-base, .stars-fill { display: flex; gap: 2px; }
.stars-base .icon { color: var(--line-2); fill: var(--line-2); stroke: none; }
.stars-fill { position: absolute; inset-block: 0; inset-inline-start: 0; overflow: hidden; }
.stars-fill .icon { color: var(--accent); fill: var(--accent); stroke: none; }
.stars .icon { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ VGUI (client replica, same in both themes) */
.vgui {
    --v-bg: #4c5844; --v-bg-2: #3e4637; --v-hi: #8c9480; --v-lo: #292c21; --v-text: #dee5d7; --v-dim: #a0aa95; --v-gold: #c4b550; --v-sel: #958831;
    font: 12px/1.35 var(--font-vgui); color: var(--v-text);
    background: var(--v-bg); border: 1px solid; border-color: var(--v-hi) var(--v-lo) var(--v-lo) var(--v-hi);
    box-shadow: 0 30px 60px -20px rgba(20, 24, 16, .55), 0 0 0 1px rgba(0, 0, 0, .25);
    user-select: none; overflow: hidden;
}
.hero-visual .vgui { transform: perspective(1400px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; transition: transform .6s ease; }
.hero-visual .vgui:hover { transform: none; }
.is-rtl .hero-visual .vgui { transform: perspective(1400px) rotateY(8deg) rotateX(3deg); transform-origin: right center; }
.vgui-title { display: flex; align-items: center; gap: 6px; padding: 6px 8px; font-size: 13px; }
.vgui-steam { opacity: .85; }
.vgui-x { margin-inline-start: auto; width: 16px; height: 16px; display: grid; place-items: center; border: 1px solid var(--v-dim); font-size: 10px; }
.vgui-tabs { display: flex; gap: 2px; padding: 0 8px; border-bottom: 1px solid var(--v-hi); }
.vgui-tabs > * { padding: 5px 12px 4px; background: var(--v-bg-2); border: 1px solid; border-color: var(--v-hi) var(--v-lo) transparent var(--v-hi); border-bottom: 0; color: var(--v-text); font: inherit; white-space: nowrap; }
.vgui-tabs .is-on, .vgui-tabs [aria-selected="true"] { background: var(--v-bg); color: var(--v-gold); position: relative; top: 1px; }
.vgui-table { margin: 8px; background: #3e4637; border: 1px solid; border-color: var(--v-lo) var(--v-hi) var(--v-hi) var(--v-lo); }
.vgui-row { display: grid; grid-template-columns: minmax(0, 1fr) 72px 58px 104px; gap: 8px; padding: 3px 6px; white-space: nowrap; animation: vrow .35s ease both; animation-delay: calc(var(--d, 0) * 110ms + 300ms); }
.vgui-row > span { overflow: hidden; text-overflow: ellipsis; }
.vgui-row:nth-child(3) { background: var(--v-sel); color: #fff; }
.vgui-head { background: var(--v-bg); border-bottom: 1px solid var(--v-lo); animation: none; }
.vgui-name { display: flex; align-items: center; gap: 5px; }
.vgui-name .flag, .vgui-name .flag-code { width: 14px; height: 10px; border-radius: 1px; box-shadow: none; }
.vgui-foot { display: flex; gap: 6px; padding: 0 8px 8px; }
.vgui-spacer { flex: 1; }
.vgui-btn { padding: 4px 12px; border: 1px solid; border-color: var(--v-hi) var(--v-lo) var(--v-lo) var(--v-hi); background: var(--v-bg); }
.vgui-btn.is-hot { outline: 1px solid var(--v-lo); outline-offset: -3px; }
.vgui-status { display: flex; align-items: center; gap: 8px; padding: 5px 8px; border-top: 1px solid var(--v-lo); color: var(--v-dim); }
.vgui-spin { width: 10px; height: 10px; border: 2px solid var(--v-dim); border-top-color: var(--v-gold); border-radius: 50%; animation: spin 1s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes vrow { from { background: rgba(196, 181, 80, .45); } }
@media (max-width: 560px) { .vgui-row { grid-template-columns: minmax(0, 1fr) 50px 84px; } .vgui .hide-sm { display: none; } }

.vgui-mini { max-width: 420px; }
.vgui-form { display: grid; grid-template-columns: auto 1fr; gap: 10px 14px; align-items: center; padding: 16px; }
.vgui-label { color: var(--v-text); }
.is-gold { color: var(--v-gold) !important; }
.vgui-select, .vgui-input {
    padding: 4px 8px; background: #3e4637; border: 1px solid; border-color: var(--v-lo) var(--v-hi) var(--v-hi) var(--v-lo); color: var(--v-text); font: 12px var(--font-vgui); min-height: 26px;
}
select.vgui-input { width: 100%; }
.vgui-note { padding: 0 16px 16px; color: var(--v-dim); }
.vgui-note a { color: var(--v-gold); }
.vgui-dialog { user-select: auto; }
.vgui-dialog .vgui-tabs button { cursor: pointer; }
.vgui-subtabs { display: flex; gap: 2px; padding: 10px 10px 0; border-bottom: 1px solid var(--v-hi); }
.vgui-subtabs > * { padding: 4px 10px; background: var(--v-bg-2); border: 1px solid; border-color: var(--v-hi) var(--v-lo) transparent var(--v-hi); color: var(--v-text); font: inherit; }
.vgui-subtabs .is-on { background: var(--v-bg); color: var(--v-gold); position: relative; top: 1px; }
.vgui-sub { padding: 16px; display: grid; gap: 14px; }
.vrow { display: grid; grid-template-columns: minmax(110px, 38%) 1fr; gap: 12px; align-items: center; }
.vrange { display: flex; align-items: center; gap: 10px; }
.vrange input[type=range] { flex: 1; accent-color: var(--v-gold); }
.vrange output { min-width: 48px; padding: 3px 6px; text-align: end; background: #3e4637; border: 1px solid; border-color: var(--v-lo) var(--v-hi) var(--v-hi) var(--v-lo); }
.vcheck { display: flex; align-items: center; gap: 8px; }
.vcheck input, .vradios input { accent-color: var(--v-gold); width: 15px; height: 15px; }
.vchecks { display: flex; flex-wrap: wrap; gap: 18px; }
.vradios { border: 0; padding: 0; margin: 0; display: grid; gap: 6px; }
.vradios legend { margin-bottom: 6px; }
.vradios label { display: flex; gap: 8px; align-items: center; padding-inline-start: 12px; }
.vcolor { width: 64px; height: 28px; padding: 0; border: 1px solid var(--v-lo); background: none; }

/* ------------------------------------------------------------------ steps, features */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; counter-reset: s; }
@media (min-width: 760px) { .steps3 { grid-template-columns: repeat(3, 1fr); } }
.steps3 li { position: relative; padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
/* step number is decoration only: drawn by CSS so it never ends up in the page text / search snippets */
.steps3 li { counter-increment: s; }
.steps3 li::before { content: counter(s); position: absolute; inset-inline-end: 18px; top: 10px; font: 700 3.4rem/1 var(--font-display); color: var(--line); pointer-events: none; }
.steps3-icon { width: 34px; height: 34px; color: var(--accent); margin-bottom: 14px; }
.steps3 h3 { font-size: 1.3rem; }
.steps3 p { color: var(--muted); }

.features { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 640px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .features { grid-template-columns: repeat(4, 1fr); } }
.features li { background: var(--surface); padding: 22px; }
.features h3 { font-size: 1.12rem; margin: 12px 0 6px; }
.features p { color: var(--muted); font-size: .93rem; margin: 0; }
.feature-icon { width: 30px; height: 30px; color: var(--olive); padding: 6px; box-sizing: content-box; border-radius: 10px; background: rgba(255, 160, 0, .16); color: var(--link); }

/* ------------------------------------------------------------------ PC checker */
.checker { padding: clamp(20px, 3vw, 32px); border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.checker-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-start; }
.checker-head .sec-title { margin-bottom: 4px; }
.specs { display: grid; gap: 10px; grid-template-columns: 1fr; margin: 20px 0 0; }
@media (min-width: 480px) { .specs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 860px) { .specs { grid-template-columns: repeat(3, 1fr); } }
.specs div { padding: 12px 14px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.specs dt { display: flex; align-items: center; gap: .4em; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.specs dd { margin: 4px 0 0; font-weight: 700; overflow-wrap: anywhere; }
.verdict { display: grid; grid-template-columns: auto 1fr; gap: 18px; margin-top: 20px; padding: 20px; border-radius: 12px; border: 2px solid var(--v-c, var(--ok)); background: color-mix(in srgb, var(--v-c, var(--ok)) 8%, var(--surface)); }
.verdict[data-level="great"], .verdict[data-level="ok"] { --v-c: var(--ok); }
.verdict[data-level="low"] { --v-c: var(--warn); }
.verdict[data-level="mobile"], .verdict[data-level="other"] { --v-c: var(--bad); }
.verdict-badge { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--v-c); color: #fff; font: 700 1.5rem/1 var(--font-display); }
.verdict-title { font: 700 1.35rem/1.2 var(--font-display); margin: 4px 0 6px; }
.verdict-sub { font-weight: 700; margin: 14px 0 6px; }
.fpsmeter { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; margin-top: 12px; }
.fpsmeter-label { font-size: .85rem; color: var(--muted); }
.fpsmeter-bar { height: 10px; border-radius: 99px; background: var(--line); overflow: hidden; }
.fpsmeter-bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--warn), var(--accent), var(--ok)); border-radius: inherit; transition: width 1.2s cubic-bezier(.2, .8, .2, 1); }
.checker-more { margin: 16px 0 0; }
.gpu-pick { margin-top: 16px; border: 1px dashed var(--line-2); border-radius: 12px; padding: 12px 16px; display: grid; gap: 8px; }
.gpu-pick legend { font-weight: 700; padding: 0 6px; }
.gpu-pick label { display: flex; gap: 8px; align-items: center; }
.gpu-pick input { accent-color: var(--accent); }

.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.ticks li { position: relative; padding-inline-start: 28px; }
.ticks li::before { content: ""; position: absolute; inset-inline-start: 2px; top: .45em; width: 14px; height: 8px; border-inline-start: 3px solid var(--ok); border-bottom: 3px solid var(--ok); transform: rotate(-45deg); }
.is-rtl .ticks li::before { transform: rotate(45deg); }
.numlist { counter-reset: n; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; max-width: 760px; }
.numlist li { counter-increment: n; position: relative; padding: 2px 0 0; padding-inline-start: 46px; min-height: 32px; }
.numlist li::before { content: counter(n); position: absolute; inset-inline-start: 0; top: 0; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--text); color: var(--bg); font: 700 .95rem/1 var(--font-display); }

/* ------------------------------------------------------------------ screenshots, article, faq */
.shots-rail { list-style: none; margin: 0; padding: 0 0 8px; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(260px, 32%); gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; overscroll-behavior-x: contain; }
.shots-rail li { scroll-snap-align: start; }
.shot { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 9; background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.shot:hover img { transform: scale(1.04); }

.article-grid.has-toc { display: grid; gap: 40px; }
@media (min-width: 1000px) { .article-grid.has-toc { grid-template-columns: 260px minmax(0, 1fr); } }
.toc { align-self: start; }
@media (min-width: 1000px) { .toc { position: sticky; top: 88px; } }
.toc-title { font: 600 .78rem/1 var(--font-display); text-transform: uppercase; letter-spacing: .12em; color: var(--muted); }
.toc ol { list-style: none; margin: 0; padding: 0; border-inline-start: 2px solid var(--line); }
.toc a { display: block; padding: 6px 14px; margin-inline-start: -2px; border-inline-start: 2px solid transparent; color: var(--muted); text-decoration: none; font-size: .92rem; }
.toc a:hover, .toc a.is-active { color: var(--text); border-color: var(--accent); }
.prose { max-width: 760px; font-size: 1.04rem; }
.prose h2 { font-size: clamp(1.4rem, 1.2rem + .8vw, 1.8rem); margin-top: 1.8em; }
.prose h2:first-child { margin-top: 0; }
.prose ul { padding-inline-start: 0; list-style: none; display: grid; gap: 6px; }
.prose ul li { position: relative; padding-inline-start: 24px; }
.prose ul li::before { content: ""; position: absolute; inset-inline-start: 4px; top: .7em; width: 8px; height: 8px; background: var(--accent); transform: rotate(45deg); }

.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 18px 0; cursor: pointer; font-weight: 700; font-size: 1.05rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { transition: transform .2s; flex: none; }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { color: var(--muted); max-width: 72ch; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 32px; padding-top: 20px; border-top: 1px solid var(--line); }
.share-label { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; margin-inline-end: 6px; }

/* ------------------------------------------------------------------ build cards */
.bgrid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.bcard { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, transform .2s; }
.bcard:hover { border-color: var(--accent); transform: translateY(-2px); }
.bcard-link { display: block; color: var(--text); text-decoration: none; }
.bcard-img { aspect-ratio: 16 / 9; width: 100%; object-fit: cover; background: var(--surface-2); }
.bcard-title { font-size: 1.08rem; margin: 14px 16px 6px; }
.bcard-text { padding: 0 16px 14px; color: var(--muted); font-size: .9rem; }
.bcard-text p { margin: 0; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.load-more-wrap { grid-column: 1 / -1; text-align: center; }
.pager { display: flex; gap: 6px; justify-content: center; margin-top: 24px; }
.pager a, .pager span { min-width: 40px; height: 40px; display: grid; place-items: center; border-radius: 8px; border: 1px solid var(--line); text-decoration: none; color: var(--text); }
.pager span { background: var(--text); color: var(--bg); }

/* ------------------------------------------------------------------ guide pages */
.pagehead { padding-block: 32px 0; }
.pagehead .lead { margin-bottom: 0; }
.pagehead + .block { margin-top: 24px; }
.howto { list-style: none; margin: 0; padding: 0; counter-reset: h; display: grid; gap: 20px; }
.howto-step { counter-increment: h; display: grid; gap: 24px; padding: clamp(20px, 3vw, 32px); background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); align-items: center; }
@media (min-width: 900px) { .howto-step { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.howto-text h2 { font-size: 1.45rem; display: flex; gap: 12px; align-items: center; }
.howto-text h2::before { content: counter(h); flex: none; width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: var(--accent); color: var(--on-accent); font-size: 1.1rem; }
.howto-text p { color: var(--muted); }
.howto-art { min-width: 0; }
.howto-art .dl { margin: 0; }
.howto-art .vgui { transform: none; }

.smartscreen { background: #0063b1; color: #fff; padding: 22px 24px 18px; font: 14px/1.45 "Segoe UI", system-ui, sans-serif; box-shadow: 0 20px 40px -20px rgba(0, 40, 90, .6); max-width: 460px; }
.ss-title { font-size: 22px; font-weight: 300; margin-bottom: 10px; }
.ss-link { background: none; border: 0; padding: 0; color: #fff; text-decoration: underline; font-weight: 600; }
.ss-app { font-weight: 600; }
.ss-btns { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; }
.ss-btn { background: transparent; border: 2px solid #fff; color: #fff; padding: 6px 16px; min-width: 110px; }
.ss-btn-main { background: #fff; color: #0063b1; }
.ss-btn[data-ss-run]:not([hidden]) { animation: pulse 1.4s ease infinite; }
.ss-hint, .ss-done { display: flex; align-items: center; gap: 6px; margin: 12px 0 0; font-size: 13px; color: #cde6ff; }
.ss-done { color: #b5f5b8; font-weight: 600; }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(255, 255, 255, .25); } }
.fakepath { display: flex; align-items: center; gap: 12px; padding: 18px 20px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); font-size: 1.1rem; }
.fakepath .icon { color: var(--accent); width: 32px; height: 32px; }
.fakepath code { background: none; border: 0; }
.models { display: flex; gap: 12px; }
.model { flex: 1; padding: 34px 12px; text-align: center; border-radius: 12px; border: 2px solid var(--line); background: var(--surface-2); font: 700 1.2rem var(--font-display); }
.model.is-on { border-color: var(--accent); box-shadow: 0 0 0 4px rgba(255, 160, 0, .2); }

.bots-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 980px) { .bots-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.console-card { padding: 24px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); }
.console { margin: 0 0 14px; padding: 16px; border-radius: 10px; background: #12150f; color: #d4e2c8; font-size: .9rem; line-height: 1.6; white-space: pre-wrap; word-break: break-word; min-height: 220px; border: 1px solid #2c3326; }
.console .c { color: #7f8d72; }
.console .k { color: #ffb84d; }
.console-actions { display: flex; flex-wrap: wrap; gap: 10px; }

.table-wrap { position: relative; overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.table { width: 100%; border-collapse: collapse; font-size: .95rem; }
.table th, .table td { padding: 12px 14px; text-align: start; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table thead th { font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); background: var(--surface-2); }
.table tbody tr:last-child > * { border-bottom: 0; }
.reqtable tbody th { font-weight: 700; }
.twocol { display: grid; gap: 20px; }
@media (min-width: 860px) { .twocol { grid-template-columns: 1fr 1fr; } }
.card { padding: 24px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); }
.card .sec-title { font-size: 1.3rem; }
.card .sec-title .icon { color: var(--accent); }

/* ------------------------------------------------------------------ server browser */
.sb { display: grid; gap: 16px; }
.sb-tabs { position: relative; display: flex; gap: 4px; border-bottom: 2px solid var(--line); overflow-x: auto; overflow-y: hidden; scrollbar-width: none; }
.sb-tabs button { display: inline-flex; align-items: center; gap: .45em; padding: 10px 16px; background: none; border: 0; border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.sb-tabs .is-on { color: var(--text); border-color: var(--accent); }
.sb-count:empty { display: none; }
.sb-count { background: var(--accent); color: var(--on-accent); border-radius: 99px; padding: 0 7px; font-size: .75rem; }
.sb-filters { display: grid; gap: 12px; }
.sb-search { display: flex; align-items: center; gap: 8px; padding: 0 14px; min-height: 46px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--surface); max-width: 520px; }
.sb-search input { flex: 1; border: 0; background: none; outline: none; min-height: 44px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip .flag { width: 16px; height: 16px; }
.sb-toggles { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; font-size: .92rem; }
.sb-toggles input { accent-color: var(--accent); }
.sb-stat { margin-inline-start: auto; color: var(--muted); }
.sb-table td { padding-block: 10px; }
/* server name: one line with "…" (full name in the tooltip); the cell takes all free width */
.sb-table td.sb-name { width: 100%; max-width: 0; min-width: 220px; }
.sb-name-in { display: flex; align-items: center; gap: 10px; min-width: 0; }
.sb-name-text { min-width: 0; flex: 1; }
.sb-name b, .sb-name .sb-addr { display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sb-name b { font-weight: 600; line-height: 1.3; }
.sb-addr { color: var(--muted); font-family: var(--font-mono); font-size: .78rem; }
.fill { display: inline-block; min-width: 62px; padding: 2px 8px; border-radius: 6px; font-variant-numeric: tabular-nums; font-weight: 700; font-size: .88rem;
    background: linear-gradient(90deg, rgba(255, 160, 0, .35) var(--p), var(--surface-2) var(--p)); }
.tag { display: inline-block; padding: 2px 9px; border-radius: 99px; font-size: .78rem; font-weight: 700; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.tag-deathmatch, .tag-gungame, .tag-aim, .tag-awp { background: rgba(179, 38, 30, .12); border-color: rgba(179, 38, 30, .3); }
.tag-zombie, .tag-jailbreak, .tag-deathrun, .tag-hns { background: rgba(76, 88, 68, .18); border-color: rgba(76, 88, 68, .4); }
.tag-surf, .tag-kz { background: rgba(0, 99, 177, .12); border-color: rgba(0, 99, 177, .3); }
.sb-table th button { background: none; border: 0; padding: 0; font: inherit; color: inherit; text-transform: inherit; letter-spacing: inherit; }
.sb-table th button[aria-sort]::after { content: " ↓"; }
.sb-table th button[aria-sort="ascending"]::after { content: " ↑"; }
.sb-empty { padding: 28px; text-align: center; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--radius); }
.show-sm { display: none; }
@media (max-width: 700px) { .hide-sm { display: none; } .show-sm { display: inline; } .sb-table td.sb-name { min-width: 0; } }

/* ------------------------------------------------------------------ HUD lab */
.hud-grid { display: grid; gap: 24px; align-items: start; }
@media (min-width: 1000px) { .hud-grid { grid-template-columns: minmax(0, 1.4fr) minmax(320px, 1fr); } .hud-stage { position: sticky; top: 88px; } }
.hud-stage { position: relative; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; background: #8a7a55 var(--shot, none) center / cover; border: 1px solid var(--line); }
.hud-stage[data-stage="night"] { background: #1a2130 var(--shot, none) center / cover; background-blend-mode: multiply; }
.hud-stage[data-stage="sky"] { background: linear-gradient(#8cc3ee, #d9ecf8 70%, #b9a27a 70%); }
.hud-stage canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hud-bar { position: absolute; inset: auto 0 10px 0; display: flex; justify-content: space-between; align-items: flex-end; padding: 0 16px; color: var(--hud, #ffa000); font: 700 clamp(16px, 3vw, 30px)/1 var(--font-display); text-shadow: 0 0 1px rgba(0, 0, 0, .5); opacity: .85; pointer-events: none; }
.hud-num { display: flex; align-items: center; gap: 6px; }
.hud-num i { font-style: normal; opacity: .8; }
.hud-money { position: absolute; inset-inline-end: 16px; bottom: 44px; }
.hud-bgs { position: absolute; top: 10px; inset-inline-end: 10px; display: flex; gap: 6px; }
.hud-bgs .chip { background: rgba(0, 0, 0, .45); color: #fff; border-color: rgba(255, 255, 255, .3); backdrop-filter: blur(4px); }
.hud-bgs .chip.is-on { background: #fff; color: #111; }
.hud-presets .chip { background: #3e4637; color: #dee5d7; border-color: #8c9480; }
.hud-presets .chip:hover { border-color: #c4b550; }
.hud-out .path { font-weight: 700; margin: 16px 0 8px; color: var(--muted); }
.outlist { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; margin: 0 0 8px; }
.outlist div { padding: 10px 12px; border-radius: 10px; background: var(--surface-2); border: 1px solid var(--line); }
.outlist dt { font-size: .75rem; color: var(--muted); }
.outlist dd { margin: 2px 0 0; font-weight: 700; display: flex; align-items: center; gap: 8px; }
.swatch { width: 16px; height: 16px; border-radius: 4px; border: 1px solid rgba(0, 0, 0, .2); }

/* ------------------------------------------------------------------ next guides, 404, hub */
.next-guides ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); }
.next-guides a { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; height: 100%; }
.next-guides a:hover { border-color: var(--accent); }
.next-guides a > .icon { color: var(--accent); width: 28px; height: 28px; }
.next-guides b { display: block; font-family: var(--font-display); font-size: 1.1rem; }
.next-guides small { color: var(--muted); font-size: .85rem; line-height: 1.4; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.e404 { text-align: center; padding-block: 40px; }
.e404 .lead { margin-inline: auto; }
.e404-cross { width: 120px; height: 120px; margin: 0 auto 16px; color: var(--accent); }
.e404-cross .icon { width: 100%; height: 100%; stroke-width: 1; animation: sway 3s ease-in-out infinite; }
@keyframes sway { 50% { transform: translate(8px, -6px); } }
.langgrid { list-style: none; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); }
.langgrid a { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 10px; background: var(--surface); border: 1px solid var(--line); color: var(--text); text-decoration: none; }

/* ------------------------------------------------------------------ footer */
.footer { margin-top: 80px; background: #1b1f18; color: #c9d0bd; border-top: 4px solid var(--accent); }
.footer a { color: #e6eadf; }
.footer .brand { color: #e6eadf; margin-bottom: 14px; }
.footer .brand-sub { color: #a6ad99; }
.footer-grid { display: grid; gap: 32px; padding-block: 48px 32px; }
@media (min-width: 860px) { .footer-grid { grid-template-columns: 1.3fr .8fr 1.6fr; } }
.footer h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .12em; color: #a6ad99; margin-bottom: 14px; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.footer-langs ul { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px 12px; font-size: .9rem; }
.footer a { text-decoration: none; }
.footer a:hover { text-decoration: underline; }
.footer a[aria-current] { color: var(--accent); }
.footer-small { font-size: .85rem; color: #a6ad99; }
.footer-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-block: 18px 28px; border-top: 1px solid #333b2d; font-size: .82rem; color: #8c9480; }
.footer-bottom p { margin: 0; }

/* ------------------------------------------------------------------ lightbox, toast */
.lightbox { position: fixed; inset: 0; z-index: 90; background: rgba(10, 12, 8, .92); display: grid; place-items: center; padding: 56px 12px; }
.lightbox[hidden] { display: none; }
.lightbox-img { max-width: min(1400px, 100%); max-height: 100%; object-fit: contain; border-radius: 8px; }
.lightbox .iconbtn { position: absolute; color: #fff; border-color: rgba(255, 255, 255, .3); background: rgba(0, 0, 0, .4); }
.lightbox-close { top: 12px; inset-inline-end: 12px; }
.lightbox-prev { inset-inline-start: 12px; top: 50%; }
.lightbox-next { inset-inline-end: 12px; top: 50%; }
.toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 95; background: var(--text); color: var(--bg); padding: 12px 18px; border-radius: 12px; box-shadow: var(--shadow); font-weight: 600; max-width: calc(100vw - 32px); }

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
    .hero-visual .vgui { transform: none; }
}
@media print { .topbar, .footer, .share, .hero-visual { display: none; } }

/* RTL: commands, addresses and client replicas stay left-to-right like the game itself */
code, .console, .sb-addr, .vgui, .fakepath { direction: ltr; unicode-bidi: isolate; }
.console { text-align: left; }

/* ------------------------------------------------------------------ server monitor */
.sb-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 0 0 16px; }
.sb-stats div { padding: 14px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); }
.sb-stats dt { display: flex; align-items: center; gap: 8px; font-size: .75rem; text-transform: uppercase; letter-spacing: .07em; color: var(--muted); }
.sb-stats dd { margin: 4px 0 0; font: 700 1.6rem/1.1 var(--font-display); font-variant-numeric: tabular-nums; }
.sb-live dd { font-size: 1.1rem; color: var(--muted); }
.live-dot { width: 8px; height: 8px; border-radius: 50%; background: #2fbf4a; box-shadow: 0 0 0 0 rgba(47, 191, 74, .6); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(47, 191, 74, 0); } 100% { box-shadow: 0 0 0 0 rgba(47, 191, 74, 0); } }
.sb-maps { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 20px; }
.sb-maps-label { display: inline-flex; align-items: center; gap: .4em; font-weight: 700; font-size: .88rem; margin-inline-end: 4px; }
.sb-maps .chip { font-family: var(--font-mono); font-weight: 500; }
.sb-row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.sb-row .sb-search { flex: 1 1 280px; }
.sb-sort { display: inline-flex; align-items: center; gap: 8px; font-size: .9rem; color: var(--muted); }
.sb-sort select, .chip-select { min-height: 40px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--surface); padding: 0 10px; color: var(--text); }
.chip-select { border-radius: 999px; min-height: 36px; font-weight: 600; font-size: .88rem; }
.chip-select.is-on { background: var(--text); color: var(--bg); }
.sb-table .num { text-align: end; font-variant-numeric: tabular-nums; color: var(--muted); }
.sb-act { white-space: nowrap; }
.sb-act .btn { margin-inline-end: 4px; }
.botcount { display: block; font-size: .72rem; color: var(--muted); margin-top: 2px; }
.sb-table tr.is-bots .sb-name b { color: var(--muted); font-weight: 500; }
.sb-table tr.is-bots .fill { background: var(--surface-2); }
.tag-knife, .tag-fun { background: rgba(196, 181, 80, .2); border-color: rgba(196, 181, 80, .5); }
.tag-jump { background: rgba(0, 99, 177, .12); border-color: rgba(0, 99, 177, .3); }
.tag-war3 { background: rgba(120, 70, 160, .14); border-color: rgba(120, 70, 160, .35); }
.hide-md { }
@media (max-width: 980px) { .hide-md { display: none; } }
@media (max-width: 700px) { .sb-act .btn span { display: none; } .sb-act .btn { padding: 6px 10px; } .sb-act .iconbtn { display: none; } }
.toast a { color: var(--accent); font-weight: 700; margin-inline-start: 4px; }

/* server monitor: internal links to mode / country landing pages */
.facet-links { display: grid; gap: 24px; }
@media (min-width: 900px) { .facet-links { grid-template-columns: 1fr 1fr; } .facet-links > p { grid-column: 1 / -1; } }
.facet-links ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.facet-links a { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--text); text-decoration: none; font-weight: 600; font-size: .9rem; }
.facet-links a:hover { border-color: var(--accent); }
.facet-links a[aria-current] { background: var(--text); color: var(--bg); border-color: var(--text); }
.facet-links small { color: var(--muted); font-weight: 500; }
.facet-links a[aria-current] small { color: inherit; opacity: .7; }
.facet-links .flag { width: 18px; height: 18px; }

/* ------------------------------------------------------------------ hero: build cover in a game window */
.gameshot { position: relative; margin: 0; border-radius: 12px; overflow: hidden; background: #0d0f0b;
    box-shadow: 0 40px 80px -30px rgba(20, 24, 16, .6), 0 0 0 1px rgba(0, 0, 0, .25), 0 0 120px -20px rgba(255, 160, 0, .35);
    transform: perspective(1400px) rotateY(-7deg) rotateX(2deg); transform-origin: left center; transition: transform .6s ease; }
.gameshot:hover { transform: none; }
.is-rtl .gameshot { transform: perspective(1400px) rotateY(7deg) rotateX(2deg); transform-origin: right center; }
.gameshot-bar { display: flex; align-items: center; gap: 6px; padding: 8px 12px; background: #4c5844; color: #dee5d7; font: 12px var(--font-vgui); border-bottom: 1px solid #292c21; }
.gameshot-bar span { width: 9px; height: 9px; border-radius: 50%; background: #8c9480; }
.gameshot-bar span:first-child { background: #ffa000; }
.gameshot-bar b { font-weight: 400; margin-inline-start: 6px; }
.gameshot img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; }
@media (prefers-reduced-motion: reduce) { .gameshot { transform: none; } }

/* ------------------------------------------------------------------ screenshots: bento grid */
.shots-count { font: 600 .9rem var(--font); color: var(--muted); background: var(--surface-2); border: 1px solid var(--line); border-radius: 99px; padding: 1px 9px; }
.bento { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
.bento li { min-width: 0; }
.bento .bento-big { grid-column: 1 / -1; }
.bento .bento-hidden { display: none; }
.bento .shot { position: relative; height: 100%; aspect-ratio: 16 / 9; }
@media (min-width: 760px) {
    .bento { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; }
    .bento .bento-big { grid-column: span 2; grid-row: span 2; }
    .bento .shot { aspect-ratio: auto; }
    .bento .bento-big .shot { aspect-ratio: 16 / 9; }
    .bento-few { grid-template-columns: repeat(3, 1fr); }
}
.bento .shot img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.bento .shot::after { content: ""; position: absolute; inset: 0; background: linear-gradient(transparent 60%, rgba(0, 0, 0, .25)); opacity: 0; transition: opacity .2s; }
.bento .shot:hover::after { opacity: 1; }
.bento-more { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(15, 18, 12, .55); color: #fff; font: 700 2rem var(--font-display); backdrop-filter: blur(2px); }

/* ------------------------------------------------------------------ lightbox: counter + thumbnails */
.lightbox { grid-template-rows: minmax(0, 1fr) auto; gap: 12px; place-items: stretch; }
.lightbox-stage { margin: 0; min-height: 0; position: relative; width: 100%; height: 100%; }
.lightbox-stage .lightbox-img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: contain; border-radius: 0; }
.lightbox-count { position: absolute; top: -44px; left: 50%; transform: translateX(-50%); color: #fff; font: 600 .95rem var(--font); opacity: .85; }
.lightbox-thumbs { display: flex; gap: 8px; justify-content: center; overflow-x: auto; max-width: 100%; padding: 4px; scrollbar-width: none; }
.lightbox-thumbs button { flex: none; width: 96px; aspect-ratio: 16 / 9; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #000; opacity: .55; cursor: pointer; }
.lightbox-thumbs button[aria-selected="true"] { border-color: var(--accent); opacity: 1; }
.lightbox-thumbs img { width: 100%; height: 100%; object-fit: cover; }
.lightbox.is-single .lightbox-nav { display: none; }
@media (max-width: 600px) { .lightbox-nav { display: none; } .lightbox-thumbs button { width: 64px; } }


/* ------------------------------------------------------------------ back to top: round, scroll-progress ring */
.to-top {
    --size: 52px;
    position: fixed; inset-inline-end: 22px; bottom: 22px; z-index: 40;
    width: var(--size); height: var(--size); padding: 0; border: 0; border-radius: 50%;
    display: grid; place-items: center;
    background: var(--surface); color: var(--text); cursor: pointer;
    box-shadow: 0 6px 20px rgba(20, 24, 16, .18), 0 0 0 1px var(--line);
    opacity: 0; transform: translateY(14px) scale(.85);
    transition: opacity .25s ease, transform .3s cubic-bezier(.2, .9, .3, 1.2), box-shadow .2s ease, background-color .2s ease;
}
.to-top.is-on { opacity: 1; transform: none; }
.to-top:hover { box-shadow: 0 10px 26px rgba(255, 160, 0, .28), 0 0 0 1px var(--accent); }
.to-top:active { transform: scale(.94); }
.to-top:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
.to-top-ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); }
.is-rtl .to-top-ring { transform: rotate(-90deg) scaleY(-1); }
.to-top-track, .to-top-bar { fill: none; stroke-width: 3; }
.to-top-track { stroke: var(--line); }
.to-top-bar { stroke: var(--accent); stroke-linecap: round; transition: stroke-dashoffset .12s linear; }
.to-top-arrow { position: relative; width: 22px; height: 22px; transition: transform .25s ease; }
.to-top:hover .to-top-arrow { transform: translateY(-3px); }
.to-top.is-done { background: var(--accent); color: var(--on-accent); }
.to-top.is-done .to-top-track { stroke: transparent; }
@media (max-width: 600px) { .to-top { --size: 46px; inset-inline-end: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) {
    .to-top, .to-top-bar, .to-top-arrow { transition: none; }
    .to-top { transform: none; }
    .to-top:hover .to-top-arrow { transform: none; }
}

/* ------------------------------------------------------------------ sticky footer: short pages keep the footer at the bottom */
body { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body > .main { flex: 1 0 auto; }
body > .topbar, body > .crumbs, body > .footer { flex-shrink: 0; }

/* server monitor: favourite star — big enough to notice, clear on/off states */
.favbtn { width: 40px; height: 40px; padding: 0; border: 0; border-radius: 50%; background: none; color: var(--muted);
    display: grid; place-items: center; cursor: pointer; transition: color .15s ease, background-color .15s ease, transform .15s ease; }
.favbtn .icon { width: 22px; height: 22px; stroke-width: 1.8; }
.favbtn:hover { color: var(--accent); background: rgba(255, 160, 0, .12); }
.favbtn[aria-pressed="true"] { color: var(--accent); }
.favbtn[aria-pressed="true"] .icon { fill: currentColor; }
.favbtn.is-pop .icon { animation: favpop .3s cubic-bezier(.2, .9, .3, 1.4); }
@keyframes favpop { 0% { transform: scale(.6); } 100% { transform: scale(1); } }
.sb-table td:first-child { width: 48px; padding-inline: 6px 0; }

/* map column: long map names get "…" too; below 980px the map moves under the server address */
.sb-table td code[title] { display: inline-block; max-width: 150px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: middle; }
.show-md { display: none; }
@media (max-width: 980px) { .show-md { display: inline; } }
/* phones: each server row becomes a compact card — the name gets the full width (max 2 lines, "…") */
@media (max-width: 560px) {
    .sb-table thead { display: none; }
    .sb-table tr { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; grid-template-areas: "fav name name" "fav players act"; align-items: center; column-gap: 8px; row-gap: 8px; padding: 12px 12px 12px 4px; border-bottom: 1px solid var(--line); }
    .sb-table tbody tr:last-child { border-bottom: 0; }
    .sb-table td { border: 0; padding: 0; }
    .sb-table td:first-child { grid-area: fav; width: auto; padding: 0; align-self: center; }
    .sb-table td.sb-name { grid-area: name; width: auto; max-width: none; min-width: 0; }
    .sb-table td:nth-child(4) { grid-area: players; display: flex; align-items: center; gap: 8px; }
    .sb-table td.sb-act { grid-area: act; }
    .sb-table .botcount { display: inline; margin: 0; }
    .sb-act .btn span { display: inline; }
    .sb-act .btn { padding: 6px 14px; }
    .sb-name b { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: break-word; }
}
