:root {
  --bg: #080914;
  --surface: rgba(19, 21, 39, .78);
  --surface-solid: #151729;
  --surface-2: rgba(255, 255, 255, .045);
  --surface-3: rgba(255, 255, 255, .08);
  --border: rgba(255, 255, 255, .085);
  --border-strong: rgba(255, 255, 255, .16);
  --text: #eef0fb;
  --text-2: #a4a8c3;
  --text-3: #6c7093;
  --accent: #8b6cff;
  --accent-2: #3fb8ff;
  --accent-3: #ff6fb5;
  --accent-soft: rgba(139, 108, 255, .16);
  --grad: linear-gradient(120deg, #8b6cff 0%, #5a8cff 50%, #3fb8ff 100%);
  --ok: #4ade9b;
  --off: #ff6b7d;
  --danger: #ff6b7d;
  --radius: 18px;
  --sidebar: 288px;
  --sidebar-mini: 84px;
  --shadow: 0 10px 40px rgba(0, 0, 0, .35);
  --ease: cubic-bezier(.22, .8, .3, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font: 16.5px/1.65 Inter, system-ui, sans-serif;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
a { color: #b6a6ff; }
h1, h2, h3 { margin: 0; letter-spacing: -.025em; }
.muted { color: var(--text-2); }
.small { font-size: 14px; }
[hidden] { display: none !important; }
::selection { background: rgba(139, 108, 255, .45); }

/* ---------- Hintergrund ---------- */
#waves {
  position: fixed; inset: 0; z-index: -2;
  width: 100vw; height: 100vh; display: block;
}
.bg-glow {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(600px 400px at var(--gx, 70%) var(--gy, 20%), rgba(139, 108, 255, .14), transparent 70%),
    radial-gradient(900px 600px at 10% 110%, rgba(63, 184, 255, .10), transparent 70%);
  transition: background-position 1s;
}

/* ---------- Sidebar ---------- */
.sidebar {
  position: fixed; inset: 0 auto 0 0; z-index: 30;
  width: var(--sidebar);
  display: flex; flex-direction: column;
  padding: 26px 16px;
  background: rgba(12, 13, 26, .55);
  backdrop-filter: blur(22px) saturate(140%);
  -webkit-backdrop-filter: blur(22px) saturate(140%);
  border-right: 1px solid var(--border);
  transition: width .5s var(--ease), transform .5s var(--ease);
}
.brand { display: flex; align-items: center; gap: 14px; padding: 2px 10px 22px; text-decoration: none; color: var(--text); }
.brand-mark {
  width: 50px; height: 50px; flex-shrink: 0; display: block;
  filter: drop-shadow(0 6px 18px rgba(170, 90, 255, .45));
  animation: markFloat 5s ease-in-out infinite;
  transition: transform .5s var(--spring), filter .4s;
}
.brand:hover .brand-mark { transform: rotate(-8deg) scale(1.08); filter: drop-shadow(0 8px 24px rgba(236, 90, 200, .6)); }
.brand-name { font-weight: 700; font-size: 21px; white-space: nowrap; }

.nav { position: relative; display: flex; flex-direction: column; gap: 3px; overflow-y: auto; overflow-x: hidden; margin: 0 -6px; padding: 0 6px; scrollbar-width: none; }
.nav::-webkit-scrollbar { display: none; }
.nav-group {
  padding: 16px 16px 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3);
  white-space: nowrap; transition: opacity .25s;
}
.nav-link {
  position: relative; z-index: 1;
  display: flex; align-items: center; gap: 15px;
  min-height: 48px; padding: 0 16px; border-radius: 13px;
  color: var(--text-2); text-decoration: none; font-weight: 500; font-size: 15.5px; white-space: nowrap;
  transition: color .25s, transform .3s var(--ease);
}
.nav-link span { overflow: hidden; text-overflow: ellipsis; }
.nav-link:hover { color: var(--text); transform: translateX(3px); }
.nav-link.active { color: #fff; }
.nav-link.active svg { color: #c8bbff; }
.nav-link svg { transition: transform .4s var(--spring); }
.nav-link:hover svg { transform: scale(1.15) rotate(-6deg); }
.nav-indicator {
  position: absolute; left: 6px; right: 6px; top: 0; height: 48px;
  border-radius: 13px;
  background: linear-gradient(120deg, rgba(139, 108, 255, .28), rgba(63, 184, 255, .14));
  border: 1px solid rgba(139, 108, 255, .3);
  box-shadow: 0 6px 24px rgba(139, 108, 255, .18);
  transition: transform .55s var(--spring), opacity .3s;
}
.nav-indicator::before {
  content: ""; position: absolute; left: -11px; top: 12px; bottom: 12px; width: 4px;
  border-radius: 0 4px 4px 0; background: var(--grad);
  box-shadow: 0 0 12px var(--accent);
}

.sidebar-foot { margin-top: auto; padding-top: 14px; display: flex; align-items: center; gap: 8px; }
.user-chip {
  flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px;
  padding: 9px; border-radius: 13px; background: var(--surface-2); border: 1px solid var(--border);
  text-decoration: none; transition: background .2s, border-color .2s;
}
.user-chip:hover { background: var(--surface-3); border-color: var(--border-strong); }
.user-chip-name { font-size: 14px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar {
  width: 34px; height: 34px; border-radius: 9px; flex-shrink: 0;
  display: grid; place-items: center; overflow: hidden;
  background: var(--surface-3); color: var(--text-2); font-weight: 600; font-size: 14px;
}
.avatar img { width: 100%; height: 100%; image-rendering: pixelated; }
.avatar.big { width: 68px; height: 68px; border-radius: 16px; font-size: 24px; box-shadow: 0 8px 24px rgba(0, 0, 0, .4); }
.collapse-btn {
  width: 40px; height: 40px; border: 0; border-radius: 12px; cursor: pointer;
  display: grid; place-items: center; background: transparent; color: var(--text-3);
  transition: background .2s, color .2s, transform .5s var(--ease);
}
.collapse-btn:hover { background: var(--surface-3); color: var(--text); }

/* eingeklappt */
.collapsed .sidebar { width: var(--sidebar-mini); }
.collapsed .brand { padding-left: 1px; }
.collapsed .brand-name,
.collapsed .nav-link span,
.collapsed .nav-group,
.collapsed .user-chip { opacity: 0; pointer-events: none; }
.collapsed .nav-group { height: 14px; padding: 0; }
.collapsed .sidebar-foot { justify-content: center; }
.collapsed .user-chip { position: absolute; }
.collapsed .collapse-btn { transform: rotate(180deg); }
.brand-name, .nav-link span, .user-chip { transition: opacity .25s; }
.nav-group { transition: opacity .25s, height .4s var(--ease), padding .4s var(--ease); }
.collapsed .content { margin-left: var(--sidebar-mini); }

.menu-btn {
  display: none; position: fixed; top: 16px; left: 16px; z-index: 25;
  width: 48px; height: 48px; border: 1px solid var(--border); border-radius: 14px;
  background: rgba(20, 22, 40, .7); backdrop-filter: blur(14px); color: var(--text); cursor: pointer; box-shadow: var(--shadow);
  place-items: center;
}
.backdrop {
  position: fixed; inset: 0; z-index: 29; background: rgba(4, 5, 12, .55);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}

/* ---------- Inhalt / Seiten ---------- */
.content {
  margin-left: var(--sidebar);
  padding: 0 64px;
  min-height: 100vh;
  display: flex; flex-direction: column;
  transition: margin-left .5s var(--ease);
}
.content > * { width: 100%; max-width: 1180px; margin-inline: auto; }
.page { display: none; padding: 80px 0 32px; }
.page.active { display: block; }
.page.leaving { display: block; animation: pageOut .28s var(--ease) forwards; }

.page.active .anim,
.page.active .item-grid > *,
.page.active .gallery > * {
  animation: rise .75s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 70ms + 60ms);
}
@keyframes rise {
  from { opacity: 0; transform: translateY(26px) scale(.98); filter: blur(6px); }
  to { opacity: 1; transform: none; filter: none; }
}
@keyframes pageOut { to { opacity: 0; transform: translateY(-12px); filter: blur(4px); } }

.page-head { margin-bottom: 30px; }
.page-head h2 {
  font-size: clamp(32px, 3.6vw, 44px); font-weight: 800;
  background: linear-gradient(180deg, #fff 30%, #b9bde0); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { margin: 8px 0 0; color: var(--text-2); font-size: 17.5px; }

/* Hero */
.hero { position: relative; min-height: 100vh; flex-direction: column; justify-content: center; padding-top: 40px; }
.hero.active { display: flex; }
.eyebrow {
  align-self: flex-start;
  margin: 0 0 18px; padding: 6px 14px; border-radius: 999px;
  background: var(--accent-soft); border: 1px solid rgba(139, 108, 255, .3);
  color: #c9bdff; font-weight: 600; font-size: 13px; letter-spacing: .12em; text-transform: uppercase;
}
.hero h1 { font-size: clamp(44px, 7vw, 92px); line-height: 1.02; font-weight: 800; letter-spacing: -.04em; }
.gradient-text {
  background: linear-gradient(100deg, #a68bff, #5f9bff, #3fd0ff, #ff7cc0, #a68bff);
  background-size: 300% 100%;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  animation: gradShift 8s linear infinite;
}
.lead { max-width: 640px; margin: 24px 0 36px; font-size: 20px; color: var(--text-2); }
.hero-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.quick-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 64px; }
.quick { display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--text); padding: 22px; }
.quick-icon { font-size: 30px; margin-bottom: 10px; display: inline-block; transition: transform .5s var(--spring); }
.quick:hover .quick-icon { transform: scale(1.25) rotate(-10deg); }
.quick strong { font-size: 18px; }
.quick small { color: var(--text-2); font-size: 14px; }

.hero-cubes { position: absolute; inset: 0; pointer-events: none; z-index: -1; }
.hero-cubes span {
  position: absolute; width: 46px; height: 46px; border-radius: 10px;
  background: linear-gradient(135deg, rgba(139, 108, 255, .5), rgba(63, 184, 255, .25));
  border: 1px solid rgba(255, 255, 255, .15);
  box-shadow: 0 10px 40px rgba(139, 108, 255, .25), inset 0 1px 0 rgba(255, 255, 255, .2);
  animation: cubeFloat 9s ease-in-out infinite;
}
.hero-cubes span:nth-child(1) { top: 14%; right: 8%; }
.hero-cubes span:nth-child(2) { top: 34%; right: 22%; width: 26px; height: 26px; animation-delay: -2s; animation-duration: 11s; }
.hero-cubes span:nth-child(3) { top: 62%; right: 6%; width: 64px; height: 64px; animation-delay: -4s; animation-duration: 13s; background: linear-gradient(135deg, rgba(63, 184, 255, .45), rgba(255, 111, 181, .2)); }
.hero-cubes span:nth-child(4) { top: 8%; right: 36%; width: 18px; height: 18px; animation-delay: -6s; }
.hero-cubes span:nth-child(5) { top: 48%; right: 34%; width: 34px; height: 34px; animation-delay: -1s; animation-duration: 12s; background: linear-gradient(135deg, rgba(255, 111, 181, .4), rgba(139, 108, 255, .2)); }
.hero-cubes span:nth-child(6) { top: 80%; right: 26%; width: 22px; height: 22px; animation-delay: -3s; }
@keyframes cubeFloat {
  0%, 100% { transform: translateY(0) rotate(12deg); }
  50% { transform: translateY(-28px) rotate(-8deg); }
}
@keyframes gradShift { 0% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } 100% { background-position: 0% 50%; } }
@keyframes markFloat { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-3px); } }

.status {
  display: inline-flex; align-items: center; gap: 11px;
  height: 50px; padding: 0 20px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--border); font-size: 15px; color: var(--text-2);
}
.dot { position: relative; width: 10px; height: 10px; border-radius: 50%; background: var(--text-3); }
.status.online .dot { background: var(--ok); }
.status.online .dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok);
  animation: ping 1.8s var(--ease) infinite;
}
.status.offline .dot { background: var(--off); }
@keyframes ping { from { transform: scale(1); opacity: .8; } to { transform: scale(3.2); opacity: 0; } }

/* Karten mit Glas-Effekt und Licht, das der Maus folgt */
.card {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s var(--ease);
}
.card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(139, 108, 255, .14), transparent 45%);
  opacity: 0; transition: opacity .4s;
}
.card:hover::before { opacity: 1; }
.card.lift:hover, a.card:hover {
  transform: translateY(-6px);
  border-color: rgba(139, 108, 255, .35);
  box-shadow: 0 22px 50px rgba(0, 0, 0, .45), 0 0 0 1px rgba(139, 108, 255, .1), 0 10px 40px rgba(139, 108, 255, .15);
}
.label { display: block; font-size: 12.5px; font-weight: 600; color: var(--text-3); text-transform: uppercase; letter-spacing: .09em; }

/* Buttons & Inputs */
.btn {
  position: relative; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  height: 50px; padding: 0 24px; border: 1px solid transparent; border-radius: 14px;
  background: var(--grad); background-size: 160% 100%; color: #fff; font: inherit; font-weight: 600; font-size: 15.5px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: 0 8px 26px rgba(110, 100, 255, .35);
  transition: transform .3s var(--spring), box-shadow .3s, background-position .5s, opacity .2s;
}
.btn::after {
  content: ""; position: absolute; top: 0; left: -80%; width: 50%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .35), transparent);
  transform: skewX(-20deg); transition: left .7s var(--ease);
}
.btn:hover { transform: translateY(-2px); background-position: 100% 0; box-shadow: 0 14px 34px rgba(110, 100, 255, .5); }
.btn:hover::after { left: 130%; }
.btn:active { transform: scale(.96); }
.btn.ghost { background: var(--surface-2); color: var(--text); border-color: var(--border-strong); box-shadow: none; }
.btn.ghost:hover { background: var(--surface-3); border-color: rgba(139, 108, 255, .5); }
.btn.danger { background: rgba(255, 107, 125, .14); color: #ffb3bd; border-color: rgba(255, 107, 125, .3); box-shadow: none; }
.btn svg { width: 19px; height: 19px; }
.btn:disabled { opacity: .5; cursor: default; transform: none; }
.small-btn { height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }

input, select {
  width: 100%; height: 50px; padding: 0 15px; margin-top: 7px;
  border: 1px solid var(--border); border-radius: 13px; background: rgba(0, 0, 0, .25);
  font: inherit; font-size: 15.5px; color: var(--text); outline: none;
  transition: border-color .2s, background .2s, box-shadow .2s;
}
select { cursor: pointer; }
select option { background: var(--surface-solid); }
input[type=file] { padding: 11px 12px; font-size: 14px; color: var(--text-2); }
input[type=file]::file-selector-button {
  margin-right: 12px; padding: 4px 12px; border: 0; border-radius: 8px;
  background: var(--surface-3); color: var(--text); font: inherit; cursor: pointer;
}
input:focus, select:focus { border-color: var(--accent); background: rgba(0, 0, 0, .35); box-shadow: 0 0 0 4px rgba(139, 108, 255, .2); }
input::placeholder { color: var(--text-3); }
label { font-size: 14px; font-weight: 500; color: var(--text-2); }

.form-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 16px; align-items: end; margin-top: 26px; }
.form-grid h3 { grid-column: 1 / -1; font-size: 18px; display: flex; align-items: center; gap: 10px; }
.form-grid h3::before { content: "Admin"; padding: 2px 9px; border-radius: 999px; background: var(--accent-soft); color: #c9bdff; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.form-grid .wide { grid-column: 1 / -1; }
.form-grid p { margin: 0; }
.admin-only { display: none; border-style: dashed; border-color: rgba(139, 108, 255, .3); }
.is-admin .admin-only { display: grid; }
.logged-in-only { display: none; }
.is-auth .logged-in-only { display: flex; }
.is-auth .logged-out-only { display: none; }
.stack { display: flex; flex-direction: column; gap: 16px; }

/* Filter-Chips */
.chips { display: flex; flex-wrap: wrap; gap: 9px; margin-bottom: 22px; }
.chip {
  height: 40px; padding: 0 17px; border-radius: 999px; cursor: pointer;
  border: 1px solid var(--border); background: var(--surface);
  color: var(--text-2); font: inherit; font-size: 14.5px; font-weight: 500;
  transition: color .2s, background .3s, border-color .3s, transform .3s var(--spring);
}
.chip:hover { color: var(--text); transform: translateY(-2px); }
.chip.active { color: #fff; background: var(--grad); border-color: transparent; box-shadow: 0 6px 20px rgba(110, 100, 255, .35); }
.chip .count { margin-left: 6px; opacity: .65; font-size: 12.5px; }

/* IP */
.ip-card { display: flex; align-items: center; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding: 32px; }
.ip-card-2 { margin-top: 16px; padding: 24px 32px; }
.ip-card-2 .ip { font-size: clamp(20px, 2.4vw, 28px); }
.ip { display: block; margin-top: 6px; font: 700 clamp(24px, 3vw, 36px)/1.25 "JetBrains Mono", monospace; word-break: break-all;
  background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 16px; margin-top: 16px; }
.fact strong { display: block; margin-top: 6px; font-size: 24px; font-weight: 700; }

/* Listen (Mods, Packs, Cosmetics) */
.toolbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 18px; }
.search { position: relative; flex: 1; max-width: 420px; }
.search svg { position: absolute; left: 15px; top: 50%; transform: translateY(-50%); color: var(--text-3); width: 20px; }
.search input { margin: 0; padding-left: 46px; background: var(--surface); }
.item-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 18px; }
.item { display: flex; flex-direction: column; gap: 9px; }
.item-top { display: flex; align-items: baseline; gap: 10px; padding-right: 30px; }
.item-top strong { font-size: 18px; }
.item-ver { font: 500 13px "JetBrains Mono", monospace; color: var(--text-3); }
.item p { margin: 0; font-size: 15px; color: var(--text-2); }
.item-thumb { margin: -26px -26px 8px; aspect-ratio: 16 / 9; border-radius: var(--radius) var(--radius) 0 0; overflow: hidden; background: var(--surface-2); }
.item-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .7s var(--ease); }
.item:hover .item-thumb img { transform: scale(1.06); }
.item-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: auto; padding-top: 8px; }
.item-actions a { font-size: 14.5px; font-weight: 600; text-decoration: none; }
.item-actions a:hover { text-decoration: underline; }
.tag { align-self: flex-start; padding: 3px 12px; border-radius: 999px; background: var(--accent-soft); color: #cbbfff; font-size: 12.5px; font-weight: 600; }
.tag.shader { background: rgba(63, 184, 255, .15); color: #9ddcff; }
.icon-btn {
  position: absolute; top: 14px; right: 14px; z-index: 2; width: 32px; height: 32px;
  border: 0; border-radius: 10px; background: rgba(0, 0, 0, .35); color: var(--text-2); cursor: pointer;
  display: grid; place-items: center; font-size: 20px; line-height: 1; backdrop-filter: blur(8px);
  transition: background .2s, color .2s, transform .3s var(--spring);
}
.icon-btn:hover { background: rgba(255, 107, 125, .25); color: #ffb3bd; transform: rotate(90deg); }
.empty { grid-column: 1 / -1; padding: 54px 24px; text-align: center; color: var(--text-3); border: 1px dashed var(--border-strong); border-radius: var(--radius); }

/* Medien-Uploads */
.upload { flex-direction: column; gap: 16px; margin-top: 24px; }
.drop {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  padding: 34px; border: 1.5px dashed var(--border-strong); border-radius: 15px;
  color: var(--text-2); cursor: pointer; text-align: center; transition: border-color .25s, background .25s, transform .3s var(--spring);
}
.drop:hover, .drop.over { border-color: var(--accent); background: var(--accent-soft); }
.drop.over { transform: scale(1.015); }
.drop svg { width: 32px; height: 32px; color: #b6a6ff; transition: transform .4s var(--spring); }
.drop:hover svg { transform: translateY(-4px); }
.drop small { color: var(--text-3); }
.upload-row { display: flex; gap: 12px; }
.upload-row input, .upload-row select { margin: 0; }
.upload-row select { width: auto; min-width: 140px; }
.progress { height: 4px; border-radius: 4px; background: var(--surface-2); overflow: hidden; opacity: 0; transition: opacity .3s; }
.progress.on { opacity: 1; }
.progress span { display: block; height: 100%; width: 0; background: var(--grad); transition: width .2s; }
.hint { color: var(--text-2); margin: 0 0 22px; }
.media .hint { margin: 24px 0 0; }

.gallery { columns: 3 280px; column-gap: 18px; }
.shot {
  position: relative; break-inside: avoid; margin: 0 0 18px;
  border-radius: 16px; overflow: hidden; background: var(--surface); border: 1px solid var(--border);
  transition: transform .45s var(--ease), border-color .3s, box-shadow .45s;
}
.shot:hover { transform: translateY(-5px); border-color: rgba(139, 108, 255, .35); box-shadow: 0 20px 44px rgba(0, 0, 0, .45); }
.shot.zoom { cursor: zoom-in; }
.shot img, .shot video { display: block; width: 100%; transition: transform .7s var(--ease); }
.shot.zoom:hover img { transform: scale(1.05); }
.shot video { background: #000; max-height: 520px; }
.shot-media { overflow: hidden; }
.video-wrap { position: relative; }
.fs-btn {
  position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px;
  display: grid; place-items: center; border: 0; border-radius: 10px; cursor: pointer;
  background: rgba(8, 9, 20, .65); color: #fff; backdrop-filter: blur(8px);
  opacity: 0; transition: opacity .25s, transform .3s var(--spring), background .2s;
}
.fs-btn svg { width: 20px; height: 20px; }
.shot:hover .fs-btn, .fs-btn:focus-visible { opacity: 1; }
.fs-btn:hover { transform: scale(1.12); background: var(--accent); }
@media (hover: none) { .fs-btn { opacity: 1; } }
.shot:has(.video-wrap) > .icon-btn { right: 58px; }
.shot-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 15px; font-size: 14px; color: var(--text-2); }
.shot-meta span:first-child { color: var(--text); font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.shot-meta span:last-child { flex-shrink: 0; font-size: 13px; }
.shot .icon-btn { opacity: 0; }
.shot:hover .icon-btn { opacity: 1; }
.shot .tag { position: absolute; top: 14px; left: 14px; z-index: 2; backdrop-filter: blur(8px); background: rgba(20, 22, 40, .7); }

/* YouTube-Vorschau */
.yt { position: relative; aspect-ratio: 16 / 9; background: #000; cursor: pointer; }
.yt img { width: 100%; height: 100%; object-fit: cover; opacity: .85; }
.yt iframe { width: 100%; height: 100%; border: 0; display: block; }
.play {
  position: absolute; inset: 0; margin: auto; width: 68px; height: 68px; border-radius: 50%;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 10px 30px rgba(110, 100, 255, .55);
  transition: transform .35s var(--spring);
}
.play svg { width: 28px; height: 28px; fill: currentColor; stroke: none; margin-left: 4px; }
.yt:hover .play { transform: scale(1.12); }
.link-card { display: flex; align-items: center; gap: 12px; padding: 24px 15px 6px; }

/* Sound-Karten */
.sound { display: flex; align-items: center; gap: 16px; padding: 20px 18px 6px; }
.sound-btn {
  position: relative; width: 60px; height: 60px; border-radius: 50%; border: 0; cursor: pointer; flex-shrink: 0;
  display: grid; place-items: center; background: var(--grad); color: #fff;
  box-shadow: 0 8px 26px rgba(110, 100, 255, .45);
  transition: transform .35s var(--spring);
}
.sound-btn:hover { transform: scale(1.08); }
.sound-btn:active { transform: scale(.94); }
.sound-btn svg { width: 24px; height: 24px; fill: currentColor; stroke: none; }
.sound-btn .i-pause { display: none; }
.sound.playing .sound-btn .i-play { display: none; }
.sound.playing .sound-btn .i-pause { display: block; }
.sound.playing .sound-btn::before {
  content: ""; position: absolute; inset: -6px; border-radius: 50%; border: 2px solid var(--accent);
  animation: ping 1.4s var(--ease) infinite;
}
.sound-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.bars { display: flex; align-items: flex-end; gap: 3px; height: 34px; }
.bars i { flex: 1; border-radius: 3px; background: linear-gradient(180deg, var(--accent-2), var(--accent)); height: var(--h, 30%); opacity: .45; transform-origin: bottom; transition: opacity .3s; }
.sound.playing .bars i { opacity: 1; animation: eq .9s ease-in-out infinite alternate; animation-delay: calc(var(--d) * -1s); }
@keyframes eq { from { transform: scaleY(.25); } to { transform: scaleY(1); } }
.sound-time { height: 4px; border-radius: 4px; background: var(--surface-3); overflow: hidden; cursor: pointer; }
.sound-time span { display: block; height: 100%; width: 0; background: var(--grad); }

.lightbox {
  position: fixed; inset: 0; z-index: 50; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 14px;
  padding: 40px; background: rgba(5, 6, 14, .86); backdrop-filter: blur(14px);
  opacity: 0; pointer-events: none; transition: opacity .35s;
}
.lightbox.open { opacity: 1; pointer-events: auto; }
.lightbox img { max-width: 100%; max-height: 84vh; border-radius: 14px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); transform: scale(.92); transition: transform .5s var(--spring); }
.lightbox.open img { transform: none; }
.lightbox p { margin: 0; color: #e9e9f6; font-size: 16px; }
.lightbox-close { position: absolute; top: 18px; right: 26px; border: 0; background: none; color: #fff; font-size: 40px; cursor: pointer; transition: transform .3s var(--spring); }
.lightbox-close:hover { transform: rotate(90deg); }

/* Cosmetics */
.cosmetic .item-thumb { aspect-ratio: 4 / 3; display: grid; place-items: center;
  background: radial-gradient(circle at 50% 60%, rgba(139, 108, 255, .3), transparent 65%), var(--surface-2); }
.cosmetic .item-thumb img { width: 70%; height: 70%; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(0 14px 22px rgba(0, 0, 0, .5)); }
.cosmetic:hover .item-thumb img { transform: scale(1.1) rotate(-3deg); }
.cosmetic .placeholder { font-size: 64px; transition: transform .6s var(--spring); }
.cosmetic:hover .placeholder { transform: scale(1.15) rotate(-8deg); }
.cosmetic.is-on { border-color: rgba(74, 222, 155, .45); box-shadow: 0 0 0 1px rgba(74, 222, 155, .2), 0 14px 40px rgba(74, 222, 155, .12); }
.cosmetic .btn { margin-top: auto; align-self: flex-start; }
.equipped-badge { position: absolute; top: 14px; left: 14px; z-index: 2; padding: 3px 11px; border-radius: 999px; background: rgba(74, 222, 155, .18); color: #8ff0c2; font-size: 12.5px; font-weight: 600; }

/* BlueMap */
.map-card { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.map-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 18px; border-bottom: 1px solid var(--border); flex-wrap: wrap; }
.map-actions { display: flex; gap: 10px; }
.map-frame { height: 72vh; min-height: 460px; background: #05060c; }
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.map-card:fullscreen .map-frame { height: 100%; flex: 1; }

/* Discord */
.discord-wrap { display: grid; grid-template-columns: 1fr 1.4fr; gap: 18px; align-items: start; }
.discord-side { display: flex; flex-direction: column; gap: 18px; }
.discord-wrap.no-frame .discord-side { display: contents; }
.discord-info { display: flex; flex-direction: column; gap: 18px; }
.discord-head strong { display: block; font-size: 22px; margin-top: 2px; }
.members { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; max-height: 300px; overflow: auto; }
.members li { display: flex; align-items: center; gap: 12px; font-size: 15px; }
.members img { width: 30px; height: 30px; border-radius: 50%; }
.members .muted { margin-left: auto; font-size: 13px; }
.discord-info .btn { margin-top: auto; align-self: flex-start; }
.discord-frame { padding: 0; overflow: hidden; min-height: 480px; }
.discord-frame.text-chat, .discord-frame.text-chat iframe { height: 640px; }
.discord-frame iframe { width: 100%; height: 100%; min-height: 480px; border: 0; display: block; }
.discord-channel { display: flex; flex-direction: column; gap: 18px; min-height: 320px; }
.channel-head { display: flex; align-items: center; gap: 14px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.channel-head > svg { width: 42px; height: 42px; padding: 9px; border-radius: 12px; background: rgba(88, 101, 242, .2); color: #a5adff; }
.channel-head strong { display: block; font-size: 22px; }
.channel-count { margin-left: auto; padding: 4px 12px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); font-size: 13px; font-weight: 600; }
.channel-members { max-height: none; }
.channel-members li { padding: 10px 12px; border-radius: 12px; background: var(--surface-2); animation: rise .5s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 60ms); }
.channel-members img { width: 36px; height: 36px; }
.channel-members .state { margin-left: auto; display: flex; gap: 6px; color: var(--text-3); font-size: 14px; }
.channel-members .speaking img { box-shadow: 0 0 0 2px var(--ok); }
.channel-empty { color: var(--text-3); text-align: center; padding: 40px 0; }

/* Profil */
.profile-grid { display: grid; grid-template-columns: minmax(300px, 1fr) 1.15fr; gap: 18px; align-items: start; }
.skin-card { display: flex; flex-direction: column; align-items: center; gap: 14px; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(139, 108, 255, .28), transparent 60%), var(--surface); }
#skinCanvas { width: 100%; max-width: 360px; height: 440px; cursor: grab; }
#skinCanvas:active { cursor: grabbing; }
.skin-controls { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
.skin-controls .chip { height: 34px; padding: 0 14px; font-size: 13.5px; }
.skin-search { display: flex; gap: 10px; width: 100%; }
.skin-search input { margin: 0; height: 40px; }
.profile-side { display: flex; flex-direction: column; gap: 18px; }
.auth { width: 100%; }
.tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; padding: 5px; margin-bottom: 22px; border-radius: 13px; background: rgba(0, 0, 0, .25); }
.tab { position: relative; z-index: 1; height: 42px; border: 0; background: none; font: inherit; font-weight: 600; font-size: 15px; color: var(--text-2); cursor: pointer; transition: color .25s; }
.tab.active { color: #fff; }
.tab-indicator { position: absolute; top: 5px; bottom: 5px; left: 5px; width: calc(50% - 5px); border-radius: 10px; background: var(--grad); box-shadow: 0 6px 20px rgba(110, 100, 255, .4); transition: transform .5s var(--spring); }
.tabs.register .tab-indicator { transform: translateX(100%); }
.error { margin: 0; min-height: 1.2em; color: var(--danger); font-size: 14px; }
.profile { align-items: center; gap: 18px; }
.profile strong { display: block; font-size: 22px; }
.role-badge { display: inline-block; margin-top: 4px; padding: 2px 11px; border-radius: 999px; background: var(--accent-soft); color: #cbbfff; font-size: 12.5px; font-weight: 600; }
.profile .btn { margin-left: auto; }
.equipped-card { flex-direction: column; gap: 14px; align-items: flex-start; }
.equipped { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; width: 100%; }
.equipped li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; background: var(--surface-2); }
.equipped img { width: 36px; height: 36px; object-fit: contain; image-rendering: pixelated; }
.equipped .muted { margin-left: auto; font-size: 13px; }

.footer { margin-top: auto; padding: 64px 0 40px; font-size: 14px; text-align: center; }

.toast {
  position: fixed; left: 50%; bottom: 32px; z-index: 60;
  padding: 14px 22px; border-radius: 14px; font-size: 15px; font-weight: 500;
  background: rgba(24, 26, 46, .9); backdrop-filter: blur(14px); color: #fff;
  border: 1px solid rgba(139, 108, 255, .35); box-shadow: 0 16px 40px rgba(0, 0, 0, .5);
  transform: translate(-50%, 30px) scale(.9); opacity: 0; pointer-events: none;
  transition: transform .5s var(--spring), opacity .3s;
}
.toast.show { transform: translate(-50%, 0) scale(1); opacity: 1; }

/* ---------- Mobil ---------- */
@media (max-width: 1100px) {
  .quick-grid { grid-template-columns: repeat(2, 1fr); }
  .profile-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  body { font-size: 16px; }
  .sidebar { width: var(--sidebar) !important; transform: translateX(-100%); box-shadow: 0 0 60px rgba(0, 0, 0, .5); }
  .collapse-btn { display: none; }
  .collapsed .brand-name, .collapsed .nav-link span, .collapsed .nav-group, .collapsed .user-chip { opacity: 1; pointer-events: auto; position: static; }
  .collapsed .nav-group { height: auto; padding: 16px 16px 6px; }
  .content, .collapsed .content { margin-left: 0; padding: 0 16px; }
  .menu-btn { display: grid; }
  .drawer-open .sidebar { transform: none; }
  .drawer-open .backdrop { opacity: 1; pointer-events: auto; }
  .page { padding-top: 84px; }
  .hero { min-height: 92vh; }
  .hero-cubes { opacity: .5; }
  .discord-wrap { grid-template-columns: 1fr; }
  .upload-row { flex-direction: column; }
  .upload-row select { width: 100%; }
  .profile { flex-wrap: wrap; }
  .card { padding: 20px; }
  .item-thumb { margin: -20px -20px 8px; }
  .item-grid { grid-template-columns: 1fr; }
  .map-frame { height: 64vh; }
}
@media (max-width: 520px) {
  .quick-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .quick { padding: 16px; }
  .lead { font-size: 18px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Während ein Video läuft: teure Effekte aus, damit das Video flüssig bleibt */
body.video-playing .sidebar { backdrop-filter: none; -webkit-backdrop-filter: none; background: rgba(12, 13, 26, .96); }
body.video-playing .hero-cubes span,
body.video-playing .brand-mark,
body.video-playing .gradient-text,
body.video-playing .status.online .dot::after { animation-play-state: paused; }
body.video-playing .card::before { display: none; }

/* ---------- ToDo ---------- */
kbd { padding: 1px 7px; border-radius: 6px; border: 1px solid var(--border-strong); background: var(--surface-2); font: 600 13px "JetBrains Mono", monospace; }
.todo-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.sync-badge { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px; border-radius: 999px; background: var(--surface); border: 1px solid var(--border); font-size: 14px; color: var(--text-2); }
.sync-badge.online { color: #a7f3cf; border-color: rgba(74, 222, 155, .35); }
.sync-badge.online .dot { background: var(--ok); }
.sync-badge.online .dot::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--ok); animation: ping 1.8s var(--ease) infinite; }
.sync-badge.offline .dot { background: #f5b94a; }
.todo-tools { display: flex; align-items: center; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.todo-tools .chips { margin: 0; }
.todo-tools #todoClearDone { margin-left: auto; }
.todo-add { flex-direction: row; gap: 12px; padding: 14px; margin-bottom: 18px; }
.todo-add input { margin: 0; }
.todo-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.page.active .todo-list > .new, .page.active .todo-list > .empty { animation: rise .6s var(--ease) backwards; animation-delay: calc(var(--i, 0) * 45ms); }
.todo-list .subtasks { animation: none; }
.todo-item { padding: 0; }
.todo-item.starred { border-color: rgba(255, 201, 77, .4); background: linear-gradient(90deg, rgba(255, 201, 77, .09), transparent 60%), var(--surface); }
.todo-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.todo-check {
  width: 30px; height: 30px; flex-shrink: 0; border-radius: 9px; cursor: pointer;
  display: grid; place-items: center; border: 2px solid var(--border-strong); background: transparent; color: transparent;
  transition: background .25s, border-color .25s, transform .35s var(--spring);
}
.todo-check svg { width: 18px; height: 18px; stroke-width: 2.6; }
.todo-check:hover:not(:disabled) { border-color: var(--ok); transform: scale(1.08); }
.todo-check.on { background: var(--ok); border-color: var(--ok); color: #06281a; }
.todo-check:disabled { cursor: default; }
.todo-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; }
.todo-text { font-size: 16px; font-weight: 500; word-break: break-word; }
.done > .todo-row .todo-text, .todo-item.done > .todo-row .todo-text { color: var(--text-3); text-decoration: line-through; }
.todo-edit { margin: 0; height: 40px; border-color: #ffd24d; }
.todo-meta { display: flex; align-items: center; gap: 6px 14px; flex-wrap: wrap; font-size: 13px; }
.todo-progress { color: #8fd18f; }
.claimers { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.claimer { display: inline-flex; align-items: center; gap: 5px; padding: 2px 8px 2px 3px; border-radius: 999px; background: var(--surface-3); color: var(--text); font-size: 12.5px; }
.claimer img { width: 18px; height: 18px; border-radius: 4px; image-rendering: pixelated; }
.claimer.self { background: rgba(255, 201, 77, .18); color: #ffd98a; }
.todo-actions { display: flex; gap: 4px; flex-shrink: 0; }
.todo-btn {
  width: 34px; height: 34px; border: 0; border-radius: 10px; cursor: pointer; display: grid; place-items: center;
  background: transparent; color: var(--text-3); transition: background .2s, color .2s, transform .3s var(--spring);
}
.todo-btn svg { width: 19px; height: 19px; }
.todo-btn:hover { background: var(--surface-3); color: var(--text); transform: translateY(-1px); }
.todo-btn.star.on { color: #ffc94d; }
.todo-btn.star.on svg { fill: currentColor; }
.todo-btn.claimed { color: #ffc94d; }
.todo-btn.danger:hover { color: var(--danger); background: rgba(255, 107, 125, .14); }
.todo-btn.expand svg { transition: transform .35s var(--spring); }
.todo-btn.expand.open svg { transform: rotate(180deg); }
.subtasks { margin: 0 16px 14px 60px; padding-left: 14px; border-left: 2px solid var(--border-strong); display: flex; flex-direction: column; gap: 2px; animation: rise .4s var(--ease); }
.subtask .todo-row { padding: 8px 6px; }
.subtask .todo-check { width: 24px; height: 24px; border-radius: 7px; }
.subtask .todo-check svg { width: 15px; height: 15px; }
.subtask .todo-text { font-size: 15px; }
.sub-add { display: flex; gap: 10px; margin-top: 8px; }
.sub-add input { margin: 0; height: 40px; }
.todo-admin-actions { display: flex; gap: 10px; flex-wrap: wrap; }
#todoSyncToken, #todoSyncUrl { font-family: "JetBrains Mono", monospace; font-size: 14px; }
@media (max-width: 900px) {
  .todo-row { flex-wrap: wrap; }
  .todo-actions { width: 100%; justify-content: flex-end; }
  .subtasks { margin-left: 24px; }
  .todo-add { flex-direction: column; }
}

.is-auth .chip.logged-in-only, .is-auth .btn.logged-in-only { display: inline-flex; align-items: center; }
