/* ==========================================================================
   MCVote Design V6 — foundation layer.

   Stand: 2026-10-09. Gilt für alle UI-Arbeiten ab Phase G (Design V6).
   Spec: docs/design/v6/SPEC.md. Mockups: docs/design/v6/mockups/.

   This file is the V6 design-system foundation: design tokens (light +
   dark), self-hosted fonts (Space Grotesk / IBM Plex Sans / JetBrains
   Mono), the restyled sticky header, the simplified footer, and the
   light/dark theme machinery. It is intentionally additive on top of the
   V5 component styles: it redefines the :root tokens and the shell
   (header/footer) so the whole page re-themes, while the existing
   component classes (server-row, content-card, button, …) inherit the
   new tokens through the CSS custom properties they already reference.

   Theme model (SPEC §2, Update 2026-10-08):
   - Default follows prefers-color-scheme.
   - The user's choice is stored in localStorage("mcvote-theme") and
     applied to <html data-theme="light|dark"> by an inline script in the
     <head> BEFORE first paint (no flash of wrong theme).
   - The header toggle flips data-theme + localStorage.
   ========================================================================== */

/* ---- Fonts (self-hosted, display: swap) ---- */
@font-face {
  font-family: "Space Grotesk";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-500.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-600.woff2") format("woff2");
}
@font-face {
  font-family: "Space Grotesk";
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/space-grotesk-700.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-400.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-500.woff2") format("woff2");
}
@font-face {
  font-family: "IBM Plex Sans";
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/ibm-plex-sans-600.woff2") format("woff2");
}
@font-face {
  font-family: "JetBrains Mono";
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  src: url("/static/fonts/jetbrains-mono-500.woff2") format("woff2");
}

/* ---- Design tokens (SPEC §2) ----
   Dark is the default. Light overrides the same custom properties under
   [data-theme="light"]. Every component that references var(--bg),
   var(--surface), var(--text), var(--accent), … re-themes automatically.
   The V5 names are kept as aliases so existing component CSS keeps
   working; the V6 names are the canonical set. */
:root {
  /* V6 canonical tokens — dark (default) */
  --bg: #0a0d10;
  --bg2: #0f1318;
  --sf: #141920;
  --sf2: #1b222b;
  --ln: #25303b;
  --tx: #eaf0ec;
  --mu: #a3afa8;
  --ac: #4ade80;
  --ink: #052e14;
  --link: #4ade80;
  --halo: rgba(74, 222, 128, 0.18);
  --glass: rgba(16, 20, 26, 0.72);
  --grid: rgba(255, 255, 255, 0.04);
  --sh: 0 24px 60px rgba(0, 0, 0, 0.5);

  /* V6 type + geometry */
  --font: "IBM Plex Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --disp: "Space Grotesk", var(--font);
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", "Cascadia Code", Consolas, monospace;
  --px: "Silkscreen", var(--mono);
  --shell: 1200px;
  --gutter: 24px;
  --r-btn: 8px;
  --r-card: 12px;
  --r-lg: 16px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);

  /* V5 alias map — keeps existing component CSS working under V6 tokens */
  --bg-deep: var(--bg);
  --surface: var(--sf);
  --surface-solid: var(--sf);
  --surface-2: var(--sf2);
  --surface-3: var(--sf2);
  --surface-hover: color-mix(in srgb, var(--sf2) 80%, var(--tx) 6%);
  --border: var(--ln);
  --border-strong: color-mix(in srgb, var(--ln) 70%, var(--tx) 12%);
  --border-glow: var(--halo);
  --text: var(--tx);
  --text-2: var(--mu);
  --text-3: color-mix(in srgb, var(--mu) 70%, transparent);
  --accent: var(--ac);
  --accent-strong: var(--ac);
  --accent-soft: var(--halo);
  --accent-2: var(--ac);
  --accent-3: color-mix(in srgb, var(--ac) 60%, #ffffff);
  --on-accent: var(--ink);
  --danger: #ff5c72;
  --danger-bg: rgba(255, 92, 114, 0.1);
  --gold: #f5c451;
  --gold-bg: rgba(245, 196, 81, 0.12);
  --grad-accent: linear-gradient(135deg, color-mix(in srgb, var(--ac) 80%, #ffffff) 0%, var(--ac) 100%);
  --grad-text: linear-gradient(180deg, var(--tx) 0%, color-mix(in srgb, var(--tx) 70%, var(--ac)) 100%);
  --glow-accent: 0 0 0 1px var(--halo), 0 8px 30px -6px var(--halo);
  --glow-soft: 0 20px 60px -25px var(--halo);
  --shadow-card: 0 1px 2px rgba(0, 0, 0, 0.4), 0 12px 40px -20px rgba(0, 0, 0, 0.9);
}

/* Light theme overrides the same custom properties. */
[data-theme="light"] {
  --bg: #f5f7f1;
  --bg2: #ecf0e6;
  --sf: #ffffff;
  --sf2: #f0f3ec;
  --ln: #dce2d4;
  --tx: #121811;
  --mu: #556052;
  --ac: #22c55e;
  --ink: #04230f;
  --link: #15803d;
  --halo: rgba(34, 197, 94, 0.16);
  --glass: rgba(255, 255, 255, 0.82);
  --grid: rgba(18, 24, 17, 0.06);
  --sh: 0 20px 50px rgba(40, 60, 30, 0.14);
  --danger-bg: rgba(255, 92, 114, 0.08);
  --shadow-card: 0 1px 2px rgba(40, 60, 30, 0.1), 0 12px 40px -20px rgba(40, 60, 30, 0.25);
}

/* ---- Base canvas ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
  background: var(--bg);
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  position: relative;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.5;
  color: var(--tx);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

/* Ambient light — fixed, never scrolls, never intercepts clicks. */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  background:
    radial-gradient(760px 460px at 12% -6%, var(--halo), transparent 62%),
    radial-gradient(700px 420px at 88% 4%, var(--halo), transparent 60%);
}

/* Fine pixel grid, dissolving downward (V6 32px grid). */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 32px 32px;
  -webkit-mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
  mask-image: linear-gradient(to bottom, #000 0%, transparent 70%);
}

::selection { background: var(--ac); color: var(--ink); }

button { cursor: pointer; background: none; border: none; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }

main {
  position: relative;
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
  padding-bottom: 96px;
}

.skip-link {
  position: absolute;
  top: -60px;
  left: 16px;
  z-index: 200;
  padding: 11px 18px;
  border-radius: 0 0 10px 10px;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--ink);
  background: var(--ac);
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 0; }

/* ==========================================================================
   Header (V6: Logo, Servers, Tools, Widgets, Wiki, Sprache, Log in, primär
   "Add your server". Theme-Toggle. Mobile-Menü.)
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
  padding: 0 max(20px, calc((100vw - var(--shell)) / 2 + 20px));
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--ln);
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease);
}

/* Hairline of accent light under the header. */
.site-header::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--halo), transparent);
  opacity: 0.7;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: 21px;
  letter-spacing: -0.02em;
  color: var(--tx);
  flex-shrink: 0;
}
.brand:hover { text-decoration: none; }

.brand-mark {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: var(--ink);
  background: var(--grad-accent);
  box-shadow: 0 6px 20px -8px var(--halo);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.brand-mark svg { width: 19px; height: 19px; stroke-width: 2.4; }
.brand:hover .brand-mark {
  transform: translateY(-1px) rotate(-6deg);
  box-shadow: 0 10px 26px -8px var(--halo);
}
.brand-accent {
  background: var(--grad-text);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  flex: 1 1 auto;
  font-weight: 500;
}
.nav a, .footer-links a {
  color: var(--mu);
  padding: 10px 12px;
  border-radius: var(--r-btn);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover, .footer-links a:hover {
  color: var(--tx);
  background: rgba(255, 255, 255, 0.045);
  text-decoration: none;
}
[data-theme="light"] .nav a:hover, [data-theme="light"] .footer-links a:hover {
  background: rgba(18, 24, 17, 0.05);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
}

/* Theme toggle (sun/moon, 44px touch target). */
.theme-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--r-btn);
  border: 1px solid var(--ln);
  background: var(--sf);
  color: var(--tx);
  display: grid;
  place-items: center;
  transition: border-color 0.2s, background 0.2s;
}
.theme-toggle:hover { border-color: var(--ac); }
.theme-toggle svg { width: 18px; height: 18px; }
/* Show sun in dark (click -> light), moon in light (click -> dark). */
[data-theme="dark"] .icon-moon, [data-theme="light"] .icon-sun,
:root:not([data-theme]) .icon-moon { display: none; }
:root:not([data-theme]) .icon-sun { display: none; }

.locale-link {
  color: var(--mu);
  padding: 10px 4px;
  font-weight: 500;
}
.locale-link:hover { color: var(--tx); }

/* Primary CTA "Add your server". */
.nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--ac);
  color: var(--ink) !important;
  font-weight: 600;
  border-radius: 10px;
  padding: 10px 16px;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 8px 24px var(--halo);
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.nav-cta:hover { transform: translateY(-1px); text-decoration: none; }

.nav-toggle {
  width: 44px;
  height: 44px;
  border-radius: var(--r-btn);
  border: 1px solid var(--ln);
  background: var(--sf);
  color: var(--tx);
  display: none;
  place-items: center;
}
.nav-toggle svg { width: 20px; height: 20px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }

/* ==========================================================================
   Footer (V6: schlicht — About, Contact, Impressum, Datenschutz)
   ========================================================================== */
.site-footer {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
  padding: 40px 0 56px;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: space-between;
  align-items: flex-start;
  border-top: 1px solid var(--ln);
}
.site-footer strong {
  font-family: var(--disp);
  font-size: 1.1rem;
  color: var(--tx);
}
.site-footer p { max-width: 46ch; color: var(--mu); font-size: 0.92rem; margin-top: 8px; }
.footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  font-size: 0.92rem;
}

/* ==========================================================================
   Buttons + inputs (V6: 8px radius, 44px touch, single accent)
   ========================================================================== */
.button {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--r-btn);
  padding: 12px 18px;
  min-height: 44px;
  border: 1px solid var(--ln);
  background: var(--sf);
  color: var(--tx);
  transition: background 0.2s, border-color 0.2s, transform 0.2s var(--ease), box-shadow 0.25s;
}
.button:hover { border-color: var(--ac); transform: translateY(-1px); }
.button:active { transform: translateY(0); }
.button--primary {
  background: var(--ac);
  color: var(--ink);
  border-color: transparent;
  box-shadow: 0 0 0 1px rgba(0, 0, 0, 0.08) inset, 0 8px 24px var(--halo);
}
.button--primary:hover { border-color: transparent; }
.button[disabled] { opacity: 0.6; cursor: not-allowed; transform: none; }

input, select, textarea {
  font: inherit;
  color: var(--tx);
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: var(--r-btn);
  padding: 10px 12px;
  min-height: 44px;
}
input::placeholder, textarea::placeholder { color: var(--mu); }
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: var(--ac);
  box-shadow: 0 0 0 3px var(--halo);
}

/* ==========================================================================
   Scroll reveal — additive (content never hidden by default).
   ========================================================================== */
@media (prefers-reduced-motion: no-preference) {
  .server-row.is-visible,
  .stat-box.is-visible,
  .content-card.is-visible {
    animation: rise 0.5s var(--ease) both;
  }
}
@keyframes rise {
  from { opacity: 0.55; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 860px) {
  .site-header { min-height: 62px; }
  .nav-toggle { display: grid; }
  .nav {
    display: none;
    position: absolute;
    top: 62px;
    left: 0;
    right: 0;
    flex-direction: column;
    background: var(--glass);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--ln);
    padding: 8px 16px 16px;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 12px; }
  .nav-cta { display: none; }
  main, .site-footer { width: calc(100% - 28px); }
}

/* ==========================================================================
   V6 components — banner-first server cards, rank medals, sparklines,
   sticky filter bar, page-hero stats, no-banner placeholder, detail hero,
   vote box, widgets. SPEC §3/§4. These override the V5 `.server-row`
   layout with the new banner-first structure.
   ========================================================================== */

/* ---- Page hero (V6: eyebrow + H1 + lead + live stat boxes) ---- */
.page-hero { padding: 44px 0 8px; }
.page-hero h1 {
  margin-top: 14px;
  font-family: var(--disp);
  font-weight: 700;
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
  line-height: 1.05;
}
.page-hero .eyebrow-text { color: var(--link); }
.page-hero__stats {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.page-hero__stat {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 14px;
  padding: 12px 18px;
  min-width: 130px;
}
.page-hero__stat b {
  display: block;
  font-family: var(--disp);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.1;
}
.page-hero__stat span { font-size: 12px; color: var(--mu); }

/* ---- Sticky filter bar (V6) ---- */
.filter-bar {
  position: sticky;
  top: 0;
  z-index: 3;
  background: var(--glass);
  backdrop-filter: blur(14px) saturate(150%);
  -webkit-backdrop-filter: blur(14px) saturate(150%);
  border-bottom: 1px solid var(--ln);
  padding: 12px 0;
}
.filter-bar__inner {
  width: min(var(--shell), calc(100% - 40px));
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}
.filter-bar__search {
  flex: 1 1 220px;
  min-width: 0;
  width: auto;
}
.filter-seg {
  display: inline-flex;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 10px;
  padding: 3px;
}
.filter-seg__opt {
  border: 0;
  border-radius: 8px;
  padding: 8px 14px;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  min-height: 38px;
  background: transparent;
  color: var(--mu);
  text-decoration: none;
}
.filter-seg__opt:hover { color: var(--tx); }
.filter-seg__opt.is-active { background: var(--ac); color: var(--ink); }
.filter-bar select {
  flex: 0 0 auto;
  min-height: 44px;
  font-size: 14px;
}

/* ---- Banner-first server card (V6) ---- */
.server-card {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s, box-shadow 0.25s, transform 0.2s var(--ease);
}
.server-card:hover { border-color: color-mix(in srgb, var(--ln) 60%, var(--ac)); }
.server-card.is-rank1 {
  border-color: rgba(245, 196, 81, 0.45);
  box-shadow: 0 18px 50px rgba(245, 196, 81, 0.12);
}

/* Left: banner stage (bg2 + blurred glow of the banner's own colour). */
.server-card__stage {
  position: relative;
  flex: 1 1 540px;
  min-width: 0;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  background: var(--bg2);
  overflow: hidden;
}
.server-card__glow {
  position: absolute;
  inset: 0;
  background: var(--glow, transparent);
  opacity: 0.16;
  filter: blur(30px);
  pointer-events: none;
}
.server-card__stage-top {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
}
/* Rank medal — 1/2/3 gold/silver/bronze with a bottom inset "block" edge. */
.server-card__medal {
  flex: 0 0 auto;
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-size: 20px;
  font-weight: 700;
  box-shadow: inset 0 -5px 0 rgba(0, 0, 0, 0.2);
}
.server-card__medal.is-gold { background: #f5c451; color: #3a2a05; }
.server-card__medal.is-silver { background: #d6dce2; color: #1f2933; }
.server-card__medal.is-bronze { background: #d9925b; color: #3a1c05; }
.server-card__medal.is-neutral { background: var(--sf2); color: var(--tx); }

/* The banner itself (468:60) with its own tight glow + name placeholder. */
.server-card__banner {
  position: relative;
  flex: 1 1 auto;
  min-width: 0;
}
.server-card__banner-glow {
  position: absolute;
  inset: 10px 6% -8px;
  background: var(--glow, transparent);
  filter: blur(18px);
  opacity: 0.5;
  pointer-events: none;
}
.server-card__banner-frame {
  position: relative;
  display: flex;
  align-items: center;
  aspect-ratio: 468 / 60;
  border-radius: 8px;
  padding: 0 18px;
  gap: 10px;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.08) inset;
  overflow: hidden;
  background: var(--sf2);
}
.server-card__banner-frame.is-ph {
  background:
    repeating-linear-gradient(135deg, var(--sf2) 0 12px, color-mix(in srgb, var(--sf2) 82%, var(--tx) 6%) 12px 24px);
}
.server-card__banner-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  image-rendering: pixelated;
}
.server-card__banner-ph {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  font-family: var(--disp);
  color: var(--tx);
}
.server-card__banner-ph b {
  font-size: 20px;
  letter-spacing: 0.02em;
  text-shadow: 2px 2px 0 rgba(0, 0, 0, 0.35);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.server-card__banner-ph span {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--mu);
  flex: 0 0 auto;
}
.server-card__stage-meta {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-left: 62px;
}
.server-card__stage-meta .copy-btn,
.server-card__stage-meta .ver-chip {
  min-height: 40px;
}
.server-card__stage-meta .copy-btn {
  background: var(--sf);
  border: 1px solid var(--ln);
  border-radius: 8px;
  padding: 0 12px;
  font-family: var(--mono);
  font-size: 14px;
  color: var(--tx);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.server-card__stage-meta .copy-btn:hover { border-color: var(--ac); }
.server-card__stage-meta .ver-chip {
  background: transparent;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--mu);
  display: inline-flex;
  align-items: center;
}

/* Right: main info column. */
.server-card__body {
  flex: 1 1 400px;
  min-width: 0;
  padding: 18px 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  justify-content: center;
}
.server-card__head {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.server-card__icon {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--glow, var(--sf2));
  box-shadow: inset 0 -4px 0 rgba(0, 0, 0, 0.25);
  overflow: hidden;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  font-family: var(--disp);
  font-weight: 700;
  color: var(--tx);
}
.server-card__icon img { width: 100%; height: 100%; object-fit: cover; }
.server-card__name {
  font-family: var(--disp);
  font-weight: 700;
  font-size: 21px;
  color: var(--tx);
  margin-right: 4px;
}
.server-card__name:hover { color: var(--link); text-decoration: none; }
.server-card__motd {
  margin: 0;
  color: var(--mu);
  font-size: 14px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.server-card__tags { display: flex; flex-wrap: wrap; gap: 6px; }
.server-card__foot {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}
.server-card__metric { font-size: 14px; color: var(--mu); }
.server-card__metric b {
  font-family: var(--disp);
  color: var(--tx);
  font-size: 18px;
  font-weight: 700;
}
.server-card__spark { display: inline-flex; align-items: center; }
.server-card__spark svg { display: block; }
.server-card__foot .button { margin-left: auto; }

/* Offline sink: dim the card and mark it. */
.server-card.is-offline .server-card__stage { opacity: 0.92; }

/* ---- Mobile: banner full width on top, info below ---- */
@media (max-width: 640px) {
  .server-card__stage, .server-card__body { flex: 1 1 100%; }
  .server-card__stage-meta { padding-left: 0; }
  .server-card__foot .button { margin-left: 0; width: 100%; justify-content: center; }
}

/* ---- Page hero row (lead + stat boxes side by side) ---- */
.page-hero__row {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: flex-end;
  justify-content: space-between;
}
.page-hero__lead { flex: 1 1 420px; min-width: 0; }
.page-hero .notice { margin-top: 16px; }

/* ---- Add-your-server section (V6: out of the list hero) ---- */
.add-server-card__lead { color: var(--mu); margin-bottom: 18px; max-width: 60ch; }
.add-server-form {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: stretch;
}
.add-server-form input[type="text"] { flex: 1 1 260px; min-width: 0; }
.add-server-form select { flex: 0 0 auto; }
.add-server-form .button { flex: 0 0 auto; }
@media (max-width: 560px) {
  .add-server-form input[type="text"], .add-server-form .button { flex: 1 1 100%; }
}
