/* Wiki do Habblit: Equipe (local/wiki/equipe.mjs). Cartão no estilo do perfil do jogo: capa do perfil por trás em meia
   transparência, anel do avatar com a moldura da HabblitShop+, nome com online/offline, missão, datas e emblemas. */
.wke-group .wk-h2 { display: flex; align-items: center; gap: .45rem; }
.wke-group .wk-h2 .ds-icon { width: 20px; height: 20px; color: var(--ds-brand); }
.wke-group .wk-h2 small { font: 500 .78rem var(--ds-mono); color: var(--eco-faint); }
.wke-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(22rem, 1fr)); gap: .9rem; margin: 0; padding: 0; list-style: none; }

.wke-card { position: relative; isolation: isolate; display: grid; grid-template-columns: 128px minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 1rem; row-gap: .7rem;
    align-items: center; padding: 1rem; overflow: hidden; border-radius: 16px; color: #fff;
    background: linear-gradient(135deg, #0b1840 0%, #15276b 100%); box-shadow: 0 0 0 1px #0b1840, var(--eco-shadow);
    transition: transform .2s cubic-bezier(.2, .8, .2, 1), box-shadow .2s; }
.wke-card:hover { transform: translateY(-3px); box-shadow: 0 0 0 1px #0b1840, 0 16px 34px #0b184033; }
/* Capa do perfil em meia transparência, escurecida embaixo para o texto ler bem */
.wke-cover { position: absolute; inset: 0; z-index: -1; background: center / cover no-repeat; opacity: .5; }
.wke-card.has-cover::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, #0b184033 0%, #0b1840b3 70%, #0b1840e6 100%); }

/* Anel do avatar + moldura */
.wke-ring { position: relative; grid-row: 1 / 3; width: 128px; height: 128px; display: grid; place-items: center; }
.wke-av { width: 92px; height: 92px; display: block; overflow: hidden; border-radius: 50%; background: #ffffff1f center / cover no-repeat; box-shadow: 0 0 0 3px #ffffff40, 0 6px 18px #00000059; }
.wke-av img { display: block; width: 92px; height: 92px; object-fit: none; object-position: 50% 26%; image-rendering: pixelated; }
.wke-av.is-hidden { background-size: cover; }
.wke-frame { position: absolute; inset: 0; width: 128px; height: 128px; object-fit: contain; pointer-events: none; }

.wke-id { min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.wke-id p { margin: 0; }
.wke-name { display: flex; align-items: center; gap: .45rem; font: 700 1.15rem/1.2 var(--ds-font); }
.wke-name a { color: #fff; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-shadow: 0 1px 2px #0008; }
.wke-name a:hover { text-decoration: underline; }
.wke-dot { flex: none; width: 10px; height: 10px; border-radius: 50%; box-shadow: 0 0 0 2px #0b1840; }
.wke-dot.is-on { background: #4be37a; box-shadow: 0 0 0 2px #0b1840, 0 0 8px #4be37a; }
.wke-dot.is-off { background: #8a93a6; }
.wke-role { display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; padding: .1rem .55rem; border-radius: 999px; background: var(--ds-lime); color: #10300a; font: 700 .7rem var(--ds-font); text-transform: uppercase; letter-spacing: .05em; }
.wke-role .ds-icon { width: 12px; height: 12px; }
.wke-motto { color: #ffffffd9; font-size: .88rem; font-style: italic; overflow-wrap: anywhere; text-shadow: 0 1px 2px #0008; }
.wke-dates { display: flex; flex-wrap: wrap; gap: .2rem .8rem; color: #ffffffb3; font-size: .76rem; }
.wke-dates b { color: #fff; font-weight: 600; }

/* Emblemas em uso (5 lugares, como no perfil) */
.wke-badges { grid-column: 2; display: flex; gap: .35rem; margin: 0; padding: 0; list-style: none; }
.wke-badges li { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 10px; background: #0b184099; box-shadow: inset 0 0 0 1px #ffffff26; }
.wke-badges li.is-empty { background: #0b184059; }
.wke-badges img { width: 40px; height: 40px; object-fit: none; image-rendering: pixelated; }
.wke-badges a { display: grid; place-items: center; transition: transform .2s cubic-bezier(.3, 1.6, .5, 1); }
.wke-badges a:hover { transform: translateY(-3px) scale(1.06); }

@media (max-width: 520px) {
    .wke-grid { grid-template-columns: 1fr; }
    .wke-card { grid-template-columns: 96px minmax(0, 1fr); padding: .8rem; }
    .wke-ring { width: 96px; height: 96px; }
    .wke-frame { width: 96px; height: 96px; }
    .wke-av, .wke-av img { width: 72px; height: 72px; }
    .wke-badges { grid-column: 1 / 3; justify-content: center; }
}
