/* ABYSS wiki (field manual). Loaded on /abyss/wiki/ routes only.
   Pages are generated by abyss/wiki/build_wiki.py; js/wiki.js adds the
   filters, search, spoiler toggles and the item inspector. */

.page-wiki {
  --wk-bg: #060a10;
  --wk-panel: rgba(12, 21, 32, .86);
  --wk-panel-2: rgba(19, 32, 45, .86);
  --wk-line: rgba(214, 228, 240, .14);
  --wk-line-2: rgba(214, 228, 240, .26);
  --wk-text: #eef3f8;
  --wk-dim: #c0ced9;
  --wk-faint: #8a9db0;
  --wk-red: #e5486a;
  --wk-cyan: #8fd0e6;
  /* The renders are lit for the game, not for a dark page. This tones every
     icon down to sit in the scene; hover brings it back up a little. */
  --wk-icon: brightness(.86) saturate(.88) contrast(1.06);
  --wk-icon-hover: brightness(1) saturate(.96) contrast(1.04);
  /* rarity, as in game: grey is Common */
  --r-common: #a3abb4;
  --r-uncommon: #5fc46b;
  --r-rare: #4ea6ff;
  --r-legendary: #f4a62a;
  --r-abyssal: #ec3456;
  background: var(--wk-bg);
  color: var(--wk-text);
}
.wk-r-common { --r: var(--r-common); }
.wk-r-uncommon { --r: var(--r-uncommon); }
.wk-r-rare { --r: var(--r-rare); }
.wk-r-legendary { --r: var(--r-legendary); }
.wk-r-abyssal { --r: var(--r-abyssal); }

/* Ambient light behind every wiki page: a teal wash from the top left, a
   red one low on the right, like lamps somewhere off in the water. */
/* ABYSS key art behind every wiki page, pinned while the page scrolls
   (a fixed layer, not background-attachment, which iOS ignores). Dark
   washes keep the text readable; the teal and red glows sit on top. */
.page-wiki::before {
  content: ""; position: fixed; inset: 0; z-index: 0; pointer-events: none;
  background:
    radial-gradient(48vw 40vw at 8% 6%, rgba(56, 150, 190, .16), transparent 70%),
    radial-gradient(42vw 38vw at 96% 70%, rgba(200, 40, 75, .12), transparent 70%),
    linear-gradient(90deg, rgba(6, 10, 16, .94) 0%, rgba(6, 10, 16, .84) 45%, rgba(6, 10, 16, .62) 100%),
    linear-gradient(0deg, rgba(6, 10, 16, .9), rgba(6, 10, 16, .35) 60%),
    url("/assets/abyss/abyss-tb-1920.webp") 64% 30% / cover no-repeat,
    var(--wk-bg);
}
@media (max-width: 900px) {
  .page-wiki::before {
    background:
      linear-gradient(0deg, rgba(6, 10, 16, .96) 40%, rgba(6, 10, 16, .72)),
      url("/assets/abyss/abyss-tb-1200.webp") 30% 0 / cover no-repeat,
      var(--wk-bg);
  }
}
.page-wiki main, .page-wiki .footer { position: relative; z-index: 1; }
.wk {
  position: relative;
  padding: 170px 0 80px;
  background:
    radial-gradient(90% 520px at 50% -120px, rgba(42, 110, 150, .28), transparent 70%);
}
.wk a { color: inherit; }
:where(.wk-content) :is(p, figcaption, .wk-ticks li, .wk-tips li, .wk-steps li) > a:not([class]) { color: var(--wk-cyan); text-decoration: underline; text-decoration-color: rgba(143, 208, 230, .35); text-underline-offset: 3px; }
:where(.wk-content) :is(p, figcaption, .wk-ticks li, .wk-tips li, .wk-steps li) > a:not([class]):hover { text-decoration-color: currentColor; }
.wk :focus-visible { outline: 2px solid var(--wk-cyan); outline-offset: 3px; }

/* ---------- section bar ----------
   Fixed, and hung from the bottom of the site header like a drawer: a
   little narrower, flat on top, rounded below, same glass. It follows the
   header as it slims down on scroll (same timing as the header). */
.wk-bar {
  --bar-in: 18px;                       /* how far it sits inside the header's edges */
  position: fixed; z-index: 19;
  top: 87px; left: calc(var(--nav-inset) + var(--bar-in)); right: calc(var(--nav-inset) + var(--bar-in));
  display: flex; align-items: center; gap: 22px; height: 58px; padding: 0 10px 0 22px;
  border: 1px solid var(--edge, rgba(233, 238, 245, .2)); border-top: 0; border-radius: 0 0 18px 18px;
  /* the same tint as the scrolled header's glass */
  background: linear-gradient(168deg, rgba(17, 20, 28, .86), rgba(7, 9, 14, .92));
  -webkit-backdrop-filter: blur(16px) saturate(160%); backdrop-filter: blur(16px) saturate(160%);
  box-shadow: inset 0 -1px 0 rgba(255, 255, 255, .06), var(--lift, 0 18px 40px -18px rgba(0, 0, 0, .8));
  transition: top .55s cubic-bezier(.22, 1, .36, 1), left .55s cubic-bezier(.22, 1, .36, 1), right .55s cubic-bezier(.22, 1, .36, 1);
}
body.is-scrolled .wk-bar { top: 67px; --bar-in: 48px; }
.wk-bar__brand {
  flex: none; display: flex; align-items: baseline; gap: 9px;
  font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--wk-dim);
}
.wk-bar__brand span { font: 900 25px/1 var(--display); letter-spacing: .01em; color: var(--wk-text); }
.wk-bar__brand small { font: inherit; }
.wk-tabs { display: flex; gap: 2px; min-width: 0; flex: 1; overflow-x: auto; scrollbar-width: none; mask-image: linear-gradient(90deg, #000 calc(100% - 24px), transparent); }
.wk-tabs::-webkit-scrollbar { display: none; }
.wk-tabs a {
  flex: none; padding: 9px 11px; border-radius: 999px;
  font: 500 13px/1 var(--body); color: var(--wk-dim); white-space: nowrap;
  transition: background .2s, color .2s;
}
.wk-tabs a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.wk-tabs a[aria-current] { color: #fff; background: rgba(229, 72, 106, .16); box-shadow: inset 0 0 0 1px rgba(229, 72, 106, .5); }

.wk-search { position: relative; flex: 0 0 220px; }
.wk-search input, .wk-field input, .wk-field select {
  width: 100%; height: 38px; padding: 0 14px 0 38px;
  border: 1px solid var(--wk-line-2); border-radius: 999px;
  background: rgba(8, 14, 21, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%239fb2c2' stroke-width='2'%3E%3Ccircle cx='7' cy='7' r='5'/%3E%3Cpath d='m11 11 4 4'/%3E%3C/svg%3E") 14px 50% no-repeat;
  color: var(--wk-text); font: 400 14px/1 var(--body);
}
.wk-search input::placeholder, .wk-field input::placeholder { color: var(--wk-faint); }
.wk-search input:focus, .wk-field input:focus, .wk-field select:focus { outline: none; border-color: var(--wk-cyan); }
.wk-search__results {
  position: absolute; z-index: 30; top: calc(100% + 8px); right: 0; width: min(380px, 92vw);
  max-height: 60vh; overflow: auto; margin: 0; padding: 6px; list-style: none;
  border: 1px solid var(--wk-line-2); border-radius: 14px;
  background: #0b131c; box-shadow: 0 24px 60px rgba(0, 0, 0, .55);
}
.wk-search__results a {
  display: grid; grid-template-columns: 36px 1fr; align-items: center; gap: 10px;
  padding: 7px 9px; border-radius: 9px; font: 500 14px/1.25 var(--body);
}
.wk-search__results a small { display: block; margin-top: 2px; color: var(--wk-faint); font: 400 11px/1.2 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.wk-search__results a img { filter: var(--wk-icon); }
.wk-search__results a img, .wk-search__results a i { width: 36px; height: 36px; border-radius: 8px; background: rgba(255, 255, 255, .05); object-fit: contain; }
.wk-search__results a i { display: grid; place-items: center; font-style: normal; color: var(--wk-faint); }
.wk-search__results [aria-selected="true"] a, .wk-search__results a:hover { background: rgba(143, 208, 230, .1); }
.wk-search__results .is-empty { padding: 12px; color: var(--wk-faint); font: 400 13px/1.4 var(--body); }

/* ---------- layout ---------- */
.wk-layout { max-width: 1320px; margin: 0 auto; padding: 0 var(--gutter); }
.wk-layout--toc { display: grid; grid-template-columns: minmax(0, 1fr) 210px; gap: 56px; align-items: start; }
.wk-content { min-width: 0; }
.wk-toc { position: sticky; top: 140px; margin-top: 46px; padding-left: 18px; border-left: 1px solid var(--wk-line); }
.wk-toc p { margin: 0 0 12px; font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--wk-faint); }
.wk-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.wk-toc a { display: block; padding: 5px 0; font: 400 13px/1.35 var(--body); color: var(--wk-dim); transition: color .2s; }
.wk-toc a:hover { color: #fff; }
.wk-toc a[aria-current] { color: #fff; box-shadow: -19px 0 0 -17px var(--wk-red); }

.wk-crumbs { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; font: 500 10px/1.4 var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--wk-faint); }
.wk-crumbs a { color: var(--wk-dim); }
.wk-crumbs a:hover { color: #fff; }
.wk-crumbs [aria-current] { color: var(--wk-text); }

/* ---------- type ---------- */
.wk-eyebrow { margin: 0 0 12px; font: 500 11px/1.4 var(--mono); letter-spacing: .26em; text-transform: uppercase; color: var(--wk-red); }
.wk h1 { margin: 0; font: 900 clamp(58px, 8vw, 128px)/.84 var(--display); text-transform: uppercase; letter-spacing: -.01em; color: #f4f7fa; }
.wk-lede { max-width: 62ch; margin: 22px 0 0; font: 400 clamp(17px, 1.5vw, 20px)/1.55 var(--body); color: var(--wk-dim); }
.wk-section { margin-top: clamp(56px, 7vw, 84px); }
.wk h2 { margin: 0 0 18px; scroll-margin-top: 150px; font: 900 clamp(34px, 3.6vw, 50px)/.92 var(--display); text-transform: uppercase; color: #f1f5f8; }
.wk h3 { margin: 0 0 8px; font: 600 18px/1.3 var(--body); color: #eef3f7; }
:where(.wk-content) :where(p, li) { font: 400 16px/1.7 var(--body); color: var(--wk-dim); }
:where(.wk-content) p { margin: 0 0 14px; max-width: 72ch; }
:where(.wk-content) :where(strong, b) { color: var(--wk-text); font-weight: 600; }
.wk-small, .wk-content .wk-small { font-size: 14px; color: var(--wk-faint); }
.wk-muted { color: var(--wk-faint); }
.wk-more { display: inline-flex; gap: 8px; padding: 12px 18px; border: 1px solid var(--wk-line-2); border-radius: 999px; font: 500 12px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wk-text); transition: border-color .2s, background .2s; }
.wk-more:hover { border-color: var(--wk-red); background: rgba(229, 72, 106, .1); }
.wk-pagehead { padding: 46px 0 34px; }
.wk-updated { margin: 40px 0 0 !important; padding-top: 22px; border-top: 1px solid var(--wk-line); font-size: 13px !important; color: var(--wk-faint) !important; }
.wk-note {
  margin: 36px 0 0; padding: 16px 20px; border: 1px solid rgba(229, 72, 106, .3); border-radius: 14px;
  background: rgba(229, 72, 106, .07); font: 400 15px/1.6 var(--body); color: var(--wk-dim);
}
.wk-note b { margin-right: 8px; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--wk-red); }

/* ---------- home hero ---------- */
.wk-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: 30px; padding: clamp(36px, 6vw, 84px) clamp(24px, 4vw, 60px);
  border: 1px solid var(--wk-line); border-radius: 26px; background: #060c13;
}
.wk-hero__art { position: absolute; inset: 0; z-index: -1; }
.wk-hero__art img { width: 100%; height: 100%; object-fit: cover; object-position: 70% 40%; opacity: .7; }
.wk-hero__art::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, #060c13 18%, rgba(6, 12, 19, .82) 46%, rgba(6, 12, 19, .15)), linear-gradient(0deg, #060c13, transparent 40%); }
.wk-hero .wk-lede { max-width: 46ch; color: #c9d5df; }
.wk-hero__stats { display: flex; flex-wrap: wrap; gap: 10px; margin: 34px 0 0; }
.wk-hero__stats div { min-width: 118px; padding: 13px 16px; border: 1px solid var(--wk-line-2); border-radius: 14px; background: rgba(5, 10, 16, .6); backdrop-filter: blur(6px); }
.wk-hero__stats dt { font: 500 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wk-faint); }
.wk-hero__stats dd { margin: 6px 0 0; font: 900 34px/1 var(--display); color: #fff; }

.wk-sections { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.wk-sec {
  position: relative; display: grid; grid-template-columns: 76px 1fr; grid-template-rows: auto 1fr; gap: 4px 16px;
  align-items: center; min-height: 112px; padding: 16px 18px 16px 14px; overflow: hidden;
  border: 1px solid var(--wk-line); border-radius: 18px; background: linear-gradient(160deg, var(--wk-panel-2), var(--wk-panel));
  transition: border-color .2s, transform .25s var(--ease);
}
.wk-sec:hover { border-color: rgba(229, 72, 106, .6); transform: translateY(-2px); }
.wk-sec__art, .wk-sec__photo { grid-row: 1 / 3; width: 76px; height: 76px; border-radius: 13px; overflow: hidden; background: radial-gradient(circle at 50% 60%, rgba(143, 208, 230, .16), transparent 70%); }
.wk-sec__art img { width: 100%; height: 100%; object-fit: contain; filter: var(--wk-icon); }
.wk-sec__photo img { width: 100%; height: 100%; object-fit: cover; }
.wk-sec__label { align-self: end; font: 900 26px/1 var(--display); text-transform: uppercase; color: #fff; }
.wk-sec__text { align-self: start; font: 400 13.5px/1.45 var(--body); color: var(--wk-dim); }

/* ---------- generic blocks ---------- */
.wk-cards { display: grid; gap: 12px; margin: 22px 0; }
.wk-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wk-cards--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-cards--helmets { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wk-card { padding: 22px; border: 1px solid var(--wk-line); border-radius: 18px; background: linear-gradient(165deg, var(--wk-panel-2), var(--wk-panel)); }
.wk-card p:last-child { margin-bottom: 0; }
.wk-card .wk-content p, .wk-card p { font-size: 15px; }
.wk-card__kicker, .wk-content .wk-card__kicker { margin: 0 0 10px; font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wk-cyan); }
.wk-card--alert { border-color: rgba(229, 72, 106, .35); background: linear-gradient(165deg, rgba(229, 72, 106, .09), var(--wk-panel) 60%); }
.wk-card--alert .wk-card__kicker { color: var(--wk-red); }

.wk-split { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 28px; align-items: start; }
.wk-figure { margin: 26px 0 0; }
.wk-figure img, .wk-gallery img { display: block; width: 100%; height: auto; border-radius: 16px; border: 1px solid var(--wk-line); background: #0a0f15; }
.wk-figure figcaption, .wk-gallery figcaption { margin-top: 10px; font: 400 12px/1.4 var(--mono); letter-spacing: .04em; color: var(--wk-faint); }
.wk-figure--small { margin-top: 4px; }
.wk-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 6px 0 0; }
.wk-gallery figure { margin: 0; }
.wk-gallery img { aspect-ratio: 16 / 9; object-fit: cover; }

.wk-ticks { list-style: none; margin: 16px 0; padding: 0; display: grid; gap: 8px; }
.wk-ticks li { position: relative; padding-left: 24px; }
.wk-ticks li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 10px; height: 2px; background: var(--wk-red); }
.wk-steps { list-style: none; counter-reset: step; margin: 22px 0; padding: 0; display: grid; gap: 10px; }
.wk-steps li {
  counter-increment: step; position: relative; padding: 16px 18px 16px 64px;
  border: 1px solid var(--wk-line); border-radius: 14px; background: var(--wk-panel);
}
.wk-steps li::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 18px; top: 15px;
  font: 900 24px/1 var(--display); color: var(--wk-red);
}
.wk-steps--loop li { padding-top: 14px; padding-bottom: 14px; }
.wk-tips { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
.wk-tips li { padding: 16px 18px; border: 1px solid var(--wk-line); border-radius: 14px; background: var(--wk-panel); font-size: 15px; }

.wk-path { display: inline-flex; flex-wrap: wrap; gap: 6px; vertical-align: middle; }
.wk-path span { padding: 5px 11px; border: 1px solid var(--wk-line-2); border-radius: 999px; font: 500 11px/1.3 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--wk-text); }
.wk-path span + span::before { content: "›"; margin-right: 7px; color: var(--wk-red); }
.wk-path small { margin-left: 4px; color: var(--wk-faint); }

/* tables */
.wk-tablewrap { max-width: 100%; overflow-x: auto; margin: 20px 0; border: 1px solid var(--wk-line); border-radius: 16px; background: var(--wk-panel); }
.wk-table { width: 100%; border-collapse: collapse; font: 400 14.5px/1.5 var(--body); }
.wk-table th, .wk-table td { padding: 12px 16px; text-align: left; vertical-align: middle; border-bottom: 1px solid var(--wk-line); color: var(--wk-dim); }
.wk-table tbody tr:last-child > * { border-bottom: 0; }
.wk-table thead th { font: 500 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wk-faint); background: rgba(255, 255, 255, .02); white-space: nowrap; }
.wk-table tbody th { color: var(--wk-text); font-weight: 600; }
.wk-table tbody tr:hover > * { background: rgba(143, 208, 230, .04); }
.wk-table a { color: var(--wk-text); text-decoration: underline; text-decoration-color: var(--wk-line-2); text-underline-offset: 3px; }
.wk-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.wk-td-icon { width: 96px; padding: 8px 0 8px 12px !important; }
.wk-td-icon img { display: block; width: 80px; height: 80px; object-fit: contain; filter: var(--wk-icon); }
.wk-table--compact th, .wk-table--compact td { text-align: center; }
.wk-table--compact tbody th { text-align: left; }
.wk-table--contracts td:first-of-type { min-width: 260px; }

/* rarity + flags */
.wk-rarity, .wk-flag {
  display: inline-flex; align-items: center; gap: 6px; padding: 4px 8px; border-radius: 6px;
  font: 500 10px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap;
}
.wk-rarity { color: var(--r); background: color-mix(in srgb, var(--r) 14%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--r) 40%, transparent); }
.wk-rarity::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--r); }
.wk-rarity--common { --r: var(--r-common); }
.wk-rarity--uncommon { --r: var(--r-uncommon); }
.wk-rarity--rare { --r: var(--r-rare); }
.wk-rarity--legendary { --r: var(--r-legendary); }
.wk-rarity--abyssal { --r: var(--r-abyssal); }
.wk-flag { color: var(--wk-dim); box-shadow: inset 0 0 0 1px var(--wk-line-2); }
.wk-flag--heavy { color: #ffd9a1; box-shadow: inset 0 0 0 1px rgba(255, 199, 120, .45); background: rgba(255, 180, 80, .08); }
.wk-flag--danger { color: #ff9cb0; box-shadow: inset 0 0 0 1px rgba(229, 72, 106, .5); background: rgba(229, 72, 106, .1); }
.wk-legend { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 18px; }

/* ---------- filters ---------- */
.wk-filters {
  position: sticky; top: 138px; z-index: 18;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px;
  margin: 0 0 18px; padding: 12px; border: 1px solid var(--wk-line-2); border-radius: 18px;
  background: rgba(8, 13, 20, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.wk-field { display: flex; align-items: center; gap: 8px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wk-faint); }
.wk-field--search { flex: 1 1 220px; }
.wk-field select { width: auto; padding: 0 30px 0 14px; appearance: none; -webkit-appearance: none; text-transform: none; letter-spacing: 0;
  background: rgba(8, 14, 21, .8) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6' fill='%239fb2c2'%3E%3Cpath d='M0 0h10L5 6z'/%3E%3C/svg%3E") calc(100% - 13px) 50% no-repeat; }
.wk-chiprow { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-chipbtn {
  height: 34px; padding: 0 13px; border: 1px solid var(--wk-line-2); border-radius: 999px; background: transparent;
  font: 500 12px/1 var(--body); color: var(--wk-dim); cursor: pointer; transition: background .2s, border-color .2s, color .2s;
}
.wk-chipbtn:hover { color: #fff; border-color: rgba(255, 255, 255, .4); }
.wk-chipbtn[class*="wk-r-"]::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 7px; border-radius: 50%; background: var(--r); vertical-align: 1px; }
.wk-chipbtn[aria-pressed="true"] { color: #fff; border-color: var(--wk-cyan); background: rgba(143, 208, 230, .14); }
.wk-chipbtn[class*="wk-r-"][aria-pressed="true"] { border-color: var(--r); background: color-mix(in srgb, var(--r) 18%, transparent); }
.wk-chipbtn--spoil[aria-pressed="true"] { border-color: var(--wk-red); background: rgba(229, 72, 106, .16); }
.wk-filters__count { flex-basis: 100%; margin: 0 4px !important; font: 400 12px/1.2 var(--mono) !important; color: var(--wk-faint) !important; }
.wk-empty { padding: 40px 0; text-align: center; }
.wk-empty button { border: 0; background: none; color: var(--wk-cyan); font: inherit; text-decoration: underline; cursor: pointer; }

/* ---------- loot grid ---------- */
.wk-items { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(176px, 1fr)); gap: 10px; }
.wk-item { position: relative; display: flex; flex-direction: column; border: 1px solid var(--wk-line); border-radius: 16px; background: var(--wk-panel); overflow: hidden; scroll-margin-top: 240px; transition: border-color .2s, transform .25s var(--ease); }
.wk-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--r); opacity: .9; }
.wk-item:hover, .wk-item:target { border-color: color-mix(in srgb, var(--r) 60%, transparent); }
.wk-item:target { box-shadow: 0 0 0 2px var(--r); }
.wk-item__face { display: flex; flex-direction: column; gap: 8px; flex: 1; width: 100%; padding: 12px 14px 16px; border: 0; background: none; color: inherit; text-align: left; font: inherit; cursor: default; }
.wk-js .wk-item__face { cursor: pointer; }
.wk-item__icon {
  display: grid; place-items: center; aspect-ratio: 1; margin: 0 -2px 4px; border-radius: 11px;
  background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--r) 15%, transparent), transparent 64%), rgba(255, 255, 255, .015);
}
.wk-item__icon img { width: 78%; height: 78%; object-fit: contain; filter: var(--wk-icon) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); transition: transform .3s var(--ease), filter .3s; }
.wk-item:hover .wk-item__icon img { transform: scale(1.06); filter: var(--wk-icon-hover) drop-shadow(0 8px 14px rgba(0, 0, 0, .6)); }
.wk-item__name { font: 600 15px/1.25 var(--body); color: #fff; }
.wk-item__stats { display: flex; justify-content: space-between; gap: 8px; font: 400 12px/1 var(--mono); color: var(--wk-faint); }
.wk-item__stats b { color: var(--wk-text); font-weight: 500; }
.wk-item__flags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: auto; padding-top: 4px; }
.wk-item__more { padding: 0 14px 16px; }
.wk-item__more p { margin: 0 0 8px; font-size: 13.5px; line-height: 1.5; }
.wk-item__quote { font-style: italic; }
.wk-item__use b { margin-right: 6px; font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--r); }
.wk-item__meta { font: 400 12px/1.4 var(--mono) !important; color: var(--wk-faint) !important; }
.wk-js .wk-item__more { display: none; }

/* item inspector (JS) */
.wk-inspect {
  width: min(560px, calc(100vw - 32px)); padding: 0; border: 1px solid color-mix(in srgb, var(--r) 55%, transparent); border-radius: 22px;
  background: radial-gradient(120% 70% at 50% 0%, color-mix(in srgb, var(--r) 18%, transparent), transparent 60%), #0a1119; color: var(--wk-text);
  box-shadow: 0 30px 90px rgba(0, 0, 0, .7);
}
.wk-inspect::backdrop { background: rgba(2, 5, 9, .72); backdrop-filter: blur(4px); }
.wk-inspect__body { display: grid; grid-template-columns: 170px 1fr; gap: 20px; padding: 26px; }
.wk-inspect__icon img { width: 100%; height: auto; filter: var(--wk-icon-hover) drop-shadow(0 14px 24px rgba(0, 0, 0, .6)); }
.wk-inspect h2 { margin: 6px 0 12px; font-size: clamp(30px, 5vw, 42px); }
.wk-inspect p { margin: 0 0 10px; font: 400 15px/1.55 var(--body); color: var(--wk-dim); }
.wk-inspect__stats { display: flex; gap: 18px; margin: 12px 0; }
.wk-inspect__stats div { font: 400 11px/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wk-faint); }
.wk-inspect__stats b { display: block; margin-top: 4px; font: 900 26px/1 var(--display); color: #fff; letter-spacing: 0; }
.wk-inspect__close { position: absolute; top: 12px; right: 12px; width: 38px; height: 38px; border: 1px solid var(--wk-line-2); border-radius: 50%; background: rgba(0, 0, 0, .3); color: #fff; font-size: 16px; cursor: pointer; }
.wk-inspect__flags { display: flex; flex-wrap: wrap; gap: 6px; }
.wk-inspect__more p { font-size: 14px; }

/* dangerous loot */
.wk-dangers { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 10px; }
.wk-dangers a { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; padding: 14px; border: 1px solid rgba(229, 72, 106, .28); border-radius: 14px; background: linear-gradient(160deg, rgba(229, 72, 106, .08), var(--wk-panel) 70%); font: 400 14px/1.45 var(--body); color: var(--wk-dim); transition: border-color .2s; }
.wk-dangers a:hover { border-color: rgba(229, 72, 106, .7); }
.wk-dangers img { width: 72px; height: 72px; object-fit: contain; filter: var(--wk-icon); }
.wk-dangers b { display: block; margin-bottom: 3px; color: #fff; }

/* ---------- creatures ---------- */
.wk-t-common { --t: #79c7e0; }
.wk-t-mid { --t: #f0a54a; }
.wk-t-apex { --t: #ec3456; }
.wk-t-other { --t: #b48cf0; }
.wk-creatures { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.wk-creatures--preview { grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 22px 0; }
.wk-creature a {
  position: relative; display: flex; flex-direction: column; height: 100%; padding: 12px 14px 18px; overflow: hidden;
  border: 1px solid var(--wk-line); border-radius: 18px; background: linear-gradient(170deg, var(--wk-panel-2), var(--wk-panel));
  transition: border-color .2s, transform .25s var(--ease);
}
.wk-creature a:hover { border-color: color-mix(in srgb, var(--t) 70%, transparent); transform: translateY(-3px); }
.wk-creature__art {
  display: grid; place-items: center; aspect-ratio: 1; margin-bottom: 12px; border-radius: 12px; overflow: hidden;
  background: radial-gradient(circle at 50% 62%, color-mix(in srgb, var(--t) 22%, transparent), transparent 62%), #070c12;
}
.wk-creature__img { width: 88%; height: 88%; object-fit: contain; filter: var(--wk-icon) drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); transition: transform .35s var(--ease), filter .35s; }
.wk-creature a:hover .wk-creature__img { transform: scale(1.05); filter: var(--wk-icon-hover) drop-shadow(0 10px 20px rgba(0, 0, 0, .7)); }
.wk-creature__tier { font: 500 10px/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--t); }
.wk-creature__name { margin: 6px 0 6px; font: 900 32px/.92 var(--display); text-transform: uppercase; color: #fff; }
.wk-creature__punish { font: 400 13.5px/1.4 var(--body); color: var(--wk-dim); }
.wk-silhouette {
  display: grid; place-items: center; width: 60%; height: auto; aspect-ratio: 1; align-self: center; justify-self: center; border-radius: 50%;
  border: 1px dashed var(--wk-line-2); color: var(--wk-faint); font: 900 54px/1 var(--display);
}
.wk-creature__veil {
  position: absolute; inset: 12px 14px auto; aspect-ratio: 1; display: none; place-content: center; gap: 8px; padding: 18px; text-align: center;
  font: 400 13px/1.4 var(--body); color: var(--wk-dim);
}
.wk-creature__veil b { font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--wk-red); }
.wk-js .is-spoiler:not(.is-revealed) .wk-creature__veil { display: grid; }
.wk-js .is-spoiler:not(.is-revealed) .wk-creature__img { filter: blur(16px) brightness(.35); transform: scale(1.1); }
.wk-js .is-spoiler:not(.is-revealed) .wk-creature__name,
.wk-js .is-spoiler:not(.is-revealed) .wk-creature__punish { filter: blur(7px); user-select: none; }

/* creature file */
.wk-cfile { position: relative; padding-top: 30px; }
.wk-cfile__head { display: grid; grid-template-columns: minmax(260px, 420px) minmax(0, 1fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.wk-cfile__art {
  position: relative; display: grid; place-items: center; aspect-ratio: 1; border-radius: 26px; overflow: hidden;
  border: 1px solid var(--wk-line);
  background: radial-gradient(circle at 50% 64%, color-mix(in srgb, var(--t) 30%, transparent), transparent 60%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, .025) 0 1px, transparent 1px 4px), #060b11;
}
.wk-cfile__art img { width: 90%; height: 90%; object-fit: contain; filter: var(--wk-icon-hover) drop-shadow(0 20px 40px rgba(0, 0, 0, .8)); }
.wk-cfile__art .wk-silhouette { width: 50%; font-size: 120px; }
.wk-cfile__art::after { content: ""; position: absolute; inset: 0; box-shadow: inset 0 0 80px rgba(0, 0, 0, .7); pointer-events: none; }
.wk-cfile .wk-eyebrow { color: var(--t); }
.wk-cfile__aka, .wk-cfile__quote { margin: 12px 0 0 !important; font: 500 12px/1.4 var(--mono) !important; letter-spacing: .1em; text-transform: uppercase; color: var(--wk-faint) !important; }
.wk-cfile__quote { font-style: italic !important; text-transform: none; letter-spacing: .02em; font-size: 14px !important; }
.wk-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 26px 0 0; border: 1px solid var(--wk-line); border-radius: 16px; overflow: hidden; background: var(--wk-line); }
.wk-facts div { padding: 14px 16px; background: var(--wk-panel); }
.wk-facts dt, .wk-kv dt { font: 500 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wk-faint); }
.wk-facts dd { margin: 6px 0 0; font: 600 16px/1.3 var(--body); color: #fff; }
.wk-facts .wk-death { font: 900 22px/1 var(--display); color: var(--wk-red); letter-spacing: .02em; }
.wk-survive { margin-top: 54px; padding: clamp(22px, 3vw, 34px); border: 1px solid color-mix(in srgb, var(--t) 35%, transparent); border-radius: 22px; background: linear-gradient(160deg, color-mix(in srgb, var(--t) 8%, transparent), transparent 55%); }
.wk-survive .wk-steps { margin-bottom: 0; }
.wk-survive .wk-steps li { font-size: 16.5px; color: #d7e1e9; }
.wk-survive .wk-steps li::before { color: var(--t); }
.wk-cfile__cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 40px; margin-top: 54px; }
.wk-cfile h2 { font-size: clamp(30px, 3vw, 42px); }
.wk-cfile section + section { margin-top: 0; }
.wk-cfile > section { margin-top: 54px; }
.wk-kv { display: grid; gap: 1px; margin: 0; border: 1px solid var(--wk-line); border-radius: 14px; overflow: hidden; background: var(--wk-line); }
.wk-kv div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 16px; background: var(--wk-panel); }
.wk-kv dd { margin: 0; text-align: right; font: 500 14px/1.3 var(--body); color: #fff; }
.wk-card .wk-kv { margin-top: 12px; }
.wk-related { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px; }
.wk-related a { display: flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border: 1px solid var(--wk-line); border-radius: 999px; background: var(--wk-panel); font: 600 14px/1 var(--body); transition: border-color .2s; }
.wk-related a:hover { border-color: var(--wk-red); }
.wk-related img, .wk-related .wk-silhouette { width: 56px; height: 56px; object-fit: contain; border-radius: 50%; background: #070c12; }
.wk-related img { filter: var(--wk-icon); }
.wk-related .wk-silhouette { font-size: 22px; }
.wk-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 60px; }
.wk-pager a { display: grid; gap: 8px; padding: 18px 20px; border: 1px solid var(--wk-line); border-radius: 16px; background: var(--wk-panel); transition: border-color .2s; }
.wk-pager a:last-child { text-align: right; }
.wk-pager a:hover { border-color: var(--wk-red); }
.wk-pager span { font: 500 10px/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wk-faint); }
.wk-pager strong { font: 900 28px/1 var(--display); text-transform: uppercase; }

/* spoiler gate on a creature file (JS shows it) */
.wk-gate { display: none; }
.wk-js .wk-cfile.is-spoiler:not(.is-revealed) .wk-gate {
  position: absolute; z-index: 5; top: 120px; left: 50%; transform: translateX(-50%);
  display: grid; justify-items: center; gap: 12px; width: min(440px, 100%); padding: 30px 26px; text-align: center;
  border: 1px solid rgba(229, 72, 106, .45); border-radius: 22px; background: rgba(8, 12, 18, .92); box-shadow: 0 30px 80px rgba(0, 0, 0, .6);
}
.wk-gate p { margin: 0 !important; }
.wk-gate__label { font: 500 11px/1 var(--mono) !important; letter-spacing: .26em; text-transform: uppercase; color: var(--wk-red) !important; }
.wk-gate a { font: 400 13px/1 var(--body); color: var(--wk-faint); text-decoration: underline; }
.wk-js .wk-cfile.is-spoiler:not(.is-revealed) > :not(.wk-gate) { filter: blur(18px); pointer-events: none; user-select: none; }
.wk-js .wk-cfile.is-spoiler:not(.is-revealed) { min-height: 560px; }

/* ---------- moderators ---------- */
.wk-modcta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px;
  margin: 80px 0 0; padding: 22px 24px; border: 1px solid rgba(229, 72, 106, .35); border-radius: 18px;
  background: radial-gradient(80% 140% at 0% 0%, rgba(229, 72, 106, .12), transparent 60%), var(--wk-panel); }
.wk-modcta p { margin: 0 !important; }
.wk-modcta__kicker { font: 500 10px/1.3 var(--mono) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--wk-red) !important; }
.wk-modcta__text { margin-top: 6px !important; font: 900 26px/1 var(--display) !important; text-transform: uppercase; color: #fff !important; }
.wk-modcta + .wk-updated { margin-top: 28px !important; }
.wk-apply { max-width: 760px; padding: 46px 0 10px; }
.wk-apply__status { display: flex; gap: 16px; align-items: flex-start; margin: 34px 0 26px; padding: 22px 24px; border: 1px solid var(--wk-line-2); border-radius: 18px; background: var(--wk-panel); }
.wk-apply__dot { flex: none; width: 12px; height: 12px; margin-top: 7px; border-radius: 50%; background: #e0a43c; box-shadow: 0 0 14px rgba(224, 164, 60, .7); }
.wk-apply__status p { margin: 0 !important; }
.wk-apply__title { margin-bottom: 6px !important; font: 900 30px/1 var(--display) !important; text-transform: uppercase; color: #fff !important; }
.wk-apply__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.wk-apply h1 { font-size: clamp(50px, 7vw, 104px); }

/* ---------- updates ---------- */
.wk-filters--plain { position: static; }
.wk-posts { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 12px; }
.wk-post a { position: relative; display: flex; flex-direction: column; gap: 10px; height: 100%; padding: 18px; overflow: hidden;
  border: 1px solid var(--wk-line); border-radius: 18px; background: linear-gradient(170deg, var(--wk-panel-2), var(--wk-panel)); transition: border-color .2s, transform .25s var(--ease); }
.wk-post a:hover { border-color: rgba(229, 72, 106, .6); transform: translateY(-2px); }
.wk-post__cover { display: block; margin: -18px -18px 4px; aspect-ratio: 16 / 9; overflow: hidden; background: #070b10; }
.wk-post__cover img { width: 100%; height: 100%; object-fit: cover; }
.wk-post__meta { display: flex; justify-content: space-between; gap: 10px; font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wk-faint); }
.wk-post__cat { color: var(--wk-red); }
.wk-post__title { font: 900 28px/.95 var(--display); text-transform: uppercase; color: #fff; }
.wk-post__summary { flex: 1; font: 400 14.5px/1.55 var(--body); color: var(--wk-dim); }
.wk-by { display: inline-flex; align-items: center; gap: 10px; }
.wk-by__avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid rgba(229, 72, 106, .5); background: rgba(229, 72, 106, .12); font: 900 17px/1 var(--display); color: #fff; }
.wk-by b { display: block; font: 600 14px/1.2 var(--body); color: #fff; }
.wk-by small { display: block; font: 400 11px/1.3 var(--mono); color: var(--wk-faint); }
.wk-post__veil { position: absolute; inset: 0; display: none; place-content: center; gap: 8px; text-align: center; font: 400 13px/1.4 var(--body); color: var(--wk-dim); }
.wk-post__veil b { font: 500 10px/1 var(--mono); letter-spacing: .24em; text-transform: uppercase; color: var(--wk-red); }
.wk-js .wk-post.is-spoiler:not(.is-revealed) .wk-post__veil { display: grid; }
.wk-js .wk-post.is-spoiler:not(.is-revealed) a > :not(.wk-post__veil) { filter: blur(12px); user-select: none; }
.wk-empty--left { text-align: left; padding: 10px 0; color: var(--wk-faint); }
.wk-article__head { padding-bottom: 24px; }
.wk-article h1 { font-size: clamp(44px, 5.4vw, 84px); line-height: .9; text-wrap: balance; }
.wk-article__head .wk-by { margin-top: 22px; }
.wk-article__body { max-width: 72ch; }
.wk-article__body h3, .wk-article__body h4 { margin: 34px 0 10px; font: 900 30px/1 var(--display); text-transform: uppercase; color: #fff; }
.wk-article__body h4 { font-size: 22px; }
.wk-article__body ul, .wk-article__body ol { margin: 0 0 16px; padding-left: 22px; }
.wk-article__body li { margin-bottom: 6px; }
.wk-article__body img { display: block; max-width: 100%; height: auto; margin: 20px 0; border-radius: 14px; border: 1px solid var(--wk-line); }
.wk-article__body blockquote { margin: 20px 0; padding: 4px 0 4px 18px; border-left: 3px solid var(--wk-red); }
.wk-article__body a { color: var(--wk-cyan); text-decoration: underline; text-underline-offset: 3px; }
.wk-article__body code { padding: 2px 6px; border-radius: 5px; background: rgba(255, 255, 255, .07); font: 400 .9em var(--mono); }
.wk-back { margin-top: 40px; }

/* ---------- seasonal teaser (spoiler) ---------- */
.wk-soon { position: relative; padding: clamp(22px, 3vw, 34px); border: 1px solid rgba(240, 140, 50, .35); border-radius: 22px;
  background: radial-gradient(90% 120% at 100% 0%, rgba(240, 120, 40, .12), transparent 60%), linear-gradient(170deg, var(--wk-panel-2), var(--wk-panel)); }
.wk-soon .wk-eyebrow { color: #f39a4a; }
.wk-soon__teaser { color: var(--wk-dim); }
.wk-soon__wrap { position: relative; margin-top: 18px; }
.wk-soon__cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.wk-soon--4 .wk-soon__cards { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.wk-soon__card { display: grid; align-content: start; gap: 6px; padding: 16px; border: 1px solid var(--wk-line); border-radius: 16px; background: rgba(5, 9, 14, .6); }
.wk-soon__art { display: grid; place-items: center; height: 96px; margin-bottom: 8px; border-radius: 12px; background: radial-gradient(circle at 50% 60%, rgba(240, 120, 40, .16), transparent 66%), #070b10; }
.wk-soon__img { width: 104px; height: 104px; object-fit: contain; filter: var(--wk-icon) sepia(.35) hue-rotate(-15deg) drop-shadow(0 10px 18px rgba(0, 0, 0, .7)); }
.wk-soon__label { font: 900 52px/1 var(--display); color: #f39a4a; letter-spacing: .02em; opacity: .85; }
.wk-soon__kind { font: 500 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: #f39a4a; }
.wk-soon__card strong { font: 900 26px/1 var(--display); text-transform: uppercase; color: #fff; }
.wk-soon__card p { margin: 4px 0 0; font-size: 14.5px; line-height: 1.55; }
.wk-soon__veil { display: none; }
.wk-soon__hide { display: none; margin-top: 14px; border: 0; background: none; color: var(--wk-faint); font: 400 12px/1 var(--mono); text-decoration: underline; cursor: pointer; }
.wk-js .wk-soon.is-revealed .wk-soon__hide { display: inline-block; }
.wk-js .wk-soon[data-spoiler]:not(.is-revealed) .wk-soon__cards { filter: blur(16px); pointer-events: none; user-select: none; }
.wk-js .wk-soon[data-spoiler]:not(.is-revealed) .wk-soon__veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 14px; }

/* ---------- MULE / sites / progression ---------- */
.wk-bill { list-style: none; margin: 0; padding: 18px; display: grid; gap: 7px; border: 1px solid var(--wk-line); border-radius: 18px; background: var(--wk-panel); }
.wk-bill li { display: grid; grid-template-columns: 62px 1fr auto; align-items: center; gap: 12px; font: 400 12px/1 var(--mono); color: var(--wk-faint); }
.wk-bill li::after { content: ""; grid-column: 2; grid-row: 1; height: 10px; width: calc(var(--v) * 100%); min-width: 6px; border-radius: 5px; background: linear-gradient(90deg, #b8304f, var(--wk-red)); }
.wk-bill b { grid-column: 3; font: 500 13px/1 var(--mono); color: #fff; }
.wk-bill b::after { content: " CR"; color: var(--wk-faint); font-weight: 400; }

.wk-sites { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 8px; }
.wk-site { display: grid; grid-template-columns: 110px 1fr auto; gap: 20px; align-items: center; padding: 18px 20px; border: 1px solid var(--wk-line); border-radius: 16px; background: var(--wk-panel); }
.wk-site:nth-child(n+3) { background: linear-gradient(90deg, rgba(20, 50, 80, .25), var(--wk-panel) 40%); }
.wk-site--deep { border-color: rgba(229, 72, 106, .4); background: linear-gradient(90deg, rgba(229, 72, 106, .12), var(--wk-panel) 50%) !important; }
.wk-site__depth { font: 900 30px/1 var(--display); color: var(--wk-cyan); }
.wk-site--deep .wk-site__depth { color: var(--wk-red); }
.wk-site h3 { margin: 0 0 4px; font: 900 24px/1 var(--display); text-transform: uppercase; }
.wk-site p { margin: 0 !important; font-size: 14.5px !important; }
.wk-site em { color: var(--r-legendary); font-style: normal; }
.wk-site__tag { font: 500 10px/1.3 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--wk-faint); white-space: nowrap; }
.wk-depth { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; margin: 20px 0; border: 1px solid var(--wk-line); border-radius: 16px; overflow: hidden; background: var(--wk-line); }
.wk-depth div { padding: 18px; background: var(--wk-panel); }
.wk-depth div:nth-child(2) { background: #0a131e; }
.wk-depth div:nth-child(3) { background: #08101a; }
.wk-depth div:nth-child(4) { background: #060c14; }
.wk-depth span { font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--wk-cyan); }
.wk-depth p { margin: 10px 0 0 !important; font-size: 14.5px !important; }
.wk-risk { font-weight: 600 !important; }
.wk-risk--low { color: var(--r-uncommon) !important; }
.wk-risk--med { color: #e6c84a !important; }
.wk-risk--high { color: var(--r-legendary) !important; }
.wk-risk--ext { color: var(--r-abyssal) !important; }

.wk-ranks { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.wk-ranks li { display: grid; gap: 6px; padding: 16px; border: 1px solid var(--wk-line); border-radius: 14px; background: var(--wk-panel); font: 600 14px/1.2 var(--body) !important; color: #fff !important; }
.wk-ranks span { font: 500 10px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--wk-faint); }
.wk-ranks b { font: 900 30px/1 var(--display) !important; color: var(--wk-cyan) !important; }
.wk-ranks li:nth-child(n+7) b { color: var(--wk-red) !important; }

.wk-deaths { list-style: none; margin: 20px 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 8px; }
.wk-deaths li { display: grid; gap: 4px; padding: 12px 14px; border: 1px solid var(--wk-line); border-radius: 12px; background: var(--wk-panel); }
.wk-deaths b { font: 900 19px/1 var(--display) !important; letter-spacing: .02em; color: #fff !important; }
.wk-deaths span { font-size: 13px; color: var(--wk-faint); }
.wk-deaths a { color: var(--wk-cyan); }

.wk-tabs-local__bar { display: none; gap: 6px; margin: 20px 0 0; }
.wk-js .wk-tabs-local__bar { display: flex; }
.wk-tabs-local__bar button { height: 38px; padding: 0 18px; border: 1px solid var(--wk-line-2); border-radius: 999px; background: none; color: var(--wk-dim); font: 500 13px/1 var(--body); cursor: pointer; }
.wk-tabs-local__bar [aria-selected="true"] { color: #fff; border-color: var(--wk-red); background: rgba(229, 72, 106, .14); }
.wk-tabs-local__title { padding: 16px 16px 0; }
.wk-js .wk-tabs-local__title { display: none; }
.wk-js [role="tabpanel"][hidden] { display: none; }

.wk-iconrow { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
.wk-inline-icon { width: 140px; height: 140px; object-fit: contain; padding: 10px; filter: var(--wk-icon); border: 1px solid var(--wk-line); border-radius: 18px; background: radial-gradient(circle, rgba(143, 208, 230, .12), transparent 70%), var(--wk-panel); }
.wk-iconrow--wide .wk-inline-icon { width: min(100%, 300px); height: 150px; object-fit: cover; padding: 0 16px; }
.wk-sec .wk-inline-icon { width: 100%; height: 100%; padding: 4px; border: 0; background: none; }

.wk-credits__team { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 20px 0; }
.wk-credits__team div { display: grid; gap: 8px; padding: 18px; border: 1px solid rgba(229, 72, 106, .3); border-radius: 16px; background: var(--wk-panel); }
.wk-credits__team b { font: 900 34px/1 var(--display); text-transform: uppercase; color: #fff; }
.wk-credits__team span { font: 400 14px/1.5 var(--body); color: var(--wk-dim); }
.wk-credits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; margin: 0; border: 1px solid var(--wk-line); border-radius: 16px; overflow: hidden; background: var(--wk-line); }
.wk-credits__list div { padding: 16px 18px; background: var(--wk-panel); }
.wk-credits__list dt { font: 500 10px/1.3 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--wk-faint); }
.wk-credits__list dd { margin: 6px 0 0; font: 600 16px/1.4 var(--body); color: #fff; }
.wk-credits__thanks-title { margin: 28px 0 8px !important; font: 500 10px/1 var(--mono) !important; letter-spacing: .2em; text-transform: uppercase; color: var(--r-legendary) !important; }
.wk-credits__thanks { font-size: 15px !important; line-height: 1.9 !important; max-width: none !important; }

/* ---------- responsive ---------- */
@media (max-width: 1320px) {
  .wk-bar__brand small { display: none; }
  .wk-search { flex-basis: 180px; }
}
@media (max-width: 1180px) {
  .wk-layout--toc { grid-template-columns: minmax(0, 1fr); }
  .wk-toc { display: none; }
  /* search folds into an icon and opens over the tabs */
  .wk-search { flex: 0 0 38px; }
  .wk-search input { padding-right: 0; cursor: pointer; }
  .wk-search:focus-within { position: absolute; right: 10px; left: 22px; z-index: 2; }
  .wk-search:focus-within input { padding-right: 14px; cursor: text; background-color: #0b121b; }
}
@media (max-width: 900px) {
  .wk-sections, .wk-cards--3, .wk-cards--helmets, .wk-creatures--preview, .wk-credits__team { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-split, .wk-cfile__cols { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .wk-cfile__cols { gap: 54px; }
  .wk-cfile__head { grid-template-columns: minmax(0, 1fr); }
  .wk-cfile__art { width: min(100%, 420px); }
  .wk-depth, .wk-ranks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .wk-tips { grid-template-columns: minmax(0, 1fr); }
  .wk-soon__cards, .wk-soon--4 .wk-soon__cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  /* phones: the bar is part of the page again, under the header */
  .wk { padding-top: calc(var(--nav-inset, 12px) + 86px); }
  .wk-bar, body.is-scrolled .wk-bar {
    position: relative; top: auto; left: auto; right: auto; z-index: auto;
    flex-wrap: wrap; gap: 12px; height: auto; margin: 0 auto; padding: 0 var(--gutter) 12px;
    border: 0; border-bottom: 1px solid var(--wk-line); border-radius: 0;
    background: none; -webkit-backdrop-filter: none; backdrop-filter: none; box-shadow: none;
  }
  .wk-bar__brand span { font-size: 22px; }
  .wk-bar__brand small { display: inline; }
  .wk-search { flex: 1 1 100%; order: 2; }
  .wk-search input { padding-right: 14px; cursor: text; }
  .wk-search:focus-within { position: relative; left: auto; right: auto; }
  .wk-tabs { order: 3; flex-basis: 100%; margin: 0 calc(var(--gutter) * -1); padding: 0 var(--gutter); mask-image: none; }
  .wk-pagehead { padding: 30px 0 22px; }
  .wk-hero { border-radius: 20px; }
  .wk-hero__art::after { background: linear-gradient(0deg, #060c13 30%, rgba(6, 12, 19, .7)); }
  .wk-hero__stats div { min-width: 0; flex: 1 1 40%; }
  .wk-sections, .wk-cards--2, .wk-cards--3, .wk-cards--helmets, .wk-credits__team, .wk-credits__list, .wk-gallery { grid-template-columns: minmax(0, 1fr); }
  .wk-creatures, .wk-creatures--preview { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wk-creature a { padding: 8px 10px 14px; border-radius: 14px; }
  .wk-creature__name { font-size: 25px; }
  .wk-creature__punish { font-size: 12.5px; }
  .wk-creature__veil { inset: 8px 10px auto; font-size: 12px; padding: 8px; }
  .wk-items { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wk-item__face { padding: 10px 10px 14px; }
  .wk-item__name { font-size: 14px; }
  .wk-filters { position: static; padding: 10px; gap: 8px; border-radius: 14px; }
  .wk-filters .wk-field:not(.wk-field--search) span { display: none; }
  .wk-chiprow { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; scrollbar-width: none; }
  .wk-chipbtn { flex: none; height: 32px; padding: 0 11px; }
  .wk-site { grid-template-columns: 1fr auto; gap: 8px 14px; padding: 16px; }
  .wk-site > div { grid-column: 1 / -1; grid-row: 2; }
  .wk-site__depth { font-size: 26px; }
  .wk-depth { grid-template-columns: minmax(0, 1fr); }
  .wk-steps li { padding-left: 54px; }
  .wk-td-icon { width: 68px; padding-left: 8px !important; }
  .wk-td-icon img { width: 56px; height: 56px; }
  .wk-survive { padding: 20px 14px; border-radius: 18px; }
  .wk-steps li::before { left: 14px; }
  .wk-inspect__body { grid-template-columns: minmax(0, 1fr); padding: 22px; }
  .wk-inspect__icon { width: 150px; margin: 0 auto; }
  .wk-pager strong { font-size: 22px; }
  :where(.wk-content) :where(p, li) { font-size: 15.5px; }
  .wk-js .wk-cfile.is-spoiler:not(.is-revealed) .wk-gate { top: 60px; }
}
@media (prefers-reduced-motion: reduce) {
  .wk *, .wk *::before { transition: none !important; }
  .wk-creature a:hover, .wk-sec:hover, .wk-item:hover .wk-item__icon img, .wk-creature a:hover .wk-creature__img { transform: none; }
}

/* ---------- glow ---------- */
.wk h1 { text-shadow: 0 0 40px rgba(143, 208, 230, .18); }
.wk-eyebrow { text-shadow: 0 0 14px rgba(229, 72, 106, .45); }
.wk-tabs a[aria-current] { box-shadow: inset 0 0 0 1px rgba(229, 72, 106, .6), 0 0 18px rgba(229, 72, 106, .28); }
.wk-card, .wk-steps li, .wk-tips li, .wk-tablewrap, .wk-site, .wk-ranks li, .wk-deaths li, .wk-facts, .wk-kv, .wk-bill {
  box-shadow: 0 1px 0 rgba(255, 255, 255, .04) inset, 0 18px 40px -24px rgba(0, 0, 0, .8);
}
.wk-item:hover { box-shadow: 0 0 0 1px color-mix(in srgb, var(--r) 45%, transparent), 0 14px 40px -12px color-mix(in srgb, var(--r) 40%, transparent); }
.wk-item__icon { box-shadow: inset 0 0 30px color-mix(in srgb, var(--r) 10%, transparent); }
.wk-creature a:hover { box-shadow: 0 16px 50px -14px color-mix(in srgb, var(--t) 45%, transparent); }
.wk-creature__art { box-shadow: inset 0 0 40px color-mix(in srgb, var(--t) 10%, transparent); }
.wk-sec:hover { box-shadow: 0 16px 50px -16px rgba(229, 72, 106, .4); }
.wk-cfile__art { box-shadow: 0 0 90px -20px color-mix(in srgb, var(--t) 35%, transparent), inset 0 0 80px rgba(0, 0, 0, .5); }
.wk-survive { box-shadow: 0 0 70px -30px color-mix(in srgb, var(--t) 45%, transparent); }
.wk-hero { box-shadow: 0 30px 90px -40px rgba(56, 150, 190, .45); }
.wk-soon { box-shadow: 0 0 80px -36px rgba(243, 154, 74, .5); }
.wk-modcta { box-shadow: 0 0 70px -34px rgba(229, 72, 106, .55); }
.wk-search input:focus, .wk-field input:focus { box-shadow: 0 0 0 3px rgba(143, 208, 230, .14), 0 0 24px rgba(143, 208, 230, .18); }
@media (prefers-reduced-motion: reduce) { .wk-item:hover, .wk-creature a:hover, .wk-sec:hover { box-shadow: none; } }

/* ---------- flashlight skins and traps ---------- */
.wk-kv--wide { margin: 14px 0 10px; }
.wk-skins { list-style: none; margin: 14px 0 30px; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.wk-skin { display: flex; flex-direction: column; gap: 6px; padding: 14px 16px 18px; border: 1px solid var(--wk-line); border-radius: 18px; background: linear-gradient(170deg, var(--wk-panel-2), var(--wk-panel)); }
.wk-skin__art { display: grid; place-items: center; aspect-ratio: 4 / 3; margin-bottom: 6px; border-radius: 12px;
  background: radial-gradient(circle at 50% 60%, rgba(244, 166, 42, .16), transparent 66%), rgba(255, 255, 255, .02); }
.wk-skin__art img, .wk-skin__art .wk-inline-icon { width: 78%; height: 78%; padding: 0; border: 0; background: none; object-fit: contain; filter: var(--wk-icon) drop-shadow(0 10px 18px rgba(0, 0, 0, .6)); }
.wk-skin__price { font: 500 10px/1.3 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--r-legendary); }
.wk-skin strong { font: 900 26px/1 var(--display); text-transform: uppercase; color: #fff; }
.wk-skin em { font: italic 400 13.5px/1.45 var(--body); color: var(--wk-dim); }
.wk-skin__perk { margin-top: auto; padding-top: 6px; font: 600 14px/1.35 var(--body); color: #fff; }
.wk-skin__num { font: 400 11.5px/1.4 var(--mono); color: var(--wk-faint); }
.wk-bundle { display: grid; grid-template-columns: 180px 1fr; gap: 22px; align-items: center; padding: 18px 22px; border: 1px solid rgba(244, 166, 42, .35); border-radius: 18px;
  background: radial-gradient(90% 140% at 0% 50%, rgba(244, 166, 42, .1), transparent 60%), var(--wk-panel); }
.wk-bundle__art .wk-inline-icon { width: 100%; height: auto; padding: 0; border: 0; background: none; }
.wk-bundle p:last-child { margin: 0; }
.wk-trap { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 26px; align-items: start; margin: 22px 0 30px; padding: 20px; border: 1px solid rgba(229, 72, 106, .3); border-radius: 20px;
  background: linear-gradient(160deg, rgba(229, 72, 106, .07), var(--wk-panel) 55%); }
.wk-trap__shot { margin: 0; }
.wk-trap .wk-card__kicker { color: var(--wk-red); }
.wk-trap h3 { font: 900 34px/1 var(--display); text-transform: uppercase; }
.wk-trap .wk-kv { margin: 14px 0; }
.wk-tip { margin: 0 !important; font-size: 15px !important; }
.wk-tip b { margin-right: 8px; font: 500 10px/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--wk-cyan); }
@media (max-width: 900px) { .wk-trap { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 700px) {
  .wk-skins { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .wk-skin { padding: 10px 10px 14px; }
  .wk-skin strong { font-size: 21px; }
  .wk-bundle { grid-template-columns: 110px 1fr; gap: 14px; padding: 14px; }
  .wk-trap { padding: 14px; }
}
