/* Resumo da semana (layout de 2026-10-26): só o que é desta página, por cima do home.css e do estatisticas.css (body.sn: cores,
   seções, linhas de barra, ⓘ, cartões). Tudo dentro de body.wk. */
.wk-note { margin: 4px 2px 0; font-size: 12px; line-height: 1.5; color: var(--hn-faint); }
.wk-partial { margin: 0; padding: 8px 12px; border-radius: 8px; font-size: 13px; color: var(--gold); background: var(--gold-soft); }
.wk-pad { padding: 0 16px 14px; }
.sn-kpi-value.gain { color: var(--gain); }
.sn-kpi-sub a { color: var(--hn-soft); font-weight: 600; }
.sn-kpi-sub a:hover { color: var(--gold); }
.wk-v { font-weight: 600; color: var(--hn-strong); }

/* ranking à esquerda; ganho por classe e participação das classes empilhados à direita (alturas parecidas, sem área vazia) */
/* os dois lados com a mesma altura; com uma tabela aberta à direita, o ranking fica na altura que tinha (semana.js, lockGainers) */
.wk-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: stretch; }
.wk-row > .wk-gainers { flex: 1.2 1 520px; min-width: 0; }
.wk-side { flex: 1 1 440px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.wk-side > .card { flex: 1; }

/* quem mais ganhou: posição, quem, poder agora e o ganho com uma barrinha na mesma escala */
body.wk .wk-gainers { display: flex; flex-direction: column; }
body.wk .wk-gainers table { flex: 1; }
body.wk .wk-gainers { padding: 0; overflow: hidden; }
.wk-card-head { padding: 14px 16px 8px; }
.wk-gainers table { width: 100%; border-collapse: collapse; font-size: 13px; }
.wk-gainers tr { height: 52px; border-top: 1px solid var(--hn-row); cursor: pointer; transition: background .12s; }
.wk-gainers tr:hover { background: #121a2b; }
.wk-gainers td { padding: 0 8px; vertical-align: middle; }
.wk-rank { width: 44px; padding-left: 16px !important; }
.wk-who a { display: flex; align-items: center; gap: 10px; min-width: 0; }
.wk-who .avatar { width: 32px; height: 32px; flex: none; }
.wk-who a > span { display: flex; flex-direction: column; min-width: 0; }
.wk-who strong { font-size: 14px; color: var(--hn-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-who a:hover strong { color: var(--gold); }
.wk-who small { font-size: 12px; color: var(--hn-faint); white-space: nowrap; }
.wk-now { color: var(--hn-soft); }
.wk-now small { display: block; font-size: 11px; color: var(--hn-faint); }
.wk-gain { width: 150px; padding-right: 16px !important; }
.wk-gain-num { display: flex; justify-content: flex-end; align-items: baseline; gap: 6px; white-space: nowrap; }
.wk-gain-num b { font-size: 14px; color: var(--gain); }
.wk-gain-num small { font-size: 11px; color: var(--hn-faint); }
.wk-gain .sn-meter { margin-top: 5px; height: 3px; }

/* participação das classes: a parte agora e a variação em pontos percentuais */
.wk-share-rows .sn-row-val { display: flex; justify-content: flex-end; gap: 8px; }
.wk-share-rows .sn-up, .wk-share-rows .sn-down { min-width: 64px; }

/* itens em alta: as duas listas lado a lado, os 5 primeiros de cada uma com a posição */
body.wk .wk-items { padding-bottom: 0; overflow: hidden; }
.wk-items-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 420px), 1fr)); gap: 16px 28px; }
.wk-items-col h3 { margin: 0; font-size: 15px; font-weight: 600; color: var(--hn-text); }
.wk-items-col .chart-sub { margin: 2px 0 10px; }
.wk-items-list { list-style: none; margin: 0 0 6px; padding: 0; display: flex; flex-direction: column; gap: 6px; }
.wk-items-list li { display: flex; align-items: center; gap: 8px; min-width: 0; }
.wk-items-list .item-chip { flex: 1; min-width: 0; background: var(--hn-bg); border-color: var(--hn-line-2); }
.wk-items-list .item-chip:hover { border-color: #33405c; }
body.wk .wk-items .sn-top-all { margin: 10px -16px 0; }

/* botões das classes (com a contagem), na movimentação no ranking */
.wk-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chip {
  display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border-radius: 999px; cursor: pointer; font: 600 13px/1 var(--font);
  color: var(--hn-muted); background: var(--hn-bg); border: 1px solid var(--hn-line-2); transition: border-color .12s, color .12s;
}
.wk-chip:hover { color: var(--hn-strong); border-color: #33405c; }
.wk-chip.on { color: var(--hn-strong); background: #1b2436; border-color: #3a4763; }
.wk-chip small { font-weight: 600; font-size: 11px; color: var(--hn-faint); }
.wk-chip.on small { color: oklch(0.86 0.1 85); }
.wk-chip .sn-emblem { width: 16px; height: 16px; }
/* movimentação no ranking: destaques no alto, abas por faixa, botões das classes e a lista com a subida em destaque */
.wk-hl-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr)); gap: 10px; margin-bottom: 14px; }
.wk-hl-tile {
  display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; min-width: 0; border-radius: 12px;
  background: linear-gradient(180deg, #131b2c, var(--hn-bg)); border: 1px solid var(--hn-line-2); transition: border-color .12s;
}
.wk-hl-tile:hover { border-color: oklch(0.82 0.11 85 / 0.45); }
.wk-hl-label { font-size: 11px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--hn-muted); }
.wk-hl-tile strong { display: flex; align-items: center; gap: 6px; font-size: 15px; color: var(--hn-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-hl-tile .wk-mv { font-size: 15px; }
.wk-hl-tile .wk-mv b { font-size: 22px; }
.wk-hl-tile small { font-size: 12px; color: var(--hn-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.wk-mv { display: inline-flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 13px; }
.wk-mv > span[aria-hidden] { color: var(--hn-faint); }
.wk-mv b { font-size: 17px; font-weight: 700; color: oklch(0.86 0.1 85); }

.wk-moves-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-bottom: 10px; }
.wk-moves-bar .chart-sub { margin: 0; }
.wk-moves .wk-chips { margin-bottom: 10px; }

.wk-mv-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 460px), 1fr)); gap: 0 28px; }
.wk-mv-list li a { display: flex; align-items: center; gap: 10px; min-width: 0; padding: 8px 6px; border-top: 1px solid var(--hn-row); border-radius: 6px; }
.wk-mv-list li a:hover { background: #121a2b; }
.wk-mv-list .avatar { width: 32px; height: 32px; flex: none; }
.wk-mv-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wk-mv-who strong { font-size: 14px; color: var(--hn-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-mv-list li a:hover strong { color: var(--gold); }
.wk-mv-who small { font-size: 12px; color: var(--hn-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-mv-move { display: flex; flex-direction: column; align-items: flex-end; flex: none; min-width: 112px; }
.wk-mv-move small { font-size: 12px; font-weight: 600; color: var(--gain); }

/* selo da faixa alcançada: ouro no top 10, prata no top 25, azul no top 50 */
.wk-badge { flex: none; padding: 2px 8px; border-radius: 999px; font-size: 11px; font-weight: 700; letter-spacing: 0.03em; white-space: nowrap; }
.wk-badge.b10 { color: var(--hn-bg); background: var(--gold); }
.wk-badge.b25 { color: var(--hn-bg); background: #c9d0dc; }
.wk-badge.b50 { color: oklch(0.82 0.1 230); background: oklch(0.76 0.11 230 / 0.16); border: 1px solid oklch(0.76 0.11 230 / 0.4); }

.wk-more {
  display: block; width: 100%; margin-top: 8px; padding: 9px; border-radius: 8px; cursor: pointer; font: 600 13px/1 var(--font);
  color: var(--hn-soft); background: var(--hn-bg); border: 1px dashed var(--hn-line-3);
}
.wk-more:hover { color: var(--gold); border-color: oklch(0.82 0.11 85 / 0.45); }

/* bateram na trave: subiram e pararam logo abaixo do top 10 */
.wk-near { margin-top: 14px; padding: 12px 14px; border-radius: 10px; background: var(--hn-bg); border: 1px solid var(--hn-line-2); }
.wk-near h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 0 0 8px; font-size: 14px; font-weight: 600; color: var(--hn-text); }
.wk-near h3 small { font-size: 12px; font-weight: 400; color: var(--hn-faint); }
.wk-near ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.wk-near li a {
  display: inline-flex; align-items: baseline; gap: 8px; padding: 6px 10px; border-radius: 8px; white-space: nowrap;
  background: var(--hn-panel); border: 1px solid var(--hn-line-2);
}
.wk-near li a:hover { border-color: #33405c; }
.wk-near strong { font-size: 13px; color: var(--hn-strong); }
.wk-near .wk-mv b { font-size: 14px; color: var(--hn-soft); }
.wk-near small { font-size: 11px; color: var(--hn-faint); }

.wk-moves-foot { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 22px; margin: 12px -16px -14px; padding: 12px 16px; border-top: 1px solid var(--hn-row); }
.wk-moves-foot a { font-size: 13px; font-weight: 600; color: var(--gold); }

@media (max-width: 720px) {
  .wk-gain { width: 118px; }
  .wk-rank { width: 34px; padding-left: 10px !important; }
  .wk-who .avatar { display: none; }
  .wk-share-rows .sn-up, .wk-share-rows .sn-down { min-width: 0; }
}

/* ranking e classes: o seletor ao lado do título */
.wk-card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; flex-wrap: wrap; }
.wk-card-head > div:first-child { flex: 1 1 220px; min-width: 0; }
.wk-card-head h2 { display: flex; align-items: center; justify-content: flex-start; }
.wk-class-rows .sn-row-val { display: flex; justify-content: flex-end; gap: 8px; }
@media (max-width: 720px) {
  .wk-card-head .sn-seg { flex: 1 1 100%; }
  .wk-card-head .sn-seg > button { flex: 1; justify-content: center; }
  .wk-class-rows .sn-n { display: none; }
  .wk-badge { padding: 2px 6px; font-size: 10px; }
  .wk-mv-move { min-width: 0; }
  .wk-mv-list .avatar { display: none; }
  /* os botões das classes numa linha só, deslizando para o lado (em várias linhas eles empurravam a lista para baixo) */
  .wk-chips { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -16px; padding: 0 16px 2px; }
  .wk-chip { flex: none; }
}

/* legiões que mais cresceram: posição, o brasão decorativo na cor da facção (o mesmo de /legioes), força agora e o ganho, em duas colunas */
body.wk .wk-guilds { padding-bottom: 0; overflow: hidden; }
.wk-guild-list { list-style: none; margin: 8px 0 4px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 520px), 1fr)); gap: 0 28px; }
.wk-guild-list li { display: flex; align-items: center; gap: 10px; min-width: 0; height: 54px; border-top: 1px solid var(--hn-row); }
.wk-guild-list .gn-shield { width: 24px; height: 27px; flex: none; display: block; overflow: visible; }
.wk-guild-list .gn-shield-body { fill: color-mix(in srgb, var(--fac, var(--gold)) 26%, #0d1320); stroke: var(--fac, var(--gold)); stroke-width: 2.5; stroke-linejoin: round; }
.wk-guild-list .gn-shield-rim { fill: none; stroke: color-mix(in srgb, var(--fac, var(--gold)) 45%, transparent); stroke-width: 1.2; }
.wk-guild-list .gn-shield-mark { fill: var(--fac, var(--gold)); opacity: 0.9; }
.wk-guild-who { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wk-guild-who strong { font-size: 14px; color: var(--hn-strong); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-guild-who a:hover strong { color: var(--gold); }
.wk-guild-who small { font-size: 12px; color: var(--hn-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-guild-list .wk-now { flex: none; text-align: right; }
.wk-guild-list .wk-gain { flex: none; padding-right: 0 !important; }
body.wk .wk-guilds .sn-top-all { margin: 10px -16px 0; }
@media (max-width: 720px) {
  .wk-guild-list .wk-now { display: none; }
  .wk-guild-list .gn-shield { display: none; }
}
/* duas colunas lidas de cima para baixo (1 a 5 à esquerda, 6 a 10 à direita) */
@media (min-width: 1100px) {
  .wk-guild-list { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-rows: repeat(var(--rows, 5), auto); grid-auto-flow: column; }
}
/* celular: os três destaques da movimentação lado a lado, deslizando (empilhados ocupavam uma tela inteira) */
@media (max-width: 720px) {
  .wk-hl-tiles { display: flex; overflow-x: auto; scrollbar-width: none; margin: 0 -16px 12px; padding: 0 16px 2px; }
  .wk-hl-tile { flex: 0 0 74%; }
}
/* legiões: o detalhe (%, comparados, por membro) embaixo do número, que pode ser grande (poder somado na casa dos milhões) */
.wk-guild-list li { height: auto; min-height: 54px; padding: 6px 0; }
.wk-guild-list .wk-gain { width: auto; min-width: 132px; }
.wk-guild-list .wk-gain-num { flex-direction: column; align-items: flex-end; gap: 0; }
.wk-guild-list .wk-gain-num small { line-height: 1.2; }
.wk-guild-empty { margin: 12px 0 4px; }
@media (max-width: 720px) {
  /* as quatro medidas das legiões cabem numa linha (e deslizam, se ainda faltar espaço) */
  .wk-guilds .wk-card-head .sn-seg { overflow-x: auto; scrollbar-width: none; }
  .wk-guilds .wk-card-head .sn-seg > button { flex: 1 0 auto; padding: 0 8px; font-size: 12px; }
}

/* tabelas dos cartões da direita ("Ver tabela") mais compactas, para crescerem pouco */
.wk-side .data-table { font-size: 12px; }
.wk-side .data-table th, .wk-side .data-table td { padding: 4px 6px; }
.wk-side .data-table th { font-size: 11px; }
/* "Ver tabela" sempre no canto direito do cabeçalho, mesmo quando o seletor empurra o botão para a linha de baixo */
body.wk .chart-head .chart-toggle { margin-left: auto; }
