:root {
  --bg: #0f1115;
  --bg-2: #13161c;
  --surface: #171a21;
  --surface-2: #1d212a;
  --line: #262b35;
  --line-2: #323845;
  --text: #ecebe8;
  --muted: #9aa1ad;
  --faint: #6b7280;
  --green: #3ddc84;
  --pink: #ff5fd2;
  --blue: #5cc8ff;
  --amber: #ffb547;
  --red: #ff6b6b;
  --cream: #f3e2c0;
  --radius: 16px;
  --sans: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, "Cascadia Mono", "Cascadia Code", Consolas, "SFMono-Regular", Menlo, monospace;
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
html, body { margin: 0; }
body {
  background:
    radial-gradient(1200px 600px at 50% -200px, rgba(255, 95, 210, .08), transparent 60%),
    radial-gradient(900px 500px at 90% 10%, rgba(92, 200, 255, .06), transparent 60%),
    var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--sans);
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
img { max-width: 100%; }
kbd {
  font: 600 12px/1 var(--mono);
  display: inline-block;
  min-width: 22px;
  padding: 4px 6px;
  border: 1px solid var(--line-2);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--text);
  text-align: center;
}

.skip {
  position: absolute;
  left: 16px;
  top: -48px;
  padding: 8px 12px;
  background: var(--green);
  color: #07130b;
  border-radius: 8px;
  z-index: 50;
}
.skip:focus { top: 12px; }

/* ---------------------------------------------------------------- Navigation */
.nav {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  max-width: 1160px;
  margin: 0 auto;
  padding: 14px 20px;
  background: rgba(15, 17, 21, .72);
  backdrop-filter: blur(14px) saturate(140%);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(38, 43, 53, .6);
}
.brand {
  font: 700 18px/1 var(--mono);
  text-decoration: none;
  letter-spacing: .02em;
}
.brand .prompt { color: var(--green); margin-right: 6px; }
.nav nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav nav a {
  text-decoration: none;
  color: var(--muted);
  font-size: 14px;
  padding: 6px 10px;
  border-radius: 8px;
  transition: color .15s, background .15s;
}
.nav nav a:hover, .nav nav a:focus-visible { color: var(--text); background: var(--surface); outline: none; }
@media (max-width: 640px) {
  .nav nav { flex-wrap: nowrap; }
  .nav nav a { padding: 6px 8px; }
  .nav nav a:not([href="#projekte"]):not([href="#arcade"]):not([href="#kontakt"]) { display: none; }
}
@media (max-width: 420px) {
  .nav nav a[href="#kontakt"] { display: none; }
}

main { max-width: 1160px; margin: 0 auto; padding: 0 20px; }

/* ---------------------------------------------------------------- Hero / Loft */
.hero { padding: 40px 0 24px; }
.hero-head { max-width: 720px; margin-bottom: 24px; }
.eyebrow {
  margin: 0 0 10px;
  font: 600 12px/1.4 var(--mono);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}
h1 {
  margin: 0;
  font-size: clamp(32px, 5.4vw, 56px);
  line-height: 1.05;
  letter-spacing: -.02em;
  font-weight: 800;
}
.lead { margin: 14px 0 0; font-size: clamp(16px, 2vw, 19px); color: var(--muted); max-width: 60ch; }

.loft-frame {
  position: relative;
  aspect-ratio: var(--ratio, 384 / 224);
  max-height: calc(100vh - 140px);
  margin: 0 auto;
  border-radius: 20px;
  overflow: hidden;
  background: #2a1a12;
  border: 1px solid var(--line-2);
  box-shadow: 0 30px 80px -30px rgba(0, 0, 0, .8), 0 0 0 6px rgba(255, 255, 255, .02);
}
#loft-canvas {
  display: block;
  width: 100%;
  height: 100%;
  image-rendering: pixelated;
  image-rendering: crisp-edges;
  outline: none;
  touch-action: none;
}
.loft-loading {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font: 14px var(--mono);
  color: var(--cream);
}
.loft-frame.ready .loft-loading { display: none; }
.loft-frame.failed .loft-loading::after { content: " – leider klemmt das Schloss. Unten gibt es alles als Liste."; }

.loft-hint {
  position: absolute;
  left: 50%;
  bottom: 14px;
  transform: translateX(-50%);
  display: flex;
  gap: 14px;
  align-items: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(15, 17, 21, .78);
  backdrop-filter: blur(8px);
  font-size: 13px;
  color: var(--muted);
  white-space: nowrap;
  transition: opacity .6s, transform .6s;
  pointer-events: none;
}
.loft-hint .keys { color: var(--text); display: inline-flex; gap: 4px; align-items: center; }
.loft-hint.gone { opacity: 0; transform: translate(-50%, 12px); }

/* Sprechblase im Stardew-Stil */
.say {
  position: absolute;
  left: 50%;
  bottom: 16px;
  transform: translateX(-50%);
  width: min(620px, calc(100% - 24px));
  padding: 14px 18px 12px;
  background: var(--cream);
  color: #2a1a12;
  border: 4px solid #5a3522;
  border-radius: 12px;
  box-shadow: inset 0 0 0 2px #c48a58, 0 12px 30px rgba(0, 0, 0, .45);
  font: 15px/1.5 var(--mono);
}
.say[hidden] { display: none; }
.say .who {
  position: absolute;
  top: -16px;
  left: 14px;
  padding: 2px 10px;
  background: #5a3522;
  color: var(--cream);
  border-radius: 8px;
  font-weight: 700;
  font-size: 13px;
}
.say .msg { margin: 4px 0 10px; min-height: 2.6em; }
.say .actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.say .actions a, .say .actions button {
  font: 600 13px/1 var(--mono);
  padding: 8px 12px;
  border-radius: 8px;
  border: 2px solid #5a3522;
  background: transparent;
  color: #2a1a12;
  text-decoration: none;
  cursor: pointer;
}
.say .actions .primary { background: #5a3522; color: var(--cream); }

/* Handy-Steuerung */
.stick, .a-btn { display: none; }
@media (pointer: coarse) {
  .stick {
    display: block;
    position: absolute;
    left: 14px;
    bottom: 14px;
    width: 96px;
    height: 96px;
    border-radius: 50%;
    background: rgba(15, 17, 21, .35);
    border: 2px solid rgba(243, 226, 192, .35);
    touch-action: none;
  }
  .stick .knob {
    position: absolute;
    left: 50%;
    top: 50%;
    width: 40px;
    height: 40px;
    margin: -20px 0 0 -20px;
    border-radius: 50%;
    background: rgba(243, 226, 192, .75);
  }
  .a-btn {
    display: grid;
    place-items: center;
    position: absolute;
    right: 18px;
    bottom: 26px;
    width: 64px;
    height: 64px;
    border-radius: 50%;
    border: 3px solid #5a3522;
    background: rgba(243, 226, 192, .8);
    color: #2a1a12;
    font: 800 22px var(--mono);
    touch-action: manipulation;
  }
  .a-btn.ready { background: var(--green); border-color: #0d5e33; color: #07130b; }
  .loft-hint { display: none; }
  .say { bottom: 120px; }
}

/* Vollbild (Wohnung und Automaten) */
.full-btn {
  position: absolute;
  top: 10px;
  left: 10px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  border: 1px solid rgba(243, 226, 192, .35);
  background: rgba(15, 17, 21, .6);
  color: var(--cream);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.loft-frame:fullscreen { max-height: none; width: 100vw; height: 100vh; border-radius: 0; border: 0; background: #1a110c; }
.loft-frame:fullscreen #loft-canvas { object-fit: contain; }
.tb-actions { display: inline-flex; gap: 6px; }
.arcade-main:fullscreen {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 10px;
  padding: 10px;
  background: #05070a;
}
.arcade-main:fullscreen .stage { width: min(100%, calc((100vh - 96px) * 16 / 9)); margin: 0 auto; }
.arcade-main:fullscreen .help { display: none; }
@media (pointer: coarse) { .arcade-main:fullscreen .stage { width: min(100%, calc((100vh - 80px) * 16 / 9)); } .arcade-main:fullscreen .pad-btn { min-height: 48px; } }

.legend {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  justify-content: center;
  padding: 0;
  margin: 18px 0 0;
  font-size: 13px;
  color: var(--muted);
}
.legend li { display: inline-flex; align-items: center; gap: 8px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.pink { background: var(--pink); }
.dot.blue { background: var(--blue); }
.dot.green { background: var(--green); }
.dot.amber { background: var(--amber); }
.dot.cream { background: var(--cream); }
.dot.red { background: var(--red); }

/* ---------------------------------------------------------------- Abschnitte */
.section { padding: 72px 0 8px; }
h2 {
  margin: 0;
  font-size: clamp(26px, 3.6vw, 38px);
  letter-spacing: -.015em;
  line-height: 1.15;
}
.sub { color: var(--muted); margin: 10px 0 28px; max-width: 64ch; }

.cards {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
@media (max-width: 1020px) { .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .cards { grid-template-columns: minmax(0, 1fr); } }
.card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  transition: transform .2s, border-color .2s;
}
.card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: var(--accent, var(--line-2));
}
.card:hover { transform: translateY(-2px); border-color: var(--line-2); }
.c-blue { --accent: var(--blue); }
.c-red { --accent: var(--red); }
.c-green { --accent: var(--green); }
.c-grey { --accent: var(--faint); }
.card-top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.file { font: 600 13px var(--mono); color: var(--accent, var(--muted)); }
.pill {
  font: 600 11px/1 var(--mono);
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--surface-2);
  border: 1px solid var(--line-2);
  color: var(--muted);
  white-space: nowrap;
}
.pill.live { color: var(--green); border-color: rgba(61, 220, 132, .35); background: rgba(61, 220, 132, .08); }
.pill.dev { color: var(--amber); border-color: rgba(255, 181, 71, .35); background: rgba(255, 181, 71, .08); }
.card h3 { margin: 4px 0 0; font-size: 20px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; flex: 1; }
.card-links { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font: 600 14px/1 var(--sans);
  padding: 10px 14px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  text-decoration: none;
  cursor: pointer;
  transition: background .15s, border-color .15s, transform .15s;
}
.btn:hover { border-color: var(--faint); }
.btn:active { transform: translateY(1px); }
.btn.primary { background: var(--text); color: var(--bg); border-color: var(--text); }
.btn.primary:hover { background: #fff; }
:focus-visible { outline: 2px solid var(--green); outline-offset: 2px; }

/* Arcade-Karten */
.games { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 16px; }
.game-card {
  display: flex;
  gap: 20px;
  padding: 24px;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: linear-gradient(135deg, var(--glow) 0%, transparent 45%), var(--surface);
}
.g-pink { --glow: rgba(255, 95, 210, .12); }
.g-blue { --glow: rgba(92, 200, 255, .12); }
.g-green { --glow: rgba(157, 255, 79, .10); }
.g-red { --glow: rgba(255, 90, 74, .12); }

/* Eigener Name im Loft */
.namebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 14px;
  margin: 18px auto 0;
  font-size: 14px;
  color: var(--muted);
}
.namefield { display: inline-flex; align-items: center; gap: 8px; }
.namebar .swatch { width: 14px; height: 14px; border-radius: 4px; border: 1px solid var(--line-2); }
.namebar input {
  font: 15px var(--mono);
  width: 15ch;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface);
  color: var(--text);
}
.namebar .saved { width: 100%; text-align: center; color: var(--green); font-size: 13px; min-height: 1.2em; }

/* Gamer des Monats */
.champion {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr);
  gap: 20px;
  margin-bottom: 16px;
  padding: 22px;
  border-radius: var(--radius);
  border: 1px solid rgba(217, 168, 38, .35);
  background: linear-gradient(135deg, rgba(217, 168, 38, .12), transparent 55%), var(--surface);
}
@media (max-width: 760px) { .champion { grid-template-columns: minmax(0, 1fr); } }
.champ-head { display: flex; gap: 16px; align-items: flex-start; }
.champ-head h3 { margin: 2px 0 8px; font-size: 26px; color: #f2c94c; text-shadow: 0 0 16px rgba(242, 201, 76, .35); }
.champ-head .eyebrow { color: #d9a826; margin: 0; }
.trophy {
  flex: none;
  width: 42px;
  height: 70px;
  background: url("assets/loft/statue.png") center / contain no-repeat;
  image-rendering: pixelated;
  filter: drop-shadow(0 6px 14px rgba(217, 168, 38, .4));
}
.champ-list { margin: 0; padding: 0 0 0 28px; font: 14px/2 var(--mono); }
.champ-list li { display: list-item; }
.champ-list li::marker { color: var(--faint); }
.champ-list .n { display: inline-block; min-width: 12ch; }
.champ-list .g { color: var(--faint); font-size: 12px; }
.champ-list .p { float: right; color: #f2c94c; font-weight: 700; }
.champ-list li.gold .n { color: #f2c94c; font-weight: 700; }
.champ-list .empty { list-style: none; margin-left: -28px; color: var(--faint); }
.panel-body .champion { margin: 0; }

/* Grosse Bestenliste */
.boards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
@media (max-width: 1020px) { .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .boards { grid-template-columns: minmax(0, 1fr); } }
.board-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 20px;
  border-radius: var(--radius);
  background: #07050c;
  border: 1px solid var(--line);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .02), inset 0 0 40px var(--glow, transparent);
}
.b-pink { --glow: rgba(255, 95, 210, .10); --tone: var(--pink); }
.b-blue { --glow: rgba(92, 200, 255, .10); --tone: var(--blue); }
.b-green { --glow: rgba(157, 255, 79, .08); --tone: #9dff4f; }
.b-red { --glow: rgba(255, 90, 74, .10); --tone: #ff5a4a; }
.board-card h3 {
  margin: 0;
  font: 800 16px var(--mono);
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--tone);
  text-shadow: 0 0 14px var(--tone);
}
.big { margin: 0; padding: 0 0 0 30px; font: 15px/2 var(--mono); flex: 1; counter-reset: none; }
.big li::marker { color: var(--faint); }
.big li { display: list-item; }
.big li .n { display: inline-block; width: 12ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }
.big li .s { float: right; color: var(--green); font-variant-numeric: tabular-nums; }
.big li.gold .n, .big li.gold::marker { color: var(--amber); font-weight: 700; }
.big .empty { list-style: none; margin-left: -30px; color: var(--faint); }
.board-card .btn { align-self: flex-start; }
.panel-body .boards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .panel-body .boards { grid-template-columns: minmax(0, 1fr); } }
.cab { width: 72px; height: auto; image-rendering: pixelated; align-self: flex-start; filter: drop-shadow(0 10px 18px rgba(0, 0, 0, .5)); }
.game-body { display: flex; flex-direction: column; gap: 10px; min-width: 0; flex: 1; }
.game-body h3 { margin: 0; font-size: 20px; }
.game-body p { margin: 0; color: var(--muted); font-size: 15px; }
.game-body .controls { font-size: 13px; display: flex; gap: 4px; align-items: center; flex-wrap: wrap; }
.top {
  margin: 4px 0 6px;
  padding: 12px 12px 12px 36px;
  border-radius: 10px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 13px/1.8 var(--mono);
}
.top li::marker { color: var(--faint); }
.top li { padding-left: 4px; }
.top li span:first-child { display: inline-block; min-width: 12ch; }
.top .s { color: var(--green); }
.top .empty { list-style: none; margin-left: -24px; color: var(--faint); }
.game-body .btn { align-self: flex-start; }

/* Über mich / Kontakt */
.about, .contact { max-width: 68ch; }
.about p, .contact p { color: var(--muted); font-size: 17px; margin: 18px 0; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.chips li {
  font: 600 13px var(--mono);
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--line-2);
  background: var(--surface);
}

/* ---------------------------------------------------------------- Dialoge */
dialog {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--text);
  max-width: none;
  max-height: calc(100dvh - 24px);
}
dialog::backdrop { background: rgba(5, 6, 9, .72); backdrop-filter: blur(4px); }
.win {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 40px 100px -20px rgba(0, 0, 0, .8);
}
.titlebar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 12px 12px 12px 20px;
  border-bottom: 1px solid var(--line);
  font: 600 14px var(--mono);
  color: var(--muted);
}
.titlebar .x {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}
.panel { width: min(860px, calc(100vw - 24px)); }
.panel-body { padding: 20px; max-height: calc(100dvh - 120px); overflow-y: auto; }
.panel-body .cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 560px) { .panel-body .cards { grid-template-columns: minmax(0, 1fr); } }
.panel-body .about p, .panel-body .contact p { margin-top: 0; }

.devlog { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.devlog li { padding: 14px 16px; border-radius: 12px; background: var(--bg-2); border: 1px solid var(--line); color: var(--muted); }
.devlog time { display: block; font: 600 12px var(--mono); color: var(--green); margin-bottom: 4px; }
.devlog strong { color: var(--text); margin-right: 4px; }

.status-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 8px; }
.status-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  font: 14px var(--mono);
}
.status-list li::before { content: ""; width: 9px; height: 9px; border-radius: 50%; margin-right: 10px; background: var(--red); }
.status-list li.up::before { background: var(--green); box-shadow: 0 0 10px var(--green); }
.status-list li span:first-child { flex: 1; }
.status-list .pill { font-size: 12px; }
.muted { color: var(--muted); font-size: 14px; margin: 0; }

/* Terminal */
.crt {
  background: #07130b;
  border: 1px solid #1d3a26;
  border-radius: 12px;
  padding: 14px;
  height: min(420px, 60dvh);
  display: flex;
  flex-direction: column;
  color: var(--green);
  font: 14px/1.55 var(--mono);
  position: relative;
}
.crt::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 12px;
  pointer-events: none;
  background: repeating-linear-gradient(to bottom, rgba(0, 0, 0, .16) 0 1px, transparent 1px 3px);
}
.crt .out { flex: 1; overflow-y: auto; white-space: pre-wrap; word-break: break-word; }
.crt .dim { color: #1f9a55; }
.crt .warn { color: var(--amber); }
.crt .pink { color: var(--pink); }
.crt a { color: var(--amber); }
.crt .line { display: flex; gap: 8px; align-items: center; margin-top: 8px; }
.crt .line label { white-space: nowrap; color: var(--amber); }
.crt .line input { flex: 1; min-width: 0; background: transparent; border: 0; color: var(--green); font: inherit; caret-color: var(--green); outline: none; }
.crt.notfound { height: auto; }

/* Arcade-Dialog */
.arcade-dialog { width: min(1040px, calc(100vw - 16px)); }
.arcade-dialog .win { border-color: rgba(255, 95, 210, .35); }
.arcade-dialog[data-game="firewall"] .win { border-color: rgba(92, 200, 255, .35); }
.arcade-body { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 16px; padding: 16px; }
@media (max-width: 760px) { .arcade-body { grid-template-columns: minmax(0, 1fr); } }
.stage { position: relative; aspect-ratio: 16 / 9; border-radius: 12px; overflow: hidden; background: #000; }
#arcade-canvas { display: block; width: 100%; height: 100%; image-rendering: pixelated; image-rendering: crisp-edges; touch-action: none; outline: none; }
.overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 18px;
  text-align: center;
  background: rgba(8, 6, 10, .86);
  overflow-y: auto;
}
.overlay[hidden] { display: none; }
.overlay h3 { margin: 0; font: 800 clamp(20px, 4vw, 34px) var(--mono); letter-spacing: .1em; color: var(--pink); text-shadow: 0 0 18px rgba(255, 95, 210, .5); }
[data-game="firewall"] .overlay h3 { color: var(--blue); text-shadow: 0 0 18px rgba(92, 200, 255, .5); }
.overlay p { margin: 0; max-width: 52ch; font-size: 14px; color: var(--text); }
.overlay .keys { list-style: none; padding: 0; margin: 0; color: var(--muted); font: 13px/1.7 var(--mono); }
.overlay .note { color: var(--amber); font-size: 13px; }
.overlay .rank { color: var(--green); font-weight: 700; }
.overlay button {
  font: 700 14px var(--mono);
  padding: 10px 18px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  cursor: pointer;
}
.overlay button.primary { background: var(--green); border-color: var(--green); color: #07130b; letter-spacing: .08em; text-transform: uppercase; }
.entry { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: center; }
.entry label { width: 100%; font-size: 13px; color: var(--muted); }
.entry input { font: 15px var(--mono); width: 15ch; padding: 9px 12px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line-2); color: var(--text); }

.pad { display: none; gap: 10px; margin-top: 12px; flex-wrap: wrap; }
.pad .pad-btn { min-width: calc(25% - 8px); }
@media (pointer: coarse) { .pad { display: flex; } }
.pad-btn {
  flex: 1;
  min-height: 56px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background: var(--surface-2);
  color: var(--text);
  font: 700 15px var(--mono);
  touch-action: none;
  user-select: none;
  -webkit-user-select: none;
}
.pad-btn.on { transform: translateY(1px); filter: brightness(1.3); }
.pad-btn.java { background: #4a2c16; border-color: #7a4a24; }
.pad-btn.brew { background: #5a3d10; border-color: #f0a830; }
.pad-btn.mate { background: #1f3a66; border-color: #f2c230; }
.pad-btn.fire { flex: 1.6; background: #5a1f14; border-color: #d9573b; }
.help { margin: 10px 0 0; font: 12px var(--mono); color: var(--faint); }
@media (pointer: coarse) { .help { display: none; } }

.board h4 { margin: 4px 0 10px; font: 600 12px var(--mono); text-transform: uppercase; letter-spacing: .16em; color: var(--amber); }
.board ol { margin: 0; padding: 0 0 0 26px; font: 13px/1.9 var(--mono); }
.board li::marker { color: var(--faint); }
.board li .n { display: inline-block; width: 12ch; overflow: hidden; text-overflow: ellipsis; vertical-align: bottom; white-space: nowrap; }
.board li .s { color: var(--green); }
.board li.empty { list-style: none; margin-left: -26px; color: var(--faint); }
.board .mybest { margin: 12px 0 0; font: 13px var(--mono); color: var(--pink); }

/* ---------------------------------------------------------------- Footer & Unterseiten */
.foot {
  max-width: 1160px;
  margin: 80px auto 0;
  padding: 24px 20px 40px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  font-size: 13px;
  color: var(--faint);
}
.foot a { color: var(--muted); }
.foot .made { margin-left: auto; }
@media (max-width: 640px) { .foot .made { margin-left: 0; width: 100%; } .foot .sep:last-of-type { display: none; } }

.page { max-width: 760px; padding-top: 48px; padding-bottom: 40px; }
.page h1 { font-size: clamp(30px, 5vw, 44px); margin-bottom: 8px; }
.page h1 .sub { display: block; font: 600 13px var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--green); margin-top: 10px; }
.page h2 { font-size: 20px; margin-top: 32px; }
.page p { color: var(--muted); }
.page a { color: var(--amber); }
.page .hint { margin-top: 32px; }

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