@font-face {
  font-family: 'Monocraft';
  src: url('/Monocraft.ttf') format('truetype');
  font-display: swap;
}

:root {
  --pix: 'Monocraft', 'Courier New', monospace;
  --bg: #14121c;
  --bg2: #1e1b2b;
  --bg3: #29253a;
  --ink: #07060b;
  --text: #ece8f6;
  --muted: #9d97b5;

  --blue: #6aa6e8;
  --teal: #4fc3b0;
  --green: #7bc16a;
  --yellow: #e3b441;
  --red: #e8705f;
  --purple: #b98ae0;
  --orange: #e8924a;
  --pink: #e58ab8;
  --night: #2b2140;
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; font-variant-ligatures: none; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Space Grotesk', system-ui, sans-serif;
  line-height: 1.55;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255,255,255,.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.025) 1px, transparent 1px);
  background-size: 32px 32px;
}

main { flex: 1; }
a { color: inherit; }
img { display: block; }

.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.section { padding: 48px 0; }

h1, h2, h3, .pix { font-family: var(--pix); font-weight: 400; }
h1 {
  font-size: clamp(1.9rem, 6.5vw, 3.8rem);
  line-height: 1;
  letter-spacing: .03em;
  text-transform: uppercase;
  color: var(--c, var(--green));
  text-shadow: 4px 4px 0 var(--ink);
  word-break: break-word;
}
h2 {
  font-size: clamp(1.3rem, 3.6vw, 2rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  text-shadow: 3px 3px 0 var(--ink);
}
.eyebrow {
  font-family: var(--pix);
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 0.74rem;
  color: var(--muted);
  margin-bottom: 10px;
}
.lead { color: var(--muted); font-size: 1.1rem; max-width: 640px; margin-top: 16px; }

/* ---------- Header ---------- */
.top {
  position: sticky;
  top: 0;
  z-index: 10;
  background: rgba(20, 18, 28, .94);
  backdrop-filter: blur(6px);
  border-bottom: 3px solid var(--ink);
}
.bar { display: flex; align-items: center; gap: 24px; padding: 12px 0; flex-wrap: wrap; }
.logo {
  display: flex; align-items: center; gap: 12px;
  text-decoration: none;
  font-family: var(--pix); font-weight: 400;
  font-size: 1.11rem; letter-spacing: .06em; text-transform: uppercase;
}
.block {
  width: 30px; height: 30px; flex: none;
  border: 3px solid var(--ink);
  background:
    radial-gradient(circle at 25% 65%, rgba(0,0,0,.25) 0 2px, transparent 3px),
    radial-gradient(circle at 70% 80%, rgba(0,0,0,.25) 0 2px, transparent 3px),
    linear-gradient(#6fbf4f 0 32%, #8a5a35 32% 100%);
}
nav { display: flex; gap: 6px; margin-right: auto; }
nav a {
  text-decoration: none;
  font-family: var(--pix); font-weight: 400;
  text-transform: uppercase; letter-spacing: .06em;
  padding: 6px 14px; color: var(--muted);
  border: 3px solid transparent;
}
nav a:hover { color: var(--text); }
nav a.active { color: var(--text); background: var(--bg3); border-color: var(--ink); }

.status {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--pix); font-size: 0.7rem;
  background: var(--bg2); border: 3px solid var(--ink);
  padding: 4px 12px; color: var(--muted);
}
.dot { width: 10px; height: 10px; background: var(--green); border: 2px solid var(--ink); animation: pulse 2s infinite; }
.dot.off { background: var(--red); animation: none; }
.dot.wait { background: var(--yellow); }
@keyframes pulse { 50% { opacity: .35; } }

#msg:empty { display: none; }
.err {
  background: #3a1d22; border: 3px solid var(--ink);
  box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 18px; margin: 24px auto 0;
  width: min(1180px, 100% - 40px);
}

footer { padding: 32px 0 40px; color: var(--muted); font-size: .9rem; border-top: 3px solid var(--ink); background: var(--bg2); }

/* ---------- Gemeinsame Bausteine ---------- */
.hero {
  background: color-mix(in srgb, var(--c, var(--green)) 20%, var(--bg));
  border-bottom: 3px solid var(--ink);
  padding: 56px 0 48px;
}
.btn {
  display: inline-block; text-decoration: none; cursor: pointer;
  font-family: var(--pix); font-weight: 400;
  text-transform: uppercase; letter-spacing: .05em; font-size: 0.78rem;
  background: var(--text); color: var(--ink);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 10px 18px;
  transition: transform .1s, box-shadow .1s;
}
.btn:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.btn:active { transform: translate(3px, 3px); box-shadow: 2px 2px 0 var(--ink); }
.btn.accent { background: var(--green); }
.btn.ghost { background: var(--bg3); color: var(--text); }

.head-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 28px; }
.head-row p { color: var(--muted); }

.empty { padding: 40px; text-align: center; color: var(--muted); border: 3px dashed var(--bg3); }

/* ---------- Start ---------- */
.home-hero { display: grid; grid-template-columns: 1.2fr .8fr; gap: 30px; align-items: center; }
.home-skin { display: flex; flex-direction: column; align-items: center; min-height: 340px; }
.hero-stage { position: relative; display: block; perspective: 900px; min-height: 360px; }
.hero-canvas { display: block; margin: 0 auto; cursor: pointer; }
.hero-shadow.live { animation: none; bottom: 6px; }
.hero-float { animation: idle 4s ease-in-out infinite; will-change: transform; }
.hero-tilt { will-change: transform; transform-style: preserve-3d; }
.hero-img { height: 360px; width: auto; filter: drop-shadow(8px 8px 0 rgba(0,0,0,.35)); }
.hero-shadow {
  position: absolute; left: 50%; bottom: -8px; width: 55%; height: 16px; margin-left: -27.5%;
  background: rgba(0,0,0,.4); border-radius: 50%; filter: blur(5px);
  animation: shadow 4s ease-in-out infinite;
}
.hero-tag {
  display: inline-block; text-decoration: none; margin-top: 22px; font-family: var(--pix); font-size: .9rem;
  background: var(--ink); color: var(--text); border: 3px solid var(--ink); padding: 6px 12px;
}
.player-hero h1 { text-transform: none; }   /* Spielername so schreiben, wie er wirklich geschrieben wird */
.player-hero .home-skin { min-height: 300px; }
.player-hero .hero-stage { min-height: 300px; }
.player-hero .hero-img { height: 300px; }
@keyframes idle {
  0%, 100% { transform: translateY(0) scale(1, 1); }
  50%      { transform: translateY(-14px) scale(1.012, 1.02); }
}
@keyframes shadow {
  0%, 100% { transform: scale(1);   opacity: .5; }
  50%      { transform: scale(.72); opacity: .28; }
}
@media (prefers-reduced-motion: reduce) {
  .hero-float, .hero-shadow { animation: none; }
}
.hero-tag:hover { color: var(--green); }
.ip-row { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 18px; align-items: center; }
.ip {
  font-family: var(--pix); font-size: 0.94rem;
  background: var(--ink); color: var(--green);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 rgba(0,0,0,.5);
  padding: 8px 16px; letter-spacing: .05em;
}
.cta { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 8px; }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 24px; margin-top: 28px; }
.feature {
  background: var(--c); color: #14111c;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 20px;
}
.feature .em { font-size: 2rem; }
.feature h3 { font-size: 1.15rem; text-transform: uppercase; margin: 8px 0 6px; }
.feature p { font-size: .95rem; font-weight: 500; }

/* ---------- Spielerkarten ---------- */
.pgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(165px, 1fr)); gap: 28px; }
.pgrid.small { grid-template-columns: repeat(auto-fill, minmax(135px, 1fr)); gap: 24px; }
.pcard {
  display: block; text-decoration: none; background: var(--bg2);
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  transition: transform .12s, box-shadow .12s;
}
.pcard:hover { transform: translate(-3px, -3px); box-shadow: 8px 8px 0 var(--ink); }
.pcard-skin {
  position: relative; aspect-ratio: 1 / 1.1;
  background: var(--c); overflow: hidden;
  display: flex; justify-content: center; align-items: flex-end;
}
.pcard-skin .skin { height: 94%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(4px 4px 0 rgba(0,0,0,.25)); }
.pcard-head {
  position: absolute; left: 8px; bottom: 8px; width: 38px; height: 38px;
  border: 3px solid var(--ink); border-radius: 50%; overflow: hidden; background: #fff;
}
.pcard-head img { width: 100%; height: 100%; image-rendering: pixelated; }
.pcard-name {
  background: var(--bg3); border-top: 3px solid var(--ink);
  padding: 9px 8px; text-align: center;
  font-family: var(--pix); font-weight: 400;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}

/* ---------- Suchleiste ---------- */
.searchbar {
  display: flex; gap: 16px; align-items: center; flex-wrap: wrap;
  background: var(--bg2); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 14px 16px; margin-bottom: 40px;
}
.searchbar input {
  flex: 1; min-width: 200px;
  background: var(--bg); color: var(--text);
  border: 3px solid var(--ink); padding: 10px 12px;
  font: inherit; outline: none;
}
.searchbar input:focus { border-color: var(--green); }
.searchbar .count { font-family: var(--pix); font-weight: 400; text-transform: uppercase; font-size: 0.74rem; }

/* ---------- Stat-Kacheln ---------- */
.tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 24px; }
.tile {
  background: var(--c); color: #14111c;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 16px 18px; display: flex; flex-direction: column;
}
.tile.dark { color: #f2eefc; }
.tile.plain { background: var(--bg2); color: var(--text); }
.tile-l { font-family: var(--pix); font-weight: 400; font-size: 0.7rem; text-transform: uppercase; letter-spacing: .05em; }
.tile-v { font-family: var(--pix); font-weight: 400; font-size: 1.52rem; line-height: 1.15; margin: 12px 0 8px; word-break: break-word; }
.tile-r { font-family: var(--pix); font-size: .72rem; font-weight: 400; opacity: .75; margin-top: auto; }

.player-hero { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; }
.player-hero .skin-big { height: 300px; width: auto; filter: drop-shadow(8px 8px 0 rgba(0,0,0,.3)); }
.back { display: inline-block; margin-bottom: 18px; color: var(--muted); text-decoration: none; font-family: var(--pix); font-weight: 400; text-transform: uppercase; }
.back:hover { color: var(--text); }
.stack > * + * { margin-top: 56px; }

/* ---------- Stats-Seite ---------- */
.totals { background: var(--ink); padding: 36px 0; }
.totals .tiles { grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); }
.totals .tile { box-shadow: none; border-color: var(--ink); }
.totals .tile-v { font-size: 2rem; margin: 0 0 6px; }

.boards { display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 32px; }
.board {
  background: var(--c); color: #14111c;
  border: 3px solid var(--ink); box-shadow: 6px 6px 0 var(--ink);
  padding: 16px 18px 12px;
}
.board.dark { color: #f2eefc; }
.board-head { display: flex; gap: 12px; align-items: center; margin-bottom: 12px; }
.board-ic {
  width: 44px; height: 44px; flex: none; display: grid; place-items: center;
  background: var(--ink); font-size: 1.3rem;
}
.board-head h3 { font-size: 1.15rem; line-height: 1.2; }
.board-head small { display: block; font-weight: 400; opacity: .8; font-size: .68rem; font-family: var(--pix); line-height: 1.3; margin-top: 2px; }
.board ol { list-style: none; padding: 0; }
.board li {
  display: grid; grid-template-columns: 26px 1fr auto; gap: 10px; align-items: center;
  padding: 6px 0; border-top: 1px solid rgba(0,0,0,.22);
  font-family: var(--pix); font-weight: 400; font-size: .8rem;
}
.board.dark li { border-top-color: rgba(255,255,255,.15); }
.board li:first-child { border-top: 0; }
.rk {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: var(--ink); color: #fff;
  font-family: var(--pix); font-size: 0.66rem;
}
.rk.top { background: var(--yellow); color: var(--ink); }
.who { display: flex; align-items: center; gap: 10px; text-decoration: none; min-width: 0; }
.who span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.who:hover span { text-decoration: underline; }
.who img { width: 28px; height: 28px; border: 2px solid var(--ink); image-rendering: pixelated; flex: none; }
.val { font-family: var(--pix); font-size: 0.74rem; white-space: nowrap; }

.loading { padding: 60px 0; text-align: center; color: var(--muted); font-family: var(--pix); text-transform: uppercase; letter-spacing: .1em; animation: pulse 1.4s infinite; }

@media (max-width: 760px) {
  .home-hero, .player-hero { grid-template-columns: 1fr; }
  .home-skin { order: -1; min-height: 0; }
  .hero-img, .player-hero .skin-big { height: 240px; }
  nav { order: 3; width: 100%; }
  .status { margin-left: auto; }
}

/* Monocraft: kleine Texte etwas größer, damit sie gut lesbar bleiben */
.eyebrow { font-size: .95rem; }
.status { font-size: .9rem; }
nav a { font-size: 1rem; }
.btn { font-size: 1rem; }
.back { font-size: 1rem; }
.tile-l { font-size: .85rem; line-height: 1.25; }
.tile-v { font-size: 1.9rem; line-height: 1.15; }
.tile-r { font-size: .85rem; }
.totals .tile-v { font-size: 2.3rem; }
.board-head small { font-size: .78rem; }
.board li { font-size: .95rem; }
.val { font-size: .9rem; }
.rk { font-size: .9rem; }
.pcard-name { font-size: 1rem; }
.searchbar .count { font-size: 1rem; }
.ip { font-size: 1.1rem; }

/* Pixel-Icons */
.ico { display: inline-flex; flex: none; line-height: 0; }
.ico svg { display: block; }
.tile-l { display: flex; align-items: center; gap: 8px; }
.board-ic { color: #f2eefc; }
.feature .em { color: #14111c; line-height: 0; }
.tile-v { font-size: 1.7rem; }
/* ---------- Server-Status & Online-Spieler (Stats-Seite) ---------- */
.srv-line {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 22px;
  font-family: var(--pix); font-size: 1rem; color: var(--text);
}
.srv-line .dot { animation: none; }

.online-sec {
  background: color-mix(in srgb, var(--green) 18%, var(--bg));
  border-block: 3px solid var(--ink);
  padding: 36px 0 40px;
}
.online-title { margin-bottom: 24px; display: flex; align-items: center; gap: 14px; }
.online-title::before {
  content: ''; width: 20px; height: 20px; flex: none;
  background: var(--green); border: 3px solid var(--ink);
  animation: pulse 2s infinite;
}
.chips { display: flex; flex-wrap: wrap; gap: 16px; }
.chip {
  display: inline-flex; align-items: center; gap: 10px;
  text-decoration: none; color: #14111c; background: var(--purple);
  border: 3px solid var(--ink); box-shadow: 4px 4px 0 var(--ink);
  padding: 4px 12px 4px 4px;
  font-family: var(--pix); font-size: .95rem;
  transition: transform .1s, box-shadow .1s;
}
a.chip:hover { transform: translate(-2px, -2px); box-shadow: 6px 6px 0 var(--ink); }
.chip img { width: 30px; height: 30px; border: 2px solid var(--ink); image-rendering: pixelated; flex: none; }
.chip-v { display: inline-flex; align-items: center; gap: 6px; font-size: .8rem; }
.chip-v::before { content: ''; width: 10px; height: 10px; background: var(--red); border: 2px solid var(--ink); }
.chip.plain { background: #fff; }
@media (prefers-reduced-motion: reduce) { .online-title::before { animation: none; } }

/* ---------- Anmeldung & Konto ---------- */
.acct { display: flex; align-items: center; }
.acct:empty { display: none; }
.acct a {
  display: inline-flex; align-items: center; gap: 8px; text-decoration: none;
  font-family: var(--pix); font-size: 1rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--text); background: var(--bg3);
  border: 3px solid var(--ink); padding: 3px 12px 3px 4px;
  max-width: 220px;
}
.acct a span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acct a:hover { background: var(--bg2); }
.acct a.login { padding: 5px 14px; background: var(--green); color: var(--ink); box-shadow: 3px 3px 0 var(--ink); }
.acct a.login:hover { background: var(--text); }
.acct-av { width: 26px; height: 26px; flex: none; border: 2px solid var(--ink); border-radius: 50%; overflow: hidden; background: #fff; }
.acct-av img { width: 100%; height: 100%; image-rendering: pixelated; }

/* Eigene Profilbilder sind keine Pixel-Köpfe: weich skalieren statt blockig */
img[src^="/api/get/avatar/"] { image-rendering: auto; }
.pcard-head img, .acct-av img { object-fit: cover; }

.panel {
  background: var(--bg2); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 24px; max-width: 640px;
}
.panel h2 { font-size: 1.4rem; margin-bottom: 8px; }
.panel p { color: var(--muted); }
.codeinput {
  display: block; width: 100%; margin: 18px 0;
  font-family: var(--pix); font-size: 1.15rem; letter-spacing: .06em; text-transform: uppercase;
  background: var(--bg); color: var(--text);
  border: 3px solid var(--ink); padding: 12px 14px;
}
.codeinput:focus { outline: none; border-color: var(--green); }
.codeinput::placeholder { color: var(--muted); opacity: .55; }
.row { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; }
.formmsg { min-height: 1.5em; margin-top: 14px; }
.formmsg.bad { color: var(--red); }
.formmsg.good { color: var(--green); }
.avatar-edit { display: flex; gap: 28px; align-items: center; flex-wrap: wrap; margin: 20px 0 0; }
.avatar-big {
  width: 128px; height: 128px; flex: none; background: #fff; overflow: hidden;
  border: 3px solid var(--ink); border-radius: 50%; box-shadow: 5px 5px 0 var(--ink);
}
.avatar-big img { width: 100%; height: 100%; object-fit: cover; image-rendering: pixelated; }
.avatar-big img[src^="blob:"], .avatar-big img[src^="/api/get/avatar/"] { image-rendering: auto; }
.btn:disabled { opacity: .45; cursor: not-allowed; transform: none; box-shadow: 5px 5px 0 var(--ink); }
.btn.danger { background: var(--red); }
.newcode {
  margin-top: 16px; padding: 12px 14px; word-break: break-all; user-select: all;
  font-family: var(--pix); font-size: 1.1rem;
  background: var(--bg); border: 3px dashed var(--yellow);
}
/* ---- Profilbild-Editor ---- */
.cropper-back {
  position: fixed; inset: 0; z-index: 1000; padding: 16px;
  display: flex; align-items: center; justify-content: center;
  background: rgba(0,0,0,.72); overflow: auto;
}
.cropper {
  background: var(--bg2); border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  padding: 24px; max-width: 100%; text-align: center;
}
.cropper h2 { font-size: 1.4rem; margin-bottom: 8px; }
.cropper p { color: var(--muted); max-width: 360px; margin: 0 auto; }
.cropper-stage {
  display: block; margin: 18px auto 14px; max-width: 100%;
  border: 3px solid var(--ink); background: #fff;
  cursor: grab; touch-action: none; user-select: none;
}
.cropper-stage.drag { cursor: grabbing; }
.cropper-zoom { display: block; width: 100%; margin: 0 0 18px; accent-color: var(--green); }
.cropper .row { justify-content: center; }
/* =====================================================================
   Social Media, Live, Stream, Clips
   ===================================================================== */
:root { --twitch: #9146ff; }
@keyframes blink { 50% { opacity: .15; } }
@media (prefers-reduced-motion: reduce) { .live-badge i, .chip-v::before, .rdot { animation: none !important; } }

/* ---------- Spielerkarte: Link-Bereich + Symbol-Reihe ---------- */
.pcard { display: flex; flex-direction: column; }
.pcard-main { display: block; text-decoration: none; color: inherit; }
.pcard-soc {
  flex: 1; display: flex; flex-wrap: wrap; justify-content: center; align-content: center; gap: 4px 10px;
  padding: 6px 8px 10px; background: var(--bg3);
}
a.soc { display: inline-flex; padding: 4px; color: var(--text); transition: transform .1s, color .1s; }
a.soc:hover { color: var(--c); transform: translateY(-2px); }
a.soc:focus-visible { outline: 3px solid var(--c); }

/* LIVE-Plakette */
.live-badge {
  position: absolute; top: 8px; right: 8px; z-index: 2;
  display: inline-flex; align-items: center; gap: 7px;
  background: var(--twitch); color: #fff; border: 3px solid var(--ink); box-shadow: 3px 3px 0 var(--ink);
  font-family: var(--pix); font-size: .85rem; letter-spacing: .04em; padding: 2px 9px 2px 7px; line-height: 1.4;
}
.live-badge i, .rdot, .sq { display: inline-block; width: 10px; height: 10px; flex: none; border: 2px solid var(--ink); }
.live-badge i, .rdot { background: var(--red); animation: blink 1.1s steps(2, start) infinite; }
.rdot { margin-right: 10px; }

/* ---------- Online-Chips: live = lila mit Zuschauerzahl ---------- */
.chip.live { color: #fff; }
.chip-v { color: inherit; }
.chip-v::before { animation: blink 1.1s steps(2, start) infinite; }

/* ---------- Spielerprofil: Status + Buttons ---------- */
.player-status { display: flex; align-items: center; gap: 10px; margin-top: 14px; font-family: var(--pix); font-size: .95rem; }
.player-status:empty { display: none; }
.sq { background: var(--green); animation: none; }
.soc-btns { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 16px; }
.soc-btns:empty { display: none; }
.soc-btn { display: inline-flex; align-items: center; gap: 8px; }
.btn.twitch { background: var(--twitch); color: #fff; }
.btn.orange { background: var(--orange); }
.linkbtn { background: none; border: 0; padding: 0; color: inherit; font: inherit; text-decoration: underline; cursor: pointer; }
.linkbtn:hover { color: #fff; }

/* ---------- Stream-Kachel ---------- */
.stream-sec { background: var(--night); border-top: 6px solid var(--green); padding: 40px 0 48px; }
.stream-sec h2 { color: #fff; font-size: clamp(1.6rem, 4vw, 2.4rem); }
.stream-line { display: flex; align-items: center; margin: 10px 0 18px; font-family: var(--pix); font-size: .95rem; color: #fff; overflow-wrap: anywhere; }
.stream-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 24px; margin-top: 22px; align-items: stretch; }
.tw-box {
  position: relative; background-color: #241a36; border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink);
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px);
  background-size: 32px 32px; overflow: hidden;
}
.tw-stream { aspect-ratio: 16 / 9; }
.tw-chat { min-height: 420px; }
.tw-box iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; background: #000; }
.tw-gate { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 16px; text-align: center; color: #cfc6e4; font-size: .9rem; }
.tw-gate p { max-width: 420px; }
.tw-gate a { color: #fff; }
.tw-tag { font-family: var(--pix); font-size: .8rem; text-transform: uppercase; background: var(--twitch); color: #fff; border: 3px solid var(--ink); padding: 1px 10px; }
.tw-gate .btn { display: inline-flex; align-items: center; gap: 10px; }
.tw-alt { font-size: .9rem; }
@media (max-width: 900px) { .stream-grid { grid-template-columns: 1fr; } .tw-chat { min-height: 420px; } }

/* ---------- Clips ---------- */
.clips-sec { background: var(--purple); color: #14111c; border-top: 3px solid var(--ink); padding: 48px 0 60px; position: relative; }
.clips-sec::after { content: ''; position: absolute; left: 0; right: 0; bottom: 0; height: 12px; background: repeating-linear-gradient(90deg, var(--green) 0 12px, var(--night) 12px 24px); }
.clips-sec h2 { text-shadow: 3px 3px 0 rgba(255,255,255,.25); }
.clips-sec .head-row { margin-bottom: 22px; align-items: center; }
.clips-note, .tw-consent { font-weight: 500; margin-top: 10px; }
.tw-consent { margin-top: 18px; font-size: .9rem; }
.tw-consent .linkbtn:hover, .clips-note a { color: #14111c; }
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 220px)); gap: 20px; }
.clip {
  position: relative; display: flex; flex-direction: column; text-decoration: none; color: #14111c; background: #fff;
  border: 3px solid var(--ink); box-shadow: 5px 5px 0 var(--ink); transition: transform .1s, box-shadow .1s; cursor: pointer;
}
.clip:hover { transform: translate(-2px, -2px); box-shadow: 7px 7px 0 var(--ink); }
.clip-thumb { position: relative; aspect-ratio: 16 / 9; background: #2b2140; display: grid; place-items: center; overflow: hidden; }
.clip-thumb::before { content: ''; width: 14px; height: 24px; background: #a79fb8; clip-path: polygon(0 0, 100% 50%, 0 100%); }
.clip-thumb.has-img::before { display: none; }
.clip-thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.clip-dur { position: absolute; right: 8px; bottom: 8px; background: #14111c; color: #fff; font-family: var(--pix); font-size: .75rem; padding: 2px 8px; }
.clip-body { padding: 10px 12px 12px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.clip-title { font-weight: 700; line-height: 1.25; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clip-meta { margin-top: auto; font-size: .82rem; color: #5b5470; }
.clip.selectable input { position: absolute; opacity: 0; pointer-events: none; }
.clip.selectable.on { outline: 4px solid var(--green); outline-offset: 2px; }
.clip.selectable input:focus-visible ~ .clip-check { outline: 3px solid #fff; }
.clip-check { position: absolute; top: 8px; left: 8px; width: 22px; height: 22px; background: #fff; border: 3px solid var(--ink); }
.clip.selectable.on .clip-check { background: var(--green); box-shadow: inset 0 0 0 3px #fff; }
.clip.selectable input:disabled ~ * { opacity: .55; }
.clip.selectable:has(input:disabled) { cursor: not-allowed; }

/* ---------- Konto: Social-Zeilen ---------- */
.panel.wide { max-width: 1000px; }
.panel .clips-note, .panel .tw-consent { color: var(--muted); }
.panel .tw-consent .linkbtn { color: var(--text); }
.panel .clip-meta { color: #5b5470; }
.soc-rows { display: grid; gap: 14px; margin-top: 18px; }
.soc-row { display: flex; align-items: center; gap: 14px; }
.soc-ic { flex: none; width: 44px; height: 44px; display: grid; place-items: center; background: var(--bg3); border: 3px solid var(--ink); }
.soc-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 4px; font-family: var(--pix); }
.soc-sub { font-family: 'Space Grotesk', system-ui, sans-serif; color: var(--muted); font-size: .9rem; }
.soc-input {
  width: 100%; background: var(--bg); color: var(--text); border: 3px solid var(--ink); padding: 8px 10px;
  font: 400 1rem 'Space Grotesk', system-ui, sans-serif;
}
.soc-input:focus { outline: none; border-color: var(--green); }
.soc-err { color: var(--red); font-family: 'Space Grotesk', system-ui, sans-serif; font-size: .88rem; }
.soc-err:empty { display: none; }
.twitch-row { padding-bottom: 14px; border-bottom: 3px dashed var(--bg3); }
.twitch-row .btn { flex: none; }
.radios { display: grid; gap: 10px; margin-top: 16px; }
.radios label { display: flex; gap: 10px; align-items: center; cursor: pointer; }
.radios input { accent-color: var(--green); width: 18px; height: 18px; }
.panel .count { font-family: var(--pix); font-size: 1rem; }
@media (max-width: 560px) { .soc-row { align-items: flex-start; } .twitch-row { flex-wrap: wrap; } }
/* Spielernamen: Groß-/Kleinschreibung bleibt erhalten */
.acct a span:last-child, h1.pname { text-transform: none; }
.ip.ver { color: var(--yellow); }