/* The NODE Network — shared styles */

@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'JetBrains Mono';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('fonts/jetbrains-mono-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

:root {
  --page-w: 1840px;  /* content width cap: fills a 1080p/1440p screen, stays centred on ultrawides */
  --gutter: clamp(18px, 2.5vw, 48px);
  --bg: #07080f;
  --panel: #0d0f20;
  --panel-2: #0b0c1a;
  --panel-head: #10122a;
  --text: #d6d8ee;
  --text-bright: #eef0ff;
  --text-soft: #c3c6e2;
  --dim: #8a8db0;
  --blue: oklch(0.74 0.14 250);
  --purple: oklch(0.72 0.15 300);
  --green: oklch(0.75 0.14 150);
  --red: oklch(0.68 0.17 25);
  --amber: oklch(0.8 0.13 85);
  --line: oklch(0.45 0.12 285 / 0.45);
  --line-soft: oklch(0.45 0.12 285 / 0.3);
  --grad: linear-gradient(90deg, var(--blue), var(--purple));
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 100px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'JetBrains Mono', ui-monospace, Menlo, Consolas, monospace;
}
a { color: var(--blue); text-decoration: none; }
a:hover { color: var(--purple); }
::selection { background: var(--purple); color: var(--bg); }
input, button { font-family: inherit; }

.page {
  min-height: 100vh;
  position: relative;
  padding-bottom: 120px;
  background:
    radial-gradient(1100px 520px at 15% -5%, oklch(0.32 0.12 265 / 0.45), transparent 60%),
    radial-gradient(900px 500px at 100% 30%, oklch(0.3 0.12 305 / 0.3), transparent 60%),
    var(--bg);
}
.scanlines {
  position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(to bottom, rgba(255,255,255,0.03) 0 1px, transparent 1px 3px);
}

/* ── header ─────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 30;
  background: rgba(9,10,22,0.88);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.titlebar {
  display: flex; align-items: center; gap: 14px;
  padding: 8px 18px;
  border-bottom: 1px dashed var(--line-soft);
  font-size: 11.5px; color: var(--dim);
}
.titlebar .dots { display: flex; gap: 7px; }
.titlebar .dots span { width: 10px; height: 10px; border-radius: 50%; }
.titlebar .dots span:nth-child(1) { background: oklch(0.65 0.16 25); }
.titlebar .dots span:nth-child(2) { background: var(--amber); }
.titlebar .dots span:nth-child(3) { background: var(--green); }
.titlebar .path { flex: 1; text-align: center; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }

.nav {
  max-width: var(--page-w); margin: 0 auto;
  display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
  padding: 10px var(--gutter); font-size: 13px;
}
.brand {
  display: flex; align-items: center; gap: 9px;
  padding: 4px 14px 4px 0;
  font-weight: 800; font-size: 15px; letter-spacing: 0.12em; color: var(--text-bright);
}
.brand:hover { color: var(--text-bright); }
.brand img { width: 24px; height: 24px; border-radius: 5px; }
.brand .b1 { color: var(--blue); }
.brand .b2 { color: var(--purple); }
.tab {
  color: #a9acc9; border: 1px solid transparent; border-radius: 4px;
  padding: 5px 11px; font-size: 13px;
}
.tab:hover { color: #fff; border-color: oklch(0.74 0.14 300 / 0.7); }
.tab.discord { color: #9aa3ff; }
.tab.discord:hover { color: #fff; border-color: #5865f2; background: oklch(0.55 0.2 275 / 0.18); }
.tab.twitch { color: #bf94ff; display: inline-flex; align-items: center; gap: 6px; }
.tab.twitch:hover { color: #fff; border-color: #9146ff; background: oklch(0.55 0.22 300 / 0.18); }
.live-dot { width: 7px; height: 7px; border-radius: 50%; flex: none; background: #ff4d4d; box-shadow: 0 0 8px #ff4d4d; animation: live-pulse 1.6s ease-in-out infinite; }
@keyframes live-pulse { 50% { opacity: 0.35; } }
@media (prefers-reduced-motion: reduce) { .live-dot { animation: none; } }
.tab.active { background: oklch(0.74 0.14 250 / 0.14); color: var(--text-bright); border-color: oklch(0.74 0.14 250 / 0.6); }
.nav .spacer { flex: 1; }
.status-pill { font-size: 12px; color: var(--dim); display: flex; align-items: center; gap: 8px; }
.led { width: 7px; height: 7px; border-radius: 50%; flex: none; background: var(--amber); box-shadow: 0 0 8px var(--amber); }
.led.green { background: var(--green); box-shadow: 0 0 8px var(--green); }
.led.red { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ── layout ─────────────────────────────────────────── */
main { max-width: var(--page-w); margin: 0 auto; padding: 0 var(--gutter); font-size: 14px; line-height: 1.65; }
section { padding: 56px 0; border-top: 1px solid oklch(0.45 0.12 285 / 0.35); display: flex; flex-direction: column; gap: 36px; }
section.hero { border-top: none; padding: 56px 0 72px; gap: 30px; min-height: 70vh; }
.block { display: flex; flex-direction: column; gap: 8px; max-width: 760px; }
.block.wide { max-width: none; gap: 14px; }
.prompt { color: var(--dim); }
h1, h2 { margin: 0; font-size: clamp(22px, 3vw, 30px); color: var(--text-bright); font-weight: 700; }
p { margin: 0; color: var(--text-soft); text-wrap: pretty; }
.muted { color: var(--dim); }
.hl-blue { color: var(--blue); }
.hl-purple { color: var(--purple); }
.hl-green { color: var(--green); }
.hl-amber { color: var(--amber); }
.hl-red { color: var(--red); }
.hl-bright { color: var(--text-bright); }

/* ── hero ───────────────────────────────────────────── */
.boot { font-size: 12.5px; color: var(--dim); display: flex; flex-direction: column; gap: 1px; min-height: 132px; }
.ascii {
  margin: 0; font-size: clamp(8px, 2.3vw, 22px); line-height: 1.08; font-weight: 700;
  white-space: pre; overflow-x: auto; width: max-content; max-width: 100%;
  background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 0 14px oklch(0.6 0.18 280 / 0.55));
}
.motd { font-weight: 400; font-size: clamp(19px, 2.8vw, 28px); line-height: 1.35; color: var(--text-bright); text-wrap: pretty; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-block; border-radius: 4px; padding: 11px 18px; font-size: 13px; cursor: pointer;
  background: transparent; color: var(--text); border: 1px solid oklch(0.45 0.12 285 / 0.7);
}
.btn:hover { border-color: var(--purple); color: #fff; }
.btn.primary { background: var(--grad); color: var(--bg); border: none; font-weight: 700; }
.btn.primary:hover { color: var(--bg); filter: brightness(1.1); }
.btn.discord { background: #5865f2; color: #fff; border-color: #5865f2; font-weight: 700; }
.btn.discord:hover { background: #6d78ff; border-color: #6d78ff; color: #fff; }
.btn.steam { background: #1b2838; color: #66c0f4; border-color: #66c0f4; font-weight: 700; }
.btn.steam:hover { background: #2a475e; border-color: #8fd3ff; color: #c7d5e0; }
.btn.twitch { background: #9146ff; color: #fff; border-color: #9146ff; font-weight: 700; display: inline-flex; align-items: center; gap: 8px; }
.btn.twitch:hover { background: #a970ff; border-color: #a970ff; color: #fff; }
.btn.twitch .live-dot { background: #fff; box-shadow: 0 0 8px #fff; }
.facts {
  display: flex; flex-wrap: wrap; gap: 10px 32px; font-size: 13px; padding: 14px 0;
  border-top: 1px dashed oklch(0.45 0.12 285 / 0.35);
  border-bottom: 1px dashed oklch(0.45 0.12 285 / 0.35);
}
.facts .k { color: var(--dim); }

/* ── cards ──────────────────────────────────────────── */
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.grid.tight { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px; }
.card { background: var(--panel); border: 1px solid oklch(0.45 0.12 285 / 0.4); border-radius: 6px; padding: 18px; }
.host { display: flex; gap: 16px; align-items: flex-start; }
.monogram {
  width: 72px; height: 72px; flex: none; border-radius: 4px;
  border: 1px solid oklch(0.45 0.12 285 / 0.5);
  background: repeating-linear-gradient(45deg, #151838 0 6px, #0d0f20 6px 12px);
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800;
}
.host .meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.host .handle { font-weight: 700; font-size: 16px; }
.host .uid { font-size: 12px; color: var(--dim); }
.host .bio { font-size: 13px; color: var(--text-soft); margin-top: 8px; }

/* ── lists / tables ─────────────────────────────────── */
.numbered { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.numbered li { display: flex; gap: 14px; }
.numbered .n { color: var(--purple); flex: none; }
.numbered .t { color: var(--text-soft); }

.table { border: 1px solid var(--line); border-radius: 6px; overflow-x: auto; background: var(--panel-2); }
.table .row {
  display: grid; gap: 16px; align-items: center;
  padding: 12px 18px; border-top: 1px dashed var(--line-soft); font-size: 13px;
}
.table .row.head {
  border-top: none; padding: 10px 18px; font-size: 11px; letter-spacing: 0.1em;
  color: var(--dim); background: var(--panel-head); text-transform: uppercase;
}
.srv .row { grid-template-columns: minmax(0,2fr) minmax(0,1.7fr) minmax(0,1.3fr) minmax(0,0.9fr) 84px; min-width: 680px; }
/* desktop: fixed ch floor so the longest domain:port (36 chars) never truncates; a fixed size keeps every row's grid aligned */
@media (min-width: 1100px) { .srv .row { grid-template-columns: minmax(0,2fr) minmax(37ch,1.7fr) minmax(0,1.3fr) minmax(0,0.9fr) 84px; } }
/* player-count bar: 12 cells drawn in CSS (box-drawing glyphs aren't in the font subset and render offset) */
.pbar { display: flex; gap: 2px; width: 100%; max-width: 120px; }
.pbar i { flex: 1; height: 7px; border-radius: 1px; background: #1c1f44; }
.pbar i.on { background: var(--purple); box-shadow: 0 0 6px oklch(0.72 0.15 300 / 0.5); }
.srv-actions { display: flex; flex-direction: column; gap: 5px; }
.srv-actions .btn { padding: 6px 0; font-size: 12px; text-align: center; color: var(--blue); }
.srv-extra { display: flex; flex-wrap: wrap; gap: 2px 14px; font-size: 12px; padding-left: 17px; min-width: 0; }
.srv-extra > * { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%; }
.srv .empty { padding: 34px 18px; border-top: 1px dashed var(--line-soft); font-size: 13px; color: var(--dim); display: flex; flex-direction: column; gap: 6px; }
.srv .empty .big { color: var(--text-soft); font-size: 14px; }
.foot-note { font-size: 12px; color: var(--dim); }
.cursor { display: inline-block; width: 0.6em; height: 1.1em; vertical-align: text-bottom; background: var(--purple); animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }

/* ── contact ────────────────────────────────────────── */
a.link-card { display: flex; flex-direction: column; gap: 6px; color: var(--text); padding: 16px 18px; }
a.link-card:hover { border-color: var(--purple); background: #11142c; color: var(--text); }
.link-card .top { display: flex; justify-content: space-between; font-size: 12px; color: var(--dim); }
.link-card .value { font-size: 15px; }
.link-card .note { font-size: 12px; color: var(--dim); }

/* ── ranks (the 18 CS:GO ranks, grouped by colour) ──── */
.t-silver { color: #c4c8de; }
.t-gold { color: var(--amber); }
.t-platinum { color: oklch(0.82 0.11 195); }
.t-diamond { color: var(--blue); }
.t-master { color: var(--purple); }
.t-elite { color: oklch(0.72 0.19 15); }
.rk-none { color: var(--dim); }
.pill {
  display: inline-block; padding: 2px 10px; border: 1px solid currentColor; border-radius: 3px;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; white-space: nowrap;
  background: color-mix(in oklab, currentColor 10%, transparent);
}
a.pill.steam { color: var(--blue); }
a.pill.steam:hover { color: var(--bg); background: var(--blue); }
.up { color: var(--green); }
.down { color: var(--red); }

/* ── leaderboard ────────────────────────────────────── */
.lb-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.lb-tabs button {
  padding: 8px 16px; border: 1px solid oklch(0.45 0.12 285 / 0.7); border-radius: 4px; background: var(--panel-2);
  color: var(--dim); font-size: 13px; font-weight: 700; letter-spacing: 0.05em; cursor: pointer;
}
.lb-tabs button:hover { color: #fff; border-color: var(--purple); }
.lb-tabs button.on { background: var(--grad); color: var(--bg); border-color: transparent; }
.lb-desc, .lb-note { color: var(--dim); font-size: 12.5px; margin: 0; }
.file { border: 1px solid var(--line); border-radius: 6px; background: var(--panel-2); overflow: hidden; }
.file .bar {
  display: flex; align-items: center; gap: 7px; padding: 8px 14px; font-size: 11.5px; color: var(--dim);
  background: var(--panel-head); border-bottom: 1px dashed var(--line-soft);
}
.file .bar i { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.file .bar i:nth-child(1) { background: oklch(0.65 0.16 25); }
.file .bar i:nth-child(2) { background: var(--amber); }
.file .bar i:nth-child(3) { background: var(--green); }
.file .bar span { margin-left: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file .scroll { overflow-x: auto; }
.lb-table { width: 100%; border-collapse: collapse; font-size: 13px; font-variant-numeric: tabular-nums; }
.lb-table th, .lb-table td { padding: 9px 14px; text-align: left; white-space: nowrap; border-top: 1px dashed var(--line-soft); }
.lb-table thead th {
  border-top: none; background: var(--panel-head); color: var(--dim); font-size: 11px; font-weight: 400;
  letter-spacing: 0.1em; text-transform: uppercase; border-bottom: 1px solid var(--line);
}
.lb-table tbody tr:hover td, .lb-table tbody tr:hover th { background: oklch(0.74 0.14 250 / 0.07); }
.lb-full th button {
  all: unset; cursor: pointer; display: inline-flex; align-items: center; gap: 5px;
  color: inherit; font: inherit; letter-spacing: inherit; text-transform: inherit;
}
.lb-full th button:hover { color: var(--text-bright); }
.lb-full th button:focus-visible { outline: 1px solid var(--purple); outline-offset: 3px; }
.lb-full th.sorted { color: var(--text-bright); }
.lb-full th .arrow { font-size: 9px; color: var(--purple); min-width: 0.7em; }
.lb-full td:first-child, .lb-full th:first-child { width: 3.5rem; text-align: center; color: var(--dim); }
.lb-full td:nth-child(3), .lb-full th:nth-child(3), .lb-full td:nth-child(n+5), .lb-full th:nth-child(n+5) { text-align: right; }
.lb-full td:nth-child(3) { color: var(--text-bright); font-weight: 700; }
.lb-full tr.top td:first-child { font-weight: 800; }
.lb-full tr.r1 td:first-child { color: var(--amber); text-shadow: 0 0 10px oklch(0.8 0.13 85 / 0.6); }
.lb-full tr.r2 td:first-child { color: #c4c8de; }
.lb-full tr.r3 td:first-child { color: oklch(0.7 0.11 55); }
.lb-full td:nth-child(8) { color: var(--dim); }
.lb-full td:nth-child(8) .up { color: var(--green); }
.lb-dot {
  display: inline-block; width: 7px; height: 7px; margin-right: 8px; border-radius: 50%; vertical-align: 1px;
  background: var(--green); box-shadow: 0 0 8px var(--green); animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 50% { opacity: 0.45; } }
.lb-name { max-width: 24ch; overflow: hidden; text-overflow: ellipsis; }
.lb-name a { color: var(--text-bright); }
.lb-name a:hover { color: var(--purple); }
.lb-full tr.top .lb-name a { color: var(--blue); font-weight: 700; }
.lb-full tr.top .lb-name a:hover { color: var(--purple); }
.lb-msg { text-align: center !important; color: var(--dim); padding: 26px 14px !important; white-space: normal !important; }
.lb-msg.err, .err { color: var(--red); }
details.how { border: 1px dashed var(--line-soft); border-radius: 6px; padding: 12px 16px; }
details.how summary { cursor: pointer; color: var(--blue); font-size: 13px; }
details.how summary:hover { color: var(--purple); }
details.how[open] summary { margin-bottom: 10px; }
.lb-legend { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 12px; }
.lb-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.lb-legend small { color: var(--dim); font-size: 11px; }

/* ── player profile ─────────────────────────────────── */
section.pp { gap: 14px; padding-top: 24px; }
.pp-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.pp-head h1 { word-break: break-word; }
.pp-head .slot { display: flex; flex-wrap: wrap; gap: 8px; }
.pp-search { display: flex; gap: 10px; }
.pp-search input {
  flex: 1; min-width: 0; padding: 10px 14px; background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 4px; color: var(--text-bright); font-size: 13px; outline: none; caret-color: var(--purple);
}
.pp-search input:focus { border-color: var(--purple); }
.pp-search .btn { padding: 10px 16px; }
.pp-results { display: grid; gap: 6px; }
.pp-results:empty { display: none; }
.pp-res {
  display: flex; align-items: center; flex-wrap: wrap; gap: 6px 12px; padding: 9px 14px; font-size: 13px;
  border: 1px dashed var(--line-soft); border-radius: 4px; background: var(--panel-2); color: var(--text);
}
a.pp-res:hover { border-color: var(--purple); color: var(--text); background: #11142c; }
.pp-res .n { flex: 1; color: var(--text-bright); min-width: 8ch; }
.pp-res .e { color: var(--dim); font-size: 12px; }
.pp-res.dim, .pp-empty, .pp-note { color: var(--dim); font-size: 12.5px; }
.pp-res.err { color: var(--red); }
.pp-body { display: flex; flex-direction: column; gap: 14px; }
.pp-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; }
.pp-tile { background: var(--panel); border: 1px solid oklch(0.45 0.12 285 / 0.4); border-radius: 6px; padding: 12px 14px; display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.pp-tile small, .pp-kinds small { color: var(--dim); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.pp-tile b { font-size: 24px; line-height: 1.25; color: var(--text-bright); font-variant-numeric: tabular-nums; }
.pp-tile b.acc { background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pp-tile b.up { color: var(--green); }
.pp-tile b.down { color: var(--red); }
.pp-tile span { color: var(--dim); font-size: 12px; }
.pp-card { background: var(--panel); border: 1px solid oklch(0.45 0.12 285 / 0.4); border-radius: 6px; padding: 16px 18px; display: flex; flex-direction: column; gap: 10px; min-width: 0; color: var(--text); }
.pp-card h4 { margin: 0; color: var(--dim); font-size: 11px; font-weight: 400; letter-spacing: 0.12em; text-transform: uppercase; }
.pp-card h4::before { content: "# "; color: var(--purple); }
.pp-prog { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-size: 13px; color: var(--text-soft); }
.pp-bar { height: 8px; background: #151838; border: 1px solid var(--line-soft); border-radius: 4px; overflow: hidden; flex: 1; min-width: 60px; }
.pp-bar span { display: block; height: 100%; background: var(--grad); }
.pp-card > .pp-bar { flex: none; }
.pp-card.t-silver .pp-bar span { background: #c4c8de; }
.pp-card.t-gold .pp-bar span { background: var(--amber); }
.pp-card.t-platinum .pp-bar span { background: oklch(0.82 0.11 195); }
.pp-card.t-diamond .pp-bar span { background: var(--blue); }
.pp-card.t-master .pp-bar span { background: var(--purple); }
.pp-card.t-elite .pp-bar span { background: oklch(0.72 0.19 15); }
.pp-card.t-silver, .pp-card.t-gold, .pp-card.t-platinum, .pp-card.t-diamond, .pp-card.t-master, .pp-card.t-elite { color: var(--text); }
.pp-chart-wrap { position: relative; }
.pp-chart { width: 100%; height: auto; display: block; }
.pp-tip {
  position: absolute; display: none; transform: translate(-50%, -135%); padding: 4px 9px; pointer-events: none;
  background: var(--bg); border: 1px solid var(--purple); border-radius: 3px; color: var(--text-bright); font-size: 12px; white-space: nowrap;
}
.pp-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 14px; }
.pp-row { display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--text-soft); }
.pp-row .nm { min-width: 7.5rem; }
.pp-row .nm.wide { flex: 1.3; }
.pp-row .pc { min-width: 3.5rem; text-align: right; color: var(--blue); font-variant-numeric: tabular-nums; }
.pp-row.done .nm { color: var(--green); }
.pp-kinds { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pp-kinds b { display: block; font-size: 22px; color: var(--text-bright); }
.pp-ach { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 8px; }
.pp-ach > div { border: 1px solid oklch(0.74 0.14 250 / 0.55); border-radius: 4px; padding: 8px 12px; background: var(--panel-2); }
.pp-ach b { display: block; color: var(--blue); font-size: 13px; }
.pp-ach span { color: var(--dim); font-size: 12px; }
.pp-ach .locked { border-color: var(--line-soft); opacity: 0.45; }
.pp-ach .locked b { color: var(--dim); }
.pp-state { text-align: center; padding: 34px 18px; align-items: center; }
.pp-state b { font-size: 18px; color: var(--text-bright); }
.pp-state div { color: var(--dim); }
.pp-gh { margin: 14px 0 0; font-size: 16px; color: var(--text-bright); }
.pp-gh::before { content: "$ "; color: var(--dim); }
.pp-duels td:first-child { font-weight: 700; }
.pp-duels a { color: var(--text-bright); }
.pp-duels a:hover { color: var(--purple); }
.cmp-table thead th:first-child { width: 1%; }
.cmp-table td, .cmp-table thead th:not(:first-child) { text-align: center; }
.cmp-table tbody th { text-align: left; color: var(--dim); font-weight: 400; font-size: 11px; text-transform: uppercase; letter-spacing: 0.08em; }
.cmp-table td.up { color: var(--green); font-weight: 700; }

/* ── nodes ──────────────────────────────────────────── */
.nd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; }
.nd-stat {
  background: var(--panel); border: 1px solid oklch(0.45 0.12 285 / 0.4); border-radius: 6px; padding: 16px 14px;
  display: flex; flex-direction: column; align-items: center; gap: 2px; text-align: center;
}
.nd-stat b { font-size: 26px; line-height: 1.2; background-image: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.nd-stat span { color: var(--dim); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; }
.nd-sub { margin: 0; font-size: 12.5px; }
.nd-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 14px; margin-top: 6px; }
.nd-card { background: var(--panel); border: 1px solid oklch(0.45 0.12 285 / 0.4); border-radius: 8px; padding: 18px 20px; min-width: 0; }
.nd-card header { display: flex; align-items: center; gap: 14px; padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed var(--line-soft); }
.nd-icon {
  width: 52px; height: 52px; flex: none; display: grid; place-items: center; border-radius: 8px; color: var(--purple);
  border: 1px solid oklch(0.45 0.12 285 / 0.5); background: repeating-linear-gradient(45deg, #151838 0 6px, #0d0f20 6px 12px);
}
.nd-icon svg { width: 28px; height: 28px; }
.nd-card h3 { margin: 0; font-size: 19px; color: var(--text-bright); }
.nd-kind { font-size: 12px; color: var(--blue); }
.nd-card dl { margin: 0; display: grid; grid-template-columns: 5.5rem 1fr; gap: 12px 14px; }
.nd-card dt { color: var(--dim); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; padding-top: 2px; }
.nd-card dd { margin: 0; display: flex; flex-direction: column; min-width: 0; }
.nd-card dd b { color: var(--text-bright); font-size: 13.5px; font-weight: 700; }
.nd-card dd span { color: var(--dim); font-size: 12px; }

/* ── footer ─────────────────────────────────────────── */
.site-footer {
  font-size: 12px; color: var(--dim); padding: 28px 0 0;
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px;
  border-top: 1px solid oklch(0.45 0.12 285 / 0.35);
}

/* ── bottom terminal ────────────────────────────────── */
.term {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 35;
  background: rgba(8,9,20,0.94); backdrop-filter: blur(8px);
  border-top: 1px solid oklch(0.45 0.12 285 / 0.5);
}
.term-inner { max-width: var(--page-w); margin: 0 auto; padding: 10px var(--gutter) 12px; font-size: 13px; display: flex; flex-direction: column; gap: 6px; }
.term-log {
  display: flex; flex-direction: column; gap: 1px; max-height: 170px; overflow-y: auto;
  padding-bottom: 6px; border-bottom: 1px dashed var(--line-soft);
}
.term-log:empty { display: none; }
.term-log div { white-space: pre-wrap; }
.term-line { display: flex; align-items: center; gap: 8px; cursor: text; }
.term-line .ps1 { white-space: nowrap; }
.term-line input {
  flex: 1; min-width: 0; background: transparent; border: none; outline: none;
  color: var(--text-bright); font-size: 13px; padding: 2px 0; caret-color: var(--purple);
}
.term-clear { background: none; border: none; color: var(--dim); cursor: pointer; font-size: 12px; }
.term-clear:hover { color: #fff; }
.term-clear[hidden] { display: none; }

@media (max-width: 600px) {
  .titlebar .clock { display: none; }
  .status-pill { width: 100%; }
  .pp-search { flex-direction: column; }
  .pp-row .nm { min-width: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .cursor, .lb-dot { animation: none; }
}

/* ── wall of shame ──────────────────────────────────── */
.ban-table td.ban-id { color: var(--red); font-weight: 700; width: 4.5rem; }
.ban-table td.ban-reason { white-space: normal; min-width: 22ch; color: var(--text-soft); }
.ban-table td.ban-date { color: var(--text-soft); }
.ban-table .lb-name { max-width: 20ch; }
.ban-table .lb-name a { color: var(--text-bright); }
.ban-table .lb-name a:hover { color: var(--blue); }
@media (max-width: 600px) {
  .ban-table th:nth-child(4), .ban-table td:nth-child(4) { display: none; }   /* the name already links to Steam */
  .ban-table td.ban-date .muted { display: none; }
}

/* ── nav: when the tabs don't fit on one line, site.js adds .compact and they fold behind a toggle ── */
.nav-toggle { display: none; }
.nav.compact { row-gap: 4px; }
.nav.compact .spacer { display: none; }
.nav.compact .brand { margin-right: auto; padding-right: 6px; }
.nav.compact .status-pill { width: auto; order: 1; min-width: 0; flex: 0 1 auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav.compact .nav-toggle {
  display: inline-flex; align-items: center; order: 2; flex: none;
  background: none; border: 1px solid var(--line); border-radius: 4px; cursor: pointer;
  color: var(--text-soft); font: inherit; font-size: 15px; line-height: 1; padding: 6px 10px;
}
.nav.compact .nav-toggle:hover, .nav.compact.open .nav-toggle { color: #fff; border-color: oklch(0.74 0.14 300 / 0.7); }
.nav.compact .tab { display: none; order: 3; }
.nav.compact.open .tab { display: block; width: 100%; padding: 8px 11px; }
.nav.compact.open .tab.twitch { display: flex; }
.nav.compact.open .tab:first-of-type { margin-top: 6px; }
