/* Metin2 Wiki – ergänzt style.css. Maße nach metin2alerts.com/de/wiki bei 1440 px (Container 1040 px, Innenrand 16 px). */
#app { flex: 1; display: flex; flex-direction: column; }
#app main.wk {
  --wk-dim: #a6a192; --wk-gd: #b09468; --wk-gd2: rgba(176, 148, 104, .85);
  --wk-line: rgba(58, 56, 52, .55); --wk-line2: rgba(58, 56, 52, .45); --wk-line3: rgba(58, 56, 52, .3);
  --wk-card: rgba(43, 42, 40, .4); --wk-board: rgba(43, 42, 40, .62);
  width: 100%; max-width: 1376px; box-sizing: border-box; margin: 0 auto; padding: 0 16px 40px; flex: 1; min-width: 0;
}
.wk .empty { color: var(--dim); padding: 40px; text-align: center; }
.wk .mono { font-family: var(--mono); }
.wk .chev { flex: none; color: var(--wk-gd); }
.wk img { max-width: 100%; }

/* ---------- Board (Kasten) ---------- */
.wk .board { background: var(--wk-board); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 1px 2px rgba(0,0,0,.2); margin-top: 20px; min-width: 0; }
.wk .board-in { padding: 12px 16px 16px; min-width: 0; }
.wk .whead { font-size: 9.92px; line-height: 14.88px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wk-gd2); padding: 0 0 6.4px; margin: 0 0 2.4px; }
.wk .txt { white-space: pre-line; font-size: 13.6px; line-height: 1.6; color: var(--wk-dim); margin: 6px 0 0; }

/* ---------- Kopf von Listen/Detail (items-header) ---------- */
.wk .ihead { padding-top: 24px; }
.wk .crumbs { display: flex; flex-wrap: wrap; align-items: center; font-size: 11.52px; line-height: 17.28px; color: var(--wk-gd); margin-bottom: 7.2px; }
.wk .crumbs a { color: var(--wk-gd); }
.wk .crumbs a:hover { color: var(--head); }
.wk .crumbs span { color: var(--wk-dim); }
.wk .crumbs .sep { color: rgba(176,148,104,.55); margin: 0 6.4px; }
.wk .ititle { display: flex; align-items: center; gap: 12px; min-height: 42px; flex-wrap: wrap; }
.wk .ititle .ico { width: 44px; height: 44px; flex: none; display: grid; place-items: center; }
.wk .ititle .ico img { width: 44px; height: 44px; object-fit: contain; }
.wk .ititle h1 { margin: 0; font-size: 21.6px; line-height: 32.4px; font-weight: 600; letter-spacing: -.01em; color: var(--head); min-width: 0; overflow-wrap: anywhere; }
.wk .ititle h1::after, .wk .whero h1::after { content: ""; display: block; width: 40px; height: 2px; margin-top: 8px; background: var(--gold); }
.wk .ilead { margin: 13.6px 0 0; max-width: 536px; font-size: 14.4px; line-height: 23.76px; color: var(--text); }

/* ---------- Startseite: Hero ---------- */
.wk .whero { position: relative; height: clamp(150px, 16vw, 210px); margin: 0 -16px; overflow: hidden; background: var(--bg-deep); border-bottom: 1px solid var(--wk-line); display: flex; flex-direction: column; justify-content: flex-end; }
.wk .whero img.bg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: 50% 22%; }
.wk .whero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, var(--bg) 0%, rgba(38,37,36,.55) 22%, transparent 52%), linear-gradient(90deg, rgba(20,19,18,.45), transparent 60%); }
.wk .whero-in { position: relative; z-index: 1; padding: 0 16px 17.6px; }
.wk .whero h1 { margin: 0; font-size: clamp(20.8px, 3vw, 27.2px); line-height: 1.5; font-weight: 600; letter-spacing: -.01em; color: var(--head); text-wrap: balance; text-shadow: 0 1px 10px rgba(0,0,0,.4); }
.wk .whero h1 .beta { vertical-align: middle; margin-left: 4px; }
.wk .beta { font-size: 9.6px; line-height: 14.4px; font-weight: 600; letter-spacing: .1em; text-transform: uppercase; color: var(--gold); border: 1px solid var(--gold-line); border-radius: 4px; padding: 2.56px 6.72px; text-shadow: none; background: rgba(20,19,18,.4); }
.wk .whero .meta { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 12px 20px; }
.wk .whero .meta p { margin: 8.8px 0 0; max-width: 512px; font-size: 13.76px; line-height: 21.33px; color: var(--head); text-shadow: 0 1px 6px rgba(0,0,0,.55); }
.wk .whero .stand { margin: 8.8px 0 0 auto; font: 400 11.52px/17.28px var(--mono); color: var(--wk-gd); white-space: nowrap; text-shadow: 0 1px 6px rgba(0,0,0,.55); }

/* ---------- Startseite: Datenbank-Kacheln (4 Spalten, 242×84) ---------- */
.wk .dbtiles { list-style: none; margin: 22.4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12.8px; }
.wk .dbtiles li { background: var(--wk-card); border-radius: 8px; overflow: hidden; min-width: 0; }
.wk .dbtile { position: relative; display: flex; align-items: center; gap: 12px; min-height: 84px; height: 100%; padding: 12px 33.6px 12px 13.6px; background: rgba(235,179,92,.05); border-left: 2px solid rgba(235,179,92,.55); transition: background .15s; }
.wk a.dbtile:hover { background: rgba(235,179,92,.1); }
.wk .dbtile .ti { width: 46px; height: 46px; flex: none; display: grid; place-items: center; }
.wk .dbtile .ti img { width: 46px; height: 46px; object-fit: contain; filter: drop-shadow(0 2px 4px rgba(0,0,0,.5)); }
.wk .dbtile .tt { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.wk .dbtile .tn { font-size: 14.4px; line-height: 21.6px; font-weight: 600; color: var(--head); }
.wk .dbtile .td { font-size: 11.84px; line-height: 17.76px; color: var(--wk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .dbtile .chev { position: absolute; right: 10px; top: 50%; margin-top: -8px; }
.wk .dbtiles li.off { opacity: .45; }
.wk .dbtile .bald { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); font: 600 9px var(--mono); letter-spacing: .1em; font-style: normal; color: var(--dim); }

/* ---------- Startseite: Ausrüstung nach Klasse ---------- */
.wk .equip { list-style: none; margin: 20px 0 0; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 9.6px; }
.wk .equip > li { position: relative; background: var(--wk-card); border: 1px solid var(--wk-line2); border-radius: 8px; overflow: hidden; min-width: 0; }
.wk .equip > li::before, .wk .equip > li::after { content: ""; position: absolute; width: 10px; height: 10px; pointer-events: none; }
.wk .equip > li::before { left: 6px; top: 6px; border-left: 1px solid var(--dim-2); border-top: 1px solid var(--dim-2); }
.wk .equip > li::after { right: 6px; bottom: 6px; border-right: 1px solid var(--dim-2); border-bottom: 1px solid var(--dim-2); }
.wk .eq { display: flex; flex-direction: column; align-items: center; gap: 7.2px; height: 100%; padding: 12.8px 5.6px 9.6px; background: radial-gradient(130px 80px at 50% 20%, rgba(235,179,92,.07), transparent 72%); }
.wk .eq .en { font-size: 14.08px; line-height: 21.12px; font-weight: 600; color: var(--head); }
.wk .eq .chips { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 8.8px; max-width: 100%; }
.wk .chip2 { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5.6px; min-width: 46.4px; padding: 2.4px 3.2px; border-radius: 6px; font-size: 11.2px; line-height: 11.2px; color: var(--wk-dim); min-width: 0; }
.wk .chip2:hover { background: rgba(235,179,92,.08); color: var(--head); }
.wk .chip2 img { width: 32px; height: 64px; object-fit: contain; flex: none; }
.wk .chip2.sq img { height: 32px; }
.wk .chip2 span { white-space: nowrap; }
.wk .equip > li.common { grid-column: 1 / -1; }
.wk .equip > li.common .eq { flex-direction: row; justify-content: center; padding: 8.8px 12px; background: none; }
.wk .equip > li.common .chips { flex: 1; justify-content: space-evenly; gap: 9.6px; flex-wrap: wrap; }

/* ---------- Startseite: Ausgewählte Truhen (Laufband) ---------- */
.wk .picks .marquee { margin-top: 8px; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.wk .picks .track { display: flex; gap: 9.6px; width: max-content; animation: wk-run calc(var(--n, 8) * 5s) linear infinite; }
.wk .picks .marquee:hover .track { animation-play-state: paused; }
@keyframes wk-run { to { transform: translateX(calc(-50% - 4.8px)); } }
@media (prefers-reduced-motion: reduce) { .wk .picks .track { animation: none; } .wk .picks .marquee { overflow-x: auto; } }
.wk .pick { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto 16px; align-items: center; gap: 11.2px; width: 336px; height: 52px; padding: 7.2px 9.6px; background: var(--wk-card); border: 1px solid var(--wk-line2); border-radius: 8px; flex: none; }
.wk .pick:hover { border-color: var(--gold-line); }
.wk .pick .pt { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(58,56,52,.6); border-radius: 8px; box-shadow: inset 0 1px 3px rgba(0,0,0,.5); }
.wk .pick .pt img { width: 30px; height: 30px; object-fit: contain; }
.wk .pick .pn { font-size: 14px; line-height: 21px; font-weight: 600; color: var(--head); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .pick .pc { font: 400 10.88px/16.32px var(--mono); color: var(--wk-gd); white-space: nowrap; }

/* ---------- Startseite: Bildkarten-Leiste (304×348) ---------- */
.wk .rail { position: relative; margin-top: 9.6px; }
.wk .rail-in { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(min(304px, 82vw), 1fr); gap: 14.4px; overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none; padding: 4px 0 12px; }
.wk .rail-in::-webkit-scrollbar { display: none; }
.wk .seocard { min-height: 348px; scroll-snap-align: start; display: flex; flex-direction: column; background: rgba(43,42,40,.55); border: 1px solid var(--wk-line); border-radius: 11.2px; overflow: hidden; }
.wk .seocard:hover { border-color: var(--gold-line); }
.wk .seocard .cover { position: relative; height: 132px; flex: none; background: var(--bg-deep); overflow: hidden; }
.wk .seocard .cover > img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.wk .seocard:hover .cover > img { transform: scale(1.04); }
.wk .seocard .lbl { position: absolute; left: 10px; top: 10px; display: flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 6px; background: rgba(20,19,18,.82); border: 1px solid var(--line-2); color: var(--head); font-size: 11px; line-height: 17px; }
.wk .seocard .lbl img { width: 14px; height: 14px; object-fit: contain; }
.wk .seocard .body { display: flex; flex-direction: column; gap: 7.2px; padding: 13.6px 14.4px 16px; }
.wk .seocard .ct { font-size: 16px; line-height: 24px; font-weight: 600; color: var(--head); }
.wk .seocard .cx { font-size: 12.8px; line-height: 19.2px; color: var(--wk-dim); }
.wk .rail-btn { position: absolute; top: 50%; margin-top: -21px; width: 34px; height: 34px; border-radius: 999px; display: grid; place-items: center; padding: 0; cursor: pointer; background: rgba(31,30,29,.92); border: 1px solid var(--line-2); color: var(--head); box-shadow: 0 2px 8px rgba(0,0,0,.4); }
.wk .rail-btn .chev { width: 18px; height: 18px; color: var(--head); }
.wk .rail-btn.prev { left: -14px; } .wk .rail-btn.prev .chev { transform: scaleX(-1); }
.wk .rail-btn.next { right: -14px; }
.wk .rail-btn:hover { border-color: var(--gold-line); }
.wk .rail-btn[hidden] { display: none; }

/* ---------- Startseite: Was ist das Metin2 Wiki? ---------- */
.wk .about { max-width: 573px; margin: 33px 0 8px; }
.wk .about h2 { margin: 0 0 8px; font-size: 15.2px; line-height: 23.64px; font-weight: 600; color: var(--head); }
.wk .about p { margin: 12px 0 0; max-width: 555px; font-size: 13.6px; line-height: 23.12px; color: var(--wk-dim); }

/* ---------- Listen: Reiter, Suche, Blättern ---------- */
.wk .tbar { display: flex; align-items: center; gap: 12px; margin: 1.6px 0 12px; min-width: 0; }
.wk .tbar.col { flex-direction: column; align-items: flex-start; gap: 8px; }
.wk .segs { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; background: #191919; border: 1px solid rgba(58,56,52,.5); border-radius: 9px; max-width: 100%; }
.wk .segs::-webkit-scrollbar { display: none; }
.wk .segs.wrap { flex-wrap: wrap; overflow: visible; }
.wk .seg { display: inline-flex; align-items: center; gap: 7.2px; padding: 6.08px 14.4px; border: 1px solid transparent; border-radius: 6px; font-size: 13.12px; line-height: 19.68px; font-weight: 600; letter-spacing: .01em; color: var(--wk-dim); white-space: nowrap; }
.wk .seg:hover { color: var(--head); }
.wk .seg.on { background: #403b34; border-color: rgba(176,148,104,.34); color: var(--gold); }
.wk .seg .n { font-size: 11.52px; line-height: 17.28px; font-weight: 500; color: var(--wk-dim); }
.wk .isearch { position: relative; margin: 0 0 9.6px; min-width: 0; flex: 1; }
.wk .isearch .lupe { position: absolute; left: 11px; top: 50%; margin-top: -7.5px; color: var(--wk-dim); pointer-events: none; }
.wk .isearch input { width: 100%; height: auto; box-sizing: border-box; padding: 8px 35.2px 8px 33.6px; font: 13.6px/20.4px var(--font); color: var(--head); background: rgba(38,37,36,.7); border: 1px solid var(--line); border-radius: 8px; outline: none; }
.wk .isearch input:focus { border-color: var(--gold-line); }
.wk .sline { display: flex; align-items: flex-start; gap: 12px; }
.wk .sline .count { flex: none; font: 400 11.52px/38px var(--mono); color: var(--wk-gd); }
.wk .ipager { display: flex; justify-content: center; align-items: center; gap: 6.4px; margin: 8px 0 3.2px; }
.wk .ipager a { min-width: 32px; height: 32px; display: grid; place-items: center; padding: 0 8.8px; box-sizing: border-box; font-size: 15.2px; color: var(--text); background: rgba(38,37,36,.45); border: 1px solid var(--wk-line); border-radius: 7px; }
.wk .ipager a:hover { border-color: var(--gold-line); color: var(--head); }
.wk .ipager a.dis { opacity: .35; pointer-events: none; }
.wk .ipager .info { min-width: 72px; text-align: center; font-size: 13.6px; line-height: 20.4px; color: var(--wk-dim); }
.wk .rank { display: inline-block; padding: 1.28px 8px; border-radius: 999px; background: rgba(235,179,92,.12); color: var(--gold); font: 400 11.52px/17.28px var(--mono); white-space: nowrap; vertical-align: middle; }
.wk .rank.boss { background: rgba(255,138,115,.13); color: #ff8a73; }
.wk .rank.metin { background: rgba(159,196,255,.13); color: #9fc4ff; }

/* ---------- Mob-Tabelle (Zeile 44 px) ---------- */
.wk .mwrap { margin: 4px 0 9.6px; overflow-x: auto; }
.wk .mtable { width: 100%; min-width: 974px; border-collapse: collapse; table-layout: fixed; font-size: 14.4px; line-height: 21.6px; }
.wk .mtable col.c-ic { width: 52px; } .wk .mtable col.c-lvl { width: 76px; }
.wk .mtable col.c-tp { width: 116px; } .wk .mtable col.c-exp { width: 108px; } .wk .mtable col.c-race { width: 192px; } .wk .mtable col.c-ort { width: 220px; }
.wk .mtable th { text-align: left; height: 35px; box-sizing: border-box; padding: 6.4px 8.8px; font-size: 11.52px; line-height: 17.28px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(176,148,104,.75); border-bottom: 1px solid var(--wk-line); white-space: nowrap; }
.wk .mtable th a { color: inherit; } .wk .mtable th a.on, .wk .mtable th a:hover { color: var(--gold); }
.wk .mtable td { padding: 8px 9.6px; height: 44px; box-sizing: border-box; border-bottom: 1px solid var(--wk-line3); vertical-align: middle; overflow: hidden; }
.wk .mtable .num { text-align: right; font-family: var(--mono); font-size: 13.6px; }
.wk .mtable th.num { font-family: var(--font); font-size: 11.52px; }
.wk .mtable td.sub { color: var(--wk-dim); }
.wk .mtable td.ic { padding: 4px 0 4px 9.6px; }
.wk .mtable .mt { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 6px; background: rgba(0,0,0,.22); overflow: hidden; }
.wk .mtable .mt img { width: 32px; height: 32px; object-fit: cover; }
.wk .mname { display: flex; align-items: center; gap: 7.2px; min-width: 0; }
.wk .mname a { color: var(--text); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wk .mname a:hover { color: var(--head); }
.wk .race { display: block; font-size: 13.12px; line-height: 19.68px; color: var(--wk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .nil { color: var(--dim-2); }
.wk tbody tr:hover td { background: rgba(235,179,92,.03); }

/* ---------- Übrige Listen ---------- */
.wk .lrows { border: 1px solid var(--wk-line); border-radius: 8px; background: rgba(38,37,36,.4); overflow: hidden; margin-bottom: 9.6px; }
.wk .lrow { display: grid; grid-template-columns: 36px minmax(0, 1.1fr) minmax(0, 1fr) 16px; align-items: center; gap: 12px; min-height: 50px; padding: 7.2px 9.6px; border-bottom: 1px solid rgba(58,56,52,.4); }
.wk .lrow:last-child { border-bottom: 0; }
.wk .lrow:hover { background: rgba(235,179,92,.05); }
.wk .lt { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(58,56,52,.6); border-radius: 8px; overflow: hidden; }
.wk .lt img { width: 30px; height: 30px; object-fit: contain; }
.wk .lt.photo img { width: 34px; height: 34px; object-fit: cover; }
.wk .ln { display: flex; align-items: center; gap: 7.2px; min-width: 0; }
.wk .lname { font-size: 13.12px; line-height: 19.68px; font-weight: 500; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.wk .ls { font-size: 12px; line-height: 18px; color: var(--wk-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* ---------- Truhen: Liste 360 px + Inhalt ---------- */
.wk .cboard { margin-top: 16px; }
.wk .cboard .board-in { padding: 12px; }
.wk .clayout { display: grid; grid-template-columns: minmax(280px, 360px) minmax(0, 1fr); gap: 16px; align-items: start; }
.wk .clist { max-height: 72vh; overflow-y: auto; background: rgba(38,37,36,.4); border: 1px solid var(--wk-line); border-radius: 8px; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.wk .crow { border-bottom: 1px solid rgba(58,56,52,.4); }
.wk .crow[hidden] { display: none; }
.wk .chead { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; align-items: center; gap: 9.6px; padding: 7.2px 9.6px; }
.wk .chead:hover { background: rgba(235,179,92,.04); }
.wk .chead.on { background: rgba(235,179,92,.07); }
.wk .chead .ct { width: 36px; height: 36px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(58,56,52,.6); border-radius: 8px; }
.wk .chead .ct img { width: 30px; height: 30px; object-fit: contain; }
.wk .chead .cn { font-size: 13.12px; line-height: 19.68px; font-weight: 500; color: var(--gold); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk .chead .cm { font: 400 10.24px/15.36px var(--mono); color: var(--wk-gd); white-space: nowrap; }
.wk .cpane { position: sticky; top: 16px; max-height: 72vh; overflow-y: auto; padding: 12px 12px 8px; background: rgba(38,37,36,.55); border: 1px solid rgba(58,56,52,.6); border-radius: 8px; min-width: 0; scrollbar-width: thin; scrollbar-color: var(--line-2) transparent; }
.wk .cinline { display: none; }
.wk .chead .chev { display: none; }
.wk .phead { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding-bottom: 9.6px; margin-bottom: 9.6px; border-bottom: 1px solid var(--wk-line3); }
.wk .ptile { width: 44px; height: 44px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(235,179,92,.25); border-radius: 8px; }
.wk .ptile img { width: 36px; height: 36px; object-fit: contain; }
.wk .pname { font-size: 15.2px; line-height: 22.8px; font-weight: 600; color: var(--head); min-width: 0; overflow-wrap: anywhere; }
.wk .pcount { font: 400 10.88px/16.32px var(--mono); color: var(--wk-gd); white-space: nowrap; }
.wk .pdesc { margin: 0 0 9.6px; font-size: 12.8px; line-height: 19.2px; color: var(--wk-dim); white-space: pre-line; }
.wk .ptabs { display: flex; gap: 4px; margin-bottom: 8px; border-bottom: 1px solid var(--wk-line3); }
.wk .ptab { padding: 7.2px 9.6px 6.4px; margin-bottom: -1px; font-size: 10.56px; line-height: 15.84px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--wk-gd); border-bottom: 2px solid transparent; }
.wk .ptab.on { color: var(--gold); border-bottom-color: var(--gold); }
.wk .phint { margin: 0 0 6px; font-size: 11.52px; line-height: 17px; color: var(--dim); }
.wk .dlist { list-style: none; margin: 0; padding: 0; }
.wk .dlist .grp { padding: 10px 4px 4px; font-size: 9.92px; line-height: 14.88px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wk-gd2); }
.wk .drow { display: grid; grid-template-columns: 30px minmax(0, 1fr) auto; align-items: center; gap: 9.6px; padding: 5.12px 4px; border-bottom: 1px solid var(--wk-line3); }
.wk .dt { width: 30px; height: 30px; display: grid; place-items: center; background: rgba(0,0,0,.22); border-radius: 6px; flex: none; }
.wk .dt img { width: 26px; height: 26px; object-fit: contain; }
.wk .dn { font-size: 12.48px; line-height: 18.72px; font-weight: 500; color: #9ca3af; min-width: 0; overflow-wrap: anywhere; }
.wk a.dn:hover { color: var(--head); }
.wk .dn small { color: var(--dim-2); font-weight: 400; }
.wk .dq { font: 600 11.52px/17.28px var(--mono); color: var(--gold); white-space: nowrap; }
.wk .psec { margin-top: 14px; }
.wk .psec .whead { border-bottom: 1px solid var(--wk-line3); margin-bottom: 8px; }

/* ---------- Werte-Kacheln ---------- */
.wk .mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(152px, 1fr)); gap: 7.2px; margin: 8px 0 0; }
.wk .mcell { display: flex; flex-direction: column; gap: 2.4px; padding: 7.2px 8.8px; background: rgba(0,0,0,.18); border: 1px solid var(--wk-line2); border-radius: 8px; min-width: 0; }
.wk .mk { font-size: 9.6px; line-height: 12.48px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: rgba(176,148,104,.8); }
.wk .mv { font-size: 13.6px; line-height: 18.36px; color: var(--text); overflow-wrap: anywhere; }
.wk .yes { color: var(--green); } .wk .no { color: var(--red); }

/* ---------- Detailseiten ---------- */
.wk.detail .board .whead { margin-top: 14.4px; }
.wk .board.over .whead:first-child, .wk .mvals .whead:first-child, .wk .dcols .board .whead:first-child { margin-top: 14.4px; }
.wk .txt.lead { color: var(--text); }
.wk .mhero { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.wk .mpic { flex: 0 0 auto; }
.wk .mpic .board-in { padding: 14.4px; }
.wk .stage { width: min(272px, 62vw); aspect-ratio: 1 / 1; border-radius: 8px; background: #14110c; overflow: hidden; display: grid; place-items: center; }
.wk .stage img { width: 100%; height: 100%; object-fit: cover; }
.wk .stage.icon img { width: 96px; height: 96px; object-fit: contain; }
.wk .stage img.ph { opacity: .35; }
.wk .mvals { flex: 1 1 340px; min-width: 0; }
.wk .dcols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 16px; align-items: start; margin-top: 20px; }
.wk .dcols > .board, .wk .dcols > div > .board:first-child { margin-top: 0; }
@media (min-width: 960px) { .wk .dcols { grid-template-columns: minmax(0, 1fr) minmax(0, 410px); } }
.wk .dcols > div { min-width: 0; }
.wk .drops { width: 100%; border-collapse: collapse; font-size: 12.48px; line-height: 18.72px; }
.wk .drops td { padding: 6.4px 9.6px; border-bottom: 1px solid var(--wk-line3); height: 42px; box-sizing: border-box; }
.wk .drops td.num { text-align: right; font: 600 11.52px var(--mono); color: var(--gold); white-space: nowrap; }
.wk .drops tr.grp td { height: auto; padding: 12px 9.6px 4px; font-size: 9.92px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--wk-gd2); }
.wk .dchest { display: inline-flex; align-items: center; gap: 8px; color: var(--text); }
.wk a.dchest:hover { color: var(--head); }
.wk .dchest .dt { width: 24px; height: 24px; background: none; }
.wk .dchest .dt img { width: 24px; height: 24px; }
.wk .orte { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 6px; }
.wk .ort { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border: 1px solid var(--wk-line2); border-radius: 9.6px; background: rgba(0,0,0,.18); font-size: 12.8px; line-height: 19.2px; font-weight: 500; color: var(--text); }
.wk a.ort:hover { border-color: var(--gold-line); color: var(--head); }
.wk .ort > span:nth-child(2) { flex: 1; min-width: 0; }
.wk .ob { width: 40px; height: 28px; flex: none; border-radius: 5px; overflow: hidden; background: var(--bg-deep); display: grid; place-items: center; color: var(--wk-gd); }
.wk .ob img { width: 100%; height: 100%; object-fit: cover; }
.wk .ql { margin: 8px 0 0; padding-left: 18px; font-size: 13px; line-height: 1.7; }

/* Bausteine der übrigen Detailseiten */
.wk .board h5 { margin: 14px 0 8px; color: var(--gold); font-size: 12px; font-weight: 600; }
.wk .items { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 6px; }
.wk .it { display: flex; gap: 9.6px; align-items: center; padding: 5.12px 8px; border: 1px solid var(--wk-line3); border-radius: 7px; background: rgba(0,0,0,.15); min-height: 42px; min-width: 0; }
.wk a.it:hover { border-color: var(--gold-line); }
.wk .it .pic { width: 30px; height: 30px; flex: none; display: grid; place-items: center; background: rgba(0,0,0,.22); border-radius: 6px; overflow: hidden; }
.wk .it .pic img { width: 26px; height: 26px; object-fit: contain; }
.wk .it .pic.photo img { width: 30px; height: 30px; object-fit: cover; }
.wk .it .nm { min-width: 0; }
.wk .it b { display: block; color: var(--text); font-size: 12.48px; line-height: 18.72px; font-weight: 500; overflow-wrap: anywhere; }
.wk .it small { color: var(--wk-dim); font-size: 11px; line-height: 15px; display: block; }
.wk .it .q { margin-left: auto; font: 600 11.52px var(--mono); color: var(--gold); white-space: nowrap; }
.wk .links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.wk .links a, .wk .links span { padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 12px; line-height: 18px; background: rgba(0,0,0,.15); }
.wk .links a:hover { border-color: var(--gold-line); color: var(--head); }
.wk table.st { width: 100%; border-collapse: collapse; font-size: 12.48px; line-height: 18.72px; }
.wk table.st th { text-align: left; padding: 6.4px 8.8px; font-size: 10.56px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: rgba(176,148,104,.75); border-bottom: 1px solid var(--wk-line); white-space: nowrap; }
.wk table.st td { padding: 6.4px 8.8px; border-bottom: 1px solid var(--wk-line3); vertical-align: middle; }
.wk table.st td.n { text-align: right; font-family: var(--mono); color: var(--head); white-space: nowrap; }
.wk .mats { display: flex; gap: 8px; flex-wrap: wrap; }
.wk .mat { display: inline-flex; align-items: center; gap: 4px; font-size: 12px; }
.wk .mat img { width: 22px; height: 22px; object-fit: contain; }
.wk .mat em { font-style: normal; color: var(--gold); font-family: var(--mono); }
.wk .tablewrap { overflow-x: auto; }
.wk .mapbanner { width: 100%; height: 220px; object-fit: cover; border-radius: 12px; border: 1px solid var(--line); margin-top: 20px; display: block; }
.wk .btn { display: inline-block; margin-top: 4px; }

/* ---------- Schmalere Fenster ---------- */
/* ---------- Umbrüche wie im Original (980 / 960 / 720 / 640 px) ---------- */
@media (max-width: 980px) {
  .wk .dbtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
/* unter 960 px: Klassen als Zeilenliste, Chips mit Rahmen und 22-px-Bildern */
@media (max-width: 959.98px) {
  .wk .equip { display: block; }
  .wk .equip > li { background: none; border: 0; border-bottom: 1px solid rgba(58,56,52,.4); border-radius: 0; }
  .wk .equip > li::before, .wk .equip > li::after { display: none; }
  .wk .eq { flex-direction: row; align-items: center; gap: 11.2px; min-height: 56px; padding: 7.2px 12px; background: none; }
  .wk .eq .en { flex: none; min-width: 88px; font-size: 14.08px; }
  .wk .eq .chips { flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 6.4px; }
  .wk .chip2 { flex-direction: row; gap: 6.4px; min-width: 0; padding: 4.16px 8px; border: 1px solid var(--wk-dim); background: rgba(0,0,0,.15); line-height: 1; }
  .wk .chip2 img { width: 11px; height: 22px; } .wk .chip2.sq img { width: 22px; height: 22px; }
  .wk .equip > li.common .eq { padding: 7.2px 12px; }
  .wk .equip > li.common .chips { justify-content: flex-start; gap: 6.4px; }
}
@media (max-width: 720px) {
  .wk .whero { height: clamp(200px, 55vw, 250px); }
  .wk .whero img.bg { object-position: 50% 24%; }
  .wk .board { margin-left: -16px; margin-right: -16px; border-left: 0; border-right: 0; border-radius: 0; box-shadow: none; }
  .wk .rail-btn { display: none !important; }
  /* Klassen: Karten mit Eckwinkeln, Raster Name | Chips */
  .wk .equip { display: grid; grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk .equip > li { background: var(--wk-card); border: 1px solid var(--wk-line2); border-radius: 8px; }
  .wk .equip > li::before, .wk .equip > li::after { display: block; width: 12px; height: 12px; border-color: rgba(176,148,104,.4); }
  .wk .equip > li::before { left: 5px; top: 5px; }
  .wk .equip > li::after { right: 5px; bottom: 5px; }
  .wk .eq { display: grid; grid-template-columns: 54px minmax(72px, auto) minmax(0, 1fr); align-items: center; gap: 8.8px; min-height: 0; padding: 8px 9.6px; }
  .wk .eq .en { min-width: 0; font-size: 13.6px; line-height: 20.4px; }
  .wk .eq .chips { justify-content: space-around; align-items: flex-end; gap: 5.6px; flex-wrap: nowrap; }
  .wk .chip2 { flex-direction: column; justify-content: flex-end; min-width: 51.2px; gap: 4px; padding: 4.8px 6.4px 4px; border: 0; background: none; font-size: 9.92px; text-align: center; }
  .wk .chip2 img { width: 21px; height: 42px; }
  .wk .chip2.sq img { width: 32px; height: 32px; }
  .wk .equip > li.common .eq { grid-template-columns: minmax(0, 1fr); padding: 8px 9.6px; }
  .wk .equip > li.common .chips { flex-wrap: wrap; justify-content: flex-start; row-gap: 8px; }
  .wk .equip > li.common .chip2 { min-width: 67.2px; }
  /* Truhen: nur Liste, gewählte Truhe klappt in der Zeile auf */
  .wk .clayout { grid-template-columns: minmax(0, 1fr); }
  .wk .clayout > .cpane { display: none; }
  .wk .clist { background: none; border: 0; border-radius: 0; max-height: none; overflow: visible; }
  .wk .chead { grid-template-columns: 36px minmax(0, 1fr) auto 15px; padding-left: 6.4px; padding-right: 6.4px; }
  .wk .chead .chev { display: block; width: 15px; height: 15px; }
  .wk .chead.on { background: none; }
  .wk .crow .cinline { display: block; position: static; max-height: none; margin: 0 4px 9.6px; }
  .wk .isearch input { font-size: 16px; line-height: 24px; }
  .wk .mpic { flex: 1 1 100%; width: 100%; }
  .wk .stage { width: min(272px, 100%); margin: 0 auto; }
}
@media (max-width: 640px) {
  .wk .dbtiles { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .wk .dbtile { min-height: 0; gap: 10.4px; padding: 9.6px 32px 9.6px 11.2px; }
  .wk .dbtile .chev { right: 9.6px; }
  .wk .whero .stand { margin-left: 0; }
  .wk .sline { flex-direction: column; gap: 0; }
  .wk .sline .isearch { width: 100%; }
  .wk .sline .count { line-height: 1; margin: 0 0 10px; }
  .wk .lrow { grid-template-columns: 36px minmax(0, 1fr) 16px; }
  .wk .lrow .ls { grid-column: 2; grid-row: 2; margin-top: -4px; }
  .wk .lrow .chev { grid-column: 3; grid-row: 1 / span 2; }
}

/* Original: .site-wrap ab 1280 px = 100vw − 400 px (seitliche Werbespalten), darunter volle Breite */
@media (min-width: 1280px) { #app main.wk { max-width: min(1376px, calc(100vw - 400px)); } }
#app main.wk.home { max-width: min(1152px, 100%); }
@media (min-width: 1280px) { #app main.wk.home { max-width: min(1152px, calc(100vw - 400px)); } }

/* ---------- Original-Grafiken (metin2alerts.com, lokale Kopie unter /ma/wiki) – Werte aus den Original-Sources ---------- */
.wk .whero picture { position: absolute; inset: 0; }
.wk .whero picture img.bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 22%; }
@media (max-width: 720px) { .wk .whero picture img.bg { object-position: 50% 24%; } }
.wk .dbtile { overflow: hidden; }
.wk .dbtile .ti, .wk .dbtile .tt, .wk .dbtile .chev, .wk .dbtile .bald { position: relative; z-index: 1; }
.wk .dbtile .chev { position: absolute; }
.wk .dbtile .ti img { object-fit: contain; image-rendering: auto; filter: drop-shadow(rgba(0,0,0,.55) 0 3px 6px); }
.wk .dbtile .art { position: absolute; inset: 0; z-index: 0; opacity: .14; pointer-events: none; }
.wk .dbtile .art img { width: 100%; height: 100%; max-width: none; object-fit: cover; opacity: .35; filter: saturate(.9); -webkit-mask-image: linear-gradient(270deg, rgba(0,0,0,.95), transparent 95%); mask-image: linear-gradient(270deg, rgba(0,0,0,.95), transparent 95%); transition: opacity .15s; }
@media (max-width: 640px) { .wk .dbtile .art { opacity: .1; } }
.wk .chip2 img { filter: drop-shadow(rgba(0,0,0,.4) 0 2px 4px); }
.wk .pick .pt img, .wk .chead .ct img, .wk .ptile img, .wk .dt img { image-rendering: pixelated; }
.wk .seocard .lbl { left: 9.6px; top: 9.6px; gap: 5.6px; padding: 4px 8.8px; border-radius: 6.4px; border: 0; background: rgba(38,38,38,.88); font-size: 10.56px; line-height: 15.84px; letter-spacing: .02em; color: var(--text); }
.wk .seocard .lbl img { width: 16px; height: 16px; object-fit: contain; }

/* ---------- Kostüme (Aufbau wie /de/wiki/costumes) ---------- */
.wk .cswrap { display: flex; flex-direction: column; gap: 17.6px; margin-top: 20px; }
.wk .cswrap > .isearch { margin: 0; }
.wk .cswrap > .board { margin-top: 0; }
.wk .csgrid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(340px, 100%), 1fr)); gap: 12.8px; }
.wk .cscard { padding: 14.4px 16px; background: var(--wk-board); border: 1px solid var(--line); border-radius: 12px; min-width: 0; }
.wk .cscard[hidden] { display: none; }
.wk .cscard h3 { margin: 0; font-size: 15.2px; line-height: 22.8px; font-weight: 500; color: var(--head); }
.wk .csparts { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 8px; margin: 24px 0 24px; }
.wk .cspart { display: flex; flex-direction: column; align-items: center; gap: 3.52px; width: 44px; }
.wk .csframe { width: 44px; height: 44px; box-sizing: border-box; padding: 6px; display: grid; place-items: center; background: rgba(0,0,0,.25); border: 1px solid rgba(58,56,52,.6); border-radius: 8px; }
.wk .csframe.tall { height: 76px; }
.wk .csframe img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; }
.wk .csframe.tall img { height: 64px; }
.wk .cspart i { font-style: normal; font-size: 9.6px; line-height: 14.4px; color: var(--wk-dim); white-space: nowrap; }
.wk .cstier { display: flex; align-items: center; gap: 4.8px; margin-top: 8.8px; }
.wk .csword { font-size: 10.88px; line-height: 16.32px; color: var(--wk-gd); }
.wk .cschip { min-width: 24px; height: 24px; display: grid; place-items: center; font: 400 11.84px var(--mono); color: var(--gold); border: 1px solid rgba(235,179,92,.3); border-radius: 6px; }
.wk .csboni { list-style: none; margin: 8.8px 0 0; padding: 0; display: flex; flex-direction: column; gap: 4.16px; font-size: 12.8px; line-height: 19.2px; color: var(--text); }

/* Kostüm-Teile mit Namen: feste Breite, Name bricht um statt in Nachbarn zu laufen */
.wk .csparts { gap: 10px 8px; }
.wk .cspart { width: 64px; }
.wk .cspart i { white-space: normal; text-align: center; overflow-wrap: anywhere; line-height: 12px; max-height: 36px; overflow: hidden; }
