/* ==========================================================================
   Impact:Cores – Stil der öffentlichen Seite (Pixel/Retro)
   ==========================================================================
   Aufbau:
     1. Farben & Schriften als Variablen (hier zentral änderbar)
     2. Grundlagen
     3. Kopf- und Fußzeile
     4. Bausteine (Buttons, Abzeichen, Karten …)
     5. Startseite
     6. Projektseite (Spielfenster, Changelog …)
     7. Textseiten
   Die Akzentfarbe (--accent) kommt aus den Einstellungen im Admin-Bereich.
   ========================================================================== */

/* ---------- 1. Variablen ---------------------------------------------- */
:root {
  --accent: #ffcc33;
  --bg: #12111f;          /* Seitenhintergrund */
  --panel: #1c1a33;       /* Flächen, Bänder */
  --deep: #0b0a15;        /* Fußzeile, sehr dunkle Flächen */
  --line: #2a2748;        /* feine Linien, Raster */
  --edge: #4a4668;        /* Rahmen von Eingaben/Ghost-Buttons */
  --text: #f2efe6;
  --muted: #c9c4d9;
  --dim: #a9a4bd;
  --teal: #4fd1c5;
  --coral: #ff8a65;
  --amber: #ffd54f;
  --ink: #12111f;         /* dunkle Schrift auf hellen Flächen */
  --shadow: 6px 6px 0 #000;

  --font-display: "Press Start 2P", "Courier New", monospace;
  --font-pixel: "Silkscreen", "Courier New", monospace;
  --font-body: "IBM Plex Mono", ui-monospace, "Cascadia Mono", "Courier New", monospace;
}

/* ---------- 2. Grundlagen --------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--accent); }
a:hover { color: #fff3c4; }
img { max-width: 100%; height: auto; display: block; }
:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 820px; margin: 0 auto; padding: 0 24px; }
.section { padding-top: 72px; padding-bottom: 72px; }
.band { background: var(--panel); border-top: 4px solid #000; border-bottom: 4px solid #000; }
.muted { color: var(--muted); }
.small { font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.skip { position: absolute; left: -9999px; top: 8px; z-index: 10; background: var(--accent); color: var(--ink); padding: 10px 14px; font-family: var(--font-pixel); }
.skip:focus { left: 8px; }

.h2 { margin: 0; font-family: var(--font-display); font-size: 24px; line-height: 1.4; }
.h2-sm { margin: 0 0 24px; font-family: var(--font-display); font-size: 20px; line-height: 1.4; }
.kicker { margin: 0 0 18px; font-family: var(--font-pixel); color: var(--teal); font-size: 15px; }

/* Pixel-Raster als Hintergrund (Hero, leere Titelbilder) */
.pixel-grid {
  background-color: var(--panel);
  background-image: linear-gradient(var(--line) 2px, transparent 2px), linear-gradient(90deg, var(--line) 2px, transparent 2px);
  background-size: 24px 24px;
  display: grid;
  place-items: center;
}
.logo { color: var(--accent); image-rendering: pixelated; shape-rendering: crispEdges; }
.px-icon { fill: currentColor; shape-rendering: crispEdges; }

/* ---------- 3. Kopf- und Fußzeile ------------------------------------- */
.site-header { background: var(--panel); border-bottom: 4px solid #000; }
.header-row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 16px; padding-bottom: 16px; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--text); }
.brand:hover { color: var(--text); }
.brand-name { font-family: var(--font-display); font-size: 14px; letter-spacing: 1px; }
.header-right { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.main-nav { display: flex; flex-wrap: wrap; gap: 4px; font-family: var(--font-pixel); font-size: 15px; }
.main-nav a { padding: 10px 12px; text-decoration: none; }

.lang-switch { display: flex; border: 3px solid #000; box-shadow: 3px 3px 0 #000; font-family: var(--font-pixel); font-size: 14px; }
.lang-switch a { min-width: 44px; min-height: 40px; display: grid; place-items: center; text-decoration: none; background: var(--bg); color: var(--text); }
.lang-switch a[aria-current="true"] { background: var(--teal); color: var(--ink); }

.draft-banner { background: var(--amber); color: var(--ink); text-align: center; padding: 8px 16px; font-family: var(--font-pixel); font-size: 14px; border-bottom: 3px solid #000; }

.site-footer { background: var(--deep); border-top: 4px solid #000; }
.footer-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 16px; padding-top: 28px; padding-bottom: 28px; font-size: 14px; color: var(--dim); }
.footer-links { display: flex; flex-wrap: wrap; gap: 20px; }

/* ---------- 4. Bausteine ---------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-pixel); font-size: 16px; text-decoration: none; text-align: center;
  padding: 12px 22px; min-height: 48px; border: 3px solid #000; cursor: pointer;
  box-shadow: 4px 4px 0 #000; transition: transform .06s, box-shadow .06s;
}
.btn:active { transform: translate(3px, 3px); box-shadow: 1px 1px 0 #000; }
.btn-accent { background: var(--accent); color: var(--ink); }
.btn-accent:hover { color: var(--ink); filter: brightness(1.08); }
.btn-ghost { background: var(--panel); color: var(--text); border-color: var(--text); }
.btn-ghost:hover { color: var(--text); background: #26234a; }
.btn-teal { background: var(--teal); color: var(--ink); }
.btn-teal:hover { color: var(--ink); filter: brightness(1.08); }
.btn-code { background: transparent; color: var(--teal); border: 3px dashed var(--teal); box-shadow: none; }
.btn-code:hover { color: var(--ink); background: var(--teal); }
.btn-sm { font-size: 14px; padding: 8px 14px; min-height: 44px; box-shadow: 3px 3px 0 #000; }
.btn-block { display: flex; width: 100%; flex-direction: column; gap: 2px; }
.btn-code.btn-block { flex-direction: row; }
.btn-sub { font-family: var(--font-body); font-size: 12px; opacity: .8; }
.btn-row { display: flex; flex-wrap: wrap; gap: 16px; }

.tag { display: inline-block; font-family: var(--font-pixel); font-size: 13px; color: var(--ink); background: var(--teal); padding: 2px 8px; }
.tag-light { font-family: var(--font-pixel); font-size: 12px; color: var(--ink); background: var(--text); padding: 2px 8px; }
.badges { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.badge-outline { display: inline-flex; align-items: center; gap: 4px; font-family: var(--font-pixel); font-size: 12px; color: var(--teal); border: 2px solid var(--teal); padding: 0 6px; }
.badge-accent { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-pixel); font-size: 12px; color: var(--ink); background: var(--accent); padding: 2px 6px; }
.badge-draft { font-family: var(--font-pixel); font-size: 12px; color: var(--ink); background: var(--amber); padding: 2px 6px; }

.version { font-family: var(--font-display); font-size: 11px; background: var(--accent); color: var(--ink); padding: 6px 10px; white-space: nowrap; }
.date { font-family: var(--font-pixel); color: var(--teal); font-size: 14px; white-space: nowrap; }

/* ---------- 5. Startseite --------------------------------------------- */
.hero { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; padding-top: 88px; padding-bottom: 72px; }
.hero-text { flex: 1 1 520px; min-width: 0; }
.hero-title { margin: 0 0 24px; font-family: var(--font-display); font-size: clamp(24px, 4.2vw, 40px); line-height: 1.35; }
.hero-art { flex: 1 1 360px; min-width: 0; }
.hero-art .pixel-grid { aspect-ratio: 4 / 3; border: 4px solid #000; box-shadow: 8px 8px 0 var(--accent); padding: 24px; }
.hero-art .logo { width: 100%; max-width: 380px; height: auto; }

.section-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 32px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; font-family: var(--font-pixel); font-size: 14px; }
.chip { font: inherit; background: transparent; color: var(--text); border: 3px solid var(--edge); padding: 8px 14px; min-height: 44px; cursor: pointer; }
.chip.is-active { background: var(--accent); color: var(--ink); border-color: #000; }

.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; text-decoration: none; color: var(--text); background: var(--bg); border: 4px solid #000; box-shadow: var(--shadow); transition: transform .08s, box-shadow .08s; }
.card:hover { color: var(--text); transform: translate(-2px, -2px); box-shadow: 8px 8px 0 #000; }
.card[hidden] { display: none; }
.card-media { aspect-ratio: 16 / 10; border-bottom: 4px solid #000; background: var(--panel); overflow: hidden; }
.card-media img { width: 100%; height: 100%; object-fit: cover; image-rendering: auto; }
.card-placeholder { width: 100%; height: 100%; display: grid; place-items: center; }
.card-body { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.card-title { margin: 0; font-family: var(--font-display); font-size: 14px; line-height: 1.5; }
.card-text { margin: 0; font-size: 14px; color: var(--muted); }

.row-list { display: flex; flex-direction: column; gap: 14px; }
.row-item { display: flex; flex-wrap: wrap; gap: 8px 24px; align-items: center; text-decoration: none; color: var(--text); padding: 16px 20px; background: var(--panel); border: 3px solid #000; }
.row-item:hover { color: var(--text); border-color: var(--accent); }
.row-main { flex: 1 1 320px; }

.split { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; }
.split-text { flex: 1 1 420px; min-width: 0; }
.split-list { flex: 1 1 460px; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.dl-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; background: var(--bg); border: 3px solid #000; }

.coffee { flex: 1 1 300px; padding: 24px; background: var(--accent); color: var(--ink); border: 4px solid #000; box-shadow: var(--shadow); }
.coffee-title { margin: 0 0 14px; font-family: var(--font-display); font-size: 13px; line-height: 1.6; }
.coffee a { font-family: var(--font-pixel); font-size: 15px; color: var(--ink); }

/* ---------- 6. Projektseite ------------------------------------------- */
.back-row { padding-top: 36px; }
.back { font-family: var(--font-pixel); font-size: 14px; }
.project-top { display: flex; flex-wrap: wrap; gap: 40px; align-items: flex-start; padding-top: 28px; padding-bottom: 56px; }
.project-media { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.project-aside { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 18px; align-items: flex-start; }
.project-aside > * { max-width: 100%; }
.project-title { margin: 0; font-family: var(--font-display); font-size: clamp(22px, 3vw, 32px); line-height: 1.35; }
.project-cover { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; border: 4px solid #000; box-shadow: 8px 8px 0 #000; }
.project-cover-empty { display: grid; }

.facts { margin: 0; width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 6px 16px; font-size: 14px; padding: 16px; background: var(--panel); border: 3px solid #000; }
.facts dt { color: var(--dim); }
.facts dd { margin: 0; }
.aside-actions { width: 100%; display: flex; flex-direction: column; gap: 12px; }

.also-on { width: 100%; padding: 16px; background: var(--panel); border: 3px solid #000; display: flex; flex-direction: column; gap: 12px; }
.also-title { margin: 0; font-family: var(--font-pixel); font-size: 15px; font-weight: 400; color: var(--dim); }
.also-links { display: flex; flex-wrap: wrap; gap: 8px; }
.also-links a { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-pixel); font-size: 14px; text-decoration: none; color: var(--text); background: var(--bg); border: 3px solid var(--edge); padding: 8px 14px; min-height: 44px; }
.also-links a:hover { border-color: var(--accent); color: var(--text); }

.gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 12px; }
.gallery a { border: 3px solid #000; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--panel); }
.gallery a:hover { border-color: var(--accent); }
.gallery img { width: 100%; height: 100%; object-fit: cover; }

/* Spielfenster */
.player { border: 4px solid #000; box-shadow: 8px 8px 0 #000; background: #000; }
.player-stage { position: relative; aspect-ratio: 16 / 9; background-color: var(--deep);
  background-image: linear-gradient(var(--panel) 2px, transparent 2px), linear-gradient(90deg, var(--panel) 2px, transparent 2px);
  background-size: 20px 20px; }
.player-stage iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; background: #000; }
.player-cover { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .35; }
.player-start { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 16px; text-align: center; }
.btn-play { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-display); font-size: clamp(12px, 2vw, 16px); background: var(--accent); color: var(--ink); border: 4px solid #000; box-shadow: 6px 6px 0 #000; padding: 18px 28px; min-height: 48px; cursor: pointer; }
.btn-play:hover { filter: brightness(1.08); }
.btn-play:active { transform: translate(3px, 3px); box-shadow: 3px 3px 0 #000; }
.player-hint { font-family: var(--font-pixel); font-size: 14px; color: var(--dim); }
.player-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 14px; background: var(--panel); border-top: 4px solid #000; font-size: 14px; color: var(--muted); }
.player-actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* Changelog */
.release { background: var(--panel); border: 3px solid #000; padding: 20px 24px; display: flex; flex-direction: column; gap: 14px; margin-bottom: 16px; }
.release-current { border-width: 4px; box-shadow: var(--shadow); }
.release-head { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.changes { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 8px; }
.changes li { display: flex; gap: 12px; align-items: baseline; }
.ch { flex: 0 0 auto; font-family: var(--font-pixel); font-size: 12px; min-width: 96px; text-align: center; color: var(--ink); padding: 1px 6px; }
.ch-new { background: var(--teal); }
.ch-improved { background: var(--amber); }
.ch-fixed { background: var(--coral); }
.ch-note { background: transparent; color: var(--dim); }
.older { background: var(--panel); border: 3px solid #000; padding: 14px 20px; }
.older summary { font-family: var(--font-pixel); font-size: 15px; cursor: pointer; min-height: 32px; display: flex; align-items: center; }
.older-list { margin-top: 16px; }
.older .release { background: var(--bg); }

/* ---------- 7. Textseiten / Markdown ---------------------------------- */
.page-title { margin: 0 0 28px; font-family: var(--font-display); font-size: clamp(20px, 3vw, 28px); line-height: 1.4; }
.prose { color: var(--muted); }
.prose h2, .prose h3, .prose h4 { color: var(--text); font-family: var(--font-pixel); font-weight: 400; margin: 32px 0 10px; }
.prose h2 { font-size: 20px; } .prose h3 { font-size: 18px; color: var(--teal); } .prose h4 { font-size: 16px; }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose strong { color: var(--text); }
.prose img { border: 3px solid #000; margin: 8px 0; }
.prose code { background: var(--deep); padding: 1px 6px; color: var(--teal); }
.prose pre { background: var(--deep); border: 3px solid #000; padding: 14px; overflow-x: auto; }
.prose pre code { background: none; padding: 0; }
.prose blockquote { margin: 0 0 16px; padding: 10px 16px; border-left: 4px solid var(--accent); background: rgba(255,255,255,.04); }

.error-page { text-align: center; }
.error-art { margin: 0 auto 28px; max-width: 320px; aspect-ratio: 4 / 3; border: 4px solid #000; }

@media (max-width: 600px) {
  .section { padding-top: 52px; padding-bottom: 52px; }
  .hero { padding-top: 48px; gap: 32px; }
  .changes li { flex-direction: column; gap: 4px; }
  .ch { min-width: 0; }
}

/* ---------- 8. Wartungsmodus ------------------------------------------ */
.maint-banner { background: var(--coral); }
.maint-banner a { color: var(--ink); margin-left: 10px; }
.maint-page { min-height: 100vh; display: grid; place-items: center; padding: 24px;
  background-image: linear-gradient(var(--panel) 2px, transparent 2px), linear-gradient(90deg, var(--panel) 2px, transparent 2px);
  background-size: 24px 24px; }
.maint-box { width: 100%; max-width: 560px; background: var(--panel); border: 4px solid #000; box-shadow: 10px 10px 0 var(--accent);
  padding: 32px; display: flex; flex-direction: column; align-items: center; gap: 18px; text-align: center; }
.maint-box .kicker { margin: 0; }
.maint-title { margin: 0; font-family: var(--font-display); font-size: clamp(20px, 5vw, 28px); }
.blink { animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.maint-bar { width: 100%; height: 24px; border: 3px solid #000; background: var(--deep); padding: 3px; }
.maint-bar span { display: block; height: 100%; width: 40%; background: repeating-linear-gradient(90deg, var(--accent) 0 12px, transparent 12px 16px);
  animation: load 2.4s steps(12) infinite; }
@keyframes load { from { width: 4%; } to { width: 100%; } }
.maint-text { margin: 0; color: var(--muted); }
.maint-until { margin: 0; font-family: var(--font-pixel); color: var(--teal); }
.maint-until strong { color: var(--text); font-weight: 400; }
@media (prefers-reduced-motion: reduce) { .blink, .maint-bar span { animation: none; } .maint-bar span { width: 60%; } }

/* Sehr lange Wörter/Links (z. B. URLs ohne Leerzeichen) umbrechen statt die Seite zu verbreitern */
.card-title, .card-text, .project-title, .hero-title, .page-title, .prose, .row-main, .dl-item, .also-links a, .changes li span, .maint-text { overflow-wrap: anywhere; }

/* ==========================================================================
   9. RETRO / GAMING / PEN & PAPER
   ========================================================================== */

/* Pixel-Mauszeiger (bei Links bleibt die normale Hand) */
body { cursor: url("data:image/svg+xml,%3Csvg%20xmlns%3D%22http%3A//www.w3.org/2000/svg%22%20width%3D%2224%22%20height%3D%2236%22%20viewBox%3D%220%200%2012%2018%22%20shape-rendering%3D%22crispEdges%22%3E%3Crect%20x%3D%220%22%20y%3D%220%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%221%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%222%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%223%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%224%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%225%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%226%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%227%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%228%22%20y%3D%228%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%228%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%229%22%20y%3D%229%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%229%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2210%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%224%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%227%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%228%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%229%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%2210%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%2211%22%20y%3D%2211%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%223%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%224%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%225%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2212%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%222%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%224%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%225%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%2213%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%221%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%224%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%225%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%226%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%2214%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%220%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%225%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%226%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2215%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%225%22%20y%3D%2216%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%226%22%20y%3D%2216%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%227%22%20y%3D%2216%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%23ffffff%22/%3E%3Crect%20x%3D%228%22%20y%3D%2216%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%226%22%20y%3D%2217%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3Crect%20x%3D%227%22%20y%3D%2217%22%20width%3D%221%22%20height%3D%221%22%20fill%3D%22%2312111f%22/%3E%3C/svg%3E") 0 0, auto; }
a, button, summary, label { cursor: pointer; }

.sprite { display: inline-block; vertical-align: middle; image-rendering: pixelated; shape-rendering: crispEdges; flex: 0 0 auto; }
.h2 .sprite, .h2-sm .sprite { margin-right: 6px; vertical-align: -4px; }
.btn .sprite { margin-right: 2px; }
.kicker { margin-bottom: 10px; }
.caret { display: inline-block; width: .6em; height: 1em; margin-left: 4px; vertical-align: -2px; background: var(--teal); animation: blink 1s steps(1) infinite; }

/* --- JRPG-Textbox -------------------------------------------------------- */
.dialog { position: relative; margin: 0 0 32px; max-width: 580px; padding: 22px 22px 26px; background: #1b2a6b;
  border: 4px solid #000; box-shadow: inset 0 0 0 3px #fff, inset 0 0 0 6px #1b2a6b, 6px 6px 0 #000; }
.dialog-name { position: absolute; top: -18px; left: 18px; font-family: var(--font-pixel); font-size: 14px; color: var(--ink);
  background: var(--accent); border: 3px solid #000; padding: 2px 10px; }
.dialog-text { margin: 0; font-size: 17px; color: #fff; line-height: 1.7; }
.dialog-next { position: absolute; right: 14px; bottom: 6px; color: var(--accent); font-size: 14px; animation: bob 0.8s steps(2) infinite; }
@keyframes bob { 50% { transform: translateY(3px); } }

/* --- Hero-Bild: Scanlines, schwebende Sprites, HUD ----------------------- */
.hero-art .pixel-grid { position: relative; overflow: hidden; }
.crt::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.18) 0 2px, transparent 2px 4px); }
.float { position: absolute; animation: float 2.4s steps(4) infinite; }
.f1 { top: 12%; left: 10%; } .f2 { top: 16%; right: 12%; animation-delay: .6s; }
.f3 { bottom: 14%; left: 16%; animation-delay: 1.2s; } .f4 { bottom: 12%; right: 10%; animation-delay: 1.8s; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.hud { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 14px;
  padding: 8px 12px; background: #000; border: 3px solid var(--edge); font-family: var(--font-display); font-size: 10px; color: #fff; }
.hud-hp { display: flex; gap: 3px; }
.hud-score { color: var(--accent); }
.hud-coins { display: flex; align-items: center; gap: 6px; }

/* --- Pixel-Trennleiste -------------------------------------------------- */
.pixel-divider { display: flex; justify-content: center; align-items: center; gap: 18px; padding: 12px 16px; flex-wrap: wrap; }

/* --- Projektkarten mit Seltenheit --------------------------------------- */
.rar-common    { --rar: #c9c4d9; }
.rar-uncommon  { --rar: #69db7c; }
.rar-rare      { --rar: #64b5f6; }
.rar-epic      { --rar: #b388ff; }
.rar-legendary { --rar: #ffa94d; }
.card { position: relative; }
.card:hover { box-shadow: 8px 8px 0 var(--rar, #000); }
.card-media { position: relative; border-bottom-color: var(--rar, #000); }
.rarity { position: absolute; top: 8px; left: 8px; font-family: var(--font-pixel); font-size: 12px; color: var(--ink);
  background: var(--rar); border: 2px solid #000; padding: 0 6px; }
.card-press { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--font-display); font-size: 12px;
  color: #fff; background: rgba(0,0,0,.55); opacity: 0; transition: opacity .1s steps(2); text-shadow: 2px 2px 0 #000; }
.card:hover .card-press, .card:focus-visible .card-press { opacity: 1; animation: blink 1s steps(1) infinite; }
.card-lv { align-self: flex-end; font-family: var(--font-display); font-size: 9px; color: var(--rar, var(--dim)); }
.rarity-tag { font-family: var(--font-pixel); font-size: 13px; color: var(--ink); background: var(--rar); padding: 2px 8px; border: 2px solid #000; }

/* --- Inventar (Downloads) ------------------------------------------------ */
.inventory .dl-item { gap: 14px; }
.slot { width: 48px; height: 48px; display: grid; place-items: center; background: #0b0a15;
  border: 3px solid #000; box-shadow: inset 2px 2px 0 #2a2748, inset -2px -2px 0 #000; flex: 0 0 auto; }
.dl-name { flex: 1 1 200px; }
.btn-line { display: inline-flex; align-items: center; gap: 6px; }

/* --- Charakterbogen auf Pergament --------------------------------------- */
.sheet { --ink: #3b2a1a; flex: 1 1 520px; min-width: 0; color: var(--ink); background: #efe2c0;
  background-image: radial-gradient(rgba(120,80,30,.12) 1px, transparent 1px); background-size: 6px 6px;
  border: 4px solid #3b2a1a; box-shadow: 8px 8px 0 #000; padding: 26px;
  clip-path: polygon(0 8px, 8px 8px, 8px 0, calc(100% - 8px) 0, calc(100% - 8px) 8px, 100% 8px, 100% calc(100% - 8px),
    calc(100% - 8px) calc(100% - 8px), calc(100% - 8px) 100%, 8px 100%, 8px calc(100% - 8px), 0 calc(100% - 8px)); }
.sheet-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px;
  border-bottom: 3px double #3b2a1a; padding-bottom: 12px; margin-bottom: 18px; }
.sheet-title { margin: 0; font-family: var(--font-display); font-size: 18px; color: #3b2a1a; }
.sheet-hp { display: flex; gap: 4px; }
.sheet-stats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { display: flex; flex-direction: column; align-items: center; padding: 10px 6px; background: #f8efd6; border: 3px solid #3b2a1a;
  border-radius: 0 0 50% 50% / 0 0 18% 18%; text-align: center; }
.stat-val { font-family: var(--font-display); font-size: 24px; color: #7a1f1f; }
.stat-key { font-family: var(--font-pixel); font-size: 14px; margin-top: 4px; }
.stat-hint { font-size: 11px; color: #6d5536; }
.sheet-rows { margin: 0 0 16px; display: flex; flex-direction: column; gap: 6px; }
.sheet-rows div { display: flex; gap: 10px; border-bottom: 2px dashed rgba(59,42,26,.35); padding-bottom: 4px; }
.sheet-rows dt { font-family: var(--font-pixel); font-size: 14px; min-width: 150px; }
.sheet-rows dd { margin: 0; font-weight: 600; }
.prose-ink p { margin: 0 0 12px; color: #4a3826; }
.prose-ink a { color: #7a1f1f; }

.side-col { flex: 1 1 280px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.side-col > * { flex: 0 0 auto; }

/* --- W20 ------------------------------------------------------------------ */
.dice-box { background: var(--panel); border: 4px solid #000; box-shadow: var(--shadow); padding: 20px; text-align: center; }
.dice-btn { position: relative; background: none; border: 0; padding: 0; display: inline-grid; place-items: center; }
.dice-btn:hover .sprite { filter: brightness(1.15); }
.dice-num { position: absolute; top: 46%; left: 50%; transform: translate(-50%, -50%); font-family: var(--font-display);
  font-size: 15px; color: #fff; text-shadow: 2px 2px 0 #000; }
.dice-btn.rolling { animation: shake .5s steps(6); }
@keyframes shake { 0% { transform: rotate(0); } 25% { transform: rotate(-14deg); } 50% { transform: rotate(10deg); } 75% { transform: rotate(-6deg); } 100% { transform: rotate(0); } }
.dice-label { margin: 10px 0 4px; font-family: var(--font-pixel); font-size: 15px; }
.dice-out { margin: 0; min-height: 3em; font-size: 14px; color: var(--muted); }
.dice-out.crit { color: var(--accent); } .dice-out.fail { color: var(--coral); }

.coffee-title { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; }
.coffee-text { margin: 0 0 12px; font-size: 14px; }

/* --- Fußzeile, Toast ----------------------------------------------------- */
.footer-left { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.insert-coin { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 10px; color: var(--accent);
  animation: blink 1.2s steps(1) infinite; }
.toast { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50; font-family: var(--font-pixel);
  font-size: 14px; color: var(--ink); background: var(--accent); border: 3px solid #000; box-shadow: 4px 4px 0 #000; padding: 10px 16px; }

/* --- GAME OVER (404) ------------------------------------------------------ */
.error-art { position: relative; overflow: hidden; }
.game-over { color: var(--coral); text-shadow: 4px 4px 0 #000; letter-spacing: 2px; }
.continue { font-family: var(--font-display); font-size: 12px; color: var(--accent); }
.countdown::after { content: "9"; animation: countdown 10s steps(1) forwards; }
@keyframes countdown { 0% { content: "9"; } 10% { content: "8"; } 20% { content: "7"; } 30% { content: "6"; } 40% { content: "5"; }
  50% { content: "4"; } 60% { content: "3"; } 70% { content: "2"; } 80% { content: "1"; } 90%, 100% { content: "0"; } }
.maint-hearts { margin: 0; display: flex; gap: 6px; justify-content: center; }

/* --- CRT-Modus (Konami-Code ↑↑↓↓←→←→BA) ---------------------------------- */
html.crt-mode body::after { content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 40;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.22) 0 2px, transparent 2px 4px),
              radial-gradient(ellipse at center, transparent 55%, rgba(0,0,0,.55) 100%);
  animation: flicker 3s steps(2) infinite; }
html.crt-mode body { text-shadow: 0 0 2px rgba(79,209,197,.35); }
@keyframes flicker { 50% { opacity: .9; } }

@media (max-width: 600px) {
  .sheet-stats { gap: 8px; } .stat-val { font-size: 18px; } .stat-hint { display: none; } .sheet { padding: 18px; } .sheet-rows div { flex-direction: column; gap: 0; } .sheet-rows dt { min-width: 0; }
  .hud { font-size: 8px; } .float { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .caret, .dialog-next, .float, .card-press, .insert-coin, .dice-btn.rolling, html.crt-mode body::after { animation: none !important; }
}

/* ==========================================================================
   10. Dezente Nerd-Muster im Hintergrund
   --------------------------------------------------------------------------
   Kachelbare Pixel-Motive (W20, W6, Gamepad, Herz, Münze, Schwert, Trank,
   Geist, Alien, </>, Pfeiltasten) in einem Farbton knapp über dem
   Hintergrund – Texte liegen ohnehin auf eigenen Flächen und bleiben lesbar.
   Die Grafiken liegen in assets/img/bg-dark.svg und bg-panel.svg.
   ========================================================================== */
body { background-image: url("../img/bg-dark.svg"); background-size: 384px 384px; }
.band { background-image: url("../img/bg-panel.svg"); background-size: 384px 384px; background-position: 96px 48px; }
.site-header, .site-footer { position: relative; }
/* Hero bekommt etwas mehr Ruhe hinter der Überschrift */
.hero-text { position: relative; }
.hero-text::before { content: ""; position: absolute; inset: -24px -24px -24px -40px; z-index: -1;
  background: radial-gradient(ellipse at 30% 50%, rgba(18,17,31,.85) 40%, transparent 75%); pointer-events: none; }
.hero { position: relative; z-index: 0; }
/* Fließtextbereiche (Projekttext, Textseiten) auf ruhiger Fläche */
.page, .wrap-narrow.prose { background: rgba(18,17,31,.88); padding-left: 28px; padding-right: 28px; }
.band .wrap-narrow.prose { background: rgba(28,26,51,.9); }

/* --- Mini-Spiel "Bug Run" auf der Wartungsseite --------------------------- */
.maint-box { max-width: 640px; }
.maint-logo .logo { width: 96px; height: auto; }
.runner { width: 100%; border: 4px solid #000; box-shadow: inset 0 0 0 2px #2a2748; background: #12111f; position: relative; }
.runner canvas { display: block; width: 100%; height: auto; aspect-ratio: 480 / 150; image-rendering: pixelated;
  touch-action: manipulation; cursor: pointer; }
.runner canvas:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.runner::after { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: repeating-linear-gradient(0deg, rgba(0,0,0,.15) 0 2px, transparent 2px 4px); }
.runner-hint { margin: 0; font-size: 13px; color: var(--dim); }

/* ---- Geheimes Level (natürliche 20) ---- */
.secret-door { margin-top: 12px; animation: secret-pop .4s steps(4) both; }
@keyframes secret-pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.secret-page { text-align: center; }
.secret-page .runner { max-width: 760px; margin: 24px auto 10px; box-shadow: 8px 8px 0 var(--accent); }
.secret-page .runner-hint { max-width: 760px; margin: 0 auto 24px; }
.secret-art { display: flex; justify-content: center; gap: 18px; align-items: flex-end; margin-bottom: 12px; }
.secret-tip { color: var(--dim); font-size: 13px; }
@media (prefers-reduced-motion: reduce) { .secret-door { animation: none; } }

/* ---- Feed-Link (RSS) ---- */
.feed-link { display: inline-flex; align-items: center; gap: 5px; white-space: nowrap; }
.feed-link svg { color: #ff8a1f; }

/* ---- Prüfsumme bei Downloads ---- */
.checksum { margin: -4px 0 10px; font-size: 12px; }
.checksum summary { color: var(--dim); cursor: pointer; }
.checksum p { margin: 6px 0; }
.hash-full { display: block; font-size: 11px; line-height: 1.5; word-break: break-all; background: #0b0a15; border: 2px solid #000;
  padding: 6px 8px; color: var(--teal); user-select: all; }

/* ---- Presskit ---- */
.btn-presskit { font-size: 14px; }
.presskit .h2-sm { margin-top: 28px; }
.pk-grid { display: grid; grid-template-columns: minmax(260px, 1fr) 2fr; gap: 32px; align-items: start; }
.pk-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.pk-links a { display: inline-flex; gap: 6px; align-items: center; }
.pk-contact { margin-top: 8px; }
.pk-images { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.pk-images figure, .pk-logos figure { margin: 0; background: var(--panel); border: 3px solid #000; box-shadow: var(--shadow); }
.pk-images img { display: block; width: 100%; aspect-ratio: 16 / 10; object-fit: cover; image-rendering: pixelated; border-bottom: 3px solid #000; }
.pk-images figcaption, .pk-logos figcaption { display: flex; justify-content: space-between; gap: 8px; padding: 8px 10px; font-size: 13px; }
.pk-logos { display: flex; flex-wrap: wrap; gap: 16px; }
.pk-logos figure { width: 220px; }
.pk-logos img { display: block; width: 100%; height: 130px; object-fit: contain; padding: 16px; background: #0b0a15; image-rendering: pixelated; border-bottom: 3px solid #000; }
.pk-usage { margin-top: 28px; color: var(--dim); font-size: 13px; display: flex; gap: 8px; align-items: center; }
@media (max-width: 760px) { .pk-grid { grid-template-columns: 1fr; } }

/* ---- Projekt-Phasen (app/roadmap.php) ---- */
.phase { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--text); }
.phase-lvl { font-family: var(--font-pixel); font-size: 11px; color: var(--accent); }
.phase-bar { display: inline-flex; gap: 2px; margin-left: 8px; vertical-align: middle; }
.phase-bar i { width: 10px; height: 8px; background: #2a2748; border: 1px solid #000; }
.phase-bar i.on { background: var(--teal); }
.phase-released .phase-lvl { color: var(--teal); }
.card-phase { display: block; margin: 4px 0 8px; }
.project-phase { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin: 4px 0 12px; }
.release-window { font-size: 12px; color: var(--dim); }
.waiting { font-size: 13px; color: var(--amber, #ffd54f); margin: 0 0 12px; }
.relations, .testers-box { margin-top: 18px; padding: 14px; background: var(--panel); border: 3px solid #000; }
.rel-group { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; margin-top: 8px; }
.rel-label { font-size: 12px; color: var(--dim); min-width: 100%; }
.rel-link { display: inline-flex; align-items: center; gap: 6px; font-size: 14px; }
.testers-box { border-color: var(--teal); }

/* ---- Quest-Board ---- */
.board-intro { max-width: 760px; }
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(200px, 1fr); gap: 12px; overflow-x: auto; align-items: start;
  padding: 6px 4px 16px; margin-top: 20px; scroll-snap-type: x proximity; }
@media (min-width: 1100px) { .board { grid-auto-flow: row; grid-template-columns: repeat(6, minmax(0, 1fr)); overflow: visible; } }
.board-col { background: var(--panel); border: 3px solid #000; box-shadow: var(--shadow); padding: 12px; min-height: 160px; scroll-snap-align: start; }
.board-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; font-size: 14px; font-family: var(--font-body); font-weight: 600; }
.board-head span:not(.board-count) { display: flex; flex-direction: column; line-height: 1.2; }
.board-head small { font-family: var(--font-pixel); font-size: 10px; color: var(--accent); font-weight: normal; }
.board-count { margin-left: auto; font-family: var(--font-pixel); font-size: 12px; background: #000; color: var(--text); padding: 2px 8px; }
.board-empty { color: var(--dim); font-size: 13px; border: 2px dashed #2a2748; padding: 14px; text-align: center; margin: 0; }
.quest { display: flex; flex-direction: column; gap: 4px; padding: 10px; margin-bottom: 10px; background: #12111f; border: 2px solid #2a2748;
  color: var(--text); text-decoration: none; }
.quest:hover { border-color: var(--accent); color: var(--text); }
.quest .tag { align-self: flex-start; }
.quest-title { font-size: 15px; }
.quest-meta { font-size: 12px; color: var(--dim); }
.board-released .board-head small { color: var(--teal); }
.board-col { min-width: 0; }
.quest, .quest-title, .quest-meta { overflow-wrap: anywhere; }

/* ---------- Arbeitsstand (zweiter Status) ------------------------------- */
.act { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; padding: 1px 7px; border: 2px solid #000; background: #12111f; color: var(--muted); white-space: nowrap; }
.act-active { color: #8fd16a; }
.act-paused { color: var(--dim); border-style: dashed; border-color: var(--edge); }
.act-update { color: var(--teal); }
.act-bugfix { color: #ff8a8a; }
.act-done { color: var(--amber); }
.card-phase .act { margin-top: 4px; }
.quest-top { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.quest-paused { opacity: .6; }
.quest-paused:hover { opacity: 1; }

/* ---------- Quest-Board ↔ Skill-Tree ------------------------------------ */
.roadmap-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 18px 0 22px; }
.roadmap-tabs a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 3px solid #000; background: var(--panel); color: var(--muted); font-size: 14px; text-decoration: none; }
.roadmap-tabs a:hover { color: var(--text); border-color: var(--accent); }
.roadmap-tabs a[aria-current] { color: var(--ink); background: var(--accent); box-shadow: 4px 4px 0 #000; }

/* ---------- Skill-Tree --------------------------------------------------- */
.tree-legend { display: flex; flex-wrap: wrap; gap: 6px 16px; margin-bottom: 14px; font-size: 12px; color: var(--dim); }
.tree-legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg i { width: 12px; height: 12px; border: 2px solid #000; background: #12111f; }
.lg-unlocked i { background: var(--amber); }
.lg-progress i { background: var(--teal); }
.lg-locked i { background: #2a2748; }
.lg-paused i { background: #2a2748; border: 2px dashed var(--dim); }
.lg-line i { width: 22px; height: 0; border-top: 3px solid var(--muted); }
.lg-part_of i { border-top-style: dashed; }
.lg-sequel_of i { border-top-style: dotted; }

.tree-scroll { overflow-x: auto; padding: 4px 4px 16px; margin: 0 -4px; }
.tree { position: relative; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(210px, 250px); column-gap: 64px;
  width: max-content; min-width: 100%; padding: 12px; background: var(--deep);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 24px 24px; border: 3px solid #000; box-shadow: var(--shadow); }
.tree-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; overflow: visible; }
.tree-tier { display: grid; grid-template-rows: auto 1fr; gap: 10px; position: relative; z-index: 1; min-width: 0; }
.tier-label { justify-self: start; font-family: var(--font-pixel); font-size: 11px; color: var(--dim); background: #000; padding: 2px 8px; }
.tier-nodes { display: flex; flex-direction: column; justify-content: space-around; gap: 26px; min-width: 0; }

.skill { display: flex; gap: 10px; align-items: flex-start; min-width: 0; padding: 10px; background: var(--panel); border: 3px solid #000;
  box-shadow: 4px 4px 0 #000; color: var(--text); text-decoration: none; transition: transform .12s, box-shadow .12s, opacity .15s; }
.skill:hover, .skill:focus-visible { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 #000; color: var(--text); border-color: var(--accent); }
.skill-icon { position: relative; flex: none; display: grid; place-items: center; width: 44px; height: 44px; background: #000; border: 2px solid #2a2748; }
.skill-lock { position: absolute; right: -6px; bottom: -6px; }
.skill-body { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.skill-title { font-size: 14px; line-height: 1.25; overflow-wrap: anywhere; }
.skill-meta { font-size: 11px; color: var(--dim); }
.skill-meta b { font-family: var(--font-pixel); font-weight: normal; color: var(--accent); }
.skill .phase-bar { margin-left: 0; }
.skill .phase-bar i { width: 8px; height: 6px; }
.skill .act { align-self: flex-start; }
.skill-unlocks { font-size: 11px; color: var(--dim); }
.tree.has-lines .skill-unlocks { display: none; }

.skill-unlocked { border-color: var(--amber); box-shadow: 4px 4px 0 #000, 0 0 0 2px #000, 0 0 18px rgba(255, 213, 79, .25); }
.skill-unlocked .skill-icon { border-color: var(--amber); background: #2b2410; }
.skill-unlocked .skill-meta b { color: var(--amber); }
.skill-progress .skill-icon { border-color: var(--teal); }
.skill-locked { background: #15142a; color: var(--muted); }
.skill-locked .skill-icon svg:first-child { filter: grayscale(1) brightness(.6); }
.skill-paused { border-style: dashed; border-color: var(--edge); opacity: .7; }
.skill-paused .skill-icon svg { filter: grayscale(1); }
.skill:target { outline: 3px solid var(--accent); outline-offset: 4px; animation: skill-ping 1s steps(2) 3; }
@keyframes skill-ping { 50% { outline-color: transparent; } }

.tree-lines .tl { fill: none; stroke: #4a4668; stroke-width: 3; shape-rendering: crispEdges; }
.tree-lines .tl.on { stroke: var(--amber); stroke-dasharray: 6 4; animation: tl-flow 1.2s linear infinite; }
.tree-lines .tl-part_of { stroke-dasharray: 8 5; }
.tree-lines .tl-sequel_of { stroke-dasharray: 2 5; }
.tree-lines .tl-end { fill: #4a4668; }
.tree-lines .tl-end.on { fill: var(--amber); }
@keyframes tl-flow { to { stroke-dashoffset: -20; } }
.tree.focus .skill:not(.hl) { opacity: .35; }
.tree.focus .tl:not(.hl), .tree.focus .tl-end:not(.hl) { opacity: .15; }
.tree .tl.hl { stroke: var(--text); }
.tree .tl.hl.on { stroke: var(--amber); }

.tree-empty { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 28px; }
.tree-solo { margin-top: 26px; }
.tree-solo-list { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.skill-chip { padding: 6px 10px; background: var(--panel); border: 2px solid #000; }
.skill-chip.skill-paused { opacity: .7; }
.tree-link { display: inline-flex; align-items: center; gap: 6px; margin-top: 12px; }

/* Schmale Bildschirme: Baum bleibt waagerecht und lässt sich seitlich wischen */
.tree-swipe { display: none; font-size: 12px; color: var(--dim); margin: -6px 0 8px; }
@media (max-width: 760px) {
  .tree-swipe { display: block; }
  .tree { grid-auto-columns: 176px; column-gap: 40px; padding: 10px; }
  .skill { padding: 8px; gap: 8px; }
  .skill-icon { width: 36px; height: 36px; }
  .skill-icon > .sprite { width: 24px; height: auto; }
  .skill .act { white-space: normal; font-size: 11px; }
  .skill-title { font-size: 13px; }
}
@media (prefers-reduced-motion: reduce) {
  .tree-lines .tl.on { animation: none; }
  .skill, .skill:hover { transition: none; transform: none; }
  .skill:target { animation: none; }
}
.skill-way { display: block; height: 14px; }

/* ---------- Hörproben (Sound-Assets) ------------------------------------ */
.sounds { margin-top: 18px; padding: 14px; background: var(--panel); border: 3px solid #000; box-shadow: var(--shadow); }
.sound-list { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 8px; }
.sound { display: grid; grid-template-columns: 1fr; gap: 6px; padding: 8px 10px; background: #12111f; border: 2px solid #2a2748; }
.sound audio { width: 100%; height: 36px; }
.sound.is-ready { grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "btn title time" "btn bar bar"; align-items: center; column-gap: 12px; row-gap: 6px; }
.sound.is-ready audio { display: none; }
.sound-btn { grid-area: btn; width: 40px; height: 40px; display: grid; place-items: center; background: var(--accent); border: 3px solid #000;
  box-shadow: 3px 3px 0 #000; cursor: pointer; padding: 0; }
.sound-btn::before { content: ""; width: 0; height: 0; border-left: 12px solid #000; border-top: 8px solid transparent; border-bottom: 8px solid transparent; margin-left: 3px; }
.sound.is-playing .sound-btn::before { width: 12px; height: 12px; border: 0; background: #000; margin: 0; }
.sound-btn:active { transform: translate(2px, 2px); box-shadow: 1px 1px 0 #000; }
.sound-btn:focus-visible { outline: 3px solid var(--teal); outline-offset: 2px; }
.sound-title { grid-area: title; font-size: 14px; overflow-wrap: anywhere; }
.sound-time { grid-area: time; font-family: var(--font-pixel); font-size: 11px; color: var(--dim); }
.sound-bar { grid-area: bar; height: 10px; background: #000; border: 2px solid #2a2748; cursor: pointer; position: relative; }
.sound-bar i { position: absolute; inset: 0 auto 0 0; width: 0; background: repeating-linear-gradient(90deg, var(--teal) 0 6px, transparent 6px 8px); }
.sound.is-playing { border-color: var(--teal); }

/* ---------- Datenschutzerklärung für Apps (schlichte Einzelseite) -------- */
.app-privacy-body { min-height: 100vh; display: flex; flex-direction: column; }
.app-privacy-head { border-bottom: 4px solid #000; background: var(--panel); }
.app-privacy-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.app-privacy-brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-family: var(--font-pixel); font-size: 14px; }
.app-privacy-langs { display: flex; border: 3px solid #000; }
.app-privacy-langs a { padding: 4px 10px; font-family: var(--font-pixel); font-size: 13px; color: var(--text); text-decoration: none; background: var(--bg); }
.app-privacy-langs a[aria-current] { background: var(--teal); color: var(--ink); }
.app-privacy { flex: 1; width: 100%; }
.app-privacy .page-title { margin-bottom: 10px; }
.app-privacy-for { margin: 0 0 24px; }
.app-privacy-note { padding: 10px 14px; border: 2px dashed var(--edge); font-size: 14px; }
.app-privacy-foot { border-top: 4px solid #000; background: var(--deep); padding: 16px 0; font-size: 13px; color: var(--dim); }
.app-privacy-foot .wrap-narrow { display: flex; flex-wrap: wrap; gap: 8px 18px; }

/* ---------- Google-Play-Abzeichen ---------------------------------------- */
.store-badge { display: block; width: fit-content; margin: 0 auto 4px; line-height: 0; }
.store-badge img { display: block; height: 60px; width: auto; }
.store-badge:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.btn-store { background: #000; color: #fff; border-color: #000; flex-direction: column; }
.btn-store:hover { color: #fff; border-color: var(--teal); }
.tm-note { margin: 14px 0 0; font-size: 11px; color: var(--dim); }
