:root {
  --bg0: #0a0810;
  --bg1: #0e0b18;
  --bg2: #130f20;
  --bg3: #171c2c;
  --accent: #c084fc;       /* purple (primary) */
  --accent2: #a78bfa;
  --teal: #4dd0c4;         /* teal from "Terra" */
  --teal-soft: #6ee1d6;
  --danger: #ff6b86;
  --gold: #e8c179;         /* warm gold from "Arcana" */
  --gold-bright: #f5d489;
  --text: #eef2ff;
  --muted: #8b95b5;
  --line: rgba(168,139,250,.18);
  --radius: 14px;
  --shadow: 0 20px 50px rgba(8,4,16,.6);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

/* ═══ LOADER ═══ */
#at-loader {
  position: fixed; inset: 0; z-index: 9999;
  background: #0a0810;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center; gap: 1.4rem;
  transition: opacity .5s ease, visibility .5s ease;
}
#at-loader.hide { opacity: 0; visibility: hidden; }
.loader-img {
  width: clamp(140px, 22vw, 220px);
  height: auto;
  filter: drop-shadow(0 0 30px rgba(192,132,252,.6)) drop-shadow(0 0 60px rgba(77,208,196,.25));
  animation: loaderPulse 1.5s ease infinite;
}
@keyframes loaderPulse {
  0%,100% { filter: drop-shadow(0 0 30px rgba(192,132,252,.6)) drop-shadow(0 0 60px rgba(77,208,196,.25)); transform: scale(1); }
  50%     { filter: drop-shadow(0 0 50px rgba(232,193,121,.7)) drop-shadow(0 0 100px rgba(192,132,252,.5)); transform: scale(1.03); }
}
.loader-bar-wrap {
  width: min(260px, 70vw); height: 4px;
  background: rgba(255,255,255,.06);
  border-radius: 99px; overflow: hidden;
}
.loader-bar {
  height: 100%; width: 0%;
  background: linear-gradient(90deg, #a78bfa, #e879f9, #c084fc);
  border-radius: 99px;
  animation: loaderFill 1.6s cubic-bezier(.4,0,.2,1) forwards;
}
@keyframes loaderFill { to { width: 100%; } }
.loader-sub {
  font-size: .72rem; color: rgba(139,149,181,.6);
  letter-spacing: .15em; text-transform: uppercase;
  font-weight: 600;
  animation: loaderFade 1.6s ease forwards;
}
@keyframes loaderFade {
  0% { opacity: 0; } 30% { opacity: 1; } 85% { opacity: 1; } 100% { opacity: 0; }
}
.loader-sparks { display: flex; gap: .6rem; }
.loader-spark {
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--accent);
  animation: loaderBounce 1s ease infinite;
}
.loader-spark:nth-child(2) { animation-delay: .15s; background: #e879f9; }
.loader-spark:nth-child(3) { animation-delay: .3s;  background: #a78bfa; }
@keyframes loaderBounce {
  0%,100% { transform: translateY(0); opacity: .4; }
  50%     { transform: translateY(-8px); opacity: 1; }
}

/* ═══ QUEST / JOIN SCROLL ═══ */
.quest-scroll {
  position: relative;
  margin: 0 auto 2rem;
  max-width: 540px;
  background: linear-gradient(160deg, rgba(30,10,50,.92), rgba(18,6,32,.96));
  border: 1px solid rgba(192,132,252,.3);
  border-radius: 16px;
  padding: 1.4rem 1.6rem 1.3rem;
  box-shadow: 0 0 40px rgba(192,132,252,.08), 0 8px 32px rgba(0,0,0,.4);
  text-align: left;
}
.quest-rune {
  position: absolute; font-size: .75rem; opacity: .35; color: #c084fc;
}
.quest-rune-tl { top: 10px; left: 14px; }
.quest-rune-tr { top: 10px; right: 14px; }
.quest-rune-bl { bottom: 10px; left: 14px; }
.quest-rune-br { bottom: 10px; right: 14px; }
.quest-head {
  font-family: 'Press Start 2P', monospace;
  font-size: .6rem; color: #a78bfa;
  letter-spacing: .12em; text-transform: uppercase;
  margin-bottom: .9rem; text-align: center; opacity: .8;
}
.quest-p1 { font-size: .9rem; color: #e9d5ff; line-height: 1.75; margin-bottom: .75rem; }
.quest-p1 strong { color: #c084fc; }
.quest-p2 { font-size: .88rem; color: #c4b5fd; line-height: 1.75; margin-bottom: .75rem; }
.quest-p2 .quest-discord { color: #e879f9; }
.quest-p3 { font-size: .82rem; color: #a78bfa; line-height: 1.7; margin-bottom: 1rem; }
.quest-foot {
  border-top: 1px solid rgba(192,132,252,.18);
  padding-top: .85rem;
  display: flex; align-items: center; gap: .6rem; flex-wrap: wrap;
}
.quest-foot > span:first-child {
  font-size: .72rem; color: #7c6a9a; font-style: italic;
}
.quest-status {
  margin-left: auto;
  font-family: 'Press Start 2P', monospace;
  font-size: .5rem; color: rgba(192,132,252,.4);
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', 'Segoe UI', sans-serif;
  background: var(--bg0);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

/* PARTICLES OVERLAY */
#particles-canvas { position: fixed; inset: 0; z-index: 0; pointer-events: none; }
body::before {
  content: '';
  position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 60% 50% at 20% 10%, rgba(168,139,250,.08) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 90%, rgba(192,132,252,.06) 0%, transparent 55%),
    radial-gradient(ellipse 40% 60% at 50% 50%, rgba(232,121,249,.04) 0%, transparent 65%);
}

/* NAVBAR */
.navbar {
  position: sticky; top: 0; z-index: 100;
  background: rgba(10,6,16,.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}
.nav-inner {
  width: min(1160px, calc(100% - 2rem));
  margin: 0 auto; min-height: 68px;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.nav-brand {
  display: flex; align-items: center; gap: .6rem;
  font-weight: 800; font-size: 1.05rem; flex-shrink: 0;
  color: var(--text);
}
.nav-brand span { color: var(--teal); }
.brand-icon {
  width: 40px; height: 40px;
  background: url('logo.png') center/contain no-repeat;
  filter: drop-shadow(0 0 8px rgba(192,132,252,.35));
  flex-shrink: 0;
  image-rendering: auto;
}
.nav-links { display: flex; gap: .25rem; }
.nav-links a {
  display: inline-flex; padding: .4rem .8rem;
  border: 1px solid transparent; border-radius: 10px;
  font-weight: 600; font-size: .88rem; color: var(--muted);
  transition: .18s ease; cursor: pointer;
}
.nav-links a:hover, .nav-links a.active {
  color: var(--text); border-color: var(--line);
  background: rgba(22,14,36,.8);
}
.nav-right { display: flex; align-items: center; gap: .6rem; flex-shrink: 0; }
.online-pill {
  display: flex; align-items: center; gap: .45rem;
  background: rgba(192,132,252,.08);
  border: 1px solid rgba(192,132,252,.2);
  border-radius: 99px; padding: .35rem .8rem;
  font-size: .8rem; font-weight: 700; color: var(--accent);
}
.online-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
  animation: blink 1.2s ease infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.2} }
.btn-ip {
  background: linear-gradient(135deg,#2d1a4d,#1a0f30);
  border: 1px solid rgba(192,132,252,.25); border-radius: 10px;
  padding: .42rem 1rem; font: 600 .84rem 'Inter',sans-serif;
  color: var(--accent); cursor: pointer; transition: .15s; white-space: nowrap;
  display: inline-flex; align-items: center; gap: .4rem;
}
.btn-ip:hover { background: rgba(192,132,252,.1); }
.hamburger {
  display: none; width: 42px; height: 42px; border-radius: 10px;
  border: 1px solid var(--line); background: rgba(14,19,32,.9);
  padding: 10px; cursor: pointer; flex-direction: column; justify-content: space-between;
}
.hamburger span { display: block; height: 2px; border-radius: 2px; background: var(--text); }
.mobile-menu {
  display: none; background: rgba(12,6,18,.98);
  border-bottom: 1px solid var(--line); padding: .6rem 1.2rem .8rem;
  position: sticky; top: 68px; z-index: 99;
  backdrop-filter: blur(16px);
}
.mobile-menu.open { display: flex; flex-direction: column; }
.mobile-menu a {
  display: block; padding: .62rem .4rem; font-weight: 600;
  color: var(--muted); border-bottom: 1px solid rgba(255,255,255,.04);
}
.mobile-menu a:hover { color: var(--text); }

main { position: relative; z-index: 1; }

/* HERO */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 50% 40% at 50% 30%, rgba(124,58,237,.28) 0%, transparent 70%),
    radial-gradient(ellipse 60% 50% at 20% 80%, rgba(77,208,196,.12) 0%, transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 20%, rgba(232,193,121,.10) 0%, transparent 60%),
    linear-gradient(180deg, #150a25 0%, #0a0810 100%);
  transform: scale(1.05);
}
.hero-bg::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg,
    rgba(10,8,16,.15) 0%, rgba(50,10,80,.05) 35%,
    rgba(10,8,16,.8) 75%, var(--bg0) 100%);
}
.hero-inner {
  position: relative; z-index: 2;
  text-align: center; padding: 120px 1.5rem 80px;
  width: min(780px, 100%);
}
.hero-badge {
  display: inline-flex; align-items: center; gap: .5rem;
  background: rgba(192,132,252,.07);
  border: 1px solid rgba(192,132,252,.2);
  border-radius: 99px; padding: .38rem 1.1rem;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  letter-spacing: .05em; margin-bottom: 1.5rem;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 6px var(--accent);
}

.glitch {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(1.8rem, 5.5vw, 3.5rem);
  line-height: 1.2; color: var(--gold-bright);
  text-shadow:
    0 0 30px rgba(232,193,121,.55),
    0 0 70px rgba(192,132,252,.3),
    0 0 120px rgba(77,208,196,.18);
  position: relative; display: inline-block; margin-bottom: .65rem;
}
.glitch::before, .glitch::after {
  content: attr(data-text); position: absolute; left: 0; top: 0; width: 100%;
}
.glitch::before {
  color: var(--gold); animation: gT 3.5s infinite;
  clip-path: polygon(0 0,100% 0,100% 33%,0 33%); transform: translateX(-2px);
}
.glitch::after {
  color: var(--teal); animation: gB 3.5s infinite;
  clip-path: polygon(0 66%,100% 66%,100% 100%,0 100%); transform: translateX(2px);
}
@keyframes gT { 0%,88%,100%{transform:translateX(-2px)} 90%{transform:translateX(4px) skewX(3deg)} 93%{transform:translateX(-3px)} 96%{transform:translateX(2px)} }
@keyframes gB { 0%,88%,100%{transform:translateX(2px)} 89%{transform:translateX(-4px) skewX(-3deg)} 92%{transform:translateX(4px)} 97%{transform:translateX(-2px)} }

.hero-tagline { font-size: 1.05rem; color: var(--muted); margin-bottom: 2rem; }

.ip-box {
  display: inline-flex; align-items: stretch;
  background: rgba(12,6,20,.92); border: 1px solid rgba(192,132,252,.22);
  border-radius: var(--radius); overflow: hidden;
  box-shadow: 0 0 40px rgba(192,132,252,.06), var(--shadow);
  margin-bottom: 1.5rem;
}
.ip-label {
  display: flex; align-items: center; padding: 0 1rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .1em;
  text-transform: uppercase; color: var(--muted);
  background: rgba(192,132,252,.05);
  border-right: 1px solid var(--line);
}
.ip-value {
  font-family: 'Press Start 2P', monospace;
  font-size: clamp(.68rem, 2vw, .9rem); color: #e9d5ff;
  padding: 1rem 1.2rem; letter-spacing: .03em;
}
.btn-copy-main {
  background: linear-gradient(130deg, var(--accent), #d8b4fe);
  color: #1a0835; border: none; padding: 0 1.3rem;
  font: 700 .85rem 'Inter', sans-serif; cursor: pointer; transition: .15s;
  display: flex; align-items: center; gap: .4rem;
}
.btn-copy-main:hover { filter: brightness(1.08); }

.hero-actions {
  display: flex; gap: .7rem; justify-content: center;
  flex-wrap: wrap; margin-bottom: 2.6rem;
}
.btn-prim {
  background: linear-gradient(130deg, #7c3aed, #c084fc);
  color: #fff; border: none; border-radius: 11px;
  padding: .72rem 1.7rem; font: 700 .94rem 'Inter', sans-serif;
  cursor: pointer; transition: .18s;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 4px 24px rgba(124,58,237,.35);
}
.btn-prim:hover { transform: translateY(-2px); box-shadow: 0 8px 28px rgba(124,58,237,.45); }
.btn-sec {
  background: transparent; color: var(--text);
  border: 1px solid var(--line); border-radius: 11px;
  padding: .72rem 1.7rem; font: 700 .94rem 'Inter', sans-serif;
  cursor: pointer; transition: .18s;
  display: inline-flex; align-items: center; gap: .5rem;
}
.btn-sec:hover { border-color: rgba(255,255,255,.32); background: rgba(192,132,252,.06); transform: translateY(-2px); }

.stats-strip {
  display: inline-flex; background: rgba(16,8,26,.88);
  border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; backdrop-filter: blur(8px);
}
.sbox { padding: .85rem 1.5rem; text-align: center; border-right: 1px solid var(--line); }
.sbox:last-child { border-right: none; }
.sval {
  font-family: 'Press Start 2P', monospace;
  font-size: .95rem; color: var(--accent);
  display: block; margin-bottom: .2rem;
}
.slbl { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }

/* SECTIONS */
section { padding: 72px 0; position: relative; z-index: 1; }
.container { width: min(1160px, calc(100% - 2rem)); margin: 0 auto; }
.eye  { font-size: .72rem; font-weight: 700; letter-spacing: .2em; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: .5rem; }
.stitle { font-family: 'Press Start 2P', monospace; font-size: clamp(.9rem, 2.2vw, 1.45rem); color: var(--text); line-height: 1.4; margin-bottom: .6rem; }
.ssub { font-size: .93rem; color: var(--muted); max-width: 500px; line-height: 1.7; }
.sdiv { width: 60px; height: 3px; border-radius: 2px; background: linear-gradient(90deg, var(--gold), var(--accent), var(--teal)); margin: 1rem 0 2.6rem; }

/* FEATURE CARDS */
.feat-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem; }
.fcard {
  background: linear-gradient(160deg, rgba(22,14,38,.9), rgba(12,6,22,.94));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem; transition: .2s; position: relative; overflow: hidden;
}
.fcard::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
  opacity: 0; transition: .2s;
}
.fcard:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(5,8,16,.5); }
.fcard:hover::before { opacity: 1; }
.ficon {
  width: 42px; height: 42px; display: inline-grid; place-items: center;
  border-radius: 10px; border: 1px solid var(--line);
  color: var(--accent2); background: rgba(14,21,35,.95);
  font-size: 1.1rem; margin-bottom: .8rem;
}
.fcard h3 { font-size: .93rem; font-weight: 700; margin-bottom: .4rem; }
.fcard p { font-size: .84rem; color: var(--muted); line-height: 1.65; }

/* PLUGIN GRID */
.pgrid { display: grid; grid-template-columns: repeat(5,1fr); gap: .9rem; }
.pcard {
  background: linear-gradient(160deg, rgba(22,14,38,.9), rgba(12,6,22,.94));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.1rem; transition: .2s;
}
.pcard:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.picon {
  width: 40px; height: 40px; display: inline-grid; place-items: center;
  border-radius: 9px; border: 1px solid var(--line);
  color: var(--accent2); background: rgba(14,21,35,.95);
  font-size: 1rem; margin-bottom: .72rem;
}
.pcard h3 { font-size: .9rem; font-weight: 700; margin-bottom: .35rem; }
.pcard p { font-size: .82rem; color: var(--muted); line-height: 1.6; }
.pver {
  display: inline-flex; margin-top: .5rem; color: #e9d5ff;
  border: 1px solid rgba(192,132,252,.28); background: rgba(24,8,40,.85);
  border-radius: 99px; padding: .15rem .55rem; font-size: .76rem;
}

/* Highlight für eigene Plugins */
.pcard-custom {
  border-color: rgba(255,208,96,.35);
  background: linear-gradient(160deg, rgba(40,28,10,.6), rgba(20,12,30,.94));
  position: relative; overflow: hidden;
}
.pcard-custom::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), #c084fc, transparent);
}
.pcard-custom .picon {
  color: var(--gold); border-color: rgba(255,208,96,.3);
  background: rgba(30,20,4,.9);
}
.pcard-custom h3 { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; }
.custom-badge {
  font-size: .62rem; font-weight: 700; letter-spacing: .05em;
  text-transform: uppercase; color: var(--gold);
  background: rgba(255,208,96,.1); border: 1px solid rgba(255,208,96,.3);
  border-radius: 99px; padding: .12rem .5rem;
}
.pcard-custom .pver {
  color: var(--gold); border-color: rgba(255,208,96,.35); background: rgba(30,20,4,.9);
}

/* RULES */
.rules-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: .9rem; }
.rule-card {
  background: linear-gradient(160deg, rgba(22,14,38,.9), rgba(12,6,22,.94));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1.2rem; transition: .2s; position: relative; overflow: hidden;
}
.rule-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
  opacity: 0; transition: .2s;
}
.rule-card:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(5,8,16,.5); }
.rule-card:hover::before { opacity: 1; }
.ricon {
  width: 44px; height: 44px; display: inline-grid; place-items: center;
  border-radius: 11px; border: 1px solid rgba(192,132,252,.25);
  color: var(--accent); background: rgba(24,8,40,.85);
  font-size: 1.2rem; margin-bottom: .9rem;
}
.rule-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .45rem; }
.rule-card p { font-size: .87rem; color: var(--muted); line-height: 1.65; }

/* ONLINE PLAYERS */
.online-section { background: var(--bg1); padding: 72px 0; }
.players-box {
  background: linear-gradient(160deg, rgba(22,14,38,.9), rgba(12,6,22,.94));
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.4rem 1.6rem;
  position: relative; overflow: hidden;
}
.players-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
}
.players-header {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 1.2rem; flex-wrap: wrap; gap: .6rem;
}
.players-title {
  display: flex; align-items: center; gap: .6rem;
  font-size: .92rem; font-weight: 700; color: var(--text);
}
.players-title i { color: var(--accent); }
.players-count-badge {
  background: rgba(192,132,252,.1);
  border: 1px solid rgba(192,132,252,.2);
  border-radius: 99px; padding: .25rem .8rem;
  font-size: .78rem; font-weight: 700; color: var(--accent);
  display: flex; align-items: center; gap: .4rem;
}
.players-count-badge .dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent); box-shadow: 0 0 5px var(--accent);
  animation: blink 1.2s ease infinite;
}
.players-count-badge.offline { color: var(--danger); border-color: rgba(255,107,134,.25); background: rgba(255,107,134,.08); }
.players-count-badge.offline .dot { background: var(--danger); box-shadow: 0 0 5px var(--danger); animation: none; }

.players-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: .55rem;
}
.player-chip {
  display: flex; align-items: center; gap: .55rem;
  background: rgba(14,8,22,.88); border: 1px solid var(--line);
  border-radius: 9px; padding: .48rem .7rem;
  transition: .15s;
}
.player-chip:hover { border-color: rgba(192,132,252,.3); background: rgba(20,10,34,.95); }
.player-avatar {
  width: 28px; height: 28px; border-radius: 5px;
  image-rendering: pixelated; flex-shrink: 0;
  background: rgba(192,132,252,.08); border: 1px solid var(--line);
}
.player-name {
  font-size: .84rem; font-weight: 600; color: #e9d5ff;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.players-empty, .players-offline {
  text-align: center; padding: 1.4rem 0;
  color: var(--muted); font-size: .9rem;
}
.players-empty i, .players-offline i {
  font-size: 1.6rem; display: block; margin-bottom: .6rem;
}
.players-empty i { color: var(--accent); opacity: .5; }
.players-offline i { color: var(--danger); opacity: .7; }

/* TEAM GRID */
.tgrid {
  display: grid; grid-template-columns: repeat(4,1fr); gap: .9rem;
}
.tcard {
  background: linear-gradient(160deg, rgba(22,14,38,.92), rgba(12,6,22,.96));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.4rem 1rem 1.1rem; text-align: center; transition: .2s;
  position: relative; overflow: hidden;
}
.tcard::after {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 3px;
}
.tcard.owner::after     { background: linear-gradient(90deg, #ffd060, #f59e0b); }
.tcard.admin::after     { background: linear-gradient(90deg, #a78bfa, #6d28d9); }
.tcard.developer::after { background: linear-gradient(90deg, #c084fc, #9333ea); }
.tcard:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.tavatar {
  position: relative; width: 88px; margin: 0 auto .9rem;
}
.tavatar img {
  width: 100%; border-radius: 12px; border: 1px solid var(--line);
  image-rendering: pixelated;
  background: rgba(192,132,252,.05);
}
.tdot {
  position: absolute; right: -2px; bottom: -2px;
  width: 13px; height: 13px; border-radius: 50%;
  border: 2px solid #08101b;
}
.tdot.on  { background: var(--accent); box-shadow: 0 0 6px var(--accent); }
.tdot.off { background: #555f7a; }

.tname { font-size: .93rem; font-weight: 700; margin-bottom: .35rem; }
.trole {
  display: inline-flex; align-items: center;
  border-radius: 99px; padding: .2rem .7rem;
  font-size: .76rem; font-weight: 700; border: 1px solid;
  margin-bottom: .6rem;
}
.r-owner { color: var(--gold);    border-color: rgba(255,208,96,.3);  background: rgba(20,15,3,.8); }
.r-admin { color: var(--accent2); border-color: rgba(167,139,250,.3); background: rgba(16,8,30,.8); }
.r-dev   { color: #c084fc;        border-color: rgba(192,132,252,.3); background: rgba(16,8,28,.8); }
.tdesc { font-size: .81rem; color: var(--muted); line-height: 1.6; }

/* RULE INFO BLOCKS */
.info-blocks {
  display: grid; grid-template-columns: 1fr 1fr; gap: .9rem;
  margin-top: 1.6rem;
}
.info-block {
  background: linear-gradient(160deg, rgba(22,14,38,.92), rgba(12,6,22,.96));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.3rem 1.4rem; position: relative; overflow: hidden;
}
.info-block::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
}
.info-warn::before { background: linear-gradient(90deg, transparent, #ff6b86, #ffd060, transparent); }
.info-join::before { background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent); }
.info-head {
  display: flex; align-items: center; gap: .65rem; margin-bottom: .9rem;
}
.info-head i {
  width: 38px; height: 38px; display: grid; place-items: center;
  border-radius: 10px; font-size: 1rem; flex-shrink: 0;
}
.info-warn .info-head i {
  color: var(--gold); background: rgba(255,208,96,.08);
  border: 1px solid rgba(255,208,96,.25);
}
.info-join .info-head i {
  color: var(--accent); background: rgba(192,132,252,.08);
  border: 1px solid rgba(192,132,252,.25);
}
.info-head h3 { font-size: 1rem; font-weight: 700; color: var(--text); }
.info-block ul { padding-left: 1.1rem; list-style: disc; }
.info-block ul li,
.info-block p { font-size: .87rem; color: var(--muted); line-height: 1.75; margin-bottom: .35rem; }
.info-block ul li::marker { color: var(--accent); }
.info-block strong { color: #e9d5ff; }

/* LINKS GRID */
.links-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: .9rem; }
.link-card {
  display: flex; align-items: center; gap: 1rem;
  background: linear-gradient(160deg, rgba(22,14,38,.92), rgba(12,6,22,.96));
  border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.2rem 1.4rem; transition: .2s;
  color: var(--text); position: relative; overflow: hidden;
}
.link-card::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
  opacity: 0; transition: .2s;
}
.link-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.link-card:hover::before { opacity: 1; }
.link-card:hover .lk-arrow { transform: translateX(4px); color: var(--accent); }
.lk-icon {
  width: 48px; height: 48px; display: inline-grid; place-items: center;
  border-radius: 12px; border: 1px solid var(--line);
  color: var(--accent2); background: rgba(14,21,35,.95);
  font-size: 1.3rem; flex-shrink: 0;
}
.link-card h3 { font-size: 1rem; font-weight: 700; margin-bottom: .25rem; }
.link-card p { font-size: .85rem; color: var(--muted); line-height: 1.5; }
.lk-arrow {
  margin-left: auto; color: var(--muted); font-size: .9rem; transition: .2s;
}

/* FOOTER */
footer {
  background: #080612; border-top: 1px solid var(--line);
  padding: 2.4rem 0 1.4rem; position: relative; z-index: 1;
}
.fgrid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 1.6rem; margin-bottom: 1.6rem; }
.fsec h4 { font-size: .87rem; font-weight: 700; margin-bottom: .7rem; color: var(--text); }
.fsec p, .fsec a { font-size: .83rem; color: var(--muted); line-height: 1.75; }
.fsec a { cursor: pointer; user-select: none; }
.fsec a:hover { color: var(--accent); }
.fsec ul li { margin-bottom: .35rem; }
.fip {
  display: inline-flex; align-items: center; gap: .4rem;
  margin-top: .7rem; font-size: .8rem; color: #d8b4fe; font-weight: 600;
}
.socrow { display: flex; gap: .45rem; margin-top: .8rem; }
.socbtn {
  width: 32px; height: 32px; display: inline-grid; place-items: center;
  border-radius: 8px; border: 1px solid var(--line);
  color: var(--muted); font-size: .82rem; transition: .15s;
}
.socbtn:hover { color: var(--accent); border-color: rgba(192,132,252,.3); }
.fbot {
  border-top: 1px solid var(--line); padding-top: 1rem;
  display: flex; justify-content: space-between; gap: 1rem; flex-wrap: wrap;
}
.fbot p { font-size: .78rem; color: #4a3560; }

/* ═══ ADMIN LOGIN ═══ */
.admin-login {
  display: flex; justify-content: center;
  padding: 2rem 1rem 1rem;
}
.login-box {
  width: min(420px, 100%);
  background: linear-gradient(160deg, rgba(22,14,38,.96), rgba(12,6,22,.98));
  border: 1px solid rgba(232,193,121,.25);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 50px rgba(0,0,0,.45), 0 0 40px rgba(192,132,252,.08);
}
.login-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
}
.login-icon {
  width: 64px; height: 64px; margin: 0 auto 1.2rem;
  display: grid; place-items: center;
  border-radius: 50%; font-size: 1.5rem;
  color: var(--gold);
  background: rgba(232,193,121,.08);
  border: 1px solid rgba(232,193,121,.3);
  box-shadow: 0 0 24px rgba(232,193,121,.18);
}
.login-box h3 {
  font-family: 'Press Start 2P', monospace;
  font-size: .95rem; color: var(--gold);
  margin-bottom: .55rem; letter-spacing: .04em;
}
.login-sub {
  font-size: .87rem; color: var(--muted);
  margin-bottom: 1.4rem; line-height: 1.55;
}
#login-form { display: flex; flex-direction: column; text-align: left; }
#login-form label {
  font-size: .72rem; font-weight: 700;
  color: var(--muted); letter-spacing: .08em;
  text-transform: uppercase;
  margin-bottom: .35rem; margin-top: .65rem;
}
#login-form input {
  background: rgba(8,4,16,.95);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .7rem .95rem;
  color: var(--text);
  font: 400 .92rem 'Inter', sans-serif;
  outline: none; transition: .15s;
}
#login-form input:focus {
  border-color: rgba(232,193,121,.45);
  box-shadow: 0 0 0 3px rgba(232,193,121,.08);
}
.login-err {
  display: none;
  font-size: .82rem; color: var(--danger);
  background: rgba(255,107,134,.08);
  border: 1px solid rgba(255,107,134,.25);
  border-radius: 8px;
  padding: .55rem .75rem;
  margin-top: .8rem;
}
.login-err.show { display: block; animation: fadeUp .2s ease; }

/* Admin status bar */
.admin-status {
  display: flex; align-items: center; justify-content: space-between;
  gap: .8rem; flex-wrap: wrap;
  background: linear-gradient(135deg, rgba(232,193,121,.06), rgba(77,208,196,.04));
  border: 1px solid rgba(232,193,121,.22);
  border-radius: var(--radius);
  padding: .7rem 1.1rem;
  margin-bottom: 1.4rem;
}
.status-info {
  display: flex; align-items: center; gap: .55rem;
  font-size: .88rem; color: var(--text); flex-wrap: wrap;
}
.status-info > i { color: var(--gold); font-size: 1rem; }
.status-info strong { color: var(--gold); font-weight: 700; }
.status-role {
  font-size: .7rem; font-weight: 700;
  color: var(--teal); letter-spacing: .06em;
  background: rgba(77,208,196,.08);
  border: 1px solid rgba(77,208,196,.25);
  border-radius: 99px;
  padding: .15rem .55rem;
  text-transform: uppercase;
}
.btn-logout {
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: .45rem .9rem;
  font: 600 .82rem 'Inter', sans-serif;
  cursor: pointer; transition: .15s;
  display: inline-flex; align-items: center;
}
.btn-logout:hover {
  color: var(--danger);
  border-color: rgba(255,107,134,.3);
  background: rgba(255,107,134,.05);
}

/* ═══ ADMIN / WIKI ═══ */
.wiki-wrap {
  display: grid; grid-template-columns: 230px 1fr; gap: 1.2rem;
}
.wiki-side {
  background: rgba(16,10,28,.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: .5rem;
  position: sticky; top: 88px; align-self: start;
  display: flex; flex-direction: column; gap: .15rem;
}
.wtab {
  display: flex; align-items: center; gap: .55rem;
  padding: .65rem .8rem; border-radius: 9px;
  font-size: .86rem; font-weight: 600; color: var(--muted);
  cursor: pointer; transition: .15s;
  border: none; background: none; width: 100%; text-align: left;
  font-family: inherit;
}
.wtab:hover { background: rgba(20,28,44,.95); color: var(--text); }
.wtab.active {
  background: rgba(192,132,252,.08);
  color: var(--gold);
  border-left: 3px solid var(--gold);
  padding-left: calc(.8rem - 3px);
}
.wtab i { width: 18px; text-align: center; }

.wiki-main { min-width: 0; }
.wsec { display: none; }
.wsec.active { display: block; animation: fadeUp .25s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }

.wcard-intro {
  background: linear-gradient(135deg, rgba(232,193,121,.08), rgba(77,208,196,.05));
  border: 1px solid rgba(232,193,121,.2);
  border-radius: var(--radius);
  padding: .9rem 1.1rem;
  margin-bottom: .8rem;
  color: #e9d5ff; font-size: .88rem;
}
.wcard-intro code {
  background: rgba(6,10,18,.9); color: var(--gold);
  padding: .1rem .4rem; border-radius: 5px;
  border: 1px solid var(--line); font-size: .82rem;
}

.wcard {
  background: rgba(16,10,28,.88);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
  margin-bottom: .7rem;
}
.wcard h4 {
  font-size: .95rem; font-weight: 700;
  margin-bottom: .8rem;
  color: var(--text);
  display: flex; align-items: center; gap: .55rem;
  padding-bottom: .55rem;
  border-bottom: 1px solid var(--line);
}
.wcard h4 i { color: var(--accent); }
.wcard p { font-size: .87rem; color: var(--muted); line-height: 1.7; }
.wcard > p { margin-bottom: .3rem; }
.wcard code {
  background: rgba(6,10,18,.9); color: var(--gold);
  padding: .1rem .4rem; border-radius: 5px;
  border: 1px solid var(--line); font-size: .82rem;
  font-family: 'Consolas', 'Courier New', monospace;
}

.perm-badge {
  display: inline-flex; margin-left: .5rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .04em;
  color: var(--gold);
  background: rgba(232,193,121,.1);
  border: 1px solid rgba(232,193,121,.25);
  border-radius: 99px;
  padding: .1rem .55rem;
  font-family: 'Consolas', monospace;
}

.cmdlist { list-style: none; padding: 0; display: grid; gap: .45rem; }
.cmditem {
  display: flex; align-items: flex-start; gap: .8rem;
  background: rgba(14,8,22,.88);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .65rem .85rem;
  transition: .15s;
}
.cmditem:hover { border-color: rgba(232,193,121,.25); background: rgba(20,12,32,.95); }
.cmditem code {
  display: inline-block; flex-shrink: 0;
  padding: .15rem .55rem;
  background: rgba(6,10,18,.95);
  color: var(--teal-soft);
  border: 1px solid rgba(77,208,196,.2);
  border-radius: 6px;
  font-size: .82rem;
  font-family: 'Consolas', 'Courier New', monospace;
  min-width: 180px;
  white-space: nowrap; overflow-x: auto;
  scrollbar-width: thin;
}
.cmditem p { margin: 0; color: var(--muted); font-size: .85rem; line-height: 1.55; }

@media (max-width: 820px) {
  .wiki-wrap { grid-template-columns: 1fr; }
  .wiki-side {
    position: static; flex-direction: row; overflow-x: auto;
    gap: .3rem; padding: .4rem;
  }
  .wtab { flex-shrink: 0; padding: .5rem .7rem; font-size: .8rem; }
  .wtab.active { border-left: none; border-bottom: 2px solid var(--gold); padding-left: .7rem; }
  .cmditem { flex-direction: column; gap: .4rem; }
  .cmditem code { min-width: auto; max-width: 100%; }
}

/* ═══ LEGAL MODALS (Impressum & Datenschutz) ═══ */
.legal-overlay {
  position: fixed; inset: 0; z-index: 998;
  background: rgba(4,2,10,.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex; align-items: center; justify-content: center;
  padding: 1.2rem;
  animation: legalFade .2s ease;
}
.legal-overlay[hidden] { display: none; }
@keyframes legalFade { from { opacity: 0; } to { opacity: 1; } }

.legal-box {
  width: min(780px, 100%);
  max-height: 90vh;
  display: flex; flex-direction: column;
  background: linear-gradient(160deg, #110a20, #0c061a);
  border: 1px solid rgba(192,132,252,.22);
  border-radius: 18px;
  box-shadow: 0 30px 80px rgba(0,0,0,.7);
  overflow: hidden;
  position: relative;
}
.legal-box::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: linear-gradient(90deg, transparent, var(--gold), var(--accent), var(--teal), transparent);
}
.legal-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.2rem 1.6rem;
  border-bottom: 1px solid var(--line);
  flex-shrink: 0;
}
.legal-head h2 {
  font-family: 'Press Start 2P', monospace;
  font-size: .85rem;
  color: var(--gold);
  letter-spacing: .04em;
  display: flex; align-items: center;
}
.legal-close {
  background: transparent;
  border: 1px solid var(--line);
  color: var(--muted);
  width: 32px; height: 32px;
  border-radius: 8px;
  font-size: 1.3rem; line-height: 1;
  cursor: pointer; transition: .15s;
  display: grid; place-items: center;
}
.legal-close:hover { color: var(--danger); border-color: rgba(255,107,134,.3); }

.legal-body {
  padding: 1.6rem 1.8rem 1.8rem;
  overflow-y: auto;
  font-size: .9rem; color: var(--muted); line-height: 1.7;
}
.legal-body h3 {
  font-size: 1rem; font-weight: 700;
  color: var(--gold);
  margin: 1.4rem 0 .55rem;
  letter-spacing: .02em;
}
.legal-body h3:first-child { margin-top: 0; }
.legal-body h4 {
  font-size: .9rem; font-weight: 700;
  color: var(--teal);
  margin: 1rem 0 .35rem;
}
.legal-body p { margin-bottom: .6rem; }
.legal-body ul {
  list-style: disc; padding-left: 1.3rem;
  margin-bottom: .6rem;
}
.legal-body ul li { margin-bottom: .3rem; }
.legal-body ul li::marker { color: var(--accent); }
.legal-body a { color: var(--accent); text-decoration: none; word-break: break-word; }
.legal-body a:hover { color: var(--gold); text-decoration: underline; }
.legal-body code {
  background: rgba(6,10,18,.95);
  color: var(--teal-soft);
  border: 1px solid var(--line);
  border-radius: 5px;
  padding: .08rem .4rem;
  font-size: .82rem;
  font-family: 'Consolas', 'Courier New', monospace;
}
.legal-divider {
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--line), transparent);
  margin: 1.6rem 0 .4rem;
}
.legal-stand {
  margin-top: 1.6rem;
  font-size: .76rem;
  color: rgba(139,149,181,.5);
  text-align: center;
}

/* Custom scrollbar for legal modal */
.legal-body::-webkit-scrollbar { width: 8px; }
.legal-body::-webkit-scrollbar-track { background: rgba(0,0,0,.2); }
.legal-body::-webkit-scrollbar-thumb {
  background: rgba(192,132,252,.25); border-radius: 4px;
}
.legal-body::-webkit-scrollbar-thumb:hover { background: rgba(192,132,252,.4); }

@media (max-width: 600px) {
  .legal-overlay { padding: .5rem; }
  .legal-box { border-radius: 12px; max-height: 95vh; }
  .legal-head { padding: 1rem 1.2rem; }
  .legal-head h2 { font-size: .72rem; }
  .legal-body { padding: 1.2rem 1.3rem 1.4rem; font-size: .85rem; }
}

/* MUSIC PLAYER */
#music-player {
  position: fixed; bottom: 1.5rem; right: 1.5rem; z-index: 500;
  display: flex; align-items: center; gap: .6rem;
  background: linear-gradient(135deg, rgba(20,10,36,.97), rgba(12,6,22,.98));
  border: 1px solid rgba(192,132,252,.25); border-radius: 99px;
  padding: .45rem .9rem .45rem .5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,.5);
  transition: .3s;
  backdrop-filter: blur(12px);
}
#music-player:hover { border-color: rgba(192,132,252,.45); }
.mp-btn {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  background: rgba(192,132,252,.12); border: 1px solid rgba(192,132,252,.25);
  color: var(--accent); font-size: .85rem;
  display: grid; place-items: center; cursor: pointer;
  transition: .15s;
}
.mp-btn:hover { background: rgba(192,132,252,.22); }
.mp-info { display: flex; flex-direction: column; }
.mp-title { font-size: .72rem; font-weight: 700; color: #e9d5ff; white-space: nowrap; max-width: 140px; overflow: hidden; text-overflow: ellipsis; }
.mp-sub   { font-size: .65rem; color: var(--muted); }
.mp-vol {
  width: 60px; accent-color: var(--accent); cursor: pointer;
  height: 3px;
}
@media (max-width: 600px) {
  #music-player { bottom: 1rem; right: 1rem; padding: .35rem .6rem .35rem .4rem; }
  .mp-info { display: none; }
  .mp-vol { width: 50px; }
}

/* TOAST */
#toast {
  position: fixed; bottom: -54px; left: 50%; transform: translateX(-50%);
  background: rgba(12,17,28,.97); border: 1px solid rgba(192,132,252,.28);
  border-radius: 10px; padding: .7rem 1.5rem;
  font-size: .87rem; font-weight: 700; color: var(--accent);
  z-index: 9999; white-space: nowrap;
  box-shadow: 0 8px 32px rgba(0,0,0,.5);
  transition: bottom .3s cubic-bezier(.34,1.56,.64,1);
}
#toast.show { bottom: 1.4rem; }

/* RESPONSIVE */
@media (max-width: 1060px) {
  .feat-grid, .pgrid { grid-template-columns: repeat(2,1fr); }
  .rules-grid { grid-template-columns: repeat(2,1fr); }
  .tgrid { grid-template-columns: repeat(3,1fr); }
  .fgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 820px) {
  .nav-links { display: none; }
  .hamburger { display: flex; }
  .links-grid { grid-template-columns: 1fr; }
  .info-blocks { grid-template-columns: 1fr; }
  .tgrid { grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .feat-grid, .pgrid { grid-template-columns: 1fr; }
  .rules-grid { grid-template-columns: 1fr; }
  .stats-strip { flex-wrap: wrap; }
  .sbox { flex: 1 1 80px; }
  .fgrid { grid-template-columns: 1fr; }
  .fbot { flex-direction: column; }
  .ip-value { font-size: .65rem; }
  .nav-right .online-pill { display: none; }
  .hero-inner { padding: 80px 1rem 60px; }
}
