/* mc-servers.gg — built on the K1 mockup: the game's font at 16/20, every shadow = its text colour at 25% (the game's rule),
   grey #AAA for secondary text and white for data, yellow on hover, the game's own sprites for buttons, fields, slots,
   hotbar and separators, flat table rows with a 2% stripe and the in-game selection outline on hover, a 1200px column. */
@font-face { font-family: 'Mojangles'; src: url(/fonts/Mojangles-Regular.ttf) format('truetype'); font-weight: 400; font-display: swap; }
@font-face { font-family: 'Mojangles'; src: url(/fonts/Mojangles-Bold.ttf) format('truetype'); font-weight: 700; font-display: swap; }
:root {
  --bg: #0d0d0f; --deep: #141417; --deep2: #1c1c20; --well: #08080a; --edge-hi: #ffffff1a;
  --white: #fff; --gray: #aaa; --dgray: #7a7a7a; --gold: #fa0; --yellow: #ff5; --green: #5f5; --red: #f55; --gs: 2px;
  --s-button: url(/img/spr/button.png); --s-button-hi: url(/img/spr/button_highlighted.png); --s-button-off: url(/img/spr/button_disabled.png);
  --s-field: url(/img/spr/text_field.png); --s-field-hi: url(/img/spr/text_field_highlighted.png);
  --s-slot: url(/img/spr/slot.png); --s-slot-hl: url(/img/spr/slot_highlight_front.png);
  --s-hotbar: url(/img/spr/hotbar.png); --s-hotbar-sel: url(/img/spr/hotbar_selection.png);
  --s-sep-h: url(/img/spr/header_separator.png); --s-sep-f: url(/img/spr/footer_separator.png);
  color-scheme: dark;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--gray); font-family: 'Mojangles', ui-monospace, monospace; font-size: 16px; line-height: 20px;
  font-synthesis: none; letter-spacing: 0; -webkit-text-size-adjust: 100%; }
body * { text-shadow: var(--gs) var(--gs) 0 color-mix(in srgb, currentColor 25%, #000); }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
img { image-rendering: pixelated; }
.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
@media (min-width: 768px) { .wrap { padding-left: 24px; padding-right: 24px; } }
.w { color: var(--white); } .gold { color: var(--gold); } .ok { color: var(--green); } .bad { color: var(--red); } .dim { color: var(--dgray); }
.m24 { font-size: 24px; line-height: 28px; } .m32 { font-size: 32px; line-height: 36px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- the game's widgets ---------- */
.btn { min-width: 40px; height: 40px; padding: 0 10px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; color: var(--white); white-space: nowrap; cursor: pointer;
  background: none; border: 6px solid transparent; border-image: var(--s-button) 3 fill / 6px / 0 repeat; image-rendering: pixelated; user-select: none; }
.btn:hover, .btn:focus-visible { color: var(--yellow); border-image-source: var(--s-button-hi); outline: none; }
.btn[disabled] { color: var(--dgray); border-image-source: var(--s-button-off); cursor: default; }
.btn.sm { height: 32px; min-width: 32px; }
.btn.big { height: 48px; padding: 0 20px; }
.btn.wide { width: 100%; }
.btn.is-copied { color: var(--green); }
.btn.danger:hover { color: var(--red); }
.field { min-height: 40px; display: flex; align-items: center; padding: 0 8px; border: 2px solid transparent; border-image: var(--s-field) 1 fill / 2px / 0 repeat; image-rendering: pixelated; color: #e0e0e0; }
.field:focus-within { border-image-source: var(--s-field-hi); }
.field input, .field textarea, .field select { flex: 1; min-width: 0; height: 36px; background: none; border: 0; outline: none; color: #e0e0e0; caret-color: var(--gold); text-shadow: var(--gs) var(--gs) 0 #383838; }
.field textarea { height: auto; padding: 8px 0; resize: vertical; line-height: 20px; }
.field select { appearance: none; cursor: pointer; } .field select option { background: #000; }
.field.ta { align-items: stretch; }
.field input::placeholder, .field textarea::placeholder { color: var(--dgray); text-shadow: none; }
.field input::-webkit-search-cancel-button { -webkit-appearance: none; }
.field .fx { color: var(--dgray); flex: none; }
.panel { background: var(--deep); border: 2px solid #000; box-shadow: inset 2px 2px 0 var(--edge-hi), inset -2px -2px 0 #00000080; }
.pad { padding: 16px; } .pad-l { padding: 20px 24px; }
.slot { width: 54px; height: 54px; display: inline-grid; place-items: center; background: var(--s-slot) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; flex: none; }
.slot img { width: 32px; height: 32px; }
.slot.xl { width: 84px; height: 84px; } .slot.xl img { width: 64px; height: 64px; }
.sep-b { position: relative; } .sep-b::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--s-sep-h) 0 0 / 64px 4px repeat-x; image-rendering: pixelated; }
.sep-t { position: relative; } .sep-t::before { content: ''; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: var(--s-sep-f) 0 0 / 64px 4px repeat-x; image-rendering: pixelated; }

/* ---------- header ---------- */
header.top { position: sticky; top: 0; z-index: 40; background: var(--deep); }
header.top .wrap { height: 64px; padding-bottom: 4px; display: flex; align-items: center; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--white); flex: none; }
.logo:hover { color: var(--yellow); }
nav.main { display: flex; }
nav.main a { height: 40px; display: flex; align-items: center; padding: 0 12px; color: var(--gray); }
nav.main a:hover { color: var(--yellow); } nav.main a[aria-current] { color: var(--white); }
.right { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.right .field { width: 240px; }

/* ---------- flash ---------- */
.flash { margin-top: 16px; padding: 12px 16px; color: var(--white); }
.flash.err { color: var(--red); }

/* ---------- page head + hotbar ---------- */
.band { position: relative; background-size: cover; background-position: center 58%; }
.top-band { background-image: linear-gradient(180deg, rgba(13,13,15,.6), rgba(13,13,15,.78) 55%, var(--bg)), url(/img/hero.jpg); padding-bottom: 8px; }
.bottom-band { margin-top: 64px; background-image: linear-gradient(180deg, var(--bg), rgba(13,13,15,.72) 35%, rgba(13,13,15,.82)), url(/img/hero.jpg); background-position: center 30%; }
.head { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 32px 24px; }
.head .t { display: flex; align-items: center; gap: 16px; min-width: 0; }
.head .t > div { min-width: 0; }
h1, h2, h3 { margin: 0; font-weight: 400; }
.stats { display: flex; gap: 40px; text-align: right; }
.stats b { display: block; font-weight: 400; }
.pick { padding-top: 32px; }
.name { text-align: center; min-height: 20px; margin-bottom: 8px; color: var(--white); }
.name.hot { color: var(--yellow); } .name.hot.cur { color: var(--white); }
.hb-scroll { --hb: 3px; max-width: 100%; overflow: auto hidden; padding: var(--hb) calc(2 * var(--hb)) calc(2 * var(--hb)); scrollbar-width: none; }
.hb-scroll::-webkit-scrollbar { display: none; }
.hotbar { display: flex; width: max-content; height: calc(22 * var(--hb)); margin-inline: auto; }
.hotbar::before, .hotbar::after { content: ''; flex: 0 0 var(--hb); height: calc(22 * var(--hb)); background: var(--s-hotbar) 0 0 / calc(182 * var(--hb)) calc(22 * var(--hb)) no-repeat; image-rendering: pixelated; }
.hotbar::after { background-position: calc(-181 * var(--hb)) 0; }
.hs { position: relative; display: block; flex: 0 0 calc(20 * var(--hb)); height: calc(22 * var(--hb)); padding: 0; border: 0; cursor: pointer;
  background: var(--s-hotbar) calc(-1 * var(--hb)) 0 / calc(182 * var(--hb)) calc(22 * var(--hb)) no-repeat; image-rendering: pixelated; }
.hs img { position: absolute; left: calc(2 * var(--hb)); top: calc(3 * var(--hb)); width: calc(16 * var(--hb)); height: calc(16 * var(--hb)); pointer-events: none; }
.hs:hover::before { content: ''; position: absolute; left: calc(-2 * var(--hb)); top: calc(-1 * var(--hb)); width: calc(24 * var(--hb)); height: calc(24 * var(--hb)); z-index: 1;
  background: var(--s-slot-hl) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; pointer-events: none; }
.hs[aria-current]::after { content: ''; position: absolute; left: calc(-2 * var(--hb)); top: calc(-1 * var(--hb)); width: calc(24 * var(--hb)); height: calc(23 * var(--hb)); z-index: 2;
  background: var(--s-hotbar-sel) 0 0 / 100% 100% no-repeat; image-rendering: pixelated; pointer-events: none; }
.hs:focus-visible { outline: var(--hb) solid #fff; outline-offset: calc(-1 * var(--hb)); z-index: 3; }

/* ---------- sections ---------- */
.sec { margin-top: 40px; }
.sh { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 12px; min-height: 40px; }
.sh h2 { color: var(--white); }
.sh a:not(.btn) { color: var(--gold); } .sh a:not(.btn):hover { color: var(--yellow); }
.tabs { display: flex; gap: 4px; flex-wrap: wrap; }
.tabs[aria-label="Sort"] .btn { color: var(--gray); }
.tabs[aria-label="Sort"] .btn:hover, .tabs[aria-label="Sort"] .btn:focus-visible { color: var(--yellow); }
.tabs[aria-label="Sort"] .btn[aria-current], .tabs[aria-label="Sort"] .btn[aria-current]:hover { color: var(--white); }

/* ---------- rank tables ---------- */
table { border-collapse: separate; border-spacing: 0; width: 100%; color: var(--white); }
th { height: 36px; padding: 0 12px; background: var(--deep2); color: var(--gray); text-align: left; font-weight: 400; white-space: nowrap; box-shadow: inset 0 -2px #000; }
td { height: 48px; padding: 0 12px; vertical-align: middle; white-space: nowrap; }
tbody tr:nth-child(2n) > td { background: #ffffff05; }
.hov tbody tr:hover > td { box-shadow: inset 0 2px gray, inset 0 -2px gray, inset 0 4px #000, inset 0 -4px #000; }
.hov tbody tr:hover > td:first-child { box-shadow: inset 2px 0 gray, inset 0 2px gray, inset 0 -2px gray, inset 4px 0 #000, inset 0 4px #000, inset 0 -4px #000; }
.hov tbody tr:hover > td:last-child { box-shadow: inset -2px 0 gray, inset 0 2px gray, inset 0 -2px gray, inset -4px 0 #000, inset 0 4px #000, inset 0 -4px #000; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.rk { width: 48px; } .rk.g { color: var(--gold); }
.sv { width: 100%; max-width: 0; }
.sv > a, .sv > span { display: flex; align-items: center; gap: 12px; overflow: hidden; }
.sv img { width: 32px; height: 32px; flex: none; }
.sv b { font-weight: 400; overflow: hidden; text-overflow: ellipsis; }
.sv a:hover b { color: var(--yellow); }
.cp { width: 1%; }
.empty td { color: var(--gray); height: 96px; text-align: center; white-space: normal; }

/* the main list: a banner in every row */
.list td { height: auto; padding-block: 16px; }
.list td.bn { width: 1%; }
.bn-frame { display: block; padding: 2px; background: #000; box-shadow: 0 0 0 2px #ffffff12; }
.bn-frame > img, .bn-frame .bnr { display: block; width: 100%; aspect-ratio: 468 / 60; object-fit: cover; }
.list .bn-frame { width: 316px; }
a.bn-frame:hover { box-shadow: 0 0 0 2px #ffffff40; }
.info .nm { display: flex; align-items: center; gap: 12px; }
.info .nm b { display: block; font-weight: 400; color: var(--white); white-space: normal; overflow: visible; font-size: 20px; line-height: 24px; overflow-wrap: break-word; }
.info .nm img { width: 40px; height: 40px; flex: none; }
.info .nm:hover b { color: var(--yellow); }
.info .sub { color: var(--gray); margin-top: 6px; white-space: normal; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; }
.bn .on { color: var(--gray); margin-top: 8px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bn .on span { color: var(--white); }
.bn .on .off { color: var(--red); }
.feat-tag { color: var(--gold); }
.pager { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }

/* auto banner: the server's own description on a field made from its icon */
.bnr { position: relative; overflow: hidden; background: #0b0c0e var(--glow, none) center / cover no-repeat; isolation: isolate; container-type: inline-size; }
.bnr::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(0,0,0,.05), rgba(0,0,0,.05) 60%, rgba(0,0,0,.35)); }
.bnr-motd { position: absolute; inset: 0; display: grid; place-content: center; justify-items: start; font-size: min(16px, calc(100cqw / 35)); }
.mc { font-family: 'Mojangles', ui-monospace, monospace; font-size: 16px; line-height: 18px; font-weight: 400; white-space: pre; font-kerning: none; font-variant-ligatures: none; letter-spacing: 0; font-synthesis: style; }
.bnr-motd.mc { font-size: min(16px, calc(100cqw / 35)); }
.mc .mb { font-weight: 700; } .mc .mi { font-style: italic; }
.mc .mu { text-decoration: underline; text-decoration-thickness: .125em; text-underline-offset: .125em; }
.mc .ms { text-decoration: line-through; text-decoration-thickness: .125em; }
.mc .mu.ms { text-decoration-line: underline line-through; }
.mc-line { display: block; height: 1.125em; }

/* layout */
.cols { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.lads { display: grid; grid-template-columns: 1fr; gap: 12px; }
.lads th a { display: inline-flex; align-items: center; gap: 8px; color: var(--white); }
.lads th a:hover { color: var(--yellow); }
.lads th img { width: 16px; height: 16px; }
.lads td { height: 40px; }
.lads .sv img { width: 16px; height: 16px; }
.lads .sv > a { gap: 8px; }

/* FAQ */
.qs { display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; align-items: start; }
details summary { list-style: none; cursor: pointer; min-height: 48px; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--white); }
details summary:hover { color: var(--yellow); }
details summary::-webkit-details-marker { display: none; }
details summary::after { content: '+'; color: var(--gold); }
details[open] summary::after { content: '-'; }
details p { margin: 0; padding: 0 16px 16px; line-height: 22px; }

.cta { display: flex; align-items: center; gap: 20px; padding-block: 56px; }
.cta > div { flex: 1; }
.cta .m24 { margin-bottom: 4px; }
footer.foot { background: var(--deep); padding-block: 28px 40px; }
footer.foot .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; }
footer.foot a:hover { color: var(--yellow); }
footer.foot .fine { flex-basis: 100%; color: var(--dgray); margin-top: 8px; }
main.page { min-height: 50vh; }
.plain-foot { margin-top: 64px; }

/* ---------- server page ---------- */
.srv-head h1 { overflow-wrap: anywhere; }
.srv-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; align-items: start; }
.srv-grid .bn-frame { width: 100%; }
.stack { display: grid; gap: 16px; }
.entry { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 4px 6px; padding: 6px; background: #00000080; border: 2px solid #ffffff20; }
.entry img { width: 64px; height: 64px; grid-row: span 3; }
.entry .top { display: flex; justify-content: space-between; gap: 8px; }
.entry .top .n { color: var(--white); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.entry .motd { overflow: hidden; }
.about { white-space: pre-wrap; overflow-wrap: anywhere; line-height: 22px; margin: 0; }
.kv { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; margin: 0; }
.kv dt { color: var(--gray); } .kv dd { margin: 0; color: var(--white); text-align: right; overflow-wrap: anywhere; }
.kv dd a { color: var(--gold); } .kv dd a:hover { color: var(--yellow); }
.join { display: grid; gap: 10px; }
.join .lbl { color: var(--gray); }
.ipline { display: flex; gap: 8px; }
.ipline .field { flex: 1; min-width: 0; overflow: hidden; white-space: nowrap; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips a { display: inline-flex; align-items: center; gap: 6px; color: var(--white); }
.chips a:hover { color: var(--yellow); }
.chips img { width: 16px; height: 16px; }
.chart { display: block; width: 100%; height: 140px; }
.chart .ln { fill: none; stroke: var(--green); stroke-width: 2; vector-effect: non-scaling-stroke; }
.chart .ar { fill: #55ff5514; }
.chart-meta { display: flex; justify-content: space-between; color: var(--dgray); margin-top: 6px; }
.owner-bar { display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- vote ---------- */
.vote-box { max-width: 520px; }
.vote-box .row { display: grid; gap: 8px; margin-bottom: 16px; }
.done { display: flex; gap: 16px; align-items: center; }
.cf-turnstile { min-height: 65px; }

/* ---------- forms ---------- */
.narrow { max-width: 520px; margin: 0 auto; }
.form { display: grid; gap: 16px; }
.form .row { display: grid; gap: 6px; }
.form .row > label, .form .lbl { color: var(--white); }
.form .hint { color: var(--dgray); line-height: 20px; }
.form .two { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form h2 { color: var(--white); }
.form-sections { display: grid; gap: 16px; }
.err-list { color: var(--red); margin: 0; padding-left: 20px; }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.check { position: relative; display: inline-flex; }
.check input { position: absolute; opacity: 0; pointer-events: none; }
.check span { height: 36px; padding: 0 10px; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; color: var(--gray);
  border: 6px solid transparent; border-image: var(--s-button-off) 3 fill / 6px / 0 repeat; image-rendering: pixelated; user-select: none; }
.check span img { width: 16px; height: 16px; }
.check input:checked + span { color: var(--white); border-image-source: var(--s-button); }
.check span:hover { color: var(--yellow); }
.check input:focus-visible + span { outline: 2px solid #fff; }
.radio-row { display: flex; flex-wrap: wrap; gap: 8px; }
.toggle { display: flex; align-items: center; gap: 10px; cursor: pointer; color: var(--white); }
.toggle input { width: 20px; height: 20px; accent-color: #5a5; }
.banner-now { max-width: 472px; }
code, .code { font-family: inherit; color: var(--gold); overflow-wrap: anywhere; }
pre.code { white-space: pre-wrap; margin: 0; padding: 12px; background: var(--well); border: 2px solid #000; color: #e0e0e0; }

/* dashboard / admin */
.mine td { height: 56px; }
.acts { display: flex; gap: 6px; justify-content: flex-end; }
.acts form { display: inline; }
.pill { color: var(--gray); } .pill.on { color: var(--green); } .pill.off { color: var(--red); } .pill.wait { color: var(--gold); }
.grid-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.grid-stats > div { padding: 16px; }
.grid-stats b { display: block; font-weight: 400; color: var(--white); }
.scroll-x { overflow-x: auto; }

/* gamemodes page */
.modes { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.modes a { display: flex; align-items: center; gap: 12px; padding: 12px; color: var(--white); }
.modes a:hover { color: var(--yellow); }
.modes small { display: block; color: var(--gray); font-size: inherit; }

@media (max-width: 1080px) { .cols, .srv-grid { grid-template-columns: 1fr; } .lads { grid-template-columns: 1fr 1fr; } .list .bn-frame { width: 300px; } }
@media (max-width: 1000px) { nav.main { display: none; } }
@media (max-width: 760px) {
  .right .field { display: none; }
  .logo .m24 { font-size: 16px; line-height: 20px; }
  .sh h2.m24 { font-size: 16px; line-height: 20px; white-space: nowrap; } .sh .btn { height: 32px; }
  td { padding: 0 8px; } .rk { width: 32px; }
  .head { flex-direction: column; align-items: flex-start; padding-block: 20px 16px; gap: 16px; }
  .head .t { gap: 12px; } .head .slot { width: 36px; height: 36px; } .head .slot img { width: 16px; height: 16px; }
  .head .slot.xl { width: 54px; height: 54px; } .head .slot.xl img { width: 32px; height: 32px; }
  h1.m32 { font-size: 24px; line-height: 28px; }
  .stats { gap: 24px; text-align: left; } .stats b.m24 { font-size: 16px; line-height: 20px; }
  .hb-scroll { --hb: 2px; }
  .cp .lbl { display: none; }
  .lads, .qs, .form .two, .grid-stats { grid-template-columns: 1fr; }
  .grid-stats { grid-template-columns: 1fr 1fr; }
  .cta { flex-direction: column; align-items: flex-start; padding-block: 36px; } .cta .slot { display: none; }
  .list thead { display: none; } .list tr { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; }
  .list td.bn { grid-column: 1 / -1; width: auto; order: 3; padding-top: 0; } .list .bn-frame { width: 100%; }
  .list td.sv { max-width: none; width: auto; min-width: 0; } .info .nm img { width: 32px; height: 32px; } .info .nm b { font-size: 16px; line-height: 20px; }
  .list td.cp { padding-right: 8px; }
  .mine .hide-sm, .adm .hide-sm { display: none; }
  .acts { flex-wrap: wrap; }
}

/* fixes after the first full test */
[hidden] { display: none !important; }
.stats > div { white-space: nowrap; }
.vote-box { max-width: none; }
input[type="file"] { color: var(--gray); }
input[type="file"]::file-selector-button { font: inherit; color: var(--white); background: none; cursor: pointer; margin-right: 12px; height: 32px; padding: 0 10px;
  border: 6px solid transparent; border-image: var(--s-button) 3 fill / 6px / 0 repeat; image-rendering: pixelated; }
@media (max-width: 760px) {
  .sh { flex-wrap: wrap; }
  .tabs .btn.sm { height: 28px; padding: 0 6px; }
}

/* moving between pages: the new page fades in over the old one instead of flashing blank */
@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: 120ms; }
.top { view-transition-name: top; }
.btn.me img { width: 16px; height: 16px; image-rendering: auto; }
.btn.discord { color: #fff; }

/* vote wait: a full-page cover with a Minecraft-style loading bar (like "Loading terrain") */
.vote-wait { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 16px; background: rgba(0, 0, 0, .72); }
.vote-wait .panel { width: min(420px, 100%); text-align: center; display: grid; gap: 14px; }
.vw-bar { height: 12px; padding: 2px; background: #000; border: 2px solid #a0a0a0; image-rendering: pixelated; }
.vw-bar i { display: block; height: 100%; width: 0; background: linear-gradient(#80ff20 0 50%, #55c614 50% 100%); }
.vw-sub { color: var(--gray, #a0a0a0); }

/* list rows, 2026-11-16: no gamemode bar, no Copy IP; player count under the name; banner at its real size (468x60) */
.top-band .head { padding-bottom: 28px; }
.list .nm > span { display: block; min-width: 0; }
.list .nm .on { display: block; margin-top: 4px; color: var(--gray); font-size: 16px; line-height: 20px; }
.list .nm .on span { color: var(--white); } .list .nm .on .off { color: var(--red); }
.list .bn-frame { width: 472px; }
.list td.bn { padding-left: 16px; }
@media (max-width: 1080px) { .list .bn-frame { width: 472px; } }
@media (max-width: 760px) {
  .list tr { grid-template-columns: 28px minmax(0, 1fr); }
  .list .bn-frame { width: 100%; }
  .list td.bn { padding-left: 8px; }
}

/* top background, 2026-11-16: the picture fades out with a mask (no hard edge or line), and on the server list it
   reaches down behind the "Top servers" heading to the first server */
.top-band { background: none; isolation: isolate; }
.top-band::before { content: ''; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgba(13,13,15,.5), rgba(13,13,15,.7)), url(/img/hero.jpg) center 58% / cover no-repeat;
  -webkit-mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.6) 70%, transparent);
          mask-image: linear-gradient(180deg, #000 45%, rgba(0,0,0,.6) 70%, transparent); }
.top-band.tall { padding-bottom: 140px; margin-bottom: -140px; }
.top-band.tall + main .cols { position: relative; }
.list tbody tr:first-child td { border-top: 0; }
.list .nm .on span { color: var(--green); } .list .nm .on .off { color: var(--red); }
/* names keep a fixed column (never cut mid-word); the banner takes the rest, up to its real 468px */
.list td.sv { width: 210px; min-width: 210px; max-width: 210px; }
.list td.bn { width: auto; }
.list .bn-frame, .list .bn-frame { width: 100%; max-width: 472px; margin-left: auto; }
.info .nm b { overflow-wrap: normal; word-break: normal; }
@media (max-width: 760px) { .list td.sv { width: auto; min-width: 0; max-width: none; } .list .bn-frame { max-width: none; } }
.list { table-layout: fixed; width: 100%; }
.list td.rk { width: 44px; }
.list td.sv { width: 230px; min-width: 0; max-width: none; }
.list td.bn { width: auto; }
@media (max-width: 760px) { .list { table-layout: auto; } .list td.rk, .list td.sv { width: auto; } }
.list td.sv { width: 252px; }
.info .nm b { overflow-wrap: break-word; }
.list td.sv { width: 264px; }
@media (max-width: 760px) { .stats { flex-wrap: wrap; row-gap: 12px; } }
/* the in-game entry: the MOTD is two lines 270 game-pixels wide (540px at 16px); on narrow screens shrink it to fit, like the game does at a smaller GUI scale */
.entry .motd { container-type: inline-size; min-width: 0; }
.entry .motd > * { font-size: min(16px, calc(100cqw * 16 / 540)); line-height: 1.25; }
/* top bar: the search box gives up width before anything spills past the edge */
.right { flex: 1 1 auto; min-width: 0; justify-content: flex-end; }
.right .field { flex: 0 1 240px; min-width: 110px; }
.right .field input { width: 100%; min-width: 0; }
.right .btn { flex: none; }
nav.main { flex: none; }
/* the #1 server: a gold outline around its whole row */
.list tr.top1 { outline: 1px solid rgba(255, 222, 150, .42); outline-offset: -1px; }
.list tr.top1:hover { outline-color: rgba(255, 222, 150, .6); }
/* the trophy logo (header) and the big trophy beside "Top Minecraft Servers" */
.logo-cup { width: 32px; height: 32px; flex: none; }
.head-cup { width: 64px; height: 64px; flex: none; filter: drop-shadow(0 4px 10px rgba(0,0,0,.5)); }
@media (max-width: 760px) { .logo-cup { width: 26px; height: 26px; } .head-cup { width: 44px; height: 44px; } }

/* ---------- home layout, 2026-11-16: centered top, one filter row, one centered list ---------- */
.hero { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 12px; padding-block: 40px 8px; }
.hero h1 { margin: 0; }
.hero-cup { width: 88px; height: 88px; filter: drop-shadow(0 6px 14px rgba(0,0,0,.55)); }
.hero-sub { color: var(--gray); } .green { color: var(--green); }
.filters { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 12px; }
.filters .btn { color: var(--gray); min-width: 120px; }
.filters .btn:hover, .filters .btn:focus-visible { color: var(--yellow); }
.filters .btn[aria-current], .filters .btn[aria-current]:hover { color: var(--white); border-image-source: var(--s-button-hi); }
.gm-menu { position: relative; }
.gm-menu > summary { list-style: none; }
.gm-menu > summary::-webkit-details-marker { display: none; }
.gm-menu[open] > summary { color: var(--white); }
.gm-list { position: absolute; z-index: 30; top: calc(100% + 6px); left: 50%; transform: translateX(-50%); width: 440px; max-width: calc(100vw - 32px);
  display: grid; grid-template-columns: 1fr 1fr; gap: 2px; padding: 8px; text-align: left; background: var(--deep); box-shadow: 0 10px 30px rgba(0,0,0,.6); }
.gm-list a { display: flex; align-items: center; gap: 8px; padding: 6px 8px; color: var(--gray); }
.gm-list a img { width: 16px; height: 16px; image-rendering: pixelated; }
.gm-list a:hover { color: var(--yellow); background: #ffffff0a; } .gm-list a[aria-current] { color: var(--white); }
.top-band.tall { padding-bottom: 72px; margin-bottom: -40px; }
.narrow-list { max-width: 1000px; }
.narrow-list .list td.sv { width: auto; }
.narrow-list .list td.bn { width: 488px; padding-left: 8px; }
.narrow-list .list .bn-frame { width: 472px; max-width: none; margin-left: 0; }
.narrow-list .list td.rk { width: 56px; font-size: 20px; text-align: center; }
@media (max-width: 760px) {
  .hero { padding-top: 24px; } .hero-cup { width: 60px; height: 60px; }
  .filters .btn { min-width: 0; flex: 1 1 40%; }
  .gm-list { grid-template-columns: 1fr; position: fixed; top: 80px; }
  .narrow-list .list td.bn { width: auto; padding-left: 8px; } .narrow-list .list .bn-frame { width: 100%; }
  .narrow-list .list td.rk { width: auto; font-size: 16px; }
  .list td.sv { order: 1; } .list td.bn { order: 3; }
}
.caret { display: inline-block; width: 0; height: 0; margin-left: 8px; border: 5px solid transparent; border-top-color: currentColor; border-bottom: 0; }
.gm-menu[open] .caret { transform: rotate(180deg); }
.top-band:has(.gm-menu[open]) { z-index: 50; }
.caret { border-width: 7px 6px 0; }
.gm-menu > summary::after { content: none !important; display: none !important; }

/* ---------- Join Now column + the "IP copied" box ---------- */
.narrow-list { max-width: 1120px; }
.list td.jn { width: 190px; text-align: center; padding-right: 16px; }
.btn.join { width: 100%; height: 44px; color: var(--green); }
.btn.join:hover, .btn.join:focus-visible { color: var(--yellow); }
.list .ip { display: inline-flex; align-items: center; gap: 6px; max-width: 100%; margin-top: 8px; padding: 0; border: 0; background: none; cursor: pointer;
  color: var(--gray); font: inherit; }
.list .ip span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list .ip svg { flex: none; }
.list .ip:hover { color: var(--yellow); } .list .ip.is-copied { color: var(--green); }
.join-dlg { width: min(460px, calc(100vw - 32px)); padding: 28px 24px 24px; color: var(--gray); border: 0; text-align: center; background: var(--deep); box-shadow: 0 20px 60px rgba(0,0,0,.7); }
.join-dlg::backdrop { background: rgba(0, 0, 0, .7); }
.join-dlg .jd-ok { color: var(--green); margin-bottom: 6px; }
.join-dlg p { margin: 12px 0 18px; }
.join-dlg .jd-addr { text-align: left; margin-bottom: 14px; }
.join-dlg label { display: block; margin-bottom: 6px; color: var(--white); }
.join-dlg form { margin-top: 8px; }
@media (max-width: 760px) {
  .list td.jn { order: 4; grid-column: 1 / -1; width: auto; display: flex; align-items: center; gap: 12px; padding: 0 8px 4px; text-align: left; }
  .list td.jn .btn.join { width: auto; flex: none; padding: 0 16px; }
  .list td.jn .ip { margin-top: 0; min-width: 0; }
}
/* wider list so the banner can grow a little and the Join column fits whole addresses */
.narrow-list { max-width: 1240px; }
.narrow-list .list td.bn { width: 536px; }
.narrow-list .list .bn-frame { width: 520px; }
.list td.jn { width: 230px; }
@media (max-width: 1240px) { .narrow-list .list td.bn { width: 488px; } .narrow-list .list .bn-frame { width: 472px; } }
@media (max-width: 1060px) { .narrow-list .list td.bn { width: 376px; } .narrow-list .list .bn-frame { width: 360px; } }
@media (max-width: 760px) { .narrow-list .list td.bn { width: auto; } .narrow-list .list .bn-frame { width: 100%; } .list td.jn { width: auto; } }
.list td.jn { width: 300px; }
@media (max-width: 1240px) { .list td.jn { width: 260px; } }
@media (max-width: 760px) { .list td.jn { width: auto; } }
.btn.join { width: 210px; max-width: 100%; }
@media (max-width: 760px) { .list td.jn { flex-wrap: wrap; row-gap: 6px; } .list td.jn .ip span { white-space: normal; overflow-wrap: anywhere; } }

/* ---------- rows as gray cards with a thin black gap between them (2026-11-16) ---------- */
:root { --row: #1c1c21; --row-hi: #222228; }
.list { border-spacing: 0 6px; margin-top: -6px; }
.list tbody tr > td, .list tbody tr:nth-child(2n) > td { background: var(--row); }
.list tbody tr:hover > td { background: var(--row-hi); }

/* 1101-1240: a bit smaller banner so name + Join both fit */
@media (min-width: 1101px) and (max-width: 1240px) {
  .narrow-list .list td.bn { width: 440px; } .narrow-list .list .bn-frame { width: 424px; } .list td.jn { width: 280px; }
}
/* 761-1100: rank | banner | name above Join, as cards in a grid */
@media (min-width: 761px) and (max-width: 1100px) {
  .narrow-list .list, .narrow-list .list tbody { display: block; margin-top: 0; }
  .narrow-list .list tr { display: grid; grid-template-columns: 44px minmax(0, 420px) minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px;
    align-items: center; margin-bottom: 6px; background: var(--row); padding: 12px 12px 12px 0; }
  .narrow-list .list tr:hover { background: var(--row-hi); }
  .narrow-list .list tr > td { background: none !important; box-shadow: none !important; height: auto; padding: 0; width: auto !important; }
  .narrow-list .list td.rk { grid-row: 1 / 3; text-align: center; }
  .narrow-list .list td.bn { grid-row: 1 / 3; } .narrow-list .list .bn-frame { width: 100%; }
  .narrow-list .list td.sv { grid-column: 3; grid-row: 1; max-width: none; }
  .narrow-list .list td.jn { grid-column: 3; grid-row: 2; text-align: left; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding-top: 10px; }
  .narrow-list .list td.jn .btn.join { width: auto; padding: 0 14px; height: 40px; }
  .narrow-list .list td.jn .ip { margin-top: 0; }
  .narrow-list .list td.jn .ip span { white-space: normal; overflow-wrap: anywhere; }
}
/* phones: cards too */
@media (max-width: 760px) {
  .narrow-list .list, .narrow-list .list tbody { display: block; margin-top: 0; }
  .narrow-list .list tr { margin-bottom: 6px; background: var(--row); padding: 4px 0 8px; }
  .narrow-list .list tr > td { background: none !important; box-shadow: none !important; }
}

/* ---------- 2026-11-16 late: banner takes all spare width (up to 936 = twice its real size), fixed name + Join columns ---------- */
.list .ip { display: inline-flex; align-items: center; gap: 6px; background: none !important; border: 0 !important; border-image: none !important; box-shadow: none !important;
  padding: 0; height: auto; color: var(--gray); cursor: pointer; user-select: all; }
.list .ip:hover { color: var(--yellow); } .list .ip:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.list .ip svg { width: 14px; height: 14px; }
@media (min-width: 1101px) {
  .narrow-list { max-width: 1580px; }
  .narrow-list .list td.rk { width: 56px; }
  .narrow-list .list td.bn { width: auto; padding-left: 8px; }
  .narrow-list .list .bn-frame { width: 100%; max-width: 940px; margin-left: 0; }
  .narrow-list .list td.sv { width: 270px; }
  .narrow-list .list td.jn { width: 250px; }
  .narrow-list .list td.jn .btn.join { width: 200px; }
  .narrow-list .list td.jn .ip { margin-top: 8px; max-width: 100%; }
  .narrow-list .list td.jn .ip span { white-space: normal; overflow-wrap: anywhere; text-align: left; }
}
@media (min-width: 761px) and (max-width: 1100px) {
  .narrow-list .list tr { grid-template-columns: 44px minmax(0, 1fr) 250px; }
}
/* rows: see-through gray, so the top picture still fades in behind the first servers */
:root { --row: rgba(255, 255, 255, .045); --row-hi: rgba(255, 255, 255, .075); }
.top-band.tall { padding-bottom: 150px; margin-bottom: -118px; }
/* banner width: in between (about 700 at 1536 wide), list narrowed to match */
@media (min-width: 1101px) { .narrow-list { max-width: 1380px; } .narrow-list .list .bn-frame { max-width: 704px; } }
@media (min-width: 1101px) { .narrow-list { max-width: 1352px; } }
/* banner a little smaller (620 = 468 x 1.32), gamemodes under it; list narrowed so name + Join move in with it */
@media (min-width: 1101px) { .narrow-list { max-width: 1268px; } .narrow-list .list .bn-frame { max-width: 620px; } }
.modes-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; margin-top: 8px; }
.list .chip { display: inline-flex; align-items: center; gap: 6px; height: 24px; padding: 0 8px; color: var(--gray); background: rgba(255, 255, 255, .06);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .06); white-space: nowrap; }
.list .chip img { width: 16px; height: 16px; image-rendering: pixelated; }
.list .chip:hover { color: var(--yellow); background: rgba(255, 255, 255, .1); }
.list td.bn { padding-block: 12px; }
@media (max-width: 760px) { .modes-row { justify-content: flex-start; } }
/* the list always sits above the top picture: only the background fades, the row and its button stay on top and clickable */
.narrow-list { position: relative; z-index: 1; }

/* ---------- 2026-11-16 night ---------- */
/* the top picture ends above the list: #1 gets the same plain row background as the rest */
.top-band.tall { padding-bottom: 56px; margin-bottom: 0; }
/* rows a touch smaller, like one step down in GUI scale (everything in them scales together) */
.narrow-list .list { zoom: .9; }
/* long addresses stay on one line and fade out on the right */
.list .ip span, .list td.jn .ip span, .narrow-list .list td.jn .ip span { white-space: nowrap !important; overflow: hidden; text-overflow: clip; overflow-wrap: normal !important; min-width: 0; }
.list .ip { max-width: 100%; min-width: 0; }
.list .ip.long span { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 36px), transparent); }
@media (max-width: 760px) { .list td.jn { flex-wrap: nowrap !important; } .list td.jn .ip { flex: 1 1 auto; } }
@media (min-width: 761px) and (max-width: 1100px) { .narrow-list .list td.jn { flex-wrap: nowrap; } .narrow-list .list td.jn .ip { flex: 1 1 auto; } }
@media (min-width: 1101px) { .narrow-list { max-width: 1190px; } }
@media (min-width: 1101px) { .narrow-list { max-width: 1124px; } }
@media (min-width: 761px) and (max-width: 1100px) {
  .narrow-list .list tr { grid-template-columns: 44px minmax(0, 620px) 250px; justify-content: center; }
  .narrow-list .list td.jn { flex-direction: column; align-items: flex-start; flex-wrap: nowrap; }
  .narrow-list .list td.jn .ip { flex: none; width: 100%; }
}
@media (max-width: 760px) {
  .list td.jn { flex-direction: column; align-items: flex-start !important; gap: 6px !important; }
  .list td.jn .ip { flex: none; width: 100%; }
}
/* "Copied!" is short: never fade it */
.list .ip.is-copied span { -webkit-mask-image: none !important; mask-image: none !important; }
/* pages without the top picture (sign in, API, owner pages, errors): room under the top bar */
header.top + main.page { padding-top: 40px; }
@media (max-width: 760px) { header.top + main.page { padding-top: 24px; } }
/* always keep room for the scrollbar, so the top bar doesn't jump sideways between short and long pages */
html { scrollbar-gutter: stable; }
