/* Gemeinsamer Stil aller Seiten des TXXLE SMP (Stats, Spieler, Teilnehmer, Events, Clips) */
:root { --cyan:#33C3F0; --gelb:#FFD23F; --pink:#FF3D7F; --gruen:#8BE04E; --creme:#FFF6E0; --dunkel:#14121F; --lila:#9146FF; --orange:#FF9F2E; }
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  font-family: "Nunito", system-ui, sans-serif; font-weight: 800; color: var(--dunkel);
  background: var(--cyan);
  background-image:
    radial-gradient(circle, rgba(20,18,31,.10) 27%, transparent 30%),
    repeating-conic-gradient(from 0deg at 50% -10%, rgba(255,255,255,.14) 0deg 6deg, transparent 6deg 13deg);
  background-size: 22px 22px, 100% 100%;
  background-attachment: fixed;
  min-height: 100vh;
}
a { color: inherit; }
[hidden] { display: none !important; }  /* sonst gewinnt z. B. "display: flex" und Ausgeblendetes bleibt sichtbar */
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 16px 60px; }

/* Menü oben */
.menue { position: sticky; top: 0; z-index: 8; background: var(--dunkel); box-shadow: 0 5px 0 rgba(20,18,31,.25); }
.menue .innen { max-width: 1180px; margin: 0 auto; padding: 8px 16px; display: flex; align-items: center; gap: 14px; }
.menue .logo { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 25px; color: var(--gelb); text-decoration: none; white-space: nowrap; padding-top: 3px; }
.menue nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; margin-left: auto; }
.menue nav::-webkit-scrollbar { display: none; }
.menue nav a { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 16px; letter-spacing: .5px; color: #fff; text-decoration: none;
  padding: 7px 10px 4px; border-radius: 10px; white-space: nowrap; }
.menue nav a:hover { background: rgba(255,255,255,.14); }
.menue nav a.aktiv { background: var(--gelb); color: var(--dunkel); }
@media (max-width: 760px) {
  .menue .innen { flex-wrap: wrap; gap: 2px 10px; padding: 6px 12px; }
  .menue nav { margin-left: 0; width: 100%; flex-wrap: wrap; overflow: visible; }  /* umbrechen statt wischen */
  .menue nav a { font-size: 14px; padding: 5px 7px 3px; }
}
@media (max-width: 560px) { h2 .klein { display: table; margin: 8px 0 0; } }

/* Kopf jeder Seite */
.held { margin: 26px 0 10px; }
.held .ueber { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 18px; letter-spacing: 1px; color: #fff; -webkit-text-stroke: 5px var(--dunkel); paint-order: stroke fill; }
.held h1 { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-weight: 400; margin: 4px 0 14px; font-size: clamp(46px, 9vw, 90px); line-height: .95; color: var(--gelb);
  -webkit-text-stroke: 10px var(--dunkel); paint-order: stroke fill; text-shadow: 7px 7px 0 var(--dunkel); transform: rotate(-2deg); transform-origin: left center; word-break: break-word; }
.intro { font-size: 18px; max-width: 760px; margin: 14px 0 26px; background: var(--creme); border: 5px solid var(--dunkel); border-radius: 16px;
  box-shadow: 7px 7px 0 var(--dunkel); padding: 12px 18px; }
.aktualisiert { font-size: 14px; font-weight: 700; opacity: .8; }

/* Bausteine */
.karte { background: var(--creme); border: 6px solid var(--dunkel); border-radius: 22px; box-shadow: 10px 10px 0 var(--dunkel); padding: 18px 20px; }
h2 { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-weight: 400; letter-spacing: .5px; font-size: 30px; margin: 34px 0 14px; color: #fff;
  -webkit-text-stroke: 7px var(--dunkel); paint-order: stroke fill; text-shadow: 4px 4px 0 var(--dunkel); }
h2 .klein { font-family: "Nunito", sans-serif; font-size: 15px; -webkit-text-stroke: 0; text-shadow: none; color: var(--dunkel); background: var(--creme);
  border: 4px solid var(--dunkel); border-radius: 10px; padding: 2px 10px; vertical-align: middle; margin-left: 8px; letter-spacing: 0; }
.knopf { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 17px; background: #fff; border: 4px solid var(--dunkel); border-radius: 12px; padding: 7px 14px 4px;
  box-shadow: 4px 4px 0 var(--dunkel); cursor: pointer; color: var(--dunkel); text-decoration: none; display: inline-block; }
.knopf:hover { transform: translateY(-2px); box-shadow: 6px 6px 0 var(--dunkel); }
.knopf.lila { background: var(--lila); color: #fff; } .knopf.gelb { background: var(--gelb); } .knopf.aktiv { background: var(--dunkel); color: #fff; }
.marken { display: flex; flex-wrap: wrap; gap: 8px; }
.marke { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 15px; background: #fff; border: 4px solid var(--dunkel); border-radius: 10px; padding: 5px 10px 2px; }
.marke.dunkel { background: var(--dunkel); color: #fff; } .marke.offen, .marke.online { background: var(--gruen); } .marke.live { background: #e0245e; color: #fff; }
.marke.bald { background: var(--gelb); } .marke.vorbei { background: #ddd; }
.chip { display: inline-flex; align-items: center; gap: 8px; background: #fff; border: 4px solid var(--dunkel); border-radius: 14px; padding: 6px 12px 6px 6px;
  cursor: pointer; text-decoration: none; }
.chip img { image-rendering: pixelated; border: 3px solid var(--dunkel); border-radius: 8px; background: #ddd; }
.tag { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 13px; border: 3px solid var(--dunkel); border-radius: 8px; padding: 2px 6px 0; white-space: nowrap; }
.tag.live { background: #e0245e; color: #fff; } .tag.afk { background: #ccc; } .tag.online { background: var(--gruen); }
.ic { display: inline-grid; place-items: center; width: 42px; height: 42px; border: 4px solid var(--dunkel); border-radius: 12px; font-size: 22px; flex: none; }
.leer { opacity: .65; font-weight: 700; }
.fuss { margin-top: 40px; font-size: 13px; opacity: .8; text-align: center; font-weight: 700; }
.suche { flex: 1; min-width: 200px; font: inherit; font-weight: 800; font-size: 16px; padding: 9px 14px; border: 4px solid var(--dunkel); border-radius: 12px;
  background: #fff; color: var(--dunkel); }
.werkzeug { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }

/* Spieler-Karten wie bei Craft Attack (Teilnehmer, Startseite): Skin auf Farbe, LIVE oben rechts, Profilbild unten links, Name und Kanäle */
.gitter { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 180px), 1fr)); gap: 22px; }
.teil { background: #fff; border: 5px solid var(--dunkel); border-radius: 6px; box-shadow: 8px 8px 0 var(--dunkel); overflow: hidden; cursor: pointer;
  display: flex; flex-direction: column; }
.teil:hover { transform: translateY(-3px); box-shadow: 10px 10px 0 var(--dunkel); }
.teil .bild { position: relative; aspect-ratio: 4 / 5; background: var(--farbe); border-bottom: 5px solid var(--dunkel); overflow: hidden; }
.teil .skin { position: absolute; left: 50%; bottom: -4%; height: 104%; transform: translateX(-50%); filter: drop-shadow(10px 8px 0 rgba(20,18,31,.22)); }
.teil .skin.pose { height: 100%; bottom: 0; filter: drop-shadow(8px 6px 0 rgba(20,18,31,.22)); }
.teil .oben { position: absolute; top: 8px; right: 8px; display: flex; flex-direction: column; align-items: flex-end; gap: 5px; }
.live-marke { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 15px; letter-spacing: 1px; background: var(--lila); color: #fff; border: 3px solid var(--dunkel);
  box-shadow: 3px 3px 0 var(--dunkel); padding: 4px 8px 1px; display: inline-flex; align-items: center; gap: 6px; }
.live-marke::before { content: ""; width: 10px; height: 10px; background: #C9A6FF; border: 2px solid #fff; margin-bottom: 3px; }
.online-marke { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 13px; background: var(--gruen); border: 3px solid var(--dunkel); padding: 3px 7px 0; }
.teil .avatar { position: absolute; left: 8px; bottom: 8px; width: 44px; height: 44px; border-radius: 50%; border: 4px solid var(--dunkel); background: #fff; object-fit: cover; }
.teil .avatar.mc { image-rendering: pixelated; }
.teil .unten { padding: 10px 10px 12px; text-align: center; display: flex; flex-direction: column; gap: 8px; align-items: center; }
.teil .name { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 20px; line-height: 1.05; word-break: break-word; }
.kanaele { display: flex; gap: 14px; justify-content: center; min-height: 22px; }
.kanaele a { color: var(--dunkel); display: inline-grid; place-items: center; }
.kanaele a:hover { transform: translateY(-2px); color: var(--lila); }

/* Fortschritt im Event-Satz: Fortschritt grün, Aufgabe lila, Ziel blau */
.erfolg { font-family: "Luckiest Guy", "Arial Black", sans-serif; font-size: 13px; letter-spacing: .3px; background: var(--gruen); border: 3px solid var(--dunkel);
  border-radius: 6px; padding: 2px 7px 0; margin: 0 3px; display: inline-block; vertical-align: 1px; line-height: 1.3; }
.erfolg.challenge { background: #C9A6FF; } .erfolg.goal { background: #9be4fb; }

/* Twitch-Clips */
.clips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 18px; }
.clip { text-align: left; font: inherit; color: inherit; background: #fff; border: 5px solid var(--dunkel); border-radius: 16px; box-shadow: 6px 6px 0 var(--dunkel);
  padding: 0; overflow: hidden; cursor: pointer; }
.clip:hover, .clip:focus-visible { transform: translateY(-2px); box-shadow: 8px 8px 0 var(--dunkel); outline: none; }
.clip:focus-visible { border-color: var(--lila); }
.clip .bild { aspect-ratio: 16 / 9; background: linear-gradient(135deg, #9146FF, #FF3D7F) center / cover; position: relative; display: grid; place-items: center;
  border-bottom: 5px solid var(--dunkel); }
.clip .play { font-size: 34px; color: #fff; text-shadow: 3px 3px 0 var(--dunkel); }
.clip .dauer { position: absolute; right: 8px; bottom: 8px; background: var(--dunkel); color: #fff; font-size: 12px; border-radius: 6px; padding: 2px 6px; }
.clip .t { padding: 8px 12px 0; font-weight: 900; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clip .m { padding: 2px 12px 10px; font-size: 13px; opacity: .7; }
.clip-hinweis { font-size: 13px; margin: 0 0 14px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.clip-hinweis .knopf { font-size: 14px; padding: 4px 10px 2px; }
#clipFenster { position: fixed; inset: 0; background: rgba(20,18,31,.75); display: none; align-items: center; justify-content: center; padding: 16px; z-index: 9; }
#clipFenster.offen { display: flex; }
#clipFenster .rahmen { width: min(960px, 100%); }
#clipFenster iframe { width: 100%; aspect-ratio: 16 / 9; border: 6px solid var(--dunkel); border-radius: 16px; background: #000; display: block; }
#clipFenster .leiste { display: flex; justify-content: space-between; gap: 10px; margin-top: 12px; }
