/* StrainBorn wiki (/wiki), loaded after style.css. Everything here is prefixed w- so it never collides with the
   main site. Layout: the site header, the wiki bar (brand, search, Browse), then a grid of the sidebar, the page
   and (on wide screens) an "On this page" panel. Below 1024px the sidebar becomes a drawer (wiki.js). */
:root {
  --w-side: 264px; --w-toc: 216px; --w-bar: 56px; --w-top: var(--top, 64px);
  --w-stick: calc(var(--w-top) + var(--w-bar));
  --w-ink: #120812;
}

/* ---------- basics ---------- */
.w-skip { position: absolute; left: 12px; top: -80px; z-index: 100; padding: 10px 18px; border-radius: 999px; background: var(--mint, #7DFFB3);
  color: var(--w-ink); font: 800 15px var(--font); text-decoration: none; }
.w-skip:focus { top: 12px; text-decoration: none; }
.w-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
.w-caps { margin: 0; font: 900 11px/1.3 var(--font); letter-spacing: 2px; text-transform: uppercase; color: var(--c, var(--text-3, rgba(255,255,255,.56))); }
[class^="w-"] .arrow, [class*=" w-"] .arrow, [class^="w-"] .chev, [class*=" w-"] .chev {
  width: 11px; height: 11px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.w-book { width: 18px; height: 18px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.w-bar a:focus-visible, .w-bar button:focus-visible, .w-side a:focus-visible, .w-side button:focus-visible, .w-side summary:focus-visible,
.w-main a:focus-visible, .w-main button:focus-visible, .w-main summary:focus-visible, .w-toc a:focus-visible {
  outline: 2px solid var(--mint, #7DFFB3); outline-offset: 2px; }
.w-main:focus { outline: none; }

/* ---------- the wiki bar ---------- */
.w-bar { position: sticky; top: var(--w-top); z-index: 40; background: rgba(24, 10, 23, .84); border-bottom: 1px solid var(--line, rgba(255,255,255,.09));
  -webkit-backdrop-filter: blur(16px) saturate(140%); backdrop-filter: blur(16px) saturate(140%); }
.w-bar-in { max-width: 1520px; height: var(--w-bar); margin: 0 auto; padding: 0 20px; display: flex; align-items: center; gap: 14px; }
.w-brand { display: flex; align-items: center; gap: 10px; flex: none; color: var(--text-2, rgba(255,255,255,.78)); font: 700 17px var(--font); white-space: nowrap; text-decoration: none; }
.w-brand:hover { color: #fff; text-decoration: none; }
.w-brand b { color: #fff; font-weight: 900; }
.w-brand-ico { width: 30px; height: 30px; }
.w-browse { display: none; align-items: center; gap: 8px; flex: none; height: 40px; padding: 0 14px 0 10px; border-radius: 999px;
  border: 1px solid var(--line-2, rgba(255,255,255,.16)); background: rgba(255, 255, 255, .06); color: #fff; font: 800 14px var(--font); cursor: pointer; }
.w-browse:hover { background: rgba(255, 255, 255, .1); }
.w-browse svg, .w-side-x svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; }
.w-browse .w-dots { stroke-width: 3; }

/* ---------- search ---------- */
.w-search { position: relative; }
.w-search-bar { margin-left: auto; width: min(460px, 100%); }
.w-field { position: relative; display: flex; align-items: center; }
.w-field > svg { position: absolute; left: 14px; width: 18px; height: 18px; fill: none; stroke: var(--text-3, rgba(255,255,255,.56)); stroke-width: 2;
  stroke-linecap: round; pointer-events: none; }
.w-search input { width: 100%; height: 40px; margin: 0; padding: 0 40px 0 42px; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.16));
  background: rgba(255, 255, 255, .06); color: #fff; font: 500 15px var(--body-font, system-ui); outline: none; -webkit-appearance: none; appearance: none;
  transition: border-color .15s, background-color .15s, box-shadow .15s; }
.w-search input::placeholder { color: var(--text-3, rgba(255,255,255,.56)); opacity: 1; }
.w-search input::-webkit-search-decoration, .w-search input::-webkit-search-cancel-button { -webkit-appearance: none; }
.w-search input:focus { border-color: rgba(125, 255, 179, .7); background: rgba(255, 255, 255, .09); box-shadow: 0 0 0 4px rgba(125, 255, 179, .16); }
.w-kbd { position: absolute; right: 12px; min-width: 22px; height: 22px; padding: 0 5px; display: grid; place-items: center; border-radius: 6px;
  border: 1px solid var(--line-2, rgba(255,255,255,.16)); color: var(--text-3, rgba(255,255,255,.56)); font: 700 12px var(--body-font, system-ui); pointer-events: none; }
.w-search input:focus ~ .w-kbd, .w-search input:not(:placeholder-shown) ~ .w-kbd { display: none; }
@media (hover: none) { .w-kbd { display: none; } }
.w-drop { position: absolute; z-index: 5; top: calc(100% + 8px); left: 0; right: 0; min-width: 340px; max-height: min(70vh, 560px); overflow: auto;
  overscroll-behavior: contain; padding: 6px; border-radius: 16px; background: #1e0d1c; border: 1px solid var(--line-2, rgba(255,255,255,.16));
  box-shadow: 0 24px 60px rgba(0, 0, 0, .55); text-align: left; }
.w-drop[hidden] { display: none; }
.w-opt { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 8px 10px; border-radius: 11px;
  color: #fff; text-decoration: none; }
.w-opt:hover, .w-opt[aria-selected="true"] { background: color-mix(in srgb, var(--c, #7DFFB3) 16%, transparent); text-decoration: none; }
.w-dot { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: color-mix(in srgb, var(--c, #7DFFB3) 20%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 50%, transparent); color: var(--c, #7DFFB3); font: 900 13px var(--font); }
.w-opt b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 700 15px/1.3 var(--body-font, system-ui); }
.w-opt small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text-3, rgba(255,255,255,.56)); font: 500 12.5px/1.35 var(--body-font, system-ui); }
.w-kind { color: var(--text-3, rgba(255,255,255,.56)); font: 800 10px var(--font); letter-spacing: 1.2px; text-transform: uppercase; white-space: nowrap; }
.w-opt mark, .w-res mark { background: none; color: var(--mint, #7DFFB3); }
.w-drop-all { display: flex; align-items: center; justify-content: center; gap: 6px; min-height: 42px; margin-top: 4px; border-top: 1px solid var(--line, rgba(255,255,255,.09));
  font: 800 14px var(--font); color: var(--mint, #7DFFB3); }
.w-drop-all[aria-selected="true"] { background: rgba(125, 255, 179, .1); border-radius: 0 0 11px 11px; }
.w-drop-msg { margin: 0; padding: 14px 12px; color: var(--text-3, rgba(255,255,255,.56)); font: 500 14px var(--body-font, system-ui); }

/* ---------- layout ---------- */
.w-shell { max-width: 1520px; margin: 0 auto; padding: 0 20px; display: grid; grid-template-columns: var(--w-side) minmax(0, 1fr); gap: 36px; align-items: start; }
.w-main { min-width: 0; padding: 24px 0 72px; container-type: inline-size; }
.w-side { position: sticky; top: var(--w-stick); height: calc(100vh - var(--w-stick)); overflow: auto; overscroll-behavior: contain; scrollbar-width: thin;
  scrollbar-color: rgba(255,255,255,.18) transparent; padding: 18px 4px 40px 0; }
@supports (height: 100dvh) { .w-side { height: calc(100dvh - var(--w-stick)); } }
.w-side-head { display: none; }
.w-side-nav > .w-caps { margin: 18px 10px 6px; }
.w-side-nav a { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; color: var(--text-2, rgba(255,255,255,.78));
  font: 600 14px/1.3 var(--body-font, system-ui); text-decoration: none; }
.w-side-nav a:hover { background: rgba(255, 255, 255, .06); color: #fff; text-decoration: none; }
.w-side-nav a.on { background: color-mix(in srgb, var(--c, #7DFFB3) 15%, transparent); color: #fff; box-shadow: inset 3px 0 0 var(--c, #7DFFB3); }
.w-side-nav a.w-side-home { color: #fff; font: 800 15px var(--font); }
.w-grp summary { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 10px; cursor: pointer; list-style: none; color: #fff;
  font: 800 14.5px/1.25 var(--font); -webkit-user-select: none; user-select: none; }
.w-grp summary::-webkit-details-marker { display: none; }
.w-grp summary:hover { background: rgba(255, 255, 255, .06); }
.w-grp summary > span { flex: 1; min-width: 0; }
.w-grp summary small { color: var(--text-3, rgba(255,255,255,.56)); font: 700 11.5px var(--body-font, system-ui); }
.w-grp-ico { width: 26px; height: 26px; flex: none; }
.w-grp .chev { color: var(--text-3, rgba(255,255,255,.56)); transition: transform .2s; }
.w-grp[open] > summary .chev { transform: rotate(180deg); }
.w-grp-list { margin: 2px 0 8px 22px; padding-left: 8px; border-left: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 35%, transparent); }
.w-grp-list a { padding: 6px 10px; font-size: 13.5px; }
.w-toc, .w-scrim { display: none; }
html.w-lock, html.w-lock body { overflow: hidden; }

@media (min-width: 1280px) {
  .w-shell.w-has-toc { grid-template-columns: var(--w-side) minmax(0, 1fr) var(--w-toc); }
  .w-toc { display: block; position: sticky; top: var(--w-stick); max-height: calc(100vh - var(--w-stick)); overflow: auto; overscroll-behavior: contain;
    scrollbar-width: thin; scrollbar-color: rgba(255,255,255,.18) transparent; padding: 30px 0 40px; }
  .w-otp { display: none; }
}
.w-toc-list { list-style: none; margin: 10px 0 0; padding: 0; border-left: 1px solid var(--line, rgba(255,255,255,.09)); }
.w-toc-list a { display: block; margin-left: -1px; padding: 4px 12px; border-left: 2px solid transparent; color: var(--text-3, rgba(255,255,255,.56));
  font: 500 13px/1.35 var(--body-font, system-ui); text-decoration: none; }
.w-toc-list a:hover { color: #fff; text-decoration: none; }
.w-toc-list a.on { color: #fff; border-left-color: var(--c, #7DFFB3); }

/* the drawer */
@media (max-width: 1023.98px) {
  .w-shell { display: block; }
  .w-browse { display: inline-flex; }
  .w-side { position: fixed; z-index: 70; top: 0; bottom: 0; left: 0; width: min(340px, 88vw); height: auto; padding: 0; overflow: auto;
    background: #1a0b19; border-right: 1px solid var(--line-2, rgba(255,255,255,.16)); box-shadow: 20px 0 60px rgba(0, 0, 0, .5);
    transform: translateX(-104%); visibility: hidden; transition: transform .28s cubic-bezier(.2, .8, .2, 1), visibility 0s linear .28s; }
  .w-side.open { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.2, .8, .2, 1); }
  .w-side-head { position: sticky; top: 0; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
    padding: calc(10px + env(safe-area-inset-top)) 12px 10px 20px; background: #1a0b19; border-bottom: 1px solid var(--line, rgba(255,255,255,.09)); }
  /* the languages, under the title (on wide screens they're in the site's bar) */
  .w-side-lang { flex: 1 1 100%; margin: -4px 0 0 -10px; }
  .w-side-lang a { min-height: 36px; padding: 0 11px; font-size: 13.5px; }
  .w-side-title { margin: 0; font: 900 18px var(--font); }
  .w-side-x { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 999px; border: 1px solid var(--line-2, rgba(255,255,255,.16));
    background: rgba(255, 255, 255, .06); color: #fff; cursor: pointer; }
  .w-side-nav { padding: 6px 12px calc(36px + env(safe-area-inset-bottom)); }
  .w-side-nav a, .w-grp summary { min-height: 44px; }
  .w-scrim { display: block; position: fixed; inset: 0; z-index: 69; background: rgba(8, 3, 8, .62); }
  .w-scrim[hidden] { display: none; }
}

/* ---------- page heads ---------- */
.w-crumbs ol { list-style: none; display: flex; flex-wrap: wrap; margin: 0 0 14px; padding: 0; color: var(--text-3, rgba(255,255,255,.56)); font: 600 13px/1.5 var(--body-font, system-ui); }
.w-crumbs li + li::before { content: "/"; margin: 0 8px; color: rgba(255, 255, 255, .25); }
.w-crumbs a { color: var(--text-2, rgba(255,255,255,.78)); }
.w-head { display: flex; align-items: center; gap: 18px; margin: 4px 0 14px; }
.w-head-ico { width: 76px; height: 76px; flex: none; object-fit: contain; filter: drop-shadow(0 6px 18px color-mix(in srgb, var(--c, #7DFFB3) 40%, transparent)); }
.w-head-text { min-width: 0; }
.w-kicker { margin: 0 0 4px; color: var(--c, #7DFFB3); font: 900 12px/1.3 var(--font); letter-spacing: 2.2px; text-transform: uppercase; }
.w-head h1, .w-hero h1 { margin: 0; color: #fff; font: 900 clamp(30px, 4.4vw, 46px)/1.06 var(--font); letter-spacing: -.4px; overflow-wrap: anywhere;
  background: linear-gradient(180deg, #fff 30%, color-mix(in srgb, var(--c, #7DFFB3) 60%, #fff)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.w-sub { margin: 6px 0 0; color: var(--text-2, rgba(255,255,255,.78)); font: 700 17px/1.35 var(--font); }
.w-intro { max-width: 74ch; margin: 0 0 16px; color: var(--text-2, rgba(255,255,255,.78)); font: 400 17px/1.62 var(--body-font, system-ui); }
.w-meta { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 24px; }
.w-chip { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; padding: 4px 12px; border-radius: 999px; color: #fff; text-decoration: none;
  border: 1px solid color-mix(in srgb, var(--c, #ffffff) 32%, transparent); background: color-mix(in srgb, var(--c, #ffffff) 9%, transparent);
  font: 700 13px/1.2 var(--body-font, system-ui); transition: background-color .15s, border-color .15s; }
a.w-chip:hover { background: color-mix(in srgb, var(--c, #ffffff) 18%, transparent); border-color: color-mix(in srgb, var(--c, #ffffff) 62%, transparent); text-decoration: none; }
.w-chip-plain { color: var(--text-2, rgba(255,255,255,.78)); --c: #ffffff; }
.w-chip b { flex: none; color: #fff; }   /* (the label stays whole; a long value wraps beside it) */
.w-chip-ico { width: 22px; height: 22px; margin-left: -6px; }
.w-shot { margin: 0 0 26px; }
.w-shot .zoom { border-radius: 18px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c, #ffffff) 26%, rgba(255, 255, 255, .1)); background: #000;
  box-shadow: 0 18px 44px rgba(0, 0, 0, .38); }
.w-shot img { width: 100%; height: auto; }
.w-shot figcaption { margin-top: 8px; color: var(--text-3, rgba(255,255,255,.56)); font: 500 13px/1.4 var(--body-font, system-ui); }
.w-lead-shot { max-width: 900px; }

/* ---------- sections ---------- */
.w-sec { margin: 38px 0 0; scroll-margin-top: calc(var(--w-stick) + 16px); }
.w-h2 { display: flex; align-items: center; gap: 10px; margin: 0 0 14px; color: #fff; font: 900 22px/1.2 var(--font); }
.w-h2::before { content: ""; flex: none; width: 5px; height: 22px; border-radius: 3px; background: var(--c, #7DFFB3); }
.w-h3 { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin: 22px 0 10px; font: 800 16px/1.3 var(--font); }
.w-h3 a { color: #fff; }
.w-h3 small { color: var(--text-3, rgba(255,255,255,.56)); font: 600 12.5px var(--body-font, system-ui); }
.w-more { display: inline-flex; align-items: center; gap: 6px; color: var(--mint, #7DFFB3); font: 800 14px/1.3 var(--font); }
.w-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: 999px;
  background: var(--c, #7DFFB3); color: var(--w-ink); font: 900 15px var(--font); white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: transform .15s var(--spring, ease), filter .15s; }
.w-btn:hover { transform: translateY(-1px); filter: brightness(1.08); text-decoration: none; }
.w-btn-ghost { background: rgba(255, 255, 255, .06); color: #fff; border: 1px solid var(--line-2, rgba(255,255,255,.16)); }
.w-btn[hidden] { display: none; }

/* ---------- entries ---------- */
.w-entries { display: grid; gap: 14px; }
.w-entry { position: relative; min-width: 0; padding: 18px 20px 16px 22px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--c, #7DFFB3) 7%, transparent), transparent 70%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid var(--line, rgba(255,255,255,.09)); scroll-margin-top: calc(var(--w-stick) + 16px); }
.w-entry::before { content: ""; position: absolute; left: 0; top: 16px; bottom: 16px; width: 3px; border-radius: 0 3px 3px 0; background: var(--c, #7DFFB3); opacity: .85; }
.w-entry:target { border-color: color-mix(in srgb, var(--c, #7DFFB3) 70%, transparent);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--c, #7DFFB3) 22%, transparent), 0 18px 40px rgba(0, 0, 0, .3); animation: w-flash 1.8s ease-out 1; }
@keyframes w-flash { from { background-color: color-mix(in srgb, var(--c, #7DFFB3) 24%, transparent); } }
.w-ehead { display: flex; align-items: center; gap: 14px; margin-bottom: 8px; }
.w-ico { width: 44px; height: 44px; flex: none; object-fit: contain; }
.w-ico-lg { width: 56px; height: 56px; }
.w-mono { display: grid; place-items: center; border-radius: 14px; background: color-mix(in srgb, var(--c, #7DFFB3) 15%, transparent);
  border: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 40%, transparent); color: var(--c, #7DFFB3); font: 900 18px var(--font); }
.w-gem { border-radius: 10px; transform: rotate(45deg) scale(.66); background: linear-gradient(135deg, #fff, var(--c, #fff) 55%);
  box-shadow: 0 0 22px color-mix(in srgb, var(--c, #fff) 60%, transparent); }
.w-etitle { min-width: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.w-etitle h2 { margin: 0; font: 900 20px/1.2 var(--font); overflow-wrap: anywhere; }
.w-etitle h2 a { color: #fff; text-decoration: none; }
.w-etitle h2 a:hover { color: var(--c, #7DFFB3); }
.w-tag { display: inline-flex; align-items: center; min-height: 22px; padding: 2px 9px; border-radius: 999px; background: color-mix(in srgb, var(--c, #ffffff) 14%, transparent);
  color: color-mix(in srgb, var(--c, #ffffff) 75%, #fff); font: 800 11.5px/1.25 var(--body-font, system-ui); letter-spacing: .2px; }
.w-sum { margin: 0 0 8px; color: #fff; font: 500 16px/1.55 var(--body-font, system-ui); }
.w-det { margin: 0 0 4px; padding-left: 20px; color: var(--text-2, rgba(255,255,255,.78)); font: 400 15px/1.55 var(--body-font, system-ui); }
.w-det li { margin: 3px 0; }
.w-det li::marker { color: color-mix(in srgb, var(--c, #7DFFB3) 75%, transparent); }
.w-det b { color: #fff; font-weight: 700; }
.w-links { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 0; }
.w-codex { margin-top: 10px; padding-top: 6px; border-top: 1px dashed var(--line-2, rgba(255,255,255,.16)); }
.w-codex summary { display: inline-flex; align-items: center; gap: 8px; min-height: 36px; cursor: pointer; list-style: none; color: var(--codex, #8F9CFF); font: 800 13.5px var(--font); }
.w-codex summary::-webkit-details-marker { display: none; }
.w-codex[open] > summary .chev { transform: rotate(180deg); }
.w-codex-in { color: var(--text-2, rgba(255,255,255,.78)); font: 400 15px/1.6 var(--body-font, system-ui); }
.w-codex-in p { margin: 0 0 8px; }
.w-fun { margin: 10px 0 0; color: var(--text-2, rgba(255,255,255,.78)); font: 400 15px/1.55 var(--body-font, system-ui); }
.w-fun b { color: var(--gold, #FFD166); }
.w-codex-in .w-fun { margin-top: 0; }
.w-where { margin: 10px 0 0; color: var(--text-2, rgba(255,255,255,.78)); font: 400 15px/1.55 var(--body-font, system-ui); }
.w-where b { color: #fff; font-weight: 700; }
.w-codex-in .w-where { margin-top: 0; }
.w-note { max-width: 74ch; margin: 0 0 22px; padding: 14px 16px; border-radius: 14px; color: var(--text-2, rgba(255,255,255,.78));
  background: color-mix(in srgb, var(--gold, #FFD166) 6%, transparent); border: 1px solid color-mix(in srgb, var(--gold, #FFD166) 24%, transparent);
  font: 400 15px/1.55 var(--body-font, system-ui); }
.w-note .w-caps { margin-bottom: 6px; --c: var(--gold, #FFD166); }
.w-note p, .w-note ul { margin: 0; }
.w-note ul { padding-left: 18px; }
.w-note li + li { margin-top: 4px; }
/* rarity tiers */
.w-r-prismatic::before { background: linear-gradient(180deg, #FF3B3B, #FF8C00, #FFE600, #3DFF6E, #22E4FF, #3D7BFF, #B45CFF, #FF4FD8); opacity: 1; }
.w-r-prismatic .w-gem { background: conic-gradient(#FF3B3B, #FF8C00, #FFE600, #3DFF6E, #22E4FF, #3D7BFF, #B45CFF, #FF4FD8, #FF3B3B); }
.w-r-prismatic h2 a { background: linear-gradient(90deg, #FF5B5B, #FF9C2A, #FFE600, #4DFF7E, #3AE8FF, #6A95FF, #C27BFF, #FF6FE0);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
/* Codex entries */
.w-ingame { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .04); border: 1px solid var(--line, rgba(255,255,255,.09));
  color: var(--text-2, rgba(255,255,255,.78)); font: 400 14.5px/1.55 var(--body-font, system-ui); }
.w-ingame p { margin: 4px 0; }
.w-ingame ul { margin: 4px 0; padding-left: 18px; }
.w-ingame .w-caps { margin-bottom: 4px; --c: var(--mint, #7DFFB3); }
.w-appears { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 12px 0 0; }
.w-appears .w-caps { margin-right: 4px; }

/* "On this page" inside the page (narrower screens) */
.w-otp { margin: 0 0 18px; border-radius: 14px; background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid var(--line, rgba(255,255,255,.09)); }
.w-otp summary { display: flex; align-items: center; gap: 8px; min-height: 46px; padding: 0 16px; cursor: pointer; list-style: none; font: 800 14.5px var(--font); }
.w-otp summary::-webkit-details-marker { display: none; }
.w-otp summary small { color: var(--text-3, rgba(255,255,255,.56)); font: 700 12px var(--body-font, system-ui); }
.w-otp summary .chev { margin-left: auto; transition: transform .2s; }
.w-otp[open] summary .chev { transform: rotate(180deg); }
.w-otp .w-toc-list { margin: 0; padding: 4px 16px 14px; max-height: 50vh; overflow: auto; border: 0; columns: 2 190px; column-gap: 20px; }
.w-otp .w-toc-list li { break-inside: avoid; }
.w-otp .w-toc-list a { margin: 0; padding: 6px 0; border: 0; font-size: 14px; }

/* ---------- cards ---------- */
.w-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); gap: 14px; }
.w-card { position: relative; display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-radius: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(160deg, color-mix(in srgb, var(--c, #7DFFB3) 12%, transparent), transparent 58%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 22%, rgba(255, 255, 255, .08));
  transition: transform .2s var(--spring, ease), border-color .2s, box-shadow .2s; }
.w-card:hover { transform: translateY(-3px); text-decoration: none; border-color: color-mix(in srgb, var(--c, #7DFFB3) 60%, transparent);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .35), 0 0 28px color-mix(in srgb, var(--c, #7DFFB3) 20%, transparent); }
.w-card-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.w-card-text b { font: 900 17px/1.22 var(--font); }
.w-card-text > span { color: var(--text-2, rgba(255,255,255,.78)); font: 400 14px/1.45 var(--body-font, system-ui); }
.w-count { flex: none; min-width: 30px; height: 26px; padding: 0 8px; display: grid; place-items: center; border-radius: 999px;
  background: color-mix(in srgb, var(--c, #7DFFB3) 17%, transparent); color: var(--c, #7DFFB3); font: 900 12.5px var(--font); }
.w-minis { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 10px; }
.w-mini { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 14px; color: #fff; text-decoration: none; background: var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 24%, rgba(255, 255, 255, .08)); transition: border-color .15s, transform .15s; }
.w-mini:hover { border-color: color-mix(in srgb, var(--c, #7DFFB3) 60%, transparent); transform: translateY(-2px); text-decoration: none; }
.w-mini .w-ico { width: 36px; height: 36px; }
.w-mini > span { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.w-mini b { font: 800 15px/1.25 var(--font); }
.w-mini small { color: var(--text-3, rgba(255,255,255,.56)); font: 600 12px var(--body-font, system-ui); }
.w-mini .arrow { color: var(--c, #7DFFB3); }

/* the next / previous pages and the summary link */
.w-pager { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 36px 0 0; }
.w-pg { display: flex; align-items: center; gap: 12px; min-height: 66px; padding: 12px 16px; border-radius: 16px; color: #fff; text-decoration: none;
  background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid var(--line, rgba(255,255,255,.09)); transition: border-color .15s; }
.w-pg:hover { border-color: color-mix(in srgb, var(--c, #7DFFB3) 55%, transparent); text-decoration: none; }
.w-pg > span { min-width: 0; }
.w-pg-next { justify-content: flex-end; text-align: right; }
.w-pg small { display: block; color: var(--text-3, rgba(255,255,255,.56)); font: 800 11px var(--font); letter-spacing: 1.5px; text-transform: uppercase; }
.w-pg b { font: 900 16px/1.25 var(--font); }
.w-pg .arrow { width: 14px; height: 14px; color: var(--c, #7DFFB3); }
.w-see { margin-top: 32px; }
.w-callout { display: flex; align-items: center; gap: 16px; margin: 32px 0 0; padding: 18px 20px; border-radius: 18px;
  background: linear-gradient(120deg, color-mix(in srgb, var(--c, #7DFFB3) 16%, transparent), transparent 70%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c, #7DFFB3) 35%, transparent); }
.w-callout > div { flex: 1; min-width: 0; }
.w-callout p { margin: 0; color: var(--text-2, rgba(255,255,255,.78)); }
.w-callout p b { color: #fff; }

/* a playable virus at a glance */
.w-profile { display: grid; gap: 18px 26px; margin: 0 0 26px; padding: 20px; border-radius: 22px;
  background: linear-gradient(150deg, color-mix(in srgb, var(--c) 18%, transparent), transparent 62%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c) 36%, transparent); }
.w-profile-head { display: flex; align-items: center; gap: 14px; margin-bottom: 10px; }
.w-profile-ico { width: 68px; height: 68px; flex: none; }
.w-profile-name { margin: 2px 0 0; font: 900 26px/1.1 var(--font); }
.w-profile .w-shot { margin: 0; }
.w-profile .w-more { margin-top: 6px; color: var(--c); }

/* ---------- portals ---------- */
.w-portal .w-banner { position: relative; margin: 0 0 -44px; }
.w-banner .zoom { border-radius: 22px; overflow: hidden; border: 1px solid color-mix(in srgb, var(--c, #fff) 30%, rgba(255, 255, 255, .1)); background: #000; }
.w-banner img { width: 100%; height: clamp(170px, 30cqi, 320px); object-fit: cover; object-position: 50% 20%; }
.w-banner::after { content: ""; position: absolute; inset: 40% 0 0; border-radius: 0 0 22px 22px; pointer-events: none;
  background: linear-gradient(180deg, transparent, rgba(18, 8, 18, .92)); }
.w-portal .w-head { position: relative; padding: 0 18px; }
.w-portal .w-intro { margin-top: 18px; }
.w-table-wrap { overflow-x: auto; border-radius: 16px; border: 1px solid var(--line, rgba(255,255,255,.09)); background: var(--surface, rgba(30, 13, 28, .72)); }
.w-num { width: 100%; border-collapse: collapse; font: 400 14.5px/1.45 var(--body-font, system-ui); }
.w-num th, .w-num td { padding: 10px 16px; text-align: left; vertical-align: top; border-top: 1px solid var(--line, rgba(255,255,255,.09)); }
.w-num tr:first-child th, .w-num tr:first-child td { border-top: 0; }
.w-num th { width: 55%; color: var(--text-2, rgba(255,255,255,.78)); font-weight: 600; }
.w-num td { color: #fff; font-weight: 700; }
.w-organs { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 10px; }
.w-organ { position: relative; display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 16px 8px 12px; border-radius: 16px; text-align: center;
  color: #fff; text-decoration: none; background: linear-gradient(180deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 70%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c) 30%, rgba(255, 255, 255, .08)); transition: transform .2s var(--spring, ease), border-color .2s, box-shadow .2s; }
.w-organ:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 70%, transparent); box-shadow: 0 0 26px color-mix(in srgb, var(--c) 25%, transparent); text-decoration: none; }
.w-organ .w-ico { width: 54px; height: 54px; }
.w-organ-n { position: absolute; top: 8px; left: 10px; color: var(--c); font: 900 12px var(--font); }
.w-organ b { font: 900 14px/1.2 var(--font); }
.w-organ small { color: var(--text-3, rgba(255,255,255,.56)); font: 500 12px/1.3 var(--body-font, system-ui); }
@container (max-width: 940px) { .w-organs { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@container (max-width: 440px) { .w-organs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- organ pages ---------- */
.w-roles { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 12px; }
.w-role { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 16px; border-radius: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(170deg, color-mix(in srgb, var(--c) 14%, transparent), transparent 62%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c) 28%, rgba(255, 255, 255, .08)); transition: transform .2s var(--spring, ease), border-color .2s; }
.w-role:hover { transform: translateY(-3px); border-color: color-mix(in srgb, var(--c) 65%, transparent); text-decoration: none; }
.w-role .w-ico { margin-bottom: 6px; }
.w-role b { font: 900 17px/1.2 var(--font); }
.w-role small { color: var(--text-2, rgba(255,255,255,.78)); font: 400 13.5px/1.45 var(--body-font, system-ui); }
.w-facts { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: 10px; margin: 0; }
.w-facts > div { padding: 12px 14px; border-radius: 14px; background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid var(--line, rgba(255,255,255,.09)); }
.w-facts dt { margin-bottom: 4px; color: var(--c, #7DFFB3); font: 900 11px/1.3 var(--font); letter-spacing: 1.8px; text-transform: uppercase; }
.w-facts dd { margin: 0; color: var(--text-2, rgba(255,255,255,.78)); font: 400 14.5px/1.5 var(--body-font, system-ui); }
.w-rows { display: grid; gap: 8px; }
.w-row { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 14px; border-radius: 14px;
  color: #fff; text-decoration: none; background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid var(--line, rgba(255,255,255,.09)); transition: border-color .15s; }
.w-row:hover { border-color: color-mix(in srgb, var(--c, #7DFFB3) 55%, transparent); text-decoration: none; }
.w-row .w-ico { width: 40px; height: 40px; grid-row: span 2; }
.w-row-text { min-width: 0; display: flex; flex-direction: column; }
.w-row-text b { font: 800 15px/1.3 var(--font); }
.w-row-text small { color: var(--text-2, rgba(255,255,255,.78)); font: 400 13.5px/1.4 var(--body-font, system-ui); }
.w-row .w-tag { justify-self: end; text-align: right; }
@container (max-width: 560px) { .w-row { grid-template-columns: 40px minmax(0, 1fr); } .w-row .w-tag { grid-column: 2; justify-self: start; text-align: left; } }
.w-codexcard { padding: 18px 20px; border-radius: 18px; background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid color-mix(in srgb, var(--c) 30%, transparent);
  color: var(--text-2, rgba(255,255,255,.78)); font: 400 15.5px/1.6 var(--body-font, system-ui); }
.w-codexcard p { margin: 0 0 10px; }

/* ---------- the wiki's home ---------- */
.w-hero { padding: 30px 0 6px; text-align: center; }
.w-hero h1 { --c: #7DFFB3; font-size: clamp(34px, 6.2cqi, 60px); }
.w-hero .w-intro { margin: 12px auto 22px; }
.w-search-big { max-width: 660px; margin: 0 auto; }
.w-search-big input { height: 58px; padding-left: 54px; font-size: 17px; background: rgba(255, 255, 255, .08); box-shadow: 0 12px 40px rgba(0, 0, 0, .35); }
.w-search-big .w-field > svg { left: 20px; width: 20px; height: 20px; }
.w-search-big .w-kbd { right: 18px; }
.w-popular { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 8px; margin: 16px 0 0; }
.w-popular .w-caps { margin-right: 4px; }
.w-results { margin: 28px 0 0; scroll-margin-top: calc(var(--w-stick) + 16px); }
.w-results[hidden] { display: none; }
.w-results-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.w-results-head .w-h2 { margin: 0; }
.w-results-head .w-chip { flex: none; }   /* (Clear stays whole: "Limpiar" was breaking letter by letter; the title wraps instead) */
.w-results-sum { margin: 6px 0 14px; color: var(--text-3, rgba(255,255,255,.56)); font: 500 14px var(--body-font, system-ui); }
.w-results-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.w-res { display: grid; grid-template-columns: 34px minmax(0, 1fr) auto; align-items: start; gap: 12px; padding: 12px 14px; border-radius: 14px; color: #fff;
  text-decoration: none; background: var(--surface, rgba(30, 13, 28, .72)); border: 1px solid var(--line, rgba(255,255,255,.09)); }
.w-res:hover { border-color: color-mix(in srgb, var(--c, #7DFFB3) 55%, transparent); text-decoration: none; }
.w-res b { display: block; font: 800 15.5px/1.3 var(--font); }
.w-res small { display: block; color: var(--text-3, rgba(255,255,255,.56)); font: 600 12px/1.4 var(--body-font, system-ui); }
.w-res p { margin: 3px 0 0; color: var(--text-2, rgba(255,255,255,.78)); font: 400 14px/1.45 var(--body-font, system-ui); }
.w-results-more { display: flex; margin: 16px auto 0; }
/* home grids: fixed column counts so a row never ends with one lonely card */
.w-cards-portals, .w-cards-start { grid-template-columns: minmax(0, 1fr); }
@container (min-width: 600px) {
  .w-cards-portals, .w-cards-start { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .w-cards-portals > :nth-child(2n+1):last-child { grid-column: 1 / -1; }
}
@container (min-width: 860px) {
  .w-cards-portals, .w-cards-start { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .w-cards-portals > :nth-child(2n+1):last-child { grid-column: auto; }
  .w-cards-portals > :nth-child(3n+1):last-child { grid-column: 1 / -1; }
}
.w-start { display: grid; gap: 14px; }
.w-fact { display: grid; gap: 14px; padding: 18px 20px; border-radius: 20px;
  background: radial-gradient(circle at 100% 0, color-mix(in srgb, var(--c) 22%, transparent), transparent 62%), var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid color-mix(in srgb, var(--c) 34%, transparent); }
.w-fact-body { min-width: 0; }
.w-fact-title { margin: 8px 0 2px; color: #fff; font: 900 17px/1.3 var(--font); }
.w-fact-text { margin: 0; color: var(--text-2, rgba(255,255,255,.78)); font: 500 16px/1.55 var(--body-font, system-ui); }
.w-fact-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: 0; }
@container (min-width: 720px) {
  .w-fact { grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 14px 28px; }
  .w-fact-foot { flex-direction: column; align-items: flex-end; }
}
.w-stats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@container (min-width: 600px) { .w-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@container (min-width: 1000px) { .w-stats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.w-stat { display: flex; flex-direction: column; padding: 16px; border-radius: 16px; color: #fff; text-decoration: none; background: var(--surface, rgba(30, 13, 28, .72));
  border: 1px solid var(--line, rgba(255,255,255,.09)); transition: border-color .15s, transform .15s; }
.w-stat:hover { border-color: rgba(125, 255, 179, .5); transform: translateY(-2px); text-decoration: none; }
.w-stat b { font: 900 34px/1 var(--font); background: linear-gradient(180deg, #fff, var(--mint, #7DFFB3)); -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; }
.w-stat span { margin-top: 6px; color: var(--text-2, rgba(255,255,255,.78)); font: 600 13.5px/1.35 var(--body-font, system-ui); }

/* ---------- narrow pages (container) and phones ---------- */
@container (max-width: 560px) {
  .w-pager { grid-template-columns: 1fr; }
  .w-pg-none { display: none; }
  .w-callout { flex-direction: column; align-items: flex-start; }
}
@container (min-width: 720px) { .w-profile { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; } }
@media (max-width: 640px) {
  .w-bar-in { padding: 0 12px; gap: 10px; }
  .w-brand { display: none; }
  .w-on-home .w-brand { display: flex; }
  .w-on-home .w-search-bar { display: none; }
  .w-browse { width: 40px; padding: 0; justify-content: center; }
  .w-browse span { display: none; }
  .w-search-bar { position: static; flex: 1; width: auto; margin-left: 0; }
  .w-search-bar .w-drop { top: calc(100% + 4px); left: 8px; right: 8px; min-width: 0; max-height: calc(100vh - var(--w-stick) - 20px); }
  .w-shell { padding: 0 16px; }
  .w-main { padding-top: 18px; }
  .w-head { gap: 14px; }
  .w-head-ico { width: 58px; height: 58px; }
  .w-intro { font-size: 16px; }
  .w-entry { padding: 16px 16px 14px 18px; }
  .w-etitle h2 { font-size: 18px; }
  .w-ico { width: 40px; height: 40px; }
  .w-ico-lg { width: 48px; height: 48px; }
  .w-portal .w-banner { margin-bottom: -30px; }
  .w-portal .w-head { padding: 0 12px; }
  .w-search-big input { height: 52px; font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  .w-side, .w-side.open { transition: none; }
  .w-card, .w-card:hover, .w-organ, .w-organ:hover, .w-role, .w-role:hover, .w-mini, .w-mini:hover, .w-stat, .w-stat:hover, .w-btn, .w-btn:hover { transition: none; transform: none; }
  .w-entry:target { animation: none; }
}
