/* srcdslist.com — dark brown + orange, TF2-flavoured. Tokens first. */
:root {
  --bg: #2E241D; --bg-deep: #241B15; --top: #1C1511; --card: #3E3128; --line: #5A4738; --track: #251C16;
  --text: #F3E9D6; --muted: #CDBB9F; --soft: #D9C8AB;
  --orange: #E58A3B; --orange-hi: #F09A4E; --on-orange: #1C1511; --link: #F0A866; --link-hi: #FFD3A6;
  --edge: #6B5442; --faint: #8A7660; --hint: #A8977E; --band-text: #FBF2E2; --strip: #3A2A1E; --chip-text: #E8D9BF;
  --red: #B8443B; --red-bar: #D9675B; --blu: #3F6E8E; --blu-bar: #79A7C8; --band: #7A3F17;
  --head: 'Oswald', 'Arial Narrow', sans-serif; --body: 'Source Sans 3', system-ui, sans-serif;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--body); font-size: 16px; line-height: 1.45; }
a { color: var(--link); } a:hover { color: var(--link-hi); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.skip { position: absolute; left: -9999px; } .skip:focus { left: 16px; top: 8px; background: var(--orange); color: var(--on-orange); padding: 8px 12px; z-index: 9; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
h1, h2, h3 { font-family: var(--head); text-transform: uppercase; letter-spacing: .3px; margin: 0; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; }

.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 44px; padding: 10px 20px; border: 0; border-radius: 6px;
  background: var(--orange); color: var(--on-orange); font-family: var(--head); font-weight: 600; font-size: 18px; text-transform: uppercase;
  letter-spacing: .6px; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--orange-hi); color: var(--on-orange); }
.btn.small { min-height: 40px; font-size: 16px; padding: 8px 16px; }

/* header */
.top { background: var(--top); }
.top-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; padding-top: 12px; padding-bottom: 12px; }
.logo { display: flex; align-items: center; gap: 10px; color: var(--orange); text-decoration: none; }
.logo span { font-family: var(--head); font-weight: 700; font-size: 26px; color: var(--text); } .logo b { color: var(--orange); }
.nav { display: flex; flex-wrap: wrap; gap: 2px 22px; flex: 1 1 320px; font-family: var(--head); font-weight: 500; font-size: 17px; text-transform: uppercase; letter-spacing: .8px; }
.nav a { color: var(--text); text-decoration: none; padding: 10px 0; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--orange); } .nav a[aria-current] { border-bottom-color: var(--orange); }
.nav a[aria-disabled] { color: var(--faint); cursor: default; }
.topsearch input { width: 220px; max-width: 100%; }
.who { display: flex; align-items: center; gap: 10px; font-size: 15px; }
.who img { border-radius: 4px; } .who-name { max-width: 160px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who a { color: var(--orange); } .who form { margin: 0; }
.linkbtn { font: inherit; color: var(--soft); background: none; border: 0; padding: 10px 0; cursor: pointer; text-decoration: underline; }
.linkbtn:hover { color: var(--orange); }
.signin { display: inline-block; padding: 10px 0; font-weight: 600; }
input[type=search], select { font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--edge); border-radius: 6px; padding: 9px 12px; min-height: 44px; }
input::placeholder { color: var(--hint); }

/* hero */
.hero { background: var(--bg-deep); border-bottom: 6px solid var(--orange); }
.hero-row { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-end; padding-top: 36px; padding-bottom: 40px; }
.hero-copy { flex: 999 1 480px; min-width: 0; }
.hero h1 { font-size: clamp(38px, 6vw, 56px); line-height: 1.02; } .hero h1 span { color: var(--orange); }
.hero p { color: var(--soft); font-size: 19px; max-width: 560px; margin: 14px 0 22px; }
.bigsearch { display: flex; flex-wrap: wrap; gap: 10px; max-width: 620px; }
.bigsearch input { flex: 1 1 240px; min-width: 0; font-size: 17px; }
.panel { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 20px 22px; }
.live { flex: 1 1 340px; min-width: 0; }
.live .label { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; font-size: 15px; color: var(--soft); }
.live .big { margin: 4px 0 14px; } .live .big b { font-family: var(--head); font-size: 48px; color: var(--orange); } .live .big span { color: var(--soft); }
.stack { display: flex; height: 14px; border-radius: 7px; overflow: hidden; background: var(--track); }
.legend { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 14px; color: var(--soft); }
.legend li { display: inline-flex; align-items: center; gap: 6px; } .legend li i { width: 10px; height: 10px; border-radius: 5px; display: inline-block; }
.legend b { color: var(--text); }
.c1 { background: #E58A3B; } .c2 { background: #79A7C8; } .c3 { background: #D9675B; } .c4 { background: #E8C989; } .c5 { background: #A88BD0; } .c6 { background: #8A7660; }
.note { color: var(--muted); font-size: 14px; margin: 12px 0 0; }

/* sections */
.section { padding-top: 32px; padding-bottom: 56px; }
.section-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 8px 20px; margin-bottom: 18px; }
.section-head h2 { font-size: 34px; }
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg a, .seg label span { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 14px; border: 2px solid var(--orange); border-radius: 6px;
  color: var(--text); text-decoration: none; font-weight: 700; font-size: 15px; cursor: pointer; }
.seg a[aria-current], .seg input:checked + span { background: var(--orange); color: var(--on-orange); }
.seg label input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.seg label input:focus-visible + span { outline: 3px solid var(--orange-hi); outline-offset: 2px; }
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.tile { display: flex; flex-direction: column; gap: 8px; text-decoration: none; color: var(--text); background: var(--card); border: 2px solid var(--line);
  border-radius: 10px; padding: 16px 18px; transition: transform .12s, border-color .12s; }
.tile:hover { border-color: var(--orange); transform: translateY(-2px); color: var(--text); }
.tile-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; }
.tile .t { font-family: var(--head); font-weight: 600; font-size: 22px; text-transform: uppercase; }
.kind { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .6px; padding: 3px 8px; border-radius: 4px; color: #fff; white-space: nowrap; }
.kind.official { background: var(--blu); } .kind.community { background: var(--red); }
.blurb { margin: 0; color: var(--muted); font-size: 15px; min-height: 40px; }
.count b { font-family: var(--head); font-size: 30px; color: var(--orange); } .count span { color: var(--muted); font-size: 15px; }
.bar { height: 8px; background: var(--track); border-radius: 4px; overflow: hidden; } .bar i { display: block; height: 100%; background: var(--orange); }
.bar i.official { background: var(--blu-bar); } .bar i.community { background: var(--red-bar); } .bar i.full { background: var(--red-bar); }
.after { color: var(--muted); margin-top: 18px; }

/* mode band + filters */
.band { background: var(--band); border-bottom: 6px solid var(--orange); color: var(--band-text); }
.band .wrap { padding-top: 22px; padding-bottom: 24px; }
.band h1 { font-size: clamp(34px, 5vw, 52px); line-height: 1.05; } .band p { margin: 6px 0 0; color: #F3DFC4; font-size: 17px; }
.band a { color: var(--band-text); } .crumb { font-size: 15px; margin-bottom: 6px; }
.srvname { text-transform: none !important; overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 14px !important; }
code { font-family: ui-monospace, Consolas, monospace; background: rgba(0,0,0,.25); padding: 6px 10px; border-radius: 6px; }
.filters { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 12px 22px; align-items: center; }
.checks { display: flex; flex-wrap: wrap; gap: 4px 18px; flex: 1 1 300px; }
.checks label { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-weight: 600; font-size: 15px; cursor: pointer; }
.checks input { width: 20px; height: 20px; accent-color: var(--orange); }
.sort { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.count-line { color: var(--muted); margin: 14px 2px; }
.empty { border: 2px dashed var(--faint); border-radius: 10px; padding: 26px; text-align: center; font-size: 17px; }

/* server rows */
.rows { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.row { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }
.row:hover { border-color: var(--orange); } .row.idle { opacity: .8; }
.fill { flex: 0 0 92px; text-align: center; } .fill .bar { margin-top: 6px; }
.num { font-family: var(--head); font-weight: 700; font-size: 26px; line-height: 1; } .num small { font-size: 16px; color: var(--muted); }
.state { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; color: var(--link); } .state.full { color: #F08A7F; }
.info { flex: 999 1 380px; min-width: 0; }
.info h3 { font-family: var(--body); text-transform: none; letter-spacing: 0; font-size: 18px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; overflow-wrap: anywhere; }
.info h3 a { color: var(--text); text-decoration: none; } .info h3 a:hover { color: var(--orange); }
.meta { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 14px; color: var(--muted); font-size: 15px; } .meta b { color: var(--text); }
.chip { font-size: 13px; font-weight: 600; padding: 2px 8px; border-radius: 4px; background: var(--track); color: var(--chip-text); font-family: var(--body); }
.chip.comm { background: var(--orange); color: var(--on-orange); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.chip.warn { background: #6B4A1F; color: #FFE2B8; }
.chip.official { background: transparent; border: 1px solid var(--link); color: var(--link); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .5px; }
.live .split { margin: -6px 0 12px; color: var(--soft); } .live .split b { color: var(--text); }
.act { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.copy { font-family: ui-monospace, Consolas, monospace; font-size: 14px; padding: 10px 12px; min-height: 44px; border-radius: 6px; border: 2px solid var(--edge); background: transparent; color: var(--text); cursor: pointer; }
.copy:hover { border-color: var(--orange); }

/* server page + mode list */
.two { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 32px; }
.two h2 { font-size: 26px; margin-bottom: 12px; }
.chart { width: 100%; height: auto; background: var(--card); border: 2px solid var(--line); border-radius: 10px; }
.chart .axis { stroke: var(--line); stroke-width: 1; } .chart .line { fill: none; stroke: var(--orange); stroke-width: 2.5; stroke-linejoin: round; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 16px; margin: 0; } .facts dt { color: var(--muted); } .facts dd { margin: 0; }
.tags { overflow-wrap: anywhere; color: var(--soft); }
.modelist { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.modelist li { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 12px 16px; display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; }
.modelist li a { color: var(--text); text-decoration: none; display: flex; gap: 10px; align-items: center; } .modelist b { font-family: var(--head); font-size: 20px; text-transform: uppercase; font-weight: 600; }
.modelist .n { color: var(--orange); font-weight: 700; } .modelist p { grid-column: 1 / -1; margin: 0; color: var(--muted); }

/* footer */
.foot { background: var(--top); color: var(--muted); font-size: 14px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; padding-top: 22px; padding-bottom: 22px; }

/* admin: plain and readable */
.admin-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 28px; }
.admin-nav { display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: center; }
.admin-nav a, .linkbtn { color: var(--band-text); font-weight: 700; }
.linkbtn { background: none; border: 0; font: inherit; text-decoration: underline; cursor: pointer; min-height: 44px; }
.admin h2 { font-size: 24px; margin: 26px 0 10px; } .admin h2:first-child { margin-top: 0; }
.tablebox { overflow-x: auto; border: 2px solid var(--line); border-radius: 10px; }
.admin table { border-collapse: collapse; width: 100%; font-size: 15px; }
.admin th, .admin td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.admin th { background: var(--top); position: sticky; top: 0; } .admin tr:nth-child(even) td { background: rgba(0,0,0,.12); }
.admin small { color: var(--muted); }
.box { background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 16px; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.box.narrow { max-width: 420px; flex-direction: column; align-items: stretch; }
.form-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 6px; align-items: stretch; max-width: 760px; }
.form-grid label { font-weight: 700; margin-top: 8px; } .form-grid .btn { justify-self: start; margin-top: 12px; }
.admin input:not([type=checkbox]), .admin textarea, .admin select { font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--edge); border-radius: 6px; padding: 8px 10px; min-height: 40px; }
fieldset { border: 2px solid var(--line); border-radius: 10px; display: grid; gap: 6px; padding: 10px 14px; } legend { font-weight: 700; padding: 0 6px; }
.check { display: flex; gap: 8px; align-items: center; }
.inline { display: flex; flex-wrap: wrap; gap: 4px; }
.inline button { font: inherit; font-size: 13px; font-weight: 700; padding: 6px 8px; min-height: 36px; border-radius: 5px; border: 2px solid var(--edge); background: var(--bg); color: var(--text); cursor: pointer; }
.inline button:hover { border-color: var(--orange); }
.err { color: #F08A7F; } .ok { color: #9FD38A; }
.plain { padding-left: 20px; }

/* communities */
.comms { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.comm a { display: flex; flex-direction: column; gap: 6px; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 10px; padding: 14px 16px; color: var(--text); text-decoration: none; }
.comm a:hover { border-color: var(--orange); color: var(--text); }
.comm.quiet a { opacity: .7; }
.cname { font-family: var(--head); font-weight: 600; font-size: 21px; text-transform: uppercase; overflow-wrap: anywhere; }
.cdesc { color: var(--muted); font-size: 15px; overflow-wrap: anywhere; } .cmeta { font-size: 14px; color: var(--soft); } .cmeta b { color: var(--orange); }
.ok-chip { background: #3D6B34; color: #EAF6E2; font-family: var(--body); text-transform: uppercase; font-size: 12px; font-weight: 700; }
.notice { background: var(--card); border: 2px dashed var(--faint); border-radius: 10px; padding: 12px 16px; margin: 0 0 18px; }
.ok-notice { border-color: #5E8F4F; }
h2.sub { font-size: 26px; margin-bottom: 12px; }
a.chip.comm { text-decoration: none; } a.chip.comm:hover { background: var(--orange-hi); color: var(--on-orange); }

/* forms for signed-in people (claiming, community edit) */
.form input:not([type=checkbox]):not([type=hidden]), .form textarea { font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--edge); border-radius: 6px; padding: 9px 12px; min-height: 44px; width: 100%; max-width: 560px; }
.form textarea { min-height: 120px; }
.form label { font-weight: 700; display: block; margin-top: 10px; }
.two-col { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; }
.steps { padding-left: 22px; max-width: 760px; } .steps > li { margin-bottom: 28px; } .steps h2 { font-size: 24px; margin-bottom: 8px; }
.steps pre { background: rgba(0,0,0,.3); border-radius: 6px; padding: 10px 14px; overflow-x: auto; }
.code-line { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; } .code-line code { font-size: 22px; color: var(--orange); }
.copy-code { font: inherit; font-weight: 700; min-height: 44px; padding: 8px 14px; border-radius: 6px; border: 2px solid var(--orange); background: transparent; color: var(--text); cursor: pointer; }
.check-form .btn { margin-top: 12px; }
.srvlist { list-style: none; padding: 0; margin: 0 0 20px; } .srvlist li { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.srvlist small { color: var(--muted); }
.owner-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 8px; }

/* history charts */
.chart-fig, .rush-fig { margin: 0 0 24px; }
.chart .axis { stroke: var(--line); stroke-width: 1.5; } .chart .grid { stroke: var(--line); stroke-width: 1; opacity: .55; }
.chart .line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--orange); fill-opacity: .14; }
.chart .xlab, .chart .ylab { fill: var(--muted); font-size: 12px; font-family: var(--body); }
.rush { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(24, minmax(0, 1fr)); gap: 3px; align-items: end; height: 140px; }
.rush li { display: flex; flex-direction: column; align-items: center; height: 100%; }
.rush .rbar { flex: 1; width: 100%; display: flex; align-items: flex-end; background: var(--track); border-radius: 3px; }
.rush .rbar i { display: block; width: 100%; background: var(--orange); opacity: .55; border-radius: 3px; } .rush .rbar i.peak { opacity: 1; }
.rush .rlab { font-size: 11px; color: var(--muted); margin-top: 3px; }
@media (max-width: 520px) { .rush li:nth-child(odd) .rlab { visibility: hidden; } }
.stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0 0 24px; }
.stat-grid .panel b { display: block; font-family: var(--head); font-size: 34px; color: var(--orange); }
.stat-grid .panel span { color: var(--soft); font-size: 15px; }
.tbl { width: 100%; border-collapse: collapse; } .tbl th, .tbl td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.tbl td.n, .tbl th.n { text-align: right; font-variant-numeric: tabular-nums; } .tbl th { color: var(--soft); font-weight: 600; }
.tbl-wrap { overflow-x: auto; }
.maplink { color: inherit; } .maplink:hover { color: var(--orange); }
.preview-strip { background: var(--strip); color: var(--soft); text-align: center; font-size: 14px; padding: 6px 16px; border-bottom: 1px solid var(--line); }
.prose { max-width: 820px; } .prose h2 { font-size: 26px; margin: 28px 0 8px; } .prose li { margin: 6px 0; } .prose p { line-height: 1.6; }
.inline-avatar { vertical-align: middle; border-radius: 4px; }
.how-placed { margin-top: 10px; } .how-placed summary { cursor: pointer; font-weight: 600; } .how-placed code { padding: 2px 6px; }
.clear-filters { margin-left: 8px; align-self: center; }
.map-head { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; justify-content: space-between; }
.map-copy { flex: 999 1 420px; min-width: 0; }
.map-pic { flex: 1 1 280px; max-width: 420px; margin: 0; } .map-pic img { width: 100%; height: auto; border-radius: 10px; border: 2px solid var(--line); display: block; }
.motd { display: flex; flex-wrap: wrap; gap: 20px; align-items: center; margin-bottom: 28px; }
.motd img { width: 260px; max-width: 100%; border-radius: 8px; } .motd h2 { font-size: 30px; margin: 4px 0; overflow-wrap: anywhere; }
.motd .label { font-family: var(--head); text-transform: uppercase; letter-spacing: 1px; color: var(--orange); margin: 0; }
.world { position: relative; width: 100%; aspect-ratio: 2 / 1; background: var(--bg-deep); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; }
.world-land, .world-dots { position: absolute; inset: 0; width: 100%; height: 100%; }
.world-land { background: var(--line); -webkit-mask: url(/static/world.svg) center / 100% 100% no-repeat; mask: url(/static/world.svg) center / 100% 100% no-repeat; }
.world-dots circle.busy { fill: var(--orange); fill-opacity: .75; stroke: var(--orange-hi); stroke-width: .8; }
.world-dots circle.quiet { fill: var(--hint); fill-opacity: .45; }
.world-dots a:hover circle, .world-dots a:focus circle { fill: var(--orange-hi); }
.near-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; }
.near-form select { font: inherit; color: var(--text); background: var(--card); border: 2px solid var(--edge); border-radius: 6px; padding: 8px 10px; min-height: 44px; }
.quicklinks { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; font-weight: 600; }
.quicklinks a { display: inline-flex; align-items: center; min-height: 44px; padding: 8px 16px; border: 2px solid var(--orange); border-radius: 6px; text-decoration: none; color: var(--text); background: rgba(0,0,0,.15); }
.quicklinks a:hover { background: var(--orange); color: var(--on-orange); }
.quicklinks a.qp-link { background: var(--orange); color: var(--on-orange); } .quicklinks a.qp-link:hover { background: var(--orange-hi); }

/* Quick play */
.qp-form { margin-top: 16px; }
.qp-form label { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; max-width: 100%; }
.qp-form select { min-width: 0; max-width: 100%; text-overflow: ellipsis; }   /* a long campaign or map name stays inside the box */
.qp-form select[name=map], .qp-form select[name=camp] { max-width: 280px; }
.qp-form .qp-check input { width: 20px; height: 20px; accent-color: var(--orange); }
.qp-go { display: inline-flex; flex-wrap: wrap; gap: 10px; margin-left: auto; }
.btn.qp-alt { background: transparent; color: var(--text); border: 2px solid var(--orange); }
.btn.qp-alt:hover { background: var(--orange); color: var(--on-orange); }
.qp-acts { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; margin: 12px 0 0; }
.qp-never { color: var(--soft); }
.qp-f { display: inline; margin: 0; } .qp-f .linkbtn { padding: 0; min-height: 0; }
.qp-excl { margin-top: 22px; } .qp-excl summary { cursor: pointer; font-weight: 600; color: var(--soft); }
.qp-excl ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.mode-qp { margin-top: 12px; }
.banner-img { max-width: 100%; height: auto; border-radius: 6px; } code.embed { display: block; overflow-x: auto; white-space: nowrap; font-size: 13px; max-width: 100%; }
.filter-sum { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 15px; color: var(--soft); }
.mode-checks { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 4px 12px; }
.btn.danger { background: #8C3A30; color: #FFE9E4; } .btn.danger:hover { background: #A84538; }
.form fieldset label.check { display: flex; font-weight: 400; margin-top: 0; }
.alert-form { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: end; margin-bottom: 16px; } .alert-form label { margin: 0; } .alert-form input, .alert-form select { width: auto; min-height: 44px; } .alert-form input[name=map] { min-width: 220px; }
.news { list-style: none; padding: 0; margin: 0; } .news li { padding: 12px 0; border-bottom: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; } .news a { font-weight: 600; font-size: 17px; overflow-wrap: anywhere; }

@media (max-width: 640px) { .wide-only { display: none; } .tbl td, .tbl th { padding: 8px 6px; } }

.map-desc { white-space: pre-line; max-width: 70ch; }

/* art and videos */
.post-form { display: grid; gap: 6px; max-width: 640px; margin-bottom: 20px; } .post-form label { font-weight: 700; }
.post-form input { font: inherit; color: var(--text); background: var(--bg); border: 2px solid var(--edge); border-radius: 6px; padding: 9px 12px; min-height: 44px; }
.post-form .btn { justify-self: start; }
.art-grid, .video-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.art-card, .video-card { background: var(--card); border: 2px solid var(--line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.art-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; display: block; background: var(--bg-deep); }
.art-meta { padding: 10px 12px 4px; display: flex; flex-direction: column; gap: 2px; overflow-wrap: anywhere; }
.votes { padding: 6px 12px 12px; } .votes form { display: flex; gap: 8px; margin: 0; }
.votes .admin-remove { margin-top: 6px; }
.vote { font: inherit; font-weight: 700; min-height: 40px; min-width: 64px; border-radius: 6px; border: 2px solid var(--edge); background: var(--bg); color: var(--text); cursor: pointer; }
.vote.on { border-color: var(--orange); color: var(--orange); }
.yt { position: relative; padding: 0; border: 0; background: #000; cursor: pointer; display: block; width: 100%; aspect-ratio: 16 / 9; }
.yt img { width: 100%; height: 100%; object-fit: cover; display: block; opacity: .85; } .yt:hover img { opacity: 1; }
.yt .play { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-size: 46px; color: #fff; text-shadow: 0 2px 8px #000; }
.yt-frame { width: 100%; aspect-ratio: 16 / 9; border: 0; display: block; }

.preview-strip.stale { background: #5A2E22; color: #FFE1D6; }

.hook-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.hook-form { margin-top: 12px; }

.also { font-size: 14px; color: var(--soft); } .also a { color: var(--orange); }

/* game switch and per-game colours (TF2 is the default palette) */
.gamebar { background: var(--bg-deep); border-bottom: 1px solid var(--line); }
.gamebar .wrap { display: flex; align-items: center; gap: 10px; padding-top: 6px; padding-bottom: 6px; }
.gamebar .note { margin: 0; line-height: 1; }
.games { display: flex; gap: 8px; } .games a { font-family: var(--head); font-weight: 600; letter-spacing: .5px; padding: 5px 16px; min-width: 44px; text-align: center;
  border: 2px solid var(--line); border-radius: 6px; color: var(--soft); text-decoration: none; font-size: 15px; }
/* six games (2026-11-15): on a phone the buttons tighten and the "Game:" label goes, so all six fit on one line; on the
   narrowest screens they wrap rather than run off the edge */
@media (max-width: 600px) {
  .gamebar .note { display: none; }
  .games { flex-wrap: wrap; gap: 6px; } .games a { padding: 5px 9px; min-width: 0; font-size: 14px; letter-spacing: .3px; }
}
.games a[aria-current] { background: var(--orange); border-color: var(--orange); color: var(--on-orange); } .games a:hover { border-color: var(--orange); color: var(--text); }
html[data-game="l4d2"], body[data-game="l4d2"], [data-game="l4d2"].game-card, .gtag[data-game="l4d2"], .tint[data-game="l4d2"] { --edge: #6A5650; --faint: #84756F; --hint: #A0938C; --band-text: #F7ECE8; --strip: #3A2522; --chip-text: #E6DAD5; --orange: #C8423A; --orange-hi: #E2554B; --on-orange: #FFF3EE; --bg: #1C1B1A; --bg-deep: #141312; --top: #121110;
  --card: #2A2725; --line: #4A3F3A; --track: #3A3330; --band: #5A1E19; --link: #E8837A; --link-hi: #FFC2BC;
  --text: #EDE6E1; --muted: #BFB3AC; --soft: #D2C7C0; }
html[data-game="cs2"], body[data-game="cs2"], [data-game="cs2"].game-card, .gtag[data-game="cs2"], .tint[data-game="cs2"] { --edge: #4B5D72; --faint: #6E7F92; --hint: #8D9DAF; --band-text: #EEF3F8; --strip: #1E2A38; --chip-text: #D8E1EA; --orange: #E9A23B; --orange-hi: #F5B754; --on-orange: #1A1408; --bg: #151A21; --bg-deep: #10141A; --top: #0D1116;
  --card: #1F2731; --line: #33404F; --track: #2A3440; --band: #24384D; --link: #F2B85E; --link-hi: #FFDCA3;
  --text: #E6ECF2; --muted: #A9B6C4; --soft: #C3CEDA; }
/* the other games (2026-11-15): Garry's Mod blue, Left 4 Dead green, CS:Source teal */
html[data-game="gmod"], body[data-game="gmod"], [data-game="gmod"].game-card, .gtag[data-game="gmod"], .tint[data-game="gmod"] { --edge: #4A5C70; --faint: #6C7D90; --hint: #8C9CAE; --band-text: #EEF4FA; --strip: #1B2633; --chip-text: #D6E2EE; --orange: #4FA3E8; --orange-hi: #73B8F0; --on-orange: #0B1520; --bg: #161A20; --bg-deep: #101318; --top: #0C0F13;
  --card: #1F252E; --line: #33404F; --track: #2A323D; --band: #1E3550; --link: #7BBDF2; --link-hi: #B9DDFA;
  --text: #E6EDF5; --muted: #A8B4C2; --soft: #C3CFDB; }
html[data-game="l4d"], body[data-game="l4d"], [data-game="l4d"].game-card, .gtag[data-game="l4d"], .tint[data-game="l4d"] { --edge: #5E6452; --faint: #7B8070; --hint: #989C8E; --band-text: #F1F4EA; --strip: #252C1A; --chip-text: #DDE2D3; --orange: #9DBB4E; --orange-hi: #B5D163; --on-orange: #121808; --bg: #191A17; --bg-deep: #121310; --top: #0F100D;
  --card: #252722; --line: #3E4237; --track: #33362E; --band: #2E3A1A; --link: #B6D06E; --link-hi: #DCEBB0;
  --text: #E9ECE3; --muted: #B4B9A9; --soft: #CBD0C1; }
html[data-game="css"], body[data-game="css"], [data-game="css"].game-card, .gtag[data-game="css"], .tint[data-game="css"] { --edge: #4A6260; --faint: #6B8381; --hint: #8BA19F; --band-text: #ECF6F5; --strip: #1A2B29; --chip-text: #D3E4E2; --orange: #3FB8A8; --orange-hi: #5CCFBF; --on-orange: #08201C; --bg: #151B1B; --bg-deep: #0F1414; --top: #0B1010;
  --card: #1E2727; --line: #324242; --track: #283434; --band: #173A36; --link: #6BD0C2; --link-hi: #B3EBE3;
  --text: #E3EFEE; --muted: #A5BAB8; --soft: #C0D2D0; }

/* front page: neutral colours, one card per game in that game's colours */
html[data-game="all"], body[data-game="all"] { --edge: #555961; --faint: #7A7770; --hint: #98948C; --band-text: #F2EFE9; --strip: #2A2C30; --chip-text: #DEDAD2; --orange: #E2DCCF; --orange-hi: #FFFFFF; --on-orange: #17181A; --bg: #191A1C; --bg-deep: #121315;
  --top: #0F1012; --card: #24262A; --line: #3B3E44; --track: #2C2F34; --band: #26282C; --link: #E2DCCF; --link-hi: #FFFFFF;
  --text: #EEEAE2; --muted: #B4AFA6; --soft: #CFCAC0; }
.game-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.game-card { display: flex; flex-direction: column; gap: 6px; padding: 20px; border-radius: 12px; text-decoration: none; color: var(--text);
  background: var(--card); border: 2px solid var(--line); border-top: 6px solid var(--orange); }
.game-card:hover { border-color: var(--orange); }
.gc-name { font-family: var(--head); font-weight: 600; font-size: 22px; text-transform: uppercase; letter-spacing: .5px; }
.gc-big b { font-family: var(--head); font-size: 40px; color: var(--orange); } .gc-big { font-size: 18px; }
.gc-modes { list-style: none; padding: 0; margin: 6px 0; } .gc-modes li { display: flex; justify-content: space-between; padding: 3px 0; border-bottom: 1px solid var(--line); }
.gc-go { margin-top: auto; padding-top: 8px; font-weight: 700; color: var(--orange); }
.front-feeds { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 28px; }
.gtag { display: inline-block; font-family: var(--head); font-size: 12px; font-weight: 600; padding: 1px 6px; border-radius: 4px;
  background: var(--orange); color: var(--on-orange); }
.ann { display: block; } .ann p { margin: 6px 0 0; white-space: pre-line; }
[data-game="tf2"].game-card, .gtag[data-game="tf2"], .tint[data-game="tf2"] { --orange: #E58A3B; --on-orange: #1C1511; --card: #3E3128; --line: #5A4738; --text: #F3E9D6; }

/* line charts: the plot stretches to the width; labels are text at a fixed size, so they read the same on any screen */
.lchart { position: relative; display: grid; grid-template-columns: 52px 1fr; background: var(--card); border: 2px solid var(--line);
  border-radius: 10px; padding: 14px 14px 30px 0; outline-offset: 3px; }
.lchart:focus-visible { outline: 2px solid var(--orange); }
.ly { position: relative; } .ly span { position: absolute; right: 8px; transform: translateY(-50%); font-size: 13px; color: var(--muted);
  font-variant-numeric: tabular-nums; }
.lplot { position: relative; height: 200px; }
.lplot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.lplot .grid { stroke: var(--line); stroke-width: 1; opacity: .55; vector-effect: non-scaling-stroke; } .lplot .grid.day { opacity: .3; }
.lplot .axis { stroke: var(--line); stroke-width: 1.5; vector-effect: non-scaling-stroke; }
.lplot .line { fill: none; stroke: var(--orange); stroke-width: 2; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.lplot .area { fill: var(--orange); fill-opacity: .14; }
.lx span { position: absolute; top: calc(100% + 8px); padding-left: 4px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.lx-line, .lx-dot, .chart-tip { display: none; position: absolute; pointer-events: none; }
.lchart.on .lx-line, .lchart.on .lx-dot, .lchart.on .chart-tip { display: block; }
.lx-line { top: 0; bottom: 0; width: 1px; background: var(--text); opacity: .45; }
.lx-dot { width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: var(--orange); box-shadow: 0 0 0 2px var(--card); }
.chart-tip { top: 0; background: var(--top); border: 1px solid var(--line); border-radius: 6px; padding: 6px 10px; font-size: 14px;
  line-height: 1.3; white-space: nowrap; box-shadow: 0 4px 14px rgba(0,0,0,.35); z-index: 2; }
.chart-tip b { display: block; font-size: 17px; color: var(--text); } .chart-tip span { color: var(--muted); }
@media (max-width: 640px) { .lplot { height: 160px; } .lchart { grid-template-columns: 44px 1fr; } .ly span, .lx span { font-size: 12px; } }
.chart-table { margin-top: 6px; } .chart-table summary { cursor: pointer; color: var(--link); font-size: 14px; }

/* header on phones: logo + Menu button; the menu, search and sign-in open under it (only with scripts on; without
   them everything stays visible, as before) */
.menu-btn { display: none; }
.hdr-more { display: contents; }
@media (max-width: 760px) {
  html.js .menu-btn { display: inline-flex; align-items: center; margin-left: auto; font: inherit; font-family: var(--head);
    font-weight: 600; letter-spacing: .5px; text-transform: uppercase; color: var(--text); background: var(--card);
    border: 2px solid var(--edge); border-radius: 6px; padding: 6px 14px; min-height: 44px; cursor: pointer; }
  html.js .menu-btn[aria-expanded="true"] { border-color: var(--orange); color: var(--orange); }
  html.js .hdr-more { display: none; width: 100%; flex-direction: column; align-items: stretch; gap: 10px; padding-bottom: 6px; }
  html.js .top.open .hdr-more { display: flex; }
  html.js .hdr-more .nav { flex: none; flex-direction: column; gap: 0; }
  html.js .hdr-more .nav a { padding: 11px 0; border-bottom: 1px solid var(--line); }
  html.js .hdr-more .nav a[aria-current] { border-bottom: 1px solid var(--line); color: var(--orange); }
  html.js .hdr-more .topsearch input { width: 100%; }
  .top-row { padding-top: 8px; padding-bottom: 8px; gap: 8px 16px; }
}

.pager { display: flex; gap: 18px; align-items: center; justify-content: center; margin: 14px 0 24px; font-weight: 600; }
.pager a { padding: 10px 14px; border: 2px solid var(--edge); border-radius: 6px; text-decoration: none; }
.pager a:hover { border-color: var(--orange); } .pager span { color: var(--muted); font-weight: 400; }

/* support page: why / thanks / how on the left, the supporters board on the right */
.support-split { display: grid; grid-template-columns: 1fr 1fr; gap: 36px; align-items: start; }
@media (max-width: 760px) { .support-split { grid-template-columns: 1fr; } }
.plain-steps { padding-left: 22px; } .plain-steps li { margin: 6px 0; }
.note-list { padding-left: 18px; color: var(--muted); font-size: 14px; } .note-list li { margin: 4px 0; }
.board { list-style: none; padding: 0; margin: 0; }
.board li { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px;
  background: var(--card); border: 2px solid var(--line); border-radius: 8px; margin-bottom: 8px; }
.board .rank { font-family: var(--head); font-size: 20px; color: var(--muted); text-align: center; }
.board .who { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; min-width: 0; }
.board .who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board .who img, .board .ph { width: 32px; height: 32px; border-radius: 4px; flex: none; } .board .ph { background: var(--track); }
.board .amt { font-family: var(--head); font-size: 18px; color: var(--orange); font-variant-numeric: tabular-nums; }

/* tooltips on status labels and setting tags: hover, keyboard focus or a tap */
.tip { position: relative; cursor: help; }
.tip:hover::after, .tip:focus::after { content: attr(data-tip); position: absolute; left: 0; bottom: calc(100% + 6px); z-index: 20;
  width: max-content; max-width: min(240px, 70vw); white-space: normal; text-transform: none; letter-spacing: 0; font: 400 13px/1.35 var(--body);
  color: var(--text); background: var(--top); border: 1px solid var(--line); border-radius: 6px; padding: 6px 9px;
  box-shadow: 0 4px 14px rgba(0,0,0,.35); pointer-events: none; }
.tip:focus { outline: 2px solid var(--orange); outline-offset: 2px; }

/* phones and tablets can't open steam:// links: copy the connect command instead */
.touch-only { display: none; }
@media (hover: none) and (pointer: coarse) {
  .touch-only { display: block; } .desk-only { display: none !important; }
  .row .join { display: none; }
  .row .copy { border-color: var(--orange); color: var(--text); }
  .row .copy::after { content: "Copy"; margin-left: 8px; font-family: var(--head); font-weight: 600; color: var(--orange); }
  .row .copy[data-copy]::after { content: attr(data-copy); }   /* the word in the page's language (not set in English) */
}
.join-note { margin-top: 10px; }
.owner-banner { border-top: 1px solid var(--line); }

/* mode page: on phones the filters fold behind a button (only with scripts on, so they're never unreachable) */
.filters-toggle { display: none; }
@media (max-width: 760px) {
  html.js .filters-toggle { display: inline-flex; align-items: center; gap: 8px; font: inherit; font-weight: 700; color: var(--text);
    background: var(--card); border: 2px solid var(--edge); border-radius: 6px; padding: 8px 14px; min-height: 44px; margin-bottom: 10px; cursor: pointer; }
  html.js .filters-box:not(.open) .filters { display: none; }
  html.js .filters-box.open .filters-toggle { border-color: var(--orange); }
}
.badge { font-size: 12px; font-weight: 700; padding: 1px 7px; border-radius: 9px; background: var(--orange); color: var(--on-orange); }

/* front page: search all three games; change since yesterday */
.front-search { margin-top: 16px; max-width: 640px; }
.gc-change { font-size: 13px; color: var(--muted); }

/* search across games */
.find-game { margin-top: 26px; }
.find-game .section-head h2 { display: flex; align-items: center; gap: 10px; }

/* Servers near you: region links */
.region-pick { margin-top: 12px; }
.region-pick a.on { font-weight: 700; color: var(--text); text-decoration: none; }

/* world map: controls, zoom and pan (the land is drawn in the same SVG so it stays sharp) */
.map-controls { display: none; }
html.js .map-controls { display: flex; flex-wrap: wrap; gap: 8px 14px; align-items: center; margin-bottom: 10px; }
.map-controls button { font: inherit; font-size: 14px; color: var(--text); background: var(--card); border: 1px solid var(--line);
  border-radius: 6px; padding: 6px 11px; min-height: 36px; cursor: pointer; }
.map-controls button:hover, .map-controls button:focus-visible { border-color: var(--orange); }
.map-zoom { display: inline-flex; gap: 4px; }
.map-zoom button[data-zoom="in"], .map-zoom button[data-zoom="out"] { min-width: 38px; font-weight: 700; font-size: 18px; line-height: 1; }
.map-jumps { display: inline-flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.map-jumps .note { margin-right: 4px; }
.world-svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.world-svg .land { fill: var(--line); stroke: none; }
.world-svg circle { vector-effect: non-scaling-stroke; }
html.js .world { cursor: grab; touch-action: pan-y; }
html.js .world.zoomed { touch-action: none; }
html.js .world.dragging { cursor: grabbing; }
.world:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; }
.map-help { display: none; }
html.js .map-help { display: block; }

/* busiest hours fold (closed on phones by the script) */
.rush-box > summary { cursor: pointer; font-weight: 700; color: var(--muted); margin: 14px 0 6px; }
.rush-box[open] > summary { margin-bottom: 0; }
.note.rush-quiet { margin: 14px 0 24px; }   /* "Too quiet for busiest hours": the gap the chart would have left */

/* FAQ: contents, then a section per game (the visitor's game first) */
.faq-toc { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 6px 26px; background: var(--card);
  border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
.faq-toc .toc-head { font-size: 16px; margin: 4px 0; border: 0; padding: 0; }
.faq-toc ul { margin: 0; padding-left: 18px; }
.faq-toc li { margin: 3px 0; font-size: 14px; }
.faq-sec { scroll-margin-top: 70px; }
.faq-sec h3 { scroll-margin-top: 70px; }
.faq-game { margin-top: 34px; padding-bottom: 6px; border-bottom: 2px solid var(--edge); }
.tint .faq-game, .tint .toc-head a { color: var(--orange); }
.tint .faq-game { border-bottom-color: var(--orange); }

/* account page tabs (built by the script; without it every section shows) */
.acct-tabs { display: flex; flex-wrap: wrap; gap: 4px; border-bottom: 2px solid var(--line); margin: 6px 0 4px; }
.acct-tabs button { font: inherit; font-weight: 600; color: var(--muted); background: none; border: 0; border-bottom: 3px solid transparent;
  margin-bottom: -2px; padding: 10px 14px; min-height: 44px; cursor: pointer; }
.acct-tabs button[aria-selected="true"] { color: var(--text); border-bottom-color: var(--orange); }
.acct-tabs button:focus-visible { outline: 2px solid var(--orange); outline-offset: -2px; }
.acct-panel[hidden] { display: none; }

/* map tables: long map names wrap instead of pushing the table wider than a phone */
.maps-tbl td:first-child { overflow-wrap: anywhere; }
@media (max-width: 640px) { .maps-tbl td:first-child small { display: block; } }

/* admin: community suggestions */
.sugg-filters { display: flex; flex-wrap: wrap; gap: 10px 18px; }
table.sugg td { vertical-align: top; }
table.sugg .samples { margin: 6px 0 0; }
.sugg-form label { display: block; margin-bottom: 6px; font-size: 13px; }
.sugg-form input { width: 100%; max-width: 260px; }
.sugg-form label.check input { width: auto; }
.sugg-hint { font-weight: 600; }
.sugg-hint.bad { color: var(--red-bar); }

/* stats page: list sections fold (summary = the section heading, with its row count) */
details.fold > summary { list-style: none; cursor: pointer; }
details.fold > summary::-webkit-details-marker { display: none; }
details.fold > summary h2 { display: flex; align-items: center; gap: 8px; }
details.fold > summary h2::before { content: ""; flex: none; width: 0; height: 0; border-left: 7px solid var(--muted); border-top: 5px solid transparent; border-bottom: 5px solid transparent; transition: transform .15s; }
details.fold[open] > summary h2::before { transform: rotate(90deg); }
details.fold > summary:focus-visible { outline: 2px solid var(--orange); outline-offset: 2px; border-radius: 4px; }
.fold-n { font-size: 12px; font-weight: 700; color: var(--muted); border: 1px solid var(--line); border-radius: 9px; padding: 0 7px; }
@media (prefers-reduced-motion: reduce) { details.fold > summary h2::before { transition: none; } }

/* L4D2 campaign page: the chapters as jump links, then servers grouped by chapter */
.chapter-strip { display: flex; flex-wrap: wrap; gap: 6px; }
.chapter-strip .chip { text-decoration: none; }
.chapter-strip .chip.quiet { opacity: .6; }
.chapter-head { scroll-margin-top: 70px; margin-top: 22px; }
/* admin: gamemode suggestions */
.sugg-form fieldset.rules { border: 0; padding: 0; margin: 0 0 8px; }
.sugg-form fieldset.rules label.check { display: block; margin-bottom: 4px; }
.sugg-form fieldset.rules input { width: auto; }
.sugg-form .mode-choice { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 6px 10px; margin-bottom: 8px; }
.sugg-form .mode-choice label { margin: 0; }
.bad-note { color: var(--red-bar); font-weight: 600; }
/* owner health page */
.health-srv { margin: 18px 0; }
.health-srv h2 { margin: 0 0 4px; font-size: 22px; }
.health-issues { list-style: none; padding: 0; margin: 10px 0; display: grid; gap: 6px; }
.health-issues li { padding: 8px 12px; border-radius: 6px; border-left: 4px solid var(--line); background: var(--track); }
.health-issues .lv-bad { border-left-color: var(--red-bar); }
.health-issues .lv-warn { border-left-color: var(--orange); }
/* events */
.ev-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 8px; }
.ev-row { display: grid; grid-template-columns: 190px 1fr auto; gap: 12px; align-items: center; background: var(--card);
  border: 2px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.ev-row .ev-what .note { display: block; }
.ev-row .ev-extra { color: var(--soft); white-space: nowrap; }
.ev-desc { white-space: pre-line; }
details.report { margin-top: 24px; }
@media (max-width: 640px) { .ev-row { grid-template-columns: 1fr; gap: 4px; } .ev-row .ev-extra { white-space: normal; } }

.mono { font-family: ui-monospace, Consolas, monospace; font-size: 14px; }
/* course tiers */
.chip.tier { background: var(--blu); color: #fff; }
.course-box { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 8px 0; }

/* statistics page: section links, numbers with a change line, bars inside tables, small charts */
.stats-nav { position: sticky; top: 0; z-index: 5; background: var(--bg-deep); border-bottom: 2px solid var(--line); }
.stats-nav .wrap { display: flex; gap: 4px; overflow-x: auto; padding-top: 0; padding-bottom: 0; scrollbar-width: thin; }
.stats-nav a { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 6px 12px; color: var(--text);
  text-decoration: none; font-family: var(--head); font-size: 16px; text-transform: uppercase; letter-spacing: .3px; border-bottom: 3px solid transparent; }
.stats-nav a:hover, .stats-nav a:focus-visible { border-bottom-color: var(--orange); }
h2.sec { scroll-margin-top: 60px; margin-top: 40px; padding-top: 14px; border-top: 2px solid var(--line); }
h2.sec:first-of-type { margin-top: 0; border-top: 0; padding-top: 0; }
.sub3 { font-family: var(--head); font-size: 21px; font-weight: 600; text-transform: uppercase; margin: 26px 0 10px; }
.sub4 { font-family: var(--head); font-size: 17px; font-weight: 600; text-transform: uppercase; margin: 12px 0 6px; color: var(--soft); }
.stat-grid .panel small.delta { display: block; margin-top: 6px; font-size: 14px; color: var(--muted); }
.hbar { display: block; height: 12px; min-width: 60px; }
.hbar i { display: block; height: 100%; min-width: 2px; background: var(--orange); border-radius: 0 4px 4px 0; }
.bars-tbl td.barcol, .bars-tbl th.barcol { width: 34%; padding-left: 0; padding-right: 0; }
.two .bars-tbl td.barcol, .two .bars-tbl th.barcol { width: 26%; }
.spark { display: block; width: 120px; height: 28px; overflow: visible; }
.spark polyline { fill: none; stroke: var(--orange); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.mini-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 14px 18px; }
.mini-fig { margin: 0; } .mini-fig figcaption { margin: 0 0 6px; font-weight: 600; }
.mini-fig figcaption .note { font-weight: 400; margin-left: 6px; }
.lchart.mini { grid-template-columns: 44px 1fr; padding: 10px 12px 26px 0; } .lchart.mini .lplot { height: 110px; }
.lchart.mini .ly span, .lchart.mini .lx span { font-size: 12px; }
.movers { list-style: none; padding: 0; margin: 0 0 12px; display: grid; gap: 8px; } .movers .note { display: block; }
.js .modes-tbl:not(.all) tr.more-row, .js .more-tbl:not(.all) .more-row { display: none; }
.tile .usual { font-size: 14px; color: var(--soft); margin-top: -2px; }
.langs { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 4px 6px; align-items: center; }
.langs a { padding: 6px 2px; } .langs a[aria-current] { color: var(--text); font-weight: 700; text-decoration: none; }
.comm-head { display: flex; align-items: center; gap: 16px; } .comm-head h1 { min-width: 0; overflow-wrap: anywhere; }
.comm-avatar { width: 72px; height: 72px; border-radius: 8px; border: 2px solid var(--line); flex: 0 0 auto; }
.pic-admin { margin: 0 0 16px; padding: 10px 14px; border: 2px dashed var(--edge); border-radius: 8px; }
.pic-admin summary { cursor: pointer; font-weight: 600; } .pic-admin form { margin-top: 10px; }
.map-pic img { aspect-ratio: 16 / 9; object-fit: cover; }
/* pictures in lists (the default) and picture cards (each visitor's choice: /view/list, /view/cards) */
.thumb { display: block; border-radius: 5px; object-fit: cover; background: var(--track); }
.thumb-s { width: 64px; height: 36px; } .thumb-s.sq { width: 40px; height: 40px; }
.thumb.ph { display: flex; align-items: center; justify-content: center; border: 1px dashed var(--edge); color: var(--hint);
  font: 600 10px var(--head); text-transform: uppercase; letter-spacing: .6px; overflow: hidden; white-space: nowrap; }
.thumbcol { width: 76px; padding-right: 0 !important; }
.view-toggle a { min-height: 40px; padding: 6px 12px; }
.cards { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px; }
.cards .card a { display: flex; flex-direction: column; height: 100%; background: var(--card); border: 2px solid var(--line); border-radius: 10px;
  overflow: hidden; color: var(--text); text-decoration: none; }
.cards .card a:hover { border-color: var(--orange); }
.cards .thumb-m { width: 100%; height: auto; aspect-ratio: 16 / 9; border-radius: 0; }
.cards .thumb-m.ph { font-size: 18px; border: 0; border-bottom: 1px dashed var(--edge); }
.cards .t { display: flex; flex-direction: column; gap: 2px; padding: 8px 10px 10px; min-width: 0; }
.cards .t b { overflow-wrap: anywhere; } .cards .t small { color: var(--soft); } .cards .t small.file { color: var(--hint); }
.comm a > .thumb-s { float: left; margin: 2px 12px 4px 0; }
.comm-cards .comm a > .thumb-m { width: 92px; height: 92px; border-radius: 8px; border: 2px solid var(--line); }
.comm-cards .comm a > .thumb-m.ph { font-size: 22px; }
.row.with-pic .row-pic { flex: 0 0 auto; display: block; width: 128px; aspect-ratio: 16 / 9; border-radius: 6px; overflow: hidden; background: var(--track); }
.row.with-pic .row-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.row.with-pic .row-pic .ph { display: flex; height: 100%; align-items: center; justify-content: center; border: 1px dashed var(--edge);
  border-radius: 6px; color: var(--hint); font: 600 12px var(--head); text-transform: uppercase; }
@media (max-width: 640px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } .row.with-pic .row-pic { width: 96px; } }
@media (max-width: 640px) { .bars-tbl td.barcol, .bars-tbl th.barcol { width: 22%; } .hbar { min-width: 36px; } h2.sec { scroll-margin-top: 54px; } }

/* main menu: "More" opens on hover, keyboard focus or tap; on phones (and without scripts there) its links sit in the menu */
.nav-more { position: relative; display: flex; }
.nav-more-btn { font: inherit; text-transform: inherit; letter-spacing: inherit; color: var(--text); background: none; border: 0;
  border-bottom: 3px solid transparent; padding: 10px 0; cursor: pointer; }
.nav-more-btn::after { content: " ▾"; font-size: 12px; }
.nav-more.here .nav-more-btn { border-bottom-color: var(--orange); }
.nav-more-btn:hover, .nav-more:focus-within .nav-more-btn { color: var(--orange); }
.nav-more-list { display: none; position: absolute; top: 100%; left: -14px; z-index: 20; min-width: 190px; flex-direction: column;
  background: var(--top); border: 2px solid var(--line); border-radius: 8px; padding: 6px 14px; box-shadow: 0 8px 22px rgba(0,0,0,.4); }
.nav-more:hover .nav-more-list, .nav-more:focus-within .nav-more-list, .nav-more.open .nav-more-list { display: flex; }
.nav-more-list a { white-space: nowrap; border-bottom: 0; padding: 9px 0; }
.nav-more-list a[aria-current] { color: var(--orange); border-bottom: 0; }
@media (max-width: 760px) {
  .nav-more { display: contents; } .nav-more-btn { display: none; }
  .nav-more-list { display: contents; }
}
/* wide screens: the menu stays on one line; the search box gives way first, then search and sign-in move to a second row */
@media (min-width: 761px) {
  .nav { flex: 1 0 auto; flex-wrap: nowrap; gap: 2px 18px; font-size: 16px; letter-spacing: .6px; }
  .topsearch { flex: 0 1 220px; min-width: 120px; } .topsearch input { width: 100%; }
}
/* search: pages that match, above the servers */
.page-hits { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 6px; }
.page-hits li { background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 9px 14px; }
.page-hits .kind { display: inline-block; min-width: 88px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--muted); }
.page-hits .note { margin-left: 8px; }
.comm-filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-bottom: 12px; }
.map-regions { margin: 0 0 12px; }
.admin-group { display: inline-flex; flex-wrap: wrap; gap: 4px 14px; align-items: baseline; padding-left: 12px; border-left: 2px solid var(--edge); }
.admin-group b { font-family: var(--head); text-transform: uppercase; font-size: 13px; letter-spacing: .5px; color: var(--band-text); opacity: .75; }

/* your servers (game home) and the save button (server page) */
.my-list { list-style: none; padding: 0; margin: 0 0 8px; display: grid; gap: 8px; }
.my-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 2px solid var(--line); border-radius: 8px; padding: 10px 14px; }
.my-row.off { opacity: .75; }
.my-info { flex: 1 1 auto; min-width: 0; display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; }
.my-name { font-weight: 600; overflow-wrap: anywhere; }
.fav-btn { font: inherit; color: var(--band-text); background: none; border: 2px solid var(--band-text); border-radius: 6px; padding: 6px 12px; cursor: pointer; }
.fav-btn[aria-pressed="true"] { background: var(--band-text); color: var(--band); }
.region-note { margin: 0 0 8px; }
@media (max-width: 640px) { .my-row { flex-wrap: wrap; } }

/* owners: getting set up */
.setup { margin: 0 0 22px; } .setup summary { cursor: pointer; font-size: 17px; }
.setup-list { list-style: none; padding: 0; margin: 12px 0 8px; display: grid; gap: 8px; }
.setup-list li { display: flex; gap: 10px; align-items: baseline; }
.setup-list .mark { flex: none; width: 1.2em; font-weight: 700; color: var(--muted); } .setup-list .done .mark { color: var(--orange); }
.setup-list .done a { color: var(--soft); }

/* communities: what owners write and what the site measures; the operator network and its forum (web/network.py) */
.chip.member-mark { background: transparent; border: 1px solid var(--orange); color: var(--orange); text-transform: uppercase; font-size: 12px; font-weight: 700; letter-spacing: .5px; text-decoration: none; vertical-align: middle; }
a.chip.member-mark:hover { background: var(--orange); color: var(--on-orange); }
.tagline { font-size: 18px; color: var(--text); margin: 4px 0 6px; overflow-wrap: anywhere; }
.chips, .cchips { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0; }
.about-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-bottom: 8px; }
.about-grid h3 { margin-top: 0; }
.post-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.forum-list, .posts, .op-list, .plain-list { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 10px; }
.forum-list li, .op-list li { padding: 10px 0; border-bottom: 1px solid var(--line); }
.forum-list small { display: block; margin-top: 2px; }
.posts .post { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px; }
.post-head { font-size: 14px; color: var(--soft); margin-bottom: 8px; }
.post-tools { display: flex; gap: 14px; align-items: center; font-size: 14px; margin-top: 6px; }
.hidden-row { opacity: .55; }
.forum-sections { width: 100%; border-collapse: collapse; }
.forum-sections th, .forum-sections td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); vertical-align: top; }
.forum-form { margin-top: 24px; max-width: 760px; }
.admin-tools { margin-bottom: 14px; }
@media (max-width: 600px) { .forum-sections th:nth-child(2), .forum-sections td:nth-child(2) { display: none; } }
/* the community finder and following (web/finder.py) */
.finder-form { max-width: 760px; }
.hour-pick { display: flex; gap: 8px; align-items: center; }
.finder-results { list-style: none; padding: 0; margin: 0 0 16px; display: grid; gap: 12px; }
.finder-results > li { background: var(--card); border: 1px solid var(--line); border-radius: 8px; padding: 12px 14px; }
.finder-results > li > a { display: grid; grid-template-columns: auto 1fr; gap: 2px 12px; text-decoration: none; color: inherit; }
.finder-results > li > a .thumb, .finder-results > li > a .pic { grid-row: span 2; }
.why { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 6px; }
.why li { font-size: 14px; background: var(--track); color: var(--chip-text); border-radius: 4px; padding: 2px 8px; }
.follow-box { margin: 0 0 16px; }
.follow-form { align-items: center; gap: 10px 14px; }
.follow-form .num { width: 4.5em; }
