:root {
  --bg: #0f1216;
  --panel: #161b21;
  --line: #262d36;
  --control-border: #737e8c;
  --text: #e4e7eb;
  --muted: #98a2ad;
  --link: #8ab4ff;
  --button: #1f2630;
  --label: #232a33;
  --online: #4fb67d;
  --offline: #7d8794;
  --accent: #3273f6;
}
:root {
  --fs-sm: 12px;
  --fs-base: 14px;
  --fs-md: 16px;
  --fs-lg: 20px;
  --fs-xl: 32px;
  --fw-normal: 400;
  --fw-bold: 600;
  --radius-sm: 6px;
  --radius: 10px;
}
/* The font is set on the root element too, so nothing on the page (or outside body) falls back to the browser's serif. */
html, body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.5 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
html { color-scheme: dark; }
body {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
}
a { color: var(--link); text-underline-offset: 2px; }
code, pre, kbd, samp, .row-address, .copy-row .address { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }
h1 { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.2; margin: 0 0 8px; color: var(--text); }
h2 { font-size: var(--fs-lg); font-weight: var(--fw-bold); line-height: 1.3; margin: 0 0 10px; color: var(--text); }
h3 { font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.35; color: var(--text); }
strong, b { font-weight: var(--fw-bold); }
.site-header, main, .site-footer {
  box-sizing: border-box;
  max-width: 1200px;
  margin: 0 auto;
  padding-left: 16px;
  padding-right: 16px;
}
.site-header {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 0 28px;
  padding-top: 8px;
  padding-bottom: 8px;
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  border-top: 3px solid var(--accent);
}
.wordmark { color: var(--text); font-weight: 700; font-size: var(--fs-lg); letter-spacing: -0.03em; text-decoration: none; padding: 6px 0; }
/* Both navs wrap by item, so the header holds at 320 px and the footer links never overflow. Links are 36 px high (24 px line, 6 px padding above and below), whatever the font size of the header or the footer. */
.site-header nav, .site-footer nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.site-header nav a, .site-footer nav a { color: var(--muted); text-decoration: none; line-height: 24px; padding: 6px 0; font-size: var(--fs-base); }
.header-nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.header-links { display: flex; flex-wrap: wrap; gap: 0 20px; }
.header-links a { color: var(--muted); text-decoration: none; line-height: 24px; padding: 6px 0; font-size: var(--fs-base); }
.site-header nav a:hover, .header-links a:hover, .site-footer a:hover { color: var(--text); }
/* The page the visitor is on: the text color and an underline, flat. */
.site-header nav a[aria-current="page"], .site-footer nav a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.header-links a[aria-current="page"] { color: var(--text); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 9px; }
.site-footer nav a[aria-current="page"] { text-underline-offset: 4px; text-decoration-thickness: 1px; }
/* Sign in and the one filled button of the header (Add server), on the right. */
.nav-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-left: auto; }
.nav-signin { color: var(--muted); text-decoration: none; font-size: var(--fs-base); line-height: 24px; padding: 6px 0; }
.nav-signin:hover { color: var(--text); }
main { padding-top: 28px; padding-bottom: 48px; }
main > h2 { margin-top: 40px; }
.method, .note, .crumb, .empty, .site-footer { color: var(--muted); }
.method { margin: 0 0 4px; font-size: var(--fs-base); }
/* The ad slot: flat, a muted outline, and not the site accent (DECISIONS 2026-10-23, ads never use the accent). */
.ad { margin: 0 0 14px; padding: 10px 14px; border: 1px solid var(--muted); border-radius: var(--radius-sm); font-size: var(--fs-base); }
.ad-label { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); margin-right: 8px; }
.note { font-size: var(--fs-base); margin: 12px 0 0; line-height: 1.5; }
.crumb { margin: 0 0 10px; font-size: var(--fs-base); }
/* Buttons. Secondary is the default look of every button and .button: an outline in the control color. Primary is filled
   with the link blue; it is used for the one main action of a page or form. */
select, input, button, .button {
  font: inherit;
  font-size: var(--fs-base);
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--control-border);
  border-radius: var(--radius-sm);
  padding: 7px 12px;
}
input::placeholder { color: var(--muted); opacity: 1; }
input[type="search"] { flex: 1 1 200px; min-width: 0; max-width: 320px; }
button, .button { background: transparent; cursor: pointer; text-decoration: none; display: inline-block; font-weight: var(--fw-bold); }
button:hover, .button:hover { background: var(--button); text-decoration: none; }
.apple-btn, .info-btn { display: inline-flex; align-items: center; justify-content: center; gap: 6px; font: inherit; font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: 1.5; padding: 7px 14px; border-radius: var(--radius-sm); border: 1px solid var(--control-border); background: transparent; color: var(--text); text-decoration: none; cursor: pointer; }
.apple-btn:hover, .info-btn:hover { background: var(--button); color: var(--text); text-decoration: none; }
.apple-btn-secondary { background: transparent; color: var(--text); }
.apple-btn-primary, .btn-primary { background: var(--link); border-color: var(--link); color: var(--bg); }
.apple-btn-primary:hover, .btn-primary:hover { background: var(--text); border-color: var(--text); color: var(--bg); }
.nav-add { display: inline-flex; align-items: center; padding: 5px 14px; border: 1px solid var(--link); border-radius: var(--radius-sm); background: var(--link); color: var(--bg); font-size: var(--fs-base); font-weight: var(--fw-bold); line-height: 24px; text-decoration: none; }
.nav-add:hover { background: var(--text); border-color: var(--text); color: var(--bg); text-decoration: none; }
/* A select is drawn the same in every browser: no native chrome, a small chevron in the wrapper that page() puts around it. */
.select { position: relative; display: inline-flex; max-width: 100%; vertical-align: middle; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 32px; min-width: 0; max-width: 100%; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 13px; top: 50%; width: 6px; height: 6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: translateY(-70%) rotate(45deg); pointer-events: none; }
/* The list controls: sort, search, Online only and Apply on one line, the layout switch at the end. No box around them. */
.list-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 24px; margin: 20px 0 8px; }
.filters {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin: 0;
  padding: 0;
}
.filters label { color: var(--muted); font-size: var(--fs-base); }
/* A label and its control stay together: the pair is one flex item of the form, so a narrow screen wraps the pair. */
.filters .field { display: flex; flex-wrap: nowrap; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
/* The Online only box: the label holds the box and its text, so the text is part of the click target. The box is 24 x 24 px
   (WCAG 2.5.8) and the label is 32 px high. The box is drawn here (a dark square, the link blue and a check when on), so it
   looks the same in every browser. */
.filters .field-check label { display: inline-flex; align-items: center; gap: 8px; min-height: 32px; cursor: pointer; color: var(--text); }
.filters .field-check input { width: 24px; height: 24px; margin: 0; padding: 0; accent-color: var(--link); appearance: none; -webkit-appearance: none; display: inline-grid; place-content: center; background: var(--bg); border: 1px solid var(--control-border); border-radius: var(--radius-sm); cursor: pointer; }
.filters .field-check input::before { content: ""; width: 10px; height: 5px; border-left: 2px solid var(--bg); border-bottom: 2px solid var(--bg); transform: translateY(-1px) rotate(-45deg); visibility: hidden; }
.filters .field-check input:checked { background-color: var(--link); border-color: transparent; }
.filters .field-check input:checked::before { visibility: visible; }
.filters .field select { min-width: 0; max-width: 100%; }
.filters .field-search { flex: 1 1 auto; max-width: 400px; }
.filters button { padding: 7px 16px; }
.clear { color: var(--muted); font-size: var(--fs-base); }
.view-switch { display: flex; align-items: center; gap: 12px; margin: 0; color: var(--muted); font-size: var(--fs-base); }
.view-switch a { color: var(--muted); text-decoration: none; }
.view-switch a:hover { color: var(--text); }
.view-switch a[aria-current="true"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
/* Popular game modes under the heading: plain links in one line. */
.mode-quickbar { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 12px 0 0; font-size: var(--fs-base); color: var(--muted); }
.mode-quickbar a { color: var(--link); text-decoration: none; }
.mode-quickbar a:hover { text-decoration: underline; }
.mode-quickbar a[aria-current="page"] { color: var(--text); text-decoration: underline; text-underline-offset: 4px; }
/* One line of numbers under a list heading: servers online, servers listed, and the time. Plain text, no box. */
.live-strip { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 4px 0 0; color: var(--muted); font-size: var(--fs-base); font-variant-numeric: tabular-nums; }
.live-strip strong { color: var(--text); font-weight: var(--fw-bold); }
.live-strip .note { margin: 0; font-size: var(--fs-base); }
/* The grid view: cards with a quiet outline, as many columns as fit at 280 px. */
.grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr)); gap: 12px; }
.card {
  display: flex;
  flex-direction: column;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  min-width: 0;
  overflow-wrap: anywhere;
}
/* The labels, the game mode and the address at the bottom of the card, centered above the Vote button (2026-11-23). */
.card-meta { margin-top: auto; padding-top: 10px; border-top: 1px solid var(--line); text-align: center; }
.card .card-meta .labels { display: flex; justify-content: center; margin: 0 0 4px; }
.card .card-meta .address { justify-content: center; margin: 0; }
.card p { margin: 0 0 6px; }
.card .card-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.card .card-name { font-weight: var(--fw-bold); color: var(--text); text-decoration: none; }
.card .card-name:hover { color: var(--link); }
.card .rank { color: var(--muted); font-variant-numeric: tabular-nums; font-weight: var(--fw-bold); font-size: var(--fs-base); }
.card .address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 4px; font-size: var(--fs-sm); color: var(--muted); }
.card-facts { grid-template-columns: 1fr; gap: 4px; margin: 12px 0; padding: 10px 0 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.card-facts div { display: flex; justify-content: space-between; gap: 12px; font-size: var(--fs-base); }
.card-vote { margin: 12px 0 0; }
.card-vote .vote-btn { width: 100%; }
.card-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel); flex-shrink: 0; }
/* Server tables. The wrapper scrolls a table that is wider than the page instead of clipping it. */
.table-scroll { overflow-x: auto; }
.table-scroll { margin: 8px 0 24px; }
.servers {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--fs-base);
  font-variant-numeric: tabular-nums;
}
.servers th, .servers td {
  text-align: left;
  vertical-align: middle;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
}
.servers th:first-child, .servers td:first-child { padding-left: 0; }
.servers th:last-child, .servers td:last-child { padding-right: 0; }
.servers th {
  color: var(--muted);
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  white-space: nowrap;
  padding-top: 8px;
  padding-bottom: 8px;
}
/* /site.js makes the headers of the list sortable: the header text stays plain, a small arrow shows the active column. */
.servers th[data-sortable="1"] { cursor: pointer; user-select: none; }
.servers .th-pill { display: inline-flex; align-items: center; gap: 6px; }
.servers th[data-sortable="1"]:hover .th-pill { color: var(--text); }
.servers .th-icon { display: inline-block; width: 0; height: 0; border-left: 4px solid transparent; border-right: 4px solid transparent; border-top: 5px solid currentColor; opacity: 0; }
.servers th[data-sortable="1"]:hover .th-icon { opacity: 0.5; }
.servers th[data-sort-active="1"] .th-pill { color: var(--text); }
.servers th[data-sort-active="1"] .th-icon { opacity: 1; }
.servers th[data-sort-active="1"][data-sort-dir="asc"] .th-icon { transform: rotate(180deg); }
.servers th[data-sortable="1"]:focus-visible { outline: none; }
.servers th[data-sortable="1"]:focus-visible .th-pill { outline: 2px solid var(--link); outline-offset: 2px; }
.servers tbody tr:hover { background: var(--panel); }
.servers td { white-space: nowrap; }
.servers td.rank { width: 2em; color: var(--muted); font-weight: var(--fw-bold); }
/* The top three: only the rank number gets a color (/site.js marks the cells). */
.servers tbody td.rank[data-top] { color: var(--online); }
.servers .server, .servers .server a { white-space: normal; }
.servers .server > a:first-child { font-weight: var(--fw-bold); font-size: var(--fs-md); line-height: 1.3; color: var(--text); text-decoration: none; }
.servers .server > a:first-child:hover { color: var(--link); }
.servers .server, .servers td[data-label="Map"] { min-width: 8em; }
/* Owner-controlled text (server name up to 128 characters, map up to 256) has no spaces to break at. A cell's
   min-content ignores overflow-wrap: break-word, only "anywhere" counts, and the max-width keeps the column bounded. */
.servers .server { position: relative; min-width: 14em; max-width: 30em; overflow-wrap: anywhere; }
.servers .server:has(.server-thumb) { padding-left: 64px; }
.servers .server-thumb { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel); }
.servers td[data-label="Map"] { min-width: 9em; max-width: 14em; white-space: normal; overflow-wrap: anywhere; color: var(--muted); }
.servers td[data-label="Players"] { color: var(--text); }
.servers td.vote { width: 1%; text-align: right; padding-top: 8px; padding-bottom: 8px; }
.servers .labels { display: inline-flex; margin-left: 8px; vertical-align: baseline; }
.servers:not(.info-table) .labels .label:not(.label-verified):not(.label-nsfw) { display: none; }
.servers:not(.info-table) .labels:not(:has(.label-verified, .label-nsfw)) { display: none; }
/* The line under a server name: its game mode, its address with Copy, and a status only when it is not online. */
.servers .address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 12px; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.row-status { display: block; margin-top: 2px; font-size: var(--fs-sm); color: var(--muted); }
.row-status .status { font-size: inherit; font-weight: var(--fw-normal); }
/* The information pages: prose is about 70 characters wide, tables use the full width of the page. */
.info h1 { margin-bottom: 14px; }
.info section { margin: 0 0 28px; }
.info h2 { margin: 0 0 8px; }
.info p, .info ul, .info ol { max-width: 70ch; margin: 0 0 12px; line-height: 1.6; }
.info ul, .info ol { padding-left: 22px; }
.info li { margin: 0 0 4px; }
.info table { margin: 8px 0 12px; }
.info .note { font-size: var(--fs-base); }
.info pre { margin: 8px 0 16px; padding: 10px 14px; background: var(--panel); border-radius: var(--radius-sm); overflow-x: auto; }
.info form { margin: 12px 0 24px; }
.info table:not(.servers):not(.admin-table) { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.info table:not(.servers):not(.admin-table) th,
.info table:not(.servers):not(.admin-table) td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }
.info table:not(.servers):not(.admin-table) thead th { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.04em; }
.guide-content :not(pre) > code,
.blog-prose :not(pre) > code,
.docs-main :not(pre) > code,
.docs-guide-list code { background: var(--panel); border-radius: var(--radius-sm); padding: 1px 5px; color: var(--text); }
.servers.info-table td { white-space: normal; }
/* A label ("Owner verified") is one word-pair on one line. */
.servers.info-table td[data-label="Label"] { white-space: nowrap; }
/* The four Top tables on /ranking: the same column widths in each, so Status and the number line up. The Server column takes
   what is left. Their headers may wrap ("Voters in the last 31 days") instead of running into the next column. */
.servers.ranking-table { table-layout: fixed; }
.ranking-table th { white-space: normal; }
.ranking-table .col-rank { width: 72px; }
.ranking-table .col-status { width: 112px; }
.ranking-table .col-value { width: 208px; }
/* Labels and statuses are words, not pills: small muted text, green when verified or online. */
.labels { margin-left: 6px; display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; vertical-align: baseline; }
.label { display: inline; padding: 0; font-size: var(--fs-sm); font-weight: var(--fw-normal); color: var(--muted); }
.label-verified { color: var(--online); }
.label-nsfw { color: var(--text); }
.package-name { color: var(--muted); font-size: var(--fs-sm); }
.label-mode, .servers .server a.label-mode { color: var(--muted); font-size: var(--fs-sm); font-weight: var(--fw-normal); text-decoration: none; }
.label-mode:hover, .servers .server a.label-mode:hover { color: var(--text); text-decoration: underline; }
.address { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; font-size: var(--fs-sm); color: var(--muted); margin-top: 4px; white-space: normal; }
.row-address { user-select: all; white-space: nowrap; color: var(--text); }
.copy-btn { padding: 0 2px; border: 0; background: transparent; color: var(--link); font-size: var(--fs-sm); font-weight: var(--fw-normal); line-height: inherit; }
.copy-btn:hover { background: transparent; color: var(--text); text-decoration: underline; }
.copy-btn[hidden] { display: none; }
.status { display: inline; font-weight: var(--fw-bold); font-size: var(--fs-base); }
.status-online { color: var(--online); }
.status-offline, .status-never-seen, .status-maintenance { color: var(--offline); }
.status-hidden, .status-inactive, .status-deleted { color: var(--muted); }
.badges { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 16px; margin: 0 0 10px; font-size: var(--fs-base); color: var(--muted); }
.badges .label { font-size: var(--fs-base); }
/* Sections of a page are separated by a rule, not drawn as boxes. */
.panel {
  border: 1px solid var(--line);
  border-width: 1px 0 0;
  padding: 20px 0 0;
  margin: 28px 0;
}
.panel p { margin: 0; }
.panel h2 { font-size: var(--fs-md); }
dl { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 18px; margin: 0; font-variant-numeric: tabular-nums; }
dt { color: var(--muted); font-size: var(--fs-base); }
dd { margin: 0; overflow-wrap: anywhere; }
/* The footer: the information pages, three short columns of links, the disclaimer. Links are muted and not underlined. */
.site-footer { border-top: 1px solid var(--line); padding-top: 24px; padding-bottom: 40px; font-size: var(--fs-base); }
.site-footer a { color: var(--muted); text-decoration: none; }
.site-footer p { margin: 0; }
.site-footer nav { margin: 0 0 8px; }
.footer-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 24px; margin: 8px 0 20px; }
.footer-col { display: flex; flex-direction: column; min-width: 0; }
.footer-head { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); margin: 0 0 4px; }
.footer-col a { padding: 4px 0; line-height: 24px; }
.footer-nl { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; max-width: 320px; }
.footer-nl input { flex: 1; min-width: 170px; }
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.timer { color: var(--muted); font-variant-numeric: tabular-nums; font-size: var(--fs-base); }
/* The Vote button: secondary, with the vote green as its text color (filled green on the server page, below). At least 44 x 44 px on every screen. */
.vote-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  min-width: 44px;
  min-height: 44px;
  padding: 8px 16px;
  font-weight: var(--fw-bold);
  color: var(--online);
  background: transparent;
}
.vote-btn:hover { background: var(--button); color: var(--online); text-decoration: none; }
.servers .vote-btn { min-height: 44px; padding: 6px 14px; }
/* After a vote (/site.js): "You voted today" and a live countdown to 00:00 UTC in place of the Vote button. */
.vote-btn[hidden] { display: none; }
.voted { display: inline-flex; flex-direction: column; align-items: flex-end; justify-content: center; min-height: 44px; font-size: var(--fs-sm); line-height: 1.35; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.voted-title { color: var(--online); font-weight: var(--fw-bold); }
.votes-panel .voted, .card-vote .voted { display: flex; width: 100%; box-sizing: border-box; align-items: center; padding: 6px 12px; border: 1px solid var(--online); border-radius: var(--radius-sm); font-size: var(--fs-base); }
.vote-countdown { margin: 8px 0 0; font-variant-numeric: tabular-nums; }
.panel .vote-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 14px 0 0; }
.notice { background: var(--panel); border: 1px solid var(--line); border-left: 4px solid var(--link); border-radius: var(--radius-sm); padding: 12px 16px; margin: 16px 0; }
.notice-success { border-left-color: var(--online); }
.vote-methods { display: flex; flex-direction: column; gap: 16px; margin: 16px 0; }
.vote-method + .vote-method { border-top: 1px solid var(--line); padding-top: 16px; }
.vote-steam-form { display: flex; margin: 0; }
.vote-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 420px; }
.vote-form label { color: var(--muted); }
.vote-form input[type="text"] { width: 100%; box-sizing: border-box; min-height: 44px; background: var(--bg); }
.vote-form .note { margin: 0; }
.cf-turnstile { min-height: 65px; max-width: 100%; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
/* The Share block of a server page: the snippets are selectable text, and a long line wraps instead of making the page scroll sideways. */
.share summary { cursor: pointer; color: var(--link); font-size: var(--fs-base); }
.share pre { margin: 8px 0 12px; padding: 10px 14px; background: var(--panel); border-radius: var(--radius-sm); font-size: var(--fs-sm); white-space: pre-wrap; overflow-wrap: anywhere; }
/* Owner text (the description) and the owner forms (2026-11-10). */
.description p + p, .description p + ul, .description ul + p, .description ul + ul { margin-top: 12px; }
.description ul { margin: 0; padding-left: 24px; }
.description li { margin: 0 0 4px; }
.claim-action { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin: 0 0 8px; }
.claim-action .note { margin: 0; }
textarea { font: inherit; color: var(--text); background: var(--panel); border: 1px solid var(--control-border); border-radius: var(--radius-sm); padding: 8px 12px; resize: vertical; }
textarea:focus-visible { outline: 2px solid var(--link); outline-offset: 2px; }
.owner-form { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; max-width: 640px; margin: 16px 0; }
.owner-form label { color: var(--muted); }
.owner-form input[type="text"], .owner-form textarea, .owner-form select { width: 100%; box-sizing: border-box; background: var(--bg); }
.owner-form .actions { margin: 8px 0 0; }
.word-count { color: var(--muted); font-variant-numeric: tabular-nums; }
/* Reviews (2026-11-10): flat, the stars in the text color, no images. */
.reviews h3 { font-size: var(--fs-md); margin: 16px 0 8px; }
.rating-summary { margin: 0 0 12px; }
.stars { color: var(--text); }
.review-list { list-style: none; margin: 0; padding: 0; }
.review { border-top: 1px solid var(--line); padding: 14px 0; }
.review-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 8px; }
.review-head .note { margin: 0; }
.review-author { font-weight: var(--fw-bold); }
.review-body p, .review-reply p { margin: 8px 0 0; }
.review-reply { margin: 8px 0 0 16px; padding: 8px 12px; border-left: 2px solid var(--line); }
.review-reply-head { color: var(--muted); font-size: var(--fs-base); }
.review-action { margin: 8px 0 0; }
.review-action summary { cursor: pointer; color: var(--link); }
.review-form { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; max-width: 640px; margin: 12px 0 0; }
.review-form textarea, .review-form select { width: 100%; box-sizing: border-box; background: var(--bg); }
.review-form fieldset { border: 1px solid var(--line); border-radius: var(--radius-sm); margin: 0; padding: 10px 14px; display: flex; flex-wrap: wrap; gap: 8px 16px; }
.review-form legend { color: var(--muted); padding: 0 4px; }
.star-choice { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; }
.terms { display: flex; align-items: flex-start; gap: 8px; }
.review-signin { margin: 12px 0 0; }
.review-write { margin: 14px 0 0; }
.related-list { list-style: none; margin: 0 0 10px; padding: 0; }
.related-list li { padding: 8px 0; border-top: 1px solid var(--line); }
.related-list li:first-child { border-top: 0; padding-top: 0; }
.related-list .note { margin-left: 8px; font-size: var(--fs-base); }
#list-results { scroll-margin-top: 12px; }
/* The pager under the list: plain links, the current page in the text color. */
.pager { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 24px; margin: 16px 0 0; font-size: var(--fs-base); }
.pager p { margin: 0; }
.pager-info { color: var(--muted); font-variant-numeric: tabular-nums; }
.pager-pages { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; }
.pager-pages a, .pager-current, .pager-step, .pager-size a, .pager-size-current { min-width: 32px; min-height: 32px; box-sizing: border-box; display: inline-flex; align-items: center; justify-content: center; padding: 0 8px; border-radius: var(--radius-sm); color: var(--link); text-decoration: none; }
.pager-pages a:hover, .pager-size a:hover { background: var(--panel); }
.pager-current, .pager-size-current { color: var(--text); font-weight: var(--fw-bold); text-decoration: underline; text-underline-offset: 4px; }
.pager-more-wrap { display: flex; justify-content: center; width: 100%; order: 3; margin: 8px 0; }
.pager-more { min-width: 220px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; padding: 9px 20px; }
.pager-more[aria-busy="true"] { opacity: 0.6; cursor: progress; }
.pager-off { color: var(--muted); opacity: 0.6; }
.pager-gap { color: var(--muted); padding: 0 2px; }
.pager-size { display: flex; align-items: center; gap: 4px; color: var(--muted); }
.pager-size span:first-child { margin-right: 4px; }
/* Server page: two columns from 900 px (content left, sticky side column right); on a phone the side column comes first. */
.server-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 48px; align-items: start; }
.server-side { order: -1; }
.server-main > .panel:first-child, .server-side > .panel:first-child { margin-top: 0; }
.votes-panel .vote-action { margin: 14px 0 0; }
/* On the server page the Vote button is the page's main action: filled with the vote green, dark text (7.4:1). */
.votes-panel .vote-btn { width: 100%; background: var(--online); border-color: var(--online); color: var(--bg); }
.votes-panel .vote-btn:hover { background: var(--online); color: var(--bg); text-decoration: underline; }
.votes-panel .vote-action .timer { display: block; width: 100%; text-align: center; }
.copy-row { display: flex; align-items: center; gap: 8px; }
.copy-row .address { flex: 1; min-width: 0; margin: 0; padding: 7px 12px; background: var(--panel); border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-base); overflow-x: auto; user-select: all; }
.copy-row .copy-btn { padding: 7px 14px; border: 1px solid var(--control-border); border-radius: var(--radius-sm); color: var(--text); font-size: var(--fs-base); font-weight: var(--fw-bold); }
.copy-row .copy-btn:hover { background: var(--button); text-decoration: none; }
details.more { margin: 12px 0 0; }
details.more > summary, .faq-item > summary, .review-write > summary { cursor: pointer; color: var(--link); }
details.more p { margin: 10px 0 0; }
.faq-item { border-top: 1px solid var(--line); padding: 12px 0; }
.faq-item:first-of-type { border-top: 0; padding-top: 4px; }
.faq-item > summary { color: var(--text); }
.faq-item p { margin: 8px 0 0; color: var(--muted); }
.faq > p.note { margin: 12px 0 0; }
/* On a server page the generated overview and the questions sit at the bottom, in the muted text color. */
.server-main .overview p, .server-main .faq-item > summary { color: var(--muted); }
.server-main .overview, .server-main .faq { font-size: var(--fs-base); }
/* Game mode sections on /modes and the hub pages. */
.mode-section { margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.mode-section-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; margin: 0 0 8px; padding: 0; }
.mode-section-head h2 { margin: 0; }
.mode-section-head .labels { margin: 0; display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
.mode-section > p { margin: 0 0 8px; padding: 0; color: var(--muted); }
.mode-section > p.mode-stat-text { display: none; }
.mode-section > .table-scroll { margin: 8px 0 0; }
.mode-section > p.mode-more { margin: 12px 0 0; padding: 0; }
.mode-genre-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 24px; margin: 16px 0 32px; }
.mode-genre-card { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.mode-genre-card h3 { margin: 0; color: var(--text); }
.mode-genre-card p { margin: 0; color: var(--muted); font-size: var(--fs-base); line-height: 1.5; }
.mode-guide p, .mode-architecture-guide p { margin: 0 0 10px; line-height: 1.55; max-width: 70ch; }
.mode-guide p:last-child, .mode-architecture-guide p:last-child { margin-bottom: 0; }
.mode-intro > .labels { margin: 0 0 8px; display: flex; flex-wrap: wrap; gap: 4px 12px; }
/* The owner section under the list: a heading, two sentences and two buttons, no box. */
.owner-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; }
.owner-cta-copy { flex: 1 1 360px; min-width: 0; }
.owner-cta-copy h2 { margin: 0 0 4px; }
.owner-cta-copy p { color: var(--muted); font-size: var(--fs-base); line-height: 1.5; max-width: 70ch; }
.owner-cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0; }
.ok { color: var(--online); }
.warn { color: rgb(255, 159, 10); }
.fail { color: rgb(255, 69, 58); }
.unknown { color: var(--muted); }
.code { margin: 12px 0; font-size: var(--fs-lg); }
.check { margin: 8px 0; }
.news-list { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 12px; }
.news-card { border-top: 1px solid var(--line); padding: 16px 0 0; }
.news-card h3 { margin: 0 0 6px; }
.news-date { color: var(--muted); font-size: var(--fs-base); margin: 0 0 8px; }
/* The account menu of a signed-in visitor. */
.nav-user-wrap { display: inline-flex; align-items: center; gap: 16px; }
.nav-user-pill { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; font-size: var(--fs-base); }
.nav-user-avatar { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border-radius: 50%; background: var(--button); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-bold); }
.nav-user-name { max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-signout-form { margin: 0; display: inline; }
.nav-user-menu { position: relative; display: inline-block; }
.nav-user-menu > summary { list-style: none; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 6px 0; color: var(--muted); font-size: var(--fs-base); user-select: none; }
.nav-user-menu > summary::-webkit-details-marker { display: none; }
.nav-user-menu > summary:hover { color: var(--text); }
.nav-user-caret { font-size: var(--fs-sm); color: var(--muted); }
.nav-user-dropdown { position: absolute; right: 0; top: calc(100% + 6px); width: 224px; padding: 6px; border-radius: var(--radius); background: var(--panel); border: 1px solid var(--line); z-index: 90; display: flex; flex-direction: column; gap: 2px; }
.nav-user-dropdown-head { padding: 6px 8px 8px; border-bottom: 1px solid var(--line); margin-bottom: 4px; }
.nav-user-dropdown-name { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-dropdown-sub { font-size: var(--fs-sm); color: var(--muted); display: block; margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav-user-item { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border-radius: var(--radius-sm); font-size: var(--fs-base); font-weight: var(--fw-normal); color: var(--text); text-decoration: none; background: transparent; border: 0; width: 100%; text-align: left; cursor: pointer; box-sizing: border-box; }
.nav-user-item:hover { background: var(--button); color: var(--text); text-decoration: none; }
.nav-user-item--danger { color: rgb(255, 105, 97); }
.nav-user-divider { height: 1px; background: var(--line); margin: 4px 0; }
.apple-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); line-height: 1.2; margin: 0 0 10px; color: var(--text); }
.apple-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; }
@media (min-width: 720px) {
  .footer-cols { grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 640px; }
}
@media (min-width: 900px) {
  .server-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .server-side { order: 0; position: sticky; top: 16px; }
}
@media (min-width: 640px) {
  .review-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .review-list .review { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 12px 14px; }
}
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }
  html { scroll-behavior: smooth; }
  .row-new { animation: row-in 280ms ease-out; }
  @keyframes row-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
}

/* Sign in, Sign up & Password pages (/signin, /signup, /forgot). */
.si-page { max-width: 460px; margin: 24px auto 48px; padding: 0; }
.si-title { font-size: var(--fs-xl); font-weight: var(--fw-bold); margin: 0 0 6px; }
.si-lead { color: var(--muted); font-size: var(--fs-base); line-height: 1.5; margin: 0 0 20px; }
.si-alert { padding: 10px 14px; margin: 0 0 16px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); border-left: 4px solid rgb(255, 69, 58); color: var(--text); font-size: var(--fs-base); }
.si-alert--ok { border-left-color: var(--online); }
.si-card { padding: 20px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; }
.si-steam-form, .si-card form[action="/owner/login"] { margin: 0; display: flex; flex-direction: column; }
.si-oauth { display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 8px 14px; border-radius: var(--radius-sm); font-weight: var(--fw-bold); font-size: var(--fs-base); text-decoration: none; width: 100%; box-sizing: border-box; cursor: pointer; }
.si-oauth--steam { background: transparent; color: var(--text); border: 1px solid var(--control-border); }
.si-oauth--steam:hover { background: var(--button); }
.si-or { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: var(--fs-sm); }
.si-or::before, .si-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.si-form { display: flex; flex-direction: column; gap: 14px; margin: 0; }
.si-field { display: flex; flex-direction: column; gap: 6px; }
.si-field label { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); }
.si-opt { font-weight: var(--fw-normal); color: var(--muted); }
.si-field input { height: 42px; padding: 0 12px; border-radius: var(--radius-sm); background: var(--bg); border: 1px solid var(--control-border); color: var(--text); font-size: var(--fs-base); width: 100%; box-sizing: border-box; }
.si-field--err input { border-color: var(--control-border); }
.si-label-row { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.si-forgot { font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.si-forgot:hover { color: var(--text); text-decoration: underline; }
.si-check { display: flex; align-items: flex-start; gap: 10px; font-size: var(--fs-base); line-height: 1.45; color: var(--muted); cursor: pointer; }
.si-check input { margin-top: 3px; accent-color: var(--link); }
.si-submit { width: 100%; min-height: 44px; margin-top: 2px; font-size: var(--fs-base); }
.si-terms, .si-foot, .si-note { margin: 14px 0 0; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); text-align: center; }

/* Add or Claim Server Onboarding (/owner/servers/add for signed-out visitors). */
.add-intro { max-width: 860px; margin: 0 auto; }
.add-intro-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; margin: 16px 0; }
.add-intro-card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.add-intro-cta { display: flex; flex-direction: column; gap: 12px; }
.add-intro-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 4px; }
.add-intro-actions .apple-btn-primary { min-height: 44px; padding: 8px 20px; font-size: var(--fs-base); box-sizing: border-box; }
.add-intro-steam-form { margin: 0; display: inline-flex; }
.add-intro-steam-form .si-oauth { width: auto; padding: 8px 18px; }
.add-intro-login { margin: 4px 0 0; font-size: var(--fs-base); color: var(--muted); }

/* Account shell, Settings & Public Creator Profile (/account/*, /settings, /creators/{pid}). */
.account-shell { margin: 0; display: grid; grid-template-columns: 224px minmax(0, 1fr); gap: 32px; align-items: start; }
.account-side { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 14px; padding-right: 16px; border-right: 1px solid var(--line); }
.account-side-user { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line); }
.account-side-avatar { width: 38px; height: 38px; border-radius: 50%; background: var(--panel); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); font-size: var(--fs-base); flex-shrink: 0; }
.account-side-meta { min-width: 0; }
.account-side-name { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-side-sub { font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.account-nav { display: flex; flex-direction: column; gap: 2px; }
.account-nav-link { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 7px 10px; border-radius: var(--radius-sm); font-size: var(--fs-base); color: var(--muted); text-decoration: none; font-weight: var(--fw-normal); }
.account-nav-link:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.account-nav-link[aria-current="page"] { color: var(--text); background: var(--panel); font-weight: var(--fw-bold); }
.account-nav-divider { height: 1px; background: var(--line); margin: 8px 0; }
.account-nav-sub { padding-left: 10px; display: flex; flex-direction: column; gap: 2px; border-left: 1px solid var(--line); margin: 2px 0 6px 12px; }
.account-nav-sublink { display: block; padding: 4px 8px; border-radius: var(--radius-sm); font-size: var(--fs-sm); color: var(--muted); text-decoration: none; }
.account-nav-sublink:hover { color: var(--text); text-decoration: none; }
.account-nav-signout-form { margin: 4px 0 0; }
.account-nav-signout { display: flex; align-items: center; gap: 8px; width: 100%; text-align: left; padding: 7px 10px; border-radius: var(--radius-sm); font-size: var(--fs-base); font-weight: var(--fw-normal); color: var(--muted); background: transparent; border: 0; cursor: pointer; }
.account-nav-signout:hover { color: rgb(255, 105, 97); background: var(--panel); }
.account-main { min-width: 0; }
.settings-wrap { max-width: 720px; margin: 0; }
.settings-sub { color: var(--muted); margin: 0 0 16px; font-size: var(--fs-base); line-height: 1.5; }
.settings-section-title { font-size: var(--fs-md); font-weight: var(--fw-bold); margin: 0 0 4px; color: var(--text); }
.settings-section-desc { font-size: var(--fs-base); color: var(--muted); margin: 0 0 12px; line-height: 1.5; }
.settings-divider { height: 1px; background: var(--line); margin: 8px 0; }
.activity-pills { display: flex; flex-wrap: wrap; gap: 4px 20px; margin: 0 0 18px; }
.activity-pill { display: inline-flex; align-items: center; padding: 4px 0; font-size: var(--fs-base); color: var(--muted); text-decoration: none; }
.activity-pill:hover { color: var(--text); }
.activity-pill--active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.settings-notice { padding: 10px 14px; border-radius: var(--radius-sm); margin: 0 0 16px; font-size: var(--fs-base); background: var(--panel); border: 1px solid var(--line); }
.settings-notice--ok { border-left: 4px solid var(--online); }
.settings-notice--err { border-left: 4px solid rgb(255, 69, 58); }
.settings-card { padding: 20px; border-radius: var(--radius-sm); background: var(--panel); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 14px; margin: 0 0 18px; }
.settings-label { display: flex; flex-direction: column; gap: 6px; font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); }
.settings-hint { color: var(--muted); font-weight: var(--fw-normal); font-size: var(--fs-sm); }
.settings-input { padding: 8px 12px; border-radius: var(--radius-sm); border: 1px solid var(--control-border); background: var(--bg); color: var(--text); font: inherit; width: 100%; box-sizing: border-box; }
.settings-group { border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 14px; margin: 4px 0; display: flex; flex-direction: column; gap: 12px; }
.settings-group legend { padding: 0 6px; font-size: var(--fs-sm); color: var(--muted); font-weight: var(--fw-bold); }
.settings-row2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; align-items: end; }
.settings-check { display: flex; align-items: center; gap: 10px; font-size: var(--fs-base); color: var(--text); cursor: pointer; }
.settings-actions { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
/* The profile form's Save bar stays on screen while the form is in view (DECISIONS 2026-11-10, UX revision). */
.settings-actions--sticky { position: sticky; bottom: 0; z-index: 1; margin: 0 -20px -20px; padding: 12px 20px; background: var(--panel); border-top: 1px solid var(--line); border-radius: 0 0 var(--radius-sm) var(--radius-sm); }
.settings-delete-form { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin: 0; }
.settings-delete-input { max-width: 240px; }
.settings-delete-btn { background: var(--button); border-color: var(--control-border); color: rgb(255, 105, 97); }
.creator-wrap { margin: 0; }
.creator-header { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; padding: 0 0 24px; border-bottom: 1px solid var(--line); margin: 0 0 24px; }
.creator-avatar { width: 72px; height: 72px; border-radius: 50%; background: var(--bg); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); font-size: var(--fs-xl); flex-shrink: 0; border: 1px solid var(--line); }
.creator-meta { flex: 1; min-width: 240px; }
.creator-name-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.creator-name-row .apple-title { margin: 0; font-size: var(--fs-xl); }
.creator-badges { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.creator-spec { margin: 4px 0 0; font-size: var(--fs-base); color: var(--muted); }
.creator-open-work { margin: 4px 0 0; font-size: var(--fs-base); color: var(--online); font-weight: var(--fw-bold); }
.creator-bio { color: var(--text); margin: 10px 0 12px; max-width: 64ch; line-height: 1.55; }
.creator-stats { display: flex; gap: 16px; flex-wrap: wrap; font-size: var(--fs-base); color: var(--muted); font-variant-numeric: tabular-nums; }
.creator-gear { margin-top: 12px; }
.creator-gear-label { font-size: var(--fs-sm); color: var(--muted); margin-bottom: 6px; font-weight: var(--fw-bold); }
.fl-gear-pills { display: flex; flex-wrap: wrap; gap: 2px 16px; }
.fl-gear-pill { font-size: var(--fs-base); color: var(--muted); }
.fl-badge { font-size: var(--fs-sm); color: var(--muted); }
.fl-badge--staff, .fl-badge--verified { color: var(--text); }
.creator-section { margin: 0 0 28px; }
.creator-section h2 { font-size: var(--fs-lg); margin: 0 0 12px; }
.creator-empty { text-align: center; color: var(--muted); padding: 32px 20px; }
.creator-empty h2 { font-size: var(--fs-md); margin: 0 0 6px; color: var(--text); }
.creator-empty p { margin: 0 auto 8px; max-width: 56ch; line-height: 1.55; }
.creator-empty .creator-empty-actions { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 14px; }

/* Ranking Page (/ranking). */
.info:not(.docs-shell):has(> .ranking-jump) { display: flex; flex-direction: column; }
.info:not(.docs-shell):has(> .ranking-jump) > h1 { order: 1; }
.info:not(.docs-shell):has(> .ranking-jump) > .ranking-jump { order: 2; }
.info:not(.docs-shell):has(> .ranking-jump) > section:has(.ranking-table), .info:not(.docs-shell):has(> .ranking-jump) > section:has(.empty) { order: 3; }
.info:not(.docs-shell):has(> .ranking-jump) > section:not(:has(.ranking-table)):not(:has(.empty)) {
  order: 4;
  border-top: 1px solid var(--line);
  padding: 20px 0 0;
  margin: 0 0 24px;
}
.ranking-lead { font-size: var(--fs-md); line-height: 1.6; color: var(--muted); margin: 0 0 14px; max-width: 70ch; }
.ranking-jump { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 16px; margin: 0 0 24px; font-size: var(--fs-base); color: var(--muted); }
.ranking-jump a { color: var(--link); text-decoration: none; }
.ranking-jump a:hover { text-decoration: underline; }
.ranking-board-sub { margin: 0 0 10px; font-size: var(--fs-base); line-height: 1.55; color: var(--muted); max-width: 70ch; }
.ranking-board-link { margin-left: 6px; color: var(--link); white-space: nowrap; }

/* 3-Column Technical Documentation Layout (/wiki, /guides). */
.docs-shell {
  margin: 0;
  padding: 0 0 48px;
  display: grid;
  grid-template-columns: 224px minmax(0, 1fr) 184px;
  gap: 36px;
  align-items: start;
}
.docs-side { position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; scrollbar-width: thin; }
.docs-side--nav { padding-right: 16px; border-right: 1px solid var(--line); }
.docs-nav-toggle { display: none; }
.docs-search-form { margin: 0 0 14px; }
.docs-search-wrap { display: block; margin: 0; }
.docs-search {
  width: 100%;
  box-sizing: border-box;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--control-border);
  background: var(--panel);
  color: var(--text);
  font-family: inherit;
  font-size: var(--fs-base);
}
.docs-search::placeholder { color: var(--muted); }
.docs-nav-group {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--muted);
  margin: 18px 0 4px;
  padding: 0 8px;
}
.docs-nav-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 1px; }
.docs-nav-list a {
  display: block;
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--muted);
  text-decoration: none;
  font-size: var(--fs-base);
  line-height: 1.35;
}
.docs-nav-list a:hover { color: var(--text); background: var(--panel); text-decoration: none; }
.docs-nav-list a[aria-current="page"] {
  color: var(--text);
  background: var(--panel);
  font-weight: var(--fw-bold);
}
.docs-main { min-width: 0; max-width: 720px; }
/* Tool pages (/tools/*, /benchmarks, /modes/compare) in the wiki shell: the sidebar and a wide main column, no "On this page" rail. */
.docs-shell--tool { grid-template-columns: 224px minmax(0, 1fr); }
.docs-shell--tool .docs-main { max-width: 880px; }
.tool-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 4px 16px; align-items: end; max-width: 720px; }
.tool-form p { margin: 0 0 10px; max-width: none; }
.tool-form label { display: flex; flex-direction: column; gap: 4px; font-size: var(--fs-base); color: var(--muted); }
.tool-form label input, .tool-form label select { width: 100%; box-sizing: border-box; color: var(--text); }
.tool-form .tool-check, .tool-form .tool-submit { grid-column: 1 / -1; margin: 0 0 6px; }
/* A check line is plain text that wraps (its code words included), so a long label never widens the page on a phone. */
.tool-form .tool-check label { display: block; }
.tool-form .tool-check input { width: auto; margin: 0 8px 0 0; vertical-align: middle; }
.tool-form .tool-submit { margin-top: 6px; }
.plugin-hero { margin: 0 0 24px; }
.plugin-hero h2 { margin: 0 0 12px; font-size: var(--fs-lg); }
.plugin-hero > p { margin: 0 0 6px; color: var(--muted); font-size: var(--fs-base); line-height: 1.5; }
.plugin-dl-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 14px; }
.plugin-hero .code-wrap { margin: 6px 0 12px; }
.plugin-hero .plugin-repo-note { margin: 0 0 12px; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); max-width: 72ch; }
.plugin-pills { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; }
.plugin-form-card { max-width: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0 20px; }
.plugin-form-card label input:not([type="checkbox"]), .plugin-form-card label select { background: var(--bg); min-height: 38px; }
.code-wrap { margin: 8px 0 16px; background: var(--panel); border-radius: var(--radius-sm); }
.code-bar { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 34px; padding: 0 6px 0 14px; border-bottom: 1px solid var(--line); }
.code-lang { font-size: var(--fs-sm); color: var(--muted); }
.info .code-wrap pre { margin: 0; padding: 12px 14px; border: 0; border-radius: 0 0 var(--radius-sm) var(--radius-sm); background: none; font-size: var(--fs-base); line-height: 1.55; overflow-x: auto; }
.tool-reference { margin: 24px 0 16px; border-top: 1px solid var(--line); }
.tool-reference > summary { cursor: pointer; padding: 12px 0; font-size: var(--fs-base); color: var(--link); }
.docs-shell--tool .table-scroll > table:not(.servers):not(.admin-table) { margin: 0; border: 0; border-radius: 0; background: none; }
.tool-reference .table-scroll { margin: 0; padding: 0 0 6px; }
.docs-crumbs {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  font-size: var(--fs-base);
  color: var(--muted);
  margin-bottom: 10px;
}
.docs-crumbs a { color: var(--muted); text-decoration: none; }
.docs-crumbs a:hover { color: var(--text); }
.docs-title {
  font-size: var(--fs-xl);
  font-weight: var(--fw-bold);
  line-height: 1.18;
  margin: 0 0 10px;
  color: var(--text);
}
.docs-lead {
  font-size: var(--fs-md);
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 66ch;
}
.docs-main > h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  line-height: 1.25;
  color: var(--text);
  margin: 32px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  scroll-margin-top: 24px;
}
.docs-main > h3 {
  font-size: var(--fs-base);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 22px 0 8px;
}
.docs-main > p,
.docs-main > ol,
.docs-main > ul {
  font-size: var(--fs-md);
  line-height: 1.68;
  color: var(--muted);
  margin: 0 0 14px;
  max-width: 66ch;
}
.docs-main > ol,
.docs-main > ul { padding-left: 20px; }
.docs-main > ol li,
.docs-main > ul li { margin-bottom: 8px; }
.docs-main strong { color: var(--text); font-weight: var(--fw-bold); }
.docs-main > ul.docs-guide-list {
  list-style: none;
  padding-left: 0;
  display: grid;
  gap: 12px;
  max-width: none;
}
.docs-main > ul.docs-guide-list li {
  border-top: 1px solid var(--line);
  padding: 12px 0 0;
  margin-bottom: 0;
  line-height: 1.55;
}
.docs-guide-list a { text-decoration: none; color: var(--link); font-size: var(--fs-md); }
.docs-guide-list a strong { color: var(--text); font-weight: var(--fw-bold); }
.docs-guide-list a:hover strong { color: var(--link); }
.docs-guide-list a:hover { text-decoration: none; }
.guide-updated { font-size: var(--fs-base); color: var(--muted); margin: 0 0 18px; }
.guide-content { padding: 0; background: none; border: 0; }
.guide-lede { font-size: var(--fs-md); line-height: 1.65; color: var(--text); margin: 0 0 20px; max-width: 66ch; }
.guide-content h2 {
  font-size: var(--fs-lg);
  font-weight: var(--fw-bold);
  margin: 32px 0 10px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  color: var(--text);
  line-height: 1.25;
  scroll-margin-top: 24px;
}
.guide-content p,
.guide-content ul,
.guide-content ol {
  color: var(--muted);
  line-height: 1.68;
  margin-bottom: 14px;
  font-size: var(--fs-md);
  max-width: 66ch;
}
.guide-content ul,
.guide-content ol { padding-left: 20px; }
.guide-content li { margin-bottom: 6px; }
.guide-content strong { color: var(--text); font-weight: var(--fw-bold); }
.guide-checklist { padding-left: 20px; margin: 12px 0 16px; }
.guide-checklist li { margin: 0 0 6px; color: var(--text); }
.code-block,
.guide-content pre {
  background: var(--panel);
  border: 0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  overflow-x: auto;
  margin: 14px 0 20px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: var(--fs-base);
  line-height: 1.55;
  color: var(--text);
}
.docs-table {
  margin: 14px 0 20px;
  overflow-x: auto;
}
.admin-table { width: 100%; border-collapse: collapse; font-size: var(--fs-base); }
.admin-table th,
.admin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}
.admin-table th {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.admin-table tr:last-child td { border-bottom: 0; }
.wiki-sources {
  margin: 8px 0 20px;
  padding-left: 20px;
  color: var(--muted);
  font-size: var(--fs-base);
  line-height: 1.6;
  max-width: 66ch;
}
.wiki-sources li { margin-bottom: 6px; }
.docs-pager {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.docs-pager-link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 0;
  text-decoration: none;
  color: var(--text);
}
.docs-pager-link:hover { text-decoration: none; }
.docs-pager-link:hover .docs-pager-title { text-decoration: underline; }
.docs-pager-next { grid-column: 2; text-align: right; }
.docs-pager-dir { font-size: var(--fs-sm); color: var(--muted); }
.docs-pager-title { font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--link); }

/* Right-hand "On this page" TOC rail. */
.docs-side--toc { padding-left: 14px; border-left: 1px solid var(--line); }
.guide-toc { position: static; background: none; border: 0; padding: 0; }
.guide-toc-title {
  font-size: var(--fs-sm);
  font-weight: var(--fw-bold);
  color: var(--text);
  margin: 0 0 8px;
}
.guide-toc ol { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 6px; }
.guide-toc a {
  display: block;
  font-size: var(--fs-sm);
  line-height: 1.35;
  color: var(--muted);
  text-decoration: none;
}
.guide-toc a:hover { color: var(--text); text-decoration: none; }

/* Blog Hub & Article (/blog, /news). */
.blog-hub { margin: 0; }
.blog-hub-head { max-width: 720px; margin-bottom: 18px; }
.blog-hub-title { font-size: var(--fs-xl); line-height: 1.15; margin: 0 0 8px; font-weight: var(--fw-bold); }
.blog-hub-sub { font-size: var(--fs-md); line-height: 1.55; color: var(--muted); margin: 0; max-width: 66ch; }
.blog-filter { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-bottom: 8px; align-items: baseline; }
.blog-filter--authors { margin-bottom: 20px; }
.blog-filter-label { font-size: var(--fs-sm); color: var(--muted); margin-right: 4px; font-weight: var(--fw-bold); }
.category-pill { padding: 4px 0; font-size: var(--fs-base); color: var(--muted); text-decoration: none; }
.category-pill:hover { color: var(--text); }
.category-pill.active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.blog-lead { margin-bottom: 20px; }
.blog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(295px, 1fr)); gap: 16px; margin-bottom: 24px; }
.blog-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); color: var(--text); text-decoration: none; }
.blog-card:hover { border-color: var(--control-border); text-decoration: none; }
.blog-card--lead { display: grid; grid-template-columns: 1.25fr 1fr; }
.blog-card-media { aspect-ratio: 16 / 9; background: var(--bg); overflow: hidden; border-bottom: 1px solid var(--line); }
.blog-card--lead .blog-card-media { height: 100%; border-bottom: 0; border-right: 1px solid var(--line); }
.blog-card-img { width: 100%; height: 100%; object-fit: cover; display: block; }
.blog-card-body { padding: 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-meta { display: flex; align-items: center; gap: 6px; font-size: var(--fs-sm); color: var(--muted); }
.blog-card-title { font-size: var(--fs-lg); line-height: 1.3; margin: 0; font-weight: var(--fw-bold); color: var(--text); }
.blog-card--lead .blog-card-title { font-size: var(--fs-lg); }
.blog-card-sub { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); margin: 0; flex: 1; }
.blog-card-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-sm); color: var(--muted); padding-top: 8px; margin-top: auto; }
.blog-card-avatar, .blog-byline-avatar, .comment-avatar { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--text); font-size: var(--fs-sm); font-weight: var(--fw-bold); text-decoration: none; }
.blog-card-author { color: var(--text); font-weight: var(--fw-bold); }
.blog-card-date { margin-left: auto; }
.blog-article { padding: 4px 0 28px; }
.blog-article-wrap { max-width: 720px; margin: 0; }
.blog-crumbs { font-size: var(--fs-base); color: var(--muted); margin-bottom: 14px; }
.blog-article-head { margin-bottom: 20px; }
.blog-article-title { font-size: var(--fs-xl); line-height: 1.15; margin: 0 0 10px; font-weight: var(--fw-bold); }
.blog-article-lede { font-size: var(--fs-md); line-height: 1.55; color: var(--muted); margin: 0 0 16px; max-width: 65ch; }
.blog-byline { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-byline-avatar { width: 36px; height: 36px; font-size: var(--fs-base); }
.blog-byline-text { display: flex; flex-direction: column; gap: 2px; }
.blog-byline-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.blog-byline-name { font-weight: var(--fw-bold); color: var(--text); text-decoration: none; font-size: var(--fs-base); }
.blog-byline-sub { font-size: var(--fs-base); color: var(--muted); }
.blog-hero-figure { margin: 0 0 22px; }
.blog-hero-figure img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-radius: var(--radius); }
.blog-hero-figure figcaption { padding: 8px 0 0; font-size: var(--fs-sm); color: var(--muted); }
.blog-prose { font-size: var(--fs-md); line-height: 1.7; color: var(--text); }
.blog-prose h2 { font-size: var(--fs-lg); margin: 28px 0 10px; padding-top: 12px; border-top: 1px solid var(--line); }
.blog-prose p { margin: 0 0 16px; max-width: 68ch; }
.blog-tool-note { margin: 22px 0; padding: 2px 0 2px 16px; border-left: 2px solid var(--line); font-size: var(--fs-base); color: var(--muted); line-height: 1.55; max-width: 68ch; }
.blog-tool-note strong { color: var(--text); }
.blog-reactions { display: flex; gap: 8px; margin: 20px 0; padding: 12px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.blog-reactions form { margin: 0; }
.react-btn { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--radius-sm); background: transparent; border: 1px solid var(--control-border); color: var(--text); font-size: var(--fs-base); font-weight: var(--fw-bold); cursor: pointer; text-decoration: none; }
.react-btn:hover { background: var(--button); text-decoration: none; }
.react-btn.active { background: var(--button); border-color: var(--control-border); color: var(--link); }
.react-count { color: var(--muted); font-weight: var(--fw-normal); font-variant-numeric: tabular-nums; }
.blog-author-card { display: flex; gap: 14px; align-items: flex-start; padding: 20px 0 0; border-top: 1px solid var(--line); margin: 24px 0; }
.blog-author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--bg); border: 1px solid var(--line); color: var(--text); display: flex; align-items: center; justify-content: center; font-weight: var(--fw-bold); font-size: var(--fs-base); flex-shrink: 0; text-decoration: none; }
.blog-author-body { flex: 1; min-width: 0; }
.blog-author-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 2px; }
.blog-author-name { font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text); text-decoration: none; }
.blog-author-spec { font-size: var(--fs-base); color: var(--muted); margin-bottom: 6px; }
.blog-author-bio { font-size: var(--fs-base); line-height: 1.5; color: var(--muted); margin: 0 0 10px; }
.blog-comments { margin: 24px 0; }
.blog-comments-title { font-size: var(--fs-lg); margin: 0 0 12px; }
.blog-comments-title span { color: var(--muted); font-weight: var(--fw-normal); font-variant-numeric: tabular-nums; }
.comment-form { display: flex; flex-direction: column; gap: 10px; margin: 0 0 16px; }
.comment-form textarea { width: 100%; box-sizing: border-box; background: var(--bg); border-radius: var(--radius-sm); }
.comment-form-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; font-size: var(--fs-base); color: var(--muted); }
.comment-signin { font-size: var(--fs-base); color: var(--muted); margin-bottom: 14px; }
.comment-tree { display: flex; flex-direction: column; gap: 10px; }
.comment-empty { color: var(--muted); font-size: var(--fs-base); }
.comment-item { padding: 12px 0 0; border-top: 1px solid var(--line); }
.comment-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: var(--fs-base); margin-bottom: 6px; }
.comment-author { font-weight: var(--fw-bold); color: var(--text); text-decoration: none; }
.comment-date { color: var(--muted); font-size: var(--fs-sm); margin-left: auto; }
.comment-body p { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--text); }
.blog-more { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.blog-more-title { font-size: var(--fs-lg); margin: 0 0 12px; }

/* The server page header: the package image, the name and one line of facts. No box. */
.server-hero { display: flex; align-items: center; gap: 16px; margin: 0 0 24px; }
.server-hero-thumb { width: 64px; height: 64px; border-radius: var(--radius); object-fit: cover; background: var(--panel); flex-shrink: 0; }
.server-hero-copy { min-width: 0; }
.server-hero-copy h1 { margin: 0 0 4px; }
.server-hero-copy .badges { margin: 0; }
/* 24-hour activity and uptime bars on /server/{id}. */
.history-panel h2 { margin: 0 0 12px; }
.history-bars { list-style: none; margin: 0 0 6px; padding: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; height: 64px; align-items: end; border-bottom: 1px solid var(--line); }
.history-slot { height: 100%; display: flex; align-items: flex-end; }
.history-bar { display: block; width: 100%; background: var(--line); }
.history-bar-on { background: var(--online); }
.hb-0 { height: 6%; opacity: 0.45; }
.hb-2 { height: 22%; opacity: 0.72; }
.hb-3 { height: 32%; }
.hb-4 { height: 42%; }
.hb-5 { height: 52%; }
.hb-6 { height: 62%; }
.hb-7 { height: 72%; }
.hb-8 { height: 82%; }
.hb-9 { height: 91%; }
.hb-10 { height: 100%; }
.history-scale { display: flex; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
/* Game mode sections and genre cards: an image, a heading and a few lines of text. */
.mode-section-title { display: flex; align-items: center; gap: 12px; }
.mode-section-thumb { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel); flex-shrink: 0; }
.mode-genre-card.panel { border: 0; padding: 0; margin: 0; overflow: hidden; }
.genre-card-art { display: block; width: 100%; height: 132px; object-fit: cover; border-radius: var(--radius); background: var(--panel); }
.mode-genre-card-body { padding: 12px 0 0; }
.mode-genre-card-body h3 { margin: 0 0 6px; }
.mode-genre-card-body h3 a, .mode-section-head h2 a { color: var(--text); text-decoration: none; }
.mode-genre-card-body h3 a:hover, .mode-section-head h2 a:hover { color: var(--link); }
/* The genre pages and /plugin: a heading row with an image, then short facts. */
.plugin-hero-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin: 0 0 20px; }
.plugin-hero-banner.panel { border: 0; padding: 0; }
.plugin-hero-art { width: 168px; height: 108px; border-radius: var(--radius); object-fit: cover; background: var(--panel); flex-shrink: 0; }
.plugin-hero-copy { flex: 1 1 320px; min-width: 0; }
.plugin-hero-copy .docs-lead { margin: 0; }
.plugin-pillars { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0 0 24px; }
.plugin-pillar { padding: 12px 0 0; border-top: 1px solid var(--line); }
.plugin-pillar strong { display: block; font-size: var(--fs-base); color: var(--text); margin-bottom: 4px; }
.plugin-pillar span { display: block; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }
/* How to join, under the list: four short numbered steps in one row. */
.join-steps { margin: 32px 0 0; padding: 20px 0 0; border-top: 1px solid var(--line); }
.join-steps h2 { margin: 0 0 12px; }
.join-steps-grid { margin: 0; padding: 0 0 0 20px; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px 32px; }
.join-step { padding-left: 4px; color: var(--muted); }
.join-step::marker { color: var(--muted); font-weight: var(--fw-bold); }
.join-step h3 { margin: 0 0 4px; font-size: var(--fs-base); color: var(--text); }
.join-step p { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }

/* /community: Discord servers, creators and videos. Quiet outlines, sentence-case headings, plain text links. */
.comm-hub { display: flex; flex-direction: column; gap: 36px; }
.comm-header h1 { margin: 0 0 6px; }
.comm-subtitle { margin: 0 0 6px; color: var(--muted); }
.comm-feature-cta { margin: 0; font-size: var(--fs-base); color: var(--muted); }
.comm-section { display: flex; flex-direction: column; gap: 12px; }
.comm-section-bar { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.section-eyebrow { margin: 0; font-size: var(--fs-lg); font-weight: var(--fw-bold); color: var(--text); }
.comm-section-link { font-size: var(--fs-base); color: var(--link); text-decoration: none; }
.comm-section-link:hover { text-decoration: underline; }
.comm-discord-grid, .comm-creator-grid, .comm-video-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.comm-card { border: 1px solid var(--line); border-radius: var(--radius); }
.comm-discord-card { display: flex; align-items: flex-start; gap: 12px; padding: 14px; text-decoration: none; color: var(--text); }
.comm-discord-card:hover { border-color: var(--control-border); text-decoration: none; }
.comm-discord-icon { width: 40px; height: 40px; border-radius: var(--radius-sm); object-fit: cover; background: var(--panel); flex-shrink: 0; }
.comm-discord-body { flex: 1 1 auto; min-width: 0; }
.comm-discord-head { display: flex; align-items: baseline; gap: 4px 10px; margin-bottom: 4px; flex-wrap: wrap; }
.comm-card-title { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-bold); color: var(--text); line-height: 1.3; }
.comm-discord-card:hover .comm-card-title { color: var(--link); }
.comm-ext-arrow { margin-left: auto; font-size: var(--fs-base); color: var(--muted); }
.comm-card-desc { margin: 0; font-size: var(--fs-base); line-height: 1.5; color: var(--muted); }
.comm-badge { font-size: var(--fs-sm); color: var(--muted); }
.comm-badge--emerald { color: var(--online); }
.comm-badge--blue, .comm-badge--amber, .comm-badge--neutral { color: var(--muted); }
.comm-creator-card { padding: 14px; display: flex; flex-direction: column; justify-content: space-between; gap: 12px; }
.comm-creator-card[hidden] { display: none; }
.comm-creator-top { display: flex; align-items: center; gap: 12px; }
.comm-creator-avatar { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; background: var(--panel); flex-shrink: 0; }
.comm-creator-info { min-width: 0; }
.comm-creator-spec { margin: 2px 0 0; font-size: var(--fs-sm); line-height: 1.4; color: var(--muted); }
.comm-platform-row { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.comm-platform-pill { font-size: var(--fs-base); color: var(--link); text-decoration: none; }
.comm-platform-pill:hover { text-decoration: underline; }
.comm-platform-dot { display: none; }
.comm-platform-pill--yt, .comm-platform-pill--tw, .comm-platform-pill--tt, .comm-platform-pill--ig, .comm-platform-pill--web { color: var(--link); }
.comm-carousel-controls { display: inline-flex; align-items: center; gap: 8px; }
.comm-carousel-controls[hidden] { display: none; }
.comm-page-btn { padding: 2px 10px; font-size: var(--fs-base); line-height: 1.5; color: var(--text); }
.comm-page-all { font-size: var(--fs-base); }
.comm-page-dots { display: inline-flex; align-items: center; gap: 6px; }
.comm-page-dot { width: 8px; height: 8px; padding: 0; border-radius: 50%; border: 0; background: var(--line); }
.comm-page-dot--active { background: var(--text); }
.comm-filter-pills { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.comm-filter-pill { padding: 4px 0; border: 0; border-radius: 0; background: transparent; font-size: var(--fs-base); font-weight: var(--fw-normal); color: var(--muted); }
.comm-filter-pill:hover { background: transparent; color: var(--text); }
.comm-filter-pill--active { color: var(--text); text-decoration: underline; text-underline-offset: 6px; }
.comm-video-card { overflow: hidden; display: flex; flex-direction: column; }
.comm-video-card[hidden] { display: none; }
.comm-video-media { position: relative; display: block; aspect-ratio: 16 / 9; background: var(--panel); overflow: hidden; }
.comm-video-thumb { width: 100%; height: 100%; object-fit: cover; display: block; }
.comm-video-body { padding: 12px 14px; display: flex; flex-direction: column; flex: 1 1 auto; gap: 8px; }
.comm-video-title { margin: 0; font-size: var(--fs-md); font-weight: var(--fw-bold); line-height: 1.35; }
.comm-video-title a { color: var(--text); text-decoration: none; }
.comm-video-title a:hover { color: var(--link); }
.comm-video-meta { display: flex; align-items: center; justify-content: space-between; font-size: var(--fs-sm); color: var(--muted); margin-top: auto; }
.comm-video-age { font-variant-numeric: tabular-nums; }
.comm-video-foot { display: flex; align-items: center; justify-content: space-between; }
.comm-video-mode { font-size: var(--fs-base); color: var(--link); text-decoration: none; }
.comm-video-mode:hover { text-decoration: underline; }

/* Instant search suggestions under the search box on /. */
.field-search { position: relative; }
.search-suggest { position: absolute; top: calc(100% + 6px); left: 0; right: 0; min-width: 280px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 6px; z-index: 40; display: flex; flex-direction: column; gap: 2px; }
.search-suggest[hidden] { display: none; }
.search-suggest-item { display: flex; align-items: center; gap: 10px; padding: 6px 8px; border-radius: var(--radius-sm); text-decoration: none; color: var(--text); }
.search-suggest-item:hover { background: var(--button); text-decoration: none; }
.search-suggest-thumb { width: 32px; height: 32px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); flex-shrink: 0; }
.search-suggest-body { flex: 1 1 auto; min-width: 0; }
.search-suggest-name { display: block; font-size: var(--fs-base); font-weight: var(--fw-bold); color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-sub { display: block; font-size: var(--fs-sm); color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.search-suggest-players { font-size: var(--fs-sm); color: var(--muted); font-variant-numeric: tabular-nums; flex-shrink: 0; }

/* Narrow screens. The documentation shell drops its "On this page" rail first. */
@media (max-width: 1099px) {
  .docs-shell { grid-template-columns: 208px minmax(0, 1fr); }
  .docs-side--toc { display: none; }
  .comm-discord-grid, .comm-creator-grid, .comm-video-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .docs-shell, .account-shell, .blog-card--lead, .docs-pager { grid-template-columns: 1fr; }
  .docs-side--nav, .account-side { position: static; max-height: none; border-right: 0; border-bottom: 1px solid var(--line); padding-right: 0; padding-bottom: 14px; }
  .docs-pager-next { grid-column: 1; text-align: left; }
  /* A tool page puts the tool first on a narrow screen; the crumbs lead back to the wiki and the sidebar follows the tool. */
  .docs-shell--tool .docs-side--nav { order: 1; border-bottom: 0; border-top: 1px solid var(--line); padding-bottom: 0; padding-top: 14px; }
  .blog-card--lead .blog-card-media { border-right: 0; border-bottom: 1px solid var(--line); }
  .plugin-dl-actions .apple-btn { flex: 1 1 220px; text-align: center; }
  .join-steps-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .plugin-pillars { grid-template-columns: 1fr; gap: 12px; }
}
/* Below 760 px a table turns into one block per row, each value under or beside its label (the information, ranking and
   game-mode tables). The server list overrides this below with its own compact row. */
@media (max-width: 759px) {
  .servers { border-collapse: collapse; border-spacing: 0; }
  .servers thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .servers, .servers tbody, .servers tr, .servers td { display: block; width: 100%; }
  .servers tr { padding: 12px 0; border-bottom: 1px solid var(--line); box-sizing: border-box; }
  .servers tbody td, .servers tbody td:first-child, .servers tbody td:last-child, .servers td.vote { border: 0; text-align: left; width: auto; padding: 2px 0; white-space: normal; max-width: none; }
  /* The desktop caps of these two cells are more specific than the line above, so they are reset here. */
  .servers td.server, .servers td[data-label="Map"] { max-width: none; }
  .servers td::before {
    content: attr(data-label);
    display: inline-block;
    min-width: 9em;
    color: var(--muted);
  }
  .servers td.server { padding-left: 0; padding-bottom: 6px; }
  .servers .server-thumb { display: none; }
  .info-table td::before { display: block; min-width: 0; }
  .ranking-table colgroup { display: none; }
  /* A long label ("Voters in the last 31 days") is wider than the 9em column and must not touch its value. */
  .info td::before { margin-right: 8px; }
  .servers td.server::before { content: none; }
  /* The map is a grid too: its label stays beside the value, and a long map name wraps in the second column instead of dropping under the label (P). */
  .servers td[data-label="Map"] { display: grid; grid-template-columns: max-content minmax(0, 1fr); column-gap: 8px; }
  .servers td.vote { padding-top: 6px; }
  .servers tbody tr:hover { background: transparent; }
  .site-header { gap: 0 16px; }
  .header-nav { order: 2; width: 100%; gap: 0 16px; }
  .header-nav nav, .header-links { gap: 0 16px; }
  .list-controls { display: block; }
  .view-switch { margin-top: 12px; }
  .join-steps-grid { grid-template-columns: 1fr; }
  .comm-discord-grid, .comm-creator-grid, .comm-video-grid { grid-template-columns: 1fr; }
  .server-hero-thumb { width: 48px; height: 48px; }
}
/* The server list on a phone: one compact row per server, no horizontal scroll. The rank and a small server icon sit on the left, the Vote
   button on the right of the name; players, map and votes follow on one small line. A server that is not online shows
   its status instead of players and map. */
@media (max-width: 759px) {
  .servers.list-table tr { position: relative; display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 12px; row-gap: 2px; padding: 12px 0 12px 70px; }
  .servers.list-table tbody td { display: inline; width: auto; padding: 0; font-size: var(--fs-sm); color: var(--muted); }
  .servers.list-table td::before { content: none; }
  .servers.list-table tbody td.rank { position: absolute; left: 0; top: 12px; font-size: var(--fs-base); }
  .servers.list-table tbody td.rank[data-top] { color: var(--online); }
  .servers.list-table tbody td.server { position: static; flex: 1 1 100%; padding: 0; font-size: var(--fs-base); color: var(--text); min-width: 0; }
  .servers.list-table .server-thumb { display: block; position: absolute; left: 28px; top: 12px; width: 32px; height: 32px; transform: none; }
  .servers.list-table:has(td.vote) tbody td.server { padding-right: 84px; box-sizing: border-box; }
  .servers.list-table td[data-label="Map"] { display: inline; max-width: none; }
  .servers.list-table td[data-label="Players"]::after { content: " players"; }
  .servers.list-table td[data-label="Votes this month"]::after { content: " votes"; }
  .servers.list-table td[data-label="All-time votes"]::after { content: " votes all time"; }
  .servers.list-table td[data-label="Uptime (30 days)"]::after { content: " uptime"; }
  .servers.list-table tr:has(.row-status) td[data-label="Players"], .servers.list-table tr:has(.row-status) td[data-label="Map"] { display: none; }
  .servers.list-table tbody td.vote { position: absolute; right: 0; top: 8px; padding: 0; }
  .servers.list-table td.vote:not(:has(.vote-btn)) { display: none; }
  /* The address is for joining from a PC: on a phone the row shows the game mode, and the server page has the address. */
  .servers.list-table .address .row-address, .servers.list-table .address .copy-btn, .servers.list-table .address .label:not(.label-mode) { display: none; }
}
@media (max-width: 331px) {
  .cf-turnstile { transform: scale(0.94); transform-origin: 0 0; }
}
/* Below 314 px the 300 px widget is scaled again, so that 300 x scale fits the width less the 16 px gutters (P): 0.84 up to
   313 px, 0.74 up to 285 px, 0.6 up to 255 px. The vote page does not scroll sideways down to 212 px. */
@media (max-width: 313px) {
  .cf-turnstile { transform: scale(0.84); transform-origin: 0 0; }
}
@media (max-width: 285px) {
  .cf-turnstile { transform: scale(0.74); transform-origin: 0 0; }
}
@media (max-width: 255px) {
  .cf-turnstile { transform: scale(0.6); transform-origin: 0 0; }
}
