/* Mebula Legends Wiki. Eine Datei für alle Seiten (erzeugt von wiki/_build/build.ts).
   Farben wie im Spiel: Nachtviolett, Gold als Akzent. */
@font-face { font-family: "Cinzel"; src: url("/fonts/cinzel-var.woff2") format("woff2"); font-weight: 400 900; font-display: swap; }

:root {
  --bg: #0b0518; --bg2: #120626; --panel: rgba(30, 14, 60, .78); --panel-solid: #1a0b36; --line: #34186a; --line-soft: #4a2590;
  --text: #ece0ff; --text-soft: #c4aee6; --muted: #9a84c2; --gold: #f0c040; --gold-hi: #ffe08a; --accent: #8f4ae8; --link: #ffd36a;
  --ok: #3ddc84; --bad: #ff6b7a; --radius: 14px; --top: 64px; --nav: 268px;
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--top) + 12px); }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.65 system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif; }
body.w-body { background: radial-gradient(1200px 600px at 70% -10%, #2b1162 0%, transparent 60%), radial-gradient(900px 500px at -10% 30%, #1d0b44 0%, transparent 55%), var(--bg); background-attachment: fixed; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { font-family: "Cinzel", Georgia, serif; line-height: 1.25; color: #fff; }
.w-i { width: 20px; height: 20px; flex: none; }
.w-skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--gold); color: #1a0b36; padding: 8px 14px; border-radius: 8px; }
.w-skip:focus { left: 12px; }

/* Kopfzeile */
.w-top { position: sticky; top: 0; z-index: 50; height: var(--top); background: rgba(14, 6, 32, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.w-top-in { height: 100%; display: flex; align-items: center; gap: 14px; padding: 0 16px; }
.w-logo { display: flex; align-items: center; gap: 8px; flex: none; }
.w-logo img { width: 92px; height: auto; display: block; }
.w-logo-wiki { font: 700 13px/1 "Cinzel", serif; letter-spacing: .12em; text-transform: uppercase; color: var(--gold); border: 1px solid rgba(240, 192, 64, .5); padding: 4px 7px; border-radius: 6px; }
.w-logo:hover { text-decoration: none; }
.w-search { position: relative; flex: 1; max-width: 520px; margin: 0 auto; }
.w-search input { width: 100%; height: 40px; border-radius: 10px; border: 1px solid var(--line-soft); background: rgba(8, 3, 20, .7); color: var(--text); padding: 0 14px; font: inherit; font-size: 15px; }
.w-search input:focus { outline: 2px solid var(--gold); outline-offset: 1px; }
.w-search-res { position: absolute; left: 0; right: 0; top: 46px; max-height: min(70vh, 560px); overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-soft); border-radius: 12px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); padding: 6px; }
.w-search-res a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--text); }
.w-search-res a:hover, .w-search-res a.is-sel { background: rgba(143, 74, 232, .25); text-decoration: none; }
.w-search-res b { display: block; color: #fff; }
.w-search-res small { color: var(--muted); font-size: 12.5px; }
.w-search-res p { margin: 8px 10px; color: var(--muted); }
.w-top-act { display: flex; align-items: center; gap: 8px; flex: none; }
.w-play { background: linear-gradient(180deg, #ffd56a, #e0a42a); color: #2a1400; font-weight: 800; padding: 9px 16px; border-radius: 10px; white-space: nowrap; }
.w-play:hover { text-decoration: none; filter: brightness(1.08); }
.w-ic-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--text); border: 1px solid var(--line-soft); }
.w-ig-only { display: none; }
.w-lang { position: relative; }
.w-lang summary { list-style: none; display: flex; align-items: center; gap: 6px; height: 40px; padding: 0 10px; border-radius: 10px; border: 1px solid var(--line-soft); cursor: pointer; font-weight: 700; font-size: 14px; }
.w-lang summary::-webkit-details-marker { display: none; }
.w-lang-list { position: absolute; right: 0; top: 46px; width: 220px; max-height: 70vh; overflow: auto; background: var(--panel-solid); border: 1px solid var(--line-soft); border-radius: 12px; padding: 6px; box-shadow: 0 18px 50px rgba(0, 0, 0, .6); display: grid; }
.w-lang-list a { color: var(--text); padding: 7px 10px; border-radius: 8px; display: flex; align-items: center; gap: 10px; }
.w-flag { width: 20px; height: 14px; flex: none; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(255, 255, 255, .15); }
.w-lang-list a[aria-current] { color: var(--gold); font-weight: 700; }
.w-lang-list a:hover { background: rgba(143, 74, 232, .25); text-decoration: none; }
.w-burger { display: none; width: 40px; height: 40px; border: 1px solid var(--line-soft); border-radius: 10px; background: none; padding: 0 9px; cursor: pointer; flex-direction: column; justify-content: center; gap: 5px; }
.w-burger span { display: block; height: 2px; background: var(--text); border-radius: 2px; }

/* Rahmen: Menü links, Inhalt rechts */
.w-shell { display: grid; grid-template-columns: var(--nav) minmax(0, 1fr); max-width: 1500px; margin: 0 auto; }
.w-nav { position: sticky; top: var(--top); height: calc(100vh - var(--top)); overflow-y: auto; border-right: 1px solid var(--line); }
.w-nav-in { padding: 16px 12px 40px; }
.w-nav a { display: block; color: var(--text-soft); padding: 6px 10px; border-radius: 8px; font-size: 14.5px; line-height: 1.35; }
.w-nav a:hover { color: #fff; background: rgba(143, 74, 232, .18); text-decoration: none; }
.w-nav a[aria-current] { color: var(--gold); background: rgba(240, 192, 64, .1); font-weight: 700; }
.w-nav-home { display: flex !important; align-items: center; gap: 8px; margin-bottom: 8px; font-weight: 700; }
.w-nav-sec { margin: 2px 0; }
.w-nav-sec summary { list-style: none; cursor: pointer; padding: 8px 10px; font: 700 12.5px/1.3 system-ui, sans-serif; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); border-radius: 8px; display: flex; justify-content: space-between; }
.w-nav-sec summary::-webkit-details-marker { display: none; }
.w-nav-sec summary::after { content: "+"; font-size: 15px; line-height: 1; }
.w-nav-sec[open] summary::after { content: "−"; }
.w-nav-sec summary:hover { color: #fff; }
.w-nav-sec ul { list-style: none; margin: 0 0 8px; padding: 0 0 0 6px; }
.w-nav-veil { display: none; }
.w-main { min-width: 0; padding: 24px 28px 60px; }

/* Kopf der Seite */
.w-hero { display: flex; gap: 24px; align-items: center; margin: 0 0 22px; }
.w-hero-txt { flex: 1; min-width: 0; }
.w-hero h1 { font-size: clamp(28px, 4vw, 42px); margin: 6px 0 8px; }
.w-hero h1 .ic { width: 1em; height: 1em; vertical-align: -.12em; }
.w-kicker { color: var(--gold); font-weight: 700; font-size: 13px; letter-spacing: .1em; text-transform: uppercase; }
.w-lead { font-size: 17.5px; color: var(--text-soft); margin: 0; max-width: 70ch; }
.w-crumbs { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 6px; padding: 0; font-size: 13.5px; }
.w-crumbs li::after { content: "›"; margin-left: 6px; color: var(--muted); }
.w-crumbs a { color: var(--text-soft); }

/* Kopfbild (Banner aus art.json) und Bühne der Mebuli-Seiten */
.w-hero-art { position: relative; overflow: hidden; min-height: 240px; padding: 30px 32px; align-items: flex-end; border-radius: 18px; border: 1px solid var(--line-soft); background: var(--panel-solid); box-shadow: 0 18px 50px rgba(0, 0, 0, .45); }
.w-hero-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-hero-art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(11, 5, 24, .92) 0%, rgba(11, 5, 24, .72) 40%, rgba(11, 5, 24, .12) 78%, transparent), linear-gradient(0deg, rgba(11, 5, 24, .5), transparent 55%); }
.w-hero-art .w-hero-txt { position: relative; z-index: 2; max-width: 660px; text-shadow: 0 2px 14px rgba(0, 0, 0, .7); }
.w-hero-art .w-lead { color: #e9ddff; }
.w-hero-art .w-crumbs a { color: #e0d0ff; }
.w-stage { position: relative; overflow: hidden; aspect-ratio: 35 / 12; border-radius: 14px; border: 1px solid var(--line-soft); margin: 0 0 14px; background: var(--panel-solid); }
.w-stage-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.w-hero-stage { aspect-ratio: 35 / 12; padding: 0; align-items: center; }
.w-hero-stage .w-stage { position: absolute; inset: 0; aspect-ratio: auto; border: 0; border-radius: 0; margin: 0; }
.w-hero-stage::after { background: linear-gradient(90deg, rgba(11, 5, 24, .9) 0%, rgba(11, 5, 24, .62) 42%, transparent 62%); }
.w-hero-stage .w-hero-txt { max-width: 54%; padding: 26px 30px; }
/* Idle-Blatt 6 x 8 à 256 px, Schleife a = Zeilen 0-3, 8 Bilder/s; Figur 200 px mittig, Füße bei 89 % */
.w-idle { position: absolute; z-index: 1; height: 66%; aspect-ratio: 1; transform: translate(-50%, -89%); background-repeat: no-repeat; background-size: 600% 800%; animation: w-idle-x .75s steps(6) infinite, w-idle-y 3s steps(4) infinite; }
.w-idle-mini { position: relative; display: block; z-index: auto; width: 116px; height: auto; transform: none; background-size: 600% 400%; animation-name: w-idle-x, w-idle-y4; }
@keyframes w-idle-x { from { background-position-x: 0; } to { background-position-x: 120%; } }
@keyframes w-idle-y { from { background-position-y: 0; } to { background-position-y: 57.142857%; } }
@keyframes w-idle-y4 { from { background-position-y: 0; } to { background-position-y: 133.333333%; } }
@media (prefers-reduced-motion: reduce) { .w-idle { animation: none; } }

/* Bilder im Text: Videos, Karten, Ult-Clips, Mebuli-Reihe */
.w-media { margin: 0 0 18px; }
.w-media video { display: block; width: 100%; height: auto; border-radius: 12px; border: 1px solid var(--line-soft); background: #000; }
.w-cards { display: grid; gap: 12px; margin: 0 0 18px; }
.w-cards-b { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.w-cards-wide { grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); }
.w-cardimg { margin: 0; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.w-cardimg img { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.w-cards-b img { aspect-ratio: 1; object-fit: contain; padding: 10px; background: radial-gradient(circle at 50% 62%, rgba(143, 74, 232, .35), transparent 70%); }
.w-cardimg figcaption { padding: 8px 12px 10px; }
.w-cardimg b { display: block; color: #fff; }
.w-cardimg span { display: block; color: var(--text-soft); font-size: 13.5px; line-height: 1.45; margin-top: 2px; }
.w-cards-b figcaption { text-align: center; padding-top: 0; }
button.w-cardimg { display: block; width: 100%; padding: 0 0 10px; font: inherit; color: inherit; text-align: center; cursor: pointer; }
button.w-cardimg b { display: block; padding: 0 6px; overflow-wrap: anywhere; hyphens: auto; }
button.w-cardimg:hover, button.w-cardimg[aria-pressed="true"] { border-color: var(--gold); }
button.w-cardimg[aria-pressed="true"] b { color: var(--gold); }
.w-bstrip { margin: -4px 0 20px; padding: 12px 14px 8px; border-radius: 12px; border: 1px solid var(--line-soft); background: radial-gradient(600px 200px at 50% 100%, rgba(143, 74, 232, .25), transparent 70%), rgba(0, 0, 0, .25); }
.w-bstrip-t { margin: 0 0 4px !important; font: 700 17px/1.3 "Cinzel", Georgia, serif; color: var(--gold); }
.w-bstrip-row { display: flex; align-items: flex-end; gap: 2px; overflow-x: auto; }
.w-bstrip figure { flex: 1 0 84px; margin: 0; text-align: center; }
.w-bstrip img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.w-bstrip figcaption { font-weight: 800; color: #fff; font-size: 14px; font-variant-numeric: tabular-nums; }
.w-bstrip-arrow { flex: none; align-self: center; color: var(--gold); font-size: 22px; }
.w-figure { margin: 0 0 18px; padding: 12px; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .25); }
.w-figure svg { display: block; width: 100%; height: auto; margin: 0 auto; }
.w-tm { max-width: 560px; min-width: 420px; font: 700 13px/1 system-ui, sans-serif; }
.w-tm text { fill: #fff; text-anchor: middle; pointer-events: none; }
.w-tm .w-tm-ax { fill: var(--muted); font-size: 13px; letter-spacing: .04em; }
.w-tm rect { stroke: rgba(255, 255, 255, .06); }
.w-tm-eq { fill: rgba(255, 255, 255, .035); }
.w-tm-up { fill: rgba(61, 220, 132, .55); }
.w-tm-down { fill: rgba(255, 107, 122, .5); }
.w-tm-no { fill: rgba(120, 120, 120, .7); }
.w-fm { max-width: 760px; font: 800 14px/1 system-ui, sans-serif; }
.w-fm-row { fill: rgba(240, 192, 64, .08); stroke: rgba(240, 192, 64, .45); stroke-dasharray: 6 6; }
.w-fm-u circle { fill: rgba(26, 11, 54, .9); stroke: var(--line-soft); stroke-width: 2; }
.w-fm-u.is-front > circle:first-child { stroke: var(--gold); }
.w-fm-u:not(.is-front) image { opacity: .8; }
.w-fm-n { fill: var(--gold) !important; stroke: none !important; }
.w-fm text { fill: #2a1400; text-anchor: middle; }
.w-fm-hit { fill: none; stroke: var(--gold); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.w-fm-ult { fill: none; stroke: #c27bff; stroke-width: 3; stroke-dasharray: 10 6; }
.w-fm-no { fill: none; stroke: rgba(255, 107, 122, .5); stroke-width: 3; stroke-dasharray: 2 7; stroke-linecap: round; }
.w-fm-x { stroke: var(--bad); stroke-width: 4; stroke-linecap: round; }
.w-foes { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 6px 4px; margin: 0 0 18px; padding: 14px 10px 10px; border-radius: 14px; border: 1px solid var(--line-soft); background-size: cover; background-position: center 60%; position: relative; overflow: hidden; }
.w-foes::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 5, 24, .55), rgba(11, 5, 24, .35) 50%, rgba(11, 5, 24, .8)); }
.w-foe { position: relative; margin: 0; flex: 0 0 auto; text-align: center; color: #fff; font-size: 13.5px; font-weight: 700; text-shadow: 0 1px 6px #000; }
.w-idle-foe { width: 104px; }
.w-foe.is-boss .w-idle-foe { width: 140px; }
.w-foe figcaption .ic { width: 18px; margin-right: 3px; vertical-align: -3px; }
.w-foe.is-boss figcaption { color: var(--gold-hi); }
.w-ult-row { display: flex; gap: 18px; align-items: center; margin: 0 0 14px; }
.w-ult-row p { flex: 1; margin: 0; }
.w-ult { flex: none; width: 210px; aspect-ratio: 1; margin: 0; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--panel-solid) 70% center / cover no-repeat; }
.w-ult video { display: block; width: 100%; height: 100%; object-fit: contain; }
.w-parade { position: relative; overflow: hidden; margin: 0 0 30px; padding: 14px 18px 10px; border-radius: 18px; border: 1px solid var(--line-soft); background-size: cover; background-position: center 65%; }
.w-parade::before { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(11, 5, 24, .8), rgba(11, 5, 24, .3) 45%, rgba(11, 5, 24, .75)); }
.w-parade > * { position: relative; }
.w-parade-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 14px; }
.w-parade-t { margin: 0; font: 700 20px/1.3 "Cinzel", Georgia, serif; color: #fff; }
.w-parade-head a { font-weight: 700; font-size: 14.5px; }
.w-parade-row { display: flex; justify-content: space-between; gap: 4px; overflow-x: auto; scrollbar-width: thin; }
.w-parade-m { flex: none; display: flex; flex-direction: column; align-items: center; color: #fff; font-size: 13.5px; text-shadow: 0 1px 6px #000; }
.w-parade-m b { margin-top: -10px; }
.w-parade-m:hover { text-decoration: none; }
.w-parade-m:hover b { color: var(--gold); }

/* Inhalt */
.w-content { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
.w-content.has-toc { grid-template-columns: minmax(0, 1fr) 220px; }
.w-doc { min-width: 0; max-width: 980px; }
.w-card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.w-article { padding: 22px 26px; }
.w-article > :first-child { margin-top: 0; }
.w-article h2 { font-size: 24px; margin: 34px 0 12px; padding-top: 6px; border-top: 1px solid var(--line); }
.w-article h2:first-child { border-top: 0; padding-top: 0; }
.w-article h3 { font-size: 19px; margin: 24px 0 8px; }
.w-article h2 .ic, .w-article h3 .ic { width: 1em; height: 1em; vertical-align: -.12em; }
.w-article p, .w-article ul, .w-article ol { margin: 0 0 14px; }
.w-article li { margin: 3px 0; }
.w-article strong { color: #fff; }
.w-article code { background: rgba(0, 0, 0, .35); padding: 1px 6px; border-radius: 5px; font-size: .92em; }
.w-article pre { background: rgba(0, 0, 0, .4); border: 1px solid var(--line); border-radius: 10px; padding: 12px 14px; overflow-x: auto; }
.w-article pre code { background: none; padding: 0; }
.w-article blockquote { margin: 0 0 14px; padding: 4px 14px; border-left: 3px solid var(--gold); color: var(--text-soft); }
.w-article hr { border: 0; border-top: 1px solid var(--line); margin: 24px 0; }
.w-table { overflow-x: auto; margin: 0 0 16px; border: 1px solid var(--line); border-radius: 10px; }
.w-table table { border-collapse: collapse; width: 100%; font-size: 14.5px; }
.w-table th, .w-table td { padding: 8px 11px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.w-table thead th { background: rgba(143, 74, 232, .18); color: #fff; white-space: nowrap; }
.w-table tbody tr:nth-child(even) { background: rgba(255, 255, 255, .025); }
.w-table tr:last-child td, .w-table tr:last-child th { border-bottom: 0; }
.w-box { border-radius: 12px; padding: 12px 16px; margin: 0 0 16px; border: 1px solid; border-left-width: 4px; }
.w-box > :last-child { margin-bottom: 0; }
.w-box-title { font-weight: 800; color: #fff; margin: 0 0 6px !important; }
.w-box-tip { background: rgba(61, 220, 132, .08); border-color: rgba(61, 220, 132, .45); }
.w-box-info { background: rgba(120, 140, 255, .09); border-color: rgba(140, 150, 255, .45); }
.w-box-warning, .w-box-danger { background: rgba(255, 176, 64, .09); border-color: rgba(255, 176, 64, .5); }
.w-box-details { background: rgba(255, 255, 255, .04); border-color: var(--line-soft); }
.w-note { color: var(--muted); font-size: 14px; }
.w-muted { color: var(--muted); }
.w-updated { color: var(--muted); font-size: 13.5px; margin: 18px 4px 0; }
.w-toc { position: relative; }
.w-toc-in { position: sticky; top: calc(var(--top) + 20px); max-height: calc(100vh - var(--top) - 40px); overflow-y: auto; border-left: 1px solid var(--line); padding-left: 14px; }
.w-toc-t { font-weight: 800; font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; }
.w-toc ul { list-style: none; margin: 0; padding: 0; }
.w-toc a { display: block; color: var(--text-soft); font-size: 13.5px; padding: 3px 0; line-height: 1.35; }
.w-toc a.is-cur { color: var(--gold); }
.w-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.w-pager a { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 12px 16px; }
.w-pager a:hover { border-color: var(--gold); text-decoration: none; }
.w-pager span { display: block; color: var(--muted); font-size: 13px; }
.w-pager b { color: #fff; }
.w-pager-next { text-align: right; grid-column: 2; }
.w-btns { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.w-btn { display: inline-block; padding: 10px 18px; border-radius: 10px; border: 1px solid var(--line-soft); color: var(--text); font-weight: 700; }
.w-btn:hover { text-decoration: none; border-color: var(--gold); }
.w-btn-brand { background: linear-gradient(180deg, #ffd56a, #e0a42a); color: #2a1400; border-color: transparent; }

/* Spiel-Icons im Text (vorher custom.css) */
.ic { display: inline-block; width: 24px; height: auto; aspect-ratio: 1; object-fit: contain; vertical-align: -.35em; }
.ic-lg { display: inline-block; width: 30px; height: auto; aspect-ratio: 1; object-fit: contain; vertical-align: middle; }
.eff { display: inline-block; width: 11px; height: 11px; border-radius: 50%; vertical-align: -1px; }
.eff-strong { background: var(--ok); } .eff-weak { background: var(--bad); } .eff-immune { background: #777; }

/* Mebuli-Seiten */
.w-mthumb { width: 36px; height: 36px; vertical-align: middle; margin: -6px 4px -6px 0; }
.w-ent { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 20px; align-items: start; }
.w-ent-side { position: sticky; top: calc(var(--top) + 16px); }
.w-info { padding: 16px 18px; }
.w-info h2 { margin: 0 0 10px; font-size: 20px; }
.w-dl { display: grid; grid-template-columns: max-content 1fr; gap: 6px 14px; margin: 0 0 14px; }
.w-dl dt { color: var(--muted); font-size: 14px; }
.w-dl dd { margin: 0; }
.w-mu { grid-template-columns: minmax(150px, max-content) 1fr; }
.w-type { display: inline-flex; align-items: center; gap: 4px; margin: 0 8px 4px 0; padding: 2px 9px 2px 4px; border-radius: 999px; background: rgba(255, 255, 255, .06); border: 1px solid var(--line-soft); font-size: 14px; white-space: nowrap; }
.w-type .ic { width: 20px; vertical-align: middle; }
.w-type b { color: var(--gold); font-weight: 700; }
.w-rar { font-weight: 700; }
.w-rar-common { color: #d6d6d6; } .w-rar-uncommon { color: #6ee07a; } .w-rar-rare { color: #5ab4ff; }
.w-rar-epic { color: #c27bff; } .w-rar-legendary { color: #ffb43a; } .w-rar-mythic { color: #ff5a7a; }
.w-stats td { text-align: right; font-variant-numeric: tabular-nums; }
.w-stats thead th:not(:first-child) { text-align: right; }
.w-stats .w-sum th, .w-stats .w-sum td { font-weight: 800; color: var(--gold); }
.w-evo { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; }
.w-evo-step { display: inline-flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 10px; border-radius: 12px; border: 1px solid var(--line); background: rgba(0, 0, 0, .2); min-width: 92px; text-align: center; font-size: 14px; color: var(--text); }
.w-evo-step.is-cur { border-color: var(--gold); }
.w-evo-step:hover { text-decoration: none; border-color: var(--gold); }
.w-evo-arrow { color: var(--muted); font-size: 20px; }
.w-evo-branch { display: flex; flex-wrap: wrap; gap: 8px; }
.w-prisma { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; margin: 0 0 12px; }
.w-prisma > div { flex: 1 1 260px; }
.w-list { padding-left: 20px; }

/* Startseite */
.w-home-hero { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 28px; align-items: center; margin: 8px 0 30px; }
.w-home-hero h1 { font-size: clamp(34px, 5vw, 56px); margin: 0 0 12px; }
.w-home-hero h1 span { background: linear-gradient(180deg, #fff3c4, var(--gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.w-home-img img { border-radius: 18px; border: 1px solid var(--line-soft); box-shadow: 0 20px 60px rgba(0, 0, 0, .5); display: block; }
.w-feats { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; margin: 0 0 34px; }
.w-feat { display: block; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; color: var(--text); }
.w-feat:hover { border-color: var(--gold); text-decoration: none; }
.w-feat { position: relative; overflow: hidden; }
.w-feat-ic { width: 44px; height: 44px; }
.w-feat-art { display: block; width: calc(100% + 36px); max-width: none; height: 92px; object-fit: cover; margin: -16px -18px 0; border-bottom: 1px solid var(--line); }
.w-feat-art + .w-feat-ic { position: relative; margin-top: -26px; filter: drop-shadow(0 3px 6px rgba(0, 0, 0, .8)); }
.w-feat:hover .w-feat-art { filter: brightness(1.1); }
.w-feat h2 { font-size: 18px; margin: 8px 0 6px; }
.w-feat p { color: var(--text-soft); font-size: 14.5px; margin: 0 0 8px; }
.w-feat-more { color: var(--link); font-weight: 700; font-size: 14px; }
.w-home-secs h2 { font-size: 26px; }
.w-home-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.w-home-sec { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 18px; }
.w-home-sec h3 { margin: 0 0 6px; font-size: 16px; color: var(--gold); }
.w-home-sec ul { list-style: none; margin: 0; padding: 0; font-size: 14.5px; }
.w-home-sec li { padding: 2px 0; }

/* Sprachweiche */
.w-chooser-in { max-width: 640px; margin: 8vh auto; padding: 0 16px; text-align: center; }
.w-chooser-in ul { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 8px; }
.w-chooser-in a { display: block; padding: 10px; border: 1px solid var(--line-soft); border-radius: 10px; background: var(--panel); }

/* Fuß */
.w-foot { border-top: 1px solid var(--line); background: rgba(8, 3, 20, .7); margin-top: 20px; }
.w-foot-in { max-width: 1500px; margin: 0 auto; padding: 28px 28px 34px; display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 18px 40px; }
.w-foot-brand p { color: var(--text-soft); font-size: 14px; max-width: 54ch; }
.w-foot-links { display: flex; flex-wrap: wrap; gap: 8px 18px; align-content: start; }
.w-foot-links a { color: var(--text-soft); font-size: 14.5px; padding: 4px 0; }
.w-foot-langs { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13.5px; }
.w-foot-langs span { color: var(--muted); width: 100%; }
.w-foot-langs a { color: var(--text-soft); padding: 3px 0; }
.w-foot-copy { grid-column: 1 / -1; color: var(--muted); font-size: 13px; margin: 0; }

/* Schmal */
@media (max-width: 1180px) { .w-content.has-toc { grid-template-columns: minmax(0, 1fr); } .w-toc { display: none; } .w-home-hero { grid-template-columns: minmax(0, 1fr); } .w-home-img { max-width: 640px; } }
@media (max-width: 1000px) { .w-ent { grid-template-columns: minmax(0, 1fr); } .w-ent-side { position: static; order: -1; } }
@media (max-width: 900px) {
  :root { --top: 58px; }
  .w-shell { grid-template-columns: minmax(0, 1fr); }
  .w-burger { display: flex; }
  .w-nav { position: fixed; z-index: 60; left: 0; top: var(--top); bottom: 0; width: min(86vw, 320px); height: auto; background: var(--panel-solid); transform: translateX(-102%); transition: transform .22s ease; }
  .w-nav-open .w-nav { transform: none; }
  .w-nav-open .w-nav-veil { display: block; position: fixed; inset: var(--top) 0 0 0; z-index: 55; background: rgba(0, 0, 0, .5); }
  .w-main { padding: 18px 16px 40px; }
  .w-article { padding: 16px; }
  .w-home-hero { grid-template-columns: minmax(0, 1fr); }
  .w-hero-art { min-height: 200px; padding: 22px 20px; }
  .w-hero-art::after { background: linear-gradient(0deg, rgba(11, 5, 24, .94) 0%, rgba(11, 5, 24, .7) 55%, rgba(11, 5, 24, .25)); }
  .w-hero-stage { display: block; aspect-ratio: auto; padding: 0; }
  .w-hero-stage::after { display: none; }
  .w-hero-stage .w-stage, .w-stage { position: relative; aspect-ratio: 16 / 10; }
  .w-hero-stage .w-hero-txt { max-width: none; padding: 16px 18px 20px; }
  .w-foot-in { grid-template-columns: minmax(0, 1fr); padding: 24px 16px; }
  .w-play { display: none; }
}
@media (max-width: 560px) {
  .w-logo img { width: 70px; }
  .w-logo-wiki { display: none; }
  .w-top-in { gap: 8px; padding: 0 10px; }
  .w-lang summary span { display: none; }
  .w-mu { grid-template-columns: minmax(0, 1fr); }
  .w-ult-row { flex-direction: column; align-items: stretch; }
  .w-ult { width: min(100%, 260px); align-self: center; }
  .w-idle-mini { width: 92px; }
  .w-idle-foe { width: 90px; }
  .w-foe.is-boss .w-idle-foe { width: 118px; }
  .w-foe { font-size: 12.5px; }
  .w-pager { grid-template-columns: minmax(0, 1fr); }
  .w-pager-next { grid-column: 1; }
}

/* Im Spiel (iframe / ?ingame=1): kein "Jetzt spielen", dafür "In neuem Tab" */
.w-ig .w-play { display: none; }
.w-ig .w-ig-only { display: inline-flex; }
.w-ig .w-shell, .w-ig .w-foot-in { max-width: none; }
