/* DayZ and ARK server status pages (/dayz-server-status/, /ark-server-status/). System fonts, no framework. */

:root {
    color-scheme: light;
    --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", sans-serif;
    --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
    --bg: #F4F4F1; --surface: #FFFFFF; --surface-2: #F9F9F7; --sunken: #EDEDE9;
    --ink: #121214; --ink-2: #3B3B41; --muted: #62626A;
    --line: #E3E3DE; --line-2: #D0D0CA;
    --focus: #4F5BD5; --good: #0B7A45; --good-bg: #E5F3EB; --bad: #B4322A; --bad-bg: #FBEAE8; --warn: #8A5A00; --warn-bg: #FBF1DC;
    --btn: #121214; --btn-ink: #FFFFFF;
    --grid: #ECECE7; --brand: #FF4757; --tld: #C62A3C;
    --accent: #56752A; --accent-wash: rgba(86, 117, 42, .12);
    --shadow: 0 1px 2px rgba(18, 18, 20, .04), 0 14px 32px -20px rgba(18, 18, 20, .22);
    --shadow-pop: 0 18px 48px -12px rgba(18, 18, 20, .28);
    --r-lg: 14px; --r-md: 10px; --r-sm: 8px;
    --wrap: 1120px; --gutter: 24px;
}
body[data-game="ark"] { --accent: #0F7C80; --accent-wash: rgba(15, 124, 128, .12); }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
        --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #A2A2AB;
        --line: #27272B; --line-2: #37373D;
        --focus: #8E96FF; --good: #46D08A; --good-bg: rgba(70, 208, 138, .12); --bad: #FF7B70; --bad-bg: rgba(255, 123, 112, .12); --warn: #E8B04B; --warn-bg: rgba(232, 176, 75, .12);
        --btn: #F3F3F1; --btn-ink: #121214; --grid: #232327; --tld: #FF5C6C;
        --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
        --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .7);
    }
    :root:not([data-theme="light"]) body[data-game="dayz"] { --accent: #A3C46A; --accent-wash: rgba(163, 196, 106, .14); }
    :root:not([data-theme="light"]) body[data-game="ark"] { --accent: #4CC9CC; --accent-wash: rgba(76, 201, 204, .14); }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #0D0D0F; --surface: #161618; --surface-2: #1B1B1E; --sunken: #101012;
    --ink: #F3F3F1; --ink-2: #CFCFD4; --muted: #A2A2AB;
    --line: #27272B; --line-2: #37373D;
    --focus: #8E96FF; --good: #46D08A; --good-bg: rgba(70, 208, 138, .12); --bad: #FF7B70; --bad-bg: rgba(255, 123, 112, .12); --warn: #E8B04B; --warn-bg: rgba(232, 176, 75, .12);
    --btn: #F3F3F1; --btn-ink: #121214; --grid: #232327; --tld: #FF5C6C;
    --shadow: inset 0 1px 0 rgba(255, 255, 255, .03), 0 16px 40px -24px rgba(0, 0, 0, .9);
    --shadow-pop: 0 18px 48px -12px rgba(0, 0, 0, .7);
}
:root[data-theme="dark"] body[data-game="dayz"] { --accent: #A3C46A; --accent-wash: rgba(163, 196, 106, .14); }
:root[data-theme="dark"] body[data-game="ark"] { --accent: #4CC9CC; --accent-wash: rgba(76, 201, 204, .14); }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 15px/1.5 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, p, dl, dd, ol, ul, fieldset { margin: 0; }
ul, ol { padding: 0; list-style: none; }
code { font-family: var(--mono); font-size: .92em; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.i { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.wrap { width: 100%; max-width: var(--wrap); margin-inline: auto; padding-inline: var(--gutter); }
html:not(.js) .js-only { display: none !important; }
html.js .nojs-only { display: none !important; }
.skip { position: absolute; z-index: 80; left: 12px; top: -60px; padding: 10px 14px; border-radius: var(--r-sm); background: var(--btn); color: var(--btn-ink); font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding-inline: 16px; border: 1px solid transparent; border-radius: var(--r-sm); font-size: 13.5px; font-weight: 600; line-height: 1; white-space: nowrap; text-decoration: none; cursor: pointer; }
.btn-ink { background: var(--btn); color: var(--btn-ink); }
.btn-ink:hover { opacity: .88; }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.icon-btn { display: inline-grid; place-items: center; flex: none; width: 36px; height: 36px; padding: 0; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--surface); color: var(--ink-2); cursor: pointer; }
.icon-btn:hover { color: var(--ink); border-color: var(--line-2); }
.link-btn { padding: 2px 0; border: 0; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--line-2); cursor: pointer; }
.link-btn:hover { color: var(--ink); text-decoration-color: currentColor; }

/* ---------- header ---------- */
.site-head { position: relative; z-index: 40; background: var(--surface); border-bottom: 1px solid var(--line); }
.head-row { display: flex; align-items: center; gap: 20px; height: 56px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 700; letter-spacing: -.01em; text-decoration: none; white-space: nowrap; }
.brand-mark { width: 28px; height: 28px; }
.tld { color: var(--tld); }
.head-nav { display: flex; gap: 20px; margin-left: auto; }
.head-nav a { padding-block: 17px; border-bottom: 2px solid transparent; color: var(--ink-2); font-size: 13.5px; text-decoration: none; white-space: nowrap; }
.head-nav a:hover { color: var(--ink); }
.head-nav a[aria-current="page"] { color: var(--ink); font-weight: 600; border-bottom-color: var(--accent); }
.head-tools { display: flex; align-items: center; gap: 8px; }
.theme-toggle .i-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .i-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .i-moon { display: none; }
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .theme-toggle .i-sun { display: block; }
    :root:not([data-theme="light"]) .theme-toggle .i-moon { display: none; }
}

/* ---------- page head + search ---------- */
main { padding-bottom: 40px; }
.page-head { padding-block: 28px 18px; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; color: var(--muted); font-size: 12.5px; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--ink); text-decoration: underline; }
.crumbs [aria-current] { max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
h1 { font-size: 32px; line-height: 1.15; font-weight: 700; letter-spacing: -.02em; overflow-wrap: anywhere; }
.lede { max-width: 68ch; margin-top: 10px; color: var(--ink-2); font-size: 15px; line-height: 1.55; }
.notice { margin-top: 20px; padding: 14px 16px; border: 1px solid var(--line-2); border-left: 3px solid var(--warn); border-radius: var(--r-md); background: var(--warn-bg); font-size: 14px; }
.notice code { overflow-wrap: anywhere; }

.search { position: relative; max-width: 640px; margin-bottom: 18px; }
.search-label { display: block; margin-bottom: 8px; color: var(--ink-2); font-size: 13px; font-weight: 600; }
.search-box { display: flex; align-items: center; gap: 10px; height: 50px; padding-inline: 14px 5px; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); }
.search-box:focus-within { border-color: var(--ink); }
.search-box .i { color: var(--muted); }
.search-box input { flex: 1; min-width: 0; height: 100%; border: 0; background: none; outline: none; font-size: 15px; }
.search-box input::-webkit-search-cancel-button { display: none; }
.search-box .btn { height: 40px; }

/* ---------- cards ---------- */
.card { position: relative; margin-bottom: 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.card-title { font-size: 16px; line-height: 1.3; font-weight: 650; letter-spacing: -.005em; }
.card-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.more-link { margin-top: 12px; font-size: 13.5px; }
.more-link a { color: var(--ink-2); font-weight: 600; text-underline-offset: 3px; }
.hint { margin-top: 10px; color: var(--muted); font-size: 12.5px; }

/* the counter: accent top bar, ring and chart line are the only places the game color shows */
.counter { overflow: hidden; padding-top: 24px; }
.counter::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--accent); }
.who { display: flex; align-items: center; gap: 14px; }
.ring { display: grid; place-items: center; flex: none; width: 52px; height: 52px; border: 2px solid var(--accent); border-radius: 50%; background: var(--accent-wash); color: var(--accent); }
.ring .i { width: 24px; height: 24px; }
.who-text { min-width: 0; flex: 1; }
.who-name { font-size: 16px; line-height: 1.3; font-weight: 650; overflow-wrap: anywhere; }
.who-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; margin-top: 3px; color: var(--muted); font-size: 13px; }
.who-meta code { color: var(--ink-2); }
#gs-updated { display: block; }
.pill { display: inline-flex; align-items: center; gap: 7px; flex: none; height: 28px; padding-inline: 11px; border-radius: 999px; background: var(--sunken); color: var(--ink-2); font-size: 12.5px; font-weight: 650; white-space: nowrap; }
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.pill.is-on { background: var(--good-bg); color: var(--good); }
.pill.is-on .dot { background: var(--good); }
.pill.is-full { background: var(--warn-bg); color: var(--warn); }
.pill.is-full .dot { background: var(--warn); }
.pill.is-off { background: var(--bad-bg); color: var(--bad); }
.pill.is-off .dot { background: var(--bad); }
.count-block { margin-top: 16px; }
.count { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; font-size: 64px; line-height: 1.05; font-weight: 750; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.count-of { color: var(--muted); font-size: 24px; font-weight: 600; letter-spacing: -.01em; }
.count-label { margin-top: 2px; color: var(--ink-2); font-size: 14px; }
.slots { display: block; height: 6px; margin-top: 14px; border-radius: 999px; background: var(--sunken); overflow: hidden; }
.slots i { display: block; height: 100%; border-radius: inherit; background: var(--accent); }
.updated { margin-top: 10px; color: var(--muted); font-size: 12.5px; }
.bump { animation: bump .6s ease; }
@keyframes bump { 40% { color: var(--accent); } }
@media (prefers-reduced-motion: reduce) { .bump { animation: none; } }

.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin-top: 16px; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--line); overflow: hidden; }
.counter .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.stats > div { padding: 12px 14px; background: var(--surface); }
.stats dt { color: var(--muted); font-size: 12px; font-weight: 600; }
.stats dd { margin-top: 2px; font-size: 20px; font-weight: 700; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.stats dd.sub { margin: 0; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: 0; }

/* ---------- chart ---------- */
.gs-chart { position: relative; height: 200px; margin: 18px 0 0; padding: 0 0 22px; }
.gs-chart .gs-svg { width: 100%; height: 178px; overflow: visible; }
.gs-grid { fill: none; stroke: var(--grid); stroke-width: 1; }
.gs-area { fill: var(--accent-wash); }
.gs-line { fill: none; stroke: var(--accent); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; }
.gs-y, .gs-x { position: absolute; color: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; pointer-events: none; }
.gs-y { left: 0; padding: 0 4px; border-radius: 4px; background: var(--surface); }
.gs-y1 { top: -2px; }
.gs-y2 { top: 80px; }
.gs-x { bottom: 0; }
.gs-x0 { left: 0; }
.gs-x1 { right: 0; }
.gs-dot { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border: 2px solid var(--surface); border-radius: 50%; background: var(--accent); pointer-events: none; }
.chart-empty { display: grid; place-items: center; height: 178px; border: 1px dashed var(--line-2); border-radius: var(--r-md); color: var(--muted); font-size: 13.5px; text-align: center; padding: 16px; }
.chart-tip { position: absolute; z-index: 5; padding: 6px 9px; border-radius: 6px; background: var(--btn); color: var(--btn-ink); font-size: 12px; font-weight: 600; white-space: nowrap; pointer-events: none; font-variant-numeric: tabular-nums; }
.seg { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunken); }
.seg button, .seg label { height: 28px; padding-inline: 11px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: 12.5px; font-weight: 600; line-height: 28px; cursor: pointer; }
.seg button[aria-pressed="true"], .seg input:checked + label { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg input:focus-visible + label { outline: 2px solid var(--focus); outline-offset: 1px; }

/* ---------- actions + studio ---------- */
.actions { display: flex; flex-wrap: wrap; gap: 8px; margin: -4px 0 16px; }
.act { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding-inline: 14px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); color: var(--ink); font-size: 13.5px; font-weight: 600; text-decoration: none; cursor: pointer; }
.act:hover { border-color: var(--ink); }
.act-primary { background: var(--btn); border-color: var(--btn); color: var(--btn-ink); }
.act-primary:hover { opacity: .88; border-color: var(--btn); }
.studio { margin-bottom: 16px; padding: 18px 20px 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); box-shadow: var(--shadow); }
.studio-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 16px; }
.studio-head .card-title { margin-right: auto; }
.tabs { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--sunken); }
.tabs button { height: 30px; padding-inline: 12px; border: 0; border-radius: 6px; background: none; color: var(--ink-2); font-size: 13px; font-weight: 600; cursor: pointer; }
.tabs button[aria-selected="true"] { background: var(--surface); color: var(--ink); box-shadow: 0 1px 2px rgba(0, 0, 0, .08); }
.studio-body { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 20px; }
.opts { padding: 0; border: 0; }
.opts legend { margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.w-stage .w { width: 100%; }
.w-stage { display: grid; place-items: center; min-height: 150px; margin-top: 12px; padding: 12px; border-radius: var(--r-md); background: repeating-conic-gradient(var(--sunken) 0 25%, var(--surface-2) 0 50%) 0 0 / 16px 16px; }
.field-label { display: block; margin-bottom: 6px; color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.field { display: block; width: 100%; padding: 10px 12px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface-2); font-size: 12.5px; resize: none; }
.mono { font-family: var(--mono); }
.panel .btn { margin-top: 10px; }
.steps { margin-top: 12px; padding-left: 20px; list-style: decimal; color: var(--ink-2); font-size: 13px; }
.steps li + li { margin-top: 4px; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.btn.is-done { background: var(--good); border-color: var(--good); color: #fff; }

/* the widget (preview here, the real one on /embed/) */
.w { width: 320px; max-width: 100%; padding: 14px 18px; border-radius: 12px; background: #fff; color: #121214; box-shadow: 0 1px 2px rgba(0, 0, 0, .06), 0 8px 24px -12px rgba(0, 0, 0, .3); }
.w[data-theme="dark"] { background: #161618; color: #F3F3F1; }
.w[data-theme="transparent"] { background: none; box-shadow: none; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, .8); }
.w p { margin: 0; }
.w-name { overflow: hidden; font-size: 14px; font-weight: 650; text-overflow: ellipsis; white-space: nowrap; }
.w-num { font-size: 40px; line-height: 1.1; font-weight: 750; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.w-label { opacity: .75; font-size: 12.5px; }

/* ---------- server table ---------- */
.card.table-card { padding: 20px 0 12px; }
.table-card > .card-title, .table-card > .filters, .table-card > .table-note { margin-inline: 20px; }
.filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; margin-top: 12px; }
.filters .f { display: flex; flex-direction: column; gap: 4px; min-width: 140px; }
.filters label { color: var(--ink-2); font-size: 12.5px; font-weight: 600; }
.filters select { height: 38px; padding-inline: 10px 30px; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--surface); font-size: 13.5px; }
.table-note { margin-top: 12px; color: var(--muted); font-size: 12.5px; }
.table-wrap { margin-top: 10px; overflow-x: auto; }
.gs-table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.gs-table th { padding: 8px 10px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 12px; font-weight: 600; text-align: left; white-space: nowrap; }
.gs-table td { padding: 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.gs-table tr:last-child td { border-bottom: 0; }
.gs-table tbody tr:hover { background: var(--surface-2); }
.gs-table .c-rank { width: 44px; padding-left: 20px; color: var(--muted); font-variant-numeric: tabular-nums; }
.gs-table .c-name { min-width: 0; }
.gs-table td.c-name a { display: block; max-width: 460px; overflow: hidden; font-weight: 600; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gs-table td.c-name a:hover { text-decoration: underline; }
.gs-table td.c-name small { display: none; color: var(--muted); font-size: 12px; }
.gs-table .c-players { width: 120px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.gs-table td.c-players b { font-weight: 700; }
.c-max { color: var(--muted); }
.c-bar { display: block; width: 80px; height: 4px; margin-top: 5px; border-radius: 4px; background: var(--sunken); overflow: hidden; }
.c-bar i { display: block; height: 100%; background: var(--accent); }
.gs-table .c-map, .gs-table .c-mode, .gs-table .c-type { color: var(--ink-2); white-space: nowrap; }
.gs-table .c-type { padding-right: 20px; }
.more-btn { display: flex; margin: 10px auto 4px; }

/* ---------- maps + split ---------- */
.duo { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.map-bars { margin-top: 12px; }
.map-bars li + li { margin-top: 2px; }
.map-bars a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 8px 6px; border-radius: var(--r-sm); text-decoration: none; }
.map-bars a:hover { background: var(--surface-2); }
.mb-name { font-weight: 600; font-size: 14px; }
.mb-num { font-weight: 700; font-size: 14px; text-align: right; font-variant-numeric: tabular-nums; }
.mb-num small { color: var(--muted); font-weight: 500; font-size: 12px; }
.mb-bar { grid-column: 1 / -1; height: 6px; border-radius: 6px; background: var(--sunken); overflow: hidden; }
.mb-bar i { display: block; height: 100%; background: var(--accent); }
.split-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 12px; margin-top: 16px; }
.split-row p { display: flex; flex-direction: column; font-size: 12.5px; color: var(--muted); }
.split-row p + p { text-align: right; align-items: flex-end; }
.split-row .split-bar { grid-column: 1 / -1; }
.split-row b { color: var(--ink); font-size: 20px; font-weight: 700; font-variant-numeric: tabular-nums; }
.split-bar { display: block; height: 8px; margin-top: 8px; border-radius: 8px; background: var(--sunken); overflow: hidden; }
.gs-fill { display: block; height: 100%; background: var(--accent); }

/* ---------- details, lists, prose ---------- */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 24px; margin-top: 10px; }
.kv > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.kv dt { color: var(--muted); }
.kv dd { font-weight: 600; text-align: right; overflow-wrap: anywhere; }
.mods { margin-top: 14px; }
.mods summary { cursor: pointer; color: var(--ink-2); font-size: 13.5px; font-weight: 600; }
.mods ul { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.mods li { padding: 4px 9px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); font-size: 12.5px; }
.gs-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; margin-top: 10px; }
.gs-list a { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 13.5px; text-decoration: none; }
.gs-list a bdi { overflow: hidden; font-weight: 600; text-overflow: ellipsis; white-space: nowrap; }
.gs-list a span { flex: none; color: var(--muted); font-variant-numeric: tabular-nums; }
.gs-list a:hover bdi { text-decoration: underline; }
.card.more-servers { padding: 0; }
.more-servers summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px; cursor: pointer; list-style: none; text-align: left; }
.more-servers summary::-webkit-details-marker { display: none; }
.more-servers summary h2 { font-size: 16px; font-weight: 650; }
.more-servers summary::after { content: "Show"; flex: none; color: var(--muted); font-size: 13px; font-weight: 600; }
.more-servers[open] summary::after { content: "Hide"; }
.gs-links { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2px 18px; padding: 0 20px 18px; }
.gs-links a { display: block; overflow: hidden; padding: 5px 0; color: var(--ink-2); font-size: 13px; text-decoration: none; text-overflow: ellipsis; white-space: nowrap; }
.gs-links a:hover { color: var(--ink); text-decoration: underline; }
.prose { font-size: 15px; line-height: 1.65; }
.prose h2 { font-size: 20px; line-height: 1.3; letter-spacing: -.01em; }
.prose h3 { margin-top: 18px; font-size: 16px; }
.prose p { max-width: 72ch; margin-top: 10px; color: var(--ink-2); }
.prose a { text-underline-offset: 3px; }

/* Space-Node card: only spacing and the corner radius, the card keeps its own colors */
.gs-promo { margin: 0 0 16px; border-radius: var(--r-lg); }
.gs-promo .spacenode-promo-eyebrow, .gs-promo .spacenode-promo-title { display: block; }

/* ---------- ads: space reserved up front, never inside a card ---------- */
.gs-ad { margin: 8px auto 24px; text-align: center; }
.gs-ad-wide { min-height: 310px; }
.gs-ad-bottom { min-height: 130px; margin-top: 24px; }
.ad-label { margin: 0 0 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .08em; line-height: 16px; text-transform: uppercase; }
.gs-ad:has(ins[data-ad-status="unfilled"]) .ad-label { visibility: hidden; }

/* "More live counters" block from the server */
.more-tools { margin: 0 0 16px; padding: 20px; border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--surface); }
.more-tools h2 { font-size: 16px; font-weight: 650; }
.more-tools h3 { margin-top: 16px; font-size: 14px; font-weight: 650; }
.more-tools .creator-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.more-tools .creator-links a { display: inline-block; padding: 6px 12px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 13px; text-decoration: none; }
.more-tools .creator-links a:hover { border-color: var(--ink); }

/* ---------- footer ---------- */
.site-foot { margin-top: 24px; padding-block: 32px 24px; border-top: 1px solid var(--line); background: var(--surface); }
.foot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.foot-h { margin-bottom: 10px; font-size: 13px; font-weight: 700; }
.foot-grid li + li { margin-top: 6px; }
.foot-grid a { color: var(--ink-2); font-size: 13.5px; text-decoration: none; }
.foot-grid a:hover { color: var(--ink); text-decoration: underline; }
.foot-bottom { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 24px; color: var(--muted); font-size: 12.5px; }

/* ---------- smaller screens ---------- */
@media (max-width: 900px) {
    .duo { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .studio-body { grid-template-columns: minmax(0, 1fr); }
    .gs-links { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
    :root { --gutter: 16px; }
    .head-nav { display: none; }
    .head-tools { margin-left: auto; }
    h1 { font-size: 26px; }
    .page-head { padding-block: 20px 14px; }
    .card { padding: 16px; }
    .card.table-card { padding: 16px 0 8px; }
    .card.more-servers { padding: 0; }
    .more-servers summary { padding: 16px; }
    .gs-links { padding: 0 16px 16px; }
    .count { font-size: 52px; }
    /* the H1 already carries the full name */
    .who-name { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    .counter .stats, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .counter .stats > div:last-child:nth-child(odd) { grid-column: 1 / -1; }
    .kv, .gs-list { grid-template-columns: minmax(0, 1fr); }
    .gs-links { grid-template-columns: minmax(0, 1fr); }
    .table-card > .card-title, .table-card > .filters, .table-card > .table-note { margin-inline: 16px; }
    .filters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
    .filters .f { min-width: 0; }
    /* map names are long: the map select gets its own row */
    .filters .f:first-child { grid-column: 1 / -1; }
    .filters select { width: 100%; padding-inline: 8px 22px; }
    .gs-table .c-map, .gs-table .c-mode, .gs-table .c-type { display: none; }
    .gs-table .c-rank { width: 40px; padding: 10px 4px 10px 16px; }
    .gs-table td.c-name a { max-width: calc(100vw - 182px); }
    .gs-table td.c-name small { display: block; overflow: hidden; max-width: calc(100vw - 182px); text-overflow: ellipsis; white-space: nowrap; }
    .gs-table .c-players { width: 1%; padding: 10px 16px 10px 6px; }
    .c-bar { width: 56px; }
    .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .search-box .btn { padding-inline: 12px; }
}
@media (max-width: 380px) {
    .count { font-size: 44px; }
    .act { padding-inline: 11px; }
}
