:root {
  --ground: #f0f2f6;
  --surface: #ffffff;
  --inset: #f6f8fa;

  --accent: #58678c;
  --accent-2: #7b8bb9;
  --accent-deep: #47547a;

  --success: #3ba61c;
  --success-soft: #eaf6e6;
  --warn: #f1921a;
  --danger: #f12a1a;

  --ink: #494949;
  --ink-strong: #23262e;
  --muted: #7b8296;
  --border: #c7dcdf;
  --hair: #e6ecee;

  --sponsor-bg: #f3f8f2;

  --r: 8px;
  --r-sm: 6px;
  --shadow: 0 2px 6px rgba(35, 38, 46, .08);
  --shadow-lift: 0 8px 18px rgba(35, 38, 46, .13);

  --f-head: "Montserrat", "Segoe UI", Arial, sans-serif;
  --f-body: "Lato", "Segoe UI", Arial, sans-serif;
  --f-mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}

:root[data-accent="green"] {
  --accent: #4a8c5f;
  --accent-2: #7bb98d;
  --accent-deep: #3c7450;

  --success: #2f7d13;
  --success-soft: #e9f4e4;

  --border: #c8dfcd;
  --hair: #e4eee6;
  --inset: #f5f9f6;
  --ground: #eff4f0;
  --sponsor-bg: #f2f8f3;
}

* { box-sizing: border-box; }
html, body { height: 100%; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  line-height: 1.55;
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

h1, h2, h3, h4 {
  font-family: var(--f-head);
  font-weight: 700;
  line-height: 1.18;
  color: var(--ink-strong);
  text-wrap: balance;
  margin: 0 0 14px;
}
h1 { font-size: clamp(28px, 4vw, 40px); }
h2 { font-size: clamp(21px, 2.6vw, 28px); }
h3 { font-size: 19px; }
h4 { font-size: 16px; }

p { margin: 0 0 16px; }
a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--success); }
img { max-width: 100%; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 18px; }
main { flex: 1 0 auto; padding: 30px 0 64px; }

/* header */
.site-header { background: var(--surface); border-bottom: 2px solid var(--border); box-shadow: var(--shadow); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 82px; flex-wrap: wrap; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-family: var(--f-head); font-weight: 700; font-size: 20px; color: var(--ink-strong); }
.logo:hover { color: var(--ink-strong); }
.logo img { width: 34px; height: 34px; border-radius: var(--r-sm); }
.logo .logo-green { color: var(--success); }

.site-nav { display: flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.site-nav a {
  font-family: var(--f-head); font-weight: 600; font-size: 15px;
  color: var(--accent); padding: 10px 14px; border-radius: var(--r-sm);
}
.site-nav a:hover, .site-nav a[aria-current="page"] { background: var(--accent); color: #fff; }

.nav-search { display: flex; }
.nav-search input {
  height: 42px; width: 176px;
  border: 2px solid var(--border); border-right: 0;
  border-radius: var(--r) 0 0 var(--r);
  padding: 0 13px; font: inherit; font-size: 15px;
  background: var(--inset); color: var(--ink);
}
.nav-search input:focus { outline: none; border-color: var(--accent); }
.nav-search button {
  height: 42px; border: 0; border-radius: 0 var(--r) var(--r) 0;
  background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 14px;
  padding: 0 17px; cursor: pointer; transition: background .2s ease;
}
.nav-search button:hover { background: var(--success); }

/* breadcrumbs */
.crumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 16px; }
.crumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: 7px; margin: 0; padding: 0; }
.crumbs li::after { content: "/"; margin-left: 7px; color: var(--border); }
.crumbs li:last-child::after { content: ""; }
.crumbs a { color: var(--muted); }
.crumbs a:hover { color: var(--accent); }

/* page head */
.page-head { margin-bottom: 22px; max-width: 800px; }
.intro { font-size: 17.5px; color: var(--muted); margin-bottom: 0; }

.answer-box {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 5px solid var(--success);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  padding: 16px 20px;
  margin: 22px 0 6px;
}
.answer-box p { margin: 0; font-size: 16.5px; }
.answer-box strong { color: var(--ink-strong); font-weight: 700; }

.list-head { display: flex; align-items: baseline; justify-content: space-between; gap: 14px; flex-wrap: wrap; margin: 30px 0 14px; }
.list-head h2 { margin: 0; }
.updated { font-family: var(--f-head); font-size: 12.5px; color: var(--muted); }

/* ---------- server row ---------- */
.server-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }

.server-row {
  display: grid;
  grid-template-columns: 52px 64px minmax(260px, 468px) minmax(0, 1fr) 132px;
  align-items: center;
  gap: 16px;
  padding: 13px 18px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--r);
  box-shadow: var(--shadow);
  transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease;
}
.server-row:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); }

.cell-rank { display: flex; align-items: baseline; gap: 2px; justify-content: center; font-family: var(--f-head); font-weight: 700; color: var(--accent); }
.rank-hash { font-size: 13px; opacity: .55; }
.rank-num { font-size: 28px; letter-spacing: -.02em; }
.rank-star { width: 26px; height: 26px; }

.cell-icon { display: block; width: 64px; height: 64px; flex-shrink: 0; }
.cell-icon img {
  width: 64px; height: 64px;
  object-fit: cover;
  image-rendering: pixelated;
  border-radius: var(--r-sm);
  background: var(--inset);
  border: 1px solid var(--hair);
}

.cell-banner { display: block; width: 100%; }
.cell-banner img {
  display: block;
  width: 100%;
  max-width: 468px;
  height: auto;
  aspect-ratio: 468 / 60;
  object-fit: cover;
  border-radius: var(--r-sm);
}

.cell-info { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.name-line { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; }
.server-name {
  font-family: var(--f-head); font-weight: 700; font-size: 17px;
  color: var(--ink-strong);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 100%;
}
.server-name:hover { color: var(--accent); }
.star-block { margin-bottom: 18px; }
.star-block .server-list { margin-bottom: 0; }

.tag-row { display: flex; flex-wrap: wrap; gap: 5px; }
.tag {
  font-family: var(--f-head); font-size: 11.5px; font-weight: 600;
  color: var(--muted); background: var(--inset);
  border: 1px solid var(--border); border-radius: 4px;
  padding: 2px 8px; line-height: 1.5;
}
.tag:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.tag-more { border-style: dashed; }

.meta-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.ip-pill {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--inset); border: 1px solid var(--border);
  border-radius: var(--r-sm); padding: 5px 10px;
  font-family: var(--f-mono); font-size: 13px; color: var(--ink);
  cursor: pointer; transition: background .15s ease, color .15s ease, border-color .15s ease;
  max-width: 100%;
}
.ip-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.ip-pill .ip-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ip-pill .ip-icon { opacity: .6; font-size: 12px; }

.players-pill {
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--inset); border: 1px solid var(--hair);
  border-radius: var(--r-sm); padding: 5px 10px;
  font-size: 13px; color: var(--muted);
}
.players-pill b { font-family: var(--f-head); font-size: 14px; color: var(--ink-strong); }
.dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.dot.live { background: var(--success); animation: pulse 1.6s ease-out infinite; }
.dot.stale { background: var(--warn); }
.dot.down { background: var(--danger); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(59, 166, 28, .55); }
  70% { box-shadow: 0 0 0 8px rgba(59, 166, 28, 0); }
  100% { box-shadow: 0 0 0 0 rgba(59, 166, 28, 0); }
}

.meta-pill {
  display: inline-flex; align-items: center; gap: 5px;
  background: var(--inset); border: 1px solid var(--hair);
  border-radius: var(--r-sm); padding: 5px 10px;
  font-size: 13px; color: var(--muted);
}
.meta-pill b { font-family: var(--f-head); font-size: 13.5px; color: var(--ink-strong); }
a.meta-pill:hover { background: var(--accent); border-color: var(--accent); color: #fff; }

.sort-tabs {
  display: flex; flex-wrap: wrap; gap: 6px;
  margin: 30px 0 8px; padding-bottom: 10px;
  border-bottom: 1px solid var(--hair);
}
.sort-tab {
  font-family: var(--f-head); font-size: 13.5px; font-weight: 600;
  color: var(--accent); background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 13px; line-height: 1.4;
}
.sort-tab:hover { background: var(--accent); border-color: var(--accent); color: #fff; }
.sort-tab.is-current {
  background: var(--accent); border-color: var(--accent); color: #fff;
  cursor: default;
}
.sort-note { margin: 0 0 4px; font-size: 13.5px; color: var(--muted); }

.toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 34px; }
.toc li { margin-bottom: 5px; break-inside: avoid; }
@media (max-width: 700px) { .toc ol { columns: 1; } }

.cell-cta { display: flex; justify-content: flex-end; }
.copy-cta { width: 100%; }

.server-row.starred { background: var(--sponsor-bg); border-color: var(--success); }
.server-row.starred:hover { border-color: var(--success); }
.rank-star { filter: drop-shadow(0 1px 1px rgba(0, 0, 0, .18)); }

/* pagination */
.pagination { display: flex; flex-wrap: wrap; gap: 4px; justify-content: center; align-items: center; margin: 24px 0; }
.pagination a, .pagination span { font-family: var(--f-head); font-weight: 600; font-size: 15px; padding: 8px 13px; border-radius: var(--r-sm); color: var(--ink); }
.pagination a:hover { background: var(--accent); color: #fff; }
.pagination .current { background: var(--border); }
.pagination .next { background: var(--ink-strong); color: #fff; }
.pagination .next:hover { background: var(--accent); }
.count-line { font-family: var(--f-head); font-size: 16px; color: var(--muted); text-align: center; margin-bottom: 30px; }

/* panels */
.panel { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 24px; margin-bottom: 22px; }
.panel h2 { margin-top: 0; }
.grid-2 { display: grid; grid-template-columns: 2fr 1fr; gap: 22px; align-items: start; }
.grid-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }

.mode-card { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); padding: 16px; display: block; color: var(--ink); transition: border-color .15s ease, transform .15s ease, box-shadow .15s ease; }
.mode-card:hover { border-color: var(--accent); transform: translateY(-2px); box-shadow: var(--shadow-lift); color: var(--ink); }
.mode-card h3 { margin-bottom: 3px; font-size: 17px; }
.mode-card .n { font-family: var(--f-head); font-size: 12.5px; font-weight: 600; color: var(--success); }
.mode-card p { font-size: 14px; margin: 7px 0 0; color: var(--muted); }

/* buttons */
.button {
  display: inline-block; border: 0; border-radius: var(--r-sm);
  background: var(--accent); color: #fff;
  font-family: var(--f-head); font-weight: 600; font-size: 14.5px;
  padding: 10px 16px; cursor: pointer; text-align: center;
  transition: background .2s ease;
}
.button:hover { background: var(--success); color: #fff; }
.button.lg { font-size: 17px; padding: 14px 22px; width: 100%; }
.button.green { background: var(--success); }
.button.green:hover { background: var(--accent); }
.button[disabled] { background: #ccc; cursor: not-allowed; }

/* forms */
.field { margin-bottom: 18px; }
.field label { display: block; font-family: var(--f-head); font-weight: 600; font-size: 15px; color: var(--ink-strong); margin-bottom: 6px; }
.field .hint { font-size: 13.5px; color: var(--muted); margin: 6px 0 0; }
.field input[type="text"], .field input[type="email"], .field input[type="password"], .field input[type="url"], .field textarea, .field select {
  width: 100%; background: var(--inset); border: 2px solid var(--border);
  border-radius: var(--r-sm); padding: 11px 13px; font: inherit; color: var(--ink);
}
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--accent); }
.check { display: flex; gap: 10px; align-items: flex-start; }
.check label { font-weight: 400; font-size: 15px; font-family: var(--f-body); }
.check input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--accent); }

.notice { border: 2px solid; border-radius: var(--r-sm); padding: 13px 16px; margin-bottom: 18px; }
.notice.error { background: #fdecea; border-color: var(--danger); color: #8c1a10; }
.notice.ok { background: var(--success-soft); border-color: var(--success); color: #24610f; }
.notice ul { margin: 8px 0 0; padding-left: 20px; }

/* signup */
.auth-split { display: grid; grid-template-columns: 1.05fr .95fr; border: 2px solid var(--border); border-radius: var(--r); box-shadow: var(--shadow); overflow: hidden; }
.auth-form { background: var(--surface); padding: 30px; }
.auth-aside { background: var(--accent); color: #fff; padding: 30px; }
.auth-aside h2, .auth-aside h3 { color: #fff; }
.auth-aside ul { list-style: none; margin: 0; padding: 0; }
.auth-aside li { padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.18); display: flex; gap: 11px; align-items: flex-start; }
.auth-aside li:last-child { border-bottom: 0; }
.auth-aside .tick { color: #b9f0a4; font-weight: 700; }
.auth-aside .stat-strip { display: flex; gap: 24px; margin-top: 20px; }
.auth-aside .stat-strip b { display: block; font-family: var(--f-head); font-size: 24px; }
.auth-aside .stat-strip span { font-size: 12.5px; opacity: .85; }

/* faq */
.faq-item { background: var(--surface); border: 2px solid var(--border); border-radius: var(--r-sm); margin-bottom: 9px; }
.faq-item summary { cursor: pointer; padding: 14px 17px; font-family: var(--f-head); font-weight: 600; font-size: 16px; color: var(--ink-strong); list-style: none; display: flex; justify-content: space-between; gap: 14px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--accent); font-size: 19px; line-height: 1; }
.faq-item[open] summary::after { content: "\2013"; }
.faq-item .answer { padding: 0 17px 15px; }
.faq-item .answer p { margin: 0; color: var(--muted); }

/* server page */
.server-hero { display: grid; grid-template-columns: 1fr 320px; gap: 22px; align-items: start; }
.statbox { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.statbox div { background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm); padding: 10px; text-align: center; }
.statbox .k { font-family: var(--f-head); font-size: 11px; color: var(--muted); display: block; }
.statbox .v { font-family: var(--f-head); font-weight: 700; font-size: 18px; color: var(--ink-strong); }
.statbox .v.online { color: var(--success); }
.statbox .v.offline { color: var(--danger); }
.embed-box textarea { width: 100%; font-family: var(--f-mono); font-size: 11.5px; height: 74px; }

/* footer */
.site-footer { background: var(--accent); color: #fff; margin-top: auto; font-family: var(--f-head); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 14px; justify-content: space-between; align-items: center; padding-top: 18px; padding-bottom: 18px; }
.site-footer a { color: #fff; font-size: 14px; padding: 7px 12px; border-radius: var(--r-sm); }
.site-footer a:hover { background: var(--ink-strong); color: #fff; }
.site-footer .disclaimer { font-family: var(--f-body); font-size: 13.5px; max-width: 580px; line-height: 1.45; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 2px; }
.footer-count { width: 100%; font-size: 13.5px; border-top: 1px solid rgba(255,255,255,.22); padding-top: 13px; }

.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* gamemode strip */
.mode-strip { display: flex; align-items: center; gap: 6px; margin: 0 0 18px; }
.strip-track {
  display: flex; gap: 8px; overflow-x: auto; scroll-behavior: smooth;
  scrollbar-width: none; -ms-overflow-style: none; padding: 2px;
}
.strip-track::-webkit-scrollbar { display: none; }
.strip-chip {
  flex: 0 0 auto; background: var(--surface); border: 2px solid var(--border);
  border-radius: 999px; padding: 7px 14px; font-family: var(--f-head); font-weight: 600;
  font-size: 14px; color: var(--accent); white-space: nowrap;
  transition: border-color .15s ease, color .15s ease;
}
.strip-chip:hover { border-color: var(--success); color: var(--success); }
.strip-chip.on { border-color: var(--accent); background: var(--accent); color: #fff; }
.strip-chip.on:hover { color: #fff; }
.strip-n { font-weight: 400; opacity: .62; font-size: 12.5px; }
.strip-all { border-style: dashed; }
.strip-arrow {
  flex: 0 0 auto; width: 32px; height: 32px; border: 2px solid var(--border);
  background: var(--surface); border-radius: 999px; cursor: pointer;
  font-size: 17px; line-height: 1; color: var(--accent); font-family: var(--f-head);
}
.strip-arrow:hover { border-color: var(--success); color: var(--success); }

/* info blocks */
.info-panel h3 { font-size: 17px; margin: 20px 0 6px; }
.info-panel h3:first-of-type { margin-top: 0; }
.info-panel p { color: var(--ink); }
.info-links { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--hair); font-size: 14.5px; }

/* blog + guides */
.blog-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 22px; align-items: start; }
.blog-side { display: grid; gap: 18px; }
.post-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.post-card {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 18px 20px;
}
.post-card h3 { font-size: 21px; margin: 4px 0 8px; }
.post-card p { margin: 0 0 12px; color: var(--ink); }
.post-meta { font-size: 13px; color: var(--muted); font-family: var(--f-head); font-weight: 600; }
.dot-sep { margin: 0 6px; opacity: .55; }
.read-on { font-family: var(--f-head); font-weight: 700; font-size: 14px; }
.article { max-width: 100%; }
.prose h2 { margin-top: 30px; }
.prose h2:first-child { margin-top: 0; }
.prose ul, .prose ol { margin: 0 0 16px; padding-left: 22px; }
.prose li { margin-bottom: 7px; }
.prose pre {
  background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 14px; overflow-x: auto; font-family: var(--f-mono); font-size: 13px;
}
.prose code { font-family: var(--f-mono); font-size: 13.5px; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { padding: 6px 0; border-bottom: 1px solid var(--hair); font-size: 14.5px; }
.plain-list li:last-child { border-bottom: 0; }

/* calendar */
.cal-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.cal-head h2 { margin: 0; font-size: 17px; }
.cal-nav {
  width: 28px; height: 28px; border: 2px solid var(--border); border-radius: 999px;
  display: inline-flex; align-items: center; justify-content: center; font-size: 15px;
}
.cal-nav:hover { border-color: var(--success); }
.calendar { width: 100%; border-collapse: collapse; margin: 12px 0 0; font-size: 13px; }
.calendar th { font-family: var(--f-head); font-size: 11.5px; color: var(--muted); padding: 4px 0; font-weight: 600; }
.calendar td { text-align: center; padding: 5px 0; color: var(--muted); border-radius: var(--r-sm); }
.calendar td.cal-empty { color: transparent; }
.calendar td.cal-has { background: var(--success-soft); }
.calendar td.cal-has a { font-weight: 700; color: var(--success); display: block; }
.cal-note { font-size: 12.5px; color: var(--muted); margin: 12px 0 0; }

/* data tables */
.scroll-x { overflow-x: auto; }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { border: 1px solid var(--hair); padding: 7px 10px; text-align: left; vertical-align: top; }
.data-table thead th { background: var(--inset); font-family: var(--f-head); font-size: 13px; }
.data-table code { font-family: var(--f-mono); font-size: 12.5px; }
.soft { color: var(--muted); }

@media (max-width: 980px) {
  .blog-layout { grid-template-columns: 1fr; }
}

@media (max-width: 1080px) {
  .server-row { grid-template-columns: 44px 64px minmax(200px, 360px) minmax(0, 1fr); }
  .cell-cta { display: none; }
}

@media (max-width: 820px) {
  .server-row {
    grid-template-columns: 52px minmax(0, 1fr);
    grid-template-areas: "banner banner" "rank info";
    gap: 12px;
    padding: 0 0 13px;
  }
  .cell-banner { grid-area: banner; }
  .cell-banner img { border-radius: var(--r-sm) var(--r-sm) 0 0; }
  .cell-rank { grid-area: rank; padding-left: 12px; }
  .cell-info { grid-area: info; padding-right: 12px; }
  .cell-icon { display: none; }
  .grid-2, .server-hero, .auth-split { grid-template-columns: 1fr; }
  .site-header .wrap { min-height: 0; padding-top: 11px; padding-bottom: 11px; }
  .nav-search input { width: 140px; }
}

/* add-server form, laid out like minecraftservers.org's */
.form-legend { text-align: center; color: var(--muted); font-size: 14px; margin: 0 0 22px; }
.req { color: #c0392b; font-weight: 700; }
.form-panel h2 { font-size: 19px; margin: 28px 0 14px; padding-top: 18px; border-top: 1px solid var(--hair); }
.form-panel h2:first-of-type { margin-top: 0; padding-top: 0; border-top: 0; }
.field-group {
  border: 2px solid var(--border); border-radius: var(--r); padding: 18px 18px 4px;
  margin: 0 0 18px; background: var(--inset);
}
.field-group legend {
  font-family: var(--f-head); font-weight: 700; font-size: 17px; color: var(--ink-strong);
  padding: 0 8px;
}
.field-group > .hint { margin: 0 0 16px; }
.check-field label { display: flex; align-items: center; gap: 10px; cursor: pointer; margin-bottom: 0; }
.check-field input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.tag-count, .char-count { font-family: var(--f-head); font-weight: 600; font-variant-numeric: tabular-nums; }
.tag-count.over, .char-count.near { color: #c0392b; }

/* compact banner list: similar servers, blog picks, post-vote block */
.mini-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.mini-row {
  display: grid; align-items: center; gap: 12px;
  grid-template-columns: 34px 234px minmax(90px, 1fr) auto auto;
  background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 7px 12px;
}
.mini-row.starred { background: var(--success-soft); }
.mini-rank {
  font-family: var(--f-head); font-weight: 700; font-size: 14px; color: var(--muted);
  font-variant-numeric: tabular-nums; display: flex; align-items: center;
}
.mini-banner { display: block; line-height: 0; }
.mini-banner img {
  width: 234px; height: 30px; object-fit: contain; background: #1a1a1a;
  border-radius: 2px; display: block;
}
.mini-name { font-family: var(--f-head); font-weight: 700; font-size: 15px; min-width: 0; }
.mini-name a { color: var(--ink-strong); text-decoration: none; }
.mini-name a:hover { color: var(--success); text-decoration: underline; }
.mini-row .mini-ip { font-size: 12.5px; padding: 4px 8px; }
.mini-players { font-size: 13px; color: var(--muted); white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.similar-mini h2, .live-picks h2 { margin-top: 0; }
.live-picks .hint { margin: 0 0 14px; }

/* post-vote confirmation */
.vote-done {
  background: var(--surface); border: 2px solid var(--border); border-radius: var(--r);
  box-shadow: var(--shadow); padding: 40px 28px; text-align: center; margin-bottom: 22px;
}
.vote-done-mark {
  width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--success); color: #fff;
  font-size: 42px; line-height: 76px; font-weight: 700;
}
.vote-done h1 { margin: 0 0 10px; }
.vote-done-lead { font-size: 18px; color: var(--ink); max-width: 46em; margin: 0 auto 26px; }
.vote-done-facts {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 22px;
}
.vote-done-facts > div {
  background: var(--inset); border: 1px solid var(--border); border-radius: var(--r-sm);
  padding: 12px 22px; min-width: 150px;
}
.vote-done-facts .k {
  display: block; font-size: 12.5px; text-transform: uppercase; letter-spacing: .04em;
  color: var(--muted); font-family: var(--f-head); font-weight: 600; margin-bottom: 4px;
}
.vote-done-facts .v {
  display: block; font-family: var(--f-head); font-weight: 700; font-size: 20px;
  color: var(--ink-strong); font-variant-numeric: tabular-nums;
}
.vote-done-note { color: var(--muted); font-size: 14.5px; max-width: 46em; margin: 0 auto 24px; }
.vote-done-actions {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 20px;
}
.vote-done-actions .button { width: auto; min-width: 240px; }
.vote-done-links { font-size: 14.5px; }

.button.discord { background: #5865f2; }
.button.discord:hover { background: #4752c4; color: #fff; }
.vote-discord {
  margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--hair);
}
.vote-discord p { margin: 0 0 10px; font-size: 14.5px; color: var(--muted); }

@media (max-width: 860px) {
  .mini-row { grid-template-columns: 30px 1fr auto; row-gap: 8px; }
  .mini-banner { grid-column: 1 / -1; order: 3; }
  .mini-banner img { width: 100%; max-width: 234px; }
  .vote-done { padding: 28px 18px; }
  .vote-done-actions .button { width: 100%; min-width: 0; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
  .server-row:hover, .mode-card:hover { transform: none; }
}
