/* PlebMc website: the homepage, the panel pages and the makers share this stylesheet. */
@font-face { font-family: "Jersey 25"; src: url("/static/fonts/jersey-25.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Inter"; src: url("/static/fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
:root {
  --accent: #2ea8ff;
  --accent2: color-mix(in srgb, var(--accent) 60%, #b8f3ff);
  --accent-dark: color-mix(in srgb, var(--accent) 55%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 15%, transparent);
  --accent-line: color-mix(in srgb, var(--accent) 50%, transparent);
  --accent-ink: #04162a;
  --tnt: #db3f2b;
  --bg: #0a1019;
  --bg2: #0d1522;
  --card: #111b2b;
  --card2: #16233a;
  --line: #1f3049;
  --line2: #2b4163;
  --fg: #eaf2fb;
  --muted: #93a7c0;
  --faint: #5f748f;
  --gold: #f5c542;
  --good: #3fdc8c;
  --bad: #ff6b6b;
  --warn: #ffb547;
  --radius: 6px;
  --shadow: 0 14px 40px rgba(0, 0, 0, .45);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --display: "Jersey 25", Impact, ui-monospace, monospace;
  --mono: ui-monospace, "JetBrains Mono", Menlo, Consolas, monospace;
  --wrap: 1160px;
  color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--fg); }
body { font: 15px/1.6 var(--font); min-height: 100vh; overflow-x: hidden; -webkit-font-smoothing: antialiased; }
a { color: var(--accent2); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3 { margin: 0 0 6px; line-height: 1.2; }
h1 { font-size: 24px; font-weight: 700; letter-spacing: -.3px; }
h2 { font-size: 17px; font-weight: 650; }
h3 { font-size: 15px; font-weight: 600; }
p { margin: 0 0 10px; }
code { font: 12.5px var(--mono); background: var(--card2); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.center { text-align: center; }
.hidden { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 600px) { .wrap { padding: 0 16px; } }

/* ---------- top bar ---------- */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(10, 16, 25, .9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 3px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 22px; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--fg); font: 400 28px/1 var(--display); letter-spacing: .5px; flex: none; }
.brand:hover { text-decoration: none; }
.brand img { width: 34px; height: 34px; image-rendering: pixelated; object-fit: contain; }
.brand small { display: block; font: 500 11px var(--font); color: var(--muted); letter-spacing: .4px; text-transform: uppercase; }
.links { display: flex; align-items: stretch; gap: 4px; flex: 1; height: 100%; }
.links a { color: var(--muted); font-size: 14px; font-weight: 600; padding: 0 12px; display: inline-flex; align-items: center; gap: 7px; position: relative; }
.links a:hover { color: var(--fg); text-decoration: none; }
.links a.on { color: var(--fg); }
.links a.on::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -3px; height: 3px; background: var(--accent); }
.links a svg { width: 16px; height: 16px; }
.links .admin-link { color: var(--gold); }
.who { display: flex; align-items: center; gap: 8px; flex: none; }
.who a.who { color: var(--fg); font-weight: 600; }
.who a.who:hover { text-decoration: none; }
.avatar { width: 30px; height: 30px; border-radius: 4px; image-rendering: pixelated; background: var(--card2); border: 1px solid var(--line2); }
.menu-btn { display: none !important; }
@media (max-width: 960px) {
  .menu-btn { display: inline-flex !important; margin-left: auto; }
  .links { position: fixed; top: 65px; left: 0; right: 0; height: auto; flex-direction: column; gap: 0; padding: 8px 16px 16px; background: var(--bg2); border-bottom: 3px solid var(--line); transform: translateY(-8px); opacity: 0; pointer-events: none; transition: opacity .15s, transform .15s; max-height: calc(100vh - 65px); overflow-y: auto; }
  .nav.open .links { opacity: 1; transform: none; pointer-events: auto; }
  .links a { padding: 13px 8px; font-size: 15px; border-bottom: 1px solid var(--line); }
  .links a.on::after { left: -16px; right: auto; top: 8px; bottom: 8px; width: 4px; height: auto; }
  .who .name, .who .pill { display: none; }
}
@media (max-width: 480px) { .who .btn:not(.primary) { display: none; } }

.subnav { border-bottom: 1px solid var(--line); background: var(--bg2); }
/* the admin tabs use the whole screen width, and go onto a second row before any is cut off */
.subnav .wrap { max-width: none; display: flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 8px 12px; }
@media (max-width: 720px) { .subnav .wrap { flex-wrap: nowrap; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; padding-left: 16px; padding-right: 16px; } }
.subnav a { color: var(--muted); font-size: 13px; font-weight: 600; padding: 6px 9px; border-radius: 4px; white-space: nowrap; display: inline-flex; gap: 6px; align-items: center; }
.subnav a svg { width: 14px; height: 14px; }
.subnav a:hover { color: var(--fg); background: rgba(255, 255, 255, .05); text-decoration: none; }
.subnav a.on { color: var(--accent-ink); background: var(--accent); }

#app { min-height: 60vh; }
.page { padding-top: 40px; padding-bottom: 70px; }
.page-head { margin-bottom: 26px; display: grid; gap: 6px; }
.page-head h1 { font: 400 clamp(44px, 6vw, 64px)/1 var(--display); letter-spacing: .5px; margin: 0; padding-bottom: 14px; position: relative; }
.page-head h1::after { content: ""; position: absolute; left: 0; bottom: 0; width: 72px; height: 6px; background: var(--accent); box-shadow: 72px 0 0 var(--accent-dark); }
.page-head h1 span { color: var(--accent2); }
.page-head p { color: var(--muted); max-width: 60ch; margin: 8px 0 0; }
.crumb { font: 600 12px var(--font); letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.crumb b { color: var(--gold); }
.narrow-page { max-width: 480px; margin: 0 auto; }
.banner { display: flex; gap: 12px; align-items: center; background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, .02)); border: 1px solid var(--accent-line); border-radius: var(--radius); padding: 12px 16px; margin-bottom: 18px; }
.banner svg { width: 20px; height: 20px; color: var(--accent2); flex: none; }
.banner small { color: var(--muted); margin-left: auto; white-space: nowrap; }
.update-bar { background: rgba(255, 181, 71, .12); border-color: rgba(255, 181, 71, .45); }

/* ---------- cards and layout ---------- */
.card { background: linear-gradient(180deg, rgba(255, 255, 255, .025), transparent 40%), var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; min-width: 0; }
.card.narrow { max-width: 440px; margin: 30px auto; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.grid { display: grid; gap: 18px; }
.g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: minmax(0, 1fr); } }
.grid > .card { margin-bottom: 0; }
.stack { display: grid; gap: 18px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row > input, .row > select { width: auto; flex: 1 1 160px; }
.spacer { flex: 1; }

/* ---------- stats ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 14px; margin-bottom: 18px; }
.tile { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; display: grid; gap: 4px; }
.tile .k { color: var(--muted); font-size: 12.5px; display: flex; align-items: center; gap: 6px; }
.tile .k svg { width: 15px; height: 15px; }
.tile .v { font-size: 24px; font-weight: 700; letter-spacing: -.4px; font-variant-numeric: tabular-nums; }
.tile .s { color: var(--faint); font-size: 12px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 10px; margin-top: 12px; }
.stat { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.stat b { display: block; font-size: 19px; font-variant-numeric: tabular-nums; }
.stat span { color: var(--muted); font-size: 12px; }
.bars { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; align-items: end; gap: 6px; height: 140px; padding-top: 20px; }
.bars div b { position: absolute; left: 0; right: 0; bottom: 100%; margin-bottom: 3px; text-align: center; font-size: 11px; font-weight: 600; color: var(--fg); font-variant-numeric: tabular-nums; }
.bars div b.zero { color: var(--faint); font-weight: 400; }
.bars div { background: linear-gradient(180deg, var(--accent), var(--accent-line)); border-radius: 5px 5px 2px 2px; min-height: 3px; position: relative; }
.bars div:hover { filter: brightness(1.2); }
.bar-labels { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 6px; font-size: 10.5px; color: var(--faint); text-align: center; margin-top: 6px; }
.meter { height: 8px; background: var(--card2); border-radius: 99px; overflow: hidden; }
.meter i { display: block; height: 100%; background: linear-gradient(90deg, var(--accent2), var(--accent)); border-radius: 99px; }
.list { display: grid; gap: 10px; }
.list .li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 4px 12px; align-items: center; }
.list .li .meter { grid-column: 1 / -1; }

/* ---------- forms ---------- */
label { display: block; font-size: 12.5px; color: var(--muted); margin: 12px 0 5px; font-weight: 500; }
input, select, textarea { width: 100%; background: var(--bg2); color: var(--fg); border: 1px solid var(--line2); border-radius: 10px; padding: 10px 12px; font: 14px var(--font); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 80px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type=checkbox] { width: auto; accent-color: var(--accent); }
input[type=color] { width: 44px; height: 38px; padding: 3px; }
.check { display: flex; align-items: center; gap: 8px; color: var(--fg); font-size: 14px; margin: 8px 0; }
button, .btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font: 600 13.5px var(--font); color: var(--fg); background: var(--card2); border: 1px solid var(--line2); border-radius: 10px; padding: 9px 14px; cursor: pointer; text-decoration: none; white-space: nowrap; transition: border-color .15s, background .15s, transform .05s; }
button:hover, .btn:hover { border-color: var(--accent); text-decoration: none; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .5; cursor: default; }
button svg, .btn svg { width: 16px; height: 16px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: transparent; box-shadow: 0 10px 28px -10px var(--accent), inset 0 1px 0 rgba(255, 255, 255, .22); }
.primary:hover { filter: brightness(1.08); border-color: transparent; }
.danger { color: #ffd6d6; background: rgba(255, 107, 107, .12); border-color: rgba(255, 107, 107, .45); }
.danger:hover { border-color: var(--bad); }
.ghost { background: transparent; }
.full { width: 100%; margin-top: 16px; }
.small { padding: 6px 10px; font-size: 12.5px; }
button:focus-visible, .btn:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 6px 12px; border-radius: 99px; font-size: 12.5px; font-weight: 600; background: var(--card2); }
.chip[aria-pressed=true] { background: var(--accent-soft); border-color: var(--accent); color: var(--fg); }
.msg { padding: 10px 14px; border-radius: 10px; margin-top: 12px; font-size: 13.5px; }
.msg.good { background: rgba(63, 220, 140, .12); color: #b6f5d4; border: 1px solid rgba(63, 220, 140, .35); }
.msg.bad { background: rgba(255, 107, 107, .1); color: #ffcaca; border: 1px solid rgba(255, 107, 107, .35); }
.toast { position: fixed; right: 20px; bottom: 20px; z-index: 50; background: var(--card2); border: 1px solid var(--line2); box-shadow: var(--shadow); padding: 12px 16px; border-radius: 12px; max-width: 360px; animation: pop .2s ease-out; }
.toast.good { border-color: rgba(63, 220, 140, .5); }
.toast.bad { border-color: rgba(255, 107, 107, .5); }
@keyframes pop { from { transform: translateY(8px); opacity: 0; } }

/* ---------- stat leaderboards ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.board { background: var(--card2); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 8px; min-width: 0; }
.board-head { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.board-head svg { width: 16px; height: 16px; color: var(--gold); flex: none; }
.board-head h3 { margin: 0; font-size: 14.5px; }
.board ol { list-style: none; margin: 0; padding: 0; }
.board li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-top: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.board li:first-child { border-top: 0; }
.board li a { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--fg); display: flex; align-items: center; gap: 8px; }
.board li b { white-space: nowrap; }
.board li.none { padding: 10px 0; }
button.linkish { background: none; border: 0; padding: 0; color: var(--accent); font-size: 12.5px; font-weight: 600; cursor: pointer; }
button.linkish:hover { text-decoration: underline; }
/* ---------- tables ---------- */
.scroll { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
td.wrap { white-space: normal; min-width: 200px; }
th { color: var(--faint); font-weight: 600; font-size: 11.5px; text-transform: uppercase; letter-spacing: .6px; }
tbody tr:hover { background: rgba(255, 255, 255, .025); }
tr.click { cursor: pointer; }
.num { text-align: right; }
.more { display: flex; flex-direction: column; align-items: center; gap: 6px; margin-top: 16px; }
.more small { color: var(--faint); }
.rank { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 8px; background: var(--card2); font-weight: 700; font-size: 12px; }
.rank.r1 { background: rgba(245, 197, 66, .2); color: var(--gold); }
.rank.r2 { background: rgba(200, 210, 225, .18); color: #dfe6ef; }
.rank.r3 { background: rgba(205, 127, 50, .2); color: #e7a467; }
.face { width: 24px; height: 24px; border-radius: 6px; vertical-align: middle; margin-right: 8px; image-rendering: pixelated; background: var(--card2); }

/* ---------- pills and dots ---------- */
.pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--card2); color: var(--muted); text-transform: uppercase; letter-spacing: .4px; vertical-align: middle; }
.pill.owner { background: rgba(245, 197, 66, .18); color: var(--gold); }
.pill.admin { background: var(--accent-soft); color: var(--accent2); }
.pill.locked, .pill.bad { background: rgba(255, 107, 107, .16); color: var(--bad); }
.pill.good { background: rgba(63, 220, 140, .16); color: var(--good); }
.pill.warn { background: rgba(255, 181, 71, .16); color: var(--warn); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--faint); margin-right: 7px; vertical-align: middle; }
.dot.on { background: var(--good); box-shadow: 0 0 0 3px rgba(63, 220, 140, .18); }

/* ---------- items and designs ---------- */
.items { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 10px; }
.item { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; display: grid; gap: 2px; }
.item small { color: var(--muted); }
.item.worn { border-color: var(--accent); }
.item .price { color: var(--gold); font-weight: 600; font-size: 12.5px; }
.designs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.design { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; display: flex; flex-direction: column; }
.design .pic { aspect-ratio: 4 / 3; background: radial-gradient(120% 90% at 50% 20%, #1d3140 0%, #0d151d 70%); display: grid; place-items: center; }
.design .pic img { max-width: 100%; max-height: 100%; image-rendering: pixelated; }
.design .body { padding: 10px 12px; display: grid; gap: 6px; flex: 1; }
.design .body b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.design .row { gap: 6px; margin-top: auto; }
.like[aria-pressed=true] { color: #ff8fb3; border-color: #ff8fb3; }
.tools { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 18px; }
.tool-card { display: grid; gap: 8px; padding: 22px; border-radius: var(--radius); border: 1px solid var(--line); background: radial-gradient(120% 120% at 100% 0%, var(--accent-soft), transparent 60%), var(--card); color: var(--fg); }
.tool-card:hover { border-color: var(--accent); text-decoration: none; }
.tool-card svg { width: 34px; height: 34px; color: var(--accent); }
.note { background: var(--card2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; }
.note small { color: var(--faint); display: flex; gap: 8px; align-items: center; }
.note p { margin: 4px 0 0; white-space: pre-wrap; }
.empty { text-align: center; color: var(--muted); padding: 26px 10px; }
.empty svg { width: 34px; height: 34px; color: var(--faint); display: block; margin: 0 auto 8px; }
.skeleton { height: 90px; border-radius: var(--radius); background: linear-gradient(90deg, var(--card) 0%, var(--card2) 50%, var(--card) 100%); background-size: 200% 100%; animation: shimmer 1.2s infinite; }
@keyframes shimmer { to { background-position: -200% 0; } }
@media (prefers-reduced-motion: reduce) { .skeleton, .toast { animation: none; } }

/* ---------- makers ---------- */
.toolbar { display: flex; align-items: center; gap: 12px; padding: 10px 20px; border-bottom: 1px solid var(--line); background: var(--bg2); position: sticky; top: 0; z-index: 10; flex-wrap: wrap; }
.toolbar .brand { font-size: 15px; }
.toolbar .brand img { width: 30px; height: 30px; }
.acct { display: grid; gap: 10px; }
.acct .designs { grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 8px; max-height: 340px; overflow-y: auto; }
.acct .design .pic { aspect-ratio: 1; }
.acct .design .body { padding: 6px 8px; font-size: 12px; }
.searchbox { display: flex; align-items: center; gap: 6px; min-width: 0; flex: 0 1 240px; position: relative; }
.searchbox svg { position: absolute; left: 10px; width: 16px; height: 16px; color: var(--muted); pointer-events: none; }
.searchbox input { padding-left: 32px; width: 100%; }

/* ---------- ranks ---------- */
.mc { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: #15181c; padding: 2px 6px; border-radius: 6px; white-space: pre; }
.mc-name { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; background: #15181c; padding: 2px 0; color: #fff; }
.preview { margin-top: 6px; }
tr.link { cursor: pointer; }
tr.link:hover td { background: var(--card2); }
.chip .x { background: none; border: 0; padding: 0 0 0 6px; color: var(--muted); cursor: pointer; font-size: 14px; }
.rank-badge { width: 72px; height: 72px; border-radius: 18px; display: grid; place-items: center; background: rgba(245, 197, 66, .14); color: var(--gold); }
.rank-badge svg { width: 36px; height: 36px; }
.warnbox { border-color: rgba(255, 181, 71, .5); }
/* Downloads page */
.card.build > .row > svg { width: 30px; height: 30px; flex: none; color: var(--accent); }
.card.build h2 { margin: 0; }
.card.build p { margin: 10px 0 0; }

/* shop previews */
.stage-wrap { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 20px; align-items: center; }
.stage { width: 100%; height: 340px; display: block; border-radius: 12px; background: radial-gradient(circle at 50% 40%, var(--card2), transparent 75%); cursor: grab; touch-action: none; }
.stage:active { cursor: grabbing; }
.stage-info { display: grid; gap: 10px; align-content: center; }
.stage-info p { margin: 0; }
.stage-name { font-size: 24px; margin: 0; }
.price.big { color: var(--gold); font-weight: 700; font-size: 18px; }
b.gold { color: var(--gold); }
.items.shop .item { display: grid; align-content: start; text-align: left; cursor: pointer; font: inherit; color: inherit; justify-content: stretch; white-space: normal; }
.items.shop .item.on { border-color: var(--accent); }
.items.shop .thumb { height: 120px; display: grid; place-items: center; color: var(--muted); }
.items.shop .thumb img { width: 120px; height: 120px; }
.items.shop .thumb svg { width: 34px; height: 34px; }
@media (max-width: 760px) { .stage-wrap { grid-template-columns: 1fr; } .stage { height: 280px; } }
.pill svg { width: 14px; height: 14px; }


/* ==================== homepage ==================== */
.big { padding: 13px 22px; font-size: 15px; }
.big svg { width: 18px; height: 18px; }
.px { font-family: var(--display); letter-spacing: .5px; }
.sec { padding: 84px 0; }
.sec.alt { background: var(--bg2); border-block: 1px solid var(--line); }
.sec-title { text-align: center; margin: 0 auto 44px; max-width: 720px; }
.sec-title h2 { font: 400 clamp(40px, 5.4vw, 60px)/1 var(--display); letter-spacing: .5px; margin: 0 0 12px; }
.sec-title h2 em { font-style: normal; color: var(--accent2); }
.sec-title p { color: var(--muted); margin: 0; font-size: 16px; }
.sec-title::before { content: ""; display: block; width: 14px; height: 14px; margin: 0 auto 16px; background: var(--accent); box-shadow: -20px 0 0 var(--accent-dark), 20px 0 0 var(--accent2); }
@media (max-width: 800px) { .sec { padding: 60px 0; } }

/* hero: the art up top, the name and buttons on the fade below it */
.hero-art { height: min(64vh, 620px); min-height: 340px; background-size: cover; background-position: center 38%; position: relative; }
.hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(10, 16, 25, .15) 0%, rgba(10, 16, 25, 0) 30%, rgba(10, 16, 25, .55) 70%, var(--bg) 100%); }
.hero-body { position: relative; margin-top: -170px; text-align: center; display: grid; justify-items: center; gap: 18px; padding-bottom: 20px; }
.wordmark { font: 400 clamp(84px, 18vw, 220px)/.85 var(--display); letter-spacing: 2px; text-transform: uppercase; margin: 0; color: var(--accent2);
  background: linear-gradient(180deg, #fff 0%, var(--accent2) 38%, var(--accent) 100%); -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent;
  filter: drop-shadow(0 3px 0 var(--accent-dark)) drop-shadow(0 6px 0 var(--accent-dark)) drop-shadow(0 9px 0 #06203a) drop-shadow(0 18px 18px rgba(0, 0, 0, .55)); }
.wordmark-img { max-width: min(680px, 88vw); max-height: 240px; object-fit: contain; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .55)); }
.news { display: inline-flex; align-items: center; gap: 8px; padding: 5px 12px 5px 6px; background: rgba(10, 16, 25, .8); border: 2px solid var(--line2); border-radius: 4px; font-size: 13px; font-weight: 600; color: var(--fg); }
.news b { background: var(--tnt); color: #fff; font: 400 15px var(--display); letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 2px; }
.news:hover { text-decoration: none; border-color: var(--accent); }
.tagline { font: 400 clamp(28px, 3.8vw, 44px)/1.1 var(--display); margin: 6px 0 0; }
.tagline em { font-style: normal; color: var(--accent2); }
.lead { font-size: clamp(15px, 1.5vw, 17px); color: var(--muted); max-width: 62ch; margin: 0; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; align-items: stretch; margin-top: 6px; }
/* the server address, drawn like a row in the game's server list */
.server { display: flex; align-items: center; gap: 12px; padding: 8px 14px 8px 8px; background: rgba(0, 0, 0, .55); border: 2px solid var(--line2); border-radius: 4px; text-align: left; color: var(--fg); font: inherit; box-shadow: none; }
.server:hover { border-color: var(--accent); }
.server img { width: 36px; height: 36px; image-rendering: pixelated; object-fit: contain; }
.server b { display: block; font: 400 22px/1 var(--display); letter-spacing: .5px; }
.server small { color: var(--muted); font-size: 12px; font-weight: 500; }
.server .ping { display: flex; align-items: flex-end; gap: 2px; height: 16px; margin-left: 8px; }
.server .ping i { width: 3px; background: var(--faint); }
.server .ping.on i { background: var(--good); }
.server .ping i:nth-child(1) { height: 4px; } .server .ping i:nth-child(2) { height: 7px; } .server .ping i:nth-child(3) { height: 10px; } .server .ping i:nth-child(4) { height: 13px; } .server .ping i:nth-child(5) { height: 16px; }

/* live numbers, drawn like the hotbar */
.hotbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 44px auto 0; max-width: 900px; padding: 4px; background: #05090f; border: 2px solid #000; box-shadow: 0 0 0 2px var(--line2), var(--shadow); }
.slot { padding: 16px 12px 14px; text-align: center; background: var(--card); border: 3px solid; border-color: #223450 #0a121d #0a121d #223450; display: grid; gap: 2px; }
.slot:first-child { outline: 3px solid var(--fg); outline-offset: -1px; position: relative; z-index: 1; }
.slot b { font: 400 clamp(36px, 5vw, 52px)/1 var(--display); color: var(--fg); }
.slot:first-child b { color: var(--good); }
.slot span { color: var(--muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .8px; }
@media (max-width: 640px) { .hotbar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hero-body { margin-top: -120px; } }

/* features: picture one side, words the other, swapping each row */
.rows { display: grid; gap: 72px; }
.frow { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 56px; align-items: center; }
.frow:nth-child(even) .shot { order: 2; }
.frow .shot { position: relative; }
.frow .shot img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 3px solid #000; box-shadow: 0 0 0 2px var(--line2), 12px 12px 0 var(--accent-dark); }
.frow:nth-child(even) .shot img { box-shadow: 0 0 0 2px var(--line2), -12px 12px 0 var(--accent-dark); }
.frow .n { display: inline-grid; place-items: center; width: 40px; height: 40px; background: var(--accent); color: var(--accent-ink); font: 400 22px var(--display); box-shadow: 4px 4px 0 var(--accent-dark); margin-bottom: 18px; }
.frow h3 { font: 400 clamp(36px, 4vw, 48px)/1 var(--display); letter-spacing: .5px; margin: 0 0 12px; }
.frow p { color: var(--muted); font-size: 16px; margin: 0; max-width: 46ch; }
.frow.noshot { grid-template-columns: minmax(0, 1fr); text-align: center; justify-items: center; }
@media (max-width: 820px) { .rows { gap: 52px; } .frow { grid-template-columns: minmax(0, 1fr); gap: 26px; } .frow:nth-child(even) .shot { order: 0; } .frow .shot img, .frow:nth-child(even) .shot img { box-shadow: 0 0 0 2px var(--line2), 8px 8px 0 var(--accent-dark); } }

/* leaderboards: a podium for the top three */
.tabs { display: flex; justify-content: center; gap: 8px; flex-wrap: wrap; margin-bottom: 34px; }
.tabs button { font: 400 22px var(--display); letter-spacing: .5px; padding: 9px 20px; }
.tabs button[aria-pressed=true] { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); }
.podium-wrap { max-width: 860px; margin: 0 auto; }
.podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; align-items: end; min-height: 250px; }
.pod { display: grid; justify-items: center; gap: 8px; text-align: center; min-width: 0; }
.pod .head { width: 56px; height: 56px; display: grid; place-items: center; font: 400 28px var(--display); color: #fff; border: 3px solid #000; box-shadow: 0 0 0 2px rgba(255, 255, 255, .15); }
.pod a { color: var(--fg); font-weight: 700; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.pod .val { color: var(--muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.pod .block { width: 100%; display: grid; place-items: center; font: 400 44px var(--display); color: rgba(0, 0, 0, .55); border: 3px solid #000; }
.pod.p1 .block { height: 130px; background: linear-gradient(180deg, #ffe27a, var(--gold)); }
.pod.p2 .block { height: 92px; background: linear-gradient(180deg, #eef3f9, #b9c4d2); }
.pod.p3 .block { height: 64px; background: linear-gradient(180deg, #e9a56b, #c07a3e); }
.runners { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.runners li { display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--card); border: 2px solid var(--line); }
.runners li a { flex: 1; color: var(--fg); font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.runners li span.place { font: 400 18px var(--display); color: var(--faint); width: 26px; }
.board-foot { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 18px; color: var(--muted); font-size: 14px; }

/* how to join */
.steps3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; counter-reset: step; }
.step3 { counter-increment: step; background: var(--card); border: 2px solid var(--line); padding: 26px 22px 24px; position: relative; display: grid; gap: 8px; align-content: start; }
.step3::before { content: counter(step); position: absolute; top: -18px; left: 20px; width: 36px; height: 36px; display: grid; place-items: center; background: var(--tnt); color: #fff; font: 400 20px var(--display); box-shadow: 4px 4px 0 rgba(0, 0, 0, .5); }
.step3 h3 { font: 400 30px/1.1 var(--display); margin: 8px 0 0; }
.step3 p { color: var(--muted); margin: 0; }
.step3 .btn, .step3 button { justify-self: start; margin-top: 8px; }
@media (max-width: 820px) { .steps3 { grid-template-columns: minmax(0, 1fr); gap: 30px; } }

/* FAQ */
.qa { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }
.qa details { background: var(--card); border: 2px solid var(--line); }
.qa details[open] { border-color: var(--accent-line); }
.qa summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; padding: 16px 18px; font-weight: 650; font-size: 16px; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; font: 400 26px/1 var(--display); color: var(--accent2); }
.qa details[open] summary::after { content: "\2212"; }
.qa details p { color: var(--muted); padding: 0 18px 18px; margin: 0; white-space: pre-wrap; }
.qa-foot { text-align: center; color: var(--muted); margin-top: 22px; }

/* the last banner, drawn like a TNT block */
.tnt { background: repeating-linear-gradient(90deg, #c93a27 0 26px, var(--tnt) 26px 52px); border: 4px solid #000; box-shadow: 0 0 0 2px var(--line2), var(--shadow); padding: 34px 0; text-align: center; }
.tnt .label { background: #f4f4f4; color: #111; padding: 22px 20px; border-block: 4px solid #000; }
.tnt .label h2 { font: 400 clamp(34px, 6.5vw, 76px)/1 var(--display); letter-spacing: 2px; text-transform: uppercase; margin: 0; }
.tnt-foot { text-align: center; display: grid; justify-items: center; gap: 18px; margin-top: 30px; }
.tnt-foot p { color: var(--muted); max-width: 54ch; margin: 0; font-size: 16px; }

/* ---------- footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--bg2); margin-top: 40px; }
.foot-in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 30px; padding: 48px 0 36px; }
.foot-in p { color: var(--faint); font-size: 13.5px; max-width: 36ch; margin: 12px 0 0; }
.foot-in h4 { margin: 4px 0 12px; font-size: 11.5px; letter-spacing: 1.4px; text-transform: uppercase; color: var(--faint); }
.foot-in ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-in ul a { color: var(--muted); font-size: 14px; }
.foot-in ul a:hover { color: var(--fg); }
.foot-bottom { border-top: 1px solid var(--line); padding: 16px 0 22px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; color: var(--faint); font-size: 12.5px; }
@media (max-width: 800px) { .foot-in { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot-in > div:first-child { grid-column: 1 / -1; } }

/* ---------- site content editor ---------- */
.picker { display: grid; grid-template-columns: 132px minmax(0, 1fr); gap: 14px; align-items: center; background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 10px; }
.picker .thumb { width: 132px; height: 84px; border-radius: 8px; background: repeating-conic-gradient(#1a2638 0 25%, #131d2c 0 50%) 0 0 / 16px 16px; display: grid; place-items: center; overflow: hidden; }
.picker .thumb img { max-width: 100%; max-height: 100%; object-fit: contain; image-rendering: auto; }
.picker .row { gap: 8px; }
.picker input[type=file] { display: none; }
.repeat { display: grid; gap: 12px; }
.repeat > .item-edit { background: var(--card2); border: 1px solid var(--line); border-radius: 12px; padding: 14px; display: grid; gap: 4px; }
.repeat > .item-edit label:first-child { margin-top: 0; }
.savebar { position: sticky; bottom: 16px; z-index: 5; display: flex; gap: 10px; align-items: center; flex-wrap: wrap; background: rgba(13, 21, 34, .94); backdrop-filter: blur(10px); border: 1px solid var(--line2); border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow); }
@media (max-width: 600px) { .picker { grid-template-columns: minmax(0, 1fr); } .picker .thumb { width: 100%; height: 120px; } }


/* ---------- blocky: square corners and pressed-in buttons, like the game ---------- */
.card, .tile, .stat, button, .btn, input, select, textarea, .chip, .pill, .item, .design, .note, .toast, .rank, .face, .msg, .banner, .tool-card, .skeleton, .stage,
.picker, .picker .thumb, .savebar, .item-edit, .meter, .meter i, .tag, .rank-badge, code { border-radius: 4px; }
.card { border-width: 2px; background: var(--card); }
button, .btn { border-width: 2px; }
.primary { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); box-shadow: 0 4px 0 var(--accent-dark); }
.primary:hover { filter: brightness(1.08); border-color: var(--accent); }
.primary:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--accent-dark); }
.primary.small { box-shadow: 0 3px 0 var(--accent-dark); }
.tag { justify-self: start; display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--accent2); background: var(--accent-soft); border: 1px solid var(--accent-line); padding: 2px 8px; }
.foot .brand { font-size: 28px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
/* stat leaderboards, in the blocky look */
.boards { gap: 16px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.board { background: var(--bg2); border: 2px solid var(--line); border-radius: 4px; padding: 0 0 6px; overflow: hidden; }
.board-head { margin: 0; padding: 10px 14px; background: var(--card2); border-bottom: 2px solid var(--line); }
.board-head h3 { font: 400 24px/1 var(--display); letter-spacing: .5px; flex: 1; }
.board ol { padding: 2px 14px; }
.board li.none { padding: 14px 0; }
button.linkish { color: var(--accent2); box-shadow: none; }

/* ==================== shop: a display case beside the shelves ==================== */
.shop { display: grid; grid-template-columns: 360px minmax(0, 1fr); gap: 24px; align-items: start; }
.case { position: sticky; top: 84px; background: var(--card); border: 2px solid var(--line); display: grid; }
.wallet { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: var(--card2); border-bottom: 2px solid var(--line); font-size: 13px; }
.wallet > svg { width: 22px; height: 22px; color: var(--gold); flex: none; }
.wallet b { display: block; font: 400 26px/1 var(--display); color: var(--gold); }
.wallet small { color: var(--muted); font-size: 11.5px; }
.case-stage { position: relative; background: radial-gradient(circle at 50% 35%, #1d3352 0%, #0b131f 72%); border-bottom: 2px solid var(--line); }
.case-stage::after { content: ""; position: absolute; inset: auto 0 0 0; height: 34%; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255, 255, 255, .12) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .12) 1px, transparent 1px); background-size: 28px 28px;
  mask-image: linear-gradient(180deg, transparent, #000); -webkit-mask-image: linear-gradient(180deg, transparent, #000); }
.case-stage .stage { height: 330px; background: none; border-radius: 0; position: relative; z-index: 1; }
.case-stage .stage.flat { display: grid; place-items: center; align-content: center; gap: 10px; color: var(--muted); text-align: center; padding: 20px; cursor: default; }
.case-stage .stage.flat svg { width: 64px; height: 64px; color: var(--accent2); }
.case-stage .hint { position: absolute; left: 10px; top: 8px; z-index: 2; font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); }
.case-info { padding: 16px; display: grid; gap: 10px; }
.case-info p { margin: 0; }
.case-name { font: 400 38px/1 var(--display); letter-spacing: .5px; margin: 0; }
.case-price { display: flex; align-items: baseline; gap: 8px; font: 400 34px/1 var(--display); color: var(--gold); }
.case-price svg { width: 22px; height: 22px; align-self: center; }
.case-price small { font: 500 13px var(--font); color: var(--muted); }
.big-pill { font-size: 13px; padding: 8px 12px; display: inline-flex; align-items: center; gap: 6px; justify-self: start; }
.full { width: 100%; margin-top: 0; }
.rar { justify-self: start; font-size: 10.5px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; padding: 2px 7px; border-radius: 3px; color: #0b131f; background: var(--rar, #9fb0c4); }
.common { --rar: #9fb0c4; } .rare { --rar: #4aa8ff; } .epic { --rar: #c07bff; } .legendary { --rar: #f5c542; } .exclusive { --rar: #ff6b5a; }
.shop-tabs { display: flex; gap: 6px; flex-wrap: wrap; border-bottom: 3px solid var(--line); }
.shop-tabs button { background: none; border: 0; border-radius: 0; box-shadow: none; padding: 10px 14px; margin-bottom: -3px; border-bottom: 3px solid transparent; color: var(--muted); font: 400 24px/1 var(--display); letter-spacing: .5px; }
.shop-tabs button svg { width: 18px; height: 18px; }
.shop-tabs button small { font: 700 11px var(--font); background: var(--card2); color: var(--muted); padding: 2px 7px; border-radius: 3px; }
.shop-tabs button:hover { color: var(--fg); }
.shop-tabs button[aria-selected=true] { color: var(--fg); border-bottom-color: var(--accent); }
.shop-tabs button[aria-selected=true] small { background: var(--accent); color: var(--accent-ink); }
.shop-bar { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin: 16px 0; }
.shop-bar .searchbox { flex: 1 1 200px; margin: 0; }
.shop-bar select { width: auto; }
.shop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(158px, 1fr)); gap: 12px; }
.citem { position: relative; display: grid; gap: 6px; align-content: start; justify-items: start; text-align: left; white-space: normal; padding: 0 0 12px; overflow: hidden;
  background: var(--card); border: 2px solid var(--line); border-bottom: 4px solid var(--rar); color: var(--fg); font: inherit; transition: transform .12s, border-color .12s; }
.citem:hover { transform: translateY(-3px); border-color: var(--rar); }
.citem.on { border-color: var(--rar); box-shadow: 0 0 0 2px var(--rar); }
.citem .pic { width: 100%; aspect-ratio: 1; display: grid; place-items: center; color: var(--faint); background: radial-gradient(circle at 50% 45%, color-mix(in srgb, var(--rar) 26%, #101a29), #0c1420 75%); }
.citem .pic img { width: 100%; height: 100%; object-fit: contain; }
.citem .pic svg { width: 44px; height: 44px; color: var(--rar); }
.citem > .rar, .citem > b, .citem > .cprice { margin: 0 12px; }
.citem > b { font-size: 14.5px; line-height: 1.25; }
.cprice { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; font-size: 13.5px; font-variant-numeric: tabular-nums; }
.cprice svg { width: 15px; height: 15px; }
.citem .own { position: absolute; top: 8px; right: 8px; z-index: 1; display: inline-flex; align-items: center; gap: 4px; background: var(--good); color: #05210f; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .6px; padding: 2px 6px; border-radius: 3px; }
.citem .own svg { width: 12px; height: 12px; }
@media (max-width: 900px) { .shop { grid-template-columns: minmax(0, 1fr); } .case { position: static; } .case-stage .stage { height: 260px; } .shop-grid { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); } .shop-tabs button { font-size: 20px; padding: 8px 10px; } }

/* ==================== downloads ==================== */
.dl-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); background: var(--card); border: 2px solid var(--accent-line); box-shadow: 10px 10px 0 var(--accent-dark); margin: 0 10px 10px 0; }
.dl-top-txt { padding: 30px; display: grid; gap: 14px; align-content: center; }
.dl-top-txt h2 { font: 400 clamp(40px, 5vw, 58px)/.95 var(--display); letter-spacing: .5px; margin: 0; }
.dl-top-txt p { margin: 0; font-size: 16px; }
.dl-top-pic { border-left: 2px solid var(--line); background: #05090f; min-height: 280px; }
.dl-top-pic img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tag.hot { color: #fff; background: var(--tnt); border-color: var(--tnt); }
.needs { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); font-size: 13.5px; }
.needs svg { width: 15px; height: 15px; color: var(--good); }
.dl-steps { margin: 0; padding: 0; list-style: none; counter-reset: dl; display: grid; gap: 7px; }
.dl-steps li { counter-increment: dl; display: flex; gap: 10px; align-items: baseline; color: var(--muted); font-size: 14px; }
.dl-steps li::before { content: counter(dl); flex: none; width: 20px; height: 20px; display: inline-grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); color: var(--fg); font: 400 15px var(--display); }
.dl-h { font: 400 34px/1 var(--display); letter-spacing: .5px; margin: 44px 0 16px; }
.dl-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.dl-card { background: var(--card); border: 2px solid var(--line); padding: 20px; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 16px; align-content: start; }
.dl-card:hover { border-color: var(--accent-line); }
.dl-ic { width: 52px; height: 52px; display: grid; place-items: center; background: var(--accent); color: var(--accent-ink); box-shadow: 4px 4px 0 var(--accent-dark); }
.dl-ic svg { width: 28px; height: 28px; }
.dl-body { display: grid; gap: 8px; justify-items: start; }
.dl-body h3 { font: 400 30px/1 var(--display); letter-spacing: .5px; margin: 0; }
.dl-body p { margin: 0; }
.dl-card > .btn { grid-column: 1 / -1; }
.dl-join { margin-top: 28px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 16px; background: rgba(0, 0, 0, .4); border: 2px solid var(--line2); }
.dl-join img { width: 44px; height: 44px; image-rendering: pixelated; object-fit: contain; }
.dl-join div { flex: 1; min-width: 200px; }
.dl-join b { display: block; font: 400 26px/1.05 var(--display); }
.dl-join small { color: var(--muted); }
@media (max-width: 820px) { .dl-top { grid-template-columns: minmax(0, 1fr); } .dl-top-pic { border-left: 0; border-top: 2px solid var(--line); min-height: 0; order: -1; } .dl-top-txt { padding: 22px; } .dl-grid { grid-template-columns: minmax(0, 1fr); } }

/* ==================== voting ==================== */
.navdot { width: 8px; height: 8px; background: var(--tnt); display: inline-block; box-shadow: 0 0 0 2px rgba(219, 63, 43, .3); }
.vote { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 24px; align-items: start; }
.vote-progress { background: var(--card); border: 2px solid var(--line); padding: 16px; display: grid; gap: 10px; margin-bottom: 14px; }
.vote-progress .meter { height: 12px; }
.vote-progress .meter i { background: var(--good); }
.vote-list { display: grid; gap: 10px; }
.vote-site { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px; background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--accent); }
.vote-site.done { border-left-color: var(--good); }
.vote-site .vn { width: 38px; height: 38px; display: grid; place-items: center; background: var(--card2); border: 1px solid var(--line2); font: 400 24px var(--display); flex: none; }
.vote-site.done .vn { background: var(--good); color: #05210f; border-color: var(--good); }
.vote-site .vn svg { width: 20px; height: 20px; }
.vote-site > div { flex: 1; min-width: 140px; }
.vote-site b { display: block; font: 400 28px/1 var(--display); letter-spacing: .5px; }
.vote-site small { color: var(--faint); }
.reward { display: inline-flex; align-items: center; gap: 5px; color: var(--gold); font-weight: 700; }
.reward svg { width: 16px; height: 16px; }
.vote-steps { margin: 12px 0 0; padding: 0; list-style: none; counter-reset: vs; display: grid; gap: 16px; }
.vote-steps li { counter-increment: vs; position: relative; padding-left: 40px; }
.vote-steps li::before { content: counter(vs); position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center; background: var(--tnt); color: #fff; font: 400 20px var(--display); }
.vote-steps p { margin: 4px 0 0; }
.vote-steps input { flex: 1 1 120px; width: auto; }
@media (max-width: 820px) { .vote { grid-template-columns: minmax(0, 1fr); } }
.vote-strip { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; padding: 22px 26px; background: linear-gradient(90deg, #f5c542, #ffdf7a); color: #2a1e00; border: 3px solid #000; box-shadow: 0 0 0 2px var(--line2), 8px 8px 0 rgba(0, 0, 0, .45); }
.vote-strip > div:nth-child(2) { flex: 1; min-width: 220px; }
.vote-strip h2 { font: 400 clamp(30px, 4vw, 42px)/1 var(--display); letter-spacing: .5px; margin: 0 0 4px; }
.vote-strip p { margin: 0; font-weight: 500; }
.vs-coin { width: 54px; height: 54px; display: grid; place-items: center; background: #2a1e00; color: #f5c542; }
.vs-coin svg { width: 28px; height: 28px; }
.vote-strip .btn { background: #2a1e00; color: #fff; border-color: #2a1e00; }
.vote-nudge { position: fixed; left: 18px; bottom: 18px; z-index: 40; width: min(340px, calc(100vw - 36px)); display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 12px; padding: 14px 16px; background: var(--card2); border: 2px solid var(--gold); box-shadow: 6px 6px 0 rgba(0, 0, 0, .5); animation: pop .25s ease-out; }
.vote-nudge .vn-icon { width: 38px; height: 38px; display: grid; place-items: center; background: var(--gold); color: #2a1e00; }
.vote-nudge .vn-icon svg { width: 20px; height: 20px; }
.vote-nudge b { font: 400 22px/1.05 var(--display); display: block; padding-right: 18px; }
.vote-nudge p { margin: 4px 0 10px; color: var(--muted); font-size: 13px; }
.vote-nudge .x { position: absolute; top: 4px; right: 4px; background: none; border: 0; box-shadow: none; padding: 2px 8px; font-size: 18px; color: var(--muted); }
@media (prefers-reduced-motion: reduce) { .vote-nudge { animation: none; } .citem { transition: none; } }
.citem .pic { justify-self: stretch; }
.citem { align-content: start; height: 100%; }
.vote-nudge { left: auto; right: 18px; }
.toast { bottom: 22px; z-index: 60; }
@media (min-width: 961px) { .links a > svg { display: none; } .links { gap: 0; } }
.citem { grid-template-columns: minmax(0, 1fr); width: 100%; }
@media (max-width: 640px) { .vote-nudge { right: 10px; bottom: 10px; width: min(300px, calc(100vw - 20px)); padding: 10px 12px; } .vote-nudge p { display: none; } .vote-nudge b { margin-bottom: 8px; } }

/* ---- Plebio, the mascot ---- */
.plebio { image-rendering: pixelated; cursor: pointer; user-select: none; -webkit-user-drag: none; max-width: none; flex: none; filter: drop-shadow(0 4px 0 rgba(0, 0, 0, .35)); }
.card.center > .plebio, .empty > .plebio { display: block; margin: 0 auto 8px; }
.page-head { position: relative; }
.head-pal { position: absolute; right: 4px; bottom: -8px; }
@media (max-width: 720px) { .head-pal { display: none; } }
.hotbar { position: relative; }
.hot-pal { position: absolute; left: 100%; bottom: -2px; margin-left: 12px; }
.tnt { position: relative; }
.tnt-pal { position: absolute; right: 26px; bottom: 100%; margin-bottom: -10px; }
.vs-pal { margin: -34px 0 -10px; }
.foot .wrap { position: relative; }
.foot-pal { position: absolute; right: 24px; bottom: 100%; margin-bottom: -3px; }
.vn-pal { align-self: end; }
.vote-progress { position: relative; }
.vp-pal { position: absolute; right: 12px; bottom: 100%; margin-bottom: -6px; }
@media (max-width: 760px) { .hot-pal { left: auto; right: 8px; bottom: 100%; margin: 0 0 -4px; width: 57px; height: 60px; } }
@media (max-width: 640px) { .tnt-pal { right: 8px; } .vs-pal { margin: -30px auto -6px; } }

/* ---- motion: only transforms and opacity, and none of it for people who ask for less ---- */
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes drop { 0% { opacity: 0; transform: translateY(-46px) scale(1.06); } 60% { opacity: 1; transform: translateY(6px) scale(.99); } 100% { transform: none; } }
@keyframes slotpop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.08); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes hop { 0% { opacity: 0; transform: translateY(26px); } 55% { opacity: 1; transform: translateY(-10px); } 80% { transform: translateY(3px); } }
@keyframes pulse { 50% { box-shadow: 0 0 0 6px rgba(219, 63, 43, 0); transform: scale(1.15); } }
@keyframes primed { 0%, 100% { filter: none; } 50% { filter: brightness(1.9) saturate(.4); } }
@keyframes nudge { 0%, 86%, 100% { transform: none; } 90% { transform: translateX(5px); } 94% { transform: translateX(-3px); } 97% { transform: translateX(2px); } }
@keyframes bob { 50% { transform: translateY(-5px); } }
@media (prefers-reduced-motion: no-preference) {
  #app > .page > *, #app > .home > section:first-child .hero-art { animation: rise .4s ease-out backwards; }
  #app > .home > section:first-child .hero-art { animation-name: fadein; animation-duration: .7s; }
  .hero-body > * { animation: rise .5s ease-out backwards; }
  .hero-body > h1 { animation: drop .75s cubic-bezier(.2, .8, .3, 1) backwards; }
  .hero-body > :nth-child(2) { animation-delay: .08s; } .hero-body > :nth-child(3) { animation-delay: .22s; } .hero-body > :nth-child(4) { animation-delay: .3s; }
  .hero-body > :nth-child(5) { animation-delay: .38s; } .hero-body > :nth-child(n+6) { animation-delay: .46s; }
  .hotbar .slot { animation: slotpop .4s ease-out backwards; }
  .statstrip .ss b { animation: slotpop .45s ease-out backwards; }
  .sb-row { animation: rise .35s ease-out backwards; }
  .sb-row:nth-of-type(2) { animation-delay: .6s; } .sb-row:nth-of-type(3) { animation-delay: .7s; } .sb-row:nth-of-type(4) { animation-delay: .8s; } .sb-row:nth-of-type(5) { animation-delay: .9s; }
  .statstrip .ss:nth-child(1) b { animation-delay: .6s; } .statstrip .ss:nth-child(2) b { animation-delay: .68s; } .statstrip .ss:nth-child(3) b { animation-delay: .76s; } .statstrip .ss:nth-child(4) b { animation-delay: .84s; }
  .live-dot { animation: livepulse 1.8s ease-out infinite; }
  .hotbar .slot:nth-of-type(1) { animation-delay: .6s; } .hotbar .slot:nth-of-type(2) { animation-delay: .68s; } .hotbar .slot:nth-of-type(3) { animation-delay: .76s; } .hotbar .slot:nth-of-type(4) { animation-delay: .84s; }
  .hot-pal, .strip-pal, .board-pal, .head-pal, .tnt-pal, .foot-pal { animation: hop .6s ease-out .5s backwards; }
  .server .ping.on { animation: bob 1.6s ease-in-out infinite; }
  .reveal { opacity: 0; transform: translateY(26px); transition: opacity .55s ease-out, transform .55s cubic-bezier(.2, .7, .3, 1); }
  .reveal.from-left { transform: translateX(-40px); } .reveal.from-right { transform: translateX(40px); }
  .reveal.in { opacity: 1; transform: none; }
  .pod .block { transform-origin: bottom; animation: grow .5s cubic-bezier(.2, .8, .3, 1.2) backwards; }
  .pod.p1 .block { animation-delay: .25s; } .pod.p2 .block { animation-delay: .1s; }
  .pod .head, .pod a, .pod .val { animation: rise .4s ease-out .45s backwards; }
  .citem, .board, .dl-card, .vote-site, .tile, .lb-row { animation: rise .35s ease-out backwards; }
  .citem:nth-child(2), .board:nth-child(2), .dl-card:nth-child(2), .vote-site:nth-child(2), .tile:nth-child(2) { animation-delay: .04s; }
  .citem:nth-child(3), .board:nth-child(3), .dl-card:nth-child(3), .vote-site:nth-child(3), .tile:nth-child(3) { animation-delay: .08s; }
  .citem:nth-child(4), .board:nth-child(4), .dl-card:nth-child(4), .tile:nth-child(4) { animation-delay: .12s; }
  .citem:nth-child(5), .board:nth-child(5) { animation-delay: .16s; } .citem:nth-child(6), .board:nth-child(6) { animation-delay: .2s; }
  .citem:nth-child(7) { animation-delay: .24s; } .citem:nth-child(n+8) { animation-delay: .28s; }
  .step3, .dl-card, .board, .frow .shot img, .plebio { transition: transform .15s ease-out, border-color .15s, box-shadow .15s, filter .15s; }
  .step3:hover, .dl-card:hover, .board:hover { transform: translateY(-4px); border-color: var(--accent-line); }
  .frow .shot { overflow: hidden; } .frow:hover .shot img { transform: scale(1.04); }
  .plebio:hover { transform: translateY(-3px); } .plebio:active { transform: scale(.92); }
  .navdot { animation: pulse 1.8s ease-in-out infinite; }
  .tnt:hover { animation: primed .5s steps(2) 3; }
  .vote-strip .btn, .vote-nudge .btn.primary { animation: nudge 4s ease-in-out infinite; }
  .meter i { transition: width .5s ease-out; }
  .qa details[open] p { animation: rise .25s ease-out; }
}
@keyframes fadein { from { opacity: 0; } }

/* ---- posts: news and changelogs ---- */
.kind { display: inline-block; font-size: 10.5px; font-weight: 800; letter-spacing: .8px; text-transform: uppercase; padding: 3px 8px; background: var(--accent); color: var(--accent-ink); }
.kind.k-server { background: var(--good); color: #05210f; } .kind.k-client { background: #3fd8e6; color: #04252a; } .kind.k-event { background: var(--gold); color: #2a1e00; } .kind.k-pin { background: var(--tnt); color: #fff; }
.ptabs { display: flex; gap: 6px; flex-wrap: wrap; }
.ptabs button.on { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.posts { display: grid; gap: 18px; max-width: 860px; }
.posts .back { color: var(--muted); font-weight: 600; }
.post { background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--accent); padding: 22px 26px 24px; min-width: 0; position: relative; }
.post.pinned { border-left-color: var(--tnt); }
.post > header { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.post > header .when { color: var(--faint); font-size: 13px; flex: 1; }
.post > h2 { font: 400 clamp(30px, 4vw, 40px)/1.05 var(--display); letter-spacing: .5px; margin: 0 0 12px; overflow-wrap: anywhere; }
.post > h2 a { color: var(--fg); } .post > h2 a:hover { color: var(--accent2); }
.post.clamp .md { max-height: 320px; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent); mask-image: linear-gradient(#000 70%, transparent); }
.post .more-btn { margin-top: 10px; }
.md { color: #c9d4e3; line-height: 1.65; overflow-wrap: anywhere; }
.md > :first-child { margin-top: 0; } .md > :last-child { margin-bottom: 0; }
.md h2, .md h3, .md h4, .md h5 { color: var(--fg); margin: 22px 0 8px; line-height: 1.2; }
.md h2 { font: 400 28px/1.1 var(--display); letter-spacing: .5px; } .md h3 { font-size: 18px; } .md h4, .md h5 { font-size: 15px; }
.md p { margin: 0 0 12px; } .md ul, .md ol { margin: 0 0 12px; padding-left: 24px; } .md li { margin: 3px 0; } .md li > ul, .md li > ol { margin: 3px 0; }
.md ul { list-style: square; } .md li::marker { color: var(--accent2); }
.md a { color: var(--accent2); text-decoration: underline; text-underline-offset: 2px; }
.md code { font: 13px ui-monospace, Menlo, Consolas, monospace; background: var(--bg2); border: 1px solid var(--line); padding: 1px 5px; }
.md pre { background: var(--bg2); border: 2px solid var(--line); padding: 12px 14px; overflow-x: auto; margin: 0 0 12px; } .md pre code { border: 0; padding: 0; background: none; }
.md blockquote { margin: 0 0 12px; padding: 8px 14px; border-left: 4px solid var(--line2); background: var(--bg2); color: var(--muted); }
.md hr { border: 0; border-top: 2px solid var(--line); margin: 18px 0; }
.md img { max-width: 100%; height: auto; display: block; margin: 6px 0; border: 2px solid var(--line); }
.post-top { align-items: end; gap: 16px; margin-bottom: 14px; }
.post-top .grow { flex: 1 1 260px; min-width: 0; }
.post-top .grow input { width: 100%; }
.post-top select { width: auto; min-width: 170px; }
.post-top .check { padding-bottom: 10px; }
/* the text box and the preview stand side by side, the same height */
.post-edit { align-items: stretch; }
.post-write, .post-preview-col { display: flex; flex-direction: column; min-width: 0; }
.post-edit textarea { font: 13.5px/1.5 ui-monospace, Menlo, Consolas, monospace; min-height: 420px; resize: vertical; flex: 1; border-top-left-radius: 0; border-top-right-radius: 0; }
.md-tools { display: flex; flex-wrap: wrap; align-items: center; gap: 4px; padding: 6px; background: var(--card2); border: 1px solid var(--line2); border-bottom: 0; }
.md-tools button { padding: 5px 9px; min-width: 32px; box-shadow: none; white-space: nowrap; }
.md-tools .md-b { font-weight: 800; } .md-tools .md-i { font-style: italic; font-family: Georgia, serif; } .md-tools .md-s { text-decoration: line-through; }
.md-tools .sep { width: 1px; align-self: stretch; background: var(--line2); margin: 2px 4px; }
.post-preview { flex: 1; min-height: 0; position: relative; }
.post-preview .post { position: absolute; inset: 0; overflow: auto; animation: none; }
@media (max-width: 900px) { .post-edit { grid-template-columns: 1fr; } .post-preview .post { position: static; max-height: 520px; } .post-edit textarea { min-height: 300px; } }
.post-rows { display: grid; }
.post-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.post-row:first-child { border-top: 0; } .post-row > a:not(.btn) { color: var(--fg); font-weight: 600; min-width: 0; overflow-wrap: anywhere; }
.news-sec { padding-top: 10px; padding-bottom: 20px; }
.news-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.news-head h2 { font: 400 clamp(32px, 4vw, 44px)/1 var(--display); letter-spacing: .5px; margin: 0; } .news-head h2 em { font-style: normal; color: var(--accent2); }
.news-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.news-card { display: grid; gap: 8px; justify-items: start; align-content: start; padding: 18px; background: var(--card); border: 2px solid var(--line); border-left: 6px solid var(--accent); color: var(--fg); transition: transform .15s, border-color .15s; }
.news-card:hover { transform: translateY(-3px); border-color: var(--accent-line); border-left-color: var(--accent2); }
.news-card b { font: 400 26px/1.1 var(--display); letter-spacing: .4px; overflow-wrap: anywhere; } .news-card small { color: var(--faint); }
@media (max-width: 640px) { .post { padding: 16px 16px 18px; } }
@media (prefers-reduced-motion: no-preference) { .post { animation: rise .35s ease-out backwards; } }

/* ---- pictures of the client ---- */
button.dl-top-pic { padding: 0; border: 0; background: none; box-shadow: none; cursor: zoom-in; display: block; }
.gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-bottom: 34px; }
.gshot { padding: 0; display: grid; text-align: left; white-space: normal; align-content: start; background: var(--card); border: 2px solid var(--line); box-shadow: none; overflow: hidden; cursor: zoom-in; transition: transform .15s, border-color .15s; }
.gshot:hover { transform: translateY(-4px); border-color: var(--accent-line); }
.gshot img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; border-bottom: 2px solid var(--line); }
.gshot span { display: grid; gap: 4px; padding: 12px 14px 14px; }
.gshot b { font: 400 24px/1 var(--display); letter-spacing: .4px; color: var(--fg); } .gshot small { color: var(--muted); font-size: 13px; font-weight: 400; line-height: 1.4; }
.lightbox { position: fixed; inset: 0; z-index: 100; background: rgba(4, 8, 14, .92); display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 20px; animation: fadein .2s; }
.lightbox figure { margin: 0; display: grid; justify-items: center; gap: 12px; min-width: 0; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 130px); border: 3px solid #000; box-shadow: 0 0 0 2px var(--line2), var(--shadow); }
.lightbox p { margin: 0; color: var(--muted); text-align: center; } .lightbox p b { color: var(--fg); margin-right: 6px; }
.lightbox .lb-nav { font: 400 40px/1 var(--display); width: 52px; height: 64px; padding: 0; }
.lightbox .lb-x { position: absolute; top: 14px; right: 18px; font-size: 26px; width: 44px; height: 44px; padding: 0; }
@media (max-width: 860px) { .gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .gallery { grid-template-columns: minmax(0, 1fr); } .lightbox { padding: 8px; gap: 4px; } .lightbox .lb-nav { width: 36px; } }
@media (prefers-reduced-motion: no-preference) { .gshot { animation: rise .35s ease-out backwards; } }

/* ==================== skins as profile pictures ==================== */
.skin-head { width: 100%; height: 100%; display: block; image-rendering: pixelated; border-radius: inherit; }
.face.has-skin, .pod .head.has-skin { overflow: hidden; font-size: 0 !important; }

/* ==================== ideas board ==================== */
.idea-sec .card-head { flex-wrap: wrap; gap: 8px; }
.idea-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
.idea { background: var(--card2); border: 1px solid var(--line2); border-left: 4px solid var(--line2); border-radius: 10px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.idea.p-urgent { border-left-color: var(--bad); }
.idea.p-high { border-left-color: var(--warn); }
.idea.p-medium { border-left-color: var(--accent); }
.idea.s-done, .idea.s-dropped { opacity: .6; }
.idea.s-done h3, .idea.s-dropped h3 { text-decoration: line-through; }
.idea h3 { margin: 0; font-size: 16px; overflow-wrap: anywhere; }
.idea p { margin: 0; color: var(--muted); white-space: pre-wrap; overflow-wrap: anywhere; font-size: 14px; }
.idea-top, .idea-foot { display: flex; align-items: center; gap: 6px; }
.idea-foot { margin-top: auto; font-size: 12px; }
.idea-status { width: auto; padding: 3px 26px 3px 8px; font-size: 12px; min-height: 0; }
.idea.add { border-style: dashed; border-left-width: 1px; justify-content: center; background: none; }
.idea.add > button { align-self: center; }
.idea-form { display: flex; flex-direction: column; gap: 8px; }
.idea-form .row { flex-wrap: wrap; gap: 6px; }
.idea-form select { width: auto; flex: 0 1 auto; }

/* ==================== punishments ==================== */
.pun-who { display: inline-flex; align-items: center; white-space: nowrap; color: var(--fg); font-weight: 600; }
.pun-who .face { flex: none; }
.pun-table .pill + .pill { margin-left: 4px; }
.pun-table td.wrap { overflow-wrap: anywhere; }
.pun-lifted { display: block; color: var(--good); margin-top: 2px; }
tr.pun.s-expired td, tr.pun.s-removed td { opacity: .72; }

/* ==================== "new post" notice on the homepage ==================== */
.news-notice { background: linear-gradient(90deg, var(--accent-soft), rgba(255, 255, 255, .02)); border-bottom: 1px solid var(--accent-line); }
.news-notice .wrap { display: flex; align-items: center; gap: 12px; padding-top: 9px; padding-bottom: 9px; }
.news-notice a { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; min-width: 0; flex: 1; color: var(--fg); }
.news-notice a:hover { text-decoration: none; } .news-notice a:hover .go { text-decoration: underline; }
.news-notice a b { overflow-wrap: anywhere; }
.news-notice .go { color: var(--accent2); font-size: 13px; font-weight: 600; white-space: nowrap; display: inline-flex; align-items: center; gap: 4px; }
.news-notice .go svg { width: 14px; height: 14px; }
.news-notice .kind { flex: none; }
.news-notice small { color: var(--muted); white-space: nowrap; }
.news-notice .x { flex: none; background: none; border: 0; box-shadow: none; padding: 2px 6px; font-size: 20px; line-height: 1; color: var(--muted); cursor: pointer; }
.news-notice .x:hover { color: var(--fg); }
@media (max-width: 560px) { .news-notice small { display: none; } }

/* ==================== phones ==================== */
/* sections slide in from the side: that must not make the page scroll sideways */
.home { overflow-x: clip; }
/* long lists (players, punishments, the admin log): on a phone each row is a small card, not a table to scroll sideways */
@media (max-width: 640px) {
  table.cardrows, table.cardrows tbody { display: block; }
  table.cardrows thead { display: none; }
  table.cardrows tr { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 8px; padding: 12px 2px; border-bottom: 1px solid var(--line); }
  table.cardrows td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; width: 100%; padding: 3px 0; border: 0; white-space: normal; min-width: 0; text-align: right; overflow-wrap: anywhere; }
  table.cardrows td[data-label]::before { content: attr(data-label); flex: none; color: var(--faint); font-size: 11.5px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; text-align: left; }
  table.cardrows td.cr-lead { width: auto; justify-content: flex-start; align-items: center; text-align: left; font-size: 15px; font-weight: 600; gap: 4px; padding-bottom: 6px; }
  table.cardrows td.cr-lead { order: -2; }
  table.cardrows td.cr-lead:first-child:has(> .pill:first-child) { order: -1; margin-left: auto; }
  table.cardrows td.wrap { min-width: 0; }
  table.cardrows td[colspan] { justify-content: center; text-align: center; }
  table.cardrows .pun-lifted { text-align: right; }
  /* the new-post strip: the kind goes above the title */
  .news-notice .wrap { flex-wrap: wrap; row-gap: 4px; padding-left: 16px; padding-right: 16px; }
  .news-notice .kind { order: 0; }
  .news-notice .x { order: 1; margin-left: auto; }
  .news-notice a { order: 2; flex-basis: 100%; }
}

/* ==================== homepage numbers ==================== */
.live-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--good); box-shadow: 0 0 0 0 rgba(63, 220, 140, .6); margin-right: 7px; vertical-align: 1px; }
@keyframes livepulse { 70%, 100% { box-shadow: 0 0 0 8px rgba(63, 220, 140, 0); } }
/* open strip: no boxes, just big numbers between two pixel rules */
.statstrip { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); width: 100%; max-width: 940px; margin: 52px auto 0; padding: 22px 0 20px;
  border-top: 2px solid var(--line2); border-bottom: 2px solid var(--line2);
  background: linear-gradient(90deg, transparent, rgba(46, 168, 255, .07) 20%, rgba(46, 168, 255, .07) 80%, transparent); }
.statstrip::before, .statstrip::after { content: ""; position: absolute; left: 50%; width: 120px; height: 4px; margin-left: -60px; background: var(--accent); }
.statstrip::before { top: -3px; } .statstrip::after { bottom: -3px; width: 40px; margin-left: -20px; background: var(--line2); }
.ss { display: grid; gap: 6px; justify-items: center; padding: 0 10px; border-left: 2px dotted var(--line2); }
.ss:first-child { border-left: 0; }
.ss b { font: 400 clamp(44px, 6vw, 68px)/.9 var(--display); letter-spacing: 1px; color: var(--fg); text-shadow: 0 4px 0 rgba(0, 0, 0, .45); }
.ss.live.on b { color: var(--good); }
.ss.accent b { color: var(--accent2); }
.ss span { color: var(--muted); font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; }
.strip-pal { position: absolute; right: 6px; bottom: 100%; margin-bottom: -4px; }
@media (max-width: 640px) { .statstrip { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 22px; } .ss:nth-child(3) { border-left: 0; } }
/* scoreboard: the game's own sidebar */
.scoreboard-wrap { position: relative; margin: 48px auto 0; display: flex; align-items: flex-end; justify-content: center; gap: 18px; }
.scoreboard { min-width: min(340px, 86vw); background: rgba(0, 0, 0, .5); padding: 0 0 4px; font: 400 24px/1.25 var(--display); letter-spacing: .5px; text-align: left; box-shadow: var(--shadow); }
.sb-title { text-align: center; background: rgba(0, 0, 0, .35); color: var(--gold); padding: 5px 14px; font-size: 28px; text-transform: uppercase; letter-spacing: 2px; }
.sb-row { display: flex; justify-content: space-between; gap: 40px; padding: 3px 12px; color: var(--fg); }
.sb-row b { font-weight: 400; color: #ff5555; }
.sb-row.live.on span { color: var(--good); }
.sb-foot { text-align: center; color: var(--gold); font-size: 18px; padding: 6px 12px 2px; }
.board-pal { margin-bottom: 0; }
@media (max-width: 520px) { .board-pal { display: none; } }

/* ==================== client comparison ==================== */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.cmp { margin-top: 8px; }
.cmp-table { width: 100%; border-collapse: separate; border-spacing: 0; min-width: 520px; }
.cmp-table th, .cmp-table td { padding: 12px 14px; text-align: center; border-bottom: 1px solid var(--line); }
.cmp-table tbody th { text-align: left; font-weight: 600; color: var(--fg); }
.cmp-table thead th { font: 400 22px var(--display); letter-spacing: .5px; color: var(--muted); vertical-align: bottom; border-bottom: 2px solid var(--line2); }
.cmp-table thead th.us { color: var(--accent2); }
.cmp-table thead th.us .plebio { display: block; margin: 0 auto 4px; }
.cmp-table .us { background: var(--accent-soft); border-left: 2px solid var(--accent); border-right: 2px solid var(--accent); }
.cmp-table thead .us { border-top: 2px solid var(--accent); border-radius: 8px 8px 0 0; }
.cmp-table tbody tr:last-child .us { border-bottom: 2px solid var(--accent); border-radius: 0 0 8px 8px; }
.cmp-table tbody tr:hover th, .cmp-table tbody tr:hover td:not(.us) { background: rgba(255, 255, 255, .03); }
.cmp-yes, .cmp-no { display: inline-grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; }
.cmp-yes { background: rgba(63, 220, 140, .16); color: var(--good); }
.cmp-no { background: rgba(255, 107, 107, .12); color: var(--bad); }
.cmp-yes svg, .cmp-no svg { width: 16px; height: 16px; stroke-width: 2.6; }
.cmp-part { color: var(--warn); font-weight: 600; font-size: 13px; }
.cmp-text { color: var(--muted); font-size: 13px; }
.cmp-edit { width: 100%; min-width: 640px; }
.cmp-edit th, .cmp-edit td { padding: 4px; vertical-align: top; }
.cmp-edit th input { font-weight: 700; }
.cmp { min-width: 0; max-width: 100%; overflow: hidden; }
.cmp .scroll { overflow-x: auto; max-width: 100%; }
@media (max-width: 560px) { .cmp-table { min-width: 0; } .cmp-table th, .cmp-table td { padding: 10px 6px; } .cmp-table thead th { font-size: 16px; } .cmp-table tbody th { font-size: 13px; } }
.cmp-table tbody th { white-space: normal; min-width: 120px; }
.cmp .scroll { display: block; overflow-x: auto; }
.cmp-edit th button { display: block; margin-top: 4px; }
.cmp-edit td:first-child { min-width: 240px; }

/* ---------- downloads: every build with its own logo ---------- */
.dl-logo { width: 52px; height: 52px; flex: none; display: block; box-shadow: 4px 4px 0 rgba(0, 0, 0, .45); }
.dl-pick { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; margin: 0 0 22px; }
.dl-opt { display: flex; align-items: center; gap: 12px; padding: 12px 14px; background: var(--card); border: 2px solid var(--line); color: var(--fg); text-align: left; cursor: pointer; box-shadow: none; min-width: 0; }
.dl-opt:hover, .dl-opt.on { border-color: var(--accent-line); }
.dl-opt .dl-logo { width: 38px; height: 38px; box-shadow: none; }
.dl-opt span { display: grid; min-width: 0; }
.dl-opt b { font: 400 24px/1 var(--display); letter-spacing: .5px; }
.dl-opt small { color: var(--muted); font-size: 12.5px; }
.dl-opt.on small { color: var(--accent); }
.dl-name { display: flex; align-items: center; gap: 16px; }
.dl-name .dl-logo { width: 60px; height: 60px; }
.hero-builds { display: inline-flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px 14px; margin-top: 14px; color: var(--muted); font-size: 13.5px; text-decoration: none; }
.hero-builds .hb { display: inline-flex; align-items: center; gap: 7px; color: var(--fg); font-weight: 600; }
.hero-builds .dl-logo { width: 22px; height: 22px; box-shadow: none; }
.hero-builds:hover .hb { color: var(--accent); }
@media (max-width: 560px) { .dl-pick { grid-template-columns: minmax(0, 1fr); gap: 8px; } .dl-name .dl-logo { width: 46px; height: 46px; } }

/* ---------- server info ---------- */
.notice { margin: 12px 0; padding: 10px 14px; background: rgba(240, 180, 60, .1); border: 1px solid rgba(240, 180, 60, .45); color: var(--fg); font-size: 14px; }
.srv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 12px; }
.srv { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: 2px 8px; padding: 12px 14px 16px; background: var(--card2); border: 1px solid var(--line2); color: var(--fg); text-align: left; cursor: pointer; box-shadow: none; overflow: hidden; }
.srv:hover, .srv.on { border-color: var(--accent-line); }
.srv b { font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.srv > span:not(.dot) { grid-column: 2; color: var(--muted); font-size: 13px; }
.srv i { position: absolute; left: 0; bottom: 0; height: 4px; background: var(--accent); }
.srv-help { margin-top: 12px; font-size: 14px; }
.srv-help summary { cursor: pointer; color: var(--accent); }
.srv-help ol { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 6px; color: var(--muted); }
.srv-help code { background: var(--card2); padding: 1px 5px; overflow-wrap: anywhere; }
