/* wiki.css — Wiki-Seiten, aufbauend auf legal/legal.css (Farben, Schrift, Kopf, Fuß).
 * Mobil zuerst: Tabellen scrollen waagerecht in ihrem Kasten, nie die ganze Seite. */
.top nav a { white-space: nowrap; }
.top { flex-wrap: wrap; gap: 8px; }
.crumbs { color: var(--muted); font-size: 0.9rem; margin: 16px 0 0; }
.lead { color: var(--muted); }
.muted { color: var(--muted); }

table { width: 100%; border-collapse: collapse; margin: 8px 0 16px; display: block; overflow-x: auto; }
thead, tbody { width: 100%; }
th, td { text-align: left; padding: 6px 10px; border-bottom: 1px solid var(--border); vertical-align: middle; }
thead th { color: var(--muted); font-weight: 600; font-size: 0.85rem; white-space: nowrap; }
.num { text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; }
table.facts { display: table; width: auto; }
table.facts th { color: var(--muted); font-weight: 400; padding-left: 0; }
table.facts td { font-variant-numeric: tabular-nums; }

a.mat { display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
a.mat img, .ico-24 { width: 24px; height: 24px; flex: none; }
.ico { display: inline-flex; align-items: center; justify-content: center; color: var(--focus); }
.ico-24 { font-size: 16px; }
.ico-48 { width: 48px; height: 48px; font-size: 32px; }
h1.with-icon { display: flex; align-items: center; gap: 12px; }
h1.with-icon img { width: 48px; height: 48px; }

.enemy { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 12px; }
.enemy h2 { margin-top: 0; }
/* Gegnerblatt: waagerechtes Spritesheet mit 128er Zellen — der Kasten zeigt nur die erste Zelle. */
.sheet { width: 128px; height: 128px; overflow: hidden; flex: none; }
.sheet img { height: 128px; width: auto; max-width: none; display: block; }

.pool { color: var(--muted); }
.pager { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 24px; }
.pager .next { margin-left: auto; }

.cards { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.cards a { display: block; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 14px; text-decoration: none; color: var(--text); }
.cards a:hover, .cards a:focus-visible { border-color: var(--link); }
.cards b { display: block; font-size: 1.1rem; color: var(--link); margin-bottom: 4px; }
.cards span { color: var(--muted); font-size: 0.9rem; }

.play { text-align: center; margin: 32px 0 0; }
.play-btn { display: inline-block; background: var(--focus); color: #1a1405; font-weight: 700; padding: 12px 22px; border-radius: 8px; text-decoration: none; }
.play-btn:hover { filter: brightness(1.08); }

h3 { font-size: 1rem; margin: 20px 0 6px; }
/* Spoiler: zum Aufklappen (Artefakt-Boni, letzter Sektor). */
details.spoiler { margin: 6px 0; }
details.spoiler > summary { cursor: pointer; color: var(--link); display: inline-block; padding: 4px 0; }
details.spoiler > summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
details.spoiler[open] > summary { color: var(--muted); }
details.spoiler > :not(summary) { margin-top: 6px; }
.arts { list-style: none; padding: 0; display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.art { display: flex; gap: 12px; align-items: flex-start; background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px; }
.art img { flex: none; width: 96px; height: 96px; }
.art p { margin: 4px 0; }
.sectors { list-style: none; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.sector { background: var(--panel); border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px; }
.sector p { margin: 6px 0; }
.sector ul { margin: 0; padding-left: 1.1rem; }
