/* =====================================================================
   Pixel Pioniere – Design-System
   Abenteuer-Look: Himmel, Pixel-Wolken, Gras/Erde-Kante, goldene Akzente
   ===================================================================== */

/* ---------- Tokens: Hell ---------- */
:root {
  color-scheme: light;
  --bg: #f5f1e8;
  --bg-2: #ece6d8;
  --surface: #fffdf8;
  --surface-2: #f2ede2;
  --surface-3: #e7e0d1;
  --text: #1c1f24;
  --text-2: #4c535c;
  --muted: #747a83;
  --border: rgba(40, 30, 10, 0.11);
  --border-strong: rgba(40, 30, 10, 0.2);
  --grid: #e5dfd2;
  --axis: #c9c1b0;

  --accent: #f2b33d;
  --accent-hover: #f6c15a;
  --accent-shade: #b87d16;
  --accent-ink: #2a1a00;
  --accent-text: #9a6409;
  --grass: #5aa832;
  --grass-dark: #3f7f22;
  --dirt: #8a5a32;
  --dirt-dark: #6b4424;

  --series: #2a78d6;
  --series-fill: rgba(42, 120, 214, 0.14);
  --good: #0ca30c;
  --good-text: #006300;
  --warning: #fab219;
  --critical: #d03b3b;
  --none: #e1dbcd;
  --discord: #5865f2;

  /* Himmel */
  --sky-top: #4ea6ec;
  --sky-mid: #8ccbf5;
  --sky-bottom: #c9e8fb;
  --sky-text: #0d2238;
  --sky-text-2: #22405e;
  --cloud: #ffffff;
  --cloud-shade: #dbeefb;
  --stars: 0;

  --shadow-sm: 0 1px 2px rgba(60, 40, 10, 0.06);
  --shadow: 0 1px 2px rgba(60, 40, 10, 0.05), 0 8px 24px rgba(60, 40, 10, 0.07);
  --shadow-lg: 0 2px 4px rgba(0, 0, 0, 0.06), 0 18px 48px rgba(20, 40, 70, 0.18);
  --radius: 16px;
  --radius-sm: 10px;
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;
  --mono: ui-monospace, "Cascadia Code", "SF Mono", Consolas, monospace;
  --header-h: 68px;
}

/* ---------- Tokens: Dunkel ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg: #0d131a; --bg-2: #111922; --surface: #16202b; --surface-2: #1d2936; --surface-3: #253343;
    --text: #edf1f5; --text-2: #b3bfcb; --muted: #8492a2;
    --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
    --grid: #243140; --axis: #34424f;
    --accent-text: #f2b33d;
    --series: #3987e5; --series-fill: rgba(57, 135, 229, 0.2);
    --good-text: #2fc42f; --none: #26323f;
    --sky-top: #070d1f; --sky-mid: #13284a; --sky-bottom: #1f4470;
    --sky-text: #f2f6fb; --sky-text-2: #b9cbe0;
    --cloud: #3b5476; --cloud-shade: #2c4363; --stars: 1;
    --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,0.03) inset; --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0d131a; --bg-2: #111922; --surface: #16202b; --surface-2: #1d2936; --surface-3: #253343;
  --text: #edf1f5; --text-2: #b3bfcb; --muted: #8492a2;
  --border: rgba(255, 255, 255, 0.08); --border-strong: rgba(255, 255, 255, 0.16);
  --grid: #243140; --axis: #34424f;
  --accent-text: #f2b33d;
  --series: #3987e5; --series-fill: rgba(57, 135, 229, 0.2);
  --good-text: #2fc42f; --none: #26323f;
  --sky-top: #070d1f; --sky-mid: #13284a; --sky-bottom: #1f4470;
  --sky-text: #f2f6fb; --sky-text-2: #b9cbe0;
  --cloud: #3b5476; --cloud-shade: #2c4363; --stars: 1;
  --shadow-sm: none; --shadow: 0 1px 0 rgba(255,255,255,0.03) inset; --shadow-lg: 0 18px 48px rgba(0, 0, 0, 0.45);
}

/* ---------- Basis ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; display: flex; flex-direction: column;
  background: var(--bg); color: var(--text);
  font: 16px/1.55 var(--font); -webkit-font-smoothing: antialiased;
}
main { flex: 1; }
a { color: var(--series); text-underline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.15; margin: 0; letter-spacing: -0.015em; }
p { margin: 0; }
img { max-width: 100%; }
code { font-family: var(--mono); font-size: 0.88em; background: var(--surface-2); padding: 0.12em 0.4em; border-radius: 6px; }
.pixel { image-rendering: pixelated; }
.muted { color: var(--muted); }
.small { font-size: 0.85rem; }
.center { text-align: center; justify-content: center; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--series); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 100; background: var(--surface); padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 8px; }

.wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.section { padding-top: 56px; display: flex; flex-direction: column; gap: 22px; }
.page-body { display: flex; flex-direction: column; gap: 20px; padding-top: 28px; padding-bottom: 72px; }
.page-narrow { max-width: 820px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 380px), 1fr)); gap: 20px; }
main > .section:last-child { padding-bottom: 72px; }

.eyebrow { display: inline-block; font-size: 0.78rem; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent-text); }
.section-intro { display: flex; flex-direction: column; gap: 6px; }
.section-intro.row { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 12px; flex-wrap: wrap; }
.section-intro h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 800; }
.text-link { color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.9rem; white-space: nowrap; }
.text-link:hover { color: var(--accent-text); }

/* ---------- Karten ---------- */
.card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; box-shadow: var(--shadow); min-width: 0;
}
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.card-title { font-size: 1.1rem; font-weight: 750; }
.card > .card-title { margin-bottom: 16px; }
.empty { color: var(--muted); }
.empty-card { text-align: center; padding: 48px 24px; display: flex; flex-direction: column; align-items: center; gap: 8px; }
.empty-icon { font-size: 2.4rem; }
.notice { background: var(--surface-2); border: 1px solid var(--border); border-left: 4px solid var(--accent); padding: 10px 14px; border-radius: var(--radius-sm); color: var(--text-2); font-size: 0.92rem; }
.hint { margin-top: 14px; background: var(--surface-2); border-radius: var(--radius-sm); padding: 10px 14px; font-size: 0.9rem; color: var(--text-2); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in srgb, var(--bg) 82%, transparent);
  backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--border);
}
.header-inner { display: flex; align-items: center; gap: 20px; height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 11px; color: var(--text); text-decoration: none; min-width: 0; }
.brand-icon { border-radius: 10px; flex: none; box-shadow: 0 2px 0 rgba(0,0,0,.15); }
.brand-text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }
.brand-name { font-weight: 800; font-size: 1.05rem; letter-spacing: -0.01em; white-space: nowrap; }
.brand-sub { font-size: 0.74rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.main-nav { display: flex; gap: 2px; margin-left: auto; }
.main-nav a {
  position: relative; color: var(--text-2); text-decoration: none; font-weight: 600; font-size: 0.93rem;
  padding: 8px 12px; border-radius: 10px; white-space: nowrap;
}
.main-nav a:hover { color: var(--text); background: var(--surface-2); }
.main-nav a[aria-current="page"] { color: var(--text); }
.main-nav a[aria-current="page"]::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 3px; border-radius: 2px; background: var(--accent);
}
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  display: grid; place-items: center; width: 40px; height: 40px; flex: none; cursor: pointer;
  border: 1px solid var(--border); border-radius: 11px; background: var(--surface); color: var(--text-2);
}
.icon-btn:hover { color: var(--text); border-color: var(--border-strong); }
.icon-sun { display: none; }
:root[data-theme="dark"] .icon-sun { display: block; }
:root[data-theme="dark"] .icon-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .icon-sun { display: block; }
  :root:not([data-theme="light"]) .icon-moon { display: none; }
}
.menu-btn { display: none; }

.live-pill {
  display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 14px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 999px; background: var(--surface); color: var(--text);
  font: 600 0.88rem var(--font); white-space: nowrap;
}
.live-pill:hover { border-color: var(--border-strong); }
.live-pill .live-ip { font-family: var(--mono); }
.live-count { color: var(--muted); font-weight: 500; }
.live-count:not(:empty)::before { content: "· "; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--muted); flex: none; }
[data-state="online"] .dot { background: var(--good); animation: pulse 2.2s infinite; }
[data-state="offline"] .dot { background: var(--critical); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--good) 60%, transparent); }
  70% { box-shadow: 0 0 0 8px transparent; }
  100% { box-shadow: 0 0 0 0 transparent; }
}

/* ---------- Himmel / Hero ---------- */
.hero, .page-hero { position: relative; overflow: hidden; color: var(--sky-text); isolation: isolate; }
.sky {
  position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(180deg, var(--sky-top) 0%, var(--sky-mid) 58%, var(--sky-bottom) 100%);
}
.stars {
  position: absolute; inset: 0; opacity: var(--stars);
  background-image:
    radial-gradient(1.5px 1.5px at 8% 18%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 22% 40%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 35% 12%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 48% 30%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 62% 8%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 74% 36%, #fff 50%, transparent 51%),
    radial-gradient(2px 2px at 86% 16%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 94% 44%, #fff 50%, transparent 51%),
    radial-gradient(1px 1px at 14% 60%, #fff 50%, transparent 51%),
    radial-gradient(1.5px 1.5px at 56% 52%, #fff 50%, transparent 51%);
}
/* Blockige Pixel-Wolken */
.cloud {
  position: absolute; display: block; width: 120px; height: 24px; background: var(--cloud);
  box-shadow: 0 8px 0 var(--cloud-shade); opacity: 0.9;
  animation: drift 90s linear infinite;
}
.cloud::before, .cloud::after { content: ""; position: absolute; background: var(--cloud); }
.cloud::before { width: 56px; height: 24px; left: 24px; top: -20px; }
.cloud::after { width: 32px; height: 16px; left: 64px; top: -12px; }
.cloud.c1 { top: 18%; left: 6%; }
.cloud.c2 { top: 30%; left: 58%; transform: scale(1.4); animation-duration: 120s; animation-delay: -40s; }
.cloud.c3 { top: 12%; left: 80%; transform: scale(0.8); animation-duration: 100s; animation-delay: -70s; }
@keyframes drift { from { translate: -30vw 0; } to { translate: 110vw 0; } }

/* Gras/Erde-Kante (Pixel-Muster) */
.ground {
  height: 34px; position: relative;
  background:
    linear-gradient(90deg, transparent 0 8px, var(--grass-dark) 8px 16px, transparent 16px 40px, var(--grass-dark) 40px 48px, transparent 48px 64px) 0 0 / 64px 8px repeat-x,
    linear-gradient(var(--grass) 0 10px, transparent 10px),
    linear-gradient(90deg, var(--dirt-dark) 0 8px, transparent 8px 24px, var(--dirt-dark) 24px 32px, transparent 32px 48px) 0 18px / 48px 8px repeat-x,
    linear-gradient(90deg, transparent 0 16px, var(--dirt-dark) 16px 24px, transparent 24px 40px) 12px 26px / 40px 8px repeat-x,
    var(--dirt);
}
.ground::before {
  /* gezackte Graskante nach unten */
  content: ""; position: absolute; left: 0; right: 0; top: 10px; height: 6px;
  background: linear-gradient(90deg, var(--grass) 0 8px, transparent 8px 20px, var(--grass) 20px 28px, transparent 28px 36px) 0 0 / 36px 6px repeat-x;
}
.ground-thin { height: 16px; }
.ground-thin::before { top: 8px; height: 4px; }

.hero-home .hero-inner {
  display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: 48px; align-items: center;
  padding-top: 72px; padding-bottom: 80px;
}
.eyebrow-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.22); border: 1px solid rgba(255, 255, 255, 0.35);
  font-size: 0.82rem; font-weight: 700; color: var(--sky-text); backdrop-filter: blur(6px);
}
.hero-title {
  font-size: clamp(2.8rem, 7.5vw, 5.2rem); font-weight: 900; letter-spacing: -0.035em; line-height: 0.98;
  margin: 18px 0 16px; color: var(--sky-text);
  text-shadow: 0 4px 0 rgba(0, 0, 0, 0.12);
}
.hero-lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--sky-text-2); max-width: 36ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.hero-card {
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
  border: 1px solid var(--border); border-radius: 22px; padding: 22px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 16px; backdrop-filter: blur(10px);
}
.hero-card-top { display: flex; gap: 16px; align-items: center; }
.hero-icon { border-radius: 16px; box-shadow: 0 3px 0 rgba(0,0,0,.18); flex: none; }
.hero-players { margin-top: 8px; font-size: 1.05rem; }
.hero-players b { font-size: 1.8rem; font-weight: 800; }
.hero-card-link { color: var(--text-2); font-weight: 600; font-size: 0.9rem; text-decoration: none; }
.hero-card-link:hover { color: var(--accent-text); }

.page-hero-inner { padding-top: 52px; padding-bottom: 48px; display: flex; flex-direction: column; gap: 10px; }
.page-hero-inner.center { align-items: center; }
.page-hero h1 { font-size: clamp(2.2rem, 5.5vw, 3.4rem); font-weight: 900; letter-spacing: -0.03em; text-shadow: 0 3px 0 rgba(0,0,0,.1); }
.page-hero .eyebrow { color: var(--sky-text-2); }
.page-hero-split { flex-direction: row; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
.page-hero-split > div:first-child { display: flex; flex-direction: column; gap: 10px; }
.page-hero-tall .page-hero-inner { padding-top: 110px; padding-bottom: 120px; }

/* ---------- Buttons ---------- */
.btn {
  --btn-shade: rgba(0, 0, 0, 0.25);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 11px 18px 13px; border-radius: 12px; border: 0; cursor: pointer;
  font: 700 0.98rem var(--font); text-decoration: none; white-space: nowrap;
  box-shadow: inset 0 -4px 0 var(--btn-shade); transition: transform 0.06s, filter 0.15s;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(2px); box-shadow: inset 0 -2px 0 var(--btn-shade); }
.btn-lg { padding: 14px 24px 17px; font-size: 1.05rem; border-radius: 14px; }
.btn-xl { padding: 18px 30px 21px; font-size: 1.15rem; border-radius: 16px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); --btn-shade: var(--accent-shade); }
.btn-secondary { background: rgba(255,255,255,.92); color: #1c2a3a; --btn-shade: rgba(20, 40, 70, 0.22); }
.btn-discord { background: var(--discord); color: #fff; --btn-shade: #3b46c4; }
.btn-ghost { background: transparent; color: var(--text-2); border: 1px solid var(--border-strong); box-shadow: none; padding: 10px 16px; }
.btn-ghost:hover { color: var(--text); background: var(--surface-2); }
.btn-ghost:active { box-shadow: none; }
.btn-sub { font-weight: 500; opacity: 0.8; font-size: 0.85em; }

.ip-copy {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%;
  padding: 13px 16px; cursor: pointer; border: 2px dashed var(--border-strong); border-radius: 12px;
  background: var(--surface-2); color: var(--text); font: 700 1.3rem var(--mono);
}
.ip-copy:hover { border-color: var(--accent); }
.copy-hint { font: 600 0.8rem var(--font); color: var(--muted); }
.ip-chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; cursor: pointer;
  border: 1px solid var(--border); border-radius: 9px; background: var(--surface-2); color: var(--text);
  font: 500 0.92rem var(--font);
}
.ip-chip b { font-family: var(--mono); }
.ip-chip:hover { border-color: var(--accent); }
.ip-chip-lg { padding: 10px 16px; font-size: 1.05rem; margin-top: 4px; }

/* ---------- Status-Pills ---------- */
.status-pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 10px; border-radius: 999px;
  background: var(--surface-2); font-weight: 700; font-size: 0.86rem;
}
.status-pill[data-state="online"] .label { color: var(--good-text); }
.status-pill[data-state="offline"] .label { color: var(--critical); }
.status-badge {
  display: flex; align-items: center; gap: 14px; padding: 14px 20px; border-radius: 16px;
  background: color-mix(in srgb, var(--surface) 92%, transparent); color: var(--text);
  box-shadow: var(--shadow-lg); border: 1px solid var(--border);
}
.status-badge .dot { width: 14px; height: 14px; }
.status-badge b { display: block; font-size: 1.25rem; }
.status-badge[data-state="online"] b { color: var(--good-text); }
.status-badge[data-state="offline"] b { color: var(--critical); }
.status-badge .small { color: var(--muted); }

/* ---------- Zähler & Kacheln ---------- */
.counters {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px;
  margin-top: -28px; position: relative; z-index: 2;
}
.counter {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px;
  box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 2px;
}
.counter-value { font-size: 1.9rem; font-weight: 850; letter-spacing: -0.02em; }
.counter-label { font-size: 0.86rem; color: var(--text-2); }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.tile { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 16px 18px; display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); min-width: 0; }
.tile-label { font-size: 0.84rem; color: var(--text-2); }
.tile-value { font-size: 1.75rem; font-weight: 800; letter-spacing: -0.02em; }
.tile-sub { font-size: 0.78rem; color: var(--muted); }

/* ---------- Schritte ---------- */
.steps-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; }
.step-card {
  position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px 22px 22px; box-shadow: var(--shadow); display: flex; flex-direction: column; gap: 10px; align-items: flex-start;
}
.step-card h3 { font-size: 1.2rem; font-weight: 800; }
.step-card p { color: var(--text-2); }
.step-num {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px;
  background: var(--grass); color: #fff; font-weight: 900; font-size: 1.3rem;
  box-shadow: inset 0 -4px 0 var(--grass-dark), 0 2px 0 rgba(0,0,0,.1);
}
.step-card:nth-child(2) .step-num { background: var(--series); box-shadow: inset 0 -4px 0 #1c5cab; }
.step-card:nth-child(3) .step-num { background: var(--accent); color: var(--accent-ink); box-shadow: inset 0 -4px 0 var(--accent-shade); }

/* ---------- Spielerköpfe ---------- */
.heads { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.heads li { display: flex; align-items: center; gap: 8px; background: var(--surface-2); padding: 5px 12px 5px 5px; border-radius: 10px; font-weight: 600; font-size: 0.92rem; }
.heads a { display: flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.heads a:hover span { text-decoration: underline; }
.heads img { width: 30px; height: 30px; border-radius: 6px; }
.heads-small li { font-weight: 500; font-size: 0.85rem; }
.heads-small img { width: 22px; height: 22px; }
.heads-mini:empty { display: none; }
.heads-mini li { padding: 3px 9px 3px 3px; font-size: 0.82rem; }
.heads-mini img { width: 22px; height: 22px; }
.heads .ago { color: var(--muted); font-weight: 400; font-size: 0.8rem; }
.recent { margin-top: 16px; }
details > summary { cursor: pointer; color: var(--text-2); font-size: 0.9rem; font-weight: 600; }
details[open] > summary { margin-bottom: 12px; }

/* ---------- Server-Karte (Status) ---------- */
.server-card { display: flex; justify-content: space-between; gap: 24px; flex-wrap: wrap; align-items: center; }
.server-card-main { display: flex; gap: 18px; align-items: center; min-width: 0; flex: 1 1 360px; }
.server-icon { border-radius: 14px; flex: none; box-shadow: 0 3px 0 rgba(0,0,0,.15); }
.server-card-text { min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.server-card h2 { font-size: 1.5rem; font-weight: 800; }
.motd { font-family: var(--mono); font-size: 0.93rem; color: var(--text-2); word-break: break-word; }
.motd:empty { display: none; }
.meta { color: var(--muted); font-size: 0.9rem; }
.kv-grid { display: grid; grid-template-columns: repeat(4, auto); gap: 8px; margin: 0; }
.kv-grid div { background: var(--surface-2); border-radius: 12px; padding: 10px 14px; min-width: 0; }
.kv-grid dt { font-size: 0.76rem; color: var(--muted); }
.kv-grid dd { margin: 2px 0 0; font-weight: 750; font-size: 1.08rem; white-space: nowrap; }
.kv-grid .ip-chip { padding: 2px 8px; margin-top: 1px; }

/* MOTD-Farben */
.mc-black { color: var(--text); } .mc-dark_blue { color: #3b4cc0; } .mc-dark_green { color: #1f8a1f; }
.mc-dark_aqua { color: #138f8f; } .mc-dark_red { color: #b02a2a; } .mc-dark_purple { color: #8a2ea8; }
.mc-gold { color: #d08a00; } .mc-gray { color: var(--text-2); } .mc-dark_gray { color: var(--muted); }
.mc-blue { color: #4a63e0; } .mc-green { color: #2fae2f; } .mc-aqua { color: #19a6b8; } .mc-red { color: #e04848; }
.mc-light_purple { color: #c556d6; } .mc-yellow { color: #c9a400; } .mc-white { color: var(--text); }

/* ---------- Uptime-Balken ---------- */
.bars { display: flex; gap: 2px; height: 44px; align-items: stretch; }
.bars-compact { height: 56px; }
.bars span { flex: 1 1 0; min-width: 2px; border-radius: 3px; background: var(--none); }
.bars span[data-level="good"] { background: var(--good); }
.bars span[data-level="warning"] { background: var(--warning); }
.bars span[data-level="critical"] { background: var(--critical); }
.bars:hover span { opacity: 0.55; }
.bars span:hover { opacity: 1; }
.bars-axis { display: flex; justify-content: space-between; font-size: 0.78rem; color: var(--muted); margin-top: 6px; }
.bars-start-short { display: none; }
.legend { list-style: none; padding: 0; margin: 14px 0 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 0.82rem; color: var(--text-2); }
.legend li { display: flex; align-items: center; gap: 6px; }
.swatch { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.swatch.good { background: var(--good); } .swatch.warning { background: var(--warning); }
.swatch.critical { background: var(--critical); } .swatch.none { background: var(--none); }

/* ---------- Diagramm ---------- */
.chart { position: relative; height: 280px; }
.chart svg { display: block; width: 100%; height: 100%; overflow: visible; }
.chart .grid line { stroke: var(--grid); stroke-width: 1; }
.chart .baseline { stroke: var(--axis); stroke-width: 1; }
.chart .tick { fill: var(--muted); font-size: 11px; font-variant-numeric: tabular-nums; }
.chart .line { fill: none; stroke: var(--series); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--series-fill); }
.chart .cross { stroke: var(--axis); stroke-width: 1; }
.chart .marker { fill: var(--series); stroke: var(--surface); stroke-width: 2; }
.chart .chart-empty { fill: var(--muted); font-size: 13px; }
.table-view { margin-top: 14px; }
.table-scroll { max-height: 280px; overflow: auto; }
.table-scroll.tall { max-height: 480px; }
table { border-collapse: collapse; width: 100%; font-size: 0.88rem; font-variant-numeric: tabular-nums; }
th, td { text-align: left; padding: 7px 10px; border-bottom: 1px solid var(--grid); }
th { color: var(--text-2); font-weight: 650; position: sticky; top: 0; background: var(--surface); }

/* ---------- Heatmap ---------- */
.heatmap-wrap { overflow-x: auto; }
.heatmap { display: grid; grid-template-columns: 30px repeat(24, minmax(14px, 1fr)); gap: 3px; min-width: 520px; }
.heatmap .hm-label { font-size: 0.75rem; color: var(--muted); display: flex; align-items: center; }
.heatmap .hm-hour { font-size: 0.68rem; color: var(--muted); text-align: center; font-variant-numeric: tabular-nums; }
.heatmap .hm-cell { aspect-ratio: 1; border-radius: 4px; background: var(--none); min-height: 14px; }
.heatmap-legend { display: flex; align-items: center; gap: 8px; margin-top: 12px; font-size: 0.78rem; color: var(--muted); }
.heatmap-scale { display: flex; gap: 2px; }
.heatmap-scale span { width: 18px; height: 10px; border-radius: 3px; }

/* ---------- Segment-Schalter, Tabs, Chips, Suche ---------- */
.segmented, .tabs { display: inline-flex; background: var(--surface-2); border-radius: 12px; padding: 4px; gap: 2px; }
.segmented button, .tabs button {
  border: 0; background: transparent; color: var(--text-2); font: 600 0.86rem var(--font);
  padding: 7px 14px; border-radius: 9px; cursor: pointer;
}
.segmented button[aria-selected="true"], .tabs button[aria-selected="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(0,0,0,.14); }
.segmented-lg { background: color-mix(in srgb, var(--surface) 88%, transparent); box-shadow: var(--shadow-lg); }
.segmented-lg button { padding: 9px 18px; font-size: 0.95rem; }
.segmented-lg button[aria-selected="true"] { background: var(--accent); color: var(--accent-ink); }
.tabs { margin-bottom: 14px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.card .chips { margin-bottom: 14px; }
.chips button {
  border: 1px solid var(--border); background: var(--surface); color: var(--text-2);
  padding: 5px 13px; border-radius: 999px; font: 600 0.83rem var(--font); cursor: pointer;
}
.chips button[aria-pressed="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.search {
  width: min(100%, 280px); padding: 9px 14px; border-radius: 11px;
  border: 1px solid var(--border); background: var(--surface-2); color: var(--text); font: inherit; font-size: 0.93rem;
}
.search:focus { border-color: var(--series); outline: none; box-shadow: 0 0 0 3px var(--series-fill); }
.search-lg { width: min(100%, 420px); padding: 12px 16px; font-size: 1rem; background: var(--surface); }
.toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.select-wrap { display: flex; align-items: center; gap: 8px; }
select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--text); font: inherit; font-size: 0.92rem; }

/* ---------- Tooltip & Toast ---------- */
.tooltip {
  position: fixed; z-index: 60; pointer-events: none; background: var(--surface); color: var(--text);
  border: 1px solid var(--border); border-radius: 10px; padding: 8px 11px; font-size: 0.82rem;
  box-shadow: 0 8px 28px rgba(0,0,0,.2); max-width: 240px;
}
.tooltip strong { display: block; margin-bottom: 2px; }
.tooltip .row { display: flex; justify-content: space-between; gap: 16px; color: var(--text-2); }
.tooltip .row b { color: var(--text); font-variant-numeric: tabular-nums; }
.toast {
  position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 70;
  background: var(--text); color: var(--bg); padding: 11px 18px; border-radius: 12px; font-size: 0.92rem; font-weight: 700;
  box-shadow: 0 10px 30px rgba(0,0,0,.25);
}

/* ---------- Bestenlisten ---------- */
.boards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); gap: 14px; }
.board { padding: 18px; }
.board h3, .board .card-title { font-size: 0.98rem; margin-bottom: 12px; display: flex; align-items: center; gap: 8px; }
.board-icon { font-size: 1.1rem; }
.board-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.board-list li { display: flex; align-items: center; gap: 10px; padding: 5px 6px; border-radius: 9px; }
.board-list li:hover { background: var(--surface-2); }
.board-list-lg li { padding: 8px; }
.board-list-lg .board-player img { width: 32px; height: 32px; }
.rank {
  width: 26px; height: 26px; flex: none; display: grid; place-items: center; border-radius: 8px;
  font-size: 0.8rem; font-weight: 800; font-variant-numeric: tabular-nums; background: var(--surface-2); color: var(--text-2);
}
.rank[data-rank="1"] { background: #f2c14e; color: #3d2c00; box-shadow: inset 0 -3px 0 #c99a2a; }
.rank[data-rank="2"] { background: #cfd3d8; color: #26292e; box-shadow: inset 0 -3px 0 #a5abb2; }
.rank[data-rank="3"] { background: #d9a175; color: #3b1f08; box-shadow: inset 0 -3px 0 #b17a4f; }
.board-player { display: flex; align-items: center; gap: 9px; min-width: 0; flex: 1; color: var(--text); text-decoration: none; font-weight: 650; font-size: 0.93rem; }
.board-player span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board-player:hover span { text-decoration: underline; }
.board-player img { width: 26px; height: 26px; border-radius: 6px; flex: none; }
.board-value { font-variant-numeric: tabular-nums; font-weight: 700; font-size: 0.9rem; white-space: nowrap; }
.board-more { margin-top: 8px; }
.board-more summary { font-size: 0.82rem; color: var(--muted); padding: 2px 6px; }

/* Podest */
.podium-card { overflow: hidden; }
.podium { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; align-items: end; max-width: 720px; margin-inline: auto; }
.podium li { display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; }
.podium li:nth-child(1) { order: 2; }
.podium li:nth-child(2) { order: 1; }
.podium li:nth-child(3) { order: 3; }
.podium a { display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--text); min-width: 0; max-width: 100%; }
.podium img { width: 86px; height: auto; filter: drop-shadow(0 6px 10px rgba(0,0,0,.25)); transition: transform .15s; }
.podium li:nth-child(1) img { width: 104px; }
.podium a:hover img { transform: translateY(-4px); }
.podium .p-name { font-weight: 800; font-size: 1.02rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.podium .p-value { font-size: 0.88rem; color: var(--text-2); font-variant-numeric: tabular-nums; }
.podium .block {
  width: 100%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 1.6rem;
  border-radius: 10px 10px 4px 4px; text-shadow: 0 2px 0 rgba(0,0,0,.25);
}
.podium li:nth-child(1) .block { height: 110px; background: linear-gradient(#f5c95a, #d9a22e); box-shadow: inset 0 -6px 0 #b8841c; }
.podium li:nth-child(2) .block { height: 80px; background: linear-gradient(#d7dbe0, #aeb5bd); box-shadow: inset 0 -6px 0 #8f979f; }
.podium li:nth-child(3) .block { height: 60px; background: linear-gradient(#e2ad82, #c0855a); box-shadow: inset 0 -6px 0 #9d6741; }

/* Spielerübersicht */
.player-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 12px; }
.player-card a {
  display: flex; gap: 14px; align-items: center; padding: 14px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--border); box-shadow: var(--shadow);
  color: var(--text); text-decoration: none; transition: transform .12s, border-color .12s;
}
.player-card a:hover { transform: translateY(-2px); border-color: var(--accent); }
.player-card img { width: 52px; height: 52px; border-radius: 10px; flex: none; }
.player-card .pc-body { min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.player-card .pc-name { font-weight: 800; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.player-card .pc-meta { font-size: 0.82rem; color: var(--muted); }
.online-tag { display: inline-flex; align-items: center; gap: 5px; font-size: 0.72rem; font-weight: 700; color: var(--good-text); }
.online-tag .dot { width: 7px; height: 7px; background: var(--good); }

/* ---------- Spielerprofil ---------- */
.profile-hero { display: flex; gap: 32px; align-items: flex-end; padding-top: 36px; padding-bottom: 0; }
.profile-body { width: 140px; height: auto; flex: none; margin-bottom: -6px; filter: drop-shadow(0 10px 16px rgba(0,0,0,.3)); }
.profile-info { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 10px; padding-bottom: 32px; }
.profile-info h1 { font-size: clamp(2.2rem, 6vw, 3.6rem); font-weight: 900; letter-spacing: -0.03em; word-break: break-word; text-shadow: 0 3px 0 rgba(0,0,0,.1); }
.back-link { color: var(--sky-text-2); text-decoration: none; font-size: 0.9rem; font-weight: 600; }
.back-link:hover { color: var(--sky-text); }
.badges { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.badges li { background: var(--surface-2); color: var(--text-2); font-size: 0.82rem; padding: 4px 10px; border-radius: 999px; }
.badges li b { color: var(--text); font-weight: 700; }
.badges-hero li { background: rgba(255,255,255,.25); color: var(--sky-text); border: 1px solid rgba(255,255,255,.3); }
.badges-hero li b { color: var(--sky-text); }
.adv-progress { max-width: 440px; }
.adv-progress-label { display: flex; justify-content: space-between; font-size: 0.86rem; color: var(--sky-text-2); margin-bottom: 6px; }
.adv-progress-label b { color: var(--sky-text); font-variant-numeric: tabular-nums; }
.progress { height: 12px; border-radius: 999px; background: rgba(0,0,0,.18); overflow: hidden; }
.progress span { display: block; height: 100%; width: var(--w, 0%); background: var(--accent); border-radius: 999px; box-shadow: inset 0 -3px 0 var(--accent-shade); }
.metric-tiles .tile-value { font-size: 1.5rem; }
.facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; margin: 0; }
.facts div { background: var(--surface-2); border-radius: 12px; padding: 12px 14px; }
.facts dt { font-size: 0.78rem; color: var(--muted); }
.facts dd { margin: 2px 0 0; font-weight: 650; }
.bar-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; }
.bar-label { display: flex; justify-content: space-between; gap: 8px; font-size: 0.88rem; margin-bottom: 3px; }
.bar-label span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.bar-label b { font-variant-numeric: tabular-nums; font-weight: 650; }
.bar-track { height: 6px; background: var(--surface-2); border-radius: 999px; overflow: hidden; }
.bar-track span { display: block; height: 100%; width: var(--w, 0%); background: var(--series); border-radius: 999px; }
.adv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 290px), 1fr)); gap: 8px; max-height: 560px; overflow: auto; }
.adv { display: flex; gap: 12px; align-items: flex-start; background: var(--surface-2); border-radius: 12px; padding: 11px 12px; }
.adv > div { flex: 1; min-width: 0; }
.adv strong { display: block; font-size: 0.93rem; }
.adv-desc { display: block; font-size: 0.8rem; color: var(--text-2); }
.adv-icon {
  display: grid; place-items: center; width: 30px; height: 30px; flex: none; border-radius: 8px;
  background: var(--accent); color: var(--accent-ink); font-size: 0.95rem; box-shadow: inset 0 -3px 0 var(--accent-shade);
}
.adv-date { font-size: 0.74rem; color: var(--muted); white-space: nowrap; }

/* ---------- Modpack ---------- */
.download-hero {
  display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap;
  padding: 28px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #2f6d1f 0%, #4e9a2c 55%, #6bb83a 100%);
  box-shadow: var(--shadow-lg), inset 0 -6px 0 rgba(0,0,0,.15);
}
.download-hero .eyebrow { color: #e3f5c9; }
.download-info { min-width: 0; flex: 1 1 340px; display: flex; flex-direction: column; gap: 8px; }
.download-info h2 { font-size: clamp(1.6rem, 4vw, 2.3rem); font-weight: 900; letter-spacing: -0.02em; }
.download-info p { color: #e9f6dc; }
.download-hero .badges li { background: rgba(0,0,0,.18); color: #eaf6de; }
.download-hero .badges li b { color: #fff; }
.download-actions { display: flex; flex-direction: column; gap: 10px; align-items: stretch; }
.download-hero .btn-ghost { color: #fff; border-color: rgba(255,255,255,.45); }
.download-hero .btn-ghost:hover { background: rgba(255,255,255,.12); }
.steps { margin: 0; padding-left: 22px; display: flex; flex-direction: column; gap: 9px; color: var(--text-2); }
.steps strong, .steps em { color: var(--text); }
.changelog { display: flex; flex-direction: column; gap: 18px; max-height: 460px; overflow: auto; padding-right: 4px; }
.cl-entry { border-left: 3px solid var(--grid); padding-left: 16px; }
.cl-entry.latest { border-left-color: var(--accent); }
.cl-head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.cl-head h3 { font-size: 1.02rem; display: flex; align-items: center; gap: 8px; }
.cl-head a { font-size: 0.82rem; }
.cl-date { font-size: 0.8rem; color: var(--muted); }
.cl-notes { font-size: 0.92rem; color: var(--text-2); }
.cl-notes h3, .cl-notes h4, .cl-notes h5 { font-size: 0.95rem; margin: 10px 0 4px; color: var(--text); }
.cl-notes p, .cl-notes ul { margin: 6px 0; }
.cl-diff { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 3px; font-size: 0.88rem; }
.cl-diff li { display: flex; gap: 8px; align-items: baseline; }
.cl-diff .sym { font-family: var(--mono); font-weight: 800; width: 1em; flex: none; text-align: center; }
.cl-diff .add .sym { color: var(--good-text); }
.cl-diff .rem .sym { color: var(--critical); }
.cl-diff .upd .sym { color: var(--series); }
.cl-diff .ver { color: var(--muted); font-size: 0.82rem; }
.tag { font-size: 0.7rem; font-weight: 600; padding: 2px 8px; border-radius: 999px; border: 1px solid var(--border-strong); color: var(--text-2); white-space: nowrap; flex: none; }
.tag-accent { background: var(--accent); color: var(--accent-ink); border-color: transparent; }
.mod-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 8px; }
.mod { display: flex; gap: 11px; align-items: center; padding: 9px; border-radius: 12px; background: var(--surface-2); min-width: 0; }
.mod img, .mod .mod-ph { width: 40px; height: 40px; border-radius: 9px; flex: none; background: var(--surface-3); object-fit: cover; }
.mod-ph { display: grid; place-items: center; color: var(--muted); font-weight: 800; }
.mod-body { min-width: 0; flex: 1; }
.mod-name { font-weight: 700; font-size: 0.93rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; color: var(--text); text-decoration: none; }
a.mod-name:hover { text-decoration: underline; }
.mod-ver { font-size: 0.78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: block; }

/* ---------- News ---------- */
.news-list { display: flex; flex-direction: column; gap: 16px; }
.news-item { padding: 26px; }
.news-item header { display: flex; flex-direction: column; gap: 8px; margin-bottom: 12px; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 0.84rem; color: var(--muted); }
.news-item h2 { font-size: 1.45rem; font-weight: 800; }
.news-body { color: var(--text-2); }
.news-body p, .news-body ul, .news-body ol { margin: 10px 0; }
.news-body img { max-width: 100%; border-radius: 12px; }
.news-body h3, .news-body h4 { color: var(--text); margin: 18px 0 6px; }
.news-type { font-size: 0.7rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; padding: 3px 9px; border-radius: 7px; background: var(--surface-2); color: var(--text-2); }
.news-type[data-type="wartung"] { background: color-mix(in srgb, var(--warning) 26%, transparent); color: var(--text); }
.news-type[data-type="update"] { background: color-mix(in srgb, var(--series) 20%, transparent); color: var(--text); }
.news-type[data-type="event"] { background: color-mix(in srgb, var(--grass) 24%, transparent); color: var(--text); }
.news-teasers { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.news-teaser { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); transition: transform .12s, border-color .12s; }
.news-teaser:hover { transform: translateY(-2px); border-color: var(--accent); }
.news-teaser h3 { font-size: 1.15rem; font-weight: 800; }
.news-teaser p { color: var(--text-2); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Discord-Banner ---------- */
.discord-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
  padding: 32px; border-radius: 22px; color: #fff;
  background: linear-gradient(135deg, #4752c4 0%, #5865f2 60%, #7983f5 100%);
  box-shadow: var(--shadow-lg), inset 0 -6px 0 rgba(0,0,0,.15);
}
.discord-banner h2 { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 850; }
.discord-banner p { color: #e3e6ff; margin-top: 6px; max-width: 52ch; }
.discord-banner .btn-discord { background: #fff; color: #3b46c4; --btn-shade: #c9cdf7; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-2); border-top: 1px solid var(--border); margin-top: auto; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 32px; padding-top: 36px; padding-bottom: 28px; }
.footer-brand { display: flex; flex-direction: column; gap: 14px; align-items: flex-start; }
.footer-links { display: flex; flex-direction: column; gap: 8px; }
.footer-links h2 { font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); margin-bottom: 4px; }
.footer-links a { color: var(--text-2); text-decoration: none; font-size: 0.93rem; }
.footer-links a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 16px; padding-bottom: 24px; border-top: 1px solid var(--border); font-size: 0.8rem; color: var(--muted); }

/* ---------- Animationen reduzieren ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- Responsiv ---------- */
@media (max-width: 980px) {
  .hero-home .hero-inner { grid-template-columns: 1fr; gap: 32px; padding-top: 48px; }
  .kv-grid { grid-template-columns: repeat(2, 1fr); width: 100%; }
}

@media (max-width: 900px) {
  .menu-btn { display: grid; }
  .main-nav {
    position: absolute; top: var(--header-h); left: 0; right: 0; margin: 0;
    flex-direction: column; gap: 2px; padding: 10px 16px 16px;
    background: var(--surface); border-bottom: 1px solid var(--border); box-shadow: 0 16px 32px rgba(0,0,0,.15);
    display: none;
  }
  .site-header.nav-open .main-nav { display: flex; }
  .main-nav a { padding: 12px 14px; font-size: 1rem; }
  .main-nav a[aria-current="page"] { background: var(--surface-2); }
  .main-nav a[aria-current="page"]::after { left: 0; right: auto; top: 10px; bottom: 10px; width: 3px; height: auto; }
  .header-actions { margin-left: auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 640px) {
  :root { --header-h: 60px; }
  .wrap { padding: 0 16px; }
  .brand-sub { display: none; }
  .brand-name { font-size: 0.95rem; overflow: hidden; text-overflow: ellipsis; }
  .brand-icon { width: 34px; height: 34px; }
  .header-inner { gap: 10px; }
  .live-pill .live-ip { display: none; }
  .live-count:not(:empty)::before { content: none; }
  .live-pill { padding: 0 12px; }
  .card { padding: 18px; }
  .section { padding-top: 44px; }
  .hero-cta .btn { flex: 1 1 auto; }
  .counters { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .counter { padding: 14px; }
  .counter-value { font-size: 1.45rem; }
  .tiles { grid-template-columns: repeat(2, 1fr); }
  .tile-value { font-size: 1.4rem; }
  .chart { height: 220px; }
  .bars span:nth-last-child(n+31) { display: none; }
  .bars-start-full { display: none; }
  .bars-start-short { display: inline !important; }
  .download-hero { padding: 22px; }
  .download-actions { width: 100%; }
  .search { width: 100%; }
  .podium img { width: 64px; }
  .podium li:nth-child(1) img { width: 78px; }
  .podium .block { font-size: 1.2rem; }
  .podium li:nth-child(1) .block { height: 84px; }
  .podium li:nth-child(2) .block { height: 62px; }
  .podium li:nth-child(3) .block { height: 46px; }
  .profile-hero { gap: 16px; padding-top: 24px; }
  .profile-body { width: 92px; }
  .profile-info { padding-bottom: 22px; }
  .footer-grid { grid-template-columns: 1fr; gap: 24px; }
  .discord-banner { padding: 24px; }
  .page-hero-split { align-items: flex-start; }
}
