/* Homestead – Farben "Schiefer & Kupfer" (Entscheidung marc 2026-11-26), Pixel-Icons, Pixel-Schrift für Überschriften.
   Kontraste geprüft (WCAG) auf Karten: Text 14:1, gedämpft 7:1, Kupfer 6,3:1, Knopftext 6,7:1, Gold 9,9:1,
   Grün (online) 8,3:1, Rot 5,8:1. Varianten zum Vergleichen: tools/palettes/. */

:root {
  --bg: #111315;
  --bg-2: #171a1d;
  --glow: #2a2018;
  --card: #1b1f23;
  --card-hi: #22272c;
  --inset: #0e1012;
  --line: #3a4148;
  --line-soft: #272d33;
  --text: #eeece8;
  --muted: #a5a9ad;
  /* Akzent: Kupfer (Knöpfe, Balken, Diagramme) */
  --accent: #e3894f;
  --accent-dark: #b4602f;
  --accent-ink: #2a1206;
  --gold: #ecc35c;
  /* Status "online/läuft": grün, weil sofort verständlich */
  --ok: #7cc88e;
  --err: #ef7462;
  --grass: var(--ok);
  --admin: var(--gold);
  --radius: 14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-text-size-adjust: 100%;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { background: var(--bg); }
body {
  margin: 0; color: var(--text); line-height: 1.45;
  background:
    radial-gradient(120% 60% at 50% -10%, var(--glow) 0%, transparent 60%),
    linear-gradient(180deg, var(--bg-2) 0%, var(--bg) 40%);
  background-attachment: fixed;
  min-height: 100vh;
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left);
}
.container { max-width: 76rem; margin: 0 auto; padding: 1rem; }
h1 { font-size: 1.45rem; margin: 0.25rem 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.05rem; margin: 0 0 0.6rem; }
h3 { font-size: 0.95rem; margin: 0 0 0.5rem; }
a { color: var(--accent); }
code { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85em; background: var(--inset); padding: 0.05rem 0.3rem; border-radius: 0.3rem; }

.pix { image-rendering: pixelated; flex: none; vertical-align: -0.2em; }

/* ---------- Karten ---------- */
.card {
  background: linear-gradient(180deg, var(--card-hi), var(--card));
  border: 1px solid var(--line-soft);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 2px 0 rgba(0, 0, 0, 0.25);
}
.stack { display: flex; flex-direction: column; gap: 0.9rem; }
.muted { color: var(--muted); }
.small, .muted.small { font-size: 0.82rem; }
.center { text-align: center; }
.ok { color: var(--ok); font-weight: 600; }
.err { color: var(--err); margin: 0; }
.msg { margin: 0.6rem 0 0; font-size: 0.95rem; }
.warn-text { color: var(--gold); font-size: 0.9rem; }
.crit-text { color: var(--err); }
.warn-value { color: var(--gold); }
.mono { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Formulare & Knöpfe ---------- */
label { display: flex; flex-direction: column; gap: 0.35rem; }
label span { font-size: 0.88rem; color: var(--muted); }
input {
  font: inherit; font-size: 1rem; color: var(--text);
  background: var(--inset); border: 1px solid var(--line); border-radius: 10px;
  min-height: 3rem; padding: 0 0.85rem; width: 100%;
}
input:focus { outline: 2px solid var(--accent); outline-offset: 1px; border-color: transparent; }
input::placeholder { color: #6f6a5b; }
button {
  margin-top: 0.75rem; width: 100%; min-height: 3rem;
  font: inherit; font-weight: 700; color: var(--accent-ink);
  background: var(--accent); border: 0; border-radius: 10px; cursor: pointer;
  box-shadow: inset 0 -3px 0 var(--accent-dark), 0 1px 0 rgba(0, 0, 0, 0.3);
  touch-action: manipulation; transition: filter 0.15s, transform 0.05s;
}
button:hover { filter: brightness(1.07); }
button:active { transform: translateY(1px); box-shadow: inset 0 -1px 0 var(--accent-dark); }
button:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
form button { margin-top: 0.25rem; }
button:disabled { opacity: 0.55; cursor: wait; filter: none; }
button.secondary {
  background: transparent; color: var(--text); border: 1px solid var(--line);
  box-shadow: none; font-weight: 600;
}
button.secondary:hover { background: rgba(255, 255, 255, 0.04); }
button.small { width: auto; min-height: 2.5rem; margin: 0; padding: 0 1rem; }
button.danger { background: var(--err); color: #2a0b06; box-shadow: inset 0 -3px 0 #b8473a; }
button.danger-outline { color: var(--err); border-color: rgba(239, 116, 98, 0.6); }
button.plain {
  width: 100%; margin: 0; padding: 0; min-height: 2.5rem; background: transparent; color: inherit;
  font-weight: inherit; text-align: left; border-radius: 0; box-shadow: none;
}
.row { display: flex; gap: 0.6rem; }
.row > button { flex: 1; margin-top: 0; }
.row input { flex: 1; min-width: 0; }
.row > button.small { flex: none; }
label.check { flex-direction: row; align-items: center; gap: 0.6rem; }
label.check input { width: 1.3rem; min-height: 1.3rem; flex: none; accent-color: var(--accent); }
label.check span { color: var(--text); }
.code-input { font-size: 1.4rem; letter-spacing: 0.25em; text-align: center; }

/* ---------- Marke ---------- */
.brand { display: flex; align-items: center; gap: 0.6rem; font-weight: 800; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text); }
.brand span { font-size: 1rem; }
.brand-title { font-size: 1.9rem; font-weight: 800; letter-spacing: 0.06em; text-transform: uppercase; margin: 0; }

/* ---------- Grundgerüst: Handy = Leiste unten, PC = Seitenleiste ---------- */
.shell { display: block; }
.content { min-width: 0; padding-bottom: calc(5rem + env(safe-area-inset-bottom)); }
.side-only { display: none; }
.mobile-only { display: flex; }
p.mobile-only { display: block; }

.tabbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 10;
  display: flex; justify-content: space-around; gap: 0.15rem;
  background: color-mix(in srgb, var(--bg-2) 96%, transparent); backdrop-filter: blur(8px);
  border-top: 1px solid var(--line);
  padding: 0.35rem 0.35rem calc(0.35rem + env(safe-area-inset-bottom));
}
.tab {
  flex: 1; max-width: 6.5rem; margin: 0; min-height: 3.4rem; padding: 0.25rem 0;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.2rem;
  background: transparent; color: var(--muted); font-weight: 600; font-size: 0.72rem;
  box-shadow: none; border-radius: 10px;
}
.tab .pix { opacity: 0.75; }
a.tab { text-decoration: none; }
.tab.active { color: var(--text); background: color-mix(in srgb, var(--accent) 14%, transparent); }
.tab.active .pix { opacity: 1; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem;
  padding: 0.25rem 0 0.85rem; margin-bottom: 0.75rem; border-bottom: 1px solid var(--line-soft);
}
.who { display: flex; align-items: center; gap: 0.5rem; min-width: 0; margin-left: auto; }
.who-name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.badge {
  display: inline-flex; align-items: center; gap: 0.25rem; font-size: 0.72rem; font-weight: 600;
  padding: 0.12rem 0.55rem; border-radius: 1rem; border: 1px solid var(--line); color: var(--muted);
}
.badge.admin { color: var(--gold); border-color: rgba(232, 182, 74, 0.6); }
.badge.danger { color: var(--err); border-color: rgba(239, 116, 98, 0.6); }
.badge.ok-badge { color: var(--ok); border-color: var(--ok); }
.badge.warn-badge { color: var(--gold); border-color: rgba(232, 182, 74, 0.6); }

.status-grid, .landing-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0 1.25rem; }

@media (min-width: 60rem) {
  .container { padding: 1.5rem 2rem; }
  .shell { display: grid; grid-template-columns: 14rem minmax(0, 1fr); gap: 2rem; align-items: start; }
  .content { padding-bottom: 2rem; }
  .side-only { display: flex; }
  .mobile-only, p.mobile-only { display: none; }
  .tabbar {
    position: sticky; top: 1.5rem; flex-direction: column; justify-content: flex-start; gap: 0.3rem;
    background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line-soft);
    border-radius: var(--radius); padding: 1rem 0.75rem;
  }
  .tabbar .brand { padding: 0.25rem 0.5rem 1rem; margin-bottom: 0.25rem; border-bottom: 1px solid var(--line-soft); }
  .tab {
    max-width: none; min-height: 2.75rem; flex: none; flex-direction: row; justify-content: flex-start;
    gap: 0.7rem; padding: 0 0.75rem; font-size: 0.95rem;
  }
  .side-foot { margin: 1rem 0.5rem 0; font-size: 0.78rem; color: var(--muted); }
  .status-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .landing-grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); align-items: start; }
}

/* ---------- Öffentliche Startseite ---------- */
.landing { max-width: 64rem; margin: 0 auto; }
.landing-head { display: flex; align-items: center; gap: 1rem; margin: 0.5rem 0 1.25rem; }
.landing-head p { margin: 0.2rem 0 0; }

/* ---------- Status ---------- */
.hero { position: relative; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: var(--line); }
.hero.online::before { background: var(--ok); }
.hero.starting::before { background: var(--gold); }
.hero.offline::before { background: var(--err); }
.hero .state { display: flex; align-items: center; gap: 0.55rem; font-weight: 700; font-size: 1.1rem; }
.dot { width: 0.75rem; height: 0.75rem; border-radius: 3px; background: var(--muted); flex: none; }
.hero.online .dot { background: var(--ok); box-shadow: 0 0 0.6rem var(--ok); }
.hero.starting .dot { background: var(--gold); animation: pulse 1.2s ease-in-out infinite; }
.hero.offline .dot { background: var(--err); }
@keyframes pulse { 50% { opacity: 0.3; } }
@media (prefers-reduced-motion: reduce) { .hero.starting .dot { animation: none; } button { transition: none; } }
.big { font-size: 2.6rem; font-weight: 800; line-height: 1.1; margin-top: 0.4rem; font-variant-numeric: tabular-nums; }
.big small { font-size: 1rem; font-weight: 500; color: var(--muted); }
.chips { list-style: none; padding: 0; margin: 0.75rem 0 0; display: flex; flex-wrap: wrap; gap: 0.4rem; }
.chips li {
  display: inline-flex; align-items: center; gap: 0.35rem;
  background: var(--inset); border: 1px solid var(--line); border-radius: 2rem; padding: 0.2rem 0.7rem 0.2rem 0.35rem; font-size: 0.9rem;
}

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.75rem; margin-bottom: 1rem; }
.tile {
  background: linear-gradient(180deg, var(--card-hi), var(--card)); border: 1px solid var(--line-soft);
  border-radius: var(--radius); padding: 0.85rem 0.9rem; min-width: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}
.tile-label {
  display: flex; align-items: center; gap: 0.4rem;
  font-size: 0.74rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em;
}
.tile-value { font-size: 1.5rem; font-weight: 800; margin: 0.25rem 0; font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile-sub { font-size: 0.8rem; color: var(--muted); }
.perf { margin-bottom: 0.25rem; }
.perf .tile-value { font-size: 2.3rem; }
.small-note { font-size: 0.85rem; margin: 0.25rem 0 1rem; color: var(--muted); }
.bar { height: 0.45rem; background: var(--inset); border-radius: 2px; overflow: hidden; margin: 0.4rem 0; border: 1px solid var(--line-soft); }
.bar span { display: block; height: 100%; background: var(--accent); transition: width 0.4s; }
.bar.warn span { background: var(--gold); }
.bar.crit span { background: var(--err); }
.conn { display: flex; align-items: center; justify-content: center; gap: 0.45rem; margin: 0.25rem 0 1rem; font-size: 0.85rem; color: var(--muted); }
.conn-dot { width: 0.5rem; height: 0.5rem; border-radius: 2px; background: var(--muted); }
.conn.live .conn-dot { background: var(--ok); box-shadow: 0 0 0.4rem var(--ok); }

.controls { margin: -0.25rem 0 1rem; }
.controls > button { margin-top: 0; }
.confirm { border-color: rgba(232, 182, 74, 0.6); margin-bottom: 1rem; }
.confirm p { margin: 0 0 0.6rem; }

/* ---------- Konsole ---------- */
.console-form { display: flex; gap: 0.5rem; }
.console-form input { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; }
.console-form button { width: auto; margin: 0; padding: 0 1.1rem; }
.quick { margin: 0.6rem 0 1rem; }
button.chip {
  width: auto; min-height: 2.5rem; margin: 0; padding: 0 0.9rem; font-weight: 600; font-size: 0.85rem;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 2rem; box-shadow: none;
}
button.chip.active { background: var(--accent); color: var(--accent-ink); border-color: var(--accent); }
.console-entry { background: var(--inset); border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.6rem 0.75rem; margin-bottom: 0.5rem; }
.console-entry .cmd { font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; color: var(--gold); font-size: 0.9rem; word-break: break-all; }
.console-entry .out { margin: 0.35rem 0 0; white-space: pre-wrap; word-break: break-word; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.85rem; }
.console-entry .out.err { color: var(--err); }

/* ---------- Benutzer, Konto ---------- */
.big-pw { font-size: 1.2rem; user-select: all; word-break: break-all; }
.user-list, .player-list { margin-top: 1rem; }
.user { padding: 0.85rem 1rem; margin-bottom: 0.6rem; }
.user.disabled { opacity: 0.65; }
.user-head { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; cursor: pointer; }
.badges { display: flex; flex-wrap: wrap; gap: 0.3rem; margin-top: 0.3rem; }
.user-actions { display: flex; flex-direction: column; gap: 0.5rem; margin-top: 0.75rem; }
.user-actions button { margin-top: 0; }
.qr { display: block; width: 240px; height: 240px; margin: 0 auto; border-radius: 10px; background: #fff; padding: 6px; }
.totp-card { border-color: rgba(232, 182, 74, 0.6); }

/* ---------- Stats ---------- */
.section-title { margin: 1.5rem 0 0.75rem; display: flex; align-items: center; gap: 0.5rem; }
.boards { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0.75rem; }
.board { margin: 0; }
.board h3 { display: flex; align-items: center; gap: 0.5rem; }
.board ol { margin: 0; padding: 0; list-style: none; counter-reset: rank; }
.board li {
  counter-increment: rank; display: flex; align-items: center; gap: 0.6rem;
  padding: 0.3rem 0; border-bottom: 1px solid var(--line-soft);
}
.board li:last-child { border-bottom: 0; }
.board li::before {
  content: counter(rank); width: 1.5rem; height: 1.5rem; flex: none; display: grid; place-items: center;
  font-size: 0.75rem; font-weight: 800; border-radius: 4px; background: var(--inset); color: var(--muted); border: 1px solid var(--line-soft);
}
.board li:nth-child(1)::before { background: var(--gold); color: #2a1d05; border-color: var(--gold); }
.board li:nth-child(2)::before { background: #c9ccd1; color: #1d1f22; border-color: #c9ccd1; }
.board li:nth-child(3)::before { background: #b5764a; color: #1f1208; border-color: #b5764a; }
.board li > span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.board li > strong { font-variant-numeric: tabular-nums; }
.stat-grid { display: grid; grid-template-columns: 1fr auto; gap: 0.3rem 1rem; margin: 0.6rem 0 0; font-size: 0.9rem; }
.stat-grid dt { color: var(--muted); }
.stat-grid dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }
@media (min-width: 40rem) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 60rem) {
  .stats-totals { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .boards { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* ---------- Verlauf / Diagramme ---------- */
.range { margin-bottom: 1rem; }
.chart { margin: 0 0 1rem; }
.chart figcaption { display: flex; flex-direction: column; gap: 0.1rem; margin-bottom: 0.5rem; }
.chart-title { font-weight: 700; }
.plot { position: relative; height: 150px; touch-action: pan-y; cursor: crosshair; }
.plot svg { display: block; width: 100%; height: 100%; overflow: visible; }
.plot .grid { stroke: var(--line-soft); stroke-width: 1; }
.plot .grid.base { stroke: var(--line); }
.plot .series { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.plot .threshold { stroke: var(--gold); stroke-width: 1; stroke-dasharray: 4 4; }
.threshold-label { position: absolute; right: 0; transform: translateY(-120%); font-size: 0.7rem; color: var(--muted); pointer-events: none; }
.ylabel { position: absolute; left: 0; font-size: 0.7rem; color: var(--muted); pointer-events: none; background: var(--card); padding: 0 0.2rem; }
.ylabel.top { top: 0; transform: translateY(-50%); }
.ylabel.bottom { bottom: 0; transform: translateY(50%); }
.xhair { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--muted); pointer-events: none; }
.dot-marker { position: absolute; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 2px; background: var(--accent); box-shadow: 0 0 0 2px var(--card); pointer-events: none; }
.tip {
  position: absolute; top: -0.5rem; transform: translate(-50%, -100%); pointer-events: none; z-index: 2;
  background: var(--inset); border: 1px solid var(--line); border-radius: 8px; padding: 0.2rem 0.5rem;
  display: flex; flex-direction: column; align-items: center; white-space: nowrap; font-size: 0.8rem;
}
.xlabels { display: flex; justify-content: space-between; margin-top: 0.5rem; font-size: 0.78rem; color: var(--muted); }
.chart details { margin-top: 0.5rem; }
.chart table, table.data { width: 100%; border-collapse: collapse; font-variant-numeric: tabular-nums; font-size: 0.9rem; }
.chart th, .chart td, table.data th, table.data td { text-align: left; padding: 0.3rem; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
table.data th:not(:first-child), table.data td:not(:first-child) { text-align: right; }
@media (min-width: 60rem) { .charts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 1rem; } }

/* ---------- Admin ---------- */
.subnav { margin-bottom: 1rem; }
.plain-list { list-style: none; margin: 0; padding: 0; }
.plain-list li { display: flex; justify-content: space-between; align-items: center; gap: 0.75rem; padding: 0.5rem 0; border-bottom: 1px solid var(--line-soft); }
.plain-list li:last-child { border-bottom: 0; }
.plain-list li.col { flex-direction: column; align-items: flex-start; gap: 0.1rem; }
.log-tools { margin: 1rem 0 0.4rem; }
.log-tools input { min-height: 2.5rem; }
pre.log {
  background: var(--inset); border: 1px solid var(--line-soft); border-radius: 10px; padding: 0.6rem; margin: 0.5rem 0 0;
  max-height: 60vh; overflow: auto; white-space: pre-wrap; word-break: break-word;
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 0.75rem; line-height: 1.35;
}
.log-err { color: var(--err); }
.log-warn { color: var(--gold); }
.hint-list { margin: 0; padding-left: 1.1rem; }
.hint-list li { margin-bottom: 0.4rem; }
.chart.compact .plot { height: 90px; }
.chart.compact figcaption { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 0.5rem; flex-wrap: wrap; }
.hidden { display: none; }

/* Meine Stats */
.me-card { display: flex; align-items: center; gap: 1rem; }
.me-name { font-size: 1.3rem; font-weight: 800; }
.me-time { margin-left: auto; text-align: right; }
.me-time .tile-value { margin: 0; }
.my-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 60rem) { .my-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.rank { font-weight: 700; color: var(--text); }
.rank.gold { color: var(--gold); }
.rank.silver { color: #c9ccd1; }
.rank.bronze { color: #d08a5a; }

/* Pixel-Schrift für Überschriften (Pixelify Sans, SIL OFL 1.1, Lizenz in fonts/OFL.txt) */
@font-face {
  font-family: "Pixelify Sans";
  src: url("/fonts/PixelifySans.ttf") format("truetype");
  font-weight: 400 700;
  font-display: swap;
}
/* Nur Logo und Überschriften; nicht in Diagramm- und Kacheltiteln (dort schwer lesbar, Wunsch marc) */
.brand, .brand-title, h1, h2, .me-name {
  font-family: "Pixelify Sans", Inter, system-ui, sans-serif;
  letter-spacing: 0.02em;
}

.tile-sub.explain { white-space: pre-line; line-height: 1.35; }
details.explain-more { margin: 0 0 1rem; font-size: 0.88rem; color: var(--muted); }
details.explain-more summary { cursor: pointer; color: var(--text); font-weight: 600; padding: 0.25rem 0; }
details.explain-more p { margin: 0.4rem 0; }
details.explain-more strong { color: var(--text); }

/* So joinst du */
.join h2 { display: flex; align-items: center; gap: 0.5rem; }
.steps { margin: 0; padding: 0; list-style: none; counter-reset: step; }
.steps > li { counter-increment: step; position: relative; padding: 0 0 0.9rem 2.4rem; display: flex; flex-direction: column; gap: 0.2rem; }
.steps > li::before {
  content: counter(step); position: absolute; left: 0; top: -0.05rem; width: 1.7rem; height: 1.7rem; display: grid; place-items: center;
  font-weight: 800; border-radius: 6px;
  background: var(--accent); color: var(--accent-ink);
}
.steps > li > span { color: var(--muted); font-size: 0.92rem; }
.steps b { color: var(--text); }
.mods { margin: 0.2rem 0; padding-left: 1.1rem; }
code.address { display: inline-block; font-size: 1.05rem; padding: 0.3rem 0.6rem; user-select: all; color: var(--text); }
.landing-join { margin-top: 1.25rem; }
.landing-grid .col > .card + .secondary, .landing-grid .col > .secondary + .card { margin-top: 0.75rem; }

/* 2D-Weltkarte (eigene, ohne WebGL) */
.worldmap { margin-bottom: 1rem; }
.map-toolbar { margin-bottom: 0.6rem; }
.map-view {
  position: relative; overflow: hidden; height: min(65vh, 36rem); border-radius: var(--radius);
  background: #0b0d0e; border: 1px solid var(--line-soft); touch-action: none; cursor: grab;
  user-select: none; -webkit-user-select: none;
}
.map-view:active { cursor: grabbing; }
.worldmap.compact .map-view { height: 14rem; cursor: pointer; touch-action: auto; }
.map-tile { position: absolute; overflow: hidden; pointer-events: none; }
.map-tile img { display: block; height: auto; max-width: none; }
img.pixelated { image-rendering: pixelated; }
.map-player {
  position: absolute; transform: translate(-50%, -50%); display: flex; flex-direction: column; align-items: center;
  pointer-events: none; z-index: 2;
}
.map-player img { width: 20px; height: 20px; border: 2px solid var(--text); border-radius: 3px; background: var(--card); box-shadow: 0 1px 4px rgba(0,0,0,.6); }
.map-player span {
  margin-top: 2px; font-size: 0.72rem; font-weight: 700; padding: 0 0.35rem; border-radius: 4px;
  background: rgba(14, 16, 18, 0.85); color: var(--text); white-space: nowrap;
}
.map-open-hint {
  position: absolute; left: 50%; bottom: 0.6rem; transform: translateX(-50%); z-index: 3; pointer-events: none;
  font-size: 0.78rem; padding: 0.2rem 0.6rem; border-radius: 1rem; background: rgba(14, 16, 18, 0.8); color: var(--text);
}
.map-controls { display: flex; align-items: center; gap: 0.5rem; margin: 0.6rem 0 1rem; flex-wrap: wrap; }
.map-controls button.small { min-width: 2.75rem; font-size: 1.2rem; }
.map-controls .coords { margin-right: auto; font-variant-numeric: tabular-nums; }
a.button-link {
  display: inline-flex; align-items: center; min-height: 2.5rem; padding: 0 1rem; border-radius: 10px;
  background: var(--accent); color: var(--accent-ink); font-weight: 700; text-decoration: none;
  box-shadow: inset 0 -3px 0 var(--accent-dark);
}
.chips li > button.chip { display: inline-flex; align-items: center; gap: 0.35rem; }

/* Tageszeit und Wetter im Spiel */
.env-line { display: flex; align-items: center; gap: 0.45rem; margin: 0.3rem 0 0.2rem; color: var(--muted); font-size: 0.9rem; }

/* Chronik, Woche, Tode, Fun Facts */
.firsts { list-style: none; margin: 0.6rem 0 0; padding: 0; }
.firsts li { display: flex; justify-content: space-between; gap: 0.8rem; padding: 0.55rem 0; border-top: 1px solid var(--line-soft); }
.firsts li:first-child { border-top: 0; }
.firsts li.open { opacity: 0.6; }
.first-title { display: flex; flex-wrap: wrap; align-items: center; gap: 0.2rem 0.5rem; min-width: 0; }
.first-title .small { flex-basis: 100%; padding-left: 1.6rem; }
.first-who { display: flex; flex-direction: column; align-items: flex-end; text-align: right; white-space: nowrap; }
.feed { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.feed li { display: grid; grid-template-columns: 6.2rem 1fr; gap: 0.6rem; padding: 0.4rem 0; border-top: 1px solid var(--line-soft); align-items: baseline; }
.feed li:first-child { border-top: 0; }
.hero-week { display: flex; align-items: center; gap: 1rem; }
.big-name { font-size: 1.5rem; font-weight: 800; overflow-wrap: anywhere; }
.bars { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.bars li { display: grid; grid-template-columns: 7.5rem 1fr 2.5rem; gap: 0.6rem; align-items: center; padding: 0.3rem 0; }
.bars li strong { text-align: right; font-variant-numeric: tabular-nums; }
.bar { height: 0.5rem; border-radius: 4px; background: var(--line-soft); overflow: hidden; }
.bar > span { display: block; height: 100%; border-radius: 4px; background: var(--accent); }
.facts { list-style: none; margin: 0.4rem 0 0; padding: 0; }
.facts li { display: flex; gap: 0.7rem; align-items: flex-start; padding: 0.55rem 0; border-top: 1px solid var(--line-soft); }
.facts li:first-child { border-top: 0; }
.facts .pix { flex: none; margin-top: 0.15rem; }
.heatmap {
  --hm-empty: #23282d;
  display: grid; grid-template-columns: 1.8rem repeat(24, minmax(0, 1fr)); gap: 2px; margin: 0.6rem 0 0.4rem;
}
.hm-day, .hm-hour { font-size: 0.7rem; color: var(--muted); }
.hm-day { align-self: center; }
.hm-cell { aspect-ratio: 1; border-radius: 2px; min-height: 0.7rem; }
.causes h3 { display: flex; align-items: center; gap: 0.5rem; }
.causes { margin: 0; }
.unlock { margin: 0.75rem 0; }
