:root {
  --bg: #121315; --panel: #1b1d20; --panel2: #23262a; --line: #33373c; --text: #e7e2da; --muted: #9a958c;
  --rust: #e07b39; --rust2: #b5521f; --ok: #6fd06a; --head: 'Saira Condensed', 'Arial Narrow', sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 15px/1.6 Inter, system-ui, sans-serif; }
a { color: var(--rust); }
h1, h2, h3 { font-family: var(--head); letter-spacing: .5px; margin: 0; }
h2 { font-size: 34px; margin-bottom: 18px; text-transform: uppercase; }
h2::after { content: ''; display: block; width: 56px; height: 4px; background: var(--rust); margin-top: 6px; }
.muted { color: var(--muted); }
kbd { background: var(--panel2); border: 1px solid var(--line); border-bottom-width: 3px; border-radius: 5px; padding: 1px 7px; font: 600 12px Inter, sans-serif; color: var(--text); white-space: nowrap; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; gap: 24px; padding: 10px 28px;
  background: rgba(18,19,21,.88); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.brand { font: 800 24px var(--head); color: var(--text); text-decoration: none; letter-spacing: 3px; display: flex; align-items: center; gap: 8px; }
.brand .cog { color: var(--rust); display: inline-block; animation: spin 12s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.nav nav { display: flex; gap: 18px; flex: 1; }
.nav nav a { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.nav nav a:hover { color: var(--text); }
.btn { display: inline-flex; align-items: center; gap: 8px; background: linear-gradient(180deg, var(--rust), var(--rust2)); color: #fff; text-decoration: none;
  font: 700 18px var(--head); letter-spacing: 1px; text-transform: uppercase; padding: 12px 26px; border-radius: 6px; border: 1px solid #f09a5c;
  box-shadow: 0 4px 0 #6e2f10, 0 10px 30px rgba(224,123,57,.25); transition: transform .1s; }
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #6e2f10; }
.btn.small { font-size: 15px; padding: 7px 16px; }
.btn.ghost { background: transparent; border-color: var(--line); box-shadow: none; color: var(--text); }
#verChip { background: var(--rust); color: #fff; font-size: 12px; padding: 1px 7px; border-radius: 10px; }

/* Hero */
.hero { position: relative; min-height: 560px; display: flex; align-items: center; overflow: hidden; border-bottom: 1px solid var(--line); }
#heroCanvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 30% 50%, rgba(18,19,21,.55), rgba(18,19,21,.92) 70%); pointer-events: none; }
.hero-inner { position: relative; z-index: 1; padding: 60px 8vw; max-width: 900px; }
.kicker { color: var(--rust); font-weight: 600; text-transform: uppercase; letter-spacing: 2px; font-size: 13px; margin: 0 0 4px; }
.hero h1 { display: inline-block; padding-right: 8px; font-size: clamp(54px, 10vw, 124px); line-height: .95; letter-spacing: 6px;
  background: linear-gradient(180deg, #f5d2b0, var(--rust) 55%, var(--rust2)); -webkit-background-clip: text; background-clip: text; color: transparent;
  text-shadow: 0 0 40px rgba(224,123,57,.15); }
.tagline { font-size: 19px; color: #d8d2c8; margin: 14px 0 26px; }
.cta { display: flex; gap: 14px; flex-wrap: wrap; }
.live { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.chip { background: rgba(27,29,32,.85); border: 1px solid var(--line); border-radius: 20px; padding: 5px 13px; font-size: 13px; color: var(--muted); }
.chip b { color: var(--text); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 6px; box-shadow: 0 0 8px var(--ok); }

/* Inhalt */
main { padding-bottom: 40px; }
.wrap { max-width: 1160px; margin: 0 auto; padding: 64px 28px 0; }
.grid.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.features article { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 18px; position: relative; overflow: hidden; }
.features article::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rust); opacity: .7; }
.features span { font-size: 28px; }
.features h3 { font-size: 21px; margin: 6px 0 4px; }
.features p { margin: 0; color: var(--muted); font-size: 14px; }

.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; counter-reset: s; }
.steps li { counter-increment: s; background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px 16px 14px 62px; position: relative; }
.steps li::before { content: counter(s); position: absolute; left: 14px; top: 12px; width: 34px; height: 34px; border-radius: 6px; background: var(--rust);
  color: #fff; font: 800 22px var(--head); display: grid; place-items: center; }
.steps b { display: block; }
.steps span { color: var(--muted); font-size: 14px; }

.two { display: grid; grid-template-columns: 1.6fr 1fr; gap: 28px; }
.news article { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; margin-bottom: 12px; }
.news h3 { font-size: 22px; }
.news .meta { color: var(--muted); font-size: 12px; margin-bottom: 6px; }
.news p { margin: 0; white-space: pre-line; }
.statusbox { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 16px 18px; }
.statusbox .row { display: flex; justify-content: space-between; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 14px; }
.statusbox .row:last-child { border-bottom: 0; }
.statusbox .row span:first-child { color: var(--muted); }
.statusbox .names { font-size: 13px; color: var(--muted); padding-top: 8px; }
.bar { height: 8px; background: var(--panel2); border-radius: 4px; overflow: hidden; margin-top: 4px; }
.bar i { display: block; height: 100%; background: var(--rust); }

.changelog details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 10px; }
.changelog summary { cursor: pointer; padding: 14px 18px; display: flex; align-items: baseline; gap: 12px; list-style: none; }
.changelog summary::-webkit-details-marker { display: none; }
.changelog summary::before { content: '▸'; color: var(--rust); transition: transform .15s; }
.changelog details[open] summary::before { transform: rotate(90deg); }
.changelog .ver { font: 800 22px var(--head); color: var(--rust); }
.changelog .t { font-weight: 600; }
.changelog .d { color: var(--muted); font-size: 12px; margin-left: auto; }
.changelog .body { padding: 0 18px 14px 40px; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 6px 24px; }
.changelog h4 { margin: 8px 0 2px; font: 700 15px var(--head); text-transform: uppercase; letter-spacing: 1px; color: #cfc7bb; }
.changelog ul { margin: 0; padding-left: 18px; color: var(--muted); font-size: 14px; }
.badge-new { background: var(--ok); color: #111; font: 700 11px Inter, sans-serif; padding: 1px 7px; border-radius: 10px; }

.keys { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 8px; }
.keys div { display: flex; align-items: center; gap: 10px; background: var(--panel); border: 1px solid var(--line); border-radius: 6px; padding: 8px 12px; font-size: 14px; }
.keys span { color: var(--muted); }

#faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; margin-bottom: 8px; padding: 12px 16px; }
#faq summary { cursor: pointer; font-weight: 600; }
#faq p { margin: 8px 0 0; color: var(--muted); }

footer { margin-top: 60px; padding: 22px 28px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }

@media (max-width: 860px) {
  .nav nav { display: none; }
  .nav { justify-content: space-between; padding: 10px 16px; }
  .two { grid-template-columns: 1fr; }
  .wrap { padding: 48px 16px 0; }
  .hero-inner { padding: 48px 16px; }
  .steps { grid-template-columns: 1fr; }
  .hero h1 { font-size: 15vw; letter-spacing: 2px; }
  h2 { font-size: 28px; }
  .btn.small { white-space: nowrap; font-size: 13px; padding: 6px 12px; }
  .brand { font-size: 20px; }
}

/* ---------- Rangliste & Blaupausen-Börse ---------- */
.small { font-size: 15px; font-family: Inter, sans-serif; font-weight: 400; letter-spacing: 0; }
.lbtabs { display: flex; gap: 6px; margin-bottom: 12px; }
.lbtabs button { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; cursor: pointer; font: inherit; }
.lbtabs button.on { border-color: var(--accent); color: var(--accent); }
.lb { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 6px 12px; margin-bottom: 14px; }
.lb .r { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px dashed var(--line); }
.lb .r:last-child { border-bottom: 0; }
.lb .rank { width: 28px; text-align: center; font-weight: 700; color: var(--muted); }
.lb .av { font-size: 22px; }
.lb .nm { flex: 1; cursor: pointer; }
.lb .nm:hover { color: var(--accent); }
.lb .pts { font-weight: 700; font-variant-numeric: tabular-nums; }
.lb .tdot { width: 10px; height: 10px; border-radius: 50%; display: inline-block; }
.bpgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.bpc { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 12px; display: flex; flex-direction: column; gap: 6px; }
.bpc canvas { width: 100%; height: 130px; border-radius: 6px; background: #2b3a22; }
.bpc h3 { font-size: 20px; margin: 0; }
.bpc .meta { color: var(--muted); font-size: 13px; }
.bpc .tags span { font-size: 12px; background: #2a2d31; padding: 1px 6px; border-radius: 8px; margin-right: 4px; }
.bpc button { margin-top: auto; background: var(--rust); color: #1a1a1a; border: 0; border-radius: 6px; padding: 7px; font-weight: 600; cursor: pointer; }
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 16px; }
.modal.hidden { display: none; }
.modal-box { background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 20px; width: min(560px, 100%); max-height: 90vh; overflow: auto; position: relative; }
.mclose { position: absolute; top: 10px; right: 10px; background: none; border: 0; color: var(--text); font-size: 18px; cursor: pointer; }
.pstats { display: grid; grid-template-columns: 1fr 1fr; gap: 4px 16px; font-size: 14px; }
.pstats div { display: flex; justify-content: space-between; border-bottom: 1px dashed var(--line); padding: 3px 0; }
.pbadge { display: inline-block; background: #2a2d31; border-radius: 10px; padding: 2px 8px; margin: 2px; font-size: 13px; }
@media (max-width: 800px) { .pstats { grid-template-columns: 1fr; } }

.replaybox { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; align-items: center; gap: 10px; }
#rpCanvas { width: min(520px, 100%); aspect-ratio: 1; image-rendering: pixelated; border-radius: 6px; background: #111; }
.rpctl { display: flex; gap: 10px; align-items: center; width: min(520px, 100%); }
.rpctl input { flex: 1; }
.rpctl button, #rpWorld { background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 6px; padding: 6px 12px; font: inherit; cursor: pointer; }
