/* Wiki dos jogadores (/wiki/): usa as peças do site.css (janela .win, faixa .band, botões, fonte pixel). */
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top-nav a[aria-current="page"] { color: var(--gold); }

.wk-hero { padding: 40px 0 26px; text-align: center; }
.wk-hero h1 { font-family: var(--px); font-weight: normal; font-size: clamp(32px, 5vw, 48px); line-height: 1.1; margin: 0 0 12px; text-shadow: 3px 3px 0 rgba(0,0,0,.55); }
.wk-hero .lead { margin: 0 auto 20px; }
.wk-search { display: block; max-width: 560px; margin: 0 auto; }
.wk-search .input { font-size: 17px; padding: 12px 14px; }
.wk-none { margin: 14px 0 0; }

.wk-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 24px; align-items: start; margin-bottom: 72px; }
.wk-index { position: sticky; top: 84px; max-height: calc(100vh - 100px); overflow: auto; }
.wk-index summary { cursor: pointer; list-style: none; }
.wk-index summary::-webkit-details-marker { display: none; }
.wk-index summary { display: flex; align-items: center; justify-content: space-between; }
.wk-index summary::after { content: "▾"; font-size: 16px; transition: transform .15s; }
.wk-index details:not([open]) summary::after { transform: rotate(-90deg); }
@media (min-width: 901px) { .wk-index summary { pointer-events: none; } .wk-index summary::after { display: none; } }
.wk-index ol { list-style: none; margin: 0; padding: 8px; display: grid; gap: 2px; background: var(--dots-h) top / 100% 2px no-repeat; }
.wk-index a { display: block; padding: 6px 10px; border-radius: 6px; color: var(--ink2); text-decoration: none; font-size: 15px; }
.wk-index a:hover { background: var(--card); color: var(--ink); }
.wk-index a.on { background: var(--blue-lo); color: #fff; box-shadow: inset 0 0 0 1px var(--blue-edge); }
.wk-index li.off { display: none; }

.wk-body { display: grid; gap: 22px; min-width: 0; }
.wk-sec { scroll-margin-top: 14px; } /* soma com o scroll-padding-top do site (menu fixo) */
.wk-sec .band { display: flex; align-items: center; gap: 10px; margin: 0; font-weight: normal; font-size: 22px; padding: 8px 14px; }
.wk-sec .band img { width: 32px; height: 32px; object-fit: contain; image-rendering: pixelated; filter: drop-shadow(1px 1px 0 rgba(0,0,0,.5)); flex: none; }
.wk-in { padding: 16px 20px 20px; background: var(--dots-h) top / 100% 2px no-repeat; }
.wk-in > :first-child { margin-top: 0; }
.wk-in > :last-child { margin-bottom: 0; }
.wk-in p { color: var(--ink2); margin: 0 0 12px; }
.wk-in p b, .wk-in li b, .wk-in dd b { color: var(--ink); }
.wk-in h3 { font-family: var(--px); font-weight: normal; font-size: 20px; color: var(--gold); margin: 22px 0 10px; text-shadow: 2px 2px 0 rgba(0,0,0,.45); }
.wk-in h4 { font-family: var(--px); font-weight: normal; font-size: 18px; margin: 0 0 8px; }

.wk-list { margin: 0 0 12px; padding: 0; list-style: none; display: grid; gap: 7px; }
.wk-list li { position: relative; padding-left: 20px; color: var(--ink2); }
.wk-list li::before { content: ""; position: absolute; left: 2px; top: .6em; width: 8px; height: 8px; border-radius: 2px; background: #6ec0f0; box-shadow: 0 0 0 1px var(--frame), inset 0 0 0 1px #fff; }

.wk-steps, .wk-tips { margin: 0 0 12px; padding: 0; list-style: none; counter-reset: wk; display: grid; gap: 10px; }
.wk-steps li, .wk-tips li { counter-increment: wk; position: relative; padding: 2px 0 0 44px; min-height: 32px; color: var(--ink2); }
.wk-steps li::before, .wk-tips li::before {
  content: counter(wk); position: absolute; left: 0; top: 0; width: 32px; height: 32px; display: grid; place-items: center;
  font-family: var(--px); font-size: 18px; color: #fff; border: 2px solid var(--blue-edge); border-radius: 8px;
  background: linear-gradient(180deg, var(--blue-hi) 0 2px, var(--blue) 2px 50%, var(--blue-lo) 50%); text-shadow: 1px 1px 0 var(--blue-edge);
}
.wk-tips li::before { background: linear-gradient(180deg, #ffb77a 0 2px, #f0782e 2px 50%, #d2561a 50%); border-color: #5a1e05; text-shadow: 1px 1px 0 #5a1e05; }

.wk-dl { margin: 0 0 12px; display: grid; gap: 4px; }
.wk-dl dt { font-family: var(--px); font-size: 18px; margin-top: 10px; }
.wk-dl dt:first-child { margin-top: 0; }
.wk-dl dd { margin: 0; color: var(--ink2); }

.wk-tip { background: #2b3a2f; border: 2px solid #1d4a2a; border-left-width: 6px; border-radius: 8px; padding: 10px 14px; }
.wk-tip > b:first-child { color: #8ee6a5 !important; }

.wk-table-wrap { overflow-x: auto; margin: 0 0 14px; border: 2px solid var(--frame); border-radius: 8px; box-shadow: inset 0 0 0 2px var(--in); }
.wk-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.wk-table caption { caption-side: top; text-align: left; padding: 8px 12px; font-family: var(--px); font-size: 16px; color: var(--ink); background: var(--panel-d); }
.wk-table th, .wk-table td { padding: 8px 12px; text-align: left; border-bottom: 1px solid #343a42; vertical-align: middle; }
.wk-table thead th { font-family: var(--px); font-weight: normal; font-size: 15px; color: var(--ink2); background: var(--panel-d); white-space: nowrap; }
.wk-table tbody tr:nth-child(even) { background: rgba(255,255,255,.03); }
.wk-table tbody tr:last-child td, .wk-table tbody tr:last-child th { border-bottom: 0; }
.wk-table tbody th { font-weight: normal; color: var(--ink2); white-space: nowrap; }
.wk-table .ico { display: inline-block; width: 24px; height: 24px; vertical-align: middle; margin: -4px 6px -4px 0; image-rendering: pixelated; }

.wk-cards { display: grid; gap: 12px; margin: 0 0 14px; }
.wk-cards.two { grid-template-columns: 1fr 1fr; }
.wk-cards.three { grid-template-columns: repeat(3, 1fr); }
.wk-card { background: var(--panel-d); border: 2px dotted var(--dot); border-radius: var(--r); padding: 12px 14px; }
.wk-card p, .wk-card .wk-list { margin: 0; }
.wk-card.center { text-align: center; display: grid; gap: 4px; align-content: start; }
.wk-card .big { font-family: var(--px); font-weight: normal; font-size: 38px; line-height: 1; color: var(--gold); text-shadow: 2px 2px 0 rgba(0,0,0,.5); }
.wk-card.center span { color: var(--ink2); font-size: 14px; }

.wk-tiers { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 0 0 14px; }
.wk-tiers figure { margin: 0; text-align: center; background: var(--panel-d); border: 2px solid var(--frame); border-radius: 8px; padding: 10px 6px; }
.wk-tiers img { width: 48px; height: 48px; margin: 0 auto 6px; image-rendering: pixelated; }
.wk-tiers figcaption { font-family: var(--px); font-size: 15px; line-height: 1.25; }
.wk-tiers small { font-family: system-ui, sans-serif; font-size: 12px; color: var(--gold); }

.wk-fig { margin: 6px 0 0; border: 2px solid var(--frame); border-radius: 8px; overflow: hidden; box-shadow: inset 0 0 0 2px var(--in); background: var(--panel-d); }
.wk-fig img { width: 100%; height: auto; }
.wk-fig figcaption { padding: 8px 12px; font-size: 14px; color: var(--ink2); }

.wk-sec mark { background: #f2cb4f55; color: inherit; border-radius: 3px; padding: 0 1px; }
.wk-final { padding: 32px 20px; text-align: center; }
.wk-final .sec-title { margin-bottom: 20px; }

@media (max-width: 900px) {
  .wk-layout { grid-template-columns: 1fr; gap: 16px; }
  .wk-index { position: static; max-height: none; }
  .wk-index ol { grid-template-columns: 1fr 1fr; }
  .wk-tiers { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 640px) {
  /* no celular o menu do topo some no site; na wiki mostra os dois links */
  .wiki-page .top-nav { display: flex; gap: 12px; margin-left: 4px; }
  .wiki-page .top-nav a { font-size: 15px; }
  .wiki-page { padding-bottom: 0; }
  .wk-hero { padding: 26px 0 18px; }
  .wk-in { padding: 14px 14px 16px; }
  .wk-sec .band { font-size: 19px; }
  .wk-cards.two, .wk-cards.three { grid-template-columns: 1fr; }
  .wk-tiers { grid-template-columns: repeat(2, 1fr); }
  .wk-table { font-size: 14px; }
  .wk-table th, .wk-table td { padding: 7px 9px; }
  .to-top { bottom: calc(18px + env(safe-area-inset-bottom)); }
}
