/* Joculus Studios — wiki-claw-machine-heroes.css
   Bausteine nur für das Claw-Machine-Heroes-Wiki: Gegner-, Helden- und Minispielkarten, Stage-Tabelle. */

.cmh-tag { display: inline-block; padding: 1px 8px; margin: 2px 4px 2px 0; border-radius: 999px; font-size: 0.75rem; background: var(--surface); color: var(--text-muted); white-space: nowrap; }
.cmh-tag.boss { background: rgba(242, 195, 91, 0.16); color: #f2c35b; }
.cmh-tag.neu { background: rgba(80, 216, 255, 0.14); color: #7fe3ff; }
.cmh-swatch { display: inline-block; width: 12px; height: 12px; margin-right: 8px; border-radius: 3px; vertical-align: -1px; }

/* Gegnerkarten */
.cmh-foes { display: grid; grid-template-columns: minmax(0, 1fr); gap: 14px; margin: 18px 0 28px; }
.cmh-foe {
  display: grid; grid-template-columns: minmax(0, 1fr) 260px; grid-template-rows: auto auto 1fr; gap: 4px 18px; align-items: start; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); scroll-margin-top: 140px;
}
.cmh-foe-clip { grid-row: 1 / -1; margin: 0; display: grid; gap: 8px; min-width: 0; }
.cmh-foe video { display: block; width: 100%; height: auto; aspect-ratio: 720 / 450; object-fit: cover; border-radius: 12px; background: #0d1122; }
.cmh-clip-tabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 6px; }
.cmh-clip-tabs button { min-width: 0; min-height: 40px; padding: 6px 2px; border: 1px solid var(--border-strong); border-radius: 999px; background: var(--surface); color: var(--text-muted); font: inherit; font-size: 0.82rem; font-weight: 650; cursor: pointer; }
.cmh-clip-tabs button:hover { color: var(--text); }
.cmh-clip-tabs button[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: #07101f; }
.cmh-clip-tabs button:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.cmh-foe.boss { border-color: #7a5a1e; background: linear-gradient(160deg, rgba(242, 195, 91, 0.08), transparent 60%), var(--bg-elevated); }
.cmh-foe h3 { margin: 0 !important; font-size: 1.05rem; }
.cmh-foe .cmh-tags { margin: 0 !important; }
.cmh-foe .cmh-stats, .cmh-hero .cmh-stats { margin: 4px 0 0 !important; font-size: 0.86rem; line-height: 1.55; }

/* Heldenkarten */
.cmh-heroes { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 14px; margin: 18px 0 28px; }
.cmh-hero {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 4px 14px; align-items: start; padding: 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-elevated); scroll-margin-top: 140px;
}
.cmh-hero img { grid-row: span 3; width: 120px; height: auto; border-radius: 12px; background: radial-gradient(circle at 50% 60%, rgba(242, 195, 91, 0.14), transparent 70%), #0d1122; }
.cmh-hero h3 { margin: 0 !important; font-size: 1.05rem; }
.cmh-hero .cmh-flavor { margin: 0 !important; font-size: 0.86rem; font-style: italic; color: var(--text-faint); }

/* Minispiele */
.cmh-motto { color: var(--text-faint); }
.cmh-games { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 14px; margin: 12px 0 28px; }
.cmh-game { padding: 10px; border: 1px solid var(--border); border-top: 3px solid var(--farbe, var(--accent)); border-radius: var(--radius-sm); background: var(--bg-elevated); scroll-margin-top: 140px; }
.cmh-game img { display: block; width: 100%; height: auto; border-radius: 10px; background: #0d1122; }
.cmh-game h4 { margin: 10px 0 4px !important; font-size: 0.95rem; }
.cmh-game p { margin: 0 !important; font-size: 0.8rem; line-height: 1.45; color: var(--text-faint); }

/* Stage-Tabelle */
.cmh-stages .cmh-zone th { background: var(--surface); color: var(--text); text-align: left; font-size: 0.9rem; }
.cmh-stages tr[id] { scroll-margin-top: 140px; }
.cmh-clips small { color: var(--text-faint); }

@media (max-width: 600px) {
  .cmh-foe { grid-template-columns: minmax(0, 1fr); grid-template-rows: none; }
  .cmh-foe-clip { grid-row: auto; }
  .cmh-foe { padding: 8px; }
  .cmh-clip-tabs { gap: 4px; }
  .cmh-clip-tabs button { font-size: 0.76rem; }
  .cmh-hero { grid-template-columns: 90px minmax(0, 1fr); }
  .cmh-hero img { width: 90px; }
  .cmh-games { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

/* Animation archive: one player per character, no background autoplay. */
.cmh-animation-filter{display:grid;grid-template-columns:2fr 1fr;gap:14px;margin:24px 0}.cmh-animation-filter label,.cmh-animation-inner label{display:grid;gap:8px;font-weight:650}.cmh-animation-filter input,.cmh-animation-filter select,.cmh-animation-inner select{width:100%;min-width:0;padding:12px;color:#eaf3ff;background:#15213b;border:1px solid #385272;border-radius:12px;font:inherit}.cmh-animation-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px;align-items:start}.cmh-animation-card{border:1px solid #304b70;border-radius:18px;background:linear-gradient(145deg,#172840,#0e162a);overflow:hidden;scroll-margin-top:100px}.cmh-animation-card[hidden]{display:none}.cmh-animation-card summary{cursor:pointer;display:flex;justify-content:space-between;align-items:center;gap:10px;padding:18px;color:#eff7ff;font-weight:750}.cmh-animation-card summary::before{content:'▶';font-size:10px;color:#71e4eb}.cmh-animation-card[open] summary::before{content:'▼'}.cmh-animation-card small{font-size:11px;color:#9ab0cf;white-space:nowrap}.cmh-animation-inner{padding:0 16px 14px}.cmh-animation-inner video{display:block;width:100%;height:auto;max-height:460px;object-fit:contain;background:#111b30;border-radius:12px;margin-top:14px}.cmh-animation-caption{font-weight:700;margin:12px 0 4px!important}.cmh-animation-note{font-size:12px;color:#a8bbd8}.cmh-animation-filter input:focus-visible,.cmh-animation-inner select:focus-visible,.cmh-animation-card summary:focus-visible{outline:2px solid #71e4eb;outline-offset:2px}@media(max-width:700px){.cmh-animation-grid,.cmh-animation-filter{grid-template-columns:1fr}}@media(prefers-reduced-motion:no-preference){.cmh-animation-card{transition:border-color .15s}.cmh-animation-card:hover{border-color:#71e4eb}}

.cmh-figur { display: inline-flex; align-items: center; gap: 6px; margin: 2px 12px 2px 0; vertical-align: middle; }
.cmh-mini { width: 56px; height: 56px; border-radius: 8px; object-fit: cover; background: var(--surface); flex: none; }
.cmh-figur small { color: var(--text-muted); font-weight: 400; }
.cmh-wellen { margin-top: 6px; font-size: 0.86rem; }
.cmh-wellen summary { cursor: pointer; color: var(--text-muted); }
.cmh-wellen ol { list-style: none; margin: 6px 0 0; padding: 0; }
.cmh-wellen li { padding: 2px 0; }
.cmh-wellen li b { display: inline-block; min-width: 4.6em; font-weight: 600; }
/* cmh-stack: Stage-Liste auf dem Handy untereinander statt seitlich scrollen */
@media (max-width: 560px) {
  .cmh-stages table, .cmh-stages tbody, .cmh-stages tr, .cmh-stages td, .cmh-stages th { display: block; width: auto; white-space: normal; }
  .cmh-stages thead { display: none; }
  .cmh-stages tr[id] { padding: 10px 0; border-bottom: 1px solid var(--border, rgba(255,255,255,.1)); }
  .cmh-stages td { border: 0; padding: 2px 0; }
  .cmh-stages td.num { font-weight: 700; text-align: left; }
  .cmh-stages td.num::before { content: "Stage "; }
  .cmh-stages td:last-child::before { content: "Welle 10: "; color: var(--text-muted); font-size: 0.86rem; }
}

/* Offene Figur nimmt die volle Breite ein: Clips groß statt in halber Spalte. */
.cmh-animation-grid { grid-auto-flow: dense; }
.cmh-animation-card[open] { grid-column: 1 / -1; }
.cmh-animation-inner video { max-height: min(84vh, 760px); }

/* Screens: Stage-Videos und Kampfclip groß zeigen. */
.wiki-shots.cmh-stage-clips { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.wiki-shots.cmh-wide-clip { grid-template-columns: minmax(0, 1fr); }
