/* Safety SMP website, design 2 (2026-11-30, Kobe: "make our website look more like that guy's website with all our cool
   features and stuff but his better design"). Clean and light, with a dark theme: Inter, a 1200 px column, white cards
   with thin borders, big tight headings, small uppercase labels with a blue square. Light / dark / system: js/theme.js
   sets data-theme on <html>; with none, the device decides. /admin keeps css/site.css. */

@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400 800; font-display: swap; src: url('/fonts/inter-400-800-latin.woff2') format('woff2'); }

:root {
  color-scheme: light;
  --bg: #f6f7f9;
  --bg-2: #eef0f3;
  --surface: #ffffff;
  --surface-2: #f3f5f8;
  --line: #e3e6eb;
  --line-2: #d3d8df;
  --text: #13161b;
  --text-2: #4a5261;
  --muted: #6b7380;
  --accent: #2569c9;
  --accent-hover: #1c55a6;
  --accent-soft: #e8f0fb;
  --accent-text: #1d5bb3;
  --ok: #1d9a4e;
  --red: #d0392f;
  --amber: #b4781a;
  --discord: #5865f2;
  --discord-hover: #4651d6;
  --dark-btn: #13161b;
  --dark-btn-hover: #2a2f38;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.05);
  --shadow-lg: 0 18px 40px rgba(16, 24, 40, 0.10);
  --radius: 12px;
  --radius-sm: 8px;
  --wrap: 1200px;
  --gut: 24px;
  --bar-h: 72px;
  --font: 'Inter', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  --mono: ui-monospace, 'Cascadia Mono', 'SF Mono', Consolas, monospace;
  /* rank colors, dark enough to read on white */
  --iron: #66717f; --gold: #a97a06; --diamond: #078d99; --netherite: #7447cf;
  --mix: #000;
}
/* the dark theme: chosen, or the device's when nothing is chosen */
:root[data-theme='dark'] {
  color-scheme: dark;
  --bg: #0b0d11; --bg-2: #0f1217; --surface: #12161c; --surface-2: #181d25; --line: #232933; --line-2: #313947;
  --text: #eef1f5; --text-2: #b3bbc7; --muted: #8790a0;
  --accent: #5a9bf0; --accent-hover: #80b3f5; --accent-soft: #15223a; --accent-text: #80b3f5;
  --ok: #3fbf6a; --red: #f0625a; --amber: #e3b341;
  --dark-btn: #eef1f5; --dark-btn-hover: #ffffff;
  --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
  --iron: #d8dde3; --gold: #f2c12e; --diamond: #4ee0e6; --netherite: #b48cf0;
  --mix: #fff;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    color-scheme: dark;
    --bg: #0b0d11; --bg-2: #0f1217; --surface: #12161c; --surface-2: #181d25; --line: #232933; --line-2: #313947;
    --text: #eef1f5; --text-2: #b3bbc7; --muted: #8790a0;
    --accent: #5a9bf0; --accent-hover: #80b3f5; --accent-soft: #15223a; --accent-text: #80b3f5;
    --ok: #3fbf6a; --red: #f0625a; --amber: #e3b341;
    --dark-btn: #eef1f5; --dark-btn-hover: #ffffff;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3); --shadow-lg: 0 18px 40px rgba(0, 0, 0, 0.45);
    --iron: #d8dde3; --gold: #f2c12e; --diamond: #4ee0e6; --netherite: #b48cf0;
    --mix: #fff;
  }
}

/* rank colors and their blocks (lib/tiers.js, tools/make-icon.js) */
.tier-iron { --tier: var(--iron); --tier-block: url('/img/block-iron.png'); }
.tier-gold { --tier: var(--gold); --tier-block: url('/img/block-gold.png'); }
.tier-diamond { --tier: var(--diamond); --tier-block: url('/img/block-diamond.png'); }
.tier-netherite { --tier: var(--netherite); --tier-block: url('/img/block-netherite.png'); }
.tier-tag, .tn[class*='tier-'], b[class*='tier-'] { color: var(--tier); }
/* staff titles: Minecraft's 16 chat colors (server.js staffTitle picks the nearest). On light surfaces they're mixed
   toward black so white and yellow still read; the player list is a dark panel in both themes and uses them as they are. */
.mc-black { --mc: #000000; } .mc-dark-blue { --mc: #0000aa; } .mc-dark-green { --mc: #00aa00; } .mc-dark-aqua { --mc: #00aaaa; }
.mc-dark-red { --mc: #aa0000; } .mc-dark-purple { --mc: #aa00aa; } .mc-gold { --mc: #ffaa00; } .mc-gray { --mc: #aaaaaa; }
.mc-dark-gray { --mc: #555555; } .mc-blue { --mc: #5555ff; } .mc-green { --mc: #55ff55; } .mc-aqua { --mc: #55ffff; }
.mc-red { --mc: #ff5555; } .mc-light-purple { --mc: #ff55ff; } .mc-yellow { --mc: #ffff55; } .mc-white { --mc: #ffffff; }
[class*='mc-'] { --tier: color-mix(in oklab, var(--mc) 62%, var(--text)); }
.tab-list [class*='mc-'] { --tier: var(--mc); }
.swatch { flex: none; display: inline-block; width: 24px; height: 24px; background: var(--tier) var(--tier-block) center / 100% 100% no-repeat; border-radius: 3px; image-rendering: pixelated; }

/* ------------------------------------------------------------------------------------------------ base */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; font-feature-settings: 'cv11', 'ss01'; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
h1, h2, h3, p, figure, ol, ul, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 14px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 600; }
.skip:focus { top: 12px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; }
code { padding: 1px 6px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface-2); color: var(--text); font: 500 0.88em/1.4 var(--mono); white-space: nowrap; }

/* small uppercase label with a blue square, above headings */
.eyebrow { display: flex; align-items: center; gap: 9px; color: var(--muted); font: 600 12px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.eyebrow::before { content: ''; flex: none; width: 7px; height: 7px; background: var(--accent); }
.h-section { margin-top: 12px; font: 700 clamp(30px, 3.4vw, 46px)/1.08 var(--font); letter-spacing: -0.035em; }
.lead { margin-top: 14px; max-width: 62ch; color: var(--text-2); font-size: clamp(16px, 1.2vw, 18px); line-height: 1.6; }
.muted { color: var(--muted); }
.arrow-link { display: inline-flex; align-items: center; gap: 8px; color: var(--text); font-weight: 600; font-size: 15px; text-decoration: none; }
.arrow-link::after { content: '\2192'; transition: transform 0.15s ease; }
.arrow-link:hover::after { transform: translateX(3px); }
.ext::after { content: '\2197'; }

/* ------------------------------------------------------------------------------------------------ buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 15px/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease; }
.btn-go, .btn-accent { background: var(--accent); color: #fff; }
.btn-go:hover, .btn-accent:hover { background: var(--accent-hover); }
.btn-dark { background: var(--dark-btn); color: var(--bg); }
.btn-dark:hover { background: var(--dark-btn-hover); }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--text); box-shadow: var(--shadow); }
.btn-line:hover { border-color: var(--muted); }
.btn-lg { min-height: 52px; padding: 0 24px; font-size: 16px; }
.btn-sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn-block { width: 100%; min-height: 48px; }
.btn:disabled, .btn[aria-disabled='true'] { opacity: 0.55; cursor: default; }
.btn-discord { background: var(--discord); color: #fff; }
.btn-discord:hover { background: var(--discord-hover); }
/* the address: copies when clicked (js/common.js [data-copy]) */
.ip { display: inline-flex; align-items: stretch; min-height: 48px; max-width: 100%; padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-align: left; text-decoration: none; cursor: pointer; overflow: hidden; }
.ip-addr { display: flex; align-items: center; min-width: 0; padding: 0 14px; font: 600 15px/1.25 var(--font); }
.copy-label { flex: none; display: flex; align-items: center; padding: 0 14px; border-left: 1px solid var(--line); color: var(--accent-text); font: 600 13px/1 var(--font); }
.ip:hover { border-color: var(--muted); }
.ip.copied .copy-label { background: var(--accent); color: #fff; border-left-color: var(--accent); }
.ip-sm { min-height: 40px; width: 100%; }
.ip-sm .ip-addr { flex: 1; padding: 6px 12px; font-size: 14px; }
.ip-sm .copy-label { font-size: 12px; }

/* ------------------------------------------------------------------------------------------------ header */
.hdr { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 88%, transparent); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.hdr-in { display: flex; align-items: center; gap: 28px; height: var(--bar-h); }
.logo { flex: none; display: block; line-height: 0; }
.logo img { display: block; width: 210px; height: 36px; image-rendering: pixelated; } /* its own pixel size: pixel art stays sharp */
.nav { display: flex; align-self: stretch; gap: 2px; }
.nav a { display: flex; align-items: center; padding: 0 11px; color: var(--muted); font: 500 14px/1 var(--font); text-decoration: none; white-space: nowrap; box-shadow: inset 0 -2px 0 transparent; transition: color 0.15s ease; }
.nav a:hover { color: var(--text); }
.nav a[aria-current='page'] { color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.hdr-right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.live { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font: 500 13px/1 var(--font); white-space: nowrap; text-decoration: none; }
.live:hover { color: var(--text); }
.dot, .live i { flex: none; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
[data-state='online'] > .dot, .live[data-state='online'] i, .dot[data-state='online'] { background: var(--ok); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ok) 22%, transparent); }
[data-state='offline'] > .dot, .live[data-state='offline'] i, .dot[data-state='offline'] { background: var(--red); }
.theme { display: inline-flex; gap: 2px; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.theme button { display: grid; place-items: center; width: 30px; height: 28px; padding: 0; border: 0; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.theme button:hover { color: var(--text); }
.theme button[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.theme svg { width: 16px; height: 16px; }
/* the phone menu: below 1100 px */
.menu { position: relative; display: none; }
.menu > summary { list-style: none; user-select: none; }
.menu > summary::-webkit-details-marker { display: none; }
.menu-list { position: absolute; right: 0; top: calc(100% + 12px); z-index: 60; display: grid; min-width: 240px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow-lg); }
.menu-list a { padding: 12px 14px; border-radius: var(--radius-sm); color: var(--text-2); font: 500 15px/1 var(--font); text-decoration: none; }
.menu-list a:hover { background: var(--surface-2); color: var(--text); }
.menu-list a[aria-current='page'] { color: var(--text); background: var(--accent-soft); }

/* ------------------------------------------------------------------------------------------------ footer */
.ftr { margin-top: 96px; border-top: 1px solid var(--line); background: var(--bg); }
.ftr-top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; padding: 56px 0 40px; }
.ftr-brand p { margin-top: 14px; max-width: 34ch; color: var(--muted); font-size: 14px; }
.ftr-brand .ip { margin-top: 18px; }
.ftr-col { display: grid; align-content: start; gap: 10px; }
.ftr-col h2 { margin-bottom: 4px; color: var(--text); font: 600 14px/1.2 var(--font); }
.ftr-col a { color: var(--muted); font-size: 14px; text-decoration: none; }
.ftr-col a:hover { color: var(--text); }
.ftr-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding: 20px 0 32px; border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------------------------------------ page heads */
.phead { padding: clamp(48px, 7vw, 96px) 0 clamp(28px, 3vw, 44px); }
.phead h1 { margin-top: 14px; font: 700 clamp(40px, 5.4vw, 72px)/1.02 var(--font); letter-spacing: -0.045em; }
.phead .lead { font-size: clamp(16px, 1.3vw, 19px); }
.phead-row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px 32px; }
.phead-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumbs { display: flex; gap: 8px; color: var(--muted); font: 500 13px/1.2 var(--font); }
.crumbs a { color: var(--accent-text); text-decoration: none; }
.crumbs a:hover { text-decoration: underline; }

/* ------------------------------------------------------------------------------------------------ layout + cards */
.page { width: min(var(--wrap), 100% - 2 * var(--gut)); margin-inline: auto; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.col-main { display: grid; gap: 24px; min-width: 0; }
.col-side { position: sticky; top: calc(var(--bar-h) + 20px); display: grid; gap: 20px; }
.post, .box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.post-body { display: grid; gap: 16px; padding: clamp(22px, 2.4vw, 36px); }
.post h2, .box h2, .post-h { font: 700 clamp(20px, 1.6vw, 24px)/1.2 var(--font); letter-spacing: -0.02em; }
.post p { max-width: 70ch; color: var(--text-2); font-size: 16px; }
.post strong { color: var(--text); font-weight: 600; }
.post-shot { aspect-ratio: 21 / 8; overflow: hidden; border-bottom: 1px solid var(--line); }
.post-shot img { width: 100%; height: 100%; object-fit: cover; }
.box { display: grid; gap: 14px; padding: 22px; }
.box > .btn:not(.btn-block) { justify-self: start; }
.box p, .box-note { color: var(--text-2); font-size: 15px; }
.box p a { color: var(--accent-text); font-weight: 600; }
.box-go { border-top: 3px solid var(--accent); }
.post-line { padding: 18px 24px; }
.post-line p { font-size: 15px; }
.post-line a, .post p a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; }

/* facts lists (status, join) */
.facts { display: grid; }
.facts > div { display: grid; grid-template-columns: 88px minmax(0, 1fr); align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.facts > div:last-child { border-bottom: 0; }
.facts dt { color: var(--muted); font: 500 13px/1 var(--font); }
.facts dd { font-weight: 600; font-size: 14px; min-width: 0; }
.state { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 6px 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--surface-2); color: var(--muted); font: 600 13px/1 var(--font); }
.state::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--muted); }
.state[data-state='online'] { color: var(--ok); }
.state[data-state='online']::before { background: var(--ok); }
.state[data-state='offline'] { color: var(--red); }
.state[data-state='offline']::before { background: var(--red); }

/* the player list: the game's own TAB look, a dark panel in both themes */
.tab-list { display: grid; gap: 2px; padding: 6px; border-radius: var(--radius-sm); background: #1b1e24; color: #eef1f5; }
.tab-row { display: flex; align-items: center; gap: 0.5em; min-height: 36px; padding: 3px 10px 3px 3px; border-radius: 4px; background: rgba(255, 255, 255, 0.06); font: 500 14px/1 var(--font); white-space: nowrap; overflow: hidden; }
.tab-list .tier-iron { --tier: #d8dde3; } .tab-list .tier-gold { --tier: #f2c12e; } .tab-list .tier-diamond { --tier: #4ee0e6; } .tab-list .tier-netherite { --tier: #b48cf0; }
.tab-row .face { flex: none; width: 28px; height: 28px; border-radius: 3px; background: #343c48; image-rendering: pixelated; }
.tab-row .tier-tag { flex: none; font-weight: 700; }
.tn { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.ts { color: #5c6470; }
.stat { color: #b3bbc7; }
.tab-more { padding: 8px 10px; color: #8790a0; font-size: 13px; }
.tab-empty { padding: 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); color: var(--muted); font-size: 14px; }
.skull { flex: none; display: inline-block; width: 0.8em; height: 0.8em; background: #b3bbc7;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h5v1h-5zM0 1h7v1h-7zM0 2h1v2h-1zM3 2h1v2h-1zM6 2h1v2h-1zM0 4h3v1h-3zM4 4h3v1h-3zM1 5h5v1h-5zM1 6h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 7 7' shape-rendering='crispEdges'%3E%3Cpath d='M1 0h5v1h-5zM0 1h7v1h-7zM0 2h1v2h-1zM3 2h1v2h-1zM6 2h1v2h-1zM0 4h3v1h-3zM4 4h3v1h-3zM1 5h5v1h-5zM1 6h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1z' fill='black'/%3E%3C/svg%3E") center / contain no-repeat; }
.ping { flex: none; display: inline-flex; align-items: flex-end; gap: 2px; height: 0.9em; margin-left: auto; padding-left: 0.8em; }
.ping i { width: 3px; background: #3cdc3c; }
.ping i:nth-child(1) { height: 20%; } .ping i:nth-child(2) { height: 40%; } .ping i:nth-child(3) { height: 60%; } .ping i:nth-child(4) { height: 80%; } .ping i:nth-child(5) { height: 100%; }
.ping[data-lit='4'] i:nth-child(n+5), .ping[data-lit='3'] i:nth-child(n+4), .ping[data-lit='2'] i:nth-child(n+3),
.ping[data-lit='1'] i:nth-child(n+2), .ping[data-lit='0'] i { background: #3b424d; }

/* the four ranks in a list (home, supporters) */
.tier-list { display: grid; gap: 6px; }
.tier-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); }
.tier-list b { color: var(--tier); font: 700 16px/1 var(--font); }
.tier-list span { margin-left: auto; color: var(--text-2); font-size: 14px; font-weight: 500; white-space: nowrap; }

/* the monthly goal (lib/goal.js): a segmented bar */
.goal-num { color: var(--text-2); font: 500 15px/1.2 var(--font); }
.goal-num b { color: var(--text); font-size: 32px; font-weight: 700; letter-spacing: -0.03em; }
.goal-bar { display: grid; grid-template-columns: repeat(20, minmax(0, 1fr)); gap: 3px; }
.goal-bar i { height: 12px; border-radius: 2px; background: var(--line); }
.goal-bar i.on { background: var(--accent); }
.goal-note { color: var(--muted); font-size: 14px; }

/* command tables (home, /ranks perks) */
.ref { width: 100%; border-collapse: collapse; font-size: 14px; }
.ref th, .ref td { padding: 10px 12px; text-align: left; vertical-align: baseline; border-bottom: 1px solid var(--line); }
.ref tr:last-child th, .ref tr:last-child td { border-bottom: 0; }
.ref th { width: 1%; color: var(--accent-text); font: 500 13px/1.4 var(--mono); white-space: nowrap; }
.ref td { color: var(--text-2); }

/* screenshots + the viewer (js/home.js) */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.shot { position: relative; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.shot img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.shot:hover img { transform: scale(1.03); }
.shot span { position: absolute; left: 8px; bottom: 8px; padding: 5px 9px; border-radius: 6px; background: rgba(12, 14, 18, 0.78); color: #eef1f5; font: 500 12px/1.2 var(--font); }
.g1 { grid-column: span 4; aspect-ratio: 21 / 9; }
.viewer { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(9, 11, 14, 0.96); color: #eef1f5; }
.viewer::backdrop { background: rgba(0, 0, 0, 0.7); }
.viewer-fig { position: absolute; inset: 72px 84px 24px; display: grid; grid-template-rows: minmax(0, 1fr) auto; gap: 12px; }
.viewer-img { width: 100%; height: 100%; object-fit: contain; }
.viewer-cap { color: #b3bbc7; font-weight: 500; text-align: center; }
.viewer-btn { position: absolute; width: 48px; height: 48px; border: 1px solid #313947; border-radius: 50%; background: #181d25; color: #eef1f5; font: 500 22px/1 var(--font); cursor: pointer; }
.viewer-btn:hover { background: var(--accent); border-color: var(--accent); }
.viewer-prev { left: 16px; top: 50%; transform: translateY(-50%); }
.viewer-next { right: 16px; top: 50%; transform: translateY(-50%); }
.viewer-close { right: 16px; top: 16px; }

/* ------------------------------------------------------------------------------------------------ home */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.hero-media { position: absolute; inset: 0 0 0 30%; }
.hero-media img, .hero-media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.hero-media::after { content: ''; position: absolute; inset: 0; background:
  linear-gradient(90deg, var(--bg) 0%, color-mix(in srgb, var(--bg) 78%, transparent) 22%, color-mix(in srgb, var(--bg) 18%, transparent) 55%, transparent 80%),
  linear-gradient(0deg, var(--bg) 0%, transparent 28%), linear-gradient(180deg, color-mix(in srgb, var(--bg) 55%, transparent) 0%, transparent 22%); }
@media (prefers-reduced-motion: reduce) { .hero-media video { display: none; } }
.hero-in { position: relative; display: grid; grid-template-columns: minmax(0, 640px) 1fr; align-items: end; min-height: clamp(600px, 86vh, 820px); padding: clamp(72px, 10vh, 120px) 0 56px; }
.hero-text { display: grid; align-content: center; gap: 0; align-self: center; }
.hero h1 { margin-top: 20px; font: 700 clamp(46px, 6.6vw, 92px)/0.98 var(--font); letter-spacing: -0.05em; }
.hero h1 span { display: block; }
.h-muted { color: color-mix(in srgb, var(--text) 52%, var(--bg)); }
.hero .lead { margin-top: 26px; font-size: clamp(17px, 1.3vw, 19px); color: var(--text-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 30px; }
.addr { display: inline-flex; align-items: center; gap: 12px; min-height: 56px; padding: 8px 18px 8px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); box-shadow: var(--shadow); color: var(--text); text-align: left; cursor: pointer; }
.addr:hover { border-color: var(--muted); }
.addr b { display: block; font: 600 15px/1.2 var(--font); }
.addr .copy-label { display: block; padding: 0; border: 0; color: var(--muted); font: 500 12px/1.4 var(--font); }
.addr.copied { border-color: var(--accent); }
.addr.copied .copy-label { background: none; color: var(--accent-text); }
.btn-tall { min-height: 56px; padding: 8px 18px; gap: 12px; text-align: left; }
.btn-tall b { display: block; font: 600 15px/1.2 var(--font); }
.btn-tall small { display: block; opacity: 0.85; font: 500 12px/1.4 var(--font); }
.btn-tall svg { width: 22px; height: 22px; fill: currentColor; }
.hero-note { margin-top: 16px; color: var(--muted); font-size: 13px; }
.hero-note a { color: var(--text-2); }
.hero-figs { margin-top: 28px; }
.hero-figs .figs { justify-content: start; }
.hero-down { display: inline-flex; align-items: center; gap: 8px; margin-top: 36px; color: var(--muted); font-size: 14px; text-decoration: none; }
.hero-down::after { content: '\2193'; }
.hero-down:hover { color: var(--text); }
.hero-card { justify-self: end; display: grid; gap: 4px; padding: 14px 18px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: color-mix(in srgb, var(--surface) 92%, transparent); box-shadow: var(--shadow-lg); text-decoration: none; backdrop-filter: blur(8px); }
.hero-card small { color: var(--muted); font-size: 12px; }
.hero-card b { display: flex; align-items: center; gap: 24px; justify-content: space-between; font-weight: 600; font-size: 15px; }
.hero-card b::after { content: '\2197'; }
.hero-card:hover { border-color: var(--line-2); }

/* the supporters standing in a row (lib/skins.js): Kobe2 on his red block in the exact middle, supporters on both sides */
.figs { position: relative; display: inline-grid; grid-template-columns: 1fr auto 1fr; align-items: end; max-width: 100%; text-decoration: none; }
.figs-side { display: flex; align-items: flex-end; }
.figs-l { flex-direction: row-reverse; justify-self: end; }
.figs-r { justify-self: start; }
.figs .fig { flex: none; display: block; margin: 0 -4px; image-rendering: pixelated; }
.figs .fig-dev { margin: 0; }
.fig-more { position: absolute; left: 100%; bottom: 4px; display: none; place-items: center; min-width: 40px; height: 32px; margin-left: 10px; padding: 0 8px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--text); font: 600 13px/1 var(--font); box-shadow: var(--shadow); }
.fig-more-0 { display: grid; }
@media (max-width: 1099px) { .figs-side .fig:nth-of-type(n+6) { display: none; } .fig-more-0 { display: none; } .fig-more-1 { display: grid; } }
@media (max-width: 699px) { .figs-side .fig:nth-of-type(n+3) { display: none; } .fig-more-1 { display: none; } .fig-more-2 { display: grid; } }

/* the status strip under the hero */
.sstrip { border-bottom: 1px solid var(--line); }
.sstrip-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 24px; padding: 18px 0; color: var(--text-2); font-size: 14px; }
.sstrip-in > a { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.sstrip-in > span { display: inline; }
.perks th { color: var(--text); font: 600 14px/1.4 var(--font); }
.theme-menu { display: flex; justify-content: space-between; margin: 6px 6px 2px; }
.theme-menu button { flex: 1; width: auto; }
@media (min-width: 700px) { .theme-menu { display: none; } }
.sstrip-in b { color: var(--text); font-weight: 600; }
.sstrip-in b.ok { color: var(--ok); }
.sstrip-in a:hover { color: var(--text); }

.sec { padding: clamp(64px, 9vw, 112px) 0 0; }
.sec-head { max-width: 760px; }
.features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.feature { display: grid; align-content: start; gap: 12px; padding-top: 24px; border-top: 1px solid var(--line-2); }
.feature-top { display: flex; align-items: center; justify-content: space-between; color: var(--muted); }
.feature-top svg { width: 22px; height: 22px; color: var(--text-2); }
.feature-top span { font: 500 11px/1 var(--mono); }
.feature h3 { margin-top: 10px; font: 600 19px/1.25 var(--font); letter-spacing: -0.02em; }
.feature p { color: var(--text-2); font-size: 15px; }
.links-row { display: flex; flex-wrap: wrap; gap: 14px 36px; margin-top: 40px; }

.cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.card { display: grid; grid-template-rows: auto 1fr; padding: 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.card:hover { border-color: var(--line-2); box-shadow: var(--shadow-lg); }
.card-img { aspect-ratio: 16 / 9; overflow: hidden; border-radius: 9px; background: var(--surface-2); }
.card-img img { width: 100%; height: 100%; object-fit: cover; }
.card-body { display: grid; align-content: start; gap: 10px; padding: 18px 14px 12px; }
.card-date { color: var(--muted); font-size: 12px; }
.card h3 { font: 700 19px/1.3 var(--font); letter-spacing: -0.02em; }
.card p { color: var(--text-2); font-size: 14px; line-height: 1.65; }
.card .arrow-link { margin-top: 6px; font-size: 14px; }

.split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 40px; align-items: start; margin-top: 40px; }
.video-card { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #000; box-shadow: var(--shadow); }
.video-card video { display: block; width: 100%; height: auto; aspect-ratio: 16 / 9; background: #000; }
.prose { display: grid; gap: 14px; }
.prose p { color: var(--text-2); }
.prose strong { color: var(--text); font-weight: 600; }
.gallery-wide { margin-top: 24px; }
.how { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; margin-top: 40px; }
.how .post-body > p { font-size: 15px; }
.cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 24px 48px; margin-top: clamp(64px, 9vw, 112px); padding-top: 56px; border-top: 1px solid var(--line); }
.cta-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; }

/* ------------------------------------------------------------------------------------------------ /ranks, /link */
.steps { display: grid; }
.step { display: grid; gap: 14px; padding: clamp(22px, 2.4vw, 32px); border-top: 1px solid var(--line); transition: opacity 0.2s ease; container-type: inline-size; }
.step:first-child { border-top: 0; }
.step h2 { display: flex; align-items: center; gap: 12px; font: 700 20px/1.2 var(--font); letter-spacing: -0.02em; }
.step-n { flex: none; display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--line-2); border-radius: 50%; background: var(--surface-2); color: var(--text-2); font: 600 14px/1 var(--font); }
.step[data-state='active'] .step-n { border-color: var(--accent); background: var(--accent); color: #fff; }
.step[data-state='done'] .step-n { border-color: var(--ok); background: transparent; color: var(--ok); }
.step[data-state='done'] h2::after { content: 'Done'; padding: 4px 8px; border-radius: 999px; background: color-mix(in srgb, var(--ok) 14%, transparent); color: var(--ok); font: 600 11px/1 var(--font); letter-spacing: 0.04em; text-transform: uppercase; }
.step[data-state='todo'] { opacity: 0.45; }
.edition { display: inline-flex; flex-wrap: wrap; gap: 2px; justify-self: start; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); }
.ed { min-width: 110px; min-height: 38px; padding: 0 16px; border: 0; border-radius: 7px; background: none; color: var(--muted); font: 600 14px/1 var(--font); cursor: pointer; }
.ed:hover { color: var(--text); }
.ed[aria-pressed='true'] { background: var(--surface); color: var(--text); box-shadow: var(--shadow); }
.tiers { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 720px) { .tiers { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tier { display: grid; align-content: start; gap: 12px; min-width: 0; padding: 16px; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--surface); color: var(--text); font: inherit; text-align: left; cursor: pointer; transition: border-color 0.15s ease, box-shadow 0.15s ease; }
.tier:hover { border-color: var(--muted); }
.tier[aria-pressed='true'] { border-color: var(--tier); box-shadow: 0 0 0 1px var(--tier), var(--shadow-lg); }
.tier-head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.tier .swatch { width: 28px; height: 28px; }
.tier-name { min-width: 0; color: var(--tier); font: 700 18px/1.1 var(--font); }
/* the name as it looks in game: a dark chat line in both themes, so the rank colors are the game's own */
.tier-preview { min-width: 0; padding: 7px 10px; border-radius: 6px; background: #1b1e24; color: var(--tier); font: 500 14px/1.25 var(--font); overflow-wrap: anywhere; }
.tier-iron .tier-preview { --tier: #d8dde3; } .tier-gold .tier-preview { --tier: #f2c12e; } .tier-diamond .tier-preview { --tier: #4ee0e6; } .tier-netherite .tier-preview { --tier: #b48cf0; }
.tier-price { color: var(--muted); font: 500 14px/1 var(--font); }
.tier-price b { margin-right: 3px; color: var(--text); font: 700 26px/1 var(--font); letter-spacing: -0.03em; }
@container (max-width: 459px) { .tier { gap: 10px; padding: 12px; } .tier .swatch { width: 22px; height: 22px; } .tier-name { font-size: 16px; } .tier-preview { padding: 6px 8px; font-size: 13px; } .tier-price b { font-size: 22px; } }
.perks-h { font: 600 15px/1.2 var(--font); }
.perks { max-width: none; }
.field { display: flex; flex-wrap: wrap; gap: 10px; }
.field input, .field select, .wiki-search input { flex: 1 1 240px; min-width: 0; height: 48px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font: 500 16px/1 var(--font); box-shadow: var(--shadow); }
.field select { flex: 0 0 auto; padding: 0 10px; }
.field input::placeholder, .wiki-search input::placeholder { color: var(--muted); }
.field input:focus, .field select:focus, .wiki-search input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
.field .btn { min-height: 48px; }
.money { position: relative; flex: 1 1 200px; display: flex; max-width: 360px; }
.money span { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 600; pointer-events: none; }
.field .money input { padding-left: 30px; }
.who { display: flex; align-items: center; gap: 14px; }
.who canvas { flex: none; width: 44px; height: 44px; border-radius: 6px; background: var(--line-2); image-rendering: pixelated; }
.who > div { display: grid; gap: 4px; min-width: 0; }
.who > div > b { font: 700 22px/1.1 var(--font); letter-spacing: -0.02em; overflow-wrap: anywhere; }
.linkbtn { padding: 6px 0; border: 0; background: none; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.hint, .step .hint { color: var(--muted); font-size: 14px; }
.step .hint a { color: var(--text-2); text-underline-offset: 3px; }
.msg { font-weight: 600; font-size: 15px; }
.msg:empty { display: none; }
.msg.err { color: var(--red); }
.msg.ok { color: var(--ok); }
.mockpay { display: grid; gap: 12px; }
.mockpay p { color: var(--text-2); }
.done { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--accent); color: #fff; font-weight: 600; }
.step .ip { justify-self: start; }
.pay-sum { color: var(--text-2); }
.pay-sum:empty { display: none; }
.pay-sum b { color: var(--text); font-weight: 700; }
#pay:empty { display: none; }
/* PayPal's frame: a light page; light color-scheme keeps its backdrop clear; js/ranks.js adds .pay-open for the card form */
#pay { max-width: 750px; color-scheme: light; }
#pay.pay-open { padding: 16px; border-radius: var(--radius-sm); background: #f4f6f8; }
.result { display: flex; align-items: center; gap: 14px; }
.result canvas { width: 40px; height: 40px; border-radius: 6px; background: var(--line-2); image-rendering: pixelated; }
.result > div > b { display: block; font-size: 17px; }
.st { color: var(--muted); font-size: 14px; }
.st.on { color: var(--ok); }
.st.wait { color: var(--amber); }
.who-line { color: var(--text-2); }
.who-line b { color: var(--text); }
.step .btn-discord { justify-self: start; }
.discord-hint { color: var(--muted); font-size: 14px; }
.discord-hint a, .done-note a { color: var(--accent-text); font-weight: 600; text-underline-offset: 3px; overflow-wrap: anywhere; }
#check-out .discord-hint { margin-top: 10px; }
.done-more { display: grid; gap: 8px; }
.done-note { color: var(--text-2); }
.done-note b:not([class]) { color: var(--text); }

/* ------------------------------------------------------------------------------------------------ /supporters */
.money-table { width: 100%; border-collapse: collapse; }
.money-table th, .money-table td { padding: 11px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.money-table th { color: var(--text-2); font: 500 14px/1.3 var(--font); white-space: nowrap; }
.money-table td { width: 1%; color: var(--text); font: 700 17px/1.2 var(--font); text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.money-table td.sub { width: auto; color: var(--muted); font: 400 14px/1.3 var(--font); text-align: left; white-space: normal; }
.money-table td.sub a { color: var(--text-2); text-underline-offset: 3px; }
.goal-bar-lg i { height: 16px; }
.month-status { color: var(--text-2); }
.month-status.ok b { color: var(--ok); }
.month-status.short b { color: var(--amber); }
.ledger { width: 100%; border-collapse: collapse; font-size: 14px; }
.ledger th, .ledger td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: baseline; }
.ledger thead th { color: var(--muted); font: 600 12px/1.2 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.ledger td { color: var(--text-2); }
.ledger .num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ledger td.num { color: var(--text); font-weight: 600; }
.ledger .player { color: var(--text); font-weight: 600; white-space: nowrap; }
.ledger .player .head { display: inline-block; width: 22px; height: 22px; margin-right: 10px; border-radius: 3px; vertical-align: -5px; image-rendering: pixelated; }
.ledger .head-none { background: var(--line-2); }
.ledger .tier-tag { font-weight: 600; white-space: nowrap; }
.ledger tfoot th, .ledger tfoot td { border-top: 1px solid var(--line-2); border-bottom: 0; color: var(--text); font-weight: 700; }
.costs-table .note { display: block; color: var(--muted); font-size: 13px; }

/* ------------------------------------------------------------------------------------------------ /join */
.editions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: 24px; }
.facts-join > div { grid-template-columns: 88px minmax(0, 1fr); }

/* ------------------------------------------------------------------------------------------------ /map */
.map-box { overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #05070a; box-shadow: var(--shadow-lg); }
.map-frame { display: block; width: 100%; height: clamp(480px, calc(100svh - var(--bar-h) - 260px), 960px); border: 0; background: #05070a; }
.map-wait { display: grid; place-content: center; gap: 10px; min-height: clamp(360px, 50vh, 600px); padding: 32px; background: var(--surface); text-align: center; }
.map-wait h2 { font: 700 26px/1.2 var(--font); letter-spacing: -0.02em; }
.map-wait p { max-width: 52ch; color: var(--text-2); }
.map-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 48px; }
.map-facts .feature p { font-size: 15px; }
.map-more { margin-top: 32px; }

/* ------------------------------------------------------------------------------------------------ /leaderboards (lib/boards.js) */
.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); gap: 24px; align-items: start; }
.board { border-radius: var(--radius); }
.board-head { display: flex; align-items: center; gap: 10px; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.board-head h2 { font: 600 16px/1.2 var(--font); letter-spacing: -0.01em; }
.board-head h2::before { content: ''; display: inline-block; width: 7px; height: 7px; margin-right: 10px; vertical-align: 2px; background: var(--accent); }
.board-head p { margin-left: auto; color: var(--muted); font: 500 12px/1 var(--font); white-space: nowrap; }
.lb-list { display: grid; padding: 4px 8px 8px; }
.lb-row { display: grid; grid-template-columns: 26px 30px minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 58px; padding: 8px 8px; border-bottom: 1px solid var(--line); }
.lb-row:last-child { border-bottom: 0; }
.lb-pos { color: var(--muted); font: 500 13px/1 var(--font); text-align: center; font-variant-numeric: tabular-nums; }
.lb-1 .lb-pos, .lb-2 .lb-pos, .lb-3 .lb-pos { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 6px; font-weight: 700; }
.lb-1 .lb-pos { background: #f2c12e; color: #2b2000; }
.lb-2 .lb-pos { background: #d6dbe2; color: #1b1f25; }
.lb-3 .lb-pos { background: #d89a5b; color: #2a1606; }
.lb-row .head { width: 30px; height: 30px; border-radius: 5px; image-rendering: pixelated; background: var(--line-2); }
.lb-who { display: grid; gap: 3px; min-width: 0; }
.lb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 15px/1.2 var(--font); }
.lb-sub { color: var(--tier, var(--muted)); font: 500 12px/1 var(--font); }
.lb-val { color: var(--text); font: 600 14px/1 var(--font); white-space: nowrap; font-variant-numeric: tabular-nums; }
.lb-empty { padding: 22px; color: var(--muted); }
.lb-note { margin-top: 20px; color: var(--muted); font-size: 13px; }
.lb-wait p { color: var(--text-2); }

/* ------------------------------------------------------------------------------------------------ /wiki (lib/wiki.js) */
.first-steps { display: grid; grid-template-columns: 220px repeat(3, minmax(0, 1fr)); gap: 24px; padding: 28px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.first-steps > h2 { font: 600 18px/1.3 var(--font); letter-spacing: -0.02em; }
.first-steps > h2 small { display: block; margin-bottom: 6px; color: var(--muted); font: 600 11px/1.2 var(--font); letter-spacing: 0.12em; text-transform: uppercase; }
.first-list { display: contents; }
.first-step { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; column-gap: 10px; row-gap: 6px; align-content: start; text-decoration: none; }
.first-n { grid-row: 1 / span 2; align-self: start; }
.item { flex: none; width: 32px; height: 32px; image-rendering: pixelated; }
.first-n .item { width: 48px; height: 48px; padding: 6px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface); box-sizing: content-box; }
.wiki-group > h2, #cmd-h, #sec-h { display: flex; align-items: center; gap: 10px; }
.wiki-side .item { width: 32px; height: 32px; margin: -4px 0; }
.wiki-side .item + span { flex: 1; }
.first-step b { font: 600 15px/1.4 var(--font); }
.first-step b + span { grid-column: 2; color: var(--muted); font-size: 13px; line-height: 1.5; }
.first-step::after { content: '\2192'; grid-row: 1; grid-column: 3; color: var(--muted); }
.first-step:hover b { color: var(--accent-text); }
.wiki-page { margin-top: 40px; }
.wiki-search input { width: 100%; height: 52px; }
.wiki-none { padding: 14px 16px; border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); }
.wiki-group { display: grid; gap: 14px; }
.wiki-group > h2 { margin-top: 12px; font: 700 22px/1.2 var(--font); letter-spacing: -0.02em; }
.wiki-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.wiki-card { display: grid; align-content: start; gap: 6px; padding: 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); text-decoration: none; transition: border-color 0.15s ease; }
.wiki-card:hover { border-color: var(--accent); }
.wiki-card b { font: 600 16px/1.3 var(--font); letter-spacing: -0.01em; }
.wiki-card span { color: var(--text-2); font-size: 14px; line-height: 1.5; }
.wiki-side { display: grid; gap: 2px; }
.wiki-side a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 14px; font-weight: 500; text-decoration: none; }
.wiki-side a:hover { background: var(--surface-2); color: var(--text); }
.wiki-side a[aria-current='page'] { background: var(--accent-soft); color: var(--accent-text); }
.wiki-side b { color: var(--muted); font: 500 12px/1 var(--font); }
.wiki-article .post-body { gap: 14px; }
.wiki-article .post-body > h2 { margin-top: 10px; font-size: 20px; }
.wiki-article .post-body > p { font-size: 16px; }
.wiki-steps { display: grid; gap: 8px; max-width: 70ch; counter-reset: step; }
.wiki-steps li { position: relative; padding: 10px 14px 10px 50px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--text-2); counter-increment: step; }
.wiki-steps li::before { content: counter(step); position: absolute; left: 12px; top: 10px; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; background: var(--accent); color: #fff; font: 600 12px/1 var(--font); }
.wiki-tip, .rule-tip { max-width: 70ch; padding: 14px 16px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--text-2); }
.wiki-tip b, .rule-tip b { margin-right: 8px; color: var(--accent-text); font: 600 12px/1 var(--font); letter-spacing: 0.06em; text-transform: uppercase; }
.wiki-steps a, .rule-tip a { color: var(--accent-text); font-weight: 600; }
.wiki-cmds { display: grid; gap: 8px; }
.wiki-cmds code { white-space: normal; }
.wiki-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.wiki-pager a { display: grid; gap: 4px; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); text-decoration: none; }
.wiki-pager a:hover { border-color: var(--accent); }
.wiki-pager span { color: var(--muted); font: 500 12px/1 var(--font); }
.wiki-pager b { font: 600 16px/1.3 var(--font); }
.wiki-next { grid-column: 2; text-align: right; }

/* ------------------------------------------------------------------------------------------------ /rules */
.rules-sum { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; padding: 24px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.sum h2 { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font: 600 12px/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; }
.sum h2::before { font: 700 14px/1 var(--font); }
.sum p { color: var(--text); font-weight: 600; font-size: 15px; }
.sum-yes h2 { color: var(--ok); } .sum-yes h2::before { content: '\2713'; }
.sum-no h2 { color: var(--red); } .sum-no h2::before { content: '\2715'; }
.sum-note h2 { color: var(--amber); } .sum-note h2::before { content: '!'; }
.rules-meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 18px; color: var(--muted); font-size: 13px; }
.rules-page { margin-top: 40px; }
.rule { border-radius: var(--radius); }
.rule .post-body > h2 { display: block; }
.rule-n { display: block; margin-bottom: 8px; color: var(--accent-text); font: 600 12px/1.2 var(--font); letter-spacing: 0.1em; text-transform: uppercase; }
.rule-list { display: grid; gap: 10px; max-width: 72ch; }
.rule-list li { position: relative; padding-left: 20px; color: var(--text-2); }
.rule-list li::before { content: ''; position: absolute; left: 2px; top: 0.62em; width: 6px; height: 6px; background: var(--accent); }
.rules-jump a span { color: inherit; }

/* ------------------------------------------------------------------------------------------------ 404 */
.missing-in { display: grid; place-content: center; justify-items: start; gap: 16px; min-height: calc(100svh - var(--bar-h) - 200px); }

/* home: Server Status, the Monthly Goal and Supporter Ranks right under the hero (the old sidebar, 2026-12-01) */
.glance { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-items: start; padding-top: 40px; scroll-margin-top: calc(var(--bar-h) + 16px); }
.box-goal { scroll-margin-top: calc(var(--bar-h) + 16px); }
.goal-met { color: var(--text); font-weight: 500; }
.goal-met b { color: var(--ok); font-weight: 700; }
.goal-due { font-size: 14px; }
.goal-due b { color: var(--text); font-weight: 600; }
.goal-last { padding-top: 12px; border-top: 1px solid var(--line); font-size: 14px; }
.goal-last b { color: var(--text); font-weight: 600; }
.goal-last .ok { color: var(--ok); font-weight: 600; }
@media (max-width: 1099px) { .glance { grid-template-columns: 1fr 1fr; } .glance > :first-child { grid-row: span 2; } }
@media (max-width: 699px) { .glance { grid-template-columns: 1fr; padding-top: 24px; } .glance > :first-child { grid-row: auto; } }

/* ------------------------------------------------------------------------------------------------ smaller screens */
@media (max-width: 1239px) { .nav a { padding: 0 8px; font-size: 13.5px; } .hdr-in { gap: 18px; } .hdr .live { display: none; } }
@media (max-width: 1099px) {
  .nav { display: none; }
  .menu { display: block; }
  .page { grid-template-columns: 1fr; }
  .col-side { position: static; }
  .hero-media { inset: 0; opacity: 0.55; }
  .hero-in { grid-template-columns: 1fr; min-height: 0; }
  .hero-card { justify-self: start; margin-top: 32px; }
  .features, .cards, .map-facts { grid-template-columns: 1fr; gap: 20px; }
  .split, .how { grid-template-columns: 1fr; }
  .ftr-top { grid-template-columns: 1fr 1fr; }
  .first-steps { grid-template-columns: 1fr; gap: 16px; }
  .rules-sum { grid-template-columns: 1fr; gap: 18px; }
}
@media (max-width: 699px) {
  :root { --gut: 16px; --bar-h: 64px; }
  .hdr-right > .theme { display: none; } /* it's in the phone menu instead */
  .hdr-right > .btn-dark { display: none; }
  .hero h1 { font-size: clamp(40px, 12vw, 56px); }
  .hero-actions > * { width: 100%; }
  .gallery { grid-template-columns: 1fr 1fr; }
  .g1 { grid-column: span 2; aspect-ratio: 16 / 10; }
  .ftr-top { grid-template-columns: 1fr; gap: 28px; }
  .tab-row { gap: 0.4em; font-size: 13px; }
  .tab-row .face { width: 24px; height: 24px; }
  .viewer-fig { inset: 72px 8px 84px; }
  .viewer-prev, .viewer-next { top: auto; bottom: 16px; transform: none; }
  .wiki-pager { grid-template-columns: 1fr; }
  .wiki-next { grid-column: 1; text-align: left; }
  .money-table, .money-table tbody { display: block; }
  .money-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 10px 0; border-bottom: 1px solid var(--line); }
  .money-table th, .money-table td { display: block; width: auto; padding: 0; border: 0; }
  .money-table td.sub { grid-column: 1 / -1; font-size: 13px; }
  .money-table td.sub:empty { display: none; }
  .costs-table thead, .supporters-table thead { display: none; }
  .costs-table, .costs-table tbody, .costs-table tfoot, .supporters-table, .supporters-table tbody { display: block; }
  .costs-table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .costs-table tr > th, .costs-table tr > td { display: block; padding: 0; border: 0; }
  .costs-table tbody td:nth-child(2) { grid-row: 2; grid-column: 1; color: var(--muted); font-size: 13px; }
  .costs-table td.num { grid-row: 1; grid-column: 2; }
  .supporters-table tr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; padding: 9px 0; border-bottom: 1px solid var(--line); }
  .supporters-table td { display: block; padding: 0; border: 0; }
  .supporters-table td:empty { display: none; }
  .supporters-table td.num { margin-left: auto; }
  .ref, .ref tbody, .ref tr, .ref th, .ref td { display: block; width: auto; }
  .ref th { padding-bottom: 0; border-bottom: 0; white-space: normal; }
  .ref td { padding-top: 2px; }
  code { white-space: normal; }
}
