/* Fakecraft 5 – Pixel-Look: dicke Ränder, harte Schatten, kräftige Herbstfarben */

/* Monocraft: Minecraft-Schrift, SIL Open Font License (fonts/Monocraft-OFL.txt) */
@font-face {
  font-family: "Monocraft";
  src: url("/fonts/Monocraft-Regular.woff") format("woff");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: "Monocraft";
  src: url("/fonts/Monocraft-Bold.woff") format("woff");
  font-weight: 700;
  font-display: swap;
}

:root {
  --ink: #16120f;
  --ink-soft: rgba(22, 18, 15, 0.72);
  --cream: #fff4df;
  --paper: #fffaf0;
  --night: #16241d;
  --night-2: #1f3329;
  --night-text: #f6ead2;
  --night-muted: #b9c4b3;
  --pumpkin: #f2862b;
  --pumpkin-dark: #b85a12;
  --poplar: #f7cb4a;
  --sky: #93cdeb;
  --moss: #95cf6a;
  --heather: #cfadee;
  --berry: #e2574c;
  --error: #a3160e;

  --px: 4px;
  --pixel: "Pixelify Sans", "Courier New", monospace;
  --mc: "Monocraft", "Pixelify Sans", "Courier New", monospace;
  --text: "Bricolage Grotesque", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Rahmen mit abgeschnittenen Pixel-Ecken + harter Schatten */
  --frame:
    0 calc(var(--px) * -1) 0 0 var(--ink),
    0 var(--px) 0 0 var(--ink),
    calc(var(--px) * -1) 0 0 0 var(--ink),
    var(--px) 0 0 0 var(--ink);
  --frame-shadow:
    var(--frame),
    calc(var(--px) * 2.5) calc(var(--px) * 2.5) 0 0 rgba(22, 18, 15, 0.9);
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; scroll-padding-top: 5rem; }
}

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; }

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

:focus-visible { outline: 3px solid var(--pumpkin); outline-offset: 4px; }

a { color: inherit; text-underline-offset: 0.18em; text-decoration-thickness: 2px; }

.skip-link {
  position: absolute;
  left: 1rem;
  top: -4rem;
  z-index: 100;
  padding: 0.5rem 1rem;
  background: var(--poplar);
  color: var(--ink);
  font-family: var(--pixel);
  box-shadow: var(--frame);
}
.skip-link:focus { top: 1rem; }

/* ---------- Pixel-Icons ---------- */

.px-icon { display: block; width: 100%; height: 100%; }
.icon-box {
  display: grid;
  place-items: center;
  flex: none;
  width: 2.5rem;
  height: 2.5rem;
  padding: 0.55rem;
  background: var(--ink);
  color: var(--paper);
}
.icon-box-lg { width: 3rem; height: 3rem; padding: 0.65rem; }

/* ---------- Knöpfe ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 2.75rem;
  padding: 0.45rem 1.1rem;
  border: 0;
  background: var(--paper);
  color: var(--ink);
  font: 600 1.05rem/1.1 var(--pixel);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--frame), calc(var(--px) * 1.5) calc(var(--px) * 1.5) 0 0 rgba(22, 18, 15, 0.9);
  transition: transform 0.06s ease, box-shadow 0.06s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translate(var(--px), var(--px)); box-shadow: var(--frame); }
.btn[disabled] { cursor: progress; opacity: 0.75; }
.btn-lg { min-height: 3.25rem; padding: 0.6rem 1.5rem; font-size: 1.2rem; }
.btn-poplar { background: var(--poplar); }
.btn-pumpkin { background: var(--pumpkin); }
.btn-cream { background: var(--paper); }

.link-btn {
  padding: 0;
  border: 0;
  background: none;
  color: inherit;
  font: 600 1rem var(--text);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  text-decoration-thickness: 2px;
  cursor: pointer;
}

/* ---------- Navigation ---------- */

.nav {
  position: relative;
  z-index: 50;
  background: var(--pumpkin);
  border-bottom: var(--px) solid var(--ink);
}
.nav-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem 1.5rem;
  max-width: 72rem;
  margin: 0 auto;
  padding: 0.7rem 1.25rem;
}
.logo {
  font: 700 1.55rem/1 var(--mc);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}

.nav-links {
  order: 3;
  display: flex;
  width: calc(100% + 2.5rem);
  margin: 0 -1.25rem -0.7rem;
  padding: 0 0.75rem;
  overflow-x: auto;
  gap: 0.15rem;
  border-top: 3px solid var(--ink);
  background: #e57a21;
}
.nav-links a {
  padding: 0.45rem 0.45rem;
  font: 600 0.92rem/1 var(--pixel);
  text-transform: uppercase;
  text-decoration: none;
  color: var(--ink);
}
.nav-links a { white-space: nowrap; }
.nav-links a:hover,
.nav-links a[aria-current="page"] { background: var(--ink); color: var(--pumpkin); }
.soon {
  margin-left: 0.3rem;
  padding: 0.1rem 0.35rem;
  background: var(--poplar);
  color: var(--ink);
  font-size: 0.75rem;
  vertical-align: 0.1em;
}
.nav-cta { margin-left: auto; }

@media (min-width: 760px) {
  .nav { position: sticky; top: 0; }
  .nav-inner { flex-wrap: nowrap; }
  .nav-links { order: 0; width: auto; margin: 0 0 0 auto; padding: 0; border-top: 0; background: none; overflow: visible; }
  .nav-links a { padding: 0.45rem 0.8rem; font-size: 1.05rem; }
  .nav-links + .nav-cta { margin-left: 0.5rem; }
}

/* ---------- Hero ---------- */

.hero {
  position: relative;
  background-color: var(--night);
  background-image:
    radial-gradient(ellipse 60% 55% at 50% 42%, rgba(242, 134, 43, 0.14), rgba(242, 134, 43, 0) 70%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='260' height='200' shape-rendering='crispEdges'%3E%3Cg fill='%23f6ead2'%3E%3Crect x='14' y='22' width='3' height='3' opacity='0.55'/%3E%3Crect x='83' y='9' width='3' height='3' opacity='0.35'/%3E%3Crect x='150' y='48' width='3' height='3' opacity='0.5'/%3E%3Crect x='212' y='17' width='3' height='3' opacity='0.3'/%3E%3Crect x='47' y='96' width='3' height='3' opacity='0.28'/%3E%3Crect x='118' y='131' width='3' height='3' opacity='0.45'/%3E%3Crect x='190' y='104' width='3' height='3' opacity='0.25'/%3E%3Crect x='236' y='160' width='3' height='3' opacity='0.4'/%3E%3Crect x='24' y='170' width='3' height='3' opacity='0.3'/%3E%3Crect x='98' y='64' width='3' height='3' opacity='0.2'/%3E%3Crect x='170' y='186' width='3' height='3' opacity='0.35'/%3E%3Crect x='64' y='148' width='3' height='3' opacity='0.18'/%3E%3C/g%3E%3C/svg%3E");
  color: var(--night-text);
  text-align: center;
}
.hero-inner { max-width: 66rem; margin: 0 auto; padding: 3.5rem 1.25rem 1.5rem; }

.badge {
  display: inline-block;
  margin: 0 0 1.5rem;
  padding: 0.3rem 0.85rem;
  background: var(--poplar);
  color: var(--ink);
  font: 600 1rem/1.3 var(--pixel);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink);
}

.hero-title {
  margin: 0;
  font: 700 clamp(2.3rem, 10.5vw, 7rem)/1.05 var(--mc);
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0.075em 0.075em 0 var(--pumpkin-dark);
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.countdown { margin-top: 2.75rem; }
.countdown-caption { margin: 0 0 1rem; color: var(--night-muted); }
.countdown-caption time { color: var(--night-text); font-weight: 600; }
.cd-tiles { display: flex; justify-content: center; gap: 1.25rem; }
.cd-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 5.5rem;
  padding: 0.6rem 0.75rem 0.5rem;
  color: var(--ink);
  box-shadow: var(--frame-shadow);
}
.cd-poplar { background: var(--poplar); }
.cd-pumpkin { background: var(--pumpkin); }
.cd-sky { background: var(--sky); }
.cd-num { font: 700 2.4rem/1 var(--pixel); font-variant-numeric: tabular-nums; }
.cd-label { margin-top: 0.2rem; font: 600 0.95rem/1 var(--pixel); text-transform: uppercase; }

.started {
  margin: 2.75rem 0 0;
  font: 700 2rem/1.1 var(--pixel);
  color: var(--poplar);
  text-transform: uppercase;
}

.live-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin: 2.25rem 0 0;
  padding: 0.35rem 0.8rem;
  background: var(--night-2);
  color: var(--night-text);
  box-shadow: 0 -2px 0 rgba(246, 234, 210, 0.25), 0 2px 0 rgba(246, 234, 210, 0.25), -2px 0 0 rgba(246, 234, 210, 0.25), 2px 0 0 rgba(246, 234, 210, 0.25);
}
.live-chip strong { font: 700 1.2rem/1 var(--pixel); color: var(--poplar); }
.live-dot { width: 0.6rem; height: 0.6rem; background: var(--moss); }

.scene { line-height: 0; }
.scene img {
  display: block;
  width: 100%;
  height: 150px;
  object-fit: cover;
  object-position: center bottom;
  image-rendering: pixelated;
}
@media (min-width: 760px) {
  .scene img { height: 192px; }
  .cd-tile { min-width: 7rem; }
  .cd-num { font-size: 3rem; }
}

/* ---------- Laufband ---------- */

.ticker {
  overflow: hidden;
  background: var(--poplar);
  border-block: var(--px) solid var(--ink);
  white-space: nowrap;
}
.ticker-track { display: inline-flex; animation: ticker 45s linear infinite; }
.ticker-group {
  display: inline-flex;
  align-items: center;
  gap: 1.1rem;
  padding: 0.55rem 0.55rem;
  font: 700 1.15rem/1 var(--pixel);
  text-transform: uppercase;
}
.ticker i { font-style: normal; color: var(--pumpkin-dark); }

@keyframes ticker {
  to { transform: translateX(-50%); }
}

/* ---------- Abschnitte ---------- */

.section { padding: clamp(3.5rem, 8vw, 6rem) 1.25rem; }
.section-light { background: var(--cream); color: var(--ink); }
.section-dark { background: var(--night); color: var(--night-text); }
.container { max-width: 72rem; margin: 0 auto; }

.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 0.75rem 2rem;
  margin-bottom: 2.5rem;
}
h2 {
  margin: 0;
  font: 700 clamp(2.5rem, 8vw, 4.25rem)/1 var(--pixel);
  letter-spacing: 0.01em;
  text-transform: uppercase;
}
.section-note { max-width: 30rem; margin: 0; color: var(--ink-soft); }
.section-dark .section-note { color: var(--night-muted); }

/* ---------- Karten ---------- */

.card { position: relative; padding: 1.5rem; box-shadow: var(--frame-shadow); color: var(--ink); }
.card-paper { background: var(--paper); }
.card-pumpkin { background: var(--pumpkin); }
.card-night {
  background: var(--night-2);
  color: var(--night-text);
  box-shadow:
    0 calc(var(--px) * -1) 0 0 rgba(246, 234, 210, 0.3),
    0 var(--px) 0 0 rgba(246, 234, 210, 0.3),
    calc(var(--px) * -1) 0 0 0 rgba(246, 234, 210, 0.3),
    var(--px) 0 0 0 rgba(246, 234, 210, 0.3);
}
.card-title { margin: 0 0 0.35rem; font: 700 1.6rem/1.15 var(--pixel); text-transform: uppercase; }
.card-lead { margin: 0 0 1.5rem; color: var(--ink-soft); }

/* Infos */
.tiles {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(15rem, 1fr));
  gap: 2rem 1.75rem;
}
.tile { padding: 1.25rem 1.25rem 1.1rem; box-shadow: var(--frame-shadow); }
.tile-sky { background: var(--sky); }
.tile-poplar { background: var(--poplar); }
.tile-moss { background: var(--moss); }
.tile-heather { background: var(--heather); }
.tile-top { display: flex; align-items: center; gap: 0.75rem; margin-bottom: 1rem; }
.tile-label { margin: 0; font: 700 1.3rem/1 var(--pixel); text-transform: uppercase; }
.tile-value { margin: 0; font: 700 1.6rem/1.15 var(--pixel); }
.tile-sub { margin: 0.3rem 0 0; color: var(--ink-soft); font-size: 1rem; }

/* Whitelist */
.wl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem; align-items: stretch; }
@media (min-width: 900px) {
  .wl-grid { grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 2.5rem; }
}
.cta-card { padding: 1.75rem; }
@media (min-width: 760px) { .cta-card { padding: 2.25rem; } }
.cta-card .card-lead { max-width: 34rem; }
.cta-entered { display: flex; gap: 1.25rem; align-items: flex-start; }
.cta-entered p { margin: 0 0 0.9rem; font-size: 1.1rem; }
.card-title-closed { color: var(--error); }

.field { margin-bottom: 1.25rem; }
.field > label:not(.check) { display: block; margin-bottom: 0.35rem; font: 700 1.1rem/1.2 var(--pixel); }
.field input[type="text"] {
  width: 100%;
  min-height: 3rem;
  padding: 0.55rem 0.8rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: #ffffff;
  color: var(--ink);
  font: 500 1.1rem/1.3 var(--text);
}
.field input[type="text"]:focus { outline: 3px solid var(--pumpkin); outline-offset: 2px; }
.field input[aria-invalid="true"] { border-color: var(--error); background: #fff1ee; }

.hint { margin: 0.3rem 0 0; font-size: 0.95rem; line-height: 1.4; color: var(--ink-soft); }
.error { margin: 0.35rem 0 0; font-size: 0.98rem; line-height: 1.4; font-weight: 700; color: var(--error); }

.check { display: grid; grid-template-columns: auto 1fr; gap: 0.7rem; align-items: start; line-height: 1.45; cursor: pointer; }
.check input { width: 1.3rem; height: 1.3rem; margin: 0.12rem 0 0; accent-color: var(--pumpkin); }
.check a { font-weight: 700; }

.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.turnstile { margin-bottom: 1.25rem; }

.wl-form .btn { margin-top: 0.5rem; }
.form-status { margin: 1rem 0 0; font-weight: 700; color: var(--error); }
.form-status:empty { display: none; }
.privacy { margin: 1.25rem 0 0; font-size: 0.9rem; line-height: 1.45; color: var(--ink-soft); }

.wl-state { display: flex; gap: 1.25rem; align-items: flex-start; }
.wl-state:focus { outline: none; }
.wl-state p { margin: 0 0 1rem; font-size: 1.1rem; }
.wl-head { flex: none; width: 72px; height: 72px; image-rendering: pixelated; background: var(--moss); box-shadow: var(--frame); }
.wl-done .card-title { color: #2f6b18; }
.wl-closed .card-title { color: var(--error); }
@media (prefers-reduced-motion: no-preference) {
  .wl-done:not([hidden]) .wl-head { animation: pop 0.35s cubic-bezier(0.2, 0.9, 0.3, 1.4) both; }
}
@keyframes pop { from { transform: scale(0.4); opacity: 0; } }

.counter-card { display: flex; flex-direction: column; justify-content: center; padding: 1.5rem 1.75rem; }
.counter-num { font: 700 clamp(3.5rem, 10vw, 5.5rem)/1 var(--mc); font-variant-numeric: tabular-nums; }
.counter-label { margin-top: 0.5rem; font: 600 1.15rem/1.2 var(--pixel); text-transform: uppercase; }

.steps { display: grid; gap: 1.25rem; margin: 2.75rem 0 0; padding: 0; list-style: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.75rem; } }
.step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.9rem;
  align-items: start;
  padding: 1.1rem 1.2rem;
  background: var(--night-2);
  box-shadow: 0 -3px 0 rgba(246, 234, 210, 0.22), 0 3px 0 rgba(246, 234, 210, 0.22), -3px 0 0 rgba(246, 234, 210, 0.22), 3px 0 0 rgba(246, 234, 210, 0.22);
}
.step p { margin: 0; }
.step-num {
  display: grid;
  place-items: center;
  width: 2rem;
  height: 2rem;
  background: var(--poplar);
  color: var(--ink);
  font: 700 1.15rem/1 var(--mc);
}

/* Regelwerk */
.rules-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.25rem 2rem; }
@media (min-width: 900px) { .rules-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.rule { display: flex; flex-direction: column; padding: 1.5rem 1.5rem 1.4rem; hyphens: auto; overflow-wrap: break-word; }
.rule-sky { background: var(--sky); }
.rule-poplar { background: var(--poplar); }
.rule-heather { background: var(--heather); }
.rule-moss { background: var(--moss); }
.rule-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.rule-art { display: block; font: 600 1rem/1 var(--pixel); color: var(--ink-soft); }
.rule-title { margin: 0.15rem 0 0; font: 700 clamp(1.3rem, 5vw, 1.55rem)/1.1 var(--pixel); }
.para { margin: 0.5rem 0; }
.para sup { margin-right: 0.15em; font-size: 0.7em; font-weight: 700; line-height: 0; }
.lit { margin: 0.35rem 0 0.5rem; padding: 0 0 0 1.25rem; list-style: none; }
.lit li { display: grid; grid-template-columns: 1.5rem 1fr; margin: 0.3rem 0; }
.lit-mark { font-weight: 600; }

.tag {
  align-self: flex-start;
  margin: auto 0 0;
  padding: 0.25rem 0.65rem;
  font: 700 0.98rem/1.3 var(--pixel);
  color: var(--ink);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink);
}
.rule .tag { margin-top: 1.25rem; }
.tag-berry { background: var(--berry); }
.tag-pumpkin { background: var(--pumpkin); }
.tag-cream { background: var(--paper); }

/* ---------- Whitelist-Popup ---------- */

.wl-dialog {
  width: min(34rem, calc(100% - 2rem));
  max-width: none;
  max-height: calc(100dvh - 2rem);
  margin: auto;
  padding: 12px 14px 16px 6px;
  border: 0;
  background: transparent;
  overflow: visible;
}
.wl-dialog::backdrop { background: rgba(10, 16, 13, 0.78); }
html:has(.wl-dialog[open]) { overflow: hidden; }

.dialog-card {
  max-height: calc(100dvh - 4rem);
  overflow-y: auto;
  padding: 1.75rem 1.5rem 1.5rem;
}
@media (min-width: 600px) { .dialog-card { padding: 2.25rem 2.25rem 1.75rem; } }

.dialog-title {
  margin: 0 2.5rem 0.4rem 0;
  font: 700 clamp(1.5rem, 6vw, 1.9rem)/1.15 var(--mc);
  text-transform: uppercase;
}
.dialog-title-ok { color: #2f6b18; }

.dialog-close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: grid;
  place-items: center;
  width: 2.25rem;
  height: 2.25rem;
  padding: 0.55rem;
  border: 0;
  background: var(--ink);
  color: var(--paper);
  cursor: pointer;
}
.dialog-close:hover { background: var(--berry); color: var(--ink); }
.state-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 1.25rem; }

@media (prefers-reduced-motion: no-preference) {
  .wl-dialog[open] .dialog-card { animation: dialog-in 0.22s cubic-bezier(0.2, 0.9, 0.3, 1.2) both; }
  .wl-dialog[open]::backdrop { animation: fade-in 0.2s ease both; }
}
@keyframes dialog-in { from { transform: translateY(1.5rem) scale(0.96); opacity: 0; } }
@keyframes fade-in { from { opacity: 0; } }

/* ---------- Stats-Seite ---------- */

.stats-intro { padding-bottom: clamp(3rem, 7vw, 4.5rem); }
.page-title {
  margin: 0;
  font: 700 clamp(3rem, 12vw, 6rem)/1 var(--mc);
  text-transform: uppercase;
  color: var(--paper);
  text-shadow: 0.075em 0.075em 0 var(--pumpkin-dark);
}
.stats-lead { max-width: 40rem; margin: 1.25rem 0 0; font-size: 1.2rem; line-height: 1.5; }

.online-panel {
  display: grid;
  gap: 1.5rem;
  margin-top: 2.5rem;
  padding: 1.25rem 1.5rem;
  background: var(--night-2);
  box-shadow: 0 -3px 0 rgba(246, 234, 210, 0.22), 0 3px 0 rgba(246, 234, 210, 0.22), -3px 0 0 rgba(246, 234, 210, 0.22), 3px 0 0 rgba(246, 234, 210, 0.22);
}
@media (min-width: 760px) { .online-panel { grid-template-columns: auto 1fr; align-items: center; gap: 3rem; } }
.online-status { display: flex; align-items: center; gap: 0.9rem; }
.status-dot { width: 0.9rem; height: 0.9rem; background: var(--berry); }
.online-label { margin: 0; font: 600 0.95rem/1.2 var(--pixel); text-transform: uppercase; color: var(--night-muted); }
.online-value { margin: 0.2rem 0 0; font: 700 1.35rem/1.2 var(--pixel); }
.head-row { display: flex; gap: 0.6rem; margin-top: 0.5rem; }
.head-row .head-skel { background: rgba(246, 234, 210, 0.14); }

.head-skel { flex: none; display: block; width: 1.75rem; height: 1.75rem; background: rgba(22, 18, 15, 0.16); }

.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(17rem, 1fr)); gap: 2.25rem 2rem; }
.board { display: flex; flex-direction: column; padding: 1.4rem 1.4rem 1.25rem; }
.board-sky { background: var(--sky); }
.board-berry { background: var(--berry); }
.board-night { background: var(--night-2); color: var(--night-text); }
.board-poplar { background: var(--poplar); }
.board-moss { background: var(--moss); }
.board-heather { background: var(--heather); }
.board-head { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1.1rem; }
.board-title { margin: 0; font: 700 1.5rem/1.1 var(--mc); }
.board-sub { margin: 0.2rem 0 0; font-size: 0.98rem; opacity: 0.8; }
.icon-box-light { background: var(--paper); color: var(--ink); }

.board-list { margin: 0; padding: 0; list-style: none; }
.board-list li {
  display: grid;
  grid-template-columns: 1.9rem auto 1fr auto;
  align-items: center;
  gap: 0.7rem;
  padding: 0.5rem 0;
  border-bottom: 2px solid rgba(22, 18, 15, 0.14);
}
.board-night .board-list li { border-bottom-color: rgba(246, 234, 210, 0.14); }
.board-night .head-skel,
.board-night .bar { background: rgba(246, 234, 210, 0.16); }
.rank {
  display: grid;
  place-items: center;
  height: 1.75rem;
  font: 700 1rem/1 var(--mc);
}
.board-list li:nth-child(-n + 3) .rank { background: var(--ink); color: var(--paper); }
.board-night .board-list li:nth-child(-n + 3) .rank { background: var(--poplar); color: var(--ink); }
.bar { display: block; width: var(--w, 60%); height: 0.8rem; background: rgba(22, 18, 15, 0.16); }
.val { font: 700 1rem/1 var(--mc); opacity: 0.6; }

.board-soon {
  align-self: flex-start;
  margin: 1.1rem 0 0;
  padding: 0.25rem 0.65rem;
  background: var(--paper);
  color: var(--ink);
  font: 700 0.95rem/1.3 var(--pixel);
  box-shadow: 0 -3px 0 var(--ink), 0 3px 0 var(--ink), -3px 0 0 var(--ink), 3px 0 0 var(--ink);
}

.soon-box {
  display: grid;
  justify-items: start;
  gap: 0.75rem;
  margin-top: 3rem;
  padding: 1.5rem;
  background: var(--paper);
  box-shadow: var(--frame-shadow);
}
.soon-box p { margin: 0; }
.soon-title { font: 700 1.4rem/1.1 var(--mc); text-transform: uppercase; }

/* ---------- Fusszeile ---------- */

.footer { background: var(--night); color: var(--night-muted); border-top: var(--px) solid var(--ink); padding: 3rem 1.25rem 3.5rem; }
.footer-inner { display: grid; gap: 1.25rem; justify-items: start; }
.footer .logo { color: var(--poplar); }
.footer-links { display: flex; flex-wrap: wrap; gap: 0.5rem 1.5rem; }
.footer-links a { font: 600 1.05rem/1 var(--pixel); text-transform: uppercase; text-decoration: none; color: var(--night-text); }
.footer-links a:hover { color: var(--poplar); }
.footer-text,
.footer-legal { margin: 0; max-width: 40rem; }
.footer-legal { font-size: 0.88rem; opacity: 0.8; }

/* ---------- Bewegung reduzieren ---------- */

@media (prefers-reduced-motion: reduce) {
  .ticker-track { animation: none; }
  .btn { transition: none; }
}

/* ---------- Admin ---------- */

.admin { min-height: 100vh; }
.admin-main { max-width: 72rem; margin: 0 auto; padding: 2.5rem 1.25rem 4rem; }
.admin h1 { margin: 0 0 0.25rem; font: 700 clamp(2.2rem, 7vw, 3.2rem)/1 var(--pixel); text-transform: uppercase; }
.admin h2 { margin: 3rem 0 1.25rem; font-size: clamp(1.8rem, 5vw, 2.4rem); }
.admin-sub { margin: 0 0 2rem; color: var(--ink-soft); }
.admin-panel { padding: 1.25rem 1.5rem; background: var(--paper); box-shadow: var(--frame-shadow); }
.admin-panel + .admin-panel { margin-top: 2rem; }
.admin label { display: block; margin-bottom: 0.3rem; font: 700 1.05rem/1.2 var(--pixel); }
.admin input[type="text"],
.admin input[type="password"] {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.5rem 0.75rem;
  border: 3px solid var(--ink);
  border-radius: 0;
  background: #fff;
  color: var(--ink);
  font: 500 1.05rem/1.3 var(--text);
}
.admin-row { display: flex; flex-wrap: wrap; gap: 1rem; align-items: flex-end; }
.admin-row > .grow { flex: 1 1 14rem; }
.admin .btn { min-height: 2.75rem; font-size: 0.98rem; }
.admin-stats { display: flex; flex-wrap: wrap; gap: 0.5rem 2rem; margin-bottom: 1.25rem; }
.admin-stats p { margin: 0; }
.admin-stats strong { margin-right: 0.3rem; font: 700 1.6rem/1 var(--pixel); }
.admin-msg { margin: 1rem 0 0; min-height: 1.4em; }
.admin-msg.is-error { color: var(--error); font-weight: 700; }
.admin-msg.is-ok { color: #2f6b18; font-weight: 700; }
.table-scroll { overflow-x: auto; background: var(--paper); box-shadow: var(--frame-shadow); }
.admin table { width: 100%; border-collapse: collapse; font-size: 1rem; }
.admin th,
.admin td { padding: 0.65rem 0.85rem; text-align: left; border-bottom: 2px solid rgba(22, 18, 15, 0.12); white-space: nowrap; }
.admin th { font: 700 1rem/1.2 var(--pixel); text-transform: uppercase; background: var(--poplar); border-bottom: 3px solid var(--ink); }
.admin tbody tr:last-child td { border-bottom: 0; }
.admin td.num { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.player { display: inline-flex; align-items: center; gap: 0.6rem; }
.player img { width: 24px; height: 24px; image-rendering: pixelated; background: var(--moss); }
.flag { margin-left: 0.4rem; padding: 0.05rem 0.4rem; background: var(--poplar); font: 600 0.82rem/1.3 var(--pixel); }
.del-btn {
  padding: 0.25rem 0.6rem;
  border: 2px solid var(--error);
  background: none;
  color: var(--error);
  font: 600 0.92rem/1.2 var(--pixel);
  cursor: pointer;
}
.del-btn:hover { background: #fff1ee; }
.empty { margin: 0; padding: 1.5rem; color: var(--ink-soft); }
.commands-out {
  width: 100%;
  margin-top: 0.5rem;
  padding: 0.6rem;
  border: 3px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font: 0.95rem/1.45 ui-monospace, "SF Mono", Menlo, monospace;
}
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
