/* 9MinecraftServer: "Night and daylight".
   Night blue frames the page (header, heroes, footer); the lists and content sit on white
   daylight below a grass edge. Grass green = go, diamond blue = trust, gold = votes,
   amethyst = ads only, redstone = offline only. Blocky notched corners and a raised bottom
   edge on buttons are the Minecraft touches; pixel type is for ranks and live labels only.
   Controls are 44px+ and body text never under 15px. */

:root {
  /* Daylight (default) */
  --ground: #ffffff;
  --surface: #ffffff;
  --surface-2: #f4f7fc;
  --raised: #eef2f9;
  --line: #dde4f0;
  --line-strong: #cfd8e6;
  --text: #0f1a2e;
  --muted: #4a5875;
  --faint: #5e6b86;
  --link: #0b6f95;
  --link-hover: #084f6b;
  --accent: #3dd68c;
  --accent-hover: #56e39e;
  --accent-edge: #1c9a5c;
  --on-accent: #052414;
  --good: #13874f;
  --good-fill: #22b86b;
  --bad: #c53030;
  --warn: #8a5a00;
  --gold: #ffcc4d;
  --gold-edge: #c9951a;
  --gold-text: #8a5a00;
  --trust: #0b6f95;
  --trust-fill: #1a9cc8;
  --ad: #6b46c1;
  --ad-text: #5b3aa8;
  --ad-bg: #f7f3ff;
  --ad-line: #c9b3ff;
  --focus: #1a9cc8;
  --display: "Chakra Petch", "Segoe UI", system-ui, sans-serif;
  --body: "Atkinson Hyperlegible", "Segoe UI", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, Consolas, monospace;
  --pixel: "Pixelify Sans", "Chakra Petch", system-ui, sans-serif;
  --r: 12px;
  --gutter: clamp(16px, 4vw, 48px);
  --notch: polygon(6px 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px);
  --notch-sm: polygon(4px 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px);
  color-scheme: light;
}

/* Night scope: header, heroes, footer and special panels. */
.night {
  --ground: #0b1120;
  --surface: #141d31;
  --surface-2: #1a2540;
  --raised: #1c2744;
  --line: #22305a;
  --line-strong: #2a3862;
  --text: #eef2fb;
  --muted: #b3bdd3;
  --faint: #97a3bd;
  --link: #56d4f5;
  --link-hover: #9be8fb;
  --good: #3dd68c;
  --good-fill: #3dd68c;
  --bad: #ff7b7b;
  --warn: #ffcc4d;
  --gold-text: #ffcc4d;
  --trust: #56d4f5;
  --trust-fill: #56d4f5;
  --ad: #b18cff;
  --ad-text: #d3bfff;
  --ad-bg: #16152e;
  --ad-line: #4b3a8c;
  --focus: #56d4f5;
  color-scheme: dark;
  color: var(--text);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: #0b1120; }
body { margin: 0; background: var(--ground); color: var(--text); font: 18px/1.55 var(--body); }
img { max-width: 100%; }
a { color: var(--link); }
a:hover { color: var(--link-hover); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.wrap { width: 100%; max-width: 1320px; margin: 0 auto; padding-inline: var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr-only:focus { position: fixed; top: 8px; left: 8px; width: auto; height: auto; clip: auto; z-index: 99; padding: 12px 18px; background: var(--accent); color: var(--on-accent); }
h1, h2, h3 { font-family: var(--display); font-weight: 700; line-height: 1.1; margin: 0; text-wrap: balance; }
h1 { font-size: clamp(34px, 5vw, 60px); }
h2 { font-size: clamp(24px, 3vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0; }
.bevel { box-shadow: inset 3px 3px 0 rgba(255, 255, 255, .22), inset -3px -3px 0 rgba(0, 0, 0, .3); }
.pixel { font-family: var(--pixel); }

/* ---------- buttons: a raised block edge means "press me" ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 52px; padding: 0 22px;
       border: 0; clip-path: var(--notch-sm); font: 700 17px var(--display); text-decoration: none; cursor: pointer; white-space: nowrap;
       background: var(--surface); color: var(--text); box-shadow: inset 0 0 0 2px var(--line-strong), inset 0 -4px 0 var(--line-strong);
       transition: background .12s, box-shadow .12s, transform .06s; }
.btn:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -4px 0 var(--trust-fill); }
.btn:active { transform: translateY(2px); }
.btn:focus-visible { outline-offset: -4px; }
.btn-primary { background: var(--accent); color: var(--on-accent); box-shadow: inset 0 -4px 0 var(--accent-edge), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn-primary:hover { background: var(--accent-hover); color: var(--on-accent); box-shadow: inset 0 -4px 0 var(--accent-edge), inset 0 2px 0 rgba(255, 255, 255, .45); }
.btn-gold { background: var(--gold); color: #2a1c00; box-shadow: inset 0 -4px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-gold:hover { background: #ffd76e; color: #2a1c00; box-shadow: inset 0 -4px 0 var(--gold-edge), inset 0 2px 0 rgba(255, 255, 255, .5); }
.btn-quiet { background: var(--surface-2); }
.btn-outline { background: transparent; }
.btn-big { min-height: 60px; padding: 0 28px; font-size: 19px; clip-path: var(--notch); }
.btn-block { width: 100%; }
.btn svg { flex-shrink: 0; }
.btn[disabled] { opacity: .5; cursor: not-allowed; }
.copy.copied { background: var(--good-fill) !important; color: #052414 !important; }

/* ---------- header (night) ---------- */
.top { position: sticky; top: 0; z-index: 20; background: rgba(11, 17, 32, .96); backdrop-filter: blur(8px); border-bottom: 2px solid #1c2744; }
.top-row { position: relative; display: flex; align-items: center; gap: 18px; min-height: 76px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; font: 700 20px var(--display); letter-spacing: .06em; white-space: nowrap; }
.brand:hover { color: var(--text); }
.brand .mark { width: 36px; height: 36px; display: grid; place-items: center; background: var(--accent); color: var(--on-accent); font: 700 22px var(--pixel); clip-path: var(--notch-sm); }
.nav { display: flex; gap: 2px; }
.nav a { display: flex; align-items: center; white-space: nowrap; min-height: 48px; padding: 0 14px; color: var(--muted); font-weight: 700; text-decoration: none; border-bottom: 3px solid transparent; }
.nav a:hover { color: var(--text); }
.nav a[aria-current="page"] { color: var(--text); border-bottom-color: var(--accent); }
.top .signin { color: var(--muted); font-weight: 700; text-decoration: none; white-space: nowrap; }
.top .signin:hover { color: var(--text); }
.search { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(340px, 28vw); min-height: 50px; padding: 0 14px;
          background: var(--surface); clip-path: var(--notch-sm); box-shadow: inset 0 0 0 2px var(--line-strong); color: var(--muted); }
.search:focus-within { box-shadow: inset 0 0 0 2px var(--focus); }
.search input { flex: 1; min-width: 0; min-height: 46px; border: 0; background: transparent; color: var(--text); font: 17px var(--body); outline: none; }
.search input::placeholder { color: var(--faint); }
.menu { display: none; }
@media (max-width: 1100px) {
  .top-row > .nav, .top-row > .search, .top-row > .btn-primary, .top-row > .signin { display: none; }
  .menu { display: block; margin-left: auto; }
  .menu summary { list-style: none; display: grid; place-items: center; width: 52px; height: 52px; background: var(--surface-2); clip-path: var(--notch-sm); cursor: pointer; }
  .menu summary::-webkit-details-marker { display: none; }
  .menu-panel { position: absolute; left: 0; right: 0; top: 76px; padding: 16px var(--gutter) 24px; background: var(--ground); border-bottom: 2px solid var(--line); display: grid; gap: 10px; }
  .menu-panel .search { width: 100%; margin: 0 0 6px; }
  .menu-panel a.item { display: flex; align-items: center; min-height: 56px; padding: 0 18px; background: var(--surface); clip-path: var(--notch-sm); color: var(--text); font: 700 19px var(--display); text-decoration: none; }
}
.brand { flex-shrink: 0; }
.brand .wordmark { display: block; width: auto; height: 48px; aspect-ratio: 445 / 96; flex-shrink: 0; object-fit: contain; }
@media (max-width: 420px) { .brand .wordmark { height: 40px; } }

/* ---------- night band + grass edge ---------- */
.night-band { background-color: #0b1120; background-image: linear-gradient(rgba(120, 160, 255, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(120, 160, 255, .045) 1px, transparent 1px); background-size: 32px 32px; padding-block: 28px 44px; }
.grass { height: 14px; background: repeating-linear-gradient(90deg, #3f9e4b 0 16px, #4fb85c 16px 32px, #3a9146 32px 48px); }
.night-band .crumbs { margin-bottom: 18px; }

/* ---------- page furniture ---------- */
main { padding-block: 36px 72px; min-height: 50vh; }
.section { margin-top: 44px; display: grid; gap: 18px; }
.section-head h2 small { font: 500 16px var(--pixel); color: var(--faint); margin-left: 8px; }
.more-link { font-weight: 700; }
main > .section:first-child { margin-top: 0; }
.section-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.lede { font-size: 20px; color: var(--muted); max-width: 64ch; }
.crumbs { display: flex; flex-wrap: wrap; gap: 8px; font-size: 16px; color: var(--faint); margin-bottom: 14px; font-weight: 700; }
.crumbs a { color: var(--muted); text-decoration: none; }
.crumbs a:hover { color: var(--text); }
.note { font-size: 16px; color: var(--faint); }
.card { background: var(--surface); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 var(--line); }
.night .card { box-shadow: inset 0 0 0 2px var(--line); }
.page-head { display: grid; gap: 14px; }
.stats-line { display: flex; flex-wrap: wrap; gap: 8px 24px; color: var(--muted); font-size: 18px; }
.stats-line b { color: var(--text); font-family: var(--display); font-size: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font: 500 16px var(--pixel); letter-spacing: .04em; color: var(--good); text-transform: uppercase; }
.eyebrow .live { width: 10px; height: 10px; background: var(--good); box-shadow: 0 0 0 4px rgba(61, 214, 140, .18); }

/* ---------- home hero ---------- */
.hero { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: center; padding-block: 20px 8px; }
.hero-copy { display: grid; gap: 20px; align-content: start; }
.hero h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero .lede { color: var(--muted); }
.hero-search { display: flex; gap: 10px; max-width: 640px; }
.hero-search .search { width: auto; flex: 1; margin: 0; min-height: 60px; clip-path: var(--notch); }
.hero-search .btn { min-height: 60px; }
.trust-points { display: flex; flex-wrap: wrap; gap: 10px 22px; color: var(--muted); font-size: 15px; }
.trust-points span { display: inline-flex; align-items: center; gap: 8px; }
.podium { padding: 24px 24px 0; display: grid; gap: 16px; }
.podium-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.podium-head b { font: 700 20px var(--display); }
.podium-head span { font: 500 14px var(--pixel); color: var(--muted); }
.podium-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; list-style: none; margin: 0; padding: 0; }
.podium-grid li { display: grid; align-items: end; min-width: 0; }
.podium-head h2 { font: 700 20px var(--display); margin: 0; }
.podium-empty { padding-bottom: 24px; }
.podium-spot { display: grid; justify-items: center; gap: 8px; text-align: center; color: var(--text); text-decoration: none; }
.podium-spot:hover { color: var(--text); }
.podium-spot img { width: 64px; height: 64px; image-rendering: pixelated; background: var(--raised); clip-path: var(--notch-sm); }
.podium-spot .name { font-weight: 700; font-size: 16px; overflow-wrap: anywhere; }
.podium-spot .v { font-size: 14px; color: var(--gold-text); font-weight: 700; }
.podium-spot .block { width: 100%; display: grid; place-items: center; font: 700 34px var(--pixel); color: #0b1120; }
.podium-spot.p1 .block { height: 132px; background: #ffcc4d; }
.podium-spot.p2 .block { height: 96px; background: #c9d3e3; }
.podium-spot.p3 .block { height: 72px; background: #e39a5c; }
@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .hero-search { flex-direction: column; }
}

/* ---------- chips and mode tiles ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { display: inline-flex; align-items: center; gap: 8px; min-height: 48px; padding: 0 18px; background: var(--surface); clip-path: var(--notch-sm);
        box-shadow: inset 0 0 0 2px var(--line), inset 0 -4px 0 var(--line); color: var(--text); font-weight: 700; font-size: 17px; text-decoration: none; }
.chip:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -4px 0 var(--trust-fill); }
.chip[aria-current="page"], .chip.on { background: var(--text); color: var(--ground); box-shadow: none; }
.chip .n { font-weight: 400; color: var(--faint); font-size: 15px; }
.chip.on .n, .chip[aria-current="page"] .n { color: inherit; opacity: .75; }
.chip.more { background: transparent; color: var(--link); }
.chip .swatch { width: 16px; height: 16px; }
.mode-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(128px, 1fr)); gap: 12px; }
.mode-tile { display: flex; flex-direction: column; justify-content: space-between; gap: 18px; min-height: 96px; padding: 14px 16px; background: var(--surface);
             clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 var(--line); color: var(--text); text-decoration: none; }
.mode-tile:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -5px 0 var(--trust-fill); }
.mode-tile .swatch { width: 28px; height: 28px; }
.mode-tile span:last-child { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.mode-tile b { font-size: 17px; }
.mode-tile small { font-size: 13px; color: var(--muted); }

.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; }
.seg { display: inline-flex; flex-wrap: wrap; padding: 4px; gap: 4px; background: var(--raised); clip-path: var(--notch-sm); }
.seg a { display: flex; align-items: center; min-height: 44px; padding: 0 16px; color: var(--muted); font-weight: 700; text-decoration: none; }
.seg a:hover { color: var(--text); }
.seg a[aria-current="true"] { background: var(--text); color: var(--ground); }

/* ---------- ranked server rows ---------- */
.rank-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.row { position: relative; display: grid; grid-template-columns: 52px 72px minmax(0, 1fr) 190px 210px; align-items: center; gap: 18px;
       padding: 18px 20px; background: var(--surface); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 var(--line); }
.row:hover { box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -5px 0 var(--trust-fill); }
.row.sponsored { background: var(--ad-bg); box-shadow: inset 0 0 0 2px var(--ad-line), inset 0 -5px 0 var(--ad-line); }
.rank { width: 48px; height: 48px; display: grid; place-items: center; font: 700 22px var(--pixel); color: var(--text); background: var(--raised); }
.night .rank, .rank.r4 { color: #eef2fb; background: #1c2744; }
.rank.r1 { background: #ffcc4d; color: #0b1120; }
.rank.r2 { background: #c9d3e3; color: #0b1120; }
.rank.r3 { background: #e39a5c; color: #0b1120; }
.rank.ad { background: var(--ad); color: #ffffff; font-size: 13px; }
.row .icon { width: 72px; height: 72px; image-rendering: pixelated; background: var(--raised); clip-path: var(--notch-sm); }
.row-main { display: grid; gap: 8px; min-width: 0; }
.row-title { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; }
.row-title a { font: 700 22px var(--display); color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.row-title a::after { content: ""; position: absolute; inset: 0; } /* the whole row opens the server */
.row-title a:hover { color: var(--link); }
.row .copy, .row .tags a, .row .vote-link { position: relative; z-index: 1; }
.row .checked { font-size: 13px; color: var(--faint); }
.row-sum { color: var(--muted); font-size: 16px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; }
.row .banner, .motd-banner { display: block; width: 100%; max-width: 468px; height: auto; aspect-ratio: 468 / 60; clip-path: var(--notch-sm); background: var(--raised); }
.motd-banner { display: flex; flex-direction: column; justify-content: center; gap: 1px; padding: 0 14px; background: #121212; font: 15px/1.25 var(--pixel);
               text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); overflow: hidden; white-space: nowrap; color: #aaaaaa; }
.motd-banner .line, .motd .line { display: block; overflow: hidden; text-overflow: ellipsis; }
.metric { display: grid; gap: 6px; }
.metric .top-line { display: flex; justify-content: space-between; font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .04em; }
.metric b { font: 700 24px/1.1 var(--display); font-variant-numeric: tabular-nums; }
.metric .votes-line { font-size: 14px; font-weight: 700; color: var(--gold-text); }
.xp { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 2px; padding: 2px; background: var(--line-strong); }
.night .xp { background: #0b1120; }
.xp i { height: 8px; background: var(--surface); }
.xp i.on { background: var(--good-fill); }
.xp.warn i.on { background: #f0b429; }
.join-col { display: grid; gap: 8px; min-width: 0; }
.join-col .ip { font: 700 15px var(--mono); color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.row .copy { min-height: 46px; font-size: 16px; padding: 0 14px; }
.row .vote-link { min-height: 40px; font-size: 15px; }
@media (max-width: 1180px) {
  .row { grid-template-columns: 48px 64px minmax(0, 1fr) 170px; }
  .row .join-col { grid-column: 3 / -1; grid-template-columns: minmax(0, 1fr) auto auto; align-items: center; }
  .row .icon { width: 64px; height: 64px; }
}
@media (max-width: 700px) {
  .row { grid-template-columns: 40px 56px minmax(0, 1fr); gap: 12px; padding: 16px; }
  .rank { width: 40px; height: 40px; font-size: 19px; }
  .row .icon { width: 56px; height: 56px; }
  /* The name sits beside the rank and logo; the banner or Minecraft entry and tags go full width below. */
  .row-main { display: contents; }
  .row-main > * { grid-column: 1 / -1; }
  .row-main > .row-title { grid-column: 3; grid-row: 1; }
  .row .metric { grid-column: 1 / -1; }
  .row .join-col { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr); }
  .row .join-col .ip { display: none; }
  .row .copy { min-height: 52px; justify-content: space-between; }
  .row .copy .label::before { content: attr(data-ip) "  "; font: 700 15px var(--mono); }
  .row-sum { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
  .row-title a { font-size: 20px; }
}

/* ---------- pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; padding: 0 10px; background: var(--raised);
        color: var(--muted); font-size: 14px; font-weight: 700; text-decoration: none; white-space: nowrap; }
a.pill:hover { color: var(--text); }
.pill.on { background: rgba(34, 184, 107, .12); color: var(--good); }
.pill.off { background: rgba(197, 48, 48, .1); color: var(--bad); }
.night .pill.off { background: rgba(255, 93, 93, .14); }
.pill.odd { background: rgba(240, 180, 41, .16); color: var(--warn); }
.pill.ad { background: var(--ad); color: #ffffff; letter-spacing: .06em; font-size: 12px; }
.pill.ok { background: rgba(26, 156, 200, .12); color: var(--trust); }
.pill.gold { background: rgba(255, 204, 77, .18); color: var(--gold-text); }
.dot { width: 8px; height: 8px; background: currentColor; }

/* ---------- pager ---------- */
.pager { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 12px; margin-top: 12px; }
.pager span { color: var(--muted); }

/* ---------- empty ---------- */
.empty { padding: 36px; text-align: center; display: grid; gap: 14px; justify-items: center; color: var(--muted); font-size: 19px; }

/* ---------- modes grid (all game modes page) ---------- */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.mode { display: grid; gap: 6px; align-content: start; padding: 22px; min-height: 120px; color: var(--text); text-decoration: none; }
.mode:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -5px 0 var(--trust-fill); }
.mode b { font: 700 22px var(--display); }
.mode span { color: var(--muted); font-size: 16px; }
.mode .n { color: var(--link); font-weight: 700; }

/* ---------- trust band (night) ---------- */
.trust-band { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.trust-band .card { padding: 26px; display: grid; gap: 10px; align-content: start; }
.trust-band .swatch { width: 36px; height: 36px; }
.trust-band h2 { font-size: 22px; }
.trust-band p { color: var(--muted); line-height: 1.55; }
@media (max-width: 900px) { .trust-band { grid-template-columns: minmax(0, 1fr); } }

/* ---------- server page ---------- */
.server-hero { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.server-card { overflow: hidden; display: grid; }
.cover { height: 180px; background: var(--brand, #1a9cc8); background-size: cover; background-position: center; }
.cover.plain { background-image: linear-gradient(120deg, rgba(0, 0, 0, .35), transparent 70%); }
.server-id { display: flex; gap: 22px; align-items: flex-end; padding: 0 26px 24px; margin-top: -56px; }
.server-id > .icon { width: 128px; height: 128px; flex-shrink: 0; image-rendering: pixelated; background: var(--raised); clip-path: var(--notch); border: 6px solid var(--surface); }
.detail-title { display: grid; gap: 10px; min-width: 0; padding-bottom: 4px; }
.detail-title .tags { gap: 8px; }
.server-banner { padding: 0 26px 26px; }
.join-card { display: grid; gap: 12px; padding: 24px; }
.join-card .join-label { font-weight: 700; color: var(--muted); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; }
.join-card .addr { font: 700 22px var(--mono); overflow-wrap: anywhere; }
.join-card .fine { font-size: 14px; color: var(--muted); text-align: center; }
.alt-addrs { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.alt-addrs .join-label { width: 100%; text-transform: none; letter-spacing: 0; font-size: 15px; }
.alt-addr { min-height: 44px; padding: 0 12px; border: 0; clip-path: var(--notch-sm); background: var(--surface-2); color: var(--text); font: 700 14px var(--mono); cursor: pointer; overflow-wrap: anywhere;
            box-shadow: inset 0 0 0 2px var(--line-strong), inset 0 -3px 0 var(--line-strong); }
.alt-addr:hover { box-shadow: inset 0 0 0 2px var(--trust-fill), inset 0 -3px 0 var(--trust-fill); }
.alt-addr.copied { box-shadow: inset 0 0 0 2px var(--good-fill); color: var(--good); }
@media (max-width: 1000px) {
  .server-hero { grid-template-columns: minmax(0, 1fr); }
  .cover { height: 120px; }
  .server-id { flex-direction: column; align-items: flex-start; margin-top: -44px; padding: 0 18px 18px; gap: 12px; }
  .server-id > .icon { width: 88px; height: 88px; border-width: 5px; }
  .server-banner { padding: 0 18px 18px; }
}
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; margin: 0; }
.stat { padding: 18px 20px; display: grid; gap: 8px; align-content: start; }
.stat dt { font-size: 13px; font-weight: 700; color: var(--muted); letter-spacing: .05em; text-transform: uppercase; }
.stat dd { margin: 0; font: 700 26px var(--display); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat dd small { font: 400 15px var(--body); color: var(--muted); }
.stat .days { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
.stat .days i { height: 12px; background: var(--good-fill); }
.stat .days i.dip { background: #f0b429; }
.stat .days i.down { background: var(--bad); }
.stat .days i.none { background: var(--raised); }
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
@media (max-width: 1000px) { .two-col { grid-template-columns: minmax(0, 1fr); } }
.panel { padding: clamp(20px, 3vw, 30px); display: grid; gap: 16px; }
.prose { display: grid; gap: 14px; font-size: 18px; line-height: 1.65; max-width: 72ch; }
.panel.prose { max-width: none; }
.prose h2 { margin-top: 4px; }
.prose h3 { font-size: 21px; margin-top: 8px; }
.prose ul, .prose ol { margin: 0; padding-left: 26px; display: grid; gap: 8px; }
.prose ul.highlights { list-style: none; padding-left: 0; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.prose ul.highlights li { position: relative; padding-left: 26px; font-weight: 700; }
.prose ul.highlights li::before { content: ""; position: absolute; left: 2px; top: .45em; width: 12px; height: 12px; background: var(--good-fill); box-shadow: inset 2px 2px 0 rgba(255, 255, 255, .3), inset -2px -2px 0 rgba(0, 0, 0, .25); }
.prose.faq h3 { font-size: 20px; margin-top: 6px; }
.prose.faq h3 + p { margin-top: -6px; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; margin: 0; }
.facts .stat { background: var(--surface-2); clip-path: var(--notch-sm); box-shadow: inset 0 0 0 2px var(--line); }
.facts .stat dt { text-transform: none; letter-spacing: 0; font-size: 14px; }
.facts .stat dd { font-size: 20px; }
.live-age { font-weight: 600; color: var(--good); text-transform: none; letter-spacing: 0; }
.motd { margin: 0; padding: 14px; display: flex; gap: 14px; align-items: center; background: #121212; font: 17px/1.35 var(--pixel); color: #aaaaaa;
        text-shadow: 2px 2px 0 rgba(0, 0, 0, .6); white-space: pre-wrap; overflow-x: auto; }
.motd img { width: 64px; height: 64px; flex-shrink: 0; image-rendering: pixelated; }
.chart-card { padding: 22px; display: grid; gap: 10px; }
.chart { display: block; width: 100%; height: 170px; background: var(--surface-2); }
.chart .bar { fill: var(--good-fill); }
.chart .none { fill: var(--raised); }
.chart .off { fill: var(--bad); }
.chart text { fill: var(--faint); font: 13px var(--body); }
.side { display: grid; gap: 16px; }
.side .card { padding: 22px; display: grid; gap: 12px; }
.side h2 { font-size: 22px; }
.side .card.night { background: #111a2e; }
.codebox { width: 100%; min-height: 96px; padding: 12px 14px; background: #0b1120; border: 2px solid var(--line); color: #b3bdd3; font: 14px/1.5 var(--mono); resize: vertical; }
.sticky-join { display: none; }
@media (max-width: 700px) {
  .sticky-join { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 10px; position: sticky; bottom: 0; z-index: 15;
                 padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: rgba(8, 13, 25, .96); border-top: 2px solid #1c2744; }
}

/* ---------- forms ---------- */
.form { display: grid; gap: 20px; max-width: 600px; }
.form-card { padding: clamp(20px, 3vw, 36px); }
.field { display: grid; gap: 8px; }
.field label, .field legend { font-weight: 700; font-size: 18px; }
.field .hint { font-size: 15px; color: var(--faint); }
.field fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 10px; }
.input { width: 100%; min-height: 54px; padding: 0 16px; border: 2px solid var(--line-strong); background: var(--surface); color: var(--text); font: 18px var(--body); border-radius: 0; }
textarea.input { padding: 14px 16px; min-height: 170px; resize: vertical; line-height: 1.5; }
.input:focus { outline: none; border-color: var(--focus); box-shadow: 0 0 0 3px rgba(26, 156, 200, .2); }
.radio-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; }
.radio-card { position: relative; display: grid; gap: 4px; padding: 16px 18px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; }
.radio-card input { position: absolute; opacity: 0; }
.radio-card:has(input:checked) { border-color: var(--good-fill); background: rgba(34, 184, 107, .08); }
.radio-card:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.radio-card b { font: 700 18px var(--display); }
.radio-card span { color: var(--muted); font-size: 15px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check-chip { position: relative; display: inline-flex; align-items: center; min-height: 46px; padding: 0 14px; border: 2px solid var(--line-strong); background: var(--surface); cursor: pointer; font-weight: 700; }
.check-chip input { position: absolute; opacity: 0; }
.check-chip:has(input:checked) { border-color: var(--good-fill); background: var(--good-fill); color: #052414; }
.check-chip:has(input:focus-visible) { outline: 3px solid var(--focus); outline-offset: 2px; }
.alert { padding: 16px 20px; font-size: 18px; clip-path: var(--notch-sm); }
.alert.ok { background: #e8f8ef; color: #0d5c36; box-shadow: inset 0 0 0 2px #9fdcbc; }
.alert.err { background: #fdecec; color: #8f1d1d; box-shadow: inset 0 0 0 2px #f0a8a8; }
.alert.info { background: #e8f5fb; color: #0a4d68; box-shadow: inset 0 0 0 2px #9ed3e8; }
.night .alert.ok { background: rgba(61, 214, 140, .12); color: #b6f0cb; }
.night .alert.err { background: rgba(255, 123, 114, .1); color: #ffc9c4; }
.night .alert.info { background: rgba(86, 212, 245, .1); color: #cdeefa; }
.validation { color: var(--bad); font-size: 16px; }
.validation:empty { display: none; }
.code-big { display: inline-block; padding: 10px 18px; background: #0b1120; border: 2px dashed var(--accent); font: 700 28px var(--mono); letter-spacing: 2px; color: var(--accent); }

/* ---------- tables (staff, dashboard) ---------- */
.table-wrap { overflow-x: auto; border: 2px solid var(--line); background: var(--surface); }
table.data { width: 100%; border-collapse: collapse; font-size: 16px; }
table.data th, table.data td { text-align: left; padding: 13px 15px; border-bottom: 1px solid var(--line); vertical-align: middle; }
table.data th { font-size: 14px; color: var(--muted); background: var(--surface-2); }
table.data tr:last-child td { border-bottom: 0; }
.num { font-variant-numeric: tabular-nums; text-align: right; }
.inline-form { display: inline-flex; gap: 8px; flex-wrap: wrap; }
.inline-form .btn { min-height: 44px; padding: 0 16px; font-size: 16px; }

/* ---------- footer (night) ---------- */
.foot { background: #080d19; border-top: 2px solid #1c2744; padding-block: 40px 48px; color: var(--faint); font-size: 16px; }
.foot-grid { display: grid; grid-template-columns: 1.3fr repeat(4, minmax(0, 1fr)); gap: 28px; }
.foot .about { display: grid; gap: 10px; align-content: start; color: var(--muted); }
.foot h2 { font-size: 16px; color: var(--text); margin-bottom: 8px; }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.foot a { display: inline-flex; min-height: 40px; align-items: center; color: var(--muted); text-decoration: none; }
.foot a:hover { color: var(--text); }
.legal { margin-top: 28px; padding-top: 20px; border-top: 1px solid #1c2744; display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
@media (max-width: 900px) { .foot-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot .about { grid-column: 1 / -1; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* ---------- server page extras ---------- */
img.cover { display: block; width: 100%; height: 180px; object-fit: cover; }
@media (max-width: 1000px) { img.cover { height: 120px; } }
.mini-section { display: grid; gap: 12px; }
.mini-section h2, .chart-card h2 { font-size: 22px; }
.mini-icon { width: 48px; height: 48px; image-rendering: pixelated; clip-path: var(--notch-sm); background: var(--raised); }
.mode > span:first-child { display: flex; align-items: center; gap: 12px; }
.motd .line { white-space: pre; }
main > .stats:first-child { margin-top: 8px; }

/* ---------- image uploads ---------- */
.uploads { display: grid; gap: 18px; max-width: 900px; }
.upload-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; padding-top: 16px; border-top: 2px solid var(--line); }
.upload-info { display: grid; gap: 6px; }
.upload-actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.upload-actions .input { padding: 12px; flex: 1 1 220px; }
.upload-preview { display: block; max-width: 100%; height: auto; margin-top: 6px; background: var(--raised); }
.upload-preview.logo { width: 96px; height: 96px; image-rendering: pixelated; }
@media (max-width: 700px) { .upload-row { grid-template-columns: minmax(0, 1fr); } }
.vote-icon { width: 80px; height: 80px; image-rendering: pixelated; clip-path: var(--notch-sm); background: var(--raised); }

/* ---------- footer legal row, cookie notice, site map ---------- */
.foot-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 32px; padding-top: 22px; border-top: 2px solid var(--line); }
.foot-links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.foot-links a { color: var(--muted); font-weight: 700; text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.foot-links a:hover { color: var(--text); }
.foot .legal { display: grid; gap: 6px; }
.foot .legal p { margin: 0; }
.foot .disclaimer { font-size: 14px; line-height: 1.55; color: var(--muted); max-width: 90ch; }
.cookie-note { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 40; max-width: 760px; margin: 0 auto; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px;
               padding: 16px 20px; background: var(--ground); color: var(--text); clip-path: var(--notch); box-shadow: inset 0 0 0 2px var(--line-strong), inset 0 -4px 0 var(--line-strong); }
.cookie-note[hidden] { display: none; }
.cookie-note p { margin: 0; flex: 1 1 320px; font-size: 15px; line-height: 1.5; color: var(--muted); }
@media (max-width: 700px) { .cookie-note { bottom: 84px; } }
.sitemap-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 28px 24px; align-items: start; }
.sitemap-grid h2 { font-size: 20px; margin-bottom: 10px; }
.sitemap-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.sitemap-grid a { display: inline-flex; min-height: 36px; align-items: center; font-weight: 700; }
.foot .btn-primary, .foot .btn-primary:hover { color: var(--on-accent); }
.foot-bar + .legal { margin-top: 18px; }

/* ---------- game-mode pixel icons ---------- */
.mode-icon { display: block; flex-shrink: 0; image-rendering: pixelated; }
.mode-tile .mode-icon { width: 32px; height: 32px; }
.mode-name { display: flex; align-items: center; gap: 10px; }

/* ---------- site pixel icons ---------- */
.pix { display: inline-block; flex-shrink: 0; vertical-align: -3px; margin-right: 6px; }
.pix.big { display: block; margin: 0; }
.pill .pix { margin-right: 5px; vertical-align: -3px; }
.stat dt { display: flex; align-items: center; flex-wrap: wrap; gap: 0 2px; }
.stat dt .pix, .stat dt .mode-icon { display: inline-block; margin-right: 6px; }
.pix-head { display: flex; align-items: center; gap: 10px; }
.pix-head .pix { margin: 0; }
.podium-spot .v .pix, .votes-line .pix { margin-right: 4px; }
.btn .pix { margin-right: 8px; vertical-align: -2px; }

/* ---------- Minecraft multiplayer-list entry (the no-banner banner) ---------- */
.mc-entry { --mc-font: 13px; --mc-lh: 16px; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 10px; align-items: center;
            width: 100%; max-width: 468px; min-height: 60px; padding: 6px 10px 6px 6px; clip-path: var(--notch-sm);
            background: #1a120c url("data:image/svg+xml,%3Csvg xmlns=%27http://www.w3.org/2000/svg%27 viewBox=%270 0 16 16%27 shape-rendering=%27crispEdges%27%3E%3Cpath fill=%27%232c2016%27 d=%27M0 0h1v1h-1zM1 0h1v1h-1zM5 0h1v1h-1zM8 0h1v1h-1zM11 0h1v1h-1zM13 0h1v1h-1zM2 1h1v1h-1zM4 1h1v1h-1zM6 1h1v1h-1zM12 1h1v1h-1zM6 2h1v1h-1zM7 2h1v1h-1zM9 2h1v1h-1zM12 2h1v1h-1zM14 2h1v1h-1zM3 3h1v1h-1zM6 3h1v1h-1zM8 3h1v1h-1zM9 3h1v1h-1zM12 3h1v1h-1zM1 4h1v1h-1zM13 4h1v1h-1zM15 4h1v1h-1zM2 5h1v1h-1zM4 5h1v1h-1zM5 5h1v1h-1zM6 5h1v1h-1zM8 5h1v1h-1zM11 5h1v1h-1zM12 5h1v1h-1zM14 5h1v1h-1zM15 5h1v1h-1zM7 6h1v1h-1zM11 6h1v1h-1zM14 6h1v1h-1zM15 6h1v1h-1zM1 7h1v1h-1zM15 7h1v1h-1zM2 8h1v1h-1zM4 8h1v1h-1zM7 8h1v1h-1zM10 8h1v1h-1zM13 8h1v1h-1zM3 9h1v1h-1zM6 9h1v1h-1zM14 9h1v1h-1zM15 9h1v1h-1zM0 10h1v1h-1zM2 10h1v1h-1zM4 10h1v1h-1zM9 10h1v1h-1zM10 10h1v1h-1zM11 10h1v1h-1zM15 10h1v1h-1zM0 11h1v1h-1zM5 11h1v1h-1zM6 11h1v1h-1zM10 11h1v1h-1zM2 12h1v1h-1zM5 12h1v1h-1zM11 12h1v1h-1zM12 12h1v1h-1zM13 12h1v1h-1zM0 13h1v1h-1zM4 13h1v1h-1zM9 13h1v1h-1zM2 14h1v1h-1zM4 14h1v1h-1zM5 14h1v1h-1zM6 14h1v1h-1zM10 14h1v1h-1zM12 14h1v1h-1zM8 15h1v1h-1z%27/%3E%3Cpath fill=%27%23241a12%27 d=%27M2 0h1v1h-1zM4 0h1v1h-1zM7 0h1v1h-1zM10 0h1v1h-1zM15 0h1v1h-1zM0 1h1v1h-1zM1 1h1v1h-1zM8 1h1v1h-1zM9 1h1v1h-1zM13 1h1v1h-1zM14 1h1v1h-1zM15 1h1v1h-1zM0 2h1v1h-1zM2 2h1v1h-1zM5 2h1v1h-1zM8 2h1v1h-1zM11 2h1v1h-1zM13 2h1v1h-1zM0 3h1v1h-1zM1 3h1v1h-1zM2 3h1v1h-1zM4 3h1v1h-1zM5 3h1v1h-1zM11 3h1v1h-1zM13 3h1v1h-1zM0 4h1v1h-1zM3 4h1v1h-1zM4 4h1v1h-1zM7 4h1v1h-1zM10 4h1v1h-1zM12 4h1v1h-1zM1 5h1v1h-1zM9 5h1v1h-1zM13 5h1v1h-1zM0 6h1v1h-1zM2 6h1v1h-1zM4 6h1v1h-1zM9 6h1v1h-1zM12 6h1v1h-1zM3 7h1v1h-1zM5 7h1v1h-1zM6 7h1v1h-1zM8 7h1v1h-1zM12 7h1v1h-1zM13 7h1v1h-1zM14 7h1v1h-1zM3 8h1v1h-1zM5 8h1v1h-1zM6 8h1v1h-1zM9 8h1v1h-1zM15 8h1v1h-1zM4 9h1v1h-1zM5 9h1v1h-1zM7 9h1v1h-1zM9 9h1v1h-1zM11 9h1v1h-1zM12 9h1v1h-1zM13 9h1v1h-1zM1 10h1v1h-1zM6 10h1v1h-1zM13 10h1v1h-1zM3 11h1v1h-1zM8 11h1v1h-1zM12 11h1v1h-1zM1 12h1v1h-1zM6 12h1v1h-1zM7 12h1v1h-1zM9 12h1v1h-1zM10 12h1v1h-1zM14 12h1v1h-1zM2 13h1v1h-1zM8 13h1v1h-1zM10 13h1v1h-1zM12 13h1v1h-1zM13 13h1v1h-1zM14 13h1v1h-1zM15 13h1v1h-1zM8 14h1v1h-1zM9 14h1v1h-1zM11 14h1v1h-1zM14 14h1v1h-1zM15 14h1v1h-1zM1 15h1v1h-1zM2 15h1v1h-1zM5 15h1v1h-1zM6 15h1v1h-1zM7 15h1v1h-1z%27/%3E%3Cpath fill=%27%231d150e%27 d=%27M3 0h1v1h-1zM6 0h1v1h-1zM1 2h1v1h-1zM3 2h1v1h-1zM4 2h1v1h-1zM10 2h1v1h-1zM15 2h1v1h-1zM3 5h1v1h-1zM10 5h1v1h-1zM3 6h1v1h-1zM5 6h1v1h-1zM6 6h1v1h-1zM0 7h1v1h-1zM4 7h1v1h-1zM14 8h1v1h-1zM2 9h1v1h-1zM10 9h1v1h-1zM8 10h1v1h-1zM12 10h1v1h-1zM11 11h1v1h-1zM13 11h1v1h-1zM0 12h1v1h-1zM1 13h1v1h-1zM7 13h1v1h-1zM0 15h1v1h-1zM3 15h1v1h-1zM9 15h1v1h-1zM11 15h1v1h-1zM12 15h1v1h-1zM14 15h1v1h-1zM15 15h1v1h-1z%27/%3E%3Cpath fill=%27%2333261a%27 d=%27M9 0h1v1h-1zM12 0h1v1h-1zM14 0h1v1h-1zM5 1h1v1h-1zM7 1h1v1h-1zM10 1h1v1h-1zM11 1h1v1h-1zM10 3h1v1h-1zM14 3h1v1h-1zM2 4h1v1h-1zM8 4h1v1h-1zM11 4h1v1h-1zM14 4h1v1h-1zM0 5h1v1h-1zM1 6h1v1h-1zM8 6h1v1h-1zM10 6h1v1h-1zM2 7h1v1h-1zM11 7h1v1h-1zM0 8h1v1h-1zM8 8h1v1h-1zM11 8h1v1h-1zM12 8h1v1h-1zM0 9h1v1h-1zM1 9h1v1h-1zM8 9h1v1h-1zM14 10h1v1h-1zM1 11h1v1h-1zM2 11h1v1h-1zM4 11h1v1h-1zM7 11h1v1h-1zM9 11h1v1h-1zM14 11h1v1h-1zM15 11h1v1h-1zM3 12h1v1h-1zM4 12h1v1h-1zM8 12h1v1h-1zM15 12h1v1h-1zM11 13h1v1h-1zM3 14h1v1h-1zM7 14h1v1h-1zM4 15h1v1h-1z%27/%3E%3Cpath fill=%27%233a2b1e%27 d=%27M3 1h1v1h-1zM7 3h1v1h-1zM15 3h1v1h-1zM5 4h1v1h-1zM6 4h1v1h-1zM9 4h1v1h-1zM7 5h1v1h-1zM13 6h1v1h-1zM7 7h1v1h-1zM9 7h1v1h-1zM10 7h1v1h-1zM1 8h1v1h-1zM3 10h1v1h-1zM5 10h1v1h-1zM7 10h1v1h-1zM3 13h1v1h-1zM5 13h1v1h-1zM6 13h1v1h-1zM0 14h1v1h-1zM1 14h1v1h-1zM13 14h1v1h-1zM10 15h1v1h-1zM13 15h1v1h-1z%27/%3E%3C/svg%3E") 0 0 / 32px 32px; image-rendering: pixelated;
            box-shadow: inset 0 0 0 2px rgba(0, 0, 0, .45); font: var(--mc-font)/var(--mc-lh) var(--pixel); color: #aaaaaa;
            text-shadow: 1px 1px 0 rgba(0, 0, 0, .75); }
.mc-entry:hover { box-shadow: inset 0 0 0 2px #a0a0a0; }
.mc-entry .mc-icon { width: 48px; height: 48px; image-rendering: pixelated; }
.mc-entry .mc-text { display: grid; min-width: 0; align-self: start; padding-top: 1px; }
.mc-entry .mc-name { color: #ffffff; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mc-entry .line { display: block; overflow: hidden; text-overflow: ellipsis; white-space: pre; }
.mc-entry .mc-status { display: flex; align-items: center; gap: 6px; align-self: start; padding-top: 1px; white-space: nowrap; }
.mc-entry .mc-count { color: #aaaaaa; }
.mc-entry .mc-slash { color: #555555; }
.mc-entry .mc-ping { display: block; }
.mc-entry.large { --mc-font: 17px; --mc-lh: 21px; max-width: 700px; padding: 8px 14px 8px 8px; gap: 14px; }
.mc-entry.large .mc-icon { width: 64px; height: 64px; }
.row .mc-entry { position: relative; z-index: 1; }
@media (max-width: 520px) { .mc-entry { --mc-font: 12px; --mc-lh: 15px; } .mc-entry .mc-icon { width: 40px; height: 40px; } }

/* ---------- ad spots: featured header card, sidebar rail ---------- */
.featured { padding: 22px; display: grid; gap: 14px; align-content: start; }
.featured-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.featured .eyebrow { color: var(--gold, #ffcc4d); }
.featured .eyebrow .pix { margin-right: 0; }
.featured-cover { display: block; width: 100%; height: auto; aspect-ratio: 4 / 1; object-fit: cover; clip-path: var(--notch-sm); }
.featured .banner { display: block; width: 100%; max-width: 468px; height: auto; }
.featured-id { display: flex; gap: 14px; align-items: center; min-width: 0; }
.featured-logo { width: 64px; height: 64px; flex-shrink: 0; image-rendering: pixelated; clip-path: var(--notch-sm); background: var(--raised); }
.featured-title { display: grid; gap: 8px; min-width: 0; }
.featured-title h2 { font-size: 26px; overflow-wrap: anywhere; }
.featured-title h2 a { color: var(--text); text-decoration: none; }
.featured-sum { margin: 0; color: var(--muted); font-size: 16px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.featured-join { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 10px; align-items: center; }
.featured-join .ip { font: 700 16px var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.featured-empty { text-decoration: none; color: var(--text); justify-items: start; }
.featured-empty b { font: 700 26px var(--display); }
.featured-empty > span:not(.eyebrow):not(.btn) { color: var(--muted); }
.featured-empty:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--gold, #ffcc4d); }
@media (max-width: 520px) { .featured-join { grid-template-columns: minmax(0, 1fr) auto; } .featured-join .ip { grid-column: 1 / -1; } }

.list-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; }
.list-main { display: grid; gap: 10px; min-width: 0; align-content: start; }
.rail { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; align-content: start; }
/* The sidebar lives in the page's white margins: only screens wide enough get it beside the
   list (the page widens so the rows keep their full width); smaller screens show it below. */
@media (min-width: 1640px) {
  body:has(.list-layout) .wrap { max-width: 1640px; }
  .list-layout { grid-template-columns: minmax(0, 1fr) 280px; }
  .rail { grid-template-columns: minmax(0, 1fr); position: sticky; top: 96px; }
}
.rail-ad { padding: 16px; display: grid; gap: 10px; align-content: start; }
.rail-top { display: flex; justify-content: space-between; align-items: center; font-size: 14px; color: var(--muted); font-weight: 700; }
.rail-id { display: flex; align-items: center; gap: 12px; color: var(--text); text-decoration: none; min-width: 0; }
.rail-id img { width: 48px; height: 48px; flex-shrink: 0; image-rendering: pixelated; clip-path: var(--notch-sm); background: var(--raised); }
.rail-id b { font-size: 18px; overflow-wrap: anywhere; }
.rail-ad p { margin: 0; font-size: 15px; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rail-empty { text-decoration: none; color: var(--text); justify-items: start; border: 0; box-shadow: inset 0 0 0 2px var(--line), inset 0 -5px 0 var(--line); background: var(--surface-2); }
.rail-empty span:not(.more-link) { color: var(--muted); font-size: 15px; }
.rail-empty:hover { color: var(--text); box-shadow: inset 0 0 0 2px var(--gold, #ffcc4d); }

.ad-tiers { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.ad-tier { padding: 26px; display: grid; gap: 10px; align-content: start; justify-items: start; }
.ad-tier.best { box-shadow: inset 0 0 0 3px var(--gold, #ffcc4d), inset 0 -6px 0 var(--gold, #ffcc4d); }
.ad-tier p { margin: 0; color: var(--muted); }

/* Narrow rows: drop the player count from the Minecraft entry before the MOTD gets cut. */
@media (max-width: 560px) { .row .mc-entry .mc-count { display: none; } }
