/* ═══════════════════════════════════════════════════════════════════
   KennsteKampf — die Seite KennsteKampf (kennstekampf.php) und das Dashboard
   Farben, Schrift und Knöpfe kommen aus stil.css, Karten und Reiter des
   Dashboards aus quiz.css. Das Overlay hat sein eigenes Blatt
   (kampf-overlay.css).
   ═══════════════════════════════════════════════════════════════════ */
.kl { --kc-kontur: #120821; --kc-rot: #ff4d6d; }

/* ══ Community: KennsteKampf ═════════════════════════════════════ */
.kc-buehne {
  position: relative; overflow: hidden; border-radius: 26px; aspect-ratio: 1672 / 760;
  border: 4px solid var(--kc-kontur); box-shadow: 0 0 0 3px var(--kl-gelb), 0 34px 70px -40px rgba(0, 0, 0, 1), 0 0 70px -30px rgba(var(--kl-gelb-rgb), .8);
}
.kc-welt { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 72%; animation: kcNaeher 30s ease-in-out infinite alternate; }
@keyframes kcNaeher { to { transform: scale(1.06); } }
.kc-buehne::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(23, 5, 43, 0) 55%, rgba(23, 5, 43, .45)); pointer-events: none; }
.kc-figuren { position: absolute; left: 4%; right: 4%; bottom: 5%; z-index: 1; display: flex; align-items: flex-end; justify-content: center; gap: 1.5%; height: 62%; }
.kc-figur { display: block; width: auto; height: 82%; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .45)); transform-origin: 50% 100%; animation: kcSteh 3s ease-in-out calc(var(--i) * -.6s) infinite; }
@keyframes kcSteh { 50% { transform: translateY(-4%) scaleY(1.01); } }
.kc-boss { position: relative; display: flex; align-items: flex-end; height: 100%; margin-left: 5%; }
.kc-boss .kc-figur { height: 100%; filter: drop-shadow(0 12px 10px rgba(0, 0, 0, .45)) drop-shadow(0 0 26px rgba(255, 77, 109, .55)); }
.kc-boss b {
  position: absolute; left: 50%; top: -6%; padding: 4px 14px 3px; border-radius: 999px; white-space: nowrap;
  transform: translateX(-50%) rotate(4deg); background: var(--kc-rot); color: #fff; border: 3px solid var(--kc-kontur);
  font-family: var(--kl-titel); font-size: clamp(10px, 1.3vw, 16px); letter-spacing: .1em; text-transform: uppercase;
}
.kc-login { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 16px; margin-top: 22px; text-align: center; }

/* Die Vorschau: Narco City nach dem Atomschlag — der Feuerschein flackert, Glut steigt auf.
   Auf der Straße wechseln alle Figuren durch (kampf-vorschau.js): eine springt weg, die
   nächste fällt von oben herein; zwischendurch haut einer seinen Nachbarn. */
.kc-schein {
  position: absolute; inset: 0; pointer-events: none; mix-blend-mode: screen;
  background: radial-gradient(36% 46% at 72% 24%, rgba(255, 176, 70, .42), rgba(255, 90, 20, 0) 70%),
              radial-gradient(70% 30% at 62% 60%, rgba(255, 90, 20, .26), rgba(255, 90, 20, 0) 70%);
  animation: kcFlackern 3.2s ease-in-out infinite;
}
@keyframes kcFlackern { 0%, 100% { opacity: .5; } 18% { opacity: .9; } 34% { opacity: .6; } 52% { opacity: 1; } 70% { opacity: .65; } }
.kc-glut { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.kc-glut i {
  position: absolute; left: var(--x); bottom: -4%; width: var(--s); height: var(--s); border-radius: 50%; opacity: 0;
  background: radial-gradient(circle, #fff3c4 0%, #ffb347 35%, #ff5a1a 65%, rgba(255, 90, 26, 0) 72%); box-shadow: 0 0 8px 2px rgba(255, 120, 30, .65);
  animation: kcGlut var(--t) linear var(--d) infinite;
}
@keyframes kcGlut { 0% { bottom: -4%; opacity: 0; transform: translateX(0); } 12% { opacity: .95; } 70% { opacity: .75; } 100% { bottom: 92%; opacity: 0; transform: translateX(var(--wx)); } }
.kc-platz { position: relative; display: flex; flex: none; align-items: flex-end; justify-content: center; width: 11.5%; height: 82%; }
.kc-platz .kc-figur { height: 100%; max-width: none; }
.kc-platz.geht .kc-figur { animation: kcWeg .45s ease-in forwards; }
@keyframes kcWeg { 30% { transform: translateY(-6%) scale(1.04); } 100% { opacity: 0; transform: translateY(-60%) scale(.7) rotate(-14deg); } }
.kc-platz.kommt .kc-figur { animation: kcRein .75s cubic-bezier(.5, 0, .7, 1.3) both, kcSteh 3s ease-in-out .75s infinite; }
@keyframes kcRein { 0% { opacity: 0; transform: translateY(-130%) rotate(-10deg); } 70% { opacity: 1; transform: translateY(0) scaleY(.86) scaleX(1.08); } 100% { transform: none; } }
.kc-platz.kommt::after {
  content: ''; position: absolute; left: 50%; bottom: -6%; width: 170%; height: 22%; margin-left: -85%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, rgba(255, 240, 220, .6), rgba(200, 170, 140, .25) 60%, rgba(200, 170, 140, 0)); animation: kcStaub .8s ease-out .5s both;
}
@keyframes kcStaub { 0% { opacity: .9; transform: scale(.3); } 100% { opacity: 0; transform: scale(1.5); } }
.kc-platz.haut .kc-figur { animation: kcHaut .45s ease-out; }
@keyframes kcHaut { 40% { transform: translate(calc(var(--zu, 1) * 18%), -8%) rotate(calc(var(--zu, 1) * 9deg)) scale(1.05); filter: brightness(1.3) drop-shadow(0 0 10px rgba(251, 193, 2, .9)); } }
.kc-platz.au .kc-figur { animation: kcAu .4s ease-out; }
@keyframes kcAu { 0% { filter: brightness(2.2) drop-shadow(0 0 12px rgba(255, 77, 109, 1)); } 30% { transform: translateX(calc(var(--zu, 1) * 8%)) rotate(calc(var(--zu, 1) * 5deg)); } 100% { transform: none; } }
.kc-knall { position: absolute; z-index: 3; display: grid; place-items: center; width: 11%; aspect-ratio: 1.4; pointer-events: none; transform: translate(-50%, -50%); animation: kcKnall .9s cubic-bezier(.3, 1.5, .5, 1) forwards; }
.kc-knall svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.kc-knall path { fill: #ffe066; stroke: var(--kc-kontur); stroke-width: 6; stroke-linejoin: round; }
.kc-knall b { position: relative; font-family: var(--kl-titel); font-size: clamp(10px, 1.5vw, 22px); color: #fff; transform: rotate(-8deg);
  text-shadow: 2px 0 0 var(--kc-kontur), -2px 0 0 var(--kc-kontur), 0 2px 0 var(--kc-kontur), 0 -2px 0 var(--kc-kontur); }
@keyframes kcKnall { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.2) rotate(-20deg); } 25% { opacity: 1; transform: translate(-50%, -50%) scale(1.1) rotate(4deg); } 70% { opacity: 1; } 100% { opacity: 0; transform: translate(-50%, -50%) scale(.9); } }
/* MeinKämpfer: der Weg zur eigenen Figur — gleich unter der Vorschau, groß und mit allen Figuren zur Auswahl */
.kc-meinkaempfer {
  max-width: 1000px; margin: 28px auto 0; padding: clamp(22px, 3.4vw, 36px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(var(--kl-gelb-rgb), .16), rgba(22, 6, 44, .92)); border: 2px solid rgba(var(--kl-gelb-rgb), .55);
  box-shadow: 0 30px 70px -40px #000, 0 0 70px -34px rgba(var(--kl-gelb-rgb), .8);
}
.kc-mk-kopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; }
.kc-mk-kopf > div { flex: 1 1 320px; }
.kc-mk-schwung { margin: 0 0 4px; font-family: var(--kl-titel); font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--kl-gelb); }
.kc-meinkaempfer .kl-titel { margin: 0 0 6px; }
.kc-meinkaempfer p { margin: 0; color: var(--kl-leise); }
.kc-auswahl { display: grid; grid-template-columns: repeat(auto-fill, minmax(94px, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.kc-auswahl a {
  display: grid; justify-items: center; gap: 2px; height: 100%; padding: 10px 6px 9px; border-radius: 16px; text-decoration: none; color: inherit;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); transition: transform .3s var(--kl-weich), border-color .3s, background .3s;
}
.kc-auswahl a:hover, .kc-auswahl a:focus-visible { transform: translateY(-4px); border-color: rgba(var(--kl-gelb-rgb), .65); background: rgba(var(--kl-gelb-rgb), .1); }
.kc-auswahl-bild { display: flex; align-items: flex-end; justify-content: center; width: 100%; height: 112px; margin-bottom: 6px; }
.kc-auswahl-bild img { display: block; width: auto; height: 100%; max-width: 100%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); transform-origin: 50% 100%; transition: transform .3s var(--kl-weich); }
.kc-auswahl a:hover img, .kc-auswahl a:focus-visible img { transform: scale(1.07); }
.kc-auswahl b { font-size: 13.5px; line-height: 1.2; text-align: center; color: #fff; }
.kc-auswahl small { font-size: 11.5px; font-weight: 800; color: var(--kl-still); }
.kc-auswahl small.ab { color: var(--kl-gelb); }
/* Die Items: wie MeinKämpfer, darunter die Items als Karten und wie man Punkte sammelt */
.kc-items { margin-top: 18px; border-color: rgba(var(--kl-gelb-rgb), .3); box-shadow: 0 30px 70px -40px #000; }
.kc-itemliste { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; margin: 22px 0 0; padding: 0; list-style: none; }
.kc-itemliste li {
  display: grid; justify-items: center; align-content: start; gap: 3px; padding: 12px 8px 10px; border-radius: 16px; text-align: center;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .07); transition: transform .3s var(--kl-weich), border-color .3s;
}
.kc-itemliste li:hover { transform: translateY(-4px); border-color: rgba(var(--kl-gelb-rgb), .55); }
.kc-itembild { display: block; width: 100%; height: 64px; margin-bottom: 4px; }
.kc-itembild img { display: block; width: 100%; height: 64px; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
@media (max-width: 620px) { .kc-itemliste { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.kc-itemliste b { font-size: 14px; line-height: 1.2; color: #fff; }
.kc-itemwerte { display: grid; font-size: 11.5px; font-weight: 800; line-height: 1.35; }
.kc-itemwerte .plus { color: #8ef0bd; }
.kc-itemwerte .minus { color: #ffb3c4; }
.kc-itemliste small { margin-top: 3px; padding: 2px 10px; border-radius: 999px; background: rgba(var(--kl-gelb-rgb), .14); font-size: 12px; font-weight: 800; color: var(--kl-gelb); }
/* Der Tisch und die Champagner-Flasche (zum Verbrauchen): je eine breite Zeile unter den Items */
.kc-tisch.champagner { background: linear-gradient(135deg, rgba(255, 214, 102, .14), rgba(0, 0, 0, .25)); box-shadow: inset 0 0 0 1px rgba(255, 214, 102, .5); }
.kc-tisch.champagner b { color: #ffe08a; }
.kc-tisch.champagner .kc-tischbild { display: grid; justify-items: center; }
.kc-tisch.champagner .kc-tischbild img { width: auto; height: 104px; }
@media (max-width: 620px) { .kc-tisch.champagner .kc-tischbild img { height: 72px; } }
.kc-tisch { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; align-items: center; gap: 8px 18px; margin-top: 12px; padding: 12px 18px; border-radius: 18px;
            background: linear-gradient(135deg, rgba(255, 79, 163, .14), rgba(0, 0, 0, .25)); box-shadow: inset 0 0 0 1px rgba(255, 79, 163, .45); }
.kc-tischbild img { display: block; width: 96px; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .5)); }
.kc-tisch b { font-family: var(--kl-titel); font-size: 15px; letter-spacing: .04em; text-transform: uppercase; color: #ff8fc8; }
.kc-tisch b small { font-size: 11.5px; color: var(--kl-leise); letter-spacing: .02em; }
.kc-tisch p { margin: 4px 0 0; font-size: 13.5px; line-height: 1.5; color: var(--kl-leise); }
.kc-tisch p strong { color: #fff; }
.kc-tisch > small { padding: 3px 12px; border-radius: 999px; background: rgba(var(--kl-gelb-rgb), .14); font-size: 13px; font-weight: 800; color: var(--kl-gelb); white-space: nowrap; }
@media (max-width: 620px) {
  .kc-tisch { grid-template-columns: 64px minmax(0, 1fr); padding: 12px; }
  .kc-tischbild img { width: 64px; }
  .kc-tisch > small { grid-column: 2; justify-self: start; }
}
.kc-verdienst { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 10px; margin: 18px 0 0; padding: 0; list-style: none; }
.kc-verdienst li { padding: 6px 14px; border-radius: 999px; background: rgba(255, 255, 255, .06); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .1); font-size: 13.5px; color: var(--kl-leise); }
.kc-verdienst b { font-family: var(--kl-titel); color: var(--kl-gelb); }

/* Bestenliste und Community-Boni als Kacheln (die Kachel selbst kommt aus stil.css) */
.kk-kacheln { padding-top: 0; }
.kl-kachel-zeichen.geschenk { color: #d2b4ff; background: rgba(169, 112, 255, .16); }
.kb-top { display: grid; gap: 8px; align-self: stretch; margin: 2px 0 6px; padding: 0; list-style: none; }
.kb-top li {
  display: grid; grid-template-columns: 34px 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 14px 7px 8px; border-radius: 16px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .06);
}
.kb-top li.p1 { border-color: rgba(var(--kl-gelb-rgb), .45); box-shadow: 0 0 26px -12px rgba(var(--kl-gelb-rgb), .7); }
.kb-top-platz {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-family: var(--kl-titel); font-size: 17px; line-height: 1;
  color: var(--kl-leise); background: rgba(255, 255, 255, .08); box-shadow: inset 0 0 0 1.5px rgba(255, 255, 255, .14);
}
.kb-top li.p2 .kb-top-platz { color: #2a1650; background: linear-gradient(180deg, #e9e4f8, #9c93bd); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45); }
.kb-top li.p1 .kb-top-platz { color: #2a0f52; background: linear-gradient(180deg, #ffd84a, #b88900); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45); }
.kb-top li.p3 .kb-top-platz { color: #2a1308; background: linear-gradient(180deg, #e5a669, #8a5222); box-shadow: inset 0 2px 0 rgba(255, 255, 255, .45); }
.kb-top .kb-kopf { width: 44px; height: 44px; }
.kb-top .kb-name { font-size: 15.5px; }
.kb-top li.p1 .kb-name { color: var(--kl-gelb); }
.kb-top-leer { align-self: stretch; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed rgba(255, 255, 255, .16); text-align: center; }

/* Die Community-Boni: der Abo-Bonus je Stufe — als Zeilen in der Kachel */
.kc-stufen { display: grid; gap: 8px; align-self: stretch; margin: 2px 0 4px; padding: 0; list-style: none; }
.kc-stufen li {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto auto; align-items: center; gap: 12px; padding: 8px 14px; border-radius: 14px;
  background: rgba(0, 0, 0, .25); border: 1px solid rgba(var(--kl-gelb-rgb), .14); transition: transform .3s var(--kl-weich), border-color .3s;
}
.kc-stufen li:hover { transform: translateX(4px); border-color: rgba(var(--kl-gelb-rgb), .5); }
.kc-stufen li:last-child { border-color: rgba(var(--kl-gelb-rgb), .5); box-shadow: 0 0 26px -12px rgba(var(--kl-gelb-rgb), .7); }
.kc-geschenk { font-size: 22px; line-height: 1; }
.kc-abos { font-size: 13.5px; color: var(--kl-leise); }
.kc-abos b { font-family: var(--kl-titel); font-size: 17px; color: #fff; }
.kc-pfeil { color: var(--kl-still); }
.kc-stufen strong { font-family: var(--kl-titel); font-size: 18px; color: var(--kl-gelb); white-space: nowrap; }
.kl-kachel .kc-motto { font-family: var(--kl-titel); font-size: 17px; letter-spacing: .02em; color: #e6d4ff; }
.kl-kachel .kc-wichtig { color: #fff; }
@media (max-width: 620px) {
  .kc-auswahl { grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; }
  .kc-auswahl-bild { height: 92px; }
  .kc-itemliste { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .kc-itembild, .kc-itembild img { height: 52px; }
  .kc-itemliste b { font-size: 12.5px; overflow-wrap: anywhere; }
  .kb-top li { grid-template-columns: 30px 40px minmax(0, 1fr); gap: 10px; }
  .kb-top-platz { width: 30px; height: 30px; font-size: 15px; }
  .kb-top .kb-kopf { width: 40px; height: 40px; }
  .kb-top .kb-wert { grid-column: 3; margin-top: -8px; text-align: left; }
  .kc-stufen li { gap: 8px; padding: 8px 12px; }
  .kc-pfeil { display: none; }
}
@media (max-width: 620px) {
  .kc-buehne { aspect-ratio: 4 / 3; }
  .kc-figuren { gap: 0; }
  .kc-figur { height: 70%; }
  .kc-platz { width: 19%; height: 70%; }
  .kc-platz:nth-child(n+5) { display: none; }
  .kc-knall { width: 22%; }
}
@media (prefers-reduced-motion: reduce) { .kc-welt, .kc-figur, .kc-schein, .kc-glut i { animation: none !important; } .kc-glut { display: none; } }

/* ══ KennsteKampf: die ganze Bestenliste ═════════════════════════
   Klappt über ihre Kachel auf (kampf-bestenliste.js) — ohne Skript steht
   sie immer da. Das Treppchen kommt aus stil.css (.kl-podest: Gold in der
   Mitte, Silber links, Bronze rechts) — hier stehen statt Profilbildern die
   Figuren drauf. Darunter klein der Rest mit Platz, Kopf der Figur und Wert. */
.kb-voll {
  margin-top: 20px; padding: clamp(22px, 3.4vw, 40px); border-radius: 26px;
  background: linear-gradient(160deg, rgba(62, 32, 104, .5), rgba(26, 9, 48, .86)); border: 1px solid rgba(var(--kl-gelb-rgb), .32);
  box-shadow: 0 34px 70px -40px #000;
}
.js .kb-voll:not(.offen) { display: none; }
.js .kb-voll.offen { animation: kbAuf .5s var(--kl-weich) both; }
@keyframes kbAuf { from { opacity: 0; transform: translateY(-14px); } }
.kb-vollkopf { position: relative; margin-bottom: 22px; padding: 0 120px; text-align: center; }
.kb-vollkopf .kl-titel { margin: 0; }
.kb-vollkopf .kl-unterzeile { margin: 8px auto 0; }
.kb-zu { position: absolute; top: 0; right: 0; }
.kb-zu[hidden] { display: none; }
@media (max-width: 620px) {
  .kb-vollkopf { padding: 0; }
  .kb-zu { position: static; margin: 14px auto 0; }
}
.kb-inhalt { transition: opacity .25s; }
.kb-inhalt.laedt { opacity: .45; pointer-events: none; }
.kb-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 18px; margin: 4px auto 0; }
.kb-gruppe { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; padding: 4px; border-radius: 22px; background: rgba(0, 0, 0, .28); border: 1px solid rgba(255, 255, 255, .08); }
.kb-chip { padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 800; color: var(--kl-leise); text-decoration: none; white-space: nowrap; transition: background .25s, color .25s; }
.kb-chip:hover { color: #fff; background: rgba(255, 255, 255, .07); }
.kb-chip.an { background: var(--kl-gelb); color: #1c0a32; }
.kb-podest { padding-top: 56px; }
.kb-podest .kl-podest-name { margin-top: 0; }
.kb-figur { position: relative; z-index: 1; display: flex; align-items: flex-end; justify-content: center; height: var(--figur, 178px); margin-top: 10px; margin-bottom: -17px; }
.kb-figur img { display: block; width: auto; height: 100%; max-width: none; filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .55)); transform-origin: 50% 100%; animation: kcSteh 3s ease-in-out infinite; }
.kl-podest-platz.p1 .kb-figur { --figur: 220px; }
.kl-podest-platz.p1 .kb-figur img { filter: drop-shadow(0 10px 8px rgba(0, 0, 0, .55)) drop-shadow(0 0 24px rgba(var(--kl-gelb-rgb), .55)); animation-delay: -1s; }
.kl-podest-platz.p3 .kb-figur { --figur: 164px; }
.kl-podest-platz.p3 .kb-figur img { animation-delay: -2s; }
.kb-figur.leer::before { content: ''; width: 34%; height: 70%; border-radius: 40% 40% 12px 12px; border: 2px dashed rgba(255, 255, 255, .2); background: rgba(255, 255, 255, .03); }
.kb-podest .kl-krone { top: -48px; }
.kb-podest .kl-podest-platz.gefunden .kl-podest-name { color: #fff; text-shadow: 0 0 18px rgba(var(--kl-gelb-rgb), .9); }
.kb-podest .kl-podest-platz.gefunden .kb-figur img { filter: drop-shadow(0 0 3px #fff) drop-shadow(0 0 22px rgba(var(--kl-gelb-rgb), .95)); }
.js .kb-podest .kb-figur { opacity: 0; }
.js .kb-podest.sichtbar .kb-figur { opacity: 1; animation: klAvatar .8s cubic-bezier(.3, 1.5, .5, 1) backwards; }
.js .kb-podest.sichtbar .p2 .kb-figur { animation-delay: .45s; }
.js .kb-podest.sichtbar .p1 .kb-figur { animation-delay: .7s; }
.js .kb-podest.sichtbar .p3 .kb-figur { animation-delay: .85s; }
.kb-hinweis { max-width: 620px; margin: 26px auto 0 !important; text-align: center; color: var(--kl-leise); }
.kb-hinweis.klein { margin-top: 12px !important; font-size: 14px; }
.kb-rest { max-width: 980px; margin: 34px auto 0; }
.kb-restkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 12px; }
.kb-zahl { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kl-still); }
.kb-suche { width: min(100%, 260px); padding: 9px 14px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px; }
.kb-suche:focus { outline: none; border-color: rgba(var(--kl-gelb-rgb), .7); box-shadow: 0 0 0 3px rgba(var(--kl-gelb-rgb), .18); }
.kb-liste { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px 14px; margin: 0; padding: 0; list-style: none; }
.kb-liste li { display: grid; grid-template-columns: 38px 34px minmax(0, 1fr) auto auto; align-items: center; gap: 10px; padding: 5px 12px 5px 6px; border-radius: 12px;
  background: rgba(0, 0, 0, .22); border: 1px solid rgba(255, 255, 255, .05); font-size: 14px; }
.kb-liste li[hidden], .kb-liste.gekuerzt:not(.sucht) li:nth-child(n+51) { display: none; }
.kb-platz { font-family: var(--kl-titel); font-size: 15px; text-align: center; color: var(--kl-still); font-variant-numeric: tabular-nums; }
.kb-kopf { display: block; width: 34px; height: 34px; overflow: hidden; border-radius: 50%; background: radial-gradient(circle at 50% 30%, rgba(var(--kl-gelb-rgb), .22), rgba(23, 5, 43, .6) 70%); }
.kb-kopf img { display: block; width: 160%; max-width: none; height: auto; margin: 2px 0 0 -30%; }
.kb-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 800; color: #fff; }
.kb-lv { padding: 2px 8px; border-radius: 999px; background: rgba(var(--kl-gelb-rgb), .14); font-family: var(--kl-titel); font-size: 11px; color: var(--kl-gelb); white-space: nowrap; }
.kb-wert { font-size: 12.5px; color: var(--kl-leise); white-space: nowrap; text-align: right; }
.kb-wert b { font-family: var(--kl-titel); font-size: 14px; color: var(--kl-gelb); font-variant-numeric: tabular-nums; }
.kb-mehr { display: flex; margin: 14px auto 0; }
.kb-mehr[hidden] { display: none; }
@media (max-width: 760px) { .kb-liste { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 620px) {
  .kb-podest { padding-top: 44px; }
  .kl-podest-platz .kb-figur { --figur: 112px; }
  .kl-podest-platz.p1 .kb-figur { --figur: 138px; }
  .kl-podest-platz.p3 .kb-figur { --figur: 102px; }
  .kb-podest .kl-krone { top: -38px; }
  .kb-chip { padding: 6px 10px; font-size: 12.5px; }
  .kb-restkopf { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) { .kb-figur img { animation: none !important; } }

/* ══ Das Dashboard ═══════════════════════════════════════════════ */
.kd-kopf { grid-template-columns: auto minmax(0, 1fr) auto; }
.kd-logo { display: flex; align-items: baseline; gap: 10px; transform: rotate(-3deg); }
.kd-logo span, .kd-logo b { font-family: var(--kl-titel); font-size: clamp(30px, 4vw, 50px); line-height: 1; text-transform: uppercase; }
.kd-logo span { color: #fff; text-shadow: 2px 0 0 var(--kc-kontur), -2px 0 0 var(--kc-kontur), 0 2px 0 var(--kc-kontur), 0 -2px 0 var(--kc-kontur), 0 5px 0 var(--kc-kontur); }
.kd-logo b { color: var(--kl-gelb); text-shadow: 2px 0 0 var(--kc-kontur), -2px 0 0 var(--kc-kontur), 0 2px 0 var(--kc-kontur), 0 -2px 0 var(--kc-kontur), 0 5px 0 var(--kc-kontur), 0 0 24px rgba(var(--kl-gelb-rgb), .5); }
.kd-knoepfe { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.kd-knoepfe .kl-knopf:disabled { opacity: .45; cursor: not-allowed; }
.kd-runde { border-color: rgba(var(--kl-gelb-rgb), .55); }
.kd-uhrtext { margin: 0 0 12px !important; font-weight: 800; color: #ffe9a6; }
.kd-uhrtext:empty { display: none; }
.kd-teilnehmer { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.kd-chip { position: relative; display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 14px; background: rgba(0, 0, 0, .25); border: 1px solid rgba(255, 255, 255, .1); animation: kdChip .4s cubic-bezier(.3, 1.5, .5, 1); }
@keyframes kdChip { from { opacity: 0; transform: scale(.8); } }
.kd-chiptext { display: grid; min-width: 0; }
.kd-chiptext b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #fff; }
.kd-chiptext small { font-size: 12px; color: var(--kl-still); }
.kd-weg { width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .08); color: var(--kl-leise); font-size: 18px; line-height: 1; cursor: pointer; }
.kd-weg:hover { background: rgba(255, 77, 109, .3); color: #fff; }
.kd-bild { display: flex; justify-content: center; align-items: flex-end; width: 44px; height: 54px; overflow: hidden; border-radius: 10px; background: radial-gradient(circle at 50% 30%, rgba(var(--kl-gelb-rgb), .25), rgba(23, 5, 43, .5) 70%); }
.kd-bild img { flex: none; width: auto; height: 50px; max-width: none; }
.kd-plan { display: grid; gap: 6px; margin: 14px 0 0; padding: 0; list-style: none; counter-reset: plan; }
.kd-plan li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 12px; border-radius: 12px; background: rgba(0, 0, 0, .2); font-size: 14px; transition: background .3s, opacity .3s; }
.kd-plantitel { font-size: 12px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--kl-still); }
.kd-plan li b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kd-plansieger { font-weight: 800; color: var(--kl-gelb); }
.kd-plan li.jetzt { background: rgba(var(--kl-gelb-rgb), .16); box-shadow: inset 0 0 0 1.5px rgba(var(--kl-gelb-rgb), .6); }
.kd-plan li.vorbei { opacity: .5; }
.kd-chat { font-size: 13px; font-weight: 800; color: var(--kl-still); }
.kd-chat.an { color: #7dffb2; }
.kd-test { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) auto auto; gap: 8px; margin-top: 12px; padding-top: 12px; border-top: 1px dashed rgba(255, 255, 255, .1); }
.kd-test .qs-hinweis { grid-column: 1 / -1; }
.kd-test input, .kd-suche, .kd-tabelle select {
  min-width: 0; padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px;
}
.kd-log { display: grid; gap: 6px; margin: 0; padding: 0; list-style: none; max-height: 340px; overflow-y: auto; }
.kd-log li { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 10px; font-size: 14px; }
.kd-log time { font-size: 12px; color: var(--kl-still); }
.kd-verlauf { display: grid; gap: 6px; margin-top: 14px; }
.kd-verlauf h3 { margin: 0 0 2px; font-family: var(--kl-titel); font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--kl-gelb); }
.kd-verlauf p { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 8px; align-items: baseline; margin: 0; padding: 7px 10px; border-radius: 10px; background: rgba(0, 0, 0, .2); font-size: 13px; }
.kd-verlauf p.sieg { background: rgba(var(--kl-gelb-rgb), .14); }
.kd-verlauf time { font-size: 11px; color: var(--kl-still); }
.kd-suche { width: min(100%, 280px); }
.kd-liste { margin-top: 12px; overflow-x: auto; }
.kd-tabelle { width: 100%; border-collapse: separate; border-spacing: 0 6px; font-size: 14px; }
.kd-tabelle th { padding: 0 10px 4px; text-align: left; font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--kl-still); white-space: nowrap; }
.kd-tabelle td { padding: 8px 10px; background: rgba(0, 0, 0, .22); vertical-align: middle; }
.kd-tabelle td:first-child { border-radius: 12px 0 0 12px; }
.kd-tabelle td:last-child { border-radius: 0 12px 12px 0; }
.kd-rang { font-family: var(--kl-titel); color: var(--kl-still); width: 40px; }
.kd-tabelle tr:nth-child(-n+3) .kd-rang { color: var(--kl-gelb); }
.kd-wer { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.kd-wer span:last-child { display: grid; min-width: 0; }
.kd-wer b { color: #fff; }
.kd-wer small { font-size: 12px; color: var(--kl-still); }
.kd-level { text-align: center; white-space: nowrap; }
.kd-level b { display: block; font-family: var(--kl-titel); font-size: 26px; line-height: 1; color: var(--kl-gelb); }
.kd-level small { font-size: 11px; color: var(--kl-still); }
.kd-xp { min-width: 200px; }
.kd-xp small { display: block; margin-top: 4px; font-size: 12px; color: var(--kl-still); }
.kd-xpbalken { display: block; height: 10px; border-radius: 999px; overflow: hidden; background: rgba(255, 255, 255, .08); }
.kd-xpbalken i { display: block; height: 100%; border-radius: 999px; background: linear-gradient(90deg, #7b3fe4, #bf94ff); }
.kd-aktionen { white-space: nowrap; }
.kd-lvknoepfe { display: flex; justify-content: center; gap: 4px; margin-top: 4px; }
.kd-mini { width: 26px; height: 24px; padding: 0; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .06); color: var(--kl-leise); font-size: 13px; line-height: 1; cursor: pointer; }
.kd-mini:hover { background: rgba(var(--kl-gelb-rgb), .2); border-color: rgba(var(--kl-gelb-rgb), .6); color: #fff; }
.kd-verwalten { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.kd-neu { display: flex; flex: 1 1 440px; flex-wrap: wrap; gap: 8px; }
.kd-neu input { min-width: 0; width: min(100%, 260px); padding: 9px 12px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px; }
.kd-tabelle select { width: 100%; max-width: 165px; }
.kd-tabelle th, .kd-tabelle td { padding-left: 8px; padding-right: 8px; }
.kd-xp { min-width: 170px; }
.kd-aktionen .kl-knopf { margin-left: 4px; }
.kd-aktionen .kl-knopf:disabled { opacity: .5; cursor: default; }
.kd-einstellungen { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; align-items: end; }
.kd-einstellungen .kl-feld { margin: 0; }
.kd-einstellungen select {
  width: 100%; padding: 13px 15px; border-radius: 12px; border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(10, 2, 22, .55); color: #fff; font: inherit; font-size: 16px; line-height: 1.4;
}
.kd-einstellungen select option { background: #1c0a32; }
.kd-einstellungen .kl-knopf { justify-self: start; }
.kampf-dashboard .qs-hinweis code { padding: 1px 6px; border-radius: 6px; background: rgba(var(--kl-gelb-rgb), .14); color: var(--kl-gelb); }
@media (max-width: 860px) {
  .kd-kopf { grid-template-columns: minmax(0, 1fr); }
  .kd-test, .kd-einstellungen { grid-template-columns: minmax(0, 1fr); }
  .kd-plan li { grid-template-columns: minmax(0, 1fr); }
}
/* Dashboard: Ist die Figur vom Admin festgelegt (oder frei für „MeinKämpfer“)? */
.kd-figursperre { display: block; margin-top: 4px; padding: 2px 8px; border: 1px solid rgba(255, 255, 255, .2); border-radius: 999px; background: rgba(0, 0, 0, .25);
  color: var(--kl-still); font: inherit; font-size: 11px; font-weight: 800; cursor: pointer; white-space: nowrap; }
.kd-figursperre.zu { border-color: rgba(var(--kl-gelb-rgb), .6); color: var(--kl-gelb); }
.kd-figursperre:hover { border-color: #fff; color: #fff; }
/* Dashboard: Punkte (mit Abo-Bonus), die Items eines Kämpfers, alle auf ein Level setzen */
.kd-punkte { text-align: center; white-space: nowrap; }
.kd-punkte b { font-family: var(--kl-titel); font-size: 17px; color: #fff; margin-right: 4px; }
.kd-abo { display: block; margin-top: 4px; font-size: 11px; font-weight: 800; color: #d2b4ff; white-space: normal; max-width: 150px; margin-inline: auto; }
.kd-besitz { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.kd-itembild { display: grid; place-items: center; width: 34px; height: 26px; padding: 2px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, .14); background: rgba(255, 255, 255, .05); cursor: pointer; }
.kd-itembild img { max-width: 100%; max-height: 100%; object-fit: contain; }
.kd-tische { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 12.5px; color: var(--kl-leise); white-space: nowrap; }
.kd-tische img { width: 26px; height: auto; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); }
.kd-tische b { color: #fff; }
.kd-tische.hat b { color: #ff8fc8; }
.kd-tische:not(.hat) img { filter: grayscale(.8) brightness(.7); }
.kd-tische.champagner { margin-top: 3px; }
.kd-tische.champagner img { width: auto; height: 26px; }
.kd-tische.champagner.hat b { color: #ffe08a; }
.kd-itembild.an { border-color: var(--kl-gelb); background: rgba(var(--kl-gelb-rgb), .16); }
.kd-itembild:hover { border-color: #ff8fa8; background: rgba(255, 70, 110, .14); }
.kd-alle { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.kd-alle label { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 800; color: var(--kl-leise); }
.kd-alle input { width: 64px; padding: 7px 8px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px; text-align: center; }
/* Dashboard: die Dauerschleife (Knopf und Hinweis im Reiter Live) */
.kd-schleife.an { border-color: #a970ff; color: #e4d2ff; box-shadow: 0 0 0 1px #a970ff, 0 0 18px -6px rgba(169, 112, 255, .9); }
.kd-schleifetext { margin: 0 0 6px; padding: 8px 12px; border-radius: 12px; background: rgba(169, 112, 255, .14); box-shadow: inset 0 0 0 1px rgba(169, 112, 255, .5);
  color: #e4d2ff; font-size: 13.5px; font-weight: 800; }
/* Dashboard: Wer darf mitkämpfen? — vier Schalter (die Kippschalter aus stil.css, .kl-ao-schalt) */
.kd-werschalter { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.kd-werschalter .kl-ao-schalt small { font-size: 12px; }
/* Ist „Jeder“ an, zählen die anderen drei nicht — sie treten zurück (bleiben aber schaltbar) */
.kd-darf.jeder .kl-ao-schalt:not(.kd-jeder) { opacity: .45; }
.kd-darf.jeder .kl-ao-schalt:not(.kd-jeder):hover { opacity: .75; }
.kd-werstand { margin: 12px 0 0; padding: 8px 12px; border-radius: 12px; font-size: 13.5px; font-weight: 800;
  background: rgba(88, 214, 141, .1); box-shadow: inset 0 0 0 1px rgba(88, 214, 141, .45); color: #c9f7dc; }
.kd-werstand.zu { background: rgba(var(--kl-gelb-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--kl-gelb-rgb), .5); color: #ffe9a6; }
.kd-werstand.niemand { background: rgba(255, 70, 100, .12); box-shadow: inset 0 0 0 1px rgba(255, 90, 120, .55); color: #ffc9d5; }
.kd-wertext { background: rgba(var(--kl-gelb-rgb), .1); box-shadow: inset 0 0 0 1px rgba(var(--kl-gelb-rgb), .5); color: #ffe9a6; }
.kd-test select { min-width: 0; padding: 9px 10px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .16); background: rgba(0, 0, 0, .3); color: #fff; font: inherit; font-size: 14px; }
.kd-test select option { background: #1c0a32; }
@media (max-width: 860px) { .kd-werschalter { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 480px) { .kd-werschalter { grid-template-columns: minmax(0, 1fr); } }
