/* Wiki: emblemas e conquistas (local/wiki/emblemas.mjs). Usa os tokens de /ds/ds.css e as peças de /ds/wiki.css. */
.wk-card-tags em.wkb-code { font-family: var(--ds-mono); font-size: .85rem; overflow-wrap: anywhere; max-width: 100%; }
.wkb-box { min-height: 12rem; }
.wk-preview-box img.wkb-big { width: 120px; max-width: 100%; height: auto; transform: none; image-rendering: pixelated; }
.wkb-pn { display: inline-block; max-width: 12rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; vertical-align: bottom; }

/* Faixas do emblema de evento (HBLEV) */
.wkb-tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(11rem, 1fr)); gap: .4rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.wkb-tiers li { display: flex; align-items: center; gap: .5rem; padding: .4rem .55rem; border-radius: 2px; background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border-soft); }
.wkb-tiers li.is-on { box-shadow: 0 0 0 2px var(--ds-brand); background: var(--ds-brand-soft); }
.wkb-tiers img { image-rendering: pixelated; display: block; }
.wkb-tiers span { display: flex; flex-direction: column; min-width: 0; }
.wkb-tiers b { color: var(--ds-text-strong); font-size: .9rem; }
.wkb-tiers small { color: var(--ds-text-muted); font-size: .75rem; }

/* Níveis da conquista */
.wkb-lvs { display: flex; flex-direction: column; gap: .4rem; margin: 0 0 .8rem; padding: 0; list-style: none; }
.wkb-lv { display: grid; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .6rem; align-items: start; padding: .5rem .6rem; border-radius: 2px;
    background: var(--ds-surface); box-shadow: 0 0 0 1px var(--ds-border-soft); }
.wkb-lv-img { width: 3.2rem; height: 3.2rem; display: grid; place-items: center; border-radius: 2px; background: var(--ds-surface-alt); box-shadow: var(--ds-sunken); }
.wkb-lv-img img { max-width: 40px; max-height: 40px; image-rendering: pixelated; }
.wkb-lv-img[aria-disabled="true"] { pointer-events: none; }
.wkb-lv-main { min-width: 0; }
.wkb-lv-main b { color: var(--ds-text-strong); overflow-wrap: anywhere; }
.wkb-lv-main p { margin: .15rem 0 .3rem; font-size: .85rem; color: var(--ds-text-muted); overflow-wrap: anywhere; }
.wkb-lv-facts { display: flex; flex-wrap: wrap; gap: .3rem .9rem; margin: 0; }
.wkb-lv-facts div { display: flex; gap: .3rem; align-items: baseline; font-size: .82rem; }
.wkb-lv-facts dt { color: var(--ds-text-muted); }
.wkb-lv-facts dd { margin: 0; font-weight: 700; color: var(--ds-text-strong); }

/* no celular a grade de /ds/wiki.css vira "1fr" (mínimo = conteúdo): deixa as colunas encolherem */
.wk-item > * { min-width: 0; }
.wk-prevnext { flex-wrap: wrap; }

@media (max-width: 520px) {
    .wkb-pn { max-width: 7rem; }
    .wk-prevnext .ds-btn { min-width: 0; }
}
