/* One Life wiki (/wiki) - built on /assets/public.css (page head, cards,
   kicker, chips). --c is the current category colour where one applies. */

.wk-page { --c: #35d7ff; }
.wk-dim { color: var(--dim); }
.wk-stack { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }

/* staff-only banner */
.wk-staff-banner {
  display: flex; align-items: center; justify-content: center; gap: .6rem; flex-wrap: wrap; text-align: center;
  padding: .6rem 1rem; font-size: .85rem; color: #f5c451; background: rgba(245,196,81,.08); border-bottom: 1px solid rgba(245,196,81,.3);
}
.wk-staff-banner svg { width: 16px; height: 16px; flex: none; }
.wk-staff-banner b { color: #ffe09a; }

/* ---------- shared bits ---------- */
.wk-band { padding-block: 1.6rem 3.5rem; }
.wk-band-tight { padding-top: 1.2rem; }
.wk-crumb { display: flex; align-items: center; gap: .45rem; flex-wrap: wrap; font-size: .84rem; font-weight: 700; color: var(--dim); }
.wk-crumb a { display: inline-flex; align-items: center; gap: .35rem; color: var(--dim); text-decoration: none; }
.wk-crumb a:hover { color: var(--ice); }
.wk-crumb svg { width: 14px; height: 14px; }
.wk-crumb span { opacity: .5; }
.wk-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-top: .4rem; }
.wk-section-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.25rem; }
.wk-section-head a { color: var(--ice); font-weight: 700; font-size: .86rem; text-decoration: none; }
.wk-flash { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; padding: .7rem 1rem; border-radius: 12px; margin-bottom: 1rem; font-size: .9rem; background: var(--ink-1); border: 1px solid var(--line-strong); }
.wk-flash svg { width: 16px; height: 16px; }
.wk-flash.is-ok { color: #8ff0bd; background: rgba(94,226,154,.08); border-color: rgba(94,226,154,.35); }
.wk-flash.is-warn { color: #ffcf7a; background: rgba(245,166,35,.08); border-color: rgba(245,166,35,.35); }
.wk-flash form { margin-left: auto; }
.wk-tag { display: inline-flex; align-items: center; gap: .3rem; padding: .12rem .5rem; border-radius: 999px; font: 700 .64rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #f5c451; border: 1px solid rgba(245,196,81,.4); background: rgba(245,196,81,.08); }
.wk-tag svg { width: 11px; height: 11px; }
.wk-tag.is-new { color: #5ee29a; border-color: rgba(94,226,154,.4); background: rgba(94,226,154,.08); }
.wk-tag.is-current { color: var(--ice); border-color: rgba(53,215,255,.4); background: rgba(53,215,255,.08); }
.wk-cat-chip { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .6rem; border-radius: 999px; font-weight: 700; font-size: .74rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.wk-cat-chip i { width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.wk-empty { display: flex; flex-direction: column; align-items: center; gap: .45rem; padding: 2.5rem 1rem; text-align: center; }
.wk-empty span { color: var(--dim); font-size: .9rem; }
.wk-count { font: 700 .72rem var(--mono); padding: .05rem .45rem; border-radius: 999px; background: var(--ink-2); border: 1px solid var(--line); color: var(--dim); }
.wk-link-btn { background: none; border: 0; padding: 0; cursor: pointer; color: var(--dim); font: 600 .78rem var(--body); }
.wk-link-btn:hover { color: #ff9a9d; text-decoration: underline; }

/* ---------- home ---------- */
.wk-hero .wrap { gap: 1.1rem; }
.wk-hero-search { position: relative; display: flex; align-items: center; gap: .5rem; max-width: 640px; padding: .35rem; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line-strong); box-shadow: 0 20px 45px -28px rgba(0,120,255,.7); }
.wk-hero-search svg { position: absolute; left: 1rem; width: 18px; height: 18px; color: var(--dim); pointer-events: none; }
.wk-hero-search input { flex: 1; min-width: 0; padding: .75rem .8rem .75rem 2.5rem; border: 0; background: none; color: var(--text); font: inherit; font-size: 1rem; }
.wk-hero-search input:focus { outline: none; }
.wk-hero-search:focus-within { border-color: var(--ice); }
.wk-cat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: .8rem; }
.wk-cat {
  --c: #35d7ff; position: relative; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .85rem; row-gap: .5rem;
  padding: 1rem 1.05rem; border-radius: 16px; text-decoration: none; color: inherit; overflow: hidden;
  background: linear-gradient(140deg, color-mix(in srgb, var(--c) 10%, var(--ink-1)), var(--ink-1) 60%); border: 1px solid var(--line);
  transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wk-cat:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 55%, transparent); box-shadow: 0 20px 40px -28px var(--c); }
.wk-cat-ico { grid-row: span 2; width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.wk-cat-ico svg { width: 21px; height: 21px; }
.wk-cat-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.wk-cat-text b { font-size: 1rem; }
.wk-cat-text span { color: var(--dim); font-size: .82rem; line-height: 1.4; }
.wk-cat-count { grid-column: 2; font: 700 .7rem var(--mono); color: var(--c); }
.wk-home-grid { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 1.3rem; align-items: start; margin-top: .6rem; }
.wk-page-list { display: flex; flex-direction: column; gap: .5rem; }
.wk-row { --c: #8a94ab; display: flex; align-items: center; gap: .85rem; padding: .8rem .95rem; border-radius: 14px; text-decoration: none; color: inherit; background: var(--ink-1); border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.wk-row:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 5%, var(--ink-1)); }
.wk-row-ico { width: 36px; height: 36px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.wk-row-ico svg { width: 17px; height: 17px; }
.wk-row-text { display: flex; flex-direction: column; gap: .15rem; min-width: 0; flex: 1; }
.wk-row-text b { font-size: .95rem; }
.wk-row-text span { color: var(--dim); font-size: .8rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-row-meta { font: 600 .72rem var(--mono); color: var(--dim); white-space: nowrap; }
.wk-cta { display: flex; flex-direction: column; align-items: flex-start; gap: .55rem; background: linear-gradient(150deg, rgba(53,215,255,.12), var(--ink-1) 70%); }
.wk-cta-ico { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; color: #f5c451; background: rgba(245,196,81,.12); border: 1px solid rgba(245,196,81,.35); }
.wk-cta-ico svg { width: 20px; height: 20px; }
.wk-cta p { font-size: .86rem; }
.wk-feed { display: flex; flex-direction: column; gap: .2rem; }
.wk-feed-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: .4rem; }
.wk-feed-head a { color: var(--ice); font-size: .82rem; font-weight: 700; text-decoration: none; }
.wk-feed-item { display: flex; gap: .65rem; align-items: flex-start; padding: .55rem .45rem; border-radius: 10px; text-decoration: none; color: inherit; font-size: .84rem; line-height: 1.35; }
.wk-feed-item:hover { background: var(--ink-2); }
.wk-feed-item img { border-radius: 7px; image-rendering: pixelated; flex: none; background: var(--ink-2); }
.wk-feed-item em { font-style: normal; color: var(--ice); }
.wk-feed-item small { display: block; color: var(--dim); font-size: .74rem; margin-top: .15rem; }

/* ---------- list / search / category ---------- */
.wk-listhead .wrap { gap: .9rem; }
.wk-listhead::before { background: radial-gradient(55% 90% at 85% 0%, color-mix(in srgb, var(--c) 20%, transparent), transparent 70%), linear-gradient(180deg, #070b18, var(--ink-0)); }
.wk-listhead-row { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; }
.wk-listhead-row h1 { font-size: clamp(1.9rem, 5vw, 2.8rem); }
.wk-listhead-row .intro { margin-top: .3rem; }
.wk-listhead-ico { width: 58px; height: 58px; border-radius: 17px; display: grid; place-items: center; flex: none; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.wk-listhead-ico svg { width: 26px; height: 26px; }
.wk-listhead-new { margin-left: auto; }
.wk-listhead-new svg { width: 14px; height: 14px; }
.wk-list-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 1.3rem; align-items: start; }
.wk-create-hint { display: flex; align-items: center; gap: .7rem; padding: .85rem 1rem; border-radius: 14px; text-decoration: none; color: var(--text); background: rgba(245,196,81,.07); border: 1px dashed rgba(245,196,81,.45); font-size: .9rem; }
.wk-create-hint svg { width: 18px; height: 18px; color: #f5c451; flex: none; }
.wk-create-hint u { color: #f5c451; }
.wk-results { display: flex; flex-direction: column; gap: .6rem; }
.wk-result { --c: #8a94ab; display: flex; flex-direction: column; gap: .4rem; padding: 1rem 1.15rem; border-radius: 14px; text-decoration: none; color: inherit; background: var(--ink-1); border: 1px solid var(--line); border-left: 3px solid var(--c); transition: border-color .15s ease, transform .15s ease; }
.wk-result:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); border-left-color: var(--c); transform: translateX(2px); }
.wk-result-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; }
.wk-result-top b { font-size: 1.05rem; }
.wk-result p { color: var(--dim); font-size: .88rem; line-height: 1.5; }
.wk-result mark { background: rgba(245,196,81,.25); color: #ffe09a; border-radius: 3px; padding: 0 .1rem; }
.wk-result-meta { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; font-size: .76rem; color: var(--dim); }
.wk-cat-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .15rem; padding: 1rem; }
.wk-cat-side > b { margin-bottom: .4rem; }
.wk-cat-side a { --c: #8a94ab; display: flex; align-items: center; gap: .55rem; padding: .45rem .5rem; border-radius: 9px; text-decoration: none; color: var(--text); font-size: .86rem; font-weight: 600; }
.wk-cat-side a:hover, .wk-cat-side a[aria-current="page"] { background: color-mix(in srgb, var(--c) 10%, var(--ink-2)); }
.wk-cat-side a .wk-dim { margin-left: auto; font: 600 .72rem var(--mono); }
.wk-cat-side-ico { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.wk-cat-side-ico svg { width: 13px; height: 13px; }

/* ---------- article page ---------- */
.wk-articlehead .wrap { gap: .85rem; padding-bottom: 1.8rem; }
.wk-articlehead::before { background: radial-gradient(55% 90% at 85% 0%, color-mix(in srgb, var(--c) 18%, transparent), transparent 70%), linear-gradient(180deg, #070b18, var(--ink-0)); }
.wk-articlehead h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.1; }
.wk-byline { display: flex; align-items: center; flex-wrap: wrap; gap: .5rem 1.1rem; color: var(--dim); font-size: .84rem; }
.wk-byline > span { display: inline-flex; align-items: center; gap: .4rem; }
.wk-byline img { border-radius: 5px; image-rendering: pixelated; }
.wk-byline b { color: var(--text); }
.wk-article-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr) 320px; gap: 1.3rem; align-items: start; }
.wk-article-layout.no-toc { grid-template-columns: minmax(0, 1fr) 320px; }
.wk-main { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.wk-toc { position: sticky; top: 88px; }
.wk-toc-card { padding: .9rem .6rem .7rem; border-radius: 16px; background: var(--ink-1); border: 1px solid var(--line); }
.wk-toc-card > b { display: block; padding: 0 .5rem .5rem; font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wk-toc ol { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .1rem; }
.wk-toc a { display: block; padding: .38rem .55rem; border-radius: 8px; color: var(--dim); text-decoration: none; font-size: .84rem; line-height: 1.3; border-left: 2px solid transparent; }
.wk-toc li.lv-3 a { padding-left: 1.2rem; font-size: .8rem; }
.wk-toc a:hover { color: var(--text); background: var(--ink-2); }
.wk-toc a.is-active { color: var(--text); border-left-color: var(--c); background: color-mix(in srgb, var(--c) 8%, var(--ink-2)); }
.wk-article { padding: clamp(1.3rem, 3.5vw, 2.2rem); border-radius: 20px; }
.wk-side { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .9rem; }
.wk-side-card { display: flex; flex-direction: column; gap: .7rem; padding: 1.05rem; }
.wk-side-actions { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; }
.wk-side-actions .btn { justify-content: center; }
.wk-side-actions .btn svg { width: 15px; height: 15px; }
.wk-facts { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .45rem .8rem; margin: 0; font-size: .82rem; }
.wk-facts dt { color: var(--dim); }
.wk-facts dd { margin: 0; text-align: right; overflow-wrap: anywhere; }
.wk-facts a { color: var(--ice); text-decoration: none; }
.wk-contributors { display: flex; flex-direction: column; gap: .4rem; padding-top: .6rem; border-top: 1px solid var(--line); font-size: .78rem; }
.wk-contributors div { display: flex; flex-wrap: wrap; gap: .3rem; }
.wk-contributors img { border-radius: 6px; image-rendering: pixelated; background: var(--ink-2); }
.wk-staff-tools > b { display: flex; align-items: center; gap: .4rem; font-size: .82rem; color: #f5c451; }
.wk-staff-tools > b svg { width: 14px; height: 14px; }
.wk-staff-tools form { margin: 0; }
.wk-staff-tools .btn { width: 100%; justify-content: center; }
.wk-danger { color: #ff9a9d !important; border-color: rgba(255,90,95,.4) !important; }
.wk-side-link { display: block; padding: .35rem 0; color: var(--text); font-size: .86rem; text-decoration: none; border-bottom: 1px solid var(--line); }
.wk-side-link:last-child { border-bottom: 0; }
.wk-side-link:hover { color: var(--ice); }

/* article body typography */
.wk-body { font-size: 1rem; line-height: 1.75; color: #dfe6f5; overflow-wrap: anywhere; }
.wk-body > :first-child { margin-top: 0; }
.wk-body p, .pb-card .wk-body p { margin: 0 0 1rem; color: inherit; font-size: inherit; }
.wk-body h2, .wk-body h3, .wk-body h4 { position: relative; font-family: var(--display); font-weight: 800; color: var(--text); scroll-margin-top: 96px; }
.wk-body h2 { font-size: 1.45rem; margin: 2rem 0 .8rem; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.wk-body h3 { font-size: 1.15rem; margin: 1.5rem 0 .6rem; }
.wk-body h4 { font-size: 1rem; margin: 1.2rem 0 .5rem; }
.wk-anchor { margin-left: .4rem; color: var(--dim); text-decoration: none; opacity: 0; font-weight: 600; transition: opacity .15s ease; }
.wk-body h2:hover .wk-anchor, .wk-body h3:hover .wk-anchor, .wk-body h4:hover .wk-anchor { opacity: .7; }
.wk-body strong { color: #fff; }
.wk-body a { color: var(--ice); text-underline-offset: 3px; }
.wk-body a.wk-link { text-decoration: underline dotted; }
.wk-body a.wk-link.is-missing { color: #ff8a8d; }
.wk-body ul, .wk-body ol { margin: 0 0 1rem; padding-left: 1.5rem; }
.wk-body li { margin: .3rem 0; padding-left: .15rem; }
.wk-body ul li::marker { color: var(--c); }
.wk-body code { font-family: var(--mono); font-size: .86em; padding: .08rem .38rem; border-radius: 6px; background: var(--ink-2); border: 1px solid var(--line); color: #c9f4ff; }
.wk-body pre { margin: 0 0 1rem; padding: .9rem 1rem; border-radius: 12px; background: var(--ink-0); border: 1px solid var(--line); overflow-x: auto; }
.wk-body pre code { padding: 0; border: 0; background: none; color: #dfe6f5; font-size: .84rem; }
.wk-body blockquote { margin: 0 0 1rem; padding: .8rem 1.05rem; border-radius: 0 12px 12px 0; border-left: 3px solid var(--line-strong); background: var(--ink-2); color: var(--dim); }
.wk-body blockquote.wk-callout b { display: block; margin-bottom: .2rem; font: 800 .72rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.wk-body blockquote.is-tip { border-left-color: #5ee29a; background: rgba(94,226,154,.07); color: #c8f5dc; }
.wk-body blockquote.is-tip b { color: #5ee29a; }
.wk-body blockquote.is-note { border-left-color: var(--ice); background: rgba(53,215,255,.07); color: #cdeefb; }
.wk-body blockquote.is-note b { color: var(--ice); }
.wk-body blockquote.is-warning, .wk-body blockquote.is-important { border-left-color: #f5a623; background: rgba(245,166,35,.08); color: #ffe2b0; }
.wk-body blockquote.is-warning b, .wk-body blockquote.is-important b { color: #f5c451; }
.wk-body hr { border: 0; border-top: 1px solid var(--line); margin: 1.8rem 0; }
.wk-body del { color: var(--dim); }
.wk-table-wrap { margin: 0 0 1rem; overflow-x: auto; border-radius: 12px; border: 1px solid var(--line); }
.wk-body table { width: 100%; border-collapse: collapse; font-size: .9rem; }
.wk-body th { text-align: left; padding: .6rem .85rem; background: var(--ink-2); font-weight: 800; border-bottom: 1px solid var(--line); }
.wk-body td { padding: .55rem .85rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.wk-body tr:last-child td { border-bottom: 0; }
.wk-img { display: inline-block; max-width: 100%; margin: .2rem 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); cursor: zoom-in; }
.wk-img img { display: block; max-width: 100%; height: auto; }

/* helpful + comments */
.wk-helpful { display: flex; align-items: center; gap: .9rem; flex-wrap: wrap; padding: .9rem 1.15rem; }
.wk-helpful > span:first-child { font-weight: 700; }
.wk-helpful-btns { display: flex; gap: .4rem; }
.wk-vote { display: inline-flex; align-items: center; gap: .4rem; padding: .45rem .8rem; border-radius: 10px; cursor: pointer; font: 700 .84rem var(--body); color: var(--dim); background: var(--ink-2); border: 1px solid var(--line); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.wk-vote svg { width: 15px; height: 15px; }
.wk-vote span { font: 600 .74rem var(--mono); }
.wk-vote:hover { color: var(--text); border-color: var(--line-strong); }
.wk-vote[data-vote="yes"].is-on { color: #5ee29a; border-color: rgba(94,226,154,.55); background: rgba(94,226,154,.1); }
.wk-vote[data-vote="no"].is-on { color: #ff8a8d; border-color: rgba(255,90,95,.5); background: rgba(255,90,95,.08); }
.wk-helpful-note { font-size: .8rem; margin-left: auto; }
.wk-comments { display: flex; flex-direction: column; gap: .9rem; padding: 1.15rem; scroll-margin-top: 96px; }
.wk-comments-head { display: flex; align-items: center; gap: .5rem; }
.wk-comment-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .8rem; }
.wk-comment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .75rem; align-items: start; }
.wk-comment img { border-radius: 8px; image-rendering: pixelated; background: var(--ink-2); }
.wk-comment-meta { display: flex; align-items: center; gap: .55rem; flex-wrap: wrap; font-size: .84rem; }
.wk-comment-meta span { color: var(--dim); font-size: .76rem; }
.wk-comment p { margin: .2rem 0 0; white-space: pre-wrap; font-size: .9rem; color: var(--text); }
.wk-comment.is-hidden { opacity: .55; }
.wk-comment-action { margin: 0; }
.wk-comment-form { display: flex; flex-direction: column; gap: .5rem; align-items: flex-end; }
.wk-comment-form textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: .7rem .85rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: .9rem; }
.wk-comment-form textarea:focus { outline: none; border-color: var(--ice); }

/* ---------- editor ---------- */
.wk-edithead { border-bottom: 1px solid var(--line); background: linear-gradient(180deg, #070b18, var(--ink-0)); }
.wk-edithead .wrap { display: flex; flex-direction: column; gap: .5rem; padding-block: 1.6rem 1.3rem; }
.wk-edithead h1 { font-family: var(--display); font-weight: 800; font-size: clamp(1.6rem, 4vw, 2.2rem); }
.wk-edithead p a { color: var(--ice); }
.wk-edit-layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1rem; align-items: start; }
.wk-editor { display: flex; flex-direction: column; gap: .8rem; padding: 1.1rem; }
.wk-edit-meta { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: .7rem; }
.wk-field { display: flex; flex-direction: column; gap: .35rem; font-size: .76rem; font-weight: 700; color: var(--dim); }
.wk-field em { font-style: normal; font-weight: 500; }
.wk-field input, .wk-field select { padding: .6rem .75rem; border-radius: 10px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: .92rem; font-weight: 500; }
.wk-field-title input { font-family: var(--display); font-weight: 800; font-size: 1.05rem; }
.wk-field input:focus, .wk-field select:focus { outline: none; border-color: var(--ice); }
.wk-toolbar { display: flex; align-items: center; gap: .15rem; flex-wrap: wrap; padding: .3rem; border-radius: 11px; background: var(--ink-0); border: 1px solid var(--line); }
.wk-tool { width: 32px; height: 32px; display: grid; place-items: center; border: 0; border-radius: 8px; background: none; color: var(--dim); cursor: pointer; }
.wk-tool svg { width: 16px; height: 16px; }
.wk-tool:hover { color: var(--text); background: var(--ink-2); }
.wk-tool-sep { width: 1px; height: 20px; margin: 0 .2rem; background: var(--line-strong); }
.wk-tool-status { margin-left: .4rem; font-size: .76rem; color: var(--dim); }
.wk-view-tabs { display: none; margin-left: auto; gap: .2rem; }
.wk-view-tabs button { padding: .35rem .7rem; border-radius: 8px; border: 0; background: none; color: var(--dim); font: 700 .78rem var(--body); cursor: pointer; }
.wk-view-tabs button.is-active { color: #fff; background: linear-gradient(90deg, #00b8e6, #0047ff); }
.wk-write-area { position: relative; }
.wk-write-area textarea {
  width: 100%; box-sizing: border-box; min-height: 520px; resize: vertical; padding: .9rem 1rem; border-radius: 12px;
  border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: 400 .9rem/1.65 var(--mono); tab-size: 2;
}
.wk-write-area textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.1); }
.wk-drop-hint { position: absolute; inset: 0; display: none; place-items: center; border-radius: 12px; border: 2px dashed var(--ice); background: rgba(5,12,28,.85); color: var(--ice); font-weight: 800; pointer-events: none; }
.wk-write-area.is-drop .wk-drop-hint { display: grid; }
.wk-edit-foot { display: flex; align-items: flex-end; gap: .8rem; flex-wrap: wrap; }
.wk-field-note { flex: 1 1 260px; }
.wk-edit-buttons { display: flex; gap: .5rem; }
.wk-edit-legal { margin: 0; font-size: .76rem; }
.wk-preview { position: sticky; top: 88px; display: flex; flex-direction: column; gap: .7rem; padding: 1.3rem 1.5rem; max-height: calc(100vh - 112px); overflow-y: auto; }
.wk-preview-head { display: flex; justify-content: space-between; align-items: baseline; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; font-family: var(--mono); }
.wk-preview-head b { color: var(--dim); }
.wk-preview-title { font-family: var(--display); font-weight: 800; font-size: 1.8rem; line-height: 1.15; padding-bottom: .6rem; border-bottom: 1px solid var(--line); }
.wk-cheats { margin-top: .5rem; padding-top: .7rem; border-top: 1px solid var(--line); font-size: .82rem; }
.wk-cheats summary { cursor: pointer; font-weight: 700; color: var(--ice); }
.wk-cheats table { width: 100%; margin-top: .6rem; border-collapse: collapse; }
.wk-cheats td { padding: .3rem .4rem; border-bottom: 1px solid var(--line); color: var(--dim); }
.wk-cheats code { font-family: var(--mono); font-size: .78rem; color: #c9f4ff; }

/* ---------- history / revision ---------- */
.wk-history { display: flex; flex-direction: column; padding: .5rem; }
.wk-day { padding: .9rem .7rem .4rem; font: 700 .68rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wk-hist-row { display: flex; align-items: center; gap: .85rem; padding: .75rem .7rem; border-radius: 12px; text-decoration: none; color: inherit; }
.wk-hist-row + .wk-hist-row { border-top: 1px solid var(--line); }
.wk-hist-row.is-link:hover { background: var(--ink-2); }
.wk-hist-row.is-current { background: rgba(53,215,255,.04); }
.wk-hist-row img { border-radius: 8px; image-rendering: pixelated; background: var(--ink-2); flex: none; }
.wk-hist-main { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: .2rem; }
.wk-hist-top { display: flex; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .9rem; }
.wk-hist-top .wk-dim { font-size: .78rem; }
.wk-hist-note { color: var(--dim); font-size: .82rem; overflow-wrap: anywhere; }
.wk-delta { font: 700 .76rem var(--mono); color: var(--dim); white-space: nowrap; }
.wk-delta.is-add { color: #5ee29a; }
.wk-delta.is-del { color: #ff8a8d; }
.wk-hist-actions { display: flex; gap: .4rem; flex-wrap: wrap; }
.wk-hist-actions form { margin: 0; }
.wk-rev-banner { display: flex; align-items: center; gap: .75rem; flex-wrap: wrap; margin-top: .4rem; padding: .75rem .9rem; border-radius: 12px; font-size: .88rem; background: rgba(245,166,35,.07); border: 1px solid rgba(245,166,35,.32); }
.wk-rev-banner.is-current { background: rgba(53,215,255,.06); border-color: rgba(53,215,255,.3); }
.wk-rev-banner img { border-radius: 7px; image-rendering: pixelated; }
.wk-rev-actions { display: flex; gap: .45rem; margin-left: auto; flex-wrap: wrap; }
.wk-rev-actions form { margin: 0; }
.wk-tabs { display: inline-flex; gap: .25rem; padding: .25rem; width: fit-content; border-radius: 12px; background: var(--ink-0); border: 1px solid var(--line); }
.wk-tabs button { padding: .45rem .9rem; border: 0; border-radius: 9px; background: none; color: var(--dim); font: 700 .84rem var(--body); cursor: pointer; }
.wk-tabs button.is-active { color: #fff; background: linear-gradient(90deg, #00b8e6, #0047ff); }
.wk-diff { padding: .6rem 0; overflow-x: auto; }
.wk-diff-title { padding: .4rem 1rem .8rem; font-size: .88rem; }
.wk-diff-title del { color: #ff8a8d; }
.wk-diff-title ins { color: #5ee29a; text-decoration: none; }
.wk-diff-line { display: flex; gap: .6rem; padding: .08rem 1rem; font-size: .82rem; line-height: 1.6; }
.wk-diff-line code { font-family: var(--mono); white-space: pre-wrap; overflow-wrap: anywhere; color: #b9c3d9; }
.wk-diff-mark { width: 1ch; flex: none; font-family: var(--mono); font-weight: 800; }
.wk-diff-line.is-add { background: rgba(94,226,154,.1); }
.wk-diff-line.is-add code, .wk-diff-line.is-add .wk-diff-mark { color: #8ff0bd; }
.wk-diff-line.is-del { background: rgba(255,90,95,.1); }
.wk-diff-line.is-del code, .wk-diff-line.is-del .wk-diff-mark { color: #ffb3b5; text-decoration: line-through; text-decoration-color: rgba(255,90,95,.5); }
.wk-diff-line.is-gap { justify-content: center; padding: .35rem; color: var(--dim); font-size: .74rem; font-style: italic; background: var(--ink-2); margin: .3rem 0; }
.wk-diff-line.is-note { color: var(--dim); }

/* message page */
.wk-message { max-width: 560px; margin: 2rem auto; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .7rem; padding: 2.2rem 1.6rem; }
.wk-message-ico { width: 54px; height: 54px; border-radius: 16px; display: grid; place-items: center; color: var(--ice); background: rgba(53,215,255,.1); border: 1px solid rgba(53,215,255,.3); }
.wk-message-ico svg { width: 24px; height: 24px; }
.wk-message h1 { font-family: var(--display); font-weight: 800; font-size: 1.5rem; }
.wk-message-actions { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-top: .4rem; }

/* ---------- responsive ---------- */
@media (max-width: 1180px) {
  .wk-article-layout { grid-template-columns: minmax(0, 1fr) 300px; }
  .wk-toc { display: none; }
}
@media (max-width: 1000px) {
  .wk-edit-layout { grid-template-columns: minmax(0, 1fr); }
  .wk-preview { display: none; position: static; max-height: none; }
  .wk-edit-layout.show-preview .wk-preview { display: flex; }
  .wk-edit-layout.show-preview .wk-editor .wk-write-area { display: none; }
  .wk-view-tabs { display: flex; }
}
@media (max-width: 900px) {
  .wk-home-grid, .wk-list-layout, .wk-article-layout, .wk-article-layout.no-toc { grid-template-columns: minmax(0, 1fr); }
  .wk-side, .wk-cat-side { position: static; }
}
@media (max-width: 600px) {
  .wk-edit-meta { grid-template-columns: minmax(0, 1fr); }
  .wk-write-area textarea { min-height: 380px; }
  .wk-hist-row { flex-wrap: wrap; }
  .wk-helpful-note { margin-left: 0; }
}

/* polish */
.wk-side-actions .btn { white-space: nowrap; padding-inline: .6rem; font-size: .86rem; }
.wk-tool-text { font: 800 .74rem var(--mono); letter-spacing: .02em; }

/* ========== wider wiki ========== */
.is-wiki .wrap { max-width: 1520px; }
.is-wiki .wk-cat-grid { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* ========== wiki header (replaces the site nav on /wiki) ========== */
.wk-topbar > .wrap { gap: .65rem; }
.wk-topbar .brand.wk-brand { margin-right: .35rem; }
.wk-brand .brand-sub { color: var(--ice); letter-spacing: .42em; }
.wk-nav-search { position: relative; flex: 1 1 220px; min-width: 150px; max-width: 360px; display: flex; align-items: center; }
.wk-nav-search > svg { position: absolute; left: .75rem; width: 15px; height: 15px; color: var(--dim); pointer-events: none; }
.wk-nav-search input {
  width: 100%; height: 38px; box-sizing: border-box; padding: 0 2.3rem 0 2.15rem; border-radius: 11px; border: 1px solid var(--line);
  background: color-mix(in srgb, var(--ink-1) 75%, transparent); color: var(--text); font: inherit; font-size: .86rem;
  transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}
.wk-nav-search input::-webkit-search-cancel-button { display: none; }
.wk-nav-search input:hover { border-color: var(--line-strong); }
.wk-nav-search input:focus { outline: none; border-color: var(--ice); background: var(--ink-1); box-shadow: 0 0 0 3px rgba(53,215,255,.12); }
.wk-nav-search kbd { position: absolute; right: .55rem; padding: .05rem .42rem; border-radius: 6px; font: 700 .68rem var(--mono); color: var(--dim); background: var(--ink-2); border: 1px solid var(--line-strong); pointer-events: none; }
.wk-nav-search input:focus + kbd { opacity: 0; }
.wk-topbar .navlinks.wk-navlinks { margin-inline: .2rem auto; }
.navlinks .wk-cat-menu .wk-menu-ico { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 35%, transparent); }
.navlinks .wk-cat-menu .wk-menu-ico svg { width: 15px; height: 15px; }
.wk-nav-site {
  width: 38px; height: 38px; flex: none; display: grid; place-items: center; border-radius: 10px; color: var(--dim);
  background: var(--ink-1); border: 1px solid var(--line-strong); transition: color .15s ease, border-color .15s ease;
}
.wk-nav-site svg { width: 17px; height: 17px; }
.wk-nav-site:hover { color: var(--text); border-color: var(--ice); }
.wk-nav-new { height: 38px; padding-inline: .9rem; border-radius: 10px; white-space: nowrap; flex: none; }
.wk-nav-new svg { width: 15px; height: 15px; }
.wk-mobile-nav .wk-mobile-search { grid-column: 1 / -1; max-width: none; }
.wk-mobile-nav .wk-mobile-wide { grid-column: 1 / -1; }
.wk-mobile-nav .wrap > a[href="/wiki/deaths"] svg { color: #ff6b70; }
@media (max-width: 1320px) {
  .wk-topbar .navlinks a, .wk-topbar .nav-group-btn { padding-inline: .6rem; }
  .wk-topbar .navlinks > a > svg, .wk-topbar .nav-group-btn > svg:first-child { display: none; }
}
@media (max-width: 1100px) {
  .wk-topbar .navlinks { display: none; }
  .wk-topbar .nav-toggle { display: grid; }
  .wk-nav-search { max-width: none; }
  .wk-topbar .mobile-nav:not([hidden]) { display: block !important; }
}
@media (max-width: 720px) {
  .wk-topbar .wk-nav-search:not(.wk-mobile-search) { display: none; }
  .wk-topbar .brand.wk-brand { margin-right: auto; }
  .wk-nav-new span { display: none; }
  .wk-nav-new { width: 38px; padding: 0; justify-content: center; }
}
@media (min-width: 721px) { .wk-mobile-nav .wk-mobile-search { display: none; } }
/* phones: Main site + New page live in the menu panel instead */
@media (max-width: 560px) { .wk-nav-site, .wk-nav-new { display: none; } }

/* ========== resizable images ========== */
.wk-body .wk-img { vertical-align: top; }
.wk-body .wk-img img { width: 100%; }
.wk-body .wk-img.is-left { float: left; margin: .35rem 1.3rem .9rem 0; max-width: 60%; }
.wk-body .wk-img.is-right { float: right; margin: .35rem 0 .9rem 1.3rem; max-width: 60%; }
.wk-body .wk-img.is-left:not([style]), .wk-body .wk-img.is-right:not([style]) { width: 40%; }
.wk-body .wk-img.is-center { display: block; margin: .4rem auto 1rem; width: fit-content; }
/* headings / tables sit beside a floated image (their own box shrinks) instead of jumping below it */
.wk-body h2, .wk-body h3, .wk-body h4, .wk-body .wk-table-wrap, .wk-body blockquote, .wk-body pre { overflow: hidden; }
.wk-body hr { clear: both; }
.wk-body::after { content: ""; display: block; clear: both; }
/* editor preview: handle + size bar */
.wk-img.is-editable { position: relative; cursor: default; overflow: visible; }
.wk-img.is-editable img { border-radius: 11px; }
.wk-img.is-editable:hover, .wk-img.is-resizing { outline: 2px solid var(--ice); outline-offset: 2px; }
.wk-img-bar {
  position: absolute; top: .45rem; left: 50%; transform: translateX(-50%); z-index: 2; display: flex; align-items: center; gap: .1rem;
  padding: .2rem; border-radius: 10px; background: rgba(5,10,24,.92); border: 1px solid var(--line-strong); box-shadow: 0 10px 25px -10px #000;
  opacity: 0; pointer-events: none; transition: opacity .15s ease; white-space: nowrap;
}
.wk-img.is-editable:hover .wk-img-bar { opacity: 1; pointer-events: auto; }
.wk-img.is-resizing .wk-img-bar { opacity: 0; }
.wk-img-bar button { height: 26px; min-width: 26px; padding: 0 .4rem; border: 0; border-radius: 7px; background: none; color: var(--dim); font: 700 .7rem var(--mono); cursor: pointer; display: grid; place-items: center; }
.wk-img-bar button svg { width: 15px; height: 15px; }
.wk-img-bar button:hover { color: var(--text); background: var(--ink-2); }
.wk-img-bar button.is-on { color: #fff; background: linear-gradient(90deg, #00b8e6, #0047ff); }
.wk-img-bar i { width: 1px; height: 16px; margin: 0 .2rem; background: var(--line-strong); }
.wk-img-handle {
  position: absolute; right: -7px; bottom: -7px; z-index: 2; width: 16px; height: 16px; border-radius: 5px; cursor: nwse-resize; touch-action: none;
  background: var(--ice); border: 2px solid var(--ink-0); box-shadow: 0 0 0 1px var(--ice); opacity: 0; transition: opacity .15s ease;
}
.wk-img.is-right .wk-img-handle { right: auto; left: -7px; cursor: nesw-resize; }
.wk-img.is-right .wk-img-bar { left: auto; right: .45rem; transform: none; }
.wk-img.is-left .wk-img-bar { left: .45rem; transform: none; }
.wk-img.is-editable:hover .wk-img-handle, .wk-img.is-resizing .wk-img-handle { opacity: 1; }
.wk-img-size {
  position: absolute; right: .45rem; bottom: .45rem; z-index: 1; padding: .1rem .4rem; border-radius: 6px; font: 700 .68rem var(--mono);
  color: #fff; background: rgba(5,10,24,.85); opacity: 0; transition: opacity .15s ease; pointer-events: none;
}
.wk-img.is-editable:hover .wk-img-size, .wk-img.is-resizing .wk-img-size { opacity: 1; }
@media (max-width: 600px) {
  .wk-body .wk-img.is-left, .wk-body .wk-img.is-right { float: none; display: block; width: auto !important; max-width: 100%; margin: .4rem 0 1rem; }
}

/* ========== recent deaths ========== */
.wk-cat-deaths { background: linear-gradient(140deg, rgba(255,90,95,.13), var(--ink-1) 62%); }
.wk-deathhead::before { background: radial-gradient(55% 90% at 85% 0%, rgba(255,90,95,.2), transparent 70%), linear-gradient(180deg, #120a12, var(--ink-0)); }
.wk-chip-red i, .wk-chip-green i { width: 7px; height: 7px; border-radius: 50%; background: #ff5a5f; }
.wk-chip-green i { background: #5ee29a; }
.wk-death-tabs { display: inline-flex; gap: .25rem; padding: .25rem; width: fit-content; border-radius: 12px; background: var(--ink-1); border: 1px solid var(--line); }
.wk-death-tabs a { display: inline-flex; align-items: center; gap: .45rem; padding: .48rem .9rem; border-radius: 9px; color: var(--dim); text-decoration: none; font-weight: 700; font-size: .86rem; }
.wk-death-tabs a span { font: 700 .7rem var(--mono); padding: .05rem .4rem; border-radius: 999px; background: var(--ink-2); }
.wk-death-tabs a:hover { color: var(--text); }
.wk-death-tabs a[aria-current="page"] { color: #fff; background: var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong); }
.wk-death-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: .9rem; }
.wk-death-card {
  --s: #ff5a5f; position: relative; display: flex; flex-direction: column; gap: .8rem; padding: 1.05rem 1.1rem 1rem; border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit; background: linear-gradient(160deg, color-mix(in srgb, var(--s) 9%, var(--ink-1)), var(--ink-1) 55%);
  border: 1px solid var(--line); transition: transform .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.wk-death-card.is-revived { --s: #5ee29a; }
.wk-death-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--s); opacity: .8; }
.wk-death-card:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--s) 50%, transparent); box-shadow: 0 22px 40px -28px var(--s); }
.wk-death-card.is-hidden { opacity: .55; }
.wk-death-card-top { display: flex; align-items: center; gap: .8rem; }
.wk-death-head { width: 52px; height: 52px; border-radius: 12px; image-rendering: pixelated; flex: none; background: var(--ink-2); }
.wk-death-card.is-eliminated .wk-death-head { filter: grayscale(.85) brightness(.8); }
.wk-death-who { display: flex; flex-direction: column; gap: .2rem; min-width: 0; flex: 1; }
.wk-death-who b { font-size: 1.05rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-rank { width: fit-content; font-size: .76rem; font-weight: 800; background: linear-gradient(90deg, var(--rank-start), var(--rank-end)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wk-death-status { display: inline-flex; align-items: center; gap: .35rem; flex: none; padding: .2rem .55rem; border-radius: 999px; font: 700 .66rem var(--mono); letter-spacing: .05em; text-transform: uppercase; color: #ff7b7f; background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.35); }
.wk-death-status i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.wk-death-status.is-revived { color: #5ee29a; background: rgba(94,226,154,.1); border-color: rgba(94,226,154,.35); }
.wk-death-cause { margin: 0; font-size: .95rem; font-weight: 600; color: #e9eef9; line-height: 1.4; }
.wk-death-mini { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; }
.wk-death-mini span { display: flex; flex-direction: column; gap: .1rem; padding: .5rem .6rem; border-radius: 10px; background: color-mix(in srgb, var(--ink-0) 60%, transparent); border: 1px solid var(--line); font-size: .7rem; color: var(--dim); }
.wk-death-mini b { font: 800 .95rem var(--display); color: var(--text); }
.wk-death-foot { display: flex; align-items: center; gap: .7rem; flex-wrap: wrap; font-size: .76rem; color: var(--dim); }
.wk-death-back { color: #5ee29a; font-weight: 700; }
.wk-death-empty { gap: .6rem; }
.wk-death-empty-ico { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; color: #ff6b70; background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.3); }
.wk-death-empty-ico svg { width: 24px; height: 24px; }
.wk-pager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; font-size: .86rem; color: var(--dim); }
.wk-pager a { padding: .5rem .9rem; border-radius: 10px; color: var(--text); text-decoration: none; font-weight: 700; background: var(--ink-1); border: 1px solid var(--line); }
.wk-pager a:hover { border-color: var(--ice); }

/* death page */
.wk-death-hero::before { background: radial-gradient(50% 100% at 20% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 70%), linear-gradient(180deg, #0d0a14, var(--ink-0)); }
.wk-death-hero .wrap { gap: 1rem; padding-bottom: 1.8rem; }
.wk-death-hero-row { display: flex; align-items: center; gap: 1.6rem; }
.wk-death-skin { flex: none; width: 132px; height: 212px; display: grid; place-items: end center; border-radius: 20px; background: radial-gradient(70% 55% at 50% 100%, color-mix(in srgb, var(--c) 30%, transparent), transparent 75%), var(--ink-1); border: 1px solid var(--line); }
.wk-death-skin img { width: 88px; height: 176px; image-rendering: pixelated; margin-bottom: 16px; filter: drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.wk-death-hero.is-eliminated .wk-death-skin img { filter: grayscale(.9) brightness(.75) drop-shadow(0 10px 14px rgba(0,0,0,.6)); }
.wk-death-hero-text { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.wk-death-hero-tags { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; }
.wk-death-hero h1 { font-size: clamp(2rem, 5vw, 3rem); line-height: 1.05; overflow-wrap: anywhere; }
.wk-death-quote { margin: 0; font-family: var(--display); font-weight: 700; font-size: clamp(1.1rem, 2.4vw, 1.45rem); color: #f1f4fb; }
.wk-death-hero .wk-byline svg { width: 15px; height: 15px; color: var(--c); }
.wk-revived-banner { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 14px; background: rgba(94,226,154,.08); border: 1px solid rgba(94,226,154,.35); }
.wk-revived-banner > div { display: flex; flex-direction: column; gap: .15rem; font-size: .88rem; color: #c8f5dc; }
.wk-revived-banner b { color: #5ee29a; font-size: .95rem; }
.wk-revived-ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; color: #5ee29a; background: rgba(94,226,154,.12); }
.wk-revived-ico svg { width: 19px; height: 19px; }
.wk-death-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 1.3rem; align-items: start; }
.wk-death-section { display: flex; flex-direction: column; gap: 1rem; padding: 1.25rem 1.3rem; }
.wk-death-section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.wk-death-section-head h2 { font-family: var(--display); font-weight: 800; font-size: 1.15rem; }
.wk-death-section-head .wk-dim { font-size: .76rem; }
.wk-death-pending { margin: 0; }
.wk-stat-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: .6rem; }
.wk-stat { display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto; column-gap: .7rem; row-gap: .1rem; align-items: center; padding: .75rem .85rem; border-radius: 13px; background: var(--ink-2); border: 1px solid var(--line); }
.wk-stat-ico { grid-row: span 2; width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: var(--ice); background: rgba(53,215,255,.09); }
.wk-stat-ico svg { width: 17px; height: 17px; }
.wk-stat b { font: 800 1.15rem var(--display); color: var(--text); line-height: 1.1; }
.wk-stat span:last-child { font-size: .74rem; color: var(--dim); }
.wk-favs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: .6rem; }
.wk-favs > div { display: flex; flex-direction: column; gap: .15rem; padding: .8rem .9rem; border-radius: 13px; border: 1px dashed var(--line-strong); }
.wk-favs span { font: 700 .66rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--dim); }
.wk-favs b { font-size: 1rem; }
.wk-favs em { font-style: normal; font-size: .78rem; color: var(--dim); }
.wk-death-lives { display: flex; flex-direction: column; }
.wk-death-lives a { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem .2rem; border-bottom: 1px solid var(--line); color: var(--text); text-decoration: none; font-size: .9rem; }
.wk-death-lives a:last-child { border-bottom: 0; }
.wk-death-lives a:hover span { color: var(--ice); }
.wk-death-lives em { font-style: normal; color: var(--dim); font-size: .8rem; white-space: nowrap; }
.wk-tps { font-weight: 800; }
.wk-tps.is-good { color: #5ee29a; }
.wk-tps.is-mid { color: #f5c451; }
.wk-tps.is-bad { color: #ff7b7f; }
.wk-death-side-list { display: flex; flex-direction: column; gap: .15rem; }
.wk-death-side-list a { display: flex; align-items: center; gap: .65rem; padding: .45rem .4rem; border-radius: 10px; color: inherit; text-decoration: none; }
.wk-death-side-list a:hover { background: var(--ink-2); }
.wk-death-side-list img { border-radius: 7px; image-rendering: pixelated; flex: none; }
.wk-death-side-list span { display: flex; flex-direction: column; min-width: 0; flex: 1; font-size: .86rem; }
.wk-death-side-list small { color: var(--dim); font-size: .74rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-death-side-list i { width: 8px; height: 8px; border-radius: 50%; flex: none; background: #ff5a5f; }
.wk-death-side-list i.is-revived { background: #5ee29a; }
.wk-side-more { color: var(--ice); font-size: .82rem; font-weight: 700; text-decoration: none; }
@media (max-width: 900px) {
  .wk-death-layout { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 560px) {
  .wk-death-hero-row { flex-direction: column; align-items: flex-start; gap: 1rem; }
  .wk-death-skin { width: 104px; height: 168px; }
  .wk-death-skin img { width: 68px; height: 136px; margin-bottom: 14px; }
  .wk-death-grid { grid-template-columns: minmax(0, 1fr); }
}

/* death page: the player's own description */
.wk-story { position: relative; display: flex; flex-direction: column; gap: .85rem; padding: 1.2rem 1.3rem; overflow: hidden;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 10%, var(--ink-1)), var(--ink-1) 60%); border-color: color-mix(in srgb, var(--c) 30%, var(--line)); }
.wk-story::before { content: "\201C"; position: absolute; right: 1rem; top: -1.4rem; font: 800 7rem/1 var(--display); color: color-mix(in srgb, var(--c) 18%, transparent); pointer-events: none; }
.wk-story-head { display: flex; align-items: center; gap: .7rem; }
.wk-story-head img { border-radius: 9px; image-rendering: pixelated; flex: none; }
.wk-story-head div { display: flex; flex-direction: column; gap: .1rem; }
.wk-story-head b { font-size: 1rem; }
.wk-story-head span { font-size: .78rem; color: var(--dim); }
.wk-story-text { margin: 0; font-size: 1.02rem; line-height: 1.7; color: #e9eef9; white-space: pre-wrap; overflow-wrap: anywhere; }
.wk-story-edit summary { width: fit-content; cursor: pointer; font-weight: 700; font-size: .84rem; color: var(--ice); list-style: none; }
.wk-story-edit summary::-webkit-details-marker { display: none; }
.wk-story-edit[open] summary { margin-bottom: .6rem; }
.wk-story-edit form { display: flex; flex-direction: column; gap: .5rem; }
.wk-story-edit textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 110px; padding: .75rem .85rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: .94rem; line-height: 1.6; }
.wk-story-edit textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.1); }
.wk-story-actions { display: flex; align-items: center; justify-content: flex-end; gap: .5rem; }
.wk-story-actions .wk-dim { margin-right: auto; font: 600 .74rem var(--mono); }
.wk-story-note { margin: .4rem 0 0; font-size: .76rem; }

/* death page: wills */
.wk-wills .wk-death-section-head code { font-family: var(--mono); font-size: .76rem; color: #c9f4ff; }
.wk-wills-note { display: flex; align-items: flex-start; gap: .6rem; padding: .75rem .9rem; border-radius: 12px; font-size: .88rem; color: var(--dim); background: var(--ink-2); border: 1px solid var(--line); }
.wk-wills-note svg { width: 17px; height: 17px; flex: none; margin-top: .1rem; color: #f5c451; }
.wk-wills-note b { color: var(--text); }
.wk-will-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .6rem; }
.wk-will-list.is-private { opacity: .75; }
.wk-will { display: flex; gap: .85rem; align-items: flex-start; padding: .9rem 1rem; border-radius: 14px; background: linear-gradient(150deg, rgba(245,196,81,.07), var(--ink-2) 55%); border: 1px solid rgba(245,196,81,.22); }
.wk-will-no { flex: none; min-width: 38px; height: 30px; padding: 0 .45rem; display: grid; place-items: center; border-radius: 9px; font: 800 .8rem var(--mono); color: #f5c451; background: rgba(245,196,81,.1); border: 1px solid rgba(245,196,81,.35); }
.wk-will p { margin: 0; font-size: .98rem; line-height: 1.55; color: #f3efe2; overflow-wrap: anywhere; }
.wk-will small { display: block; margin-top: .3rem; font-size: .74rem; color: var(--dim); }

/* deaths: page creator, add-your-own bar, wills countdown */
.wk-creator { display: flex; align-items: center; gap: .7rem; }
.wk-creator img { border-radius: 9px; image-rendering: pixelated; flex: none; background: var(--ink-2); }
.wk-creator > span:last-child { display: flex; flex-direction: column; gap: .1rem; font-size: .88rem; min-width: 0; }
.wk-creator small { color: var(--dim); font-size: .76rem; }
.wk-creator-auto { width: 32px; height: 32px; flex: none; border-radius: 9px; display: grid; place-items: center; color: #ff6b70; background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.3); }
.wk-creator-auto svg { width: 16px; height: 16px; }
.wk-death-add { display: flex; align-items: center; gap: .8rem 1rem; flex-wrap: wrap; padding: .85rem 1rem; border-radius: 14px; background: var(--ink-1); border: 1px solid var(--line); }
.wk-death-add > div { display: flex; flex-direction: column; gap: .15rem; flex: 1 1 320px; font-size: .86rem; }
.wk-death-add > div span { color: var(--dim); }
.wk-death-add form { margin: 0; }
.wk-death-add .btn svg { width: 15px; height: 15px; }
.wk-death-add-staff { display: flex; gap: .4rem; }
.wk-death-add-staff input { width: 150px; padding: .45rem .7rem; border-radius: 9px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: .84rem; }
.wk-death-add-staff input:focus { outline: none; border-color: var(--ice); }
.wk-wills-note.is-pending svg { color: var(--ice); }

/* wills: filtered + staff delete */
.wk-will .wk-will-del { margin: 0 0 0 auto; align-self: center; }
.wk-will > div { flex: 1; min-width: 0; }
.wk-will.is-filtered { background: rgba(255,90,95,.06); border-color: rgba(255,90,95,.35); }
.wk-will.is-filtered p { color: #ffb3b5; }
.wk-tag.wk-tag-red { color: #ff7b7f; border-color: rgba(255,90,95,.4); background: rgba(255,90,95,.08); margin-right: .35rem; }
.wk-wills-note.is-filtered svg { color: #ff7b7f; }
.wk-will-del { display: flex; align-items: center; }
.wk-will-del [hidden] { display: none !important; }
.wk-will-confirm { display: inline-flex; align-items: center; gap: .4rem; padding: .3rem .3rem .3rem .7rem; border-radius: 11px; background: rgba(255,90,95,.08); border: 1px solid rgba(255,90,95,.35); animation: tk-bulk-in .15s ease; white-space: nowrap; }
.wk-will-confirm > span { display: flex; flex-direction: column; font-size: .8rem; font-weight: 700; color: #ff9a9d; line-height: 1.2; }
.wk-will-confirm em { font-style: normal; font-weight: 500; font-size: .7rem; color: var(--dim); }
.wk-will-yes { color: #fff; background: #e5484d; border: 1px solid #e5484d; }
.wk-will-yes:hover { background: #ff5a5f; }
@keyframes tk-bulk-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

/* new death page */
.wk-dnew { max-width: 640px; margin: 0 auto; display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; }
.wk-dnew-head { display: flex; gap: .85rem; align-items: flex-start; }
.wk-dnew-head > div { display: flex; flex-direction: column; gap: .2rem; font-size: .9rem; }
.wk-dnew-head > div span { color: var(--dim); }
.wk-dnew-ico { width: 44px; height: 44px; flex: none; border-radius: 13px; display: grid; place-items: center; color: #ff6b70; background: rgba(255,90,95,.1); border: 1px solid rgba(255,90,95,.3); }
.wk-dnew-ico svg { width: 21px; height: 21px; }
.wk-dnew-input { display: flex; align-items: center; gap: .7rem; padding: .45rem .55rem; border-radius: 14px; background: var(--ink-0); border: 1px solid var(--line-strong); }
.wk-dnew-input:focus-within { border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.1); }
.wk-dnew-input img { border-radius: 9px; image-rendering: pixelated; flex: none; }
.wk-dnew-input input { flex: 1; min-width: 0; border: 0; background: none; color: var(--text); font: 700 1.1rem var(--body); }
.wk-dnew-input input:focus { outline: none; }
.wk-dnew-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; }
.wk-dnew-checks li { display: flex; align-items: center; gap: .75rem; padding: .7rem .85rem; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.wk-dnew-checks li > span:last-child { display: flex; flex-direction: column; gap: .1rem; font-size: .9rem; }
.wk-dnew-checks small { color: var(--dim); font-size: .76rem; }
.wk-dnew-mark { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; color: transparent; border: 2px solid var(--line-strong); transition: all .15s ease; }
.wk-dnew-mark svg { width: 14px; height: 14px; }
.wk-dnew-checks li.is-ok { border-color: rgba(94,226,154,.4); background: rgba(94,226,154,.06); }
.wk-dnew-checks li.is-ok .wk-dnew-mark { color: #04140b; background: #5ee29a; border-color: #5ee29a; }
.wk-dnew-checks li.is-no { border-color: rgba(255,90,95,.35); background: rgba(255,90,95,.05); }
.wk-dnew-checks li.is-no .wk-dnew-mark { border-color: #ff5a5f; position: relative; }
.wk-dnew-checks li.is-no .wk-dnew-mark::before { content: "\00d7"; color: #ff5a5f; font: 800 1rem/1 var(--body); }
.wk-dnew-checks li.is-no .wk-dnew-mark svg { display: none; }
.wk-dnew-msg { margin: 0; min-height: 1.2rem; font-size: .88rem; color: var(--dim); }
.wk-dnew-msg.is-ok { color: #8ff0bd; }
.wk-dnew-msg.is-warn { color: #ffcf7a; }
.wk-dnew-msg a { color: var(--ice); font-weight: 700; }
.wk-dnew-foot { display: flex; justify-content: flex-end; gap: .5rem; }

/* early-alpha banner (under the header) */
.wk-alpha-banner { gap: .7rem; }
.wk-alpha-pill { flex: none; padding: .12rem .55rem; border-radius: 999px; font: 800 .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: #1b1300; background: linear-gradient(90deg, #f5c451, #ff9f43); }

/* death page: empty story prompt */
.wk-story-empty { text-decoration: none; color: inherit; border-style: dashed; transition: border-color .15s ease, background-color .15s ease; }
.wk-story-empty:hover { border-color: color-mix(in srgb, var(--c) 55%, transparent); }
.wk-story-empty::before { display: none; }
.wk-story-plus { width: 34px; height: 34px; flex: none; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.wk-story-plus svg { width: 16px; height: 16px; }

/* death edit page */
.wk-dedit { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 1.1rem; padding: 1.4rem 1.5rem; }
.wk-dedit-who { display: flex; align-items: center; gap: .8rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.wk-dedit-who img { border-radius: 10px; image-rendering: pixelated; }
.wk-dedit-who div { display: flex; flex-direction: column; gap: .15rem; }
.wk-dedit-who span { color: var(--dim); font-size: .86rem; }
.wk-dedit textarea { width: 100%; box-sizing: border-box; resize: vertical; min-height: 180px; padding: .85rem .95rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); font: inherit; font-size: .95rem; line-height: 1.6; }
.wk-dedit textarea:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.1); }
.wk-dedit .wk-field > em { align-self: flex-end; font: 600 .72rem var(--mono); }
.wk-dedit-foot { justify-content: flex-end; }
.wk-switch-row { display: flex; align-items: center; gap: .85rem; padding: .85rem 1rem; border-radius: 12px; background: var(--ink-2); border: 1px solid var(--line); cursor: pointer; }
.wk-switch-row input { position: absolute; opacity: 0; pointer-events: none; }
.wk-switch { position: relative; width: 42px; height: 24px; flex: none; border-radius: 999px; background: var(--ink-0); border: 1px solid var(--line-strong); transition: background-color .18s ease, border-color .18s ease; }
.wk-switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--dim); transition: transform .18s ease, background-color .18s ease; }
.wk-switch-row input:checked + .wk-switch { background: rgba(53,215,255,.25); border-color: var(--ice); }
.wk-switch-row input:checked + .wk-switch::after { transform: translateX(18px); background: var(--ice); }
.wk-switch-row input:focus-visible + .wk-switch { outline: 2px solid var(--ice); outline-offset: 2px; }
.wk-switch-row > span:last-child { display: flex; flex-direction: column; gap: .15rem; font-size: .9rem; }
.wk-switch-row small { color: var(--dim); font-size: .78rem; }

/* death history: peek at a version's story */
.wk-hist-text { margin-top: .3rem; font-size: .8rem; }
.wk-hist-text summary { cursor: pointer; color: var(--ice); font-weight: 700; }
.wk-hist-text p { margin: .4rem 0 0; padding: .6rem .75rem; border-radius: 10px; background: var(--ink-0); border: 1px solid var(--line); color: var(--text); white-space: pre-wrap; overflow-wrap: anywhere; }

/* alpha / preview bar inside the sticky header */
.wk-head-banner { padding: .45rem 1rem; font-size: .82rem; background: rgba(40,30,6,.92); border-top: 1px solid rgba(245,196,81,.25); border-bottom: 0; }
.wk-banner-short { display: none; }
@media (max-width: 720px) {
  .wk-banner-long { display: none; }
  .wk-banner-short { display: inline; }
}
/* sticky sidebars sit below the header + bar */
.has-wk-banner .wk-cat-side, .has-wk-banner .wk-toc, .has-wk-banner .wk-side, .has-wk-banner .wk-preview { top: 124px; }
.has-wk-banner .wk-preview { max-height: calc(100vh - 148px); }
.has-wk-banner .wk-body h2, .has-wk-banner .wk-body h3, .has-wk-banner .wk-body h4, .has-wk-banner .wk-comments { scroll-margin-top: 132px; }
/* "Made by" / "Edited by" with a head */
.wk-person { display: inline-flex; align-items: center; gap: .35rem; justify-content: flex-end; }
.wk-person img { border-radius: 4px; image-rendering: pixelated; background: var(--ink-2); flex: none; }

/* Categories menu: the current category's icon square turns blue with its icon (was icon-only) */
.navlinks .wk-cat-menu a[aria-current="page"] .wk-menu-ico { color: var(--accent); background: color-mix(in srgb, var(--accent) 16%, transparent); border-color: color-mix(in srgb, var(--accent) 50%, transparent); }

/* ===== Buttons in wiki pages ({{button: Text | link | style}}) - look comes from .news-btn in webapp.css ===== */
.wk-body a.news-btn, .wk-body a.news-btn:hover { color: var(--fg); text-decoration: none; }
.wk-body .wk-btn-row { margin: .4rem 0 1.1rem; }
.wk-body p .news-btn { margin: .15rem .2rem; }
.wk-btn-blocked { display: inline-block; padding: .3rem .65rem; border-radius: 10px; font-size: .86rem; font-weight: 700; color: var(--dim); background: var(--ink-2); border: 1px dashed var(--line-strong); cursor: not-allowed; }
.wk-tool:has(.wk-tool-label) { width: auto; display: inline-flex; align-items: center; gap: .35rem; padding: 0 .55rem; color: var(--ice); }
.wk-tool-label { font-size: .78rem; font-weight: 700; }

/* button builder dialog */
.wk-bb-overlay { position: fixed; inset: 0; z-index: 2000; display: grid; place-items: center; padding: 16px; background: rgba(2,5,12,.72); backdrop-filter: blur(4px); }
.wk-bb-overlay[hidden] { display: none; }
.wk-bb { width: min(480px, 100%); display: flex; flex-direction: column; gap: .9rem; padding: 1.2rem 1.3rem 1.25rem; border-radius: 18px; background: var(--ink-1); border: 1px solid var(--line-strong); box-shadow: 0 40px 80px -30px rgba(0,0,0,.8); }
.wk-bb-head { display: flex; align-items: center; justify-content: space-between; }
.wk-bb-head b { font-family: var(--display); font-size: 1.15rem; }
.wk-bb-x { width: 32px; height: 32px; border: 0; border-radius: 9px; background: none; color: var(--dim); font-size: 1.4rem; line-height: 1; cursor: pointer; }
.wk-bb-x:hover { color: var(--text); background: var(--ink-2); }
.wk-bb-field { display: flex; flex-direction: column; gap: .4rem; }
.wk-bb-field > span { font: 700 .66rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wk-bb-field input { height: 42px; padding: 0 .8rem; border-radius: 10px; box-sizing: border-box; background: var(--ink-0); border: 1px solid var(--line-strong); color: var(--text); font: inherit; font-size: .92rem; }
.wk-bb-field input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.14); }
.wk-bb-hint { margin: -.4rem 0 0; font-size: .78rem; line-height: 1.5; color: var(--dim); }
.wk-bb-hint code { font-family: var(--mono); font-size: .9em; color: var(--ice); }
.wk-bb-hint em { font-style: normal; color: var(--text); font-weight: 700; }
.wk-bb-dots { display: flex; flex-wrap: wrap; gap: .4rem; }
.wk-bb-dot { width: 28px; height: 28px; padding: 0; border-radius: 50%; cursor: pointer; border: 2px solid transparent; outline: 1px solid var(--line-strong); outline-offset: 1px; background: linear-gradient(135deg, #35d7ff, #4d8fff); transition: transform .12s ease; position: relative; box-sizing: border-box; }
.wk-bb-dot:hover { transform: scale(1.1); }
.wk-bb-dot.is-on { outline: 2px solid #fff; }
.wk-bb-dot.is-secondary { background: var(--ink-2); border-color: var(--line-strong); }
.wk-bb-dot.is-green { background: linear-gradient(135deg, #5ee29a, #22b573); }
.wk-bb-dot.is-gold { background: linear-gradient(135deg, #ffd36b, #f5a623); }
.wk-bb-dot.is-red { background: linear-gradient(135deg, #ff7a7f, #e5484d); }
.wk-bb-dot.is-purple { background: linear-gradient(135deg, #b69bff, #7c5cff); }
.wk-bb-dot.is-discord { background: linear-gradient(135deg, #7984f5, #5865f2); }
.wk-bb-dot.is-custom { background: linear-gradient(var(--ink-2), var(--ink-2)) padding-box, conic-gradient(#ff5a5f, #f5c451, #5ee29a, #35d7ff, #8b97ff, #ff7bc5, #ff5a5f) border-box; }
.wk-bb-dot.is-custom::after { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; background: linear-gradient(var(--text), var(--text)) center / 100% 2px no-repeat, linear-gradient(var(--text), var(--text)) center / 2px 100% no-repeat; }
.wk-bb-dot.is-custom.has-color { background: linear-gradient(var(--sw), var(--sw)) padding-box, conic-gradient(#ff5a5f, #f5c451, #5ee29a, #35d7ff, #8b97ff, #ff7bc5, #ff5a5f) border-box; }
.wk-bb-dot.is-custom.has-color::after { display: none; }
.wk-bb-dot.is-gradient { background: linear-gradient(135deg, #ff7bc5, #35d7ff); }
.wk-bb-dot.is-gradient.has-color { background: linear-gradient(135deg, var(--sw), var(--sw2)); }
.wk-bb-grad { display: inline-flex; align-items: center; gap: .3rem; align-self: flex-start; margin-top: .2rem; padding: .2rem; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line-strong); }
.wk-bb-grad[hidden] { display: none; }
.wk-bb-chip { display: inline-flex; align-items: center; gap: .35rem; height: 28px; padding: 0 .6rem 0 .3rem; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--ink-0); color: var(--text); cursor: pointer; font: inherit; font-size: .76rem; font-weight: 700; }
.wk-bb-chip i { width: 18px; height: 18px; border-radius: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.2); }
.wk-bb-chip:hover { border-color: var(--ice); }
.wk-bb-swap { width: 28px; height: 28px; border: 0; border-radius: 7px; background: none; color: var(--dim); cursor: pointer; font-size: 1rem; }
.wk-bb-swap:hover { color: var(--text); background: var(--ink-1); }
.wk-bb-preview { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .85rem 1rem; border-radius: 12px; background: var(--ink-0); border: 1px dashed var(--line-strong); }
.wk-bb-preview-label { font: 700 .62rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wk-bb-preview .news-btn { padding: .55rem 1rem; pointer-events: none; }
.wk-bb-error { margin: 0; padding: .55rem .8rem; border-radius: 10px; font-size: .84rem; color: #ffb3b5; background: rgba(255,90,95,.08); border: 1px solid rgba(255,90,95,.38); }
.wk-bb-error[hidden] { display: none; }
.wk-bb-actions { display: flex; justify-content: flex-end; gap: .5rem; }

/* pinned pages */
.wk-pinned-title { display: flex; align-items: center; gap: .5rem; }
.wk-pinned-title svg { width: 18px; height: 18px; color: #f5c451; }
.wk-row.is-pinned { border-color: rgba(245,196,81,.35); background: linear-gradient(90deg, rgba(245,196,81,.06), var(--ink-1) 60%); }
.wk-row-pin { flex: none; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; color: #f5c451; background: rgba(245,196,81,.1); }
.wk-row-pin svg { width: 15px; height: 15px; }
.wk-tag.is-pinned { color: #f5c451; border-color: rgba(245,196,81,.45); background: rgba(245,196,81,.08); }

/* comparison tables (cells with ✔) and coloured columns ({#hex} / {#hex>#hex} on a header) */
.wk-body .wk-table-wrap.is-compare { border-color: var(--line-strong); background: linear-gradient(180deg, rgba(255,255,255,.015), transparent); }
.wk-body .wk-table-wrap.is-compare th, .wk-body .wk-table-wrap.is-compare td { vertical-align: middle; }
.wk-body .wk-table-wrap.is-compare th:not(:first-child), .wk-body .wk-table-wrap.is-compare td:not(:first-child) { text-align: center; }
.wk-body .wk-table-wrap.is-compare td:first-child { font-weight: 700; color: var(--text); }
.wk-body .wk-table-wrap.is-compare tbody tr:hover td { background: rgba(255,255,255,.025); }
.wk-body .wk-table-wrap.is-compare tbody tr:last-child td { border-bottom: 0; }
.wk-body th.is-colored { position: relative; padding-top: .8rem; padding-bottom: .8rem; }
.wk-body th.is-colored::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 3px; background: linear-gradient(90deg, var(--c1), var(--c2)); }
.wk-body th.is-colored span { font-family: var(--display); font-size: 1rem; font-weight: 900; letter-spacing: .01em; text-transform: none; background: linear-gradient(90deg, var(--c1), var(--c2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.wk-body td[style*="--c1"] { background: color-mix(in srgb, var(--c1) 5%, transparent); }
.wk-yes { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; font-size: .78rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--c1, #5ee29a), var(--c2, #22b573)); box-shadow: 0 4px 12px -4px var(--c1, #5ee29a); }
.wk-no { color: var(--line-strong); font-weight: 900; font-size: 1.1rem; }

/* locked categories */
.wk-cat-locked { display: inline-flex; align-items: center; gap: .4rem; padding: .4rem .8rem; border-radius: 999px; font-size: .82rem; font-weight: 700; color: #f5c451; background: rgba(245,196,81,.08); border: 1px solid rgba(245,196,81,.4); }
.wk-cat-locked svg { width: 14px; height: 14px; }

/* search suggestions (public/wikiSearch.js) */
.wk-has-suggest { position: relative; }
.wk-suggest {
  position: fixed; z-index: 2000; max-height: min(460px, 70vh); overflow-y: auto; box-sizing: border-box;
  padding: .4rem; border-radius: 14px; background: var(--ink-1); border: 1px solid var(--line-strong);
  box-shadow: 0 28px 60px -20px rgba(0,0,0,.8), 0 0 0 1px rgba(53,215,255,.05); scrollbar-width: thin;
}
.wk-suggest[hidden] { display: none; }
.wk-sg-head { padding: .55rem .6rem .3rem; font: 700 .62rem var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--dim); }
.wk-sg-item { --c: #8a94ab; display: flex; align-items: center; gap: .7rem; padding: .5rem .6rem; border-radius: 10px; color: var(--text); text-decoration: none; }
.wk-sg-item:hover, .wk-sg-item.is-active { background: var(--ink-2); }
.wk-sg-item.is-active { box-shadow: inset 2px 0 0 var(--ice); }
.wk-sg-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.wk-sg-ico svg { width: 15px; height: 15px; }
.wk-sg-text { display: flex; flex-direction: column; min-width: 0; }
.wk-sg-text b { font-size: .9rem; font-weight: 700; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-sg-text small { font-size: .76rem; color: var(--dim); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-sg-text mark { background: none; color: var(--ice); font-weight: 800; }
.wk-sg-item.is-all { margin-top: .3rem; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: .65rem; }
.wk-sg-item.is-all .wk-sg-ico { --c: var(--ice); }
.wk-sg-empty { padding: .7rem .6rem .4rem; font-size: .84rem; color: var(--dim); }

/* people with a hover card (contributors, Made by, Edited by) */
[data-tip-name] { cursor: default; }
.wk-contributors img[data-tip-name] { transition: transform .12s ease, box-shadow .12s ease; }
.wk-contributors img[data-tip-name]:hover, .wk-contributors img[data-tip-name]:focus-visible { transform: translateY(-2px); box-shadow: 0 0 0 2px rgba(53,215,255,.5); outline: none; }
.wk-hover-tip .dash-head-tip-sub span:not(.dash-head-tip-rank) { color: var(--dim); }

/* report this page */
.wk-report { margin: .2rem 0 .9rem; font-size: .85rem; }
.wk-report summary { display: inline-flex; align-items: center; gap: .4rem; cursor: pointer; color: var(--muted, #8a94a8); list-style: none; }
.wk-report summary::-webkit-details-marker { display: none; }
.wk-report summary svg { width: 14px; height: 14px; }
.wk-report summary:hover { color: #ffcf7a; }
.wk-report form { display: flex; flex-direction: column; gap: .5rem; margin-top: .6rem; }
.wk-report textarea { width: 100%; box-sizing: border-box; resize: vertical; padding: .55rem .7rem; border-radius: 10px; background: var(--ink-1); border: 1px solid var(--line-strong); color: var(--text); font: inherit; }
.wk-report textarea.is-invalid { border-color: rgba(245,166,35,.6); box-shadow: 0 0 0 3px rgba(245,166,35,.12); }
.wk-report-error { display: flex; align-items: center; gap: .45rem; margin: 0; padding: .5rem .7rem; border-radius: 10px; font-size: .8rem; color: #ffcf7a; background: rgba(245,166,35,.08); border: 1px solid rgba(245,166,35,.35); }
.wk-report-error[hidden] { display: none; }
.wk-report-error::before { content: "!"; display: inline-grid; place-items: center; flex: none; width: 16px; height: 16px; border-radius: 50%; background: #f5a623; color: #0b1220; font-weight: 900; font-size: .7rem; }

/* comment likes + sorting */
.wk-comments-head .wk-comment-sort { margin-left: auto; display: inline-flex; gap: .2rem; padding: .2rem; border-radius: 10px; background: var(--ink-2); border: 1px solid var(--line); }
.wk-comment-sort a { padding: .25rem .65rem; border-radius: 7px; font-size: .76rem; font-weight: 700; color: var(--dim); text-decoration: none; }
.wk-comment-sort a:hover { color: var(--text); }
.wk-comment-sort a.is-active { color: var(--text); background: var(--ink-1); box-shadow: 0 0 0 1px var(--line-strong); }
.wk-like-form { margin: .35rem 0 0; }
.wk-like { display: inline-flex; align-items: center; gap: .3rem; padding: .2rem .55rem; border-radius: 999px; cursor: pointer; font: 600 .74rem var(--mono); color: var(--dim); background: transparent; border: 1px solid var(--line); transition: color .15s ease, border-color .15s ease, background-color .15s ease; }
.wk-like svg { width: 13px; height: 13px; }
.wk-like:hover:not(:disabled) { color: #ff7bc5; border-color: rgba(255,123,197,.45); }
.wk-like.is-on { color: #ff7bc5; border-color: rgba(255,123,197,.5); background: rgba(255,123,197,.1); }
.wk-like.is-on svg { fill: currentColor; }
.wk-like:disabled { cursor: default; opacity: .7; }
.wk-link-btn.is-danger { color: #ff8a8e; }
.wk-link-btn.is-danger:hover { color: #ff5a5f; }

/* ---------- player profiles, players list, leaderboards ---------- */
.wk-death-status.is-alive { color: #7ee8ff; background: rgba(53,215,255,.1); border-color: rgba(53,215,255,.35); }
.wk-death-status.is-online { color: #5ee29a; background: rgba(94,226,154,.12); border-color: rgba(94,226,154,.45); }
.wk-death-status.is-online i { box-shadow: 0 0 0 3px rgba(94,226,154,.25); animation: wk-pulse 1.8s ease-in-out infinite; }
@keyframes wk-pulse { 50% { box-shadow: 0 0 0 6px rgba(94,226,154,0); } }
.wk-player-hero .wk-byline b { color: var(--text); }
.wk-player-dead { align-items: center; }
.wk-player-dead .btn { margin-left: auto; }
.wk-profile-link { color: var(--ice); text-decoration: none; font-weight: 700; }
.wk-profile-link:hover { text-decoration: underline; }
.wk-side-title { display: flex; align-items: center; gap: .45rem; font-size: .9rem; margin-bottom: .6rem; }
.wk-side-title svg { width: 16px; height: 16px; color: #f5c451; }
.wk-player-places { display: flex; flex-direction: column; gap: .35rem; }
.wk-player-places a { display: flex; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 10px; text-decoration: none; color: var(--text); font-size: .86rem; }
.wk-player-places a:hover { background: var(--ink-2); }
.wk-place { min-width: 2.4rem; text-align: center; padding: .15rem .4rem; border-radius: 8px; font: 800 .78rem var(--mono); color: var(--dim); background: var(--ink-2); border: 1px solid var(--line); }
.wk-place.is-top1 { color: #0b1220; background: linear-gradient(90deg, #f5c451, #ffde7a); border-color: transparent; }
.wk-place.is-top2 { color: #0b1220; background: linear-gradient(90deg, #c9d3e3, #eef2f8); border-color: transparent; }
.wk-place.is-top3 { color: #0b1220; background: linear-gradient(90deg, #d08b52, #f0b07a); border-color: transparent; }
.wk-player-pages { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .5rem; }
.wk-player-pages a { display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 12px; text-decoration: none; color: var(--text); background: var(--ink-2); border: 1px solid var(--line); }
.wk-player-pages a:hover { border-color: var(--line-strong); }
.wk-player-pages b { display: block; font-size: .88rem; }
.wk-player-pages small { color: var(--dim); font-size: .74rem; }
.wk-player-page-ico { flex: none; width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); }
.wk-player-page-ico svg { width: 15px; height: 15px; }

.wk-player-search { display: flex; flex-wrap: wrap; gap: .5rem; max-width: 640px; }
.wk-player-search input { flex: 1 1 220px; padding: .6rem .85rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-1); color: var(--text); font: inherit; }
.wk-player-search input:focus { outline: none; border-color: var(--ice); }
.wk-player-list-note { margin: 0 0 .8rem; }
.wk-player-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: .55rem; }
.wk-player-chip { position: relative; display: flex; align-items: center; gap: .65rem; padding: .6rem .7rem; border-radius: 13px; text-decoration: none; color: var(--text); background: var(--ink-1); border: 1px solid var(--line); }
.wk-player-chip:hover { border-color: var(--line-strong); background: var(--ink-2); }
.wk-player-chip img { border-radius: 8px; image-rendering: pixelated; flex: none; }
.wk-player-chip span { min-width: 0; }
.wk-player-chip b { display: block; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-player-chip small { color: var(--dim); font-size: .74rem; }
.wk-player-chip i { position: absolute; top: .55rem; right: .6rem; width: 8px; height: 8px; border-radius: 50%; background: #35d7ff; }
.wk-player-chip.is-online i { background: #5ee29a; box-shadow: 0 0 0 3px rgba(94,226,154,.25); }
.wk-player-chip.is-revived i { background: #5ee29a; opacity: .6; }
.wk-player-chip.is-eliminated { opacity: .62; }
.wk-player-chip.is-eliminated img { filter: grayscale(1); }
.wk-player-chip.is-eliminated i { background: #ff5a5f; }

.wk-lb-jump { display: flex; flex-wrap: wrap; gap: .4rem; }
.wk-lb-jump a { padding: .3rem .7rem; border-radius: 999px; font-size: .78rem; font-weight: 700; text-decoration: none; color: var(--c, var(--dim)); background: color-mix(in srgb, var(--c, #8b97ff) 10%, transparent); border: 1px solid color-mix(in srgb, var(--c, #8b97ff) 35%, transparent); }
.wk-lb-jump a.is-plain { color: var(--dim); background: none; border-color: var(--line); }
.wk-lb-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; align-items: stretch; }
.wk-lb-card { padding: 1.1rem; display: flex; flex-direction: column; gap: .8rem; scroll-margin-top: 96px; border-top: 3px solid var(--c); min-width: 0; }
.wk-lb-head b { display: block; font: 800 1.1rem var(--display); }
.wk-lb-head span { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.45 * .8rem); font-size: .8rem; line-height: 1.45; color: var(--dim); }
.wk-lb-list li.is-free > span { display: grid; grid-template-columns: 1.8rem 26px minmax(0, 1fr); align-items: center; gap: .6rem; padding: .4rem .5rem; opacity: .38; }
.wk-lb-list li.is-free i { width: 26px; height: 26px; border-radius: 6px; border: 1px dashed var(--line-strong); }
.wk-lb-list li.is-free .wk-lb-name { font-weight: 500; font-size: .84rem; color: var(--dim); }
@media (max-width: 1100px) { .wk-lb-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-lb-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .2rem; }
.wk-lb-list a { display: grid; grid-template-columns: 1.8rem auto minmax(0, 1fr) auto; align-items: center; gap: .6rem; padding: .4rem .5rem; border-radius: 10px; text-decoration: none; color: var(--text); }
.wk-lb-list a:hover { background: var(--ink-2); }
.wk-lb-list img { border-radius: 6px; image-rendering: pixelated; }
.wk-lb-place { text-align: center; font: 800 .8rem var(--mono); color: var(--dim); }
.wk-lb-list a.is-top1 .wk-lb-place { color: #f5c451; }
.wk-lb-list a.is-top2 .wk-lb-place { color: #c9d3e3; }
.wk-lb-list a.is-top3 .wk-lb-place { color: #d08b52; }
.wk-lb-name { font-weight: 700; font-size: .9rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-lb-dead { font-style: normal; color: #ff7b7f; font-size: .8rem; }
.wk-lb-value { font: 700 .82rem var(--mono); color: var(--c); }
@media (max-width: 760px) {
  .wk-player-dead { flex-wrap: wrap; }
  .wk-player-dead .btn { margin-left: 0; }
  .wk-lb-grid { grid-template-columns: minmax(0, 1fr); }
}

/* Categories menu: two labelled groups in a two-column grid */
.navlinks .wk-cat-menu:not(.wk-players-menu) { min-width: 560px; }
.wk-cat-menu .nav-menu-inner { gap: .5rem; padding: .55rem; }
.wk-cat-group { display: flex; flex-direction: column; gap: .2rem; }
.wk-cat-group + .wk-cat-group { padding-top: .5rem; border-top: 1px solid var(--line); }
.wk-cat-group-label { padding: .2rem .55rem .1rem; font: 700 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.wk-cat-group-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .1rem; }
.navlinks .wk-cat-menu .wk-cat-group-grid a { align-items: center; padding: .45rem .55rem; }
.navlinks .wk-cat-menu .wk-cat-group-grid .wk-menu-ico { width: 28px; height: 28px; border-radius: 8px; }
.navlinks .wk-cat-menu .wk-cat-group-grid b { font-size: .84rem; }
.navlinks .wk-cat-menu .wk-cat-group-grid small { margin-top: .1rem; font-size: .72rem; }
.navlinks .wk-cat-menu .wk-cat-all { justify-content: center; padding: .45rem; font-size: .8rem; color: var(--ice); border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; }
.navlinks .wk-players-menu { min-width: 290px; }
.wk-sg-item.is-player .wk-sg-ico { padding: 0; overflow: hidden; }
.wk-sg-item.is-player .wk-sg-ico img { width: 100%; height: 100%; image-rendering: pixelated; }

/* ---------- wiki home (redesign) ---------- */
.pb-pagehead .wrap.wk-home-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 2.5rem; align-items: center; }
.wk-home-hero-main { display: flex; flex-direction: column; gap: 1.1rem; min-width: 0; }
.wk-quick { display: flex; flex-wrap: wrap; gap: .5rem; }
.wk-quick a { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .85rem; border-radius: 11px; font-size: .86rem; font-weight: 700; text-decoration: none; color: var(--text); background: color-mix(in srgb, var(--c) 9%, var(--ink-1)); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); transition: transform .15s ease, border-color .15s ease; }
.wk-quick a:hover { transform: translateY(-1px); border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.wk-quick svg { width: 16px; height: 16px; color: var(--c); }
.wk-statpanel { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.wk-statpanel a { display: flex; flex-direction: column; gap: .15rem; padding: 1rem 1.1rem; border-radius: 16px; text-decoration: none; background: linear-gradient(160deg, rgba(53,215,255,.08), rgba(10,17,34,.6)); border: 1px solid var(--line-strong); transition: border-color .15s ease, transform .15s ease; }
.wk-statpanel a:hover { border-color: rgba(53,215,255,.45); transform: translateY(-2px); }
.wk-statpanel b { font: 800 1.9rem var(--display); color: var(--text); line-height: 1.05; }
.wk-statpanel span { font-size: .8rem; color: var(--dim); }
.wk-home-stack { gap: 1.4rem; }
.wk-section-head > div { display: flex; flex-direction: column; gap: .15rem; }
.wk-section-head p { margin: 0; font-size: .84rem; }
.wk-pin-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: .9rem; }
.wk-pin-card { position: relative; display: flex; flex-direction: column; gap: .4rem; padding: 1.15rem 1.25rem; text-decoration: none; color: var(--text); overflow: hidden; border-left: 3px solid var(--c); background: linear-gradient(120deg, color-mix(in srgb, var(--c) 10%, var(--ink-1)), var(--ink-1) 60%); }
.wk-pin-card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); }
.wk-pin-card-tag { display: inline-flex; align-items: center; gap: .35rem; font: 700 .64rem var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.wk-pin-card-tag svg { width: 13px; height: 13px; }
.wk-pin-card b { font: 800 1.15rem var(--display); }
.wk-pin-card > span:not(.wk-pin-card-tag) { font-size: .86rem; color: var(--dim); }
.wk-pin-card em { font-style: normal; font-size: .82rem; font-weight: 700; color: var(--c); }
.wk-guide-grid { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; }
.wk-tiles { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); grid-auto-rows: 1fr; gap: .6rem; }
.wk-tile { display: flex; align-items: flex-start; gap: .75rem; padding: .85rem .9rem; border-radius: 13px; text-decoration: none; color: var(--text); background: var(--ink-1); border: 1px solid var(--line); transition: border-color .15s ease, background-color .15s ease; }
.wk-tile:hover { border-color: color-mix(in srgb, var(--c) 50%, transparent); background: color-mix(in srgb, var(--c) 6%, var(--ink-1)); }
.wk-tile-ico { flex: none; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 32%, transparent); }
.wk-tile-ico svg { width: 17px; height: 17px; }
.wk-tile-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; height: 100%; }
.wk-tile-desc { font-size: .78rem; line-height: 1.35; color: var(--dim); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.wk-tile-text b { font-size: .9rem; line-height: 1.25; overflow-wrap: anywhere; }
.wk-tile-text small { margin-top: auto; padding-top: .15rem; font: 700 .7rem var(--mono); color: color-mix(in srgb, var(--c) 75%, var(--dim)); }
.wk-tile.is-empty .wk-tile-text small { font-family: inherit; font-weight: 600; }
.wk-online-dot { display: inline-block; width: 7px; height: 7px; margin-right: .3rem; border-radius: 50%; background: #5ee29a; box-shadow: 0 0 0 3px rgba(94,226,154,.2); vertical-align: middle; }
.wk-spot-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .9rem; }
.wk-spot { position: relative; display: flex; align-items: center; gap: .9rem; padding: 1rem 1.1rem; text-decoration: none; color: var(--text); overflow: hidden; border-top: 3px solid var(--c); }
.wk-spot:hover { border-color: var(--c); }
.wk-spot img { border-radius: 10px; image-rendering: pixelated; flex: none; box-shadow: 0 8px 20px -10px rgba(0,0,0,.8); }
.wk-spot-text { display: flex; flex-direction: column; min-width: 0; }
.wk-spot-text small { font: 700 .64rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--c); }
.wk-spot-text b { font: 800 1.1rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-spot-text em { font-style: normal; font-size: .84rem; color: var(--dim); }
.wk-spot-crown { position: absolute; right: -6px; bottom: -10px; color: var(--c); opacity: .12; }
.wk-spot-crown svg { width: 74px; height: 74px; }
.wk-home-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) 340px; gap: 1.2rem; align-items: start; }
.wk-home-cols .wk-section-head { margin-top: 0; }
@media (max-width: 1150px) {
  .wk-home-cols { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .wk-home-cols > aside { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
}
@media (max-width: 900px) {
  .pb-pagehead .wrap.wk-home-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-guide-grid { grid-template-columns: minmax(0, 1fr) !important; }
  .wk-spot-grid { grid-template-columns: minmax(0, 1fr); }
  .wk-home-cols, .wk-home-cols > aside { grid-template-columns: minmax(0, 1fr); }
}

/* ---------- Leaderboards: every /stats stat by category (statBoards.js) ---------- */
.wk-lb-hero { --c: #f5c451; }
.wk-lb-title { display: flex; align-items: center; gap: .7rem; }
.wk-lb-desc { max-width: 62ch; }
.wk-lb-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; margin-top: 1rem; }
.wk-lb-search { position: relative; flex: 1 1 320px; max-width: 520px; display: flex; align-items: center; }
.wk-lb-search svg { position: absolute; left: .8rem; width: 17px; height: 17px; color: var(--dim); pointer-events: none; }
.wk-lb-search input { width: 100%; padding: .65rem .9rem .65rem 2.4rem; border-radius: 12px; border: 1px solid var(--line-strong); background: var(--ink-2); color: var(--text); font: inherit; font-size: .92rem; }
.wk-lb-search input:focus { outline: none; border-color: var(--ice); box-shadow: 0 0 0 3px rgba(53,215,255,.12); }
.wk-lb-updated { display: inline-flex; align-items: center; gap: .35rem; font-size: .8rem; color: var(--dim); text-decoration: none; }
a.wk-lb-updated:hover { color: var(--text); }
.wk-lb-updated svg, .wk-lb-foot svg { width: 14px; height: 14px; }
.wk-lb-h2 { display: flex; align-items: center; gap: .5rem; margin: 0 0 1rem; font: 800 1.2rem var(--display); }
.wk-lb-h2 svg { width: 20px; height: 20px; color: var(--c, #f5c451); }

.wk-lb-cat-ico { flex: none; display: inline-grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; color: var(--c); background: color-mix(in srgb, var(--c) 13%, transparent); border: 1px solid color-mix(in srgb, var(--c) 38%, transparent); }
.wk-lb-cat-ico svg { width: 22px; height: 22px; }
.wk-lb-cat-ico.is-sm { width: 28px; height: 28px; border-radius: 8px; }
.wk-lb-cat-ico.is-sm svg { width: 15px; height: 15px; }
.wk-lb-cats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; }
.wk-lb-cat { display: flex; flex-direction: column; gap: .75rem; padding: 1.1rem; text-decoration: none; color: var(--text); border-top: 3px solid var(--c); min-width: 0; transition: transform .15s ease, background .15s ease; }
.wk-lb-cat:hover { transform: translateY(-2px); background: color-mix(in srgb, var(--c) 6%, var(--ink-1)); }
.wk-lb-cat-top { display: flex; align-items: center; gap: .75rem; min-width: 0; }
.wk-lb-cat-name { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wk-lb-cat-name b { font: 800 1.02rem var(--display); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-lb-cat-name small { font: 700 .7rem var(--mono); color: var(--c); }
.wk-lb-cat-desc { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; overflow: hidden; min-height: calc(2 * 1.45 * .82rem); font-size: .82rem; line-height: 1.45; color: var(--dim); }
.wk-lb-cat-foot { margin-top: auto; display: flex; align-items: center; gap: .6rem; min-width: 0; padding-top: .75rem; border-top: 1px solid var(--line); }
.wk-lb-cat-foot img { flex: none; border-radius: 5px; image-rendering: pixelated; }
.wk-lb-cat-foot > span { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.wk-lb-cat-foot small { font-size: .66rem; text-transform: uppercase; letter-spacing: .07em; color: var(--dim); }
.wk-lb-cat-foot b { font-size: .86rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-lb-cat-foot em { flex: none; font: 700 .7rem var(--mono); font-style: normal; color: var(--c); padding: .2rem .5rem; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); border: 1px solid color-mix(in srgb, var(--c) 35%, transparent); }
.wk-lb-index-lead img { border-radius: 3px; image-rendering: pixelated; }
@media (max-width: 1100px) { .wk-lb-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.wk-lb-cat-go { color: var(--dim); }
.wk-lb-cat-go svg { width: 18px; height: 18px; }
.wk-lb-cat:hover .wk-lb-cat-go { color: var(--c); }

.wk-lb-head a { color: var(--text); text-decoration: none; }
.wk-lb-head a:hover b { color: var(--c); }
.wk-lb-empty { margin: 0; font-size: .85rem; }
.wk-lb-more { margin-top: auto; font: 700 .78rem var(--mono); color: var(--c); text-decoration: none; }
.wk-lb-more:hover { text-decoration: underline; }
.wk-lb-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .4rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.wk-lb-facts span { display: flex; flex-direction: column; min-width: 0; }
.wk-lb-facts small { font-size: .68rem; color: var(--dim); text-transform: uppercase; letter-spacing: .06em; }
.wk-lb-facts b { font: 700 .82rem var(--mono); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-lb-card .wk-lb-facts { margin-top: auto; }
.wk-lb-foot { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; margin-top: 1.4rem; font-size: .8rem; }

.wk-lb-index { columns: 3 300px; column-gap: 1rem; }
.wk-lb-index-group { break-inside: avoid; margin-bottom: 1rem; padding: .7rem; border-radius: 14px; background: var(--ink-1); border: 1px solid var(--line); }
.wk-lb-index-head { display: flex; align-items: center; gap: .55rem; padding: .2rem .3rem .6rem; text-decoration: none; color: var(--text); }
.wk-lb-index-head small { margin-left: auto; font: 700 .72rem var(--mono); color: var(--c); }
.wk-lb-index ul { list-style: none; margin: 0; padding: 0; }
.wk-lb-index li a { display: flex; align-items: baseline; justify-content: space-between; gap: .6rem; padding: .32rem .4rem; border-radius: 8px; text-decoration: none; color: var(--text); font-size: .86rem; }
.wk-lb-index li a:hover { background: var(--ink-2); }
.wk-lb-index li a:hover .wk-lb-index-name { color: var(--c); }
.wk-lb-index-name { font-weight: 600; white-space: nowrap; }
.wk-lb-index-lead { display: inline-flex; align-items: center; gap: .3rem; min-width: 0; font: 600 .72rem var(--mono); color: var(--dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wk-lb-index-lead.is-empty { opacity: .6; }

.wk-lb-tabs { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.wk-lb-tabs a { display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .75rem; border-radius: 999px; font-size: .8rem; font-weight: 700; text-decoration: none; color: var(--dim); border: 1px solid var(--line); background: var(--ink-1); }
.wk-lb-tabs a svg { width: 14px; height: 14px; color: var(--c); }
.wk-lb-tabs a:hover { color: var(--text); border-color: color-mix(in srgb, var(--c) 45%, transparent); }
.wk-lb-tabs a[aria-current="page"] { color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); border-color: color-mix(in srgb, var(--c) 45%, transparent); }

.wk-lb-chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .9rem; }
.wk-lb-chips > * { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .7rem; border-radius: 999px; font-size: .76rem; font-weight: 600; color: var(--dim); background: var(--ink-1); border: 1px solid var(--line); text-decoration: none; }
.wk-lb-chips > a { color: var(--c); border-color: color-mix(in srgb, var(--c) 40%, transparent); background: color-mix(in srgb, var(--c) 10%, transparent); }
.wk-lb-chips svg { width: 14px; height: 14px; }
.wk-lb-tiles { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: .8rem; margin-bottom: 1rem; }
.wk-lb-tiles .pb-card { display: flex; flex-direction: column; gap: .2rem; padding: .9rem 1rem; border-top: 3px solid var(--c); min-width: 0; }
.wk-lb-tiles small { font-size: .7rem; color: var(--dim); text-transform: uppercase; letter-spacing: .07em; }
.wk-lb-tiles b { font: 800 1.15rem var(--display); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-lb-tiles span { font-size: .75rem; color: var(--dim); }
.wk-lb-mine { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; padding: .8rem 1rem; margin-bottom: 1rem; border-left: 3px solid var(--c); font-size: .9rem; }
.wk-lb-mine img { border-radius: 6px; image-rendering: pixelated; }
.wk-lb-mine a { margin-left: auto; font: 700 .78rem var(--mono); color: var(--c); text-decoration: none; }

.wk-lb-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .8rem; align-items: end; margin-bottom: 1rem; }
.wk-lb-podium a { position: relative; display: flex; flex-direction: column; align-items: center; gap: .35rem; padding: 1.2rem .8rem 1rem; text-decoration: none; color: var(--text); text-align: center; transition: transform .15s ease; }
.wk-lb-podium a:hover { transform: translateY(-2px); }
.wk-lb-podium img { image-rendering: pixelated; filter: drop-shadow(0 6px 10px rgba(0,0,0,.4)); }
.wk-lb-podium b { font: 800 1rem var(--display); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wk-lb-podium a > span:last-child { font: 700 .82rem var(--mono); color: var(--c); }
.wk-lb-podium .is-p1 { order: 2; padding-top: 1.8rem; border-top: 3px solid #f5c451; background: linear-gradient(180deg, rgba(245,196,81,.10), transparent 60%), var(--ink-1); }
.wk-lb-podium .is-p2 { order: 1; border-top: 3px solid #c9d3e3; }
.wk-lb-podium .is-p3 { order: 3; border-top: 3px solid #d08b52; }
.wk-lb-medal { position: absolute; top: .55rem; left: .7rem; font: 800 .85rem var(--mono); color: var(--dim); }
.wk-lb-podium .is-p1 .wk-lb-medal { color: #f5c451; }
.wk-lb-podium .is-p2 .wk-lb-medal { color: #c9d3e3; }
.wk-lb-podium .is-p3 .wk-lb-medal { color: #d08b52; }

.wk-lb-table { padding: .4rem; }
.wk-lb-row { display: grid; grid-template-columns: 2.6rem minmax(0, 1fr) auto 9rem; align-items: center; gap: .8rem; padding: .45rem .6rem; border-radius: 10px; text-decoration: none; color: var(--text); scroll-margin-top: 110px; }
.wk-lb-row.is-head { font: 700 .68rem var(--mono); text-transform: uppercase; letter-spacing: .08em; color: var(--dim); padding-block: .5rem; border-bottom: 1px solid var(--line); border-radius: 0; margin-bottom: .2rem; }
a.wk-lb-row:hover { background: var(--ink-2); }
.wk-lb-row.is-me { background: color-mix(in srgb, var(--c) 12%, transparent); outline: 1px solid color-mix(in srgb, var(--c) 40%, transparent); }
.wk-lb-row.is-top1 .wk-lb-place { color: #f5c451; }
.wk-lb-row.is-top2 .wk-lb-place { color: #c9d3e3; }
.wk-lb-row.is-top3 .wk-lb-place { color: #d08b52; }
.wk-lb-row:target { outline: 2px solid var(--c); }
.wk-lb-who { display: flex; align-items: center; gap: .6rem; min-width: 0; }
.wk-lb-who img { border-radius: 5px; image-rendering: pixelated; }
.wk-lb-share { display: flex; align-items: center; gap: .5rem; }
.wk-lb-bar { flex: 1; height: 6px; border-radius: 999px; background: var(--ink-2); overflow: hidden; }
.wk-lb-bar i { display: block; height: 100%; border-radius: 999px; background: var(--c); opacity: .8; }
.wk-lb-share small { margin-left: auto; width: 3.2rem; text-align: right; font: 600 .7rem var(--mono); color: var(--dim); }
.wk-lb-row.is-head .wk-lb-share { justify-content: flex-end; }
.wk-lb-siblings { margin-bottom: .5rem; }

@media (max-width: 900px) {
  .wk-lb-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-lb-tiles .pb-card:first-child { grid-column: 1 / -1; }
}
@media (max-width: 600px) {
  .wk-lb-row { grid-template-columns: 2rem minmax(0, 1fr) auto; }
  .wk-lb-share { display: none; }
  .wk-lb-podium { gap: .45rem; }
  .wk-lb-podium img { height: 84px; }
  .wk-lb-podium a { padding-inline: .4rem; }
  .wk-lb-podium b { font-size: .82rem; }
  .wk-lb-cats { grid-template-columns: minmax(0, 1fr); }
  .wk-lb-grid { grid-template-columns: minmax(0, 1fr); }
}
.wk-lb-card .wk-lb-facts + .wk-lb-more { margin-top: 0; }

/* category pages: 4 boards per row (3 / 2 / 1 on smaller screens) */
.wk-lb-grid.is-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wk-lb-grid.is-4 .wk-lb-card { padding: 1rem; }
.wk-lb-grid.is-4 .wk-lb-list a { gap: .5rem; padding-inline: .4rem; }
@media (max-width: 1280px) { .wk-lb-grid.is-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 1100px) { .wk-lb-grid.is-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .wk-lb-grid.is-4 { grid-template-columns: minmax(0, 1fr); } }
