* { box-sizing: border-box; }

:root {
  --bg: #060a10;
  --panel: rgba(255, 255, 255, 0.045);
  --panel-strong: rgba(255, 255, 255, 0.09);
  --line: rgba(255, 255, 255, 0.10);
  --text: #eef4f6;
  --muted: #8fa0ae;
  --emerald: #3ce58f;
  --emerald-soft: rgba(60, 229, 143, 0.14);
  --aqua: #5fd4ff;
  --amber: #ffc66b;
  --red: #ff5d7a;
  --radius: 20px;
  --display: "Unbounded", sans-serif;
  --body: "Outfit", ui-sans-serif, system-ui, sans-serif;
  --mono: "JetBrains Mono", monospace;
}

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  background: var(--bg);
  overflow-x: hidden;
}

/* ---------- Hintergrund ---------- */
.sky {
  position: fixed; inset: 0; z-index: -6; pointer-events: none;
  background:
    radial-gradient(900px 500px at 75% -10%, rgba(60, 229, 143, 0.10), transparent 60%),
    radial-gradient(700px 500px at 10% 10%, rgba(95, 212, 255, 0.08), transparent 60%),
    linear-gradient(180deg, #0a1018 0%, #060a10 50%, #04070b 100%);
}

.stars {
  position: fixed; inset: 0; z-index: -5; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(1.5px 1.5px at 20% 30%, rgba(255,255,255,.5), transparent),
    radial-gradient(1px 1px at 70% 15%, rgba(255,255,255,.4), transparent),
    radial-gradient(1.5px 1.5px at 85% 45%, rgba(255,255,255,.35), transparent),
    radial-gradient(1px 1px at 40% 70%, rgba(255,255,255,.3), transparent),
    radial-gradient(1px 1px at 10% 60%, rgba(255,255,255,.35), transparent),
    radial-gradient(1.5px 1.5px at 55% 25%, rgba(255,255,255,.3), transparent);
  background-size: 100% 100%;
  mask-image: linear-gradient(to bottom, black, transparent 70%);
  animation: twinkle 6s ease-in-out infinite alternate;
}

@keyframes twinkle { from { opacity: .35; } to { opacity: .6; } }

.glow {
  position: fixed; width: 520px; height: 520px; z-index: -4;
  border-radius: 999px; filter: blur(120px); opacity: .16; pointer-events: none;
  animation: drift 18s ease-in-out infinite;
}
.glow-a { left: -180px; top: 20%; background: var(--emerald); }
.glow-b { right: -200px; top: 5%; background: var(--aqua); animation-delay: -8s; }

@keyframes drift {
  0%, 100% { transform: translate3d(0,0,0) scale(1); }
  50% { transform: translate3d(40px,-30px,0) scale(1.08); }
}

button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
code { font-family: var(--mono); font-size: .9em; color: var(--emerald); }

/* ---------- Navbar ---------- */
.topbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 14px 0;
  transition: padding .3s ease;
}

.topbar::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: rgba(6, 10, 16, 0);
  border-bottom: 1px solid transparent;
  backdrop-filter: blur(0px);
  transition: all .35s ease;
}

.topbar.scrolled { padding: 8px 0; }
.topbar.scrolled::before {
  background: rgba(6, 10, 16, 0.78);
  border-bottom-color: var(--line);
  backdrop-filter: blur(18px);
}

.topbar-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
}

.brand {
  display: flex; align-items: center; gap: 12px;
  border: 0; background: transparent; color: var(--text); padding: 0;
}

.brand-mark {
  position: relative; width: 44px; height: 44px;
  display: grid; place-items: center;
}
.brand-mark.small { width: 32px; height: 32px; }

.brand-ring {
  position: absolute; inset: 0; border-radius: 14px;
  border: 1.5px solid var(--emerald);
  opacity: .7;
  animation: ringSpin 8s linear infinite;
}

@keyframes ringSpin {
  0% { transform: rotate(0deg); border-radius: 14px; }
  50% { border-radius: 50%; }
  100% { transform: rotate(360deg); border-radius: 14px; }
}

.brand-letter {
  position: relative; z-index: 1;
  width: 34px; height: 34px; display: grid; place-items: center;
  border-radius: 11px; font-family: var(--display); font-weight: 800; font-size: 18px;
  color: #06281a;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
  box-shadow: 0 0 28px rgba(60, 229, 143, 0.45);
}
.brand-mark.small .brand-letter { width: 26px; height: 26px; font-size: 14px; border-radius: 8px; }

.brand-name { text-align: left; line-height: 1; }
.brand-name strong { display: block; font-family: var(--display); font-weight: 700; font-size: 17px; letter-spacing: .02em; }
.brand-name small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; }

.nav-dock {
  position: relative;
  display: flex; gap: 4px; padding: 5px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.04);
  backdrop-filter: blur(14px);
}

.nav-indicator {
  position: absolute; top: 5px; bottom: 5px; left: 0;
  border-radius: 999px;
  background: var(--emerald-soft);
  border: 1px solid rgba(60,229,143,.35);
  transition: left .35s cubic-bezier(.6,.1,.2,1.2), width .35s cubic-bezier(.6,.1,.2,1.2);
  pointer-events: none;
}

.nav-dock .nav-link {
  position: relative; z-index: 1;
  border: 0; background: transparent;
  padding: 9px 18px; border-radius: 999px;
  color: var(--muted); font-weight: 600; font-size: 15px;
  transition: color .25s ease;
}
.nav-dock .nav-link:hover { color: var(--text); }
.nav-dock .nav-link.active { color: var(--emerald); }

.topbar-actions { display: flex; align-items: center; gap: 10px; }

.ip-chip {
  display: flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,0.04);
  padding: 9px 14px; color: var(--text);
  transition: border-color .25s, background .25s;
}
.ip-chip:hover { border-color: rgba(60,229,143,.5); background: var(--emerald-soft); }
.ip-chip code { font-size: 13px; font-weight: 700; }

.ip-dot {
  width: 8px; height: 8px; border-radius: 999px; background: var(--emerald);
  box-shadow: 0 0 0 0 rgba(60,229,143,.6);
  animation: pulseDot 2s ease-out infinite;
}

.pulse {
  width: 8px; height: 8px; border-radius: 999px; background: var(--emerald);
  display: inline-block;
  animation: pulseDot 2s ease-out infinite;
}

@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(60,229,143,.55); }
  70% { box-shadow: 0 0 0 9px rgba(60,229,143,0); }
  100% { box-shadow: 0 0 0 0 rgba(60,229,143,0); }
}

.cta-btn {
  display: inline-block; text-decoration: none;
  padding: 10px 20px; border-radius: 999px;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
  color: #06281a; font-weight: 700; font-size: 15px;
  box-shadow: 0 6px 24px rgba(60,229,143,.25);
  transition: transform .2s ease, box-shadow .2s ease;
}
.cta-btn:hover { transform: translateY(-2px); box-shadow: 0 10px 32px rgba(60,229,143,.4); }
.cta-btn.full { text-align: center; padding: 14px; }

.burger {
  display: none; flex-direction: column; gap: 5px;
  border: 1px solid var(--line); border-radius: 12px;
  background: rgba(255,255,255,0.04); padding: 11px 10px;
}
.burger span { width: 20px; height: 2px; border-radius: 2px; background: var(--text); transition: .3s; }
.burger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.burger.open span:nth-child(2) { opacity: 0; }
.burger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  position: fixed; top: 70px; left: 3%; right: 3%; z-index: 99;
  display: none; flex-direction: column; gap: 6px;
  padding: 14px; border: 1px solid var(--line); border-radius: var(--radius);
  background: rgba(8, 12, 18, 0.96); backdrop-filter: blur(20px);
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  transform: translateY(-12px); opacity: 0;
  transition: transform .3s ease, opacity .3s ease;
}
.mobile-menu.open { display: flex; transform: translateY(0); opacity: 1; }
.mobile-menu .nav-link {
  border: 0; background: transparent; text-align: left;
  padding: 13px 14px; border-radius: 12px;
  color: var(--text); font-weight: 600; font-size: 16px;
}
.mobile-menu .nav-link.active { background: var(--emerald-soft); color: var(--emerald); }

/* ---------- Seiten / Layout ---------- */
main { width: min(1200px, 94%); margin: 0 auto; padding-top: 120px; }

.page { display: none; }
.page.page-active { display: block; animation: pageIn .5s ease both; }

@keyframes pageIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.section { margin: 96px 0; }

.section-head { max-width: 620px; margin-bottom: 40px; }

.eyebrow {
  display: inline-block;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--emerald); margin-bottom: 12px;
}

h1, h2, h3 { font-family: var(--display); line-height: 1.15; margin: 0; }
h1 { font-size: clamp(36px, 5.4vw, 62px); font-weight: 800; letter-spacing: -.01em; }
h1 em { font-style: normal; color: var(--emerald); }
h2 { font-size: clamp(24px, 3vw, 34px); font-weight: 700; }
h3 { font-size: 18px; font-weight: 700; }

.lead { color: var(--muted); font-size: 18px; max-width: 560px; }

/* ---------- Load-in & Reveal Animationen ---------- */
.load-in {
  opacity: 0; transform: translateY(18px);
  animation: loadIn .7s cubic-bezier(.2,.7,.2,1) forwards;
  animation-delay: var(--d, 0s);
}
@keyframes loadIn { to { opacity: 1; transform: translateY(0); } }

.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ---------- Hero ---------- */
.hero {
  display: grid; grid-template-columns: 1.1fr .9fr;
  align-items: center; gap: 48px;
  min-height: 560px; padding: 30px 0 10px;
}

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(60,229,143,.3); background: var(--emerald-soft);
  font-size: 14px; font-weight: 600; color: #c8ffe2;
  margin-bottom: 22px;
}

.hero h1 { margin-bottom: 20px; }
.hero .lead { margin-bottom: 32px; }

.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-bottom: 44px; }

.primary-btn {
  display: inline-flex; flex-direction: column; align-items: flex-start; gap: 2px;
  text-decoration: none;
  border: 0; border-radius: 16px; padding: 14px 26px;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
  color: #06281a;
  box-shadow: 0 10px 34px rgba(60,229,143,.28);
  transition: transform .2s ease, box-shadow .2s ease;
}
.primary-btn:hover { transform: translateY(-3px); box-shadow: 0 16px 44px rgba(60,229,143,.42); }
.primary-btn .btn-label { font-family: var(--mono); font-weight: 700; font-size: 16px; }
.primary-btn .btn-sub { font-size: 12px; font-weight: 600; opacity: .75; }

.ghost-btn {
  border: 1px solid var(--line); border-radius: 16px;
  background: rgba(255,255,255,.04); color: var(--text);
  padding: 14px 26px; font-weight: 600;
  transition: border-color .25s, background .25s, transform .2s;
}
.ghost-btn:hover { border-color: rgba(255,255,255,.3); background: rgba(255,255,255,.08); transform: translateY(-3px); }

.hero-stats { display: flex; gap: 36px; }
.hero-stats strong { display: block; font-family: var(--display); font-size: 28px; font-weight: 800; color: var(--emerald); }
.hero-stats span { font-size: 13px; color: var(--muted); font-weight: 600; }

/* Portal-Visual */
.hero-visual { position: relative; height: 460px; display: grid; place-items: center; }

.portal { position: relative; width: 320px; height: 320px; display: grid; place-items: center; }

.portal-ring {
  position: absolute; border-radius: 999px;
  border: 1.5px solid rgba(60,229,143,.4);
}
.portal-ring.r1 { inset: 0; animation: spin 22s linear infinite; border-style: dashed; }
.portal-ring.r2 { inset: 36px; border-color: rgba(95,212,255,.35); animation: spinBack 16s linear infinite; }
.portal-ring.r3 { inset: 72px; border-color: rgba(255,198,107,.3); animation: spin 11s linear infinite; border-style: dotted; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes spinBack { to { transform: rotate(-360deg); } }

.portal-core {
  width: 130px; height: 130px; display: grid; place-items: center;
  border-radius: 38px;
  font-family: var(--display); font-weight: 800; font-size: 54px; color: #06281a;
  background: linear-gradient(135deg, #d9ffe9, var(--emerald) 70%);
  box-shadow:
    0 0 60px rgba(60,229,143,.5),
    0 0 140px rgba(60,229,143,.22);
  animation: coreFloat 5s ease-in-out infinite;
}

@keyframes coreFloat {
  0%, 100% { transform: translateY(-8px) rotate(-2deg); }
  50% { transform: translateY(8px) rotate(2deg); }
}

.float-tag {
  position: absolute;
  padding: 12px 18px; border-radius: 16px;
  border: 1px solid var(--line);
  background: rgba(10, 15, 22, 0.85); backdrop-filter: blur(12px);
  box-shadow: 0 16px 50px rgba(0,0,0,.4);
  animation: tagFloat 6s ease-in-out infinite;
}
.float-tag strong { display: block; font-size: 14px; }
.float-tag small { color: var(--muted); font-size: 12px; }
.float-tag.t1 { top: 8%; left: 0; animation-delay: -1s; }
.float-tag.t2 { bottom: 14%; left: 4%; animation-delay: -3s; }
.float-tag.t3 { top: 30%; right: 0; animation-delay: -5s; }

@keyframes tagFloat {
  0%, 100% { transform: translateY(-7px); }
  50% { transform: translateY(7px); }
}

/* ---------- Feature-Karten ---------- */
.feature-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}

.feature-card {
  position: relative; overflow: hidden;
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 28px 26px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.feature-card::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(420px 200px at var(--mx, 50%) var(--my, 0%), rgba(60,229,143,.10), transparent 65%);
  opacity: 0; transition: opacity .3s ease;
}
.feature-card:hover { transform: translateY(-6px); border-color: rgba(60,229,143,.35); background: var(--panel-strong); }
.feature-card:hover::before { opacity: 1; }

.feature-icon {
  width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 16px; font-size: 24px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
  margin-bottom: 18px;
}
.feature-card h3 { margin-bottom: 10px; }
.feature-card p { margin: 0; color: var(--muted); font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps-row:has(.step-card:nth-child(4)) { grid-template-columns: repeat(4, 1fr); }

.step-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 26px;
  transition: transform .3s ease, border-color .3s ease;
}
.step-card:hover { transform: translateY(-5px); border-color: rgba(255,255,255,.25); }
.step-card.danger { border-color: rgba(255,93,122,.4); background: rgba(255,93,122,.06); }
.step-card.danger .step-num { background: rgba(255,93,122,.16); color: var(--red); border-color: rgba(255,93,122,.4); }

.step-num {
  display: inline-grid; place-items: center;
  width: 42px; height: 42px; border-radius: 13px;
  font-family: var(--display); font-weight: 800; font-size: 17px;
  color: var(--emerald); background: var(--emerald-soft);
  border: 1px solid rgba(60,229,143,.35);
  margin-bottom: 16px;
}
.step-card h3 { margin-bottom: 8px; }
.step-card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---------- Join-Banner ---------- */
.join-banner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  border: 1px solid rgba(60,229,143,.3); border-radius: 26px;
  padding: 42px 46px;
  background:
    radial-gradient(600px 260px at 15% 0%, rgba(60,229,143,.14), transparent 60%),
    var(--panel);
}
.join-banner h2 { margin: 4px 0 8px; }
.join-banner p { margin: 0; color: var(--muted); }

/* ---------- Seiten-Hero (Unterseiten) ---------- */
.page-hero { padding: 30px 0 10px; max-width: 720px; }
.page-hero h1 { margin: 6px 0 18px; }


.systems-page-hero {
  max-width: 980px;
  padding: clamp(38px, 6vw, 78px) 0 18px;
}

.systems-page-hero .eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.systems-hero-title {
  max-width: 820px;
  font-size: clamp(42px, 7vw, 86px);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0 0 20px;
}

.systems-page-hero .lead {
  max-width: 700px;
  font-size: clamp(16px, 1.5vw, 19px);
}

.systems-hero-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  max-width: 900px;
  margin-top: 26px;
}

.systems-hero-chips span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 40px;
  padding: 10px 14px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.105);
  background:
    linear-gradient(135deg, rgba(60,229,143,.12), rgba(255,255,255,.035)),
    rgba(255,255,255,.035);
  color: #dfe9f2;
  font-size: 14px;
  font-weight: 850;
  box-shadow: 0 14px 34px rgba(0,0,0,.16);
}

@media (max-width: 720px) {
  .systems-page-hero {
    padding-top: 26px;
  }

  .systems-hero-title {
    font-size: clamp(36px, 12vw, 58px);
    letter-spacing: -.045em;
  }

  .systems-hero-chips span {
    min-height: 36px;
    padding: 8px 11px;
    font-size: 12.5px;
  }
}

/* ---------- Regelwerk ---------- */
.rules-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px;
  margin: 40px 0 26px;
}

.search-box {
  flex: 1; min-width: 260px; max-width: 460px;
  display: flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 16px;
  background: var(--panel); padding: 0 16px;
  transition: border-color .25s;
}
.search-box:focus-within { border-color: rgba(60,229,143,.5); }
.search-box span { color: var(--muted); font-size: 18px; }
.search-box input {
  flex: 1; border: 0; background: transparent; outline: none;
  color: var(--text); padding: 14px 0; font-size: 15px;
}
.search-box input::placeholder { color: var(--muted); }

.filter-row { display: flex; gap: 8px; flex-wrap: wrap; }

.filter-btn {
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--panel); color: var(--muted);
  padding: 10px 18px; font-weight: 600; font-size: 14px;
  transition: all .25s ease;
}
.filter-btn:hover { color: var(--text); border-color: rgba(255,255,255,.3); }
.filter-btn.active {
  color: #06281a; border-color: transparent;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
}

.category-strip { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 36px; }

.category-chip {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--line); border-radius: 999px;
  background: rgba(255,255,255,.03); color: var(--muted);
  padding: 9px 16px; font-weight: 600; font-size: 13.5px;
  transition: all .25s ease;
}
.category-chip:hover { color: var(--text); border-color: rgba(60,229,143,.4); background: var(--emerald-soft); }

.rule-category { margin-bottom: 56px; }

.category-head {
  display: flex; gap: 18px; align-items: flex-start;
  margin-bottom: 22px;
}
.category-icon {
  flex-shrink: 0;
  width: 54px; height: 54px; display: grid; place-items: center;
  font-size: 25px; border-radius: 17px;
  background: var(--panel-strong); border: 1px solid var(--line);
}
.category-head h2 { margin-bottom: 6px; font-size: 24px; }
.category-head p { margin: 0; color: var(--muted); max-width: 680px; font-size: 15.5px; }

.rule-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }

.rule-card {
  border: 1px solid var(--line); border-radius: 18px;
  background: var(--panel); padding: 22px;
  animation: loadIn .6s ease both;
  transition: transform .25s ease, border-color .25s ease;
}
.rule-card:hover { transform: translateY(-4px); }
.rule-card.warn:hover { border-color: rgba(255,198,107,.45); }
.rule-card.temp:hover { border-color: rgba(95,212,255,.45); }
.rule-card.perma:hover { border-color: rgba(255,93,122,.5); }

.rule-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.rule-top small {
  display: block; font-family: var(--mono); font-size: 11px;
  letter-spacing: .1em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 6px;
}
.rule-top h3 { font-size: 17px; }

.penalty { flex-shrink: 0; text-align: right; }
.penalty strong {
  display: inline-block; padding: 7px 13px; border-radius: 12px;
  font-size: 13px; font-weight: 700; white-space: nowrap;
}
.penalty span { display: block; margin-top: 5px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

.rule-card.warn .penalty strong { background: rgba(255,198,107,.14); color: var(--amber); border: 1px solid rgba(255,198,107,.35); }
.rule-card.temp .penalty strong { background: rgba(95,212,255,.12); color: var(--aqua); border: 1px solid rgba(95,212,255,.35); }
.rule-card.perma .penalty strong { background: rgba(255,93,122,.13); color: var(--red); border: 1px solid rgba(255,93,122,.4); }

.rule-card > p { margin: 0 0 12px; color: #c4cdd6; font-size: 15px; }

.rule-note {
  border-left: 3px solid var(--emerald);
  background: rgba(60,229,143,.06);
  border-radius: 0 12px 12px 0;
  padding: 10px 14px;
  font-size: 13.5px; color: var(--muted);
}

.no-results {
  border: 1px dashed var(--line); border-radius: var(--radius);
  padding: 40px; text-align: center; color: var(--muted);
}

.mod-panel {
  border: 1px solid var(--line); border-radius: 26px;
  background: var(--panel); padding: 42px 46px;
}
.mod-panel h2 { margin: 4px 0 24px; }
.mod-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.mod-grid article {
  border: 1px solid var(--line); border-radius: 14px;
  background: rgba(255,255,255,.03); padding: 16px 18px;
  font-size: 14.5px; color: #c4cdd6;
}

/* ---------- Plugins ---------- */
.plugin-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin: 44px 0 96px;
}

.plugin-card {
  border: 1px solid var(--line); border-radius: var(--radius);
  background: var(--panel); padding: 26px;
  transition: transform .3s ease, border-color .3s ease, background .3s ease;
}
.plugin-card:hover { transform: translateY(-5px); border-color: rgba(60,229,143,.35); background: var(--panel-strong); }

.plugin-head { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.plugin-icon {
  width: 48px; height: 48px; display: grid; place-items: center;
  font-size: 22px; border-radius: 15px;
  background: rgba(255,255,255,.06); border: 1px solid var(--line);
}
.plugin-head h3 { margin-bottom: 3px; }

.plugin-tag {
  display: inline-block;
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: .1em; text-transform: uppercase;
  color: var(--emerald);
}

.plugin-card p { margin: 0 0 14px; color: var(--muted); font-size: 15px; }

.plugin-cmds { display: flex; flex-wrap: wrap; gap: 7px; }
.plugin-cmds code {
  border: 1px solid var(--line); border-radius: 9px;
  background: rgba(255,255,255,.04);
  padding: 5px 10px; font-size: 12.5px;
}

/* ---------- FAQ ---------- */
.faq-list {
  margin: 44px auto 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 900px;
}

.faq-item {
  position: relative;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--panel);
  overflow: hidden;
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}
.faq-item::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, var(--emerald), transparent);
  opacity: 0;
  transition: opacity .25s ease;
}
.faq-item:hover {
  transform: translateY(-2px);
  border-color: rgba(60,229,143,.24);
  background:
    linear-gradient(135deg, rgba(60,229,143,.08), rgba(255,255,255,.025)),
    var(--panel);
}
.faq-item.open {
  border-color: rgba(60,229,143,.45);
  box-shadow: 0 24px 70px rgba(0,0,0,.2), 0 0 0 1px rgba(60,229,143,.08) inset;
}
.faq-item.open::before { opacity: 1; }

.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  border: 0; background: transparent; color: var(--text);
  padding: 21px 24px; text-align: left;
  font-weight: 700; font-size: 16.5px;
  cursor: pointer;
}

.faq-arrow {
  flex-shrink: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 13px; border: 1px solid rgba(255,255,255,.1);
  background: rgba(255,255,255,.055);
  color: var(--emerald); font-size: 16px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.08);
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .25s, border-color .25s;
}
.faq-item.open .faq-arrow {
  transform: rotate(45deg);
  background: var(--emerald-soft);
  border-color: rgba(60,229,143,.3);
}

.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .4s cubic-bezier(.4,0,.2,1);
}
.faq-a-inner {
  padding: 0 24px 24px;
  color: var(--muted); font-size: 15.5px;
  line-height: 1.75;
}
.faq-a-inner code { font-size: 13.5px; }



/* ---------- Updates ---------- */
.release-countdown {
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.updates-hero {
  max-width: 820px;
}

.updates-section {
  margin-top: 54px;
}

.update-spotlight {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(60,229,143,.26);
  border-radius: 28px;
  padding: clamp(28px, 5vw, 52px);
  background:
    radial-gradient(720px 360px at 8% 0%, rgba(60,229,143,.18), transparent 60%),
    radial-gradient(480px 240px at 100% 20%, rgba(95,212,255,.13), transparent 65%),
    var(--panel);
  box-shadow: 0 26px 80px rgba(0,0,0,.22);
}

.update-spotlight::after {
  content: "1.1";
  position: absolute;
  right: clamp(18px, 5vw, 48px);
  bottom: -18px;
  font-family: var(--display);
  font-size: clamp(76px, 16vw, 180px);
  font-weight: 800;
  color: rgba(255,255,255,.045);
  line-height: .8;
  pointer-events: none;
}

.update-version {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  border: 1px solid rgba(60,229,143,.34);
  border-radius: 999px;
  padding: 8px 14px;
  margin-bottom: 18px;
  background: rgba(60,229,143,.1);
  color: #c8ffe2;
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

.update-spotlight h2 {
  max-width: 620px;
  margin-bottom: 14px;
}

.update-spotlight p {
  position: relative;
  z-index: 1;
  max-width: 720px;
  margin: 0;
  color: var(--muted);
  font-size: 16.5px;
  line-height: 1.75;
}

.update-timeline {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}

.update-card {
  display: flex;
  gap: 18px;
  align-items: flex-start;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 24px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025)),
    var(--panel);
  box-shadow: 0 18px 48px rgba(0,0,0,.14);
}

.update-card-hot {
  border-color: rgba(60,229,143,.28);
  background:
    linear-gradient(135deg, rgba(60,229,143,.12), rgba(255,255,255,.025)),
    var(--panel);
}

.update-icon {
  width: 50px;
  height: 50px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: rgba(60,229,143,.1);
  border: 1px solid rgba(60,229,143,.22);
  font-size: 24px;
}

.update-card h3 {
  margin-bottom: 8px;
}

.update-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.update-note {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  margin-top: 18px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 18px;
  padding: 16px 18px;
  background: rgba(255,255,255,.035);
  color: var(--muted);
  line-height: 1.65;
}

.update-note strong {
  color: var(--text);
  white-space: nowrap;
}

@media (max-width: 760px) {
  .update-timeline { grid-template-columns: 1fr; }
  .update-card { flex-direction: column; }
  .update-note { flex-direction: column; }
}

/* ---------- Footer ---------- */
footer { margin-top: 110px; border-top: 1px solid var(--line); background: rgba(255,255,255,.02); }

.footer-inner {
  width: min(1200px, 94%); margin: 0 auto;
  padding: 32px 0;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  flex-wrap: wrap;
}

.footer-brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 14.5px; }

.footer-links { display: flex; gap: 4px; }
.footer-links .nav-link {
  border: 0; background: transparent; color: var(--muted);
  padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14px;
  transition: color .25s;
}
.footer-links .nav-link:hover { color: var(--emerald); }

.footer-note { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; bottom: 28px; left: 50%; z-index: 200;
  transform: translateX(-50%) translateY(80px);
  padding: 13px 26px; border-radius: 999px;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
  color: #06281a; font-weight: 700; font-size: 15px;
  box-shadow: 0 16px 50px rgba(60,229,143,.4);
  opacity: 0; pointer-events: none;
  transition: transform .4s cubic-bezier(.2,.9,.3,1.3), opacity .3s;
}
.toast.show { transform: translateX(-50%) translateY(0); opacity: 1; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .nav-dock { display: none; }
  .burger { display: flex; }
  .ip-chip { display: none; }
  .hero { grid-template-columns: 1fr; min-height: 0; }
  .hero-visual { height: 380px; order: -1; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .steps-row, .steps-row:has(.step-card:nth-child(4)) { grid-template-columns: repeat(2, 1fr); }
  .rule-grid { grid-template-columns: 1fr; }
  .plugin-grid { grid-template-columns: 1fr; }
  .join-banner { flex-direction: column; align-items: flex-start; padding: 32px; }
}

@media (max-width: 640px) {
  main { padding-top: 96px; }
  .cta-btn { display: none; }
  .mobile-menu .cta-btn { display: block; }
  .feature-grid { grid-template-columns: 1fr; }
  .steps-row, .steps-row:has(.step-card:nth-child(4)) { grid-template-columns: 1fr; }
  .hero-stats { gap: 22px; flex-wrap: wrap; }
  .mod-panel { padding: 28px 22px; }
  .footer-inner { flex-direction: column; text-align: center; }
}

/* ---------- Reduced Motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  .load-in, .reveal { opacity: 1; transform: none; }
}

/* ---------- Klickbare Plugin-Erklärungen ---------- */
.plugin-toggle {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  border: 0; background: transparent; color: var(--text);
  padding: 0; text-align: left;
}

.plugin-toggle .plugin-head { margin-bottom: 0; }

.plugin-open {
  flex-shrink: 0;
  width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  background: rgba(255,255,255,.04);
  color: var(--emerald); font-weight: 800;
  transition: transform .35s cubic-bezier(.4,0,.2,1), background .25s, border-color .25s;
}

.plugin-card.open .plugin-open {
  transform: rotate(45deg);
  background: var(--emerald-soft);
  border-color: rgba(60,229,143,.35);
}

.plugin-details {
  max-height: 0;
  overflow: hidden;
  transition: max-height .45s cubic-bezier(.4,0,.2,1);
}

.plugin-details-inner {
  padding-top: 18px;
}

.plugin-card.open {
  border-color: rgba(60,229,143,.45);
  background: var(--panel-strong);
}

.origin-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  margin: 18px 0;
}

.origin-pill {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 12px 13px;
}

.origin-pill-head {
  display: grid;
  grid-template-columns: 78px 1fr;
  gap: 12px;
  align-items: center;
}

.origin-pill-art,
.origin-pill-emoji {
  width: 78px;
  height: 78px;
}

.origin-pill-art {
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 10px 24px rgba(0,0,0,.22));
}

.origin-pill-emoji {
  display: grid;
  place-items: center;
  font-size: 34px;
}

.origin-pill-copy {
  min-width: 0;
}

.origin-pill strong {
  display: block;
  font-size: 14.5px;
  margin-bottom: 4px;
}

.origin-pill span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 680px) {
  .origin-list { grid-template-columns: 1fr; }
  .origin-pill-head {
    grid-template-columns: 66px 1fr;
    gap: 10px;
  }
  .origin-pill-art,
  .origin-pill-emoji {
    width: 66px;
    height: 66px;
  }
}


/* ---------- Origin Detail / Gräber ---------- */
.origin-item {
  min-width: 0;
}

.origin-item.has-details.open {
  grid-column: 1 / -1;
}

.origin-button {
  width: 100%;
  display: block;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.origin-button:hover {
  transform: translateY(-2px);
  border-color: rgba(60,229,143,.4);
  background: rgba(60,229,143,.07);
  box-shadow: 0 16px 40px rgba(0,0,0,.16);
}

.origin-button em {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 9px;
  border-radius: 999px;
  border: 1px solid rgba(60,229,143,.28);
  background: rgba(60,229,143,.08);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.origin-item.open .origin-button {
  border-color: rgba(60,229,143,.52);
  background: linear-gradient(135deg, rgba(60,229,143,.12), rgba(138,92,246,.08));
}

.origin-detail {
  max-height: 0;
  overflow: hidden;
  transition: max-height .5s cubic-bezier(.4,0,.2,1);
}

.origin-detail-inner {
  margin-top: 12px;
  padding: 22px;
  border: 1px solid rgba(60,229,143,.22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(60,229,143,.16), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(138,92,246,.14), transparent 32%),
    rgba(255,255,255,.035);
}

.origin-detail-hero {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.origin-mini {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.origin-detail h4 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.origin-detail h5 {
  font-size: 18px;
  margin-bottom: 12px;
}

.origin-detail p {
  color: var(--muted);
  line-height: 1.65;
}

.origin-rank-card {
  min-width: 160px;
  padding: 16px;
  border: 1px solid rgba(60,229,143,.25);
  border-radius: 18px;
  background: rgba(0,0,0,.18);
}

.origin-rank-card strong,
.gui-preview strong {
  display: block;
  color: var(--text);
  font-size: 18px;
}

.origin-rank-card span,
.gui-preview span,
.gui-preview em {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.origin-detail-section {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(255,255,255,.08);
}

.origin-stat-grid,
.skill-path-grid,
.skill-card-list,
.two-col-detail {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.origin-stat-grid article,
.skill-path,
.skill-card-list article,
.two-col-detail article,
.origin-ability-card,
.gui-preview {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 16px;
  background: rgba(0,0,0,.16);
}

.origin-stat-grid strong,
.skill-path strong,
.skill-card-list strong,
.origin-ability-card strong,
.two-col-detail h5 {
  display: block;
  margin-bottom: 6px;
  color: var(--text);
}

.origin-stat-grid span,
.skill-path span,
.skill-card-list span,
.origin-ability-card span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.origin-checklist {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
}

.origin-checklist li::marker {
  color: var(--emerald);
}

.origin-table-wrap {
  overflow-x: auto;
  border-radius: 16px;
  border: 1px solid rgba(255,255,255,.09);
  background: rgba(0,0,0,.14);
}

.origin-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 520px;
}

.origin-table th,
.origin-table td {
  padding: 10px 12px;
  border-bottom: 1px solid rgba(255,255,255,.07);
  text-align: left;
  font-size: 13.5px;
}

.origin-table th {
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.warning-box,
.ultimate-box {
  padding: 16px;
  border-radius: 18px;
  border: 1px solid rgba(255,195,79,.25);
  background: rgba(255,195,79,.06);
}

.ultimate-box {
  border-color: rgba(138,92,246,.35);
  background: linear-gradient(135deg, rgba(138,92,246,.12), rgba(60,229,143,.06));
}

.level-flow,
.title-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.level-flow span,
.title-row span {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(255,255,255,.035);
  color: var(--muted);
  font-size: 12.5px;
}

.level-flow strong {
  color: var(--text);
  font-family: var(--mono);
}

.skill-path.green { border-color: rgba(60,229,143,.25); }
.skill-path.blue { border-color: rgba(96,165,250,.25); }
.skill-path.purple { border-color: rgba(168,85,247,.28); }

.origin-ability-card code,
.ultimate-box code {
  border: 1px solid rgba(255,255,255,.11);
  border-radius: 8px;
  background: rgba(255,255,255,.05);
  padding: 2px 6px;
}

/* ============================================================
   EPISCHER SKILLTREE  (gilt automatisch für ALLE Origins)
   ============================================================ */

/* --- Branch-Übersicht: 3 leuchtende Pfad-Karten --- */
.skill-path-grid,
.path-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 6px;
}

.skill-path,
.path-grid > article {
  --bc: var(--emerald);
  position: relative;
  overflow: hidden;
  padding: 22px 16px 18px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 18px;
  background:
    radial-gradient(130% 90% at 50% -10%, color-mix(in srgb, var(--bc) 17%, transparent), transparent 62%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.24));
  box-shadow: inset 0 1px 0 rgba(255,255,255,.05);
  transition: transform .28s cubic-bezier(.2,.8,.2,1), border-color .28s ease, box-shadow .28s ease;
}

/* leuchtender Akzent-Balken oben */
.skill-path::before,
.path-grid > article::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--bc), transparent);
  box-shadow: 0 0 16px color-mix(in srgb, var(--bc) 55%, transparent);
  opacity: .85;
  transition: opacity .28s ease, filter .28s ease;
}

/* Glanz-Sweep beim Hover */
.skill-path::after,
.path-grid > article::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 35%, rgba(255,255,255,.10) 50%, transparent 65%);
  transform: translateX(-130%);
  pointer-events: none;
}

.skill-path:hover,
.path-grid > article:hover {
  transform: translateY(-5px);
  border-color: var(--bc);
  box-shadow: 0 16px 40px rgba(0,0,0,.4), 0 0 30px color-mix(in srgb, var(--bc) 50%, transparent);
}

.skill-path:hover::before,
.path-grid > article:hover::before { opacity: 1; filter: brightness(1.25); }

.skill-path:hover::after,
.path-grid > article:hover::after { animation: skillSheen .9s ease; }

/* Branch-Titel (leuchtend, größer) */
.skill-path strong,
.path-grid > article strong {
  display: block;
  margin-bottom: 7px;
  font-size: 16px;
  color: var(--bc);
  text-shadow: 0 0 14px color-mix(in srgb, var(--bc) 55%, transparent);
}

.skill-path span,
.path-grid > article span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* Branch-Farben (Default, ohne Origin-Thema) */
.skill-path.green,
.path-grid > article:nth-child(1) { --bc:#3ce58f; }
.skill-path.blue,
.path-grid > article:nth-child(2) { --bc:#5fd4ff; }
.skill-path.purple,
.path-grid > article:nth-child(3) { --bc:#b794ff; }
.skill-path.red    { --bc:#ff8a9c; }
.skill-path.orange,
.path-grid > article:nth-child(4) { --bc:#ffb15e; }

/* --- Skill-Nodes: leuchtende Kette statt loser Boxen --- */
.skill-card-list {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding-left: 30px;
}

/* glühende Rückgrat-Linie */
.skill-card-list::before {
  content: "";
  position: absolute;
  left: 11px; top: 10px; bottom: 10px;
  width: 2px;
  background: linear-gradient(180deg, transparent,
      color-mix(in srgb, var(--th, var(--emerald)) 60%, transparent) 12%,
      color-mix(in srgb, var(--th2, var(--aqua)) 50%, transparent) 88%, transparent);
  box-shadow: 0 0 10px color-mix(in srgb, var(--th, var(--emerald)) 35%, transparent);
}

.skill-card-list article {
  position: relative;
  padding: 14px 16px;
  border: 1px solid rgba(255,255,255,.09);
  border-left: 2px solid color-mix(in srgb, var(--th, var(--emerald)) 30%, transparent);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.18));
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease, background .22s ease;
}

/* Node-Punkt auf dem Rückgrat */
.skill-card-list article::before {
  content: "";
  position: absolute;
  left: -24px; top: 50%;
  width: 12px; height: 12px;
  transform: translateY(-50%);
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #ffffff, var(--th, var(--emerald)) 58%, color-mix(in srgb, var(--th, var(--emerald)) 45%, #000));
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--th, var(--emerald)) 12%, transparent), 0 0 14px color-mix(in srgb, var(--th, var(--emerald)) 55%, transparent);
  transition: transform .22s ease, box-shadow .22s ease;
}

.skill-card-list article:hover {
  transform: translateX(4px);
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 40%, transparent);
  border-left-color: var(--th, var(--emerald));
  background: linear-gradient(180deg, color-mix(in srgb, var(--th, var(--emerald)) 12%, transparent), rgba(0,0,0,.2));
  box-shadow: 0 10px 26px rgba(0,0,0,.32), 0 0 22px color-mix(in srgb, var(--th, var(--emerald)) 20%, transparent);
}

.skill-card-list article:hover::before {
  transform: translateY(-50%) scale(1.35);
  box-shadow: 0 0 0 5px color-mix(in srgb, var(--th, var(--emerald)) 16%, transparent), 0 0 20px color-mix(in srgb, var(--th, var(--emerald)) 80%, transparent);
}

.skill-card-list strong {
  display: block;
  margin-bottom: 5px;
  color: var(--text);
}

.skill-card-list span {
  display: block;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
}

/* --- Sektion-Überschriften mit leuchtendem Akzent --- */
.origin-detail-section > h5 {
  position: relative;
  padding-left: 14px;
}

.origin-detail-section > h5::before {
  content: "";
  position: absolute;
  left: 0; top: .18em; bottom: .18em;
  width: 4px;
  border-radius: 4px;
  background: linear-gradient(180deg, var(--th, var(--emerald)), var(--th2, var(--aqua)));
  box-shadow: 0 0 12px color-mix(in srgb, var(--th, var(--emerald)) 55%, transparent);
}

/* --- Aktive Fähigkeit: hervorgehobene, glühende Karte (Akzentfarbe) --- */
.origin-ability-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--th2, var(--aqua)) 38%, transparent);
  background:
    radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--th2, var(--aqua)) 18%, transparent), transparent 56%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.26));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--th2, var(--aqua)) 10%, transparent), 0 12px 32px rgba(0,0,0,.3), 0 0 26px color-mix(in srgb, var(--th2, var(--aqua)) 14%, transparent);
}

.origin-detail-section > .origin-ability-card { margin-bottom: 12px; }

.origin-ability-card strong {
  font-size: 16px;
  color: color-mix(in srgb, var(--th2, var(--aqua)) 70%, #ffffff);
  text-shadow: 0 0 14px color-mix(in srgb, var(--th2, var(--aqua)) 45%, transparent);
}

.origin-ability-card code {
  color: color-mix(in srgb, var(--th2, var(--aqua)) 55%, #ffffff);
}

/* --- Ultimate: epische, pulsierende Box (Origin-Farbe) --- */
.ultimate-box {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 45%, transparent);
  background:
    radial-gradient(140% 100% at 100% 0%, color-mix(in srgb, var(--th, var(--emerald)) 24%, transparent), transparent 56%),
    linear-gradient(135deg, color-mix(in srgb, var(--th, var(--emerald)) 16%, transparent), color-mix(in srgb, var(--th2, var(--aqua)) 7%, transparent));
  animation: ultPulse 4.5s ease-in-out infinite;
}

.ultimate-box h5 {
  font-size: 20px;
  color: color-mix(in srgb, var(--th, var(--emerald)) 35%, #ffffff);
  text-shadow: 0 0 18px color-mix(in srgb, var(--th, var(--emerald)) 55%, transparent);
}

@keyframes skillSheen {
  0%   { transform: translateX(-130%); }
  100% { transform: translateX(130%); }
}

@keyframes ultPulse {
  0%, 100% { box-shadow: inset 0 0 30px color-mix(in srgb, var(--th, var(--emerald)) 10%, transparent), 0 0 24px color-mix(in srgb, var(--th, var(--emerald)) 10%, transparent); }
  50%      { box-shadow: inset 0 0 46px color-mix(in srgb, var(--th, var(--emerald)) 20%, transparent), 0 0 46px color-mix(in srgb, var(--th, var(--emerald)) 26%, transparent); }
}

/* ============================================================
   ORIGIN-FARBTHEMEN  (jede Klasse bekommt ihre eigene Farbe)
   ============================================================ */
.origin-modal-card { --th: var(--emerald); --th2: var(--aqua); }

.origin-modal-card[data-origin-theme="graeber"]       { --th:#a6b0bd; --th2:#ffc66b; } /* Stein-Grau + Erz-Amber */
.origin-modal-card[data-origin-theme="rabauke"]        { --th:#ff9a4d; --th2:#ff5d5d; } /* Kampf-Orange + Rot */
.origin-modal-card[data-origin-theme="nachtwaechter"]  { --th:#b794ff; --th2:#6ea8ff; } /* Ender-Violett + Indigo */
.origin-modal-card[data-origin-theme="waldlaeufer"]    { --th:#5fe08a; --th2:#bce04f; } /* Wald-Grün + Limette */
.origin-modal-card[data-origin-theme="alchemist"]      { --th:#ff7ad1; --th2:#9be15f; } /* Trank-Magenta + Gift-Grün */
.origin-modal-card[data-origin-theme="hoellenkind"]    { --th:#ff6a3d; --th2:#ffb347; } /* Feuer-Rot + Glut */
.origin-modal-card[data-origin-theme="untoter"]        { --th:#8bd450; --th2:#b06bff; } /* Verwesungs-Grün + Fluch-Violett */
.origin-modal-card[data-origin-theme="wasserman"]      { --th:#4cb8ff; --th2:#56e0cf; } /* Ozean-Blau + Türkis */
.origin-modal-card[data-origin-theme="vampir"]         { --th:#ff4d5e; --th2:#9c1f33; } /* Blut-Rot + Dunkelrot */
.origin-modal-card[data-origin-theme="yeti"]           { --th:#a9e6ff; --th2:#8fb6ff; } /* Eis-Cyan + Frost-Blau */
.origin-modal-card[data-origin-theme="origin-levels"]  { --th:#3ce58f; --th2:#5fd4ff; } /* neutral */

/* getöntes Modal & Profil statt fixem Grün/Lila */
.origin-modal-card[data-origin-theme] {
  border-color: color-mix(in srgb, var(--th) 40%, transparent);
  background:
    radial-gradient(circle at 15% 0%, color-mix(in srgb, var(--th) 16%, transparent), transparent 38%),
    radial-gradient(circle at 85% 12%, color-mix(in srgb, var(--th2) 14%, transparent), transparent 34%),
    rgba(6, 13, 18, .96);
}

.origin-modal-card[data-origin-theme] .origin-detail-inner-modal {
  border-color: color-mix(in srgb, var(--th) 26%, transparent);
  background:
    radial-gradient(circle at 18% 0%, color-mix(in srgb, var(--th) 16%, transparent), transparent 34%),
    radial-gradient(circle at 82% 18%, color-mix(in srgb, var(--th2) 13%, transparent), transparent 32%),
    rgba(255,255,255,.035);
}

/* Branch-Karten in Origin-Farben tönen (Pfad 1 = Primär, 2 = Akzent, 3 = Mix) */
.origin-modal-card[data-origin-theme] .skill-path:nth-child(1),
.origin-modal-card[data-origin-theme] .path-grid > article:nth-child(1) { --bc: var(--th); }
.origin-modal-card[data-origin-theme] .skill-path:nth-child(2),
.origin-modal-card[data-origin-theme] .path-grid > article:nth-child(2) { --bc: var(--th2); }
.origin-modal-card[data-origin-theme] .skill-path:nth-child(3),
.origin-modal-card[data-origin-theme] .path-grid > article:nth-child(3) { --bc: color-mix(in srgb, var(--th) 55%, var(--th2)); }

/* Origin-Modal-Kicker & Titel leicht in Themenfarbe */
.origin-modal-card[data-origin-theme] .origin-mini { color: var(--th); }

@media (max-width: 760px) {
  .origin-detail-hero,
  .origin-stat-grid,
  .skill-path-grid,
  .path-grid,
  .skill-card-list,
  .two-col-detail {
    grid-template-columns: 1fr;
  }

  .origin-rank-card {
    min-width: 0;
  }

  .origin-detail-inner {
    padding: 16px;
  }
}


/* ---------- Scrollbares Origin-Profil Modal ---------- */
body.origin-modal-open {
  overflow: hidden;
}

.origin-modal {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 88px 18px 24px;
  opacity: 0;
  pointer-events: none;
  transition: opacity .25s ease;
}

.origin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.origin-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(1, 5, 8, .76);
  backdrop-filter: blur(18px);
}

.origin-modal-card {
  position: relative;
  width: min(1120px, 100%);
  max-height: calc(100vh - 112px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid rgba(60,229,143,.24);
  border-radius: 28px;
  background:
    radial-gradient(circle at 15% 0%, rgba(60,229,143,.16), transparent 36%),
    radial-gradient(circle at 85% 12%, rgba(138,92,246,.14), transparent 32%),
    rgba(6, 13, 18, .96);
  box-shadow: 0 34px 110px rgba(0,0,0,.55);
  transform: translateY(16px) scale(.985);
  transition: transform .25s ease;
}

.origin-modal.open .origin-modal-card {
  transform: translateY(0) scale(1);
}

.origin-modal-top {
  flex: 0 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 22px 24px;
  border-bottom: 1px solid rgba(255,255,255,.08);
  background: rgba(0,0,0,.18);
}

.origin-modal-titlewrap {
  display: flex;
  align-items: center;
  gap: 18px;
  min-width: 0;
}

.origin-modal-art {
  flex: 0 0 auto;
  width: 92px;
  height: 92px;
  object-fit: contain;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  filter: drop-shadow(0 14px 32px rgba(0,0,0,.22));
}

.origin-modal-kicker {
  display: inline-flex;
  margin-bottom: 6px;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.origin-modal-top h3 {
  margin: 0 0 5px;
  font-size: clamp(24px, 4vw, 38px);
}

.origin-modal-top p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.origin-modal-close {
  flex: 0 0 auto;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 16px;
  background: rgba(255,255,255,.055);
  color: var(--text);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, background .2s ease;
}

.origin-modal-close:hover,
.origin-modal-close:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(60,229,143,.45);
  background: rgba(60,229,143,.09);
  outline: none;
}

.origin-modal-scroll {
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 18px;
  scrollbar-width: thin;
  scrollbar-color: rgba(60,229,143,.55) rgba(255,255,255,.08);
}

.origin-modal-scroll::-webkit-scrollbar {
  width: 10px;
}

.origin-modal-scroll::-webkit-scrollbar-track {
  background: rgba(255,255,255,.07);
  border-radius: 999px;
}

.origin-modal-scroll::-webkit-scrollbar-thumb {
  background: rgba(60,229,143,.55);
  border-radius: 999px;
}

.origin-detail-inner-modal {
  margin-top: 0;
  border-radius: 22px;
  background:
    radial-gradient(circle at 18% 0%, rgba(60,229,143,.12), transparent 34%),
    radial-gradient(circle at 82% 18%, rgba(138,92,246,.1), transparent 32%),
    rgba(255,255,255,.025);
}

@media (max-width: 760px) {
  .origin-modal {
    padding: 74px 10px 12px;
  }

  .origin-modal-card {
    max-height: calc(100vh - 86px);
    border-radius: 22px;
  }

  .origin-modal-top {
    padding: 16px;
  }

  .origin-modal-scroll {
    padding: 10px;
  }

  .origin-modal-close {
    width: 40px;
    height: 40px;
    border-radius: 14px;
  }
}




/* ---------- Werben-Leiste & Spieler-Werbung ---------- */
.referral-top-strip {
  position: fixed;
  top: 78px;
  left: 0;
  right: 0;
  z-index: 88;
  padding: 0 0 10px;
  pointer-events: none;
}

.referral-top-inner {
  width: min(1200px, 94%);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(230px, .8fr) minmax(360px, 1.15fr);
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(60,229,143,.18);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(60,229,143,.12), rgba(95,212,255,.06) 46%, rgba(255,198,107,.07));
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  backdrop-filter: blur(18px);
  padding: 10px;
  pointer-events: auto;
}

.referral-top-main {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 0;
  background: rgba(0,0,0,.16);
  color: var(--text);
  border-radius: 17px;
  padding: 10px 12px;
  text-align: left;
  transition: transform .25s ease, background .25s ease, border-color .25s ease;
}

.referral-top-main:hover {
  transform: translateY(-1px);
  background: rgba(60,229,143,.10);
}

.referral-top-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 30% 20%, rgba(255,198,107,.28), rgba(60,229,143,.10));
  font-size: 21px;
  animation: rewardPulse 2.8s ease-in-out infinite;
}

@keyframes rewardPulse {
  0%, 100% { transform: scale(1) rotate(-2deg); }
  50% { transform: scale(1.08) rotate(2deg); }
}

.referral-top-main strong {
  display: block;
  font-family: var(--display);
  font-size: 15px;
}

.referral-top-main small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.referral-top-login,
.referral-top-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 9px;
}

.referral-top-login label,
.referral-page-login label,
.referral-submit-card label {
  display: flex;
  flex-direction: column;
  gap: 5px;
  color: #cbd5df;
  font-size: 12px;
  font-weight: 800;
}

.referral-top-login input,
.referral-page-login input,
.referral-submit-card input {
  min-width: 135px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,.24);
  color: var(--text);
  outline: none;
  padding: 10px 11px;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.referral-top-login input:focus,
.referral-page-login input:focus,
.referral-submit-card input:focus {
  border-color: rgba(60,229,143,.55);
  box-shadow: 0 0 0 4px rgba(60,229,143,.09);
  background: rgba(0,0,0,.32);
}

.referral-top-login button {
  align-self: end;
  border: 0;
  border-radius: 13px;
  padding: 10px 15px;
  background: linear-gradient(135deg, #b8ffd9, var(--emerald));
  color: #06281a;
  font-weight: 900;
  box-shadow: 0 8px 26px rgba(60,229,143,.24);
}

.referral-top-status[hidden],
.referral-dashboard[hidden],
.referral-login-needed[hidden] {
  display: none;
}

.referral-top-status strong {
  color: #eafff3;
  font-family: var(--mono);
  font-size: 13px;
}

.referral-mini-progress {
  min-width: 170px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.referral-mini-progress span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.referral-mini-progress div {
  height: 8px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(0,0,0,.28);
  overflow: hidden;
}

.referral-mini-progress i {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--aqua));
  box-shadow: 0 0 22px rgba(60,229,143,.45);
  transition: width .7s cubic-bezier(.2,.8,.2,1);
}


.referral-hero {
  position: relative;
}

.referral-hero::after {
  content: "";
  position: absolute;
  right: 6%;
  top: 20%;
  width: 260px;
  height: 260px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255,198,107,.16), transparent 68%);
  filter: blur(8px);
  pointer-events: none;
}

.referral-shell {
  margin: 44px 0 96px;
}

.referral-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.032));
  box-shadow: var(--shadow);
  padding: 30px;
}

.referral-login-needed {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr);
  gap: 18px 24px;
  align-items: start;
}

.referral-login-needed h2,
.referral-dashboard-head h2 {
  margin: 6px 0 8px;
}

.referral-login-needed p,
.referral-dashboard-head p,
.referral-progress-card p {
  color: var(--muted);
  margin: 0;
}

.referral-card-icon {
  grid-row: span 3;
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  border: 1px solid rgba(255,198,107,.28);
  background: rgba(255,198,107,.08);
  font-size: 32px;
}

.referral-page-login {
  grid-column: 2;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin-top: 10px;
}

.referral-dashboard-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: stretch;
  margin-bottom: 18px;
}

.referral-reward-card {
  min-width: 220px;
  border: 1px solid rgba(255,198,107,.28);
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(255,198,107,.11), rgba(255,255,255,.03));
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  box-shadow: 0 16px 50px rgba(0,0,0,.22);
}

.referral-reward-card span,
.referral-reward-card small {
  color: var(--muted);
  font-weight: 800;
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.referral-reward-card strong {
  font-family: var(--display);
  color: var(--amber);
  font-size: 36px;
  line-height: 1.1;
  margin: 5px 0;
}

.referral-stats-row {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.referral-stats-row article {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: rgba(255,255,255,.04);
  padding: 18px;
}

.referral-stats-row strong {
  display: block;
  font-family: var(--display);
  color: var(--emerald);
  font-size: 30px;
}

.referral-stats-row span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.referral-progress-card {
  border: 1px solid rgba(60,229,143,.20);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(60,229,143,.09), rgba(95,212,255,.045));
  padding: 22px;
  margin-bottom: 18px;
}

.referral-progress-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.referral-progress-top strong {
  font-family: var(--display);
}

.referral-progress-top span {
  color: var(--emerald);
  font-family: var(--mono);
  font-weight: 900;
}

.referral-progress-track {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  height: 28px;
  border-radius: 999px;
  background: rgba(0,0,0,.26);
  border: 1px solid rgba(255,255,255,.10);
  overflow: hidden;
  margin-bottom: 12px;
}

.referral-progress-track i {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--aqua), var(--amber));
  box-shadow: 0 0 34px rgba(60,229,143,.35);
  transition: width .8s cubic-bezier(.2,.8,.2,1);
}

.referral-progress-track b {
  position: relative;
  z-index: 1;
  border-right: 1px solid rgba(255,255,255,.16);
}

.referral-progress-track b:last-child {
  border-right: 0;
}

.referral-content-grid {
  display: grid;
  grid-template-columns: minmax(0, .95fr) minmax(360px, 1.05fr);
  gap: 18px;
  align-items: start;
}

.referral-submit-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.referral-history-card {
  min-height: 320px;
}

.referral-history-list,
.referral-review-list,
.staff-player-account-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 14px;
}

.referral-history-item,
.referral-review-item,
.staff-account-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(0,0,0,.15);
  padding: 14px;
}

.referral-history-top,
.referral-review-top,
.staff-account-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.referral-history-top strong,
.referral-review-top strong,
.staff-account-top strong {
  word-break: break-word;
}

.ref-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid var(--line);
  padding: 5px 9px;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .07em;
  text-transform: uppercase;
  white-space: nowrap;
}

.ref-status.pending { color: var(--amber); background: rgba(255,198,107,.08); border-color: rgba(255,198,107,.26); }
.ref-status.accepted { color: var(--emerald); background: rgba(60,229,143,.08); border-color: rgba(60,229,143,.30); }
.ref-status.rejected { color: var(--red); background: rgba(255,93,122,.08); border-color: rgba(255,93,122,.30); }

.referral-history-item p,
.referral-review-item p,
.staff-account-item p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.referral-review-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  gap: 8px;
  margin-top: 12px;
}

.referral-review-actions input {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  padding: 10px 11px;
}

.staff-referral-section {
  margin-top: 40px;
}

.compact-head {
  margin-bottom: 18px;
}

.compact-head p {
  color: var(--muted);
  margin: 8px 0 0;
}

.staff-referral-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(330px, .8fr);
  gap: 18px;
  align-items: start;
  margin-bottom: 18px;
}

.staff-account-list-card,
.referral-review-card {
  position: relative;
}

.account-password {
  display: inline-flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12.5px;
}

.account-password code {
  color: var(--amber);
}

.empty-referrals {
  border: 1px dashed rgba(255,255,255,.15);
  border-radius: 18px;
  padding: 18px;
  color: var(--muted);
  text-align: center;
  background: rgba(255,255,255,.025);
}

@media (max-width: 1020px) {
  .referral-top-inner {
    grid-template-columns: 1fr;
  }

  .referral-top-login,
  .referral-top-status {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .referral-content-grid,
  .staff-referral-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .referral-top-login label {
    flex: 1 1 130px;
  }

  .referral-top-login button {
    flex: 1 1 100%;
  }

  .referral-login-needed,
  .referral-page-login,
  .referral-dashboard-head,
  .referral-reward-actions,
  .referral-review-actions {
    grid-template-columns: 1fr;
  }

  .referral-login-needed {
    display: block;
  }

  .referral-card-icon {
    margin-bottom: 16px;
  }

  .referral-page-login {
    display: grid;
  }

  .referral-stats-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-reward-card {
    min-width: 0;
  }
}

@media (max-width: 640px) {
  .referral-card {
    padding: 22px;
  }

  .referral-stats-row {
    grid-template-columns: 1fr;
  }
}

/* ---------- Staffbereich ---------- */
.staff-nav {
  color: #dfffee !important;
}

.nav-dock .staff-nav {
  border: 1px solid rgba(60,229,143,.25);
  background: rgba(60,229,143,.065);
}

.staff-hero {
  position: relative;
}

.staff-hero::after {
  content: "";
  position: absolute;
  right: 5%;
  top: 34%;
  width: 220px;
  height: 220px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(60,229,143,.18), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

.staff-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: 18px;
  margin: 44px 0 96px;
}

.staff-card,
.staff-preview-card {
  border: 1px solid var(--line);
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255,255,255,.065), rgba(255,255,255,.032));
  box-shadow: var(--shadow);
}

.staff-card { padding: 30px; }

.staff-login-card h2,
.staff-dash-head h2 {
  margin: 6px 0 8px;
}

.staff-login-card > p,
.staff-dash-head p,
.form-section-title p {
  color: var(--muted);
  margin: 0;
}

.staff-form {
  display: flex;
  flex-direction: column;
  gap: 15px;
  margin-top: 24px;
}

.staff-form label,
.staff-form-card label {
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: #cbd5df;
  font-size: 13.5px;
  font-weight: 700;
}

.staff-form input,
.staff-form-card input,
.staff-form-card select,
.staff-form-card textarea,
.case-search input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(0,0,0,.22);
  color: var(--text);
  outline: none;
  padding: 13px 14px;
  font: inherit;
  transition: border-color .25s, box-shadow .25s, background .25s;
}

.staff-form input:focus,
.staff-form-card input:focus,
.staff-form-card select:focus,
.staff-form-card textarea:focus,
.case-search input:focus {
  border-color: rgba(60,229,143,.55);
  box-shadow: 0 0 0 4px rgba(60,229,143,.09);
  background: rgba(0,0,0,.3);
}

.staff-form-card textarea {
  resize: vertical;
  min-height: 120px;
}

.staff-form-card select option {
  color: #061016;
}

.staff-submit {
  width: fit-content;
  border: 0;
  cursor: pointer;
}

.staff-hint {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: center;
  margin-top: 20px;
  padding: 14px;
  border: 1px solid rgba(255,198,107,.25);
  border-radius: 16px;
  background: rgba(255,198,107,.07);
  color: var(--muted);
  font-size: 13.5px;
}

.staff-hint code {
  color: var(--amber);
}

.staff-preview-card {
  padding: 30px;
  position: relative;
  overflow: hidden;
}

.staff-preview-card::before {
  content: "";
  position: absolute;
  inset: -120px -80px auto auto;
  width: 240px;
  height: 240px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(95,212,255,.18), transparent 70%);
}

.preview-orb {
  width: 74px;
  height: 74px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: rgba(60,229,143,.12);
  border: 1px solid rgba(60,229,143,.28);
  font-size: 32px;
  margin-bottom: 22px;
}

.staff-preview-card h3 { margin-bottom: 14px; }
.staff-preview-card ul {
  margin: 0;
  padding-left: 20px;
  color: var(--muted);
  line-height: 1.75;
}

.staff-dashboard {
  margin: 44px 0 96px;
}

.staff-dashboard[hidden] { display: none; }

.staff-dash-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 20px;
  margin-bottom: 20px;
}

.staff-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.staff-actions .ghost-btn {
  min-height: 44px;
  cursor: pointer;
}

.danger-ghost {
  color: #ffdce3;
  border-color: rgba(255,93,122,.35);
}

.danger-ghost:hover {
  border-color: rgba(255,93,122,.7);
  background: rgba(255,93,122,.08);
}

.staff-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(330px, .75fr);
  gap: 18px;
  align-items: start;
}

.staff-form-card {
  display: flex;
  flex-direction: column;
  gap: 17px;
}

.form-section-title {
  display: flex;
  gap: 14px;
  align-items: center;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.form-section-title > span {
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(255,255,255,.05);
  font-size: 21px;
}

.form-section-title h3 {
  margin: 0 0 3px;
}

.split-title {
  margin-top: 8px;
}

.form-grid.two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.case-list-card {
  position: sticky;
  top: 104px;
}

.case-list-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 16px;
}

.case-list-head h3 {
  margin-top: 4px;
}

.case-count {
  min-width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--emerald-soft);
  border: 1px solid rgba(60,229,143,.35);
  color: var(--emerald);
  font-weight: 800;
  font-family: var(--mono);
}

.case-search {
  position: relative;
  margin-bottom: 16px;
}

.case-search span {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  pointer-events: none;
}

.case-search input {
  padding-left: 38px;
}

.case-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-height: 680px;
  overflow: auto;
  padding-right: 4px;
}

.case-item {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255,255,255,.035);
  padding: 15px;
}

.case-item-top {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.case-player {
  min-width: 0;
}

.case-player strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
  word-break: break-word;
}

.case-player span {
  color: var(--muted);
  font-size: 12.5px;
}

.case-badge {
  flex-shrink: 0;
  border: 1px solid rgba(95,212,255,.28);
  background: rgba(95,212,255,.08);
  color: var(--aqua);
  border-radius: 999px;
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
}

.case-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}

.case-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(0,0,0,.16);
  color: #b9c6d2;
  padding: 5px 8px;
  font-size: 12px;
}

.case-note {
  color: var(--muted);
  line-height: 1.45;
  font-size: 13.5px;
  margin: 0 0 12px;
}

.case-evidence {
  color: var(--emerald);
  font-size: 13px;
  word-break: break-word;
  margin-bottom: 10px;
}

.case-delete {
  border: 1px solid rgba(255,93,122,.3);
  background: rgba(255,93,122,.06);
  color: #ffc7d1;
  border-radius: 11px;
  padding: 8px 10px;
  font-weight: 700;
  cursor: pointer;
  transition: background .25s, border-color .25s;
}

.case-delete:hover {
  background: rgba(255,93,122,.12);
  border-color: rgba(255,93,122,.55);
}

.empty-cases {
  border: 1px dashed var(--line);
  border-radius: 18px;
  color: var(--muted);
  padding: 26px 18px;
  text-align: center;
}

@media (max-width: 1020px) {
  .staff-shell,
  .staff-grid {
    grid-template-columns: 1fr;
  }

  .case-list-card {
    position: static;
  }

  .staff-dash-head {
    flex-direction: column;
  }

  .staff-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .staff-card,
  .staff-preview-card {
    padding: 22px;
  }

  .form-grid.two {
    grid-template-columns: 1fr;
  }

  .staff-submit {
    width: 100%;
  }
}

/* ---------- Klickbare Spielerprofile ---------- */
.player-card {
  border: 1px solid var(--line);
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,.052), rgba(255,255,255,.025));
  padding: 16px;
  cursor: pointer;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
}

.player-card:hover,
.player-card.open {
  transform: translateY(-2px);
  border-color: rgba(60,229,143,.38);
  background: linear-gradient(180deg, rgba(60,229,143,.085), rgba(255,255,255,.032));
  box-shadow: 0 18px 50px rgba(0,0,0,.22);
}

.player-card:focus-visible {
  outline: 0;
  border-color: rgba(95,212,255,.65);
  box-shadow: 0 0 0 4px rgba(95,212,255,.12);
}

.player-card-top {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

.player-avatar {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: grid;
  place-items: center;
  border-radius: 16px;
  border: 1px solid rgba(60,229,143,.32);
  background: radial-gradient(circle at 30% 25%, rgba(60,229,143,.28), rgba(60,229,143,.07) 58%, rgba(0,0,0,.25));
  color: #eafff3;
  font-family: var(--mono);
  font-size: 18px;
  font-weight: 900;
}

.player-main {
  min-width: 0;
  flex: 1;
}

.player-main strong {
  display: block;
  font-size: 16px;
  margin-bottom: 3px;
  word-break: break-word;
}

.player-main span {
  color: var(--muted);
  font-size: 12.5px;
}

.player-stat-row,
.profile-quick-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.player-stat-row span,
.profile-quick-stats span {
  border: 1px solid var(--line);
  border-radius: 15px;
  background: rgba(0,0,0,.17);
  padding: 10px 9px;
  text-align: center;
}

.player-stat-row strong,
.profile-quick-stats strong {
  display: block;
  font-family: var(--mono);
  font-size: 18px;
  color: var(--emerald);
}

.player-stat-row small,
.profile-quick-stats small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}

.player-last-rule {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 12px 0;
  color: var(--muted);
  font-size: 12.5px;
}

.player-last-rule strong {
  color: #dfe9f2;
  font-size: 13.5px;
}

.profile-toggle {
  width: 100%;
  border: 1px solid rgba(60,229,143,.28);
  border-radius: 13px;
  background: rgba(60,229,143,.07);
  color: #dfffee;
  padding: 10px 12px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  transition: background .25s, border-color .25s, transform .25s;
}

.profile-toggle:hover {
  background: rgba(60,229,143,.12);
  border-color: rgba(60,229,143,.5);
  transform: translateY(-1px);
}

.player-profile {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line);
  animation: profileDrop .28s ease both;
  cursor: default;
}

@keyframes profileDrop {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.profile-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.profile-summary h4 {
  margin: 4px 0 3px;
  font-size: 20px;
}

.profile-summary p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.profile-warn-big {
  min-width: 86px;
  border: 1px solid rgba(255,198,107,.28);
  border-radius: 18px;
  background: rgba(255,198,107,.07);
  padding: 12px 10px;
  text-align: center;
}

.profile-warn-big strong {
  display: block;
  color: var(--amber);
  font-family: var(--mono);
  font-size: 28px;
  line-height: 1;
}

.profile-warn-big span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.latest-case-box {
  display: flex;
  flex-direction: column;
  gap: 5px;
  border: 1px solid rgba(95,212,255,.22);
  border-radius: 17px;
  background: rgba(95,212,255,.055);
  padding: 13px;
  margin: 12px 0 14px;
}

.latest-case-box strong {
  color: #dff7ff;
  font-size: 13px;
}

.latest-case-box span {
  font-weight: 800;
}

.latest-case-box small {
  color: var(--muted);
}

.violation-history {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.history-entry {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 17px;
  background: rgba(0,0,0,.14);
  padding: 12px;
}

.history-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  background: rgba(255,255,255,.055);
  border: 1px solid var(--line);
}

.history-content {
  min-width: 0;
}

.history-topline {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.history-topline strong {
  font-size: 14px;
  word-break: break-word;
}

.history-topline span {
  flex-shrink: 0;
  color: var(--muted);
  font-size: 12px;
  font-family: var(--mono);
}

.history-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 9px;
}

.history-tags span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255,255,255,.035);
  color: #b9c6d2;
  padding: 5px 7px;
  font-size: 11.5px;
}

.history-content p {
  margin: 0 0 9px;
  color: var(--muted);
  line-height: 1.45;
  font-size: 13px;
  word-break: break-word;
}

.history-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}

.history-footer .case-delete {
  padding: 7px 9px;
  font-size: 12px;
}

@media (max-width: 640px) {
  .profile-summary,
  .history-topline,
  .history-footer {
    flex-direction: column;
  }

  .profile-warn-big {
    width: 100%;
  }
}

/* ---------- Staff-Profil bearbeiten / Regel hinzufügen ---------- */
.profile-management-row,
.inline-actions,
.history-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.profile-management-row {
  margin: 12px 0 14px;
}

.mini-action,
.case-edit {
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 12px;
  background: rgba(255,255,255,.045);
  color: #dfe9f2;
  padding: 9px 11px;
  font: inherit;
  font-size: 12.5px;
  font-weight: 850;
  cursor: pointer;
  transition: transform .22s ease, border-color .22s ease, background .22s ease;
}

.mini-action:hover,
.case-edit:hover {
  transform: translateY(-1px);
  border-color: rgba(95,212,255,.42);
  background: rgba(95,212,255,.08);
}

.mini-action.success {
  border-color: rgba(60,229,143,.35);
  background: rgba(60,229,143,.08);
  color: #ddffec;
}

.mini-action.success:hover {
  border-color: rgba(60,229,143,.58);
  background: rgba(60,229,143,.14);
}

.inline-panel {
  border: 1px solid rgba(95,212,255,.18);
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(95,212,255,.065), rgba(255,255,255,.026));
  padding: 14px;
  margin: 12px 0 14px;
  animation: profileDrop .24s ease both;
}

.inline-panel-head {
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin-bottom: 12px;
}

.inline-panel-head strong {
  color: #edf7ff;
  font-size: 14px;
}

.inline-panel-head small {
  color: var(--muted);
  line-height: 1.35;
}

.inline-form-grid {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.inline-form-grid.two {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.inline-panel label {
  display: flex;
  flex-direction: column;
  gap: 6px;
  color: #dce6ef;
  font-size: 12.5px;
  font-weight: 800;
}

.inline-panel input,
.inline-panel select,
.inline-panel textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(0,0,0,.24);
  color: #f2f7fb;
  padding: 10px 11px;
  font: inherit;
  outline: none;
}

.inline-panel textarea {
  resize: vertical;
  min-height: 92px;
}

.inline-panel select option {
  color: #10161d;
}

.inline-panel input:focus,
.inline-panel select:focus,
.inline-panel textarea:focus {
  border-color: rgba(60,229,143,.55);
  box-shadow: 0 0 0 4px rgba(60,229,143,.09);
}

.compact-case-edit {
  margin: 0;
}

.case-edit {
  padding: 7px 9px;
  font-size: 12px;
}

.history-buttons .case-delete {
  margin: 0;
}

@media (max-width: 640px) {
  .inline-form-grid.two {
    grid-template-columns: 1fr;
  }

  .profile-management-row,
  .inline-actions,
  .history-buttons {
    flex-direction: column;
  }

  .mini-action,
  .case-edit,
  .history-buttons .case-delete {
    width: 100%;
  }
}

/* ---------- Fix: Origin-Profil Inhalt im Modal sichtbar + sauber scrollbar ---------- */
.origin-modal-body {
  min-height: 0;
}

.origin-modal-body > .origin-detail,
.origin-modal .origin-detail-modal {
  max-height: none !important;
  height: auto !important;
  overflow: visible !important;
  transition: none !important;
}

.origin-modal .origin-detail-inner-modal {
  margin-top: 0 !important;
}

.origin-modal .origin-detail-section:first-child {
  margin-top: 0;
}

.origin-modal-scroll {
  -webkit-overflow-scrolling: touch;
}

.origin-modal::after {
  content: "Scrollen für alle Fähigkeiten, Skills und XP-Infos";
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  padding: 7px 12px;
  border: 1px solid rgba(60,229,143,.25);
  border-radius: 999px;
  background: rgba(6,13,18,.82);
  color: rgba(235,255,246,.72);
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
  text-transform: uppercase;
  pointer-events: none;
  opacity: .88;
}

@media (max-width: 760px) {
  .origin-modal::after {
    display: none;
  }
}


/* ---------- Update: Rabauke + universeller Level-Slot ---------- */
.skill-path.red { border-color: rgba(248, 113, 113, .32); }
.skill-path.orange { border-color: rgba(251, 146, 60, .32); }
.origin-pill[data-origin="origin-levels"] em,
.origin-pill[data-origin="rabauke"] em {
  border-color: rgba(251, 146, 60, .28);
  color: #fbbf24;
  background: rgba(251, 146, 60, .08);
}
.origin-pill[data-origin="rabauke"]:hover {
  border-color: rgba(248, 113, 113, .42);
  background: rgba(248, 113, 113, .08);
}
.origin-pill[data-origin="origin-levels"]:hover {
  border-color: rgba(96, 165, 250, .42);
  background: rgba(96, 165, 250, .08);
}


/* ---------- Update: Tiefengeborener + globale 50%-Skillregel ---------- */
.highlight-box {
  border-color: rgba(96, 165, 250, .30);
  background: linear-gradient(135deg, rgba(96, 165, 250, .10), rgba(60, 229, 143, .045));
}
.origin-pill[data-origin="wasserman"] em {
  border-color: rgba(56, 189, 248, .30);
  color: #7dd3fc;
  background: rgba(56, 189, 248, .09);
}
.origin-pill[data-origin="wasserman"]:hover {
  border-color: rgba(56, 189, 248, .46);
  background: rgba(56, 189, 248, .09);
}
.water-preview {
  border-color: rgba(56, 189, 248, .30);
  background: linear-gradient(135deg, rgba(56, 189, 248, .08), rgba(255,255,255,.03));
}
.compact-table {
  margin-bottom: 12px;
}


/* Totenwächter-Origin Zusatzlook */
.undead-hero {
  background:
    radial-gradient(circle at 20% 0%, rgba(163, 76, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(24, 11, 34, 0.95), rgba(8, 10, 13, 0.92));
  border-color: rgba(180, 116, 255, 0.35);
}


/* ---------- ServerShop Detail Card ---------- */
.plugin-rich {
  margin: 16px 0 18px;
}

.servershop-detail {
  display: grid;
  gap: 14px;
}

.servershop-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(60,229,143,.26);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(60,229,143,.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.system-mini {
  display: inline-flex;
  margin-bottom: 8px;
  padding: 5px 10px;
  border-radius: 999px;
  border: 1px solid rgba(60,229,143,.24);
  background: rgba(60,229,143,.08);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.servershop-mini {
  border-color: rgba(60,229,143,.28);
  background: rgba(60,229,143,.09);
  color: var(--emerald);
}

.servershop-hero-card h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.servershop-hero-card p,
.servershop-flow p,
.servershop-warning p {
  margin: 0;
}

.servershop-badge {
  min-width: 140px;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(60,229,143,.32);
  background: rgba(60,229,143,.09);
  box-shadow: inset 0 0 24px rgba(60,229,143,.08);
}

.servershop-badge strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--emerald);
}

.servershop-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.servershop-step-grid,
.servershop-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.servershop-step-grid article,
.servershop-benefits article,
.servershop-flow,
.servershop-warning {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.servershop-step-grid strong,
.servershop-step-grid span,
.servershop-benefits strong,
.servershop-benefits span {
  display: block;
}

.servershop-step-grid strong,
.servershop-benefits strong {
  margin-bottom: 7px;
  color: var(--text);
}

.servershop-step-grid span,
.servershop-benefits span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.servershop-flow h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.servershop-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.servershop-row:first-of-type {
  margin-top: 12px;
}

.servershop-row span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(60,229,143,.30);
  background: rgba(60,229,143,.10);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.servershop-row strong {
  font-size: 14px;
}

.servershop-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12.5px;
  text-align: right;
}

.servershop-warning {
  border-color: rgba(255,214,102,.24);
  background: linear-gradient(135deg, rgba(255,214,102,.08), rgba(255,255,255,.03));
}

.servershop-warning strong {
  display: block;
  margin-bottom: 7px;
  color: #ffd666;
}

@media (max-width: 760px) {
  .servershop-hero-card,
  .servershop-step-grid,
  .servershop-benefits {
    grid-template-columns: 1fr;
  }

  .servershop-badge {
    text-align: left;
  }

  .servershop-row {
    grid-template-columns: auto 1fr;
  }

  .servershop-row em {
    grid-column: 2;
    text-align: left;
  }
}


/* ---------- Münzen-System / Währung Detail Card ---------- */
.economy-detail {
  display: grid;
  gap: 14px;
}

.economy-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(255,214,102,.26);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(255,214,102,.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.economy-mini {
  border-color: rgba(255,214,102,.26);
  background: rgba(255,214,102,.09);
  color: #ffd666;
}

.economy-hero-card h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.economy-hero-card p,
.economy-warning p,
.economy-flow p {
  margin: 0;
}

.economy-badge {
  min-width: 132px;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(255,214,102,.32);
  background: rgba(255,214,102,.09);
  box-shadow: inset 0 0 24px rgba(255,214,102,.08);
}

.economy-badge strong {
  display: block;
  font-family: var(--mono);
  font-size: 28px;
  color: #ffd666;
}

.economy-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.economy-step-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.economy-step-grid article,
.economy-flow,
.economy-warning {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.economy-step-grid strong,
.economy-step-grid span {
  display: block;
}

.economy-step-grid strong {
  margin-bottom: 7px;
  color: var(--text);
}

.economy-step-grid span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.economy-flow h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.money-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.money-row:first-of-type {
  margin-top: 12px;
}

.money-row span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(255,214,102,.28);
  background: rgba(255,214,102,.09);
  color: #ffd666;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.money-row strong {
  font-size: 14px;
}

.money-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12.5px;
  text-align: right;
}

.economy-warning {
  border-color: rgba(255,214,102,.24);
  background: linear-gradient(135deg, rgba(255,214,102,.08), rgba(255,255,255,.03));
}

.economy-warning strong {
  display: block;
  margin-bottom: 7px;
  color: #ffd666;
}


.economy-flow code,
.economy-step-grid code,
.economy-warning code {
  font-family: var(--mono);
  color: #ffd666;
  background: rgba(255,214,102,.08);
  border: 1px solid rgba(255,214,102,.16);
  border-radius: 7px;
  padding: 1px 5px;
}

.economy-flow .money-row span {
  min-width: 26px;
  width: auto;
  padding: 0 7px;
}

.economy-flow .money-row em {
  max-width: 360px;
}

@media (max-width: 760px) {
  .economy-hero-card,
  .economy-step-grid {
    grid-template-columns: 1fr;
  }

  .economy-badge {
    text-align: left;
  }

  .money-row {
    grid-template-columns: auto 1fr;
  }

  .money-row em {
    grid-column: 2;
    text-align: left;
  }
}

/* ---------- Weltgrenze Detail Card ---------- */
.border-detail {
  display: grid;
  gap: 14px;
}

.border-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(95, 212, 255, .26);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(95, 212, 255, .18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.border-mini {
  border-color: rgba(95, 212, 255, .26);
  background: rgba(95, 212, 255, .09);
  color: var(--aqua);
}

.border-hero-card h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.border-hero-card p,
.border-warning p {
  margin: 0;
}

.border-badge {
  min-width: 140px;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(95, 212, 255, .32);
  background: rgba(95, 212, 255, .09);
  box-shadow: inset 0 0 24px rgba(95, 212, 255, .08);
}

.border-badge strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--aqua);
}

.border-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.border-phase-grid,
.border-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.border-phase-grid article,
.border-benefits article,
.border-timeline,
.border-warning {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.border-phase-grid strong,
.border-phase-grid span,
.border-benefits strong,
.border-benefits span {
  display: block;
}

.border-phase-grid strong,
.border-benefits strong {
  margin-bottom: 7px;
  color: var(--text);
}

.border-phase-grid span,
.border-benefits span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.border-timeline h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.border-row {
  display: grid;
  grid-template-columns: 120px 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.border-row:first-of-type {
  margin-top: 10px;
}

.border-row span {
  display: inline-flex;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 9px;
  border: 1px solid rgba(95, 212, 255, .28);
  background: rgba(95, 212, 255, .09);
  color: var(--aqua);
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
}

.border-row strong {
  font-size: 14px;
}

.border-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12.5px;
  text-align: right;
}

.border-warning {
  border-color: rgba(255,214,102,.24);
  background: linear-gradient(135deg, rgba(255,214,102,.08), rgba(255,255,255,.03));
}

.border-warning strong {
  display: block;
  margin-bottom: 7px;
  color: #ffd666;
}

@media (max-width: 760px) {
  .border-hero-card,
  .border-phase-grid,
  .border-benefits {
    grid-template-columns: 1fr;
  }

  .border-badge {
    text-align: left;
  }

  .border-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .border-row span {
    width: fit-content;
  }

  .border-row em {
    text-align: left;
  }
}


/* ---------- Spieler-Shop Detail Card ---------- */
.shop-detail {
  display: grid;
  gap: 14px;
}

.shop-hero-card {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(60,229,143,.26);
  border-radius: 20px;
  padding: 18px;
  background:
    radial-gradient(circle at top left, rgba(60,229,143,.18), transparent 38%),
    linear-gradient(135deg, rgba(255,255,255,.055), rgba(255,255,255,.025));
}

.shop-mini {
  border-color: rgba(60,229,143,.28);
  background: rgba(60,229,143,.09);
  color: var(--emerald);
}

.shop-hero-card h4 {
  margin: 0 0 8px;
  font-size: 24px;
}

.shop-hero-card p,
.shop-flow p,
.shop-warning p {
  margin: 0;
}

.shop-badge {
  min-width: 140px;
  border-radius: 18px;
  padding: 16px 14px;
  text-align: center;
  border: 1px solid rgba(60,229,143,.32);
  background: rgba(60,229,143,.09);
  box-shadow: inset 0 0 24px rgba(60,229,143,.08);
}

.shop-badge strong {
  display: block;
  font-family: var(--mono);
  font-size: 24px;
  color: var(--emerald);
}

.shop-badge span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 12.5px;
}

.shop-step-grid,
.shop-benefits {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.shop-step-grid article,
.shop-benefits article,
.shop-flow,
.shop-warning {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,.035);
  padding: 14px;
}

.shop-step-grid strong,
.shop-step-grid span,
.shop-benefits strong,
.shop-benefits span {
  display: block;
}

.shop-step-grid strong,
.shop-benefits strong {
  margin-bottom: 7px;
  color: var(--text);
}

.shop-step-grid span,
.shop-benefits span {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.45;
}

.shop-flow h5 {
  margin: 0 0 8px;
  font-size: 16px;
}

.shop-row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  border-top: 1px solid rgba(255,255,255,.075);
}

.shop-row:first-of-type {
  margin-top: 12px;
}

.shop-row span {
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 1px solid rgba(60,229,143,.30);
  background: rgba(60,229,143,.10);
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 800;
}

.shop-row strong {
  font-size: 14px;
}

.shop-row em {
  color: var(--muted);
  font-style: normal;
  font-size: 12.5px;
  text-align: right;
}

.shop-warning {
  border-color: rgba(255,214,102,.24);
  background: linear-gradient(135deg, rgba(255,214,102,.08), rgba(255,255,255,.03));
}

.shop-warning strong {
  display: block;
  margin-bottom: 7px;
  color: #ffd666;
}

@media (max-width: 760px) {
  .shop-hero-card,
  .shop-step-grid,
  .shop-benefits {
    grid-template-columns: 1fr;
  }

  .shop-badge {
    text-align: left;
  }

  .shop-row {
    grid-template-columns: auto 1fr;
  }

  .shop-row em {
    grid-column: 2;
    text-align: left;
  }
}


/* ============================================================
   ORIGINS · CLEAN OVERLAY UPDATE
   Portrait-Rahmen, gestaffelte Einblendung, einheitliche Formen,
   getönte Politur – alles an die Origin-Themenfarbe gekoppelt.
   ============================================================ */

/* ---------- 1 · Modal-Portrait: gerahmt, getönt, mit Glow ---------- */
.origin-modal-top { align-items: center; }

.origin-modal-art {
  width: 92px;
  height: 92px;
  padding: 9px;
  object-fit: contain;
  border-radius: 22px;
  border: 1px solid color-mix(in srgb, var(--th, var(--emerald)) 48%, transparent);
  background:
    radial-gradient(120% 120% at 50% 0%, color-mix(in srgb, var(--th, var(--emerald)) 28%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.05), rgba(0,0,0,.34));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.10),
    0 16px 36px rgba(0,0,0,.5),
    0 0 32px color-mix(in srgb, var(--th, var(--emerald)) 30%, transparent);
  filter: drop-shadow(0 4px 10px rgba(0,0,0,.4));
  animation: originArtIn .55s cubic-bezier(.2,.8,.2,1) both;
}

@media (min-width: 761px) {
  .origin-modal-art { width: 108px; height: 108px; border-radius: 24px; }
}

@keyframes originArtIn {
  from { opacity: 0; transform: translateY(10px) scale(.82) rotate(-5deg); }
  to   { opacity: 1; transform: none; }
}

.origin-modal-top h3 {
  text-shadow: 0 0 26px color-mix(in srgb, var(--th, var(--emerald)) 32%, transparent);
}

/* ---------- 2 · Gestaffelte Einblendung der Sektionen ---------- */
.origin-detail-inner-modal > .origin-detail-hero,
.origin-detail-inner-modal > .origin-detail-section {
  animation: originSectionIn .5s cubic-bezier(.22,.7,.2,1) both;
}

@keyframes originSectionIn {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: none; }
}

.origin-detail-inner-modal > *:nth-child(1)  { animation-delay: .03s; }
.origin-detail-inner-modal > *:nth-child(2)  { animation-delay: .07s; }
.origin-detail-inner-modal > *:nth-child(3)  { animation-delay: .11s; }
.origin-detail-inner-modal > *:nth-child(4)  { animation-delay: .15s; }
.origin-detail-inner-modal > *:nth-child(5)  { animation-delay: .19s; }
.origin-detail-inner-modal > *:nth-child(6)  { animation-delay: .23s; }
.origin-detail-inner-modal > *:nth-child(7)  { animation-delay: .27s; }
.origin-detail-inner-modal > *:nth-child(8)  { animation-delay: .31s; }
.origin-detail-inner-modal > *:nth-child(9)  { animation-delay: .35s; }
.origin-detail-inner-modal > *:nth-child(10) { animation-delay: .39s; }
.origin-detail-inner-modal > *:nth-child(11) { animation-delay: .43s; }
.origin-detail-inner-modal > *:nth-child(12) { animation-delay: .47s; }
.origin-detail-inner-modal > *:nth-child(13) { animation-delay: .51s; }
.origin-detail-inner-modal > *:nth-child(14) { animation-delay: .55s; }
.origin-detail-inner-modal > *:nth-child(n+15) { animation-delay: .58s; }

/* ---------- 3 · Hero & Rang-Karte in Origin-Farbe ---------- */
.origin-modal .origin-rank-card {
  position: relative;
  overflow: hidden;
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 42%, transparent);
  background:
    radial-gradient(130% 130% at 50% -10%, color-mix(in srgb, var(--th, var(--emerald)) 18%, transparent), transparent 70%),
    linear-gradient(180deg, rgba(255,255,255,.04), rgba(0,0,0,.26));
  box-shadow: 0 0 28px color-mix(in srgb, var(--th, var(--emerald)) 14%, transparent);
}

.origin-modal .origin-rank-card::before {
  content: "";
  position: absolute;
  left: 14px; right: 14px; top: 0;
  height: 3px; border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, var(--th, var(--emerald)), transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--th, var(--emerald)) 55%, transparent);
}

.origin-modal .origin-rank-card strong {
  color: color-mix(in srgb, var(--th, var(--emerald)) 32%, #ffffff);
  text-shadow: 0 0 14px color-mix(in srgb, var(--th, var(--emerald)) 40%, transparent);
}

/* ---------- 4 · Stärken/Detail-Karten: gleiche „geile Form" wie Skills ---------- */
.origin-modal .origin-stat-grid article,
.origin-modal .two-col-detail article {
  position: relative;
  overflow: hidden;
  border-left: 2px solid color-mix(in srgb, var(--th, var(--emerald)) 32%, transparent);
  background: linear-gradient(180deg, rgba(255,255,255,.045), rgba(0,0,0,.2));
  transition: transform .24s cubic-bezier(.2,.8,.2,1), border-color .24s ease, box-shadow .24s ease, background .24s ease;
}

.origin-modal .origin-stat-grid article:hover,
.origin-modal .two-col-detail article:hover {
  transform: translateY(-4px);
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 45%, transparent);
  border-left-color: var(--th, var(--emerald));
  background: linear-gradient(180deg, color-mix(in srgb, var(--th, var(--emerald)) 10%, transparent), rgba(0,0,0,.22));
  box-shadow: 0 14px 32px rgba(0,0,0,.34), 0 0 24px color-mix(in srgb, var(--th, var(--emerald)) 18%, transparent);
}

.origin-modal .origin-stat-grid strong,
.origin-modal .two-col-detail h5 {
  color: color-mix(in srgb, var(--th, var(--emerald)) 22%, #ffffff);
}

/* ---------- 5 · „Wichtig fürs Balancing" sauber & getönt ---------- */
.origin-modal .highlight-box {
  border-color: color-mix(in srgb, var(--th2, var(--aqua)) 36%, transparent);
  background:
    radial-gradient(130% 100% at 0% 0%, color-mix(in srgb, var(--th2, var(--aqua)) 14%, transparent), transparent 56%),
    linear-gradient(135deg, color-mix(in srgb, var(--th2, var(--aqua)) 10%, transparent), rgba(255,255,255,.025));
}

/* ---------- 6 · Eigenständige „Aktive Fähigkeit"-Sektion als saubere Box ---------- */
.origin-modal .origin-detail-section.ability-box {
  margin-top: 18px;
  padding: 18px;
  border: 1px solid color-mix(in srgb, var(--th2, var(--aqua)) 30%, transparent);
  border-radius: 18px;
  background:
    radial-gradient(130% 100% at 100% 0%, color-mix(in srgb, var(--th2, var(--aqua)) 12%, transparent), transparent 54%),
    rgba(0,0,0,.14);
}

/* ---------- 7 · Ultimate-Box: bessere Lesbarkeit ---------- */
.origin-modal .ultimate-box h5 {
  color: color-mix(in srgb, var(--th, var(--emerald)) 24%, #ffffff);
}

/* ---------- 8 · Titel-Chips: getönt + Hover ---------- */
.origin-modal .title-row span {
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}
.origin-modal .title-row span:hover {
  transform: translateY(-2px);
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 45%, transparent);
  color: var(--text);
  background: color-mix(in srgb, var(--th, var(--emerald)) 10%, transparent);
}

/* ---------- 9 · GUI-Vorschau als In-Game-Panel ---------- */
.origin-modal .gui-preview {
  position: relative;
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 30%, transparent);
  background:
    linear-gradient(180deg, rgba(0,0,0,.42), rgba(0,0,0,.22));
  box-shadow: inset 0 0 24px color-mix(in srgb, var(--th, var(--emerald)) 8%, transparent);
}
.origin-modal .gui-preview strong {
  font-family: var(--mono);
  color: color-mix(in srgb, var(--th, var(--emerald)) 28%, #ffffff);
}
.origin-modal .gui-preview span { font-family: var(--mono); font-size: 12.5px; }
.origin-modal .gui-preview em {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(255,255,255,.12);
  font-style: normal;
  font-family: var(--mono);
  font-size: 11.5px;
  color: color-mix(in srgb, var(--th2, var(--aqua)) 45%, var(--muted));
}

/* ---------- 10 · Tabellen-Politur: getönter Header + Zeilen-Hover ---------- */
.origin-modal .origin-table-wrap {
  border-color: color-mix(in srgb, var(--th, var(--emerald)) 22%, transparent);
}
.origin-modal .origin-table thead th {
  color: color-mix(in srgb, var(--th, var(--emerald)) 35%, #ffffff);
  background: color-mix(in srgb, var(--th, var(--emerald)) 9%, rgba(0,0,0,.25));
  position: sticky; top: 0;
}
.origin-modal .origin-table tbody tr { transition: background .18s ease; }
.origin-modal .origin-table tbody tr:hover {
  background: color-mix(in srgb, var(--th, var(--emerald)) 8%, transparent);
}

/* ---------- 11 · Modal-Öffnen: weicher & sauberer ---------- */
.origin-modal-card {
  transition: transform .42s cubic-bezier(.16,.84,.24,1), opacity .3s ease;
}
.origin-modal:not(.open) .origin-modal-card {
  transform: translateY(22px) scale(.97);
  opacity: 0;
}
.origin-modal-backdrop { transition: backdrop-filter .3s ease, background .3s ease; }

/* ---------- 12 · Bewegung reduzieren respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .origin-modal-art,
  .origin-detail-inner-modal > .origin-detail-hero,
  .origin-detail-inner-modal > .origin-detail-section {
    animation: none !important;
  }
  .origin-modal-card { transition: opacity .2s ease !important; }
  .ultimate-box { animation: none !important; }
}

/* ============================================================
   Totenwächter Update: kompletter dunkellila Screen-Look + cleanes Layout
   ============================================================ */
.origin-modal-card[data-origin-theme="untoter"] {
  --th:#d6b4ff;
  --th2:#7b2cff;
  border-color: rgba(184, 112, 255, .46);
  background:
    radial-gradient(circle at 14% 0%, rgba(176, 107, 255, .24), transparent 42%),
    radial-gradient(circle at 88% 15%, rgba(76, 18, 112, .34), transparent 38%),
    radial-gradient(circle at 48% 115%, rgba(124, 58, 237, .16), transparent 46%),
    linear-gradient(145deg, rgba(21, 8, 32, .98), rgba(7, 7, 12, .97));
  box-shadow:
    0 0 0 1px rgba(176, 107, 255, .12),
    0 24px 80px rgba(0,0,0,.55),
    inset 0 0 90px rgba(95, 34, 153, .14);
}

.origin-modal-card[data-origin-theme="untoter"] .origin-detail-inner-modal {
  border-color: rgba(190, 132, 255, .30);
  background:
    radial-gradient(circle at 18% 0%, rgba(176, 107, 255, .18), transparent 36%),
    radial-gradient(circle at 82% 16%, rgba(88, 28, 135, .22), transparent 34%),
    linear-gradient(135deg, rgba(24, 10, 37, .72), rgba(9, 8, 14, .66));
}

.undead-hero {
  padding: 18px;
  border: 1px solid rgba(190, 132, 255, .36);
  border-radius: 20px;
  background:
    radial-gradient(circle at 20% 0%, rgba(204, 153, 255, .20), transparent 42%),
    radial-gradient(circle at 86% 22%, rgba(93, 34, 143, .24), transparent 38%),
    linear-gradient(135deg, rgba(32, 12, 48, .95), rgba(8, 8, 14, .92));
  box-shadow: inset 0 0 34px rgba(143, 70, 255, .08);
}

.undead-rank-card,
.undead-note,
.undead-gui-preview {
  border-color: rgba(190, 132, 255, .28) !important;
  background:
    radial-gradient(circle at 0% 0%, rgba(176, 107, 255, .15), transparent 56%),
    rgba(0,0,0,.18) !important;
}

.undead-clean-grid article,
.ultimate-clean-grid article {
  min-height: 118px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  border-color: rgba(190, 132, 255, .18);
  background:
    radial-gradient(circle at top left, rgba(176, 107, 255, .09), transparent 58%),
    rgba(0,0,0,.16);
}

.undead-ability-section,
.clean-ultimate-box {
  border-color: rgba(190, 132, 255, .34) !important;
  background:
    radial-gradient(circle at 100% 0%, rgba(176, 107, 255, .16), transparent 54%),
    linear-gradient(135deg, rgba(70, 24, 112, .17), rgba(0,0,0,.16)) !important;
}

.clean-ability-card {
  display: grid;
  gap: 10px;
  border-color: rgba(216, 180, 254, .28) !important;
}

.clean-ultimate-box > p,
.clean-ultimate-box > span,
.clean-ultimate-box > em {
  display: none !important;
}

.origin-modal-card[data-origin-theme="untoter"] .origin-checklist li::marker,
.origin-modal-card[data-origin-theme="untoter"] .origin-table th,
.origin-modal-card[data-origin-theme="untoter"] .origin-mini {
  color: #d6b4ff;
}


/* ============================================================
   ORIGINS · UNIFIED POLISH
   Vereinheitlicht ALLE Origin-Profile zu einem Guss:
   Header → Grundpassiven → Pfad (kompakte Ability-Bar) → Skills
   → Ultimate → Endskill. Kompakter, ruhiger, edler, mobilfreundlich.
   Alles an die Origin-Themenfarbe (--th / --th2) gekoppelt.
   ============================================================ */

/* ---------- 1 · Hero: ruhiger, mehr Atmosphäre ---------- */
.origin-modal .origin-detail-hero {
  gap: 22px;
  margin-bottom: 22px;
  padding-bottom: 20px;
  border-bottom: 1px solid color-mix(in srgb, var(--th, var(--emerald)) 16%, rgba(255,255,255,.06));
}
.origin-modal .origin-detail-hero > div:first-child > p {
  max-width: 62ch;
}

/* ---------- 2 · Grundpassiven & Detail-Karten: gleich groß, ruhig ---------- */
.origin-modal .origin-stat-grid,
.origin-modal .skill-card-list,
.origin-modal .two-col-detail { align-items: stretch; }

.origin-modal .origin-stat-grid article,
.origin-modal .two-col-detail article,
.origin-modal .skill-card-list article {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-height: 0;
}
.origin-modal .origin-stat-grid article > span,
.origin-modal .skill-card-list article > span { margin-top: auto; }

/* ---------- 3 · Pfad-Subtitle: saubere Zeile statt losem Text ---------- */
.origin-modal .path-sub {
  margin: -4px 0 14px;
  padding-left: 14px;
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.5;
  border-left: 2px solid color-mix(in srgb, var(--th, var(--emerald)) 32%, transparent);
}

/* ---------- 4 · Aktive Fähigkeit: KOMPAKTE Ability-Bar (nicht mehr riesig) ---------- */
.origin-modal .origin-detail-section > .origin-ability-card {
  margin: 0 0 14px;
  padding: 12px 16px 13px;
  border-radius: 14px;
  border-left: 3px solid color-mix(in srgb, var(--th2, var(--aqua)) 72%, transparent);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.05),
    0 6px 18px rgba(0,0,0,.26),
    0 0 16px color-mix(in srgb, var(--th2, var(--aqua)) 10%, transparent);
  transition: transform .22s ease, border-color .22s ease, box-shadow .22s ease;
}
.origin-modal .origin-detail-section > .origin-ability-card:hover {
  transform: translateY(-2px);
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 12px 28px rgba(0,0,0,.34),
    0 0 24px color-mix(in srgb, var(--th2, var(--aqua)) 20%, transparent);
}
.origin-modal .origin-ability-card strong {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 5px;
  font-size: 14.5px;
}
/* Leuchtpunkt als „Aktive Fähigkeit“-Marker */
.origin-modal .origin-ability-card strong::before {
  content: "";
  flex: 0 0 auto;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff, color-mix(in srgb, var(--th2, var(--aqua)) 80%, #000));
  box-shadow: 0 0 10px color-mix(in srgb, var(--th2, var(--aqua)) 70%, transparent);
}
.origin-modal .origin-ability-card > span {
  font-size: 13px;
  line-height: 1.5;
}
/* Meta-Zeile (Cooldown · Dauer) als ruhige Mono-Zeile */
.origin-modal .origin-ability-card .ability-meta {
  order: -1;
  margin-bottom: 2px;
  font-family: var(--mono);
  font-size: 11px !important;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: color-mix(in srgb, var(--th2, var(--aqua)) 52%, var(--muted)) !important;
}
/* Mehrfach-Effekt-Abilities (z. B. Nachtwächter) kompakt halten */
.origin-modal .origin-ability-card .origin-checklist {
  margin-top: 6px;
  gap: 5px;
  font-size: 13px;
}
.origin-modal .origin-ability-card .origin-checklist li { line-height: 1.45; }

/* ---------- 5 · Ultimate: klarer finaler Hauptblock ---------- */
.origin-modal .ultimate-box { margin-top: 26px; }
.origin-modal .ultimate-box > .origin-checklist {
  margin: 12px 0 16px;
  padding: 14px 14px 14px 32px;
  border-radius: 14px;
  background: rgba(0,0,0,.18);
  border: 1px solid color-mix(in srgb, var(--th, var(--emerald)) 18%, transparent);
}

/* ---------- 6 · Level-100 / Endskill: besonderer finaler Card-Bereich ---------- */
.origin-modal .ultimate-box .skill-card-list article:last-child {
  margin-top: 8px;
  padding: 16px 16px 16px 18px;
  border: 1px solid color-mix(in srgb, #ffd27a 52%, transparent);
  border-left: 3px solid #ffd27a;
  background:
    radial-gradient(130% 130% at 0% 0%, color-mix(in srgb, #ffd27a 16%, transparent), transparent 60%),
    linear-gradient(180deg, color-mix(in srgb, #ffd27a 9%, transparent), rgba(0,0,0,.26));
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.06),
    0 14px 34px rgba(0,0,0,.36),
    0 0 28px color-mix(in srgb, #ffd27a 18%, transparent);
}
/* goldener Node-Punkt */
.origin-modal .ultimate-box .skill-card-list article:last-child::before {
  background: radial-gradient(circle at 35% 30%, #fff, #ffd27a 58%, #a9761c);
  box-shadow:
    0 0 0 4px color-mix(in srgb, #ffd27a 16%, transparent),
    0 0 18px color-mix(in srgb, #ffd27a 75%, transparent);
}
/* goldener Top-Akzent als „finale“-Signatur */
.origin-modal .ultimate-box .skill-card-list article:last-child::after {
  content: "";
  position: absolute;
  left: 16px; right: 16px; top: 0;
  height: 3px;
  border-radius: 0 0 4px 4px;
  background: linear-gradient(90deg, transparent, #ffd27a, transparent);
  box-shadow: 0 0 14px rgba(255,210,122,.55);
}
.origin-modal .ultimate-box .skill-card-list article:last-child strong {
  color: #ffe2a6;
  text-shadow: 0 0 16px rgba(255,210,122,.4);
}
.origin-modal .ultimate-box .skill-card-list article:last-child:hover {
  transform: translateX(4px);
  border-left-color: #ffe2a6;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,.08),
    0 16px 38px rgba(0,0,0,.42),
    0 0 34px color-mix(in srgb, #ffd27a 28%, transparent);
}

/* ---------- 7 · Mobil: Ability-Bar & Endskill sauber ---------- */
@media (max-width: 760px) {
  .origin-modal .origin-detail-hero {
    gap: 14px;
    margin-bottom: 16px;
    padding-bottom: 14px;
  }
  .origin-modal .origin-detail-section > .origin-ability-card { padding: 12px 13px; }
  .origin-modal .origin-ability-card strong { font-size: 14px; }
  .origin-modal .ultimate-box .skill-card-list article:last-child { padding: 14px; }
}

/* ---------- 8 · Bewegung reduzieren respektieren ---------- */
@media (prefers-reduced-motion: reduce) {
  .origin-modal .origin-detail-section > .origin-ability-card,
  .origin-modal .ultimate-box .skill-card-list article:last-child {
    transition: none !important;
  }
}

/* ---------- Origin Finder Quiz ---------- */
.origin-quiz-section {
  margin-top: 56px;
  margin-bottom: 32px;
}

.origin-quiz-shell {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(60,229,143,.18);
  border-radius: 28px;
  background:
    radial-gradient(900px 420px at 12% 0%, rgba(60,229,143,.13), transparent 58%),
    radial-gradient(780px 360px at 100% 8%, rgba(95,212,255,.10), transparent 58%),
    linear-gradient(135deg, rgba(255,255,255,.075), rgba(255,255,255,.025));
  box-shadow: 0 30px 90px rgba(0,0,0,.24);
  padding: clamp(20px, 3vw, 34px);
}

.origin-quiz-shell::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(120deg, black, transparent 72%);
}

.origin-quiz-start {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 22px;
  align-items: center;
  width: 100%;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 24px;
  background:
    radial-gradient(420px 180px at 0% 0%, rgba(60,229,143,.16), transparent 72%),
    rgba(6,10,16,.36);
  color: var(--text);
  text-align: left;
  padding: clamp(18px, 3vw, 28px);
  cursor: pointer;
  transition: border-color .22s ease, transform .22s ease, background .22s ease;
}

.origin-quiz-start:hover {
  transform: translateY(-2px);
  border-color: rgba(60,229,143,.35);
  background:
    radial-gradient(480px 200px at 0% 0%, rgba(60,229,143,.21), transparent 74%),
    rgba(6,10,16,.46);
}

.origin-quiz-start h3 {
  font-size: clamp(22px, 3vw, 36px);
  margin-bottom: 8px;
}

.origin-quiz-start p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
}

.origin-quiz-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.origin-quiz-chips span {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: var(--text);
  font-size: 13px;
  font-weight: 700;
  padding: 7px 10px;
}

.origin-quiz-toggle-icon {
  white-space: nowrap;
  border: 1px solid rgba(60,229,143,.28);
  border-radius: 999px;
  background: rgba(60,229,143,.12);
  color: #d9ffe8;
  font-family: var(--mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 12px 15px;
}

.origin-quiz-panel {
  position: relative;
  z-index: 1;
  margin-top: 22px;
  animation: quizPanelIn .24s ease both;
}

.origin-quiz-panel[hidden] {
  display: none !important;
}

@keyframes quizPanelIn {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}

.origin-quiz-top,
.origin-quiz-form,
.origin-quiz-actions,
.origin-quiz-result {
  position: relative;
  z-index: 1;
}

.origin-quiz-top {
  display: grid;
  grid-template-columns: 1fr 260px;
  gap: 20px;
  align-items: end;
  margin-bottom: 24px;
}

.origin-quiz-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  border: 1px solid rgba(60,229,143,.28);
  border-radius: 999px;
  background: rgba(60,229,143,.10);
  color: #c9ffe1;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .12em;
  text-transform: uppercase;
  padding: 7px 12px;
  margin-bottom: 12px;
}

.origin-quiz-top h3 {
  font-size: clamp(22px, 2.8vw, 34px);
  margin-bottom: 8px;
}

.origin-quiz-top p {
  margin: 0;
  color: var(--muted);
  max-width: 680px;
}

.origin-quiz-progress {
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(6,10,16,.42);
  padding: 15px;
}

.origin-quiz-progress span {
  display: block;
  color: var(--text);
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 10px;
}

.origin-quiz-progressbar,
.origin-quiz-scoreline div {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  border: 1px solid rgba(255,255,255,.08);
}

.origin-quiz-progressbar i,
.origin-quiz-scoreline i {
  display: block;
  height: 100%;
  width: 0%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--emerald), var(--aqua));
  transition: width .35s ease;
}

.origin-quiz-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.origin-quiz-question {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(6,10,16,.42);
  padding: 18px;
  margin: 0;
  min-width: 0;
}

.origin-quiz-question legend {
  display: block;
  float: left;
  width: 100%;
  font-family: var(--display);
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 13px;
}

.origin-quiz-question legend span {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--emerald);
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.origin-quiz-options {
  clear: both;
  display: grid;
  gap: 8px;
}

.origin-quiz-option {
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 10px;
  align-items: start;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 14px;
  background: rgba(255,255,255,.035);
  padding: 10px 12px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.35;
  transition: border-color .2s ease, background .2s ease, color .2s ease, transform .2s ease;
}

.origin-quiz-option:hover {
  transform: translateY(-1px);
  border-color: rgba(60,229,143,.28);
  background: rgba(60,229,143,.07);
  color: var(--text);
}

.origin-quiz-option input {
  margin-top: 2px;
  accent-color: var(--emerald);
}

.origin-quiz-option:has(input:checked) {
  border-color: rgba(60,229,143,.55);
  background: rgba(60,229,143,.13);
  color: var(--text);
  box-shadow: 0 0 0 1px rgba(60,229,143,.08) inset;
}

.origin-quiz-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 24px;
}

.origin-quiz-result {
  margin-top: 24px;
}

.origin-quiz-warning {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(255,198,107,.35);
  border-radius: 18px;
  background: rgba(255,198,107,.09);
  padding: 16px;
}

.origin-quiz-warning span {
  color: var(--muted);
}

.origin-quiz-winner {
  --quiz-th: var(--emerald);
  --quiz-th2: var(--aqua);
  display: grid;
  grid-template-columns: 190px 1fr;
  gap: clamp(18px, 3vw, 32px);
  align-items: center;
  border: 1px solid color-mix(in srgb, var(--quiz-th) 45%, transparent);
  border-radius: 26px;
  background:
    radial-gradient(560px 240px at 0% 0%, color-mix(in srgb, var(--quiz-th) 17%, transparent), transparent 70%),
    linear-gradient(135deg, rgba(255,255,255,.09), rgba(255,255,255,.035));
  padding: clamp(18px, 3vw, 28px);
  box-shadow: 0 24px 72px rgba(0,0,0,.22);
}

.origin-quiz-winner[data-origin-theme="graeber"] { --quiz-th:#a6b0bd; --quiz-th2:#ffc66b; }
.origin-quiz-winner[data-origin-theme="rabauke"] { --quiz-th:#ff9a4d; --quiz-th2:#ff5d5d; }
.origin-quiz-winner[data-origin-theme="nachtwaechter"] { --quiz-th:#b794ff; --quiz-th2:#6ea8ff; }
.origin-quiz-winner[data-origin-theme="waldlaeufer"] { --quiz-th:#5fe08a; --quiz-th2:#bce04f; }
.origin-quiz-winner[data-origin-theme="alchemist"] { --quiz-th:#ff7ad1; --quiz-th2:#9be15f; }
.origin-quiz-winner[data-origin-theme="hoellenkind"] { --quiz-th:#ff6a3d; --quiz-th2:#ffb347; }
.origin-quiz-winner[data-origin-theme="untoter"] { --quiz-th:#8bd450; --quiz-th2:#b06bff; }
.origin-quiz-winner[data-origin-theme="wasserman"] { --quiz-th:#4cb8ff; --quiz-th2:#56e0cf; }
.origin-quiz-winner[data-origin-theme="vampir"] { --quiz-th:#ff4d5e; --quiz-th2:#9c1f33; }
.origin-quiz-winner[data-origin-theme="yeti"] { --quiz-th:#a9e6ff; --quiz-th2:#8fb6ff; }

.origin-quiz-winner-art {
  position: relative;
  min-height: 190px;
  display: grid;
  place-items: center;
  border-radius: 24px;
  background: radial-gradient(circle, color-mix(in srgb, var(--quiz-th) 20%, transparent), rgba(255,255,255,.035));
  border: 1px solid color-mix(in srgb, var(--quiz-th) 32%, transparent);
}

.origin-quiz-winner-art img {
  width: min(180px, 90%);
  max-height: 190px;
  object-fit: contain;
  filter: drop-shadow(0 18px 34px rgba(0,0,0,.36));
}

.origin-quiz-winner h3 {
  font-size: clamp(28px, 4vw, 44px);
  margin-bottom: 8px;
}

.origin-quiz-winner p {
  color: var(--muted);
  margin: 0 0 14px;
}

.origin-quiz-scoreline {
  display: grid;
  gap: 8px;
  margin: 16px 0;
}

.origin-quiz-scoreline span {
  color: var(--quiz-th);
  font-family: var(--mono);
  font-weight: 800;
}

.origin-quiz-scoreline i {
  background: linear-gradient(90deg, var(--quiz-th), var(--quiz-th2));
}

.origin-quiz-why strong {
  color: var(--text);
}

.origin-quiz-reasons {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}

.origin-quiz-reasons article {
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 20px;
  background: rgba(6,10,16,.38);
  padding: 18px;
}

.origin-quiz-reasons strong {
  display: block;
  margin-bottom: 10px;
}

.origin-quiz-reasons ul {
  margin: 0;
  padding-left: 19px;
  color: var(--muted);
}

.origin-quiz-top3 {
  display: grid;
  gap: 8px;
}

.origin-quiz-top3 button {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  width: 100%;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  color: var(--text);
  padding: 10px 12px;
  transition: border-color .2s ease, background .2s ease, transform .2s ease;
}

.origin-quiz-top3 button:hover {
  transform: translateY(-1px);
  border-color: rgba(60,229,143,.32);
  background: rgba(60,229,143,.08);
}

.origin-quiz-top3 em {
  font-style: normal;
  color: var(--emerald);
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .origin-quiz-start,
  .origin-quiz-top,
  .origin-quiz-form,
  .origin-quiz-winner,
  .origin-quiz-reasons {
    grid-template-columns: 1fr;
  }

  .origin-quiz-toggle-icon {
    width: fit-content;
  }

  .origin-quiz-winner-art {
    min-height: 150px;
  }

  .origin-quiz-winner-art img {
    max-height: 155px;
  }
}


.referral-reward-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: stretch;
}
