/* =========================================================
   WASTELAND – Rust/Zombie Theme
   ========================================================= */
:root {
  --bg: #060a16;
  --bg-2: #0b1122;
  --surface: rgba(160, 200, 255, 0.035);
  --surface-2: rgba(160, 200, 255, 0.065);
  --border: rgba(140, 190, 255, 0.09);
  --border-2: rgba(140, 190, 255, 0.16);
  --text: #e8f0ff;
  --muted: #93a3c2;
  --dim: #5b6a88;
  --blue: #1f7cf0;
  --blue-2: #5cc4ff;
  --blue-dark: #0b3fa8;
  --toxic: #9be15d;
  --red: #ff3b2f;
  --gold: #f0b429;
  --discord: #5865f2;
  --radius: 12px;
  --pixel: "Silkscreen", "Courier New", monospace;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  min-height: 100vh;
  padding-bottom: 38px; /* Platz für Status-Leiste */
}
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
img { display: block; max-width: 100%; }
::selection { background: var(--blue); color: #fff; }

/* Grit-Textur über allem */
body::after {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 100;
  opacity: 0.045;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

#embers { position: fixed; inset: 0; pointer-events: none; z-index: 1; }

.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; position: relative; z-index: 2; }

/* ---------- Navigation ---------- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 14px 20px;
  transition: background .3s, backdrop-filter .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.nav.scrolled { background: rgba(6, 10, 22, .82); backdrop-filter: blur(12px); border-color: var(--border); }
.nav-links { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
.nav-links::-webkit-scrollbar { display: none; }
.nav-links a, .icon-btn {
  font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  padding: 8px 13px; border-radius: 8px; white-space: nowrap;
  background: var(--surface); border: 1px solid var(--border); color: var(--muted);
  transition: color .15s, background .15s, border-color .15s;
}
.nav-links a:hover, .icon-btn:hover { color: var(--text); background: var(--surface-2); border-color: var(--border-2); }
.nav-links a.active { color: #bfe6ff; background: rgba(31, 124, 240, .16); border-color: rgba(31, 124, 240, .55); box-shadow: 0 0 18px rgba(31, 124, 240, .18); }
.nav-right { display: flex; gap: 6px; align-items: center; flex-shrink: 0; }
.icon-btn { display: grid; place-items: center; padding: 0; width: 34px; height: 34px; position: relative; }
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn .badge {
  position: absolute; top: -5px; right: -5px; min-width: 17px; height: 17px; padding: 0 4px;
  border-radius: 9px; background: var(--blue); color: #fff; font-size: 10px; display: grid; place-items: center;
}

.ip-pill {
  display: flex; align-items: center; gap: 10px; height: 34px;
  padding: 0 6px 0 12px; border-radius: 8px;
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; font-weight: 700; cursor: pointer; transition: border-color .15s, background .15s;
}
.ip-pill:hover { border-color: rgba(31, 124, 240, .5); background: var(--surface-2); }
.ip-pill .count {
  display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--muted);
  padding: 3px 8px; background: rgba(0,0,0,.35); border-radius: 6px;
}
.ip-pill .ip-bar { width: 60px; height: 3px; border-radius: 2px; background: var(--border-2); overflow: hidden; }
.ip-pill .ip-bar i { display: block; height: 100%; width: 0; background: var(--blue); transition: width .6s; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--dim); flex-shrink: 0; }
.dot.on { background: var(--toxic); box-shadow: 0 0 8px var(--toxic); }
.dot.warn { background: var(--gold); box-shadow: 0 0 8px var(--gold); }
.dot.off { background: var(--red); box-shadow: 0 0 8px var(--red); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 56px; transform: translate(-50%, 20px);
  background: #0f1830; border: 1px solid rgba(31,124,240,.5); color: var(--text);
  padding: 10px 18px; border-radius: 10px; font-size: 13px; font-weight: 600;
  opacity: 0; pointer-events: none; transition: .25s; z-index: 200;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Hero ---------- */
.hero {
  position: relative; min-height: 100svh;
  display: flex; align-items: center; justify-content: center; text-align: center;
  padding: 110px 20px 90px; overflow: hidden;
}
.scene { position: absolute; inset: 0; z-index: 0; }
.scene::before { /* optionales Screenshot-Bild */
  content: ""; position: absolute; inset: 0;
  background: var(--img, none) center / cover no-repeat;
  opacity: .35; filter: saturate(.85);
}
.scene::after { /* Verlauf nach unten/oben ins Schwarz */
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, var(--bg) 0%, transparent 25%, transparent 70%, var(--bg) 100%);
}
.hero .scene {
  inset: -40px;
  background:
    radial-gradient(ellipse 70% 45% at 50% 105%, rgba(31, 124, 240, .38), transparent 70%),
    radial-gradient(ellipse 50% 40% at 15% 20%, rgba(92, 196, 255, .07), transparent 70%),
    radial-gradient(ellipse 60% 50% at 85% 30%, rgba(11, 63, 168, .35), transparent 70%),
    linear-gradient(180deg, #060a16, #0a1430);
}
.skyline {
  position: absolute; left: -40px; right: -40px; bottom: -2px; height: 38%; z-index: 0; opacity: .9;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 300' preserveAspectRatio='none'%3E%3Cpath fill='%23030611' d='M0 300V190h40v-30h30v40h25V120h50v60h20v-40h35v90h30V90h20l10-20 10 20h20v110h40v-50h45v30h25V60h60v140h20v-70h40v40h30v-90h15v-30h10v30h15v130h35v-60h50v80h20V110h55v70h30v-40h40v60h25V80h45v120h30v-50h35v40h40V130h50v70h35v-30h40v130z'/%3E%3C/svg%3E") bottom / 100% 100% no-repeat;
}
.hero-inner { position: relative; z-index: 2; max-width: 640px; }

.logo { margin: 0 auto; }
.logo img {
  width: min(88vw, 560px); height: auto; margin: 0 auto;
  filter: drop-shadow(0 0 40px rgba(31, 124, 240, .45)) drop-shadow(0 12px 30px rgba(0, 0, 0, .6));
  animation: float 5s ease-in-out infinite;
}
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.logo-plate {
  display: inline-block; margin-top: 14px;
  font-family: var(--pixel); font-size: clamp(11px, 2vw, 15px); letter-spacing: .08em; text-transform: uppercase;
  padding: 7px 16px 6px; color: #dcecff;
  background: linear-gradient(180deg, #1a3a7a, #0d2150);
  border: 3px solid #1f5fd0; border-top-color: #5cc4ff; border-bottom-color: #0a2a6e;
  box-shadow: 0 6px 0 #061640, 0 10px 30px rgba(0,0,0,.5);
  cursor: pointer;
}
.nav-logo { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; }
.nav-logo img { width: 30px; height: auto; filter: drop-shadow(0 0 8px rgba(31,124,240,.5)); }
.nav-left { display: flex; align-items: center; gap: 10px; min-width: 0; }
.hero p.lead { color: var(--muted); font-size: 15px; margin: 30px auto 0; max-width: 520px; }
.chips { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 22px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 12px; font-weight: 600; color: var(--muted);
  padding: 7px 13px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border);
}
.chip b { color: var(--text); }
.btns { display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; margin-top: 24px; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  font-size: 14px; font-weight: 700; padding: 12px 22px; border-radius: 10px;
  transition: transform .15s, filter .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-2px); filter: brightness(1.1); }
.btn svg { width: 18px; height: 18px; }
.btn-discord { background: var(--discord); color: #fff; box-shadow: 0 8px 24px rgba(88, 101, 242, .3); }
.btn-red { background: var(--red); color: #fff; box-shadow: 0 8px 24px rgba(255, 59, 47, .3); }
.btn-blue { background: linear-gradient(180deg, var(--blue-2), var(--blue)); color: #fff; box-shadow: 0 8px 24px rgba(31, 124, 240, .3); }
.btn-ghost { background: var(--surface); border: 1px solid var(--border-2); color: var(--text); }
.btn:disabled { opacity: .45; pointer-events: none; }

.scroll-hint {
  position: absolute; bottom: 34px; left: 50%; transform: translateX(-50%); z-index: 2;
  width: 22px; height: 34px; border: 2px solid var(--border-2); border-radius: 12px;
}
.scroll-hint::after {
  content: ""; position: absolute; left: 50%; top: 6px; width: 3px; height: 7px; margin-left: -1.5px;
  background: var(--blue); border-radius: 2px; animation: scrollhint 1.8s infinite;
}
@keyframes scrollhint { 0% { opacity: 0; transform: translateY(0); } 40% { opacity: 1; } 100% { opacity: 0; transform: translateY(12px); } }

/* ---------- Feature-Sektionen ---------- */
.feature { position: relative; min-height: 92vh; display: flex; align-items: center; padding: 100px 0; overflow: hidden; }
.feature .container { display: flex; }
.feature.right .container { justify-content: flex-end; text-align: right; }
.feature-text { max-width: 470px; }
.feature.right .feature-text p { margin-left: auto; }
.mega {
  font-weight: 900; text-transform: lowercase; letter-spacing: -.055em; line-height: .84;
  font-size: clamp(64px, 12.5vw, 168px); margin-bottom: 26px;
}
.mega em { font-style: normal; background: linear-gradient(180deg, #8fdcff, var(--blue) 70%); -webkit-background-clip: text; background-clip: text; color: transparent; padding-right: .06em; }
.mega em.red { background: linear-gradient(180deg, #ff8a80, var(--red) 70%); -webkit-background-clip: text; background-clip: text; }
.feature-text p { color: var(--muted); font-size: 16px; max-width: 390px; }
.feature .scene.s1 { background: radial-gradient(ellipse 55% 60% at 80% 50%, rgba(31,124,240,.18), transparent 70%), radial-gradient(ellipse 40% 40% at 70% 80%, rgba(11,63,168,.3), transparent 70%); }
.feature .scene.s2 { background: radial-gradient(ellipse 55% 60% at 20% 50%, rgba(255,59,47,.08), transparent 70%), radial-gradient(ellipse 40% 50% at 25% 70%, rgba(11,63,168,.35), transparent 70%); }
.feature .scene.s3 { background: radial-gradient(ellipse 55% 60% at 80% 40%, rgba(255,59,47,.15), transparent 70%), radial-gradient(ellipse 45% 40% at 90% 90%, rgba(31,124,240,.2), transparent 70%); }
.feature .deco {
  position: absolute; z-index: 1; opacity: .09; pointer-events: none;
  filter: drop-shadow(0 0 30px currentColor);
  width: min(44vw, 460px); top: 50%; transform: translateY(-50%);
}
.feature.left .deco { right: 6vw; }
.feature.right .deco { left: 6vw; }

.stats-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--border); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; margin-top: 30px; }
.stats-strip div { background: var(--bg-2); padding: 16px; }
.stats-strip b { display: block; font-size: 26px; font-weight: 900; letter-spacing: -.03em; color: var(--blue-2); }
.stats-strip span { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }

.reveal { opacity: 0; transform: translateY(40px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Footer ---------- */
.footer { position: relative; z-index: 2; margin-top: 60px; }
.footer-top {
  background: linear-gradient(135deg, #1f7cf0, #0b3fa8);
  padding: 22px 0; position: relative; overflow: hidden;
}
.footer-top::before { /* Textur-Flecken */
  content: ""; position: absolute; inset: 0; opacity: .25; mix-blend-mode: multiply;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='300' height='300'%3E%3Cfilter id='r'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.02' numOctaves='4'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 .05 0 0 0 0 .25 0 0 0 1.4 -.5'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23r)'/%3E%3C/svg%3E");
}
.footer-top .container, .footer-bottom .container { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.footer .ip-pill { background: rgba(0,0,0,.22); border-color: rgba(255,255,255,.18); color: #fff; }
.footer .ip-pill .count { background: rgba(0,0,0,.25); color: #dcecff; }
.socials { display: flex; gap: 8px; }
.socials a { width: 36px; height: 36px; border-radius: 8px; display: grid; place-items: center; background: rgba(0,0,0,.2); border: 1px solid rgba(255,255,255,.16); color: #fff; transition: background .15s; }
.socials a:hover { background: rgba(0,0,0,.4); }
.socials svg { width: 16px; height: 16px; }
.footer-bottom { background: #072a78; padding: 12px 0; font-size: 12px; color: #cfe3ff; }
.footer-bottom .muted { color: rgba(207, 227, 255, .65); }
.footer-links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-links a { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: rgba(207,227,255,.75); }
.footer-links a:hover { color: #fff; }

.statusbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; height: 38px;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  background: rgba(5, 8, 18, .92); backdrop-filter: blur(8px); border-top: 1px solid var(--border);
  font-size: 11px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
}

/* ---------- Unterseiten ---------- */
.page { padding-top: 96px; min-height: calc(100vh - 200px); position: relative; }
.page-bg {
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 40% at 50% -5%, rgba(31, 124, 240, .16), transparent 70%),
    radial-gradient(ellipse 40% 40% at 100% 100%, rgba(11, 63, 168, .25), transparent 70%);
}
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.page-head h1 { font-size: clamp(32px, 5vw, 44px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; }
.page-head p { color: var(--muted); font-size: 15px; margin-top: 4px; }

.card {
  background: linear-gradient(180deg, rgba(140,190,255,.05), rgba(140,190,255,.02));
  border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden;
  transition: border-color .2s, transform .2s, box-shadow .2s;
}
a.card:hover, .card.hover:hover { border-color: rgba(31, 124, 240, .45); transform: translateY(-3px); box-shadow: 0 14px 40px rgba(0,0,0,.4), 0 0 0 1px rgba(31,124,240,.1); }

.tag {
  display: inline-block; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 5px; border: 1px solid currentColor;
  background: color-mix(in srgb, currentColor 12%, transparent);
}
.meta { display: flex; align-items: center; gap: 10px; font-size: 12px; color: var(--dim); }
.meta svg { width: 14px; height: 14px; }
.meta span { display: inline-flex; align-items: center; gap: 5px; }

/* News */
.news-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.news-grid .card:first-child { grid-column: 1 / -1; }
.news-grid .card:first-child .thumb { aspect-ratio: 21 / 8; }
.thumb {
  aspect-ratio: 16 / 8; position: relative; overflow: hidden;
  background: var(--thumb-img, none) center / cover, var(--thumb-bg);
  display: grid; place-items: center;
}
.thumb::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(6,10,22,.85)); }
.thumb .thumb-word {
  font-family: var(--pixel); font-size: clamp(28px, 5vw, 60px); color: rgba(255,255,255,.08);
  text-transform: uppercase; letter-spacing: .04em; transition: transform .6s;
}
.card:hover .thumb .thumb-word { transform: scale(1.06); }
.news-body { padding: 18px 20px 20px; }
.news-body h3 { font-size: 19px; font-weight: 800; letter-spacing: -.02em; margin-bottom: 8px; }
.news-body p { color: var(--muted); font-size: 14px; margin: 10px 0 14px; }

/* Artikel */
.article { max-width: 760px; margin: 0 auto; }
.article .thumb { border-radius: var(--radius); aspect-ratio: 21 / 9; border: 1px solid var(--border); margin: 18px 0 26px; }
.article h1 { font-size: clamp(30px, 5vw, 46px); font-weight: 900; letter-spacing: -.035em; line-height: 1.1; margin: 10px 0 12px; }
.prose { color: #d6ccc1; font-size: 16px; }
.prose p { margin-bottom: 16px; }
.prose h2 { font-size: 22px; font-weight: 800; margin: 30px 0 10px; color: var(--text); }
.prose ul { padding-left: 20px; margin-bottom: 16px; }
.prose li { margin: 6px 0; }
.prose li::marker { color: var(--blue); }
.prose strong { color: var(--blue-2); }
.back { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; color: var(--muted); }
.back:hover { color: var(--text); }
.like-btn { display: inline-flex; align-items: center; gap: 6px; padding: 8px 14px; border-radius: 8px; border: 1px solid var(--border-2); font-size: 13px; font-weight: 700; margin-top: 20px; }
.like-btn.liked { color: var(--red); border-color: var(--red); background: rgba(255,59,47,.1); }
.like-btn svg { width: 16px; height: 16px; }

/* Wiki */
.search {
  display: flex; align-items: center; gap: 10px; padding: 0 14px; height: 46px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 26px;
  transition: border-color .15s;
}
.search:focus-within { border-color: rgba(31,124,240,.55); }
.search svg { width: 16px; height: 16px; color: var(--dim); flex-shrink: 0; }
.search input { flex: 1; background: none; border: 0; outline: 0; color: var(--text); font: inherit; font-size: 14px; }
.search input::placeholder { color: var(--dim); }
kbd { font-family: var(--sans); font-size: 10px; font-weight: 700; color: var(--dim); padding: 3px 7px; border: 1px solid var(--border-2); border-radius: 5px; }
.wiki-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.wiki-top { height: 170px; display: grid; place-items: center; position: relative; overflow: hidden;
  background: radial-gradient(ellipse 60% 80% at 50% 50%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), rgba(0,0,0,.25); }
.wiki-icon {
  width: 92px; height: 92px; border-radius: 16px; display: grid; place-items: center;
  background: color-mix(in srgb, var(--c) 18%, #0a1020); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c) 25%, transparent); transition: transform .3s;
}
.card:hover .wiki-icon { transform: scale(1.07) rotate(-3deg); }
.wiki-icon svg { width: 48px; height: 48px; color: var(--c); image-rendering: pixelated; }
.wiki-body { padding: 18px 20px 20px; border-top: 1px solid var(--border); }
.wiki-body h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.wiki-body h3 .count { font-size: 11px; font-weight: 700; color: var(--muted); background: var(--surface-2); padding: 2px 8px; border-radius: 6px; }
.wiki-body h3 .arrow { margin-left: auto; color: var(--dim); transition: transform .2s, color .2s; }
.card:hover .wiki-body h3 .arrow { transform: translateX(4px); color: var(--blue); }
.wiki-body p { color: var(--muted); font-size: 14px; margin-top: 8px; }
.entry-list { display: grid; gap: 10px; }
.entry { display: grid; grid-template-columns: 44px 1fr auto; gap: 14px; align-items: center; padding: 14px 16px; }
.entry .ei { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, #0a1020); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.entry .ei svg { width: 24px; height: 24px; color: var(--c); }
.entry h4 { font-size: 15px; font-weight: 700; }
.entry p { font-size: 13px; color: var(--muted); }
.entry .type { font-size: 12px; color: var(--dim); text-align: right; }
.empty { text-align: center; color: var(--dim); padding: 50px 0; }

.pill-info { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; color: var(--muted); padding: 7px 13px; border-radius: 999px; border: 1px solid var(--border-2); }
.pill-info svg { width: 14px; height: 14px; }

/* Store */
.store-hero { text-align: center; padding-top: 30px; }
.eyebrow { font-family: var(--pixel); font-size: 12px; letter-spacing: .25em; color: var(--blue-2); text-transform: uppercase; }
.store-hero h1 { font-size: clamp(40px, 7vw, 68px); font-weight: 900; letter-spacing: -.045em; line-height: 1; margin: 12px 0 14px; }
.store-hero p { color: var(--muted); max-width: 460px; margin: 0 auto; }
.gate { max-width: 380px; margin: 60px auto 40px; text-align: center; }
.gate .avatar { width: 64px; height: 64px; margin: 0 auto 18px; border-radius: 14px; display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border-2); color: var(--muted); }
.gate .avatar svg { width: 26px; height: 26px; }
.gate h2 { font-size: 20px; font-weight: 800; }
.gate p { color: var(--dim); font-size: 13px; margin: 4px 0 20px; }
.input { width: 100%; height: 46px; padding: 0 14px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-2); color: var(--text); font: inherit; font-size: 14px; text-align: center; outline: 0; }
.input:focus { border-color: var(--blue); }
.gate .btn { width: 100%; margin-top: 10px; letter-spacing: .08em; text-transform: uppercase; font-size: 13px; }
.user-bar { display: flex; align-items: center; justify-content: center; gap: 12px; margin: 40px 0 26px; font-size: 14px; color: var(--muted); }
.user-bar img { width: 32px; height: 32px; border-radius: 6px; image-rendering: pixelated; }
.user-bar b { color: var(--text); }
.user-bar button { color: var(--blue-2); font-weight: 700; font-size: 13px; }
.tabs { display: flex; gap: 6px; justify-content: center; margin-bottom: 26px; flex-wrap: wrap; }
.tabs button { font-size: 12px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; padding: 9px 16px; border-radius: 8px; background: var(--surface); border: 1px solid var(--border); color: var(--muted); }
.tabs button.active { color: #bfe6ff; background: rgba(31,124,240,.16); border-color: rgba(31,124,240,.55); }
.products { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.product { padding: 24px; display: flex; flex-direction: column; position: relative; }
.product .pop { position: absolute; top: 16px; right: 16px; font-size: 10px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: #fff; background: var(--blue-2); padding: 4px 8px; border-radius: 5px; }
.product .pname { font-family: var(--pixel); font-size: 22px; color: var(--c); text-shadow: 0 0 20px color-mix(in srgb, var(--c) 40%, transparent); }
.product .price { font-size: 32px; font-weight: 900; letter-spacing: -.03em; margin: 10px 0 16px; }
.product .price small { font-size: 13px; color: var(--dim); font-weight: 600; letter-spacing: 0; }
.product ul { list-style: none; display: grid; gap: 8px; margin-bottom: 22px; flex: 1; }
.product li { font-size: 14px; color: var(--muted); display: flex; gap: 8px; }
.product li::before { content: "▸"; color: var(--c); }
.product.popular { border-color: rgba(31,124,240,.5); box-shadow: 0 0 40px rgba(31,124,240,.12); }

.drawer-bg { position: fixed; inset: 0; background: rgba(0,0,0,.55); z-index: 80; opacity: 0; pointer-events: none; transition: .25s; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(380px, 100%); z-index: 90; background: #0b1122; border-left: 1px solid var(--border-2); transform: translateX(100%); transition: transform .3s cubic-bezier(.2,.7,.2,1); display: flex; flex-direction: column; }
.drawer.open { transform: none; }
.drawer.open + .drawer-bg, .drawer-bg.open { opacity: 1; pointer-events: auto; }
.drawer-head { display: flex; justify-content: space-between; align-items: center; padding: 18px 20px; border-bottom: 1px solid var(--border); font-weight: 800; letter-spacing: .08em; font-size: 13px; }
.drawer-items { flex: 1; overflow-y: auto; padding: 14px 20px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 0; border-bottom: 1px solid var(--border); font-size: 14px; }
.cart-item button { color: var(--dim); font-size: 18px; line-height: 1; }
.cart-item button:hover { color: var(--red); }
.drawer-foot { padding: 18px 20px; border-top: 1px solid var(--border); }
.drawer-foot .total { display: flex; justify-content: space-between; font-weight: 800; margin-bottom: 12px; }
.drawer-foot .btn { width: 100%; }
.cart-empty { text-align: center; color: var(--dim); padding: 60px 0; font-size: 14px; }
.cart-empty b { display: block; color: var(--muted); margin-bottom: 4px; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .products { grid-template-columns: repeat(2, 1fr); }
  .feature .deco { opacity: .05; }
}
@media (max-width: 640px) {
  .nav { padding: 12px 16px; }
  .nav .ip-pill .ip-text, .nav .ip-pill .ip-bar { display: none; }
  .nav .ip-pill { padding: 0 6px; }
  .news-grid, .wiki-grid, .products { grid-template-columns: 1fr; }
  .feature, .feature.right .container { text-align: left; justify-content: flex-start; }
  .feature.right .feature-text p { margin-left: 0; }
  .container { padding: 0 16px; }
  .entry { grid-template-columns: 40px 1fr; }
  .entry .type { display: none; }
  .footer-bottom .container { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* =========================================================
   FX – Animationen
   ========================================================= */
/* Logo-Intro: "Ravor" fällt, "MC" knallt hinterher (Ablauf in fx.js) */
.logo-tilt {
  display: inline-block; transition: transform .6s cubic-bezier(.2,.7,.2,1); transform-style: preserve-3d;
  filter: drop-shadow(0 0 40px rgba(31, 124, 240, .45)) drop-shadow(0 12px 30px rgba(0, 0, 0, .6));
}
.logo-wrap { position: relative; display: inline-block; animation: float 5s ease-in-out 1.4s infinite; }
.logo .logo-part { filter: none; animation: none; transform-origin: 50% 85%; will-change: transform; }
.logo .logo-b { position: absolute; left: 0; top: 0; filter: drop-shadow(0 0 22px rgba(255, 59, 47, .35)); }
.logo-shock {
  position: absolute; top: 80%; width: 170px; height: 46px; border-radius: 50%; pointer-events: none;
  border: 3px solid var(--c); box-shadow: 0 0 24px var(--c), inset 0 0 18px var(--c);
}
.intro-running .logo-shine { opacity: 0; }
.logo-shine {
  position: absolute; inset: 0; pointer-events: none;
  -webkit-mask: var(--logo-src) center / 100% 100% no-repeat; mask: var(--logo-src) center / 100% 100% no-repeat;
  background: linear-gradient(105deg, transparent 42%, rgba(255,255,255,.75) 50%, transparent 58%) no-repeat;
  background-size: 250% 100%; background-position: 150% 0;
  mix-blend-mode: screen; animation: shine 6s ease-in-out 1.4s infinite; transition: opacity .3s;
}
@keyframes shine { 0% { background-position: 150% 0; } 22%, 100% { background-position: -50% 0; } }
.hero-stagger { animation: fadeUp .7s cubic-bezier(.2,.7,.2,1) both; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }

/* Glitch */
.mega.glitching { animation: glitch .75s steps(1, end) both; }
@keyframes glitch {
  0%   { transform: translate(0); filter: none; clip-path: none; }
  8%   { transform: translate(-4px, 1px) skewX(-6deg); filter: drop-shadow(-4px 0 rgba(255,59,47,.9)) drop-shadow(4px 0 rgba(92,196,255,.9)); clip-path: polygon(0 8%, 100% 8%, 100% 38%, 0 38%); }
  16%  { transform: translate(5px, -1px); filter: drop-shadow(5px 0 rgba(255,59,47,.9)) drop-shadow(-5px 0 rgba(92,196,255,.9)); clip-path: polygon(0 55%, 100% 55%, 100% 92%, 0 92%); }
  24%  { transform: translate(-2px); filter: drop-shadow(-2px 0 rgba(255,59,47,.8)) drop-shadow(2px 0 rgba(92,196,255,.8)); clip-path: none; }
  34%  { transform: translate(3px, 2px) skewX(4deg); clip-path: polygon(0 20%, 100% 20%, 100% 70%, 0 70%); }
  44%  { transform: translate(0); filter: drop-shadow(-1px 0 rgba(255,59,47,.6)) drop-shadow(1px 0 rgba(92,196,255,.6)); clip-path: none; }
  60%  { transform: translate(-2px, 0); clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%); }
  68%  { transform: translate(0); clip-path: none; filter: none; }
  100% { transform: translate(0); filter: none; clip-path: none; }
}

/* 3D-Tilt mit Lichtreflex */
.tilting { transition: transform .08s linear, border-color .2s, box-shadow .2s !important; will-change: transform; }
.news-grid .card, .wiki-grid .card, .product, .stats-strip { position: relative; }
.news-grid .card::after, .wiki-grid .card::after, .product::after, .stats-strip::after {
  content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; border-radius: inherit;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(140, 200, 255, .16), transparent 45%);
  opacity: 0; transition: opacity .25s;
}
.tilting::after { opacity: 1 !important; }

/* Klick-Partikel */
.fx-px { position: fixed; z-index: 300; pointer-events: none; image-rendering: pixelated; box-shadow: 0 0 8px currentColor; }

@media (prefers-reduced-motion: reduce) {
  .logo-shine { display: none; }
}

/* ---- Login-Button in der Navigation ---- */
.nav-acc {
  display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 12px; border-radius: 8px;
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; white-space: nowrap;
  color: #fff; background: linear-gradient(180deg, var(--blue-2), var(--blue)); box-shadow: 0 4px 16px rgba(31,124,240,.3);
  transition: filter .15s, transform .15s;
}
.nav-acc:hover { filter: brightness(1.1); transform: translateY(-1px); }
.nav-acc svg { width: 15px; height: 15px; }
.nav-acc.logged-in { background: var(--surface); border: 1px solid var(--border-2); box-shadow: none; text-transform: none; letter-spacing: 0; font-size: 12px; }
.nav-acc.logged-in img { width: 20px; height: 20px; border-radius: 4px; image-rendering: pixelated; }
.nav-acc.active { outline: 2px solid rgba(92,196,255,.5); }
@media (max-width: 640px) { .nav-acc span { display: none; } .nav-acc { padding: 0 9px; } }

/* Dev-Modus-Hinweis */
.dev-badge {
  position: fixed; left: 12px; bottom: 48px; z-index: 400; pointer-events: none;
  padding: 5px 10px; border-radius: 7px; font: 800 11px/1 var(--sans); letter-spacing: .08em; text-transform: uppercase;
  color: #1a0f00; background: repeating-linear-gradient(135deg, #f0b429 0 8px, #ffd866 8px 16px);
  box-shadow: 0 4px 14px rgba(240,180,41,.4);
}
