/* ══ Kennste Lars — „MeinKämpfer“ ═══════════════════════════════════════
   Links die Figur auf ihrem Podest (darunter die Vorschau, wie sie im Kampf
   verletzt aussieht), rechts erst die Figur, dann ihr Skin als Karten — die
   noch nicht freien gedämpft mit Schloss. Auf dem Handy steht alles
   untereinander, die Figur oben.                                          */
.mk { display: grid; gap: 34px; padding-top: 10px; }
.mk-meldung { margin: 0 !important; }
.mk code { padding: 1px 7px; border-radius: 6px; background: rgba(var(--kl-gelb-rgb), .14); color: var(--kl-gelb); font-weight: 800; }

/* ── Nicht angemeldet ── */
.mk-anmeldung {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); align-items: center; gap: 34px; padding: 34px;
  border-radius: 26px; background: linear-gradient(160deg, rgba(42, 19, 73, .92), rgba(23, 5, 43, .92)); box-shadow: inset 0 0 0 1.5px rgba(var(--kl-gelb-rgb), .28);
}
.mk-anmeldung-text { display: grid; gap: 14px; justify-items: start; }
.mk-anmeldung-text p { margin: 0; color: var(--kl-leise); line-height: 1.6; }
.mk-twitch { background: #9146ff; border-color: #9146ff; color: #fff; }
.mk-twitch:hover { transform: translateY(-2px); background: #a970ff; box-shadow: 0 18px 40px -16px rgba(145, 70, 255, 1); }
.mk-beispiele { display: flex; justify-content: center; align-items: flex-end; gap: 1%; height: 340px; }
.mk-beispiele img { width: auto; height: 100%; max-width: 16%; object-fit: contain; object-position: 50% 100%; filter: drop-shadow(0 18px 18px rgba(0, 0, 0, .45));
  animation: mkWippen 3.2s ease-in-out calc(var(--i) * -1.1s) infinite; }
@keyframes mkWippen { 50% { transform: translateY(-8px); } }

/* ── Angemeldet ── */
.mk-kopfzeile { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 20px; }
.mk-kopfzeile p { margin: 0; color: var(--kl-leise); }
.mk-kopfzeile strong { color: var(--kl-gelb); }
.mk-level { margin-left: 10px; padding: 3px 10px; border-radius: 999px; background: rgba(255, 255, 255, .07); color: var(--kl-text); font-size: 13px; font-weight: 800; }
.mk-kopfzeile form { margin: 0; }

.mk-editor { display: grid; grid-template-columns: minmax(260px, 380px) minmax(0, 1fr); align-items: start; gap: 30px; }
.mk-buehne { position: sticky; top: calc(var(--kl-kopf-h) + 16px); display: grid; gap: 14px; }
.mk-podest {
  position: relative; display: grid; grid-template-rows: minmax(0, 1fr); place-items: end center; height: min(62vh, 560px); padding: 18px 18px 26px; border-radius: 26px; overflow: hidden;
  background: radial-gradient(70% 22% at 50% 96%, rgba(0, 0, 0, .45), transparent 70%), radial-gradient(90% 70% at 50% 25%, rgba(var(--kl-gelb-rgb), .22), rgba(23, 5, 43, .2) 70%),
              linear-gradient(180deg, #3b1c66, #1d0a36);
  box-shadow: inset 0 0 0 1.5px rgba(var(--kl-gelb-rgb), .35), 0 24px 50px -30px rgba(0, 0, 0, .9);
}
.mk-figur { width: auto; height: 100%; max-height: 100%; max-width: 100%; min-height: 0; object-fit: contain; filter: drop-shadow(0 14px 14px rgba(0, 0, 0, .45)); }
.mk-status { margin: 0; padding: 10px 14px; border-radius: 14px; background: rgba(255, 255, 255, .05); font-weight: 700; line-height: 1.45; }
.mk-status.gut { background: rgba(110, 231, 168, .1); color: #c9f7de; box-shadow: inset 0 0 0 1px rgba(110, 231, 168, .4); }
.mk-status.offen { background: rgba(var(--kl-gelb-rgb), .1); color: #ffe9a6; box-shadow: inset 0 0 0 1px rgba(var(--kl-gelb-rgb), .45); }
.mk-status.zu { background: rgba(255, 70, 110, .1); color: #ffc9d5; box-shadow: inset 0 0 0 1px rgba(255, 90, 125, .45); }
.mk-link { padding: 0; border: 0; background: none; color: var(--kl-gelb); font: inherit; font-weight: 800; text-decoration: underline; cursor: pointer; }
.mk-knoepfe { display: flex; flex-wrap: wrap; gap: 10px; }
.mk-knoepfe[hidden] { display: none; }
.mk-knoepfe .kl-knopf.gelb { flex: 1 1 180px; justify-content: center; }
.mk-knoepfe .kl-knopf:disabled { opacity: .5; cursor: default; transform: none; }
.mk-knoepfe .pulsiert { animation: mkPuls 1.6s ease-in-out infinite; }
@keyframes mkPuls { 50% { box-shadow: 0 0 0 6px rgba(var(--kl-gelb-rgb), .25); } }
.mk-rueckmeldung { margin: 0; padding: 9px 13px; border-radius: 12px; font-size: 14.5px; font-weight: 700; }
.mk-rueckmeldung.gut { background: rgba(110, 231, 168, .1); color: #c9f7de; }
.mk-rueckmeldung.fehler { background: rgba(255, 70, 110, .12); color: #ffc9d5; }

/* Die Vorschau im Kampf: unverletzt, verletzt, schwer verletzt */
.mk-podestname { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); max-width: calc(100% - 24px); padding: 4px 12px; border-radius: 999px;
  background: rgba(23, 5, 43, .78); color: var(--kl-gelb); font-family: var(--kl-titel); font-size: 12px; letter-spacing: .05em; text-transform: uppercase;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-podestname:empty { display: none; }
.mk-stufen { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
.mk-stufen[hidden] { display: none; }
.mk-stufe {
  display: grid; gap: 1px; padding: 8px 6px; border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 12px; background: rgba(23, 5, 43, .5);
  color: var(--kl-leise); font: inherit; font-size: 13px; font-weight: 800; cursor: pointer; transition: background .2s, color .2s, border-color .2s;
}
.mk-stufe small { font-size: 11px; font-weight: 700; opacity: .75; }
.mk-stufe:hover { color: #fff; border-color: rgba(var(--kl-gelb-rgb), .6); }
.mk-stufe.an { background: rgba(var(--kl-gelb-rgb), .16); border-color: var(--kl-gelb); color: #fff; }

/* Figur und Skin wählen */
.mk-wahl { display: grid; grid-template-columns: minmax(0, 1fr); gap: 22px; min-width: 0; }
.mk-wahl[hidden] { display: none; }
.mk-block { display: grid; gap: 12px; padding: 20px; border-radius: 22px; background: rgba(42, 19, 73, .7); box-shadow: inset 0 0 0 1.5px rgba(var(--kl-gelb-rgb), .2); }
.mk-block h3 { margin: 0; font-family: var(--kl-titel); font-size: 15px; letter-spacing: .06em; text-transform: uppercase; color: var(--kl-gelb); }
.mk-block p { margin: 0; }
.mk-block[hidden] { display: none; }
.mk-block { grid-template-columns: minmax(0, 1fr); }
.mk-figurenliste, .mk-skinliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(112px, 1fr)); gap: 10px; }
.mk-karte {
  position: relative; display: grid; justify-items: center; align-content: end; gap: 3px; min-width: 0; padding: 10px 6px 8px;
  border: 1.5px solid rgba(255, 255, 255, .14); border-radius: 16px; background: radial-gradient(80% 50% at 50% 30%, rgba(var(--kl-gelb-rgb), .1), rgba(0, 0, 0, .25));
  color: var(--kl-text); font: inherit; cursor: pointer; transition: transform .15s, border-color .2s, background .2s;
}
.mk-karte img { width: 100%; height: 132px; object-fit: contain; filter: drop-shadow(0 8px 8px rgba(0, 0, 0, .4)); }
.mk-karte b { font-family: var(--kl-titel); font-size: 13px; letter-spacing: .04em; text-transform: uppercase; }
.mk-karte small { font-size: 11.5px; font-weight: 700; color: var(--kl-leise); }
.mk-karte:hover { transform: translateY(-2px); border-color: rgba(var(--kl-gelb-rgb), .7); }
.mk-karte.an { border-color: var(--kl-gelb); background: radial-gradient(80% 50% at 50% 30%, rgba(var(--kl-gelb-rgb), .26), rgba(var(--kl-gelb-rgb), .06)); box-shadow: 0 0 0 1px var(--kl-gelb); }
.mk-karte.an b { color: var(--kl-gelb); }
/* Noch nicht freie Skins: anzusehen, aber gedämpft und mit Schloss */
.mk-karte.zu img { filter: grayscale(.85) brightness(.55) drop-shadow(0 8px 8px rgba(0, 0, 0, .4)); }
.mk-karte.zu small { color: #ffc9d5; }
.mk-karte.zu.an { border-color: rgba(255, 90, 125, .7); box-shadow: 0 0 0 1px rgba(255, 90, 125, .7); background: rgba(255, 70, 110, .08); }
.mk-karte:focus-visible, .mk-stufe:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }

/* Das Item in der Hand auf dem Podest — Platz und Größe setzt mein-kaempfer.js (wie im Overlay) */
.mk-handitem { position: absolute; z-index: 2; display: block; pointer-events: none; filter: drop-shadow(0 0 1.5px #fff) drop-shadow(0 0 10px rgba(251, 193, 2, .55)) drop-shadow(0 5px 5px rgba(0, 0, 0, .5)); }
.mk-handitem[hidden] { display: none; }
.mk-handitem img { display: block; width: 100%; height: auto; }
/* Noch nicht gekauft — nur zur Ansicht */
.mk-handitem.vorschau { opacity: .8; }

/* Der Shop: Punkte, Abo-Bonus, die Items als Karten */
.mk-punktestand b, .mk-konto b { color: var(--kl-gelb); }
.mk-shopkopf { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 14px; }
.mk-konto { padding: 5px 14px; border-radius: 999px; background: rgba(var(--kl-gelb-rgb), .12); box-shadow: inset 0 0 0 1px rgba(var(--kl-gelb-rgb), .45); font-weight: 800; font-size: 14px; }
.mk-konto b { font-family: var(--kl-titel); font-size: 16px; letter-spacing: .03em; }
.mk-abo { 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-weight: 800; font-size: 14px; }
.mk-abo[hidden] { display: none; }
.mk-itemliste { display: grid; grid-template-columns: repeat(auto-fill, minmax(132px, 1fr)); gap: 10px; }
@media (max-width: 520px) {
  .mk-itemliste { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-karte.item b { font-size: 11px; letter-spacing: 0; }
}
.mk-karte.item { align-content: start; padding: 10px 8px 9px; }
.mk-itembild { display: grid; place-items: center; width: 100%; height: 70px; }
.mk-karte.item .mk-itembild img { height: 70px; }
.mk-karte .mk-itembild img { width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.mk-faust { font-size: 40px; line-height: 1; }
.mk-karte.item b { max-width: 100%; text-align: center; overflow-wrap: anywhere; hyphens: auto; }
.mk-werte { font-size: 11px; font-weight: 800; color: #c9f7de; text-align: center; line-height: 1.3; }
.mk-karte.item small { font-weight: 800; color: var(--kl-gelb); }
.mk-karte.item small.teuer { color: #ffc9d5; }
.mk-karte.item:not(.hat) .mk-itembild img { filter: grayscale(.35) brightness(.85) drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.mk-karte.item.drin { box-shadow: inset 0 0 0 2px rgba(110, 231, 168, .7); }
.mk-karte.item.drin small { color: #8ef0bd; }
.mk-itemknoepfe { display: flex; }
.mk-itemknoepfe .kl-knopf { flex: 1 1 auto; justify-content: center; }
.mk-itemknoepfe .kl-knopf:disabled { opacity: .55; cursor: default; transform: none; }
.mk-itemknoepfe .pulsiert { animation: mkPuls 1.6s ease-in-out infinite; }
/* Der Tisch: zum Verbrauchen — Bild, Text mit „Du hast …“, Kaufknopf */
.mk-tisch { display: grid; grid-template-columns: 92px minmax(0, 1fr); gap: 6px 14px; align-items: center; padding: 12px 14px; border-radius: 16px;
            background: linear-gradient(135deg, rgba(255, 79, 163, .13), rgba(var(--kl-gelb-rgb), .06)); box-shadow: inset 0 0 0 1px rgba(255, 79, 163, .45); }
.mk-tischbild { grid-row: span 2; display: grid; place-items: center; }
.mk-tischbild img { width: 92px; height: auto; filter: drop-shadow(0 6px 6px rgba(0, 0, 0, .45)); }
.mk-tischtext { display: grid; gap: 4px; font-size: 13px; line-height: 1.45; }
.mk-tischtext b { font-family: var(--kl-titel); font-size: 14px; letter-spacing: .04em; text-transform: uppercase; color: #ff8fc8; }
.mk-tischtext b small { font-family: inherit; font-size: 11px; color: var(--kl-leise); letter-spacing: .02em; }
.mk-tischzahl { font-weight: 800; }
.mk-tischzahl b { font-family: var(--kl-titel); color: var(--kl-gelb); font-size: 15px; text-transform: none; letter-spacing: .02em; }
.mk-tisch:not(.hat) .mk-tischzahl b { color: var(--kl-leise); }
.mk-tisch .kl-knopf { justify-content: center; }
.mk-tisch .kl-knopf:disabled { opacity: .55; cursor: default; transform: none; }
@media (max-width: 520px) {
  .mk-tisch { grid-template-columns: 64px minmax(0, 1fr); padding: 10px; }
  .mk-tischbild img { width: 64px; }
  .mk-tisch .kl-knopf { grid-column: 1 / -1; }
}

/* So kämpfst du */
.mk-info { padding: 24px 28px; border-radius: 22px; background: rgba(23, 5, 43, .5); box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .08); }
.mk-info ol { margin: 14px 0 12px; padding-left: 22px; color: var(--kl-text); line-height: 1.7; }
.mk-info a { color: var(--kl-gelb); }

@media (max-width: 860px) {
  .mk-anmeldung { grid-template-columns: minmax(0, 1fr); padding: 24px 20px; }
  .mk-beispiele { height: 260px; }
  .mk-editor { grid-template-columns: minmax(0, 1fr); }
  .mk-buehne { position: static; }
  .mk-podest { height: min(56vh, 440px); }
}
@media (prefers-reduced-motion: reduce) {
  .mk-beispiele img, .mk-knoepfe .pulsiert, .mk-itemknoepfe .pulsiert { animation: none; }
  .mk-karte { transition: none; }
}
/* Die Champagner-Flasche: golden statt pink, das Bild hochkant */
.mk-tisch.champagner { background: linear-gradient(135deg, rgba(255, 214, 102, .15), rgba(var(--kl-gelb-rgb), .04)); box-shadow: inset 0 0 0 1px rgba(255, 214, 102, .5); }
.mk-tisch.champagner .mk-tischtext b { color: #ffe08a; }
.mk-tisch.champagner .mk-tischbild img { width: auto; height: 104px; }
@media (max-width: 520px) { .mk-tisch.champagner .mk-tischbild img { height: 72px; } }
