/* Rust.camp Wiki – app core stylesheet (Agent C). Tokens from /css/tokens.css, navbar from /css/nav.css, world views in world.css (w- prefix).
   Same dark-glass language as /stats/. CSP: no inline styles; dynamic widths through CSSOM. No horizontal scrollbars in cards:
   tables use .tbl--fit (label column ellipsizes, numbers hug their content). */

@font-face { font-family: "Roboto Condensed"; font-style: normal; font-weight: 100 900; font-display: swap; src: url("/fonts/roboto-condensed-latin.woff2") format("woff2"); }
@font-face { font-family: "Inter"; font-style: normal; font-weight: 100 900; font-display: optional; src: url("/fonts/inter-latin.woff2") format("woff2"); }

:root {
  --ink: var(--rc-ink); --ink-2: var(--rc-ink-2); --ink-3: var(--rc-ink-3);
  --line: var(--rc-line); --line-2: var(--rc-line-2); --glass: var(--rc-glass); --glass-2: var(--rc-glass-2);
  --accent: var(--rc-signal); --accent-2: var(--rc-signal-text); --accent-soft: var(--rc-signal-soft);
  --radius: var(--rc-radius); --radius-sm: var(--rc-radius-sm);
  --font: var(--rc-font-text); --font-cond: var(--rc-font-display);
  --wrap: 1120px; --gutter: var(--rc-gutter);
  --plate: color-mix(in srgb, var(--rc-black) 45%, var(--rc-surface-raised));
  color-scheme: dark;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--rc-bg); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.5; -webkit-font-smoothing: antialiased; overflow-x: hidden; min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1 0 auto; padding: 32px 0 64px; }
img { display: block; max-width: 100%; height: auto; }
[hidden] { display: none !important; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { font-family: var(--font-cond); font-weight: 800; letter-spacing: .01em; line-height: 1.05; margin: 0; }
h1 { font-size: clamp(32px, 5vw, 48px); }
h2 { font-size: clamp(20px, 2.6vw, 24px); }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button, input, select { font: inherit; color: inherit; }
.num { font-variant-numeric: tabular-nums; }
.wrap { width: min(100% - 2 * var(--gutter), var(--wrap)); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--accent); color: var(--rc-signal-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
:focus-visible { outline: 2px solid var(--rc-signal-mark); outline-offset: 2px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: 0 0 auto; }
.dash { color: var(--ink-3); }
.rc-mark { width: 1em; height: 1em; display: inline-block; vertical-align: -0.12em; color: var(--ink); flex: 0 0 auto; }
.rc-mark__dot { fill: var(--rc-signal-mark); }
.rc-lockup { display: inline-flex; align-items: center; gap: .32em; font-family: var(--font-cond); font-weight: 800; letter-spacing: var(--rc-track-wordmark); color: var(--ink); white-space: nowrap; font-size: 22px; }
.rc-lockup .rc-mark { font-size: 1.18em; }
.brand__dot { color: var(--rc-signal-text); }

/* ---------- subnav: section links + compact search ---------- */
.subnav { border-bottom: 1px solid var(--line); background: var(--rc-bg-2); position: relative; z-index: 40; }
.subnav__inner { display: flex; align-items: center; gap: 12px 24px; min-height: 52px; }
.subnav__links { display: flex; gap: 20px; font-size: 14px; color: var(--ink-2); overflow-x: auto; scrollbar-width: none; flex: 1 1 auto; min-width: 0; }
.subnav__links::-webkit-scrollbar { display: none; }
.subnav__links a { position: relative; padding: 14px 0; white-space: nowrap; font-weight: 500; transition: color .15s; }
.subnav__links a:hover, .subnav__links a.is-active { color: var(--ink); }
.subnav__links a::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rc-signal-mark); transition: right .2s ease; }
.subnav__links a.is-active::after { right: 0; }
.subnav__search { flex: 0 1 260px; min-width: 0; }
body.is-home .subnav__search { visibility: hidden; }
@media (max-width: 759px) {
  .subnav__inner { flex-wrap: wrap; gap: 0; padding-bottom: 10px; }
  .subnav__links { flex: 1 0 100%; gap: 18px; }
  .subnav__search { flex: 1 0 100%; }
  body.is-home .subnav__search { display: none; }
}
.mockbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--ink-2); background: color-mix(in srgb, var(--rc-info) 8%, transparent); border-bottom: 1px solid color-mix(in srgb, var(--rc-info) 25%, transparent); }
.mockbar__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--rc-info); }

/* ---------- buttons, chips, inputs ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--glass-2); font-weight: 600; font-size: 15px; cursor: pointer; white-space: nowrap; color: var(--ink); transition: border-color .15s, background .15s; }
.btn:hover { border-color: color-mix(in srgb, var(--rc-white) 28%, transparent); }
.btn--sm { min-height: 38px; padding: 7px 14px; font-size: 14px; }
.btn--icon { width: 44px; padding: 0; }
.chips { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; min-width: 0; }
.chips--tight { gap: 4px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; letter-spacing: .02em; color: var(--ink-2); border: 1px solid var(--line-2); background: var(--glass); white-space: nowrap; line-height: 1.45; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.chip--xs { padding: 1px 7px; font-size: 11px; }
.chip--quiet { color: var(--ink-3); background: transparent; border-color: var(--line); font-weight: 500; }
.chip--mono { font-family: var(--rc-font-mono); font-size: 11px; letter-spacing: 0; }
.chip--link { transition: color .15s, border-color .15s; }
.chip--link:hover { color: var(--accent-2); border-color: var(--rc-signal-line); }
.chip--accent { background: var(--accent-soft); color: var(--accent-2); border-color: var(--rc-signal-line); }
.chip--ok { color: var(--rc-ok); border-color: color-mix(in srgb, var(--rc-ok) 35%, transparent); background: color-mix(in srgb, var(--rc-ok) 10%, transparent); }
.chip--danger { color: var(--rc-loss); border-color: color-mix(in srgb, var(--rc-loss) 35%, transparent); background: color-mix(in srgb, var(--rc-loss) 10%, transparent); }
.chip--wb { color: var(--ink); }
.chip--icon .ico { width: 13px; height: 13px; }
.chip--rarity::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink-3); }
.chip--r-uncommon::before { background: var(--rc-win); }
.chip--r-rare::before { background: var(--rc-tier-diamond); }
.chip--r-veryrare::before { background: var(--rc-tier-elite); }
.field { position: relative; display: flex; align-items: center; }
.field > .ico { position: absolute; left: 14px; color: var(--ink-3); pointer-events: none; }
.input { width: 100%; min-height: 44px; padding: 0 14px 0 42px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--rc-bg-3); color: var(--ink); font-size: 15px; outline: none; }
.input::placeholder { color: var(--ink-3); }
.input:focus { border-color: var(--rc-signal-text); box-shadow: 0 0 0 1px var(--rc-signal-mark); }
.input--sm { min-height: 40px; font-size: 14px; }
.selectwrap { position: relative; display: inline-flex; min-width: 0; }
.selectwrap::after { content: ""; position: absolute; right: 14px; top: 50%; width: 10px; height: 6px; margin-top: -3px; background: var(--ink-2); clip-path: polygon(0 0, 100% 0, 50% 100%); pointer-events: none; }
.select { appearance: none; -webkit-appearance: none; width: 100%; min-height: 44px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--rc-bg-3); color: var(--ink); font-size: 15px; font-weight: 500; cursor: pointer; text-overflow: ellipsis; }
.select--sm { min-height: 40px; font-size: 14px; }
.select:focus { border-color: var(--rc-signal-text); outline: none; box-shadow: 0 0 0 1px var(--rc-signal-mark); }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; border: 1px solid var(--line); background: var(--glass); gap: 2px; max-width: 100%; flex-wrap: wrap; }
.seg__opt { appearance: none; border: 0; background: transparent; color: var(--ink-2); padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap; min-height: 32px; display: inline-flex; align-items: center; }
.seg__opt:hover { color: var(--ink); }
.seg__opt[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-2); box-shadow: inset 0 0 0 1px var(--rc-signal-line); }
.seg--icons .seg__opt { padding: 4px 8px; min-height: 36px; }
.seg--icons .plate { background: transparent; border: 0; }

/* ---------- layout ---------- */
.card { position: relative; background: var(--glass); border: 1px solid var(--line); border-radius: var(--radius); min-width: 0; }
.card--pad { padding: 20px; }
.card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; margin-bottom: 14px; }
.card__head h2 { font-size: 19px; font-weight: 700; letter-spacing: .02em; }
.stack { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); align-content: start; }
.stack--lg { gap: 28px; }
.stack > *, .grid > * { min-width: 0; }
.grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.grid--auto { grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); align-items: start; }
@media (min-width: 760px) { .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px 20px; margin-bottom: 6px; }
.page-head__chips { margin-top: 12px; }
.sec-title { font-size: 20px; margin-bottom: 12px; }
.sub { font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 16px 0 8px; font-family: var(--font); }
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; }
.toolbar__grow { flex: 1 1 240px; }
.more-link { display: inline-flex; align-items: center; gap: 6px; min-height: 32px; font-size: 14px; font-weight: 600; color: var(--accent-2); }
.more-link .ico { width: 16px; height: 16px; }
.more-link:hover { text-decoration: underline; text-underline-offset: 3px; }
.slot:empty { display: none; }
.fade-in { animation: fadein .25s ease-out; }
@keyframes fadein { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .fade-in { animation: none; } .ibar__fill { transition: none !important; } }

/* skeleton + states */
.skel { position: relative; overflow: hidden; border-radius: var(--radius-sm); background: var(--glass); min-height: 16px; }
.skel--title { height: 48px; width: 55%; max-width: 420px; margin-bottom: 20px; }
.skel--tile { height: 96px; border-radius: var(--radius); }
.skel--block { height: 260px; margin-top: 16px; border-radius: var(--radius); }
.skel--row { height: 44px; margin-bottom: 8px; }
.skel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
@media (min-width: 640px) { .skel-grid { grid-template-columns: repeat(4, 1fr); } }
.state { display: grid; justify-items: center; text-align: center; gap: 12px; padding: 48px 20px; color: var(--ink-2); }
.state h2 { font-size: 24px; color: var(--ink); }
.state p { color: var(--ink-3); font-family: var(--rc-font-mono); font-size: 13px; overflow-wrap: anywhere; }
.state--error h2 { color: var(--rc-loss); }

/* ---------- icons on plates ---------- */
.plate { --pl: 32px; display: inline-grid; place-items: center; flex: 0 0 auto; width: var(--pl); height: var(--pl); border-radius: calc(var(--pl) * .22); background: var(--plate); border: 1px solid var(--line); overflow: hidden; color: var(--ink-3); }
.plate img { width: 84%; height: 84%; object-fit: contain; }
.plate .ico { width: 55%; height: 55%; stroke-width: 1.7; }
.plate--txt { font-family: var(--font-cond); font-weight: 800; font-size: calc(var(--pl) * .36); letter-spacing: .03em; color: var(--ink-2); }
.plate--xl { --pl: 160px; border-radius: 26px; background: radial-gradient(circle at 50% 40%, color-mix(in srgb, var(--rc-white) 6%, var(--plate)), var(--plate) 70%); }
.plate--ghost { opacity: .35; }

/* item link row: [icon] name  amount */
.ilink { display: flex; align-items: center; gap: 10px; min-width: 0; max-width: 100%; }
.ilink__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
a.ilink:hover .ilink__name { color: var(--accent-2); }
.ilink__amt { margin-left: auto; padding-left: 10px; font-family: var(--font-cond); font-weight: 700; font-size: 16px; color: var(--ink); white-space: nowrap; }
.ilist { display: grid; gap: 2px; }
.ilist > li { min-width: 0; }
.ilist .ilink { padding: 6px 8px; margin: 0 -8px; border-radius: var(--radius-sm); }
.ilist a.ilink:hover { background: var(--glass); }
.ilist--grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 190px), 1fr)); gap: 2px 16px; }

/* ---------- tables ---------- */
.tbl-wrap { overflow: visible; }   /* owner rule: no scrollbars in cards; tables fit via .tbl--fit and hide-sm columns */
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl caption { text-align: left; }
.tbl th { text-align: left; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); padding: 8px 10px; border-bottom: 1px solid var(--line-2); white-space: nowrap; }
.tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; white-space: nowrap; }
.tbl tbody tr:last-child td, .tbl tbody tr:last-child th { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--rc-white) 3%, transparent); }
.tbl .r { text-align: right; font-variant-numeric: tabular-nums; }
.tbl th button { appearance: none; border: 0; background: none; padding: 4px 0; min-height: 28px; font: inherit; letter-spacing: inherit; text-transform: inherit; color: inherit; cursor: pointer; display: inline-flex; align-items: center; gap: 4px; }
.tbl th button:hover, .tbl th[aria-sort] { color: var(--ink); }
.tbl th .sort-ind { display: inline-block; width: 7px; height: 7px; margin-left: 2px; opacity: .3; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translate(-2px, -2px); }
.tbl th[aria-sort] .sort-ind { opacity: 1; color: var(--accent-2); }
.tbl th[aria-sort="ascending"] .sort-ind { transform: rotate(-135deg) translate(-1px, -1px); }
.tbl--fit th, .tbl--fit td { padding-left: 7px; padding-right: 7px; }
.tbl--fit th:first-child, .tbl--fit td:first-child { padding-left: 0; }
.tbl--fit th:last-child, .tbl--fit td:last-child { padding-right: 0; }
.tbl--fit .tcol-main { width: 100%; max-width: 0; overflow: hidden; text-overflow: ellipsis; }
.tbl--fit th:not(.tcol-main), .tbl--fit td:not(.tcol-main) { width: 1%; }
.tbl tbody th { font-weight: 500; text-align: left; font-size: 14px; letter-spacing: 0; text-transform: none; color: var(--ink-2); border-bottom: 1px solid var(--line); padding: 10px 7px 10px 0; }
.tbl td a.ilink { display: inline-flex; vertical-align: middle; }
@media (max-width: 639px) { .hide-sm { display: none; } .tbl { font-size: 13px; } .tbl--fit th, .tbl--fit td { padding-left: 5px; padding-right: 5px; } }

/* ---------- key/value ---------- */
.kv { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; margin: 0; }
.kv > div { min-width: 0; }
.kv dt { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.kv dd { margin: 3px 0 0; font-family: var(--font-cond); font-weight: 700; font-size: 20px; line-height: 1.15; overflow-wrap: anywhere; }
@media (min-width: 480px) { .kv--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.kv + .chips { margin-top: 16px; }

/* ---------- bars (Information panel, protection, gather) ---------- */
.ibar { display: grid; grid-template-columns: minmax(70px, 110px) minmax(0, 1fr) 46px; align-items: center; gap: 12px; min-height: 30px; }
.ibar__label { font-family: var(--font-cond); font-weight: 700; font-size: 14px; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ibar__track { position: relative; height: 10px; border-radius: 2px; background: color-mix(in srgb, var(--rc-white) 8%, transparent); overflow: hidden; }
.ibar__fill { display: block; height: 100%; width: 0; background: var(--rc-ink-2); border-radius: 2px; transition: width .5s cubic-bezier(.2,.7,.2,1); }
.ibar__val { text-align: right; font-family: var(--font-cond); font-weight: 800; font-size: 17px; color: var(--ink); }
.bars { display: grid; gap: 6px; }
.infopanel { display: grid; gap: 10px; }
.infopanel__title { font-family: var(--font-cond); font-size: 13px; font-weight: 700; letter-spacing: var(--rc-track-caps); text-transform: uppercase; color: var(--ink-3); margin-bottom: 6px; }
.infopanel__rows { display: grid; gap: 8px; }
.infopanel .ibar { min-height: 34px; grid-template-columns: minmax(76px, 120px) minmax(0, 1fr) 46px; }
.infopanel .ibar__track { height: 14px; }
.infopanel .ibar__fill { background: linear-gradient(90deg, var(--rc-signal), var(--rc-signal-mark)); }

/* ---------- home ---------- */
.hero { padding: 20px 0 6px; display: grid; justify-items: center; text-align: center; }
.hero__title { font-size: clamp(38px, 6vw, 60px); }
.hero__sub { margin-top: 10px; color: var(--ink-2); font-size: 17px; }
.hero .wsearch { width: min(100%, 640px); margin-top: 24px; text-align: left; }
.hero__chips { justify-content: center; margin-top: 14px; }
.catgrid { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 176px), 1fr)); }
@media (max-width: 519px) { .catgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } .catcard { padding: 12px; column-gap: 10px; } }
.catcard { display: grid; grid-template-columns: auto minmax(0, 1fr); grid-template-rows: auto auto; column-gap: 12px; align-items: center; padding: 14px; min-height: 80px; transition: border-color .15s, background .15s; }
.catcard:hover { border-color: var(--line-2); background: var(--glass-2); }
.catcard .plate { grid-row: 1 / span 2; }
.catcard__name { font-weight: 600; font-size: 15px; line-height: 1.2; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
.catcard__n { font-family: var(--font-cond); font-weight: 700; font-size: 15px; color: var(--ink-3); align-self: start; }
.rows { display: grid; gap: 2px; }
.rows__a { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 7px 8px; margin: 0 -8px; border-radius: var(--radius-sm); min-height: 50px; }
a.rows__a:hover { background: var(--glass); }
a.rows__a:hover .rows__name { color: var(--accent-2); }
.rows__name { font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rows__val { font-family: var(--font-cond); font-weight: 800; font-size: 18px; }
.rows-wrap > .chips { margin-bottom: 10px; }
.grid--stretch > .card { height: 100%; }

/* ---------- search ---------- */
.wsearch { position: relative; min-width: 0; }
.wsearch__field { position: relative; display: flex; align-items: center; }
.wsearch__ico { position: absolute; left: 16px; color: var(--ink-3); pointer-events: none; }
.wsearch__input { width: 100%; min-height: 54px; padding: 0 18px 0 48px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--rc-bg-3); color: var(--ink); font-size: 17px; outline: none; transition: border-color .15s, box-shadow .15s; }
.wsearch__input::placeholder { color: var(--ink-3); }
.wsearch__input:focus { border-color: var(--rc-signal-text); box-shadow: 0 0 0 1px var(--rc-signal-mark); }
.wsearch__input::-webkit-search-cancel-button { filter: invert(.7); }
.wsearch--compact .wsearch__input { min-height: 38px; font-size: 14px; padding: 0 34px 0 38px; }
.wsearch--compact .wsearch__ico { left: 13px; width: 16px; height: 16px; }
.wsearch__kbd { position: absolute; right: 10px; padding: 0 6px; border: 1px solid var(--line-2); border-radius: 5px; font: 600 11px/18px var(--rc-font-mono); color: var(--ink-3); pointer-events: none; }
.wsearch__input:focus + .wsearch__kbd, .wsearch__input:not(:placeholder-shown) + .wsearch__kbd { display: none; }
@media (pointer: coarse) { .wsearch__kbd { display: none; } }
.wsearch__list { position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 60; padding: 6px; border-radius: var(--radius); background: var(--rc-surface-raised); border: 1px solid var(--line-2); box-shadow: var(--rc-shadow); }   /* at most 10 results, no inner scrollbar */
.wsearch--compact .wsearch__list { left: auto; width: min(380px, calc(100vw - 2 * var(--gutter))); }
@media (max-width: 759px) { .wsearch--compact .wsearch__list { left: 0; width: auto; } }
.wsearch__group + .wsearch__group { margin-top: 4px; padding-top: 4px; border-top: 1px solid var(--line); }
.wsearch__gh { padding: 6px 10px 4px; font-size: 11px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.wsearch__opt { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: var(--radius-sm); cursor: pointer; min-height: 46px; }
.wsearch__opt[aria-selected="true"] { background: var(--glass-2); box-shadow: inset 2px 0 0 var(--rc-signal-mark); }
.wsearch__txt { display: grid; min-width: 0; line-height: 1.25; }
.wsearch__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wsearch__meta { font-size: 12px; color: var(--ink-3); }
.wsearch__none { padding: 14px; font-size: 14px; color: var(--ink-3); }

/* ---------- category ---------- */
.icard:hover { border-color: var(--line-2); background: var(--glass-2); }

/* ---------- item page ---------- */
.ihead { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 20px 24px; align-items: center; padding: 22px; }
.ihead__txt { display: grid; gap: 12px; min-width: 0; }
.ihead__name { font-size: clamp(30px, 4.6vw, 46px); overflow-wrap: anywhere; }
.ihead__desc { color: var(--ink-2); max-width: 62ch; font-size: 17px; margin-top: -4px; }
.ihead__actions { grid-column: 1 / -1; display: flex; gap: 8px; }
@media (min-width: 760px) { .ihead { grid-template-columns: auto minmax(0, 1fr) auto; } .ihead__actions { grid-column: auto; align-self: start; } }
@media (max-width: 519px) { .ihead { grid-template-columns: 1fr; justify-items: start; padding: 18px; } .ihead .plate--xl { --pl: 120px; } }
.changed { border-color: var(--rc-signal-line); background: color-mix(in srgb, var(--rc-signal) 6%, var(--glass)); }
.ttk { display: inline-grid; justify-items: end; line-height: 1.15; }
.ttk b { font-family: var(--font-cond); font-size: 17px; font-weight: 800; }
.ttk small { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.ttk__set { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ttk__icons { display: inline-flex; flex: 0 0 auto; }
.ttk__icons .plate + .plate { margin-left: -6px; }
.ttk__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.tbl--ttk td { height: 54px; }
.effects { display: grid; gap: 2px; }
.effect { display: flex; align-items: center; gap: 10px; min-height: 44px; border-bottom: 1px solid var(--line); }
.effect:last-child { border-bottom: 0; }
.effect__name { font-weight: 500; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.effect__val { margin-left: auto; font-family: var(--font-cond); font-size: 19px; font-weight: 800; }
.effect__val.is-pos { color: var(--rc-win); }
.effect__val.is-neg { color: var(--rc-loss); }
.foundat { margin-top: 4px; }
.card > .chips + .ilist { margin-top: 12px; }

/* collapsible "more" */
.more { margin-top: 14px; border-top: 1px solid var(--line); }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 44px; cursor: pointer; list-style: none; font-size: 14px; font-weight: 600; color: var(--ink-2); }
.more > summary::-webkit-details-marker { display: none; }
.more > summary:hover { color: var(--ink); }
.more__chev { transition: transform .2s; }
.more[open] .more__chev { transform: rotate(180deg); }
.more__body { padding-bottom: 4px; }

/* ---------- compare ---------- */
.cmp-pick { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: 10px; align-items: center; }
.cmp-head { display: flex; align-items: center; gap: 14px; padding: 14px 16px; min-width: 0; border-color: color-mix(in srgb, var(--cmp, var(--rc-white)) 40%, transparent); }
.cmp-head--a { --cmp: var(--rc-mode-cargo); }
.cmp-head--b { --cmp: var(--rc-mode-oilrig); }
.cmp-head__name { font-family: var(--font-cond); font-weight: 800; font-size: 22px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmp-heads { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (max-width: 519px) { .cmp-head { flex-direction: column; align-items: flex-start; gap: 8px; } .cmp-head__name { font-size: 17px; max-width: 100%; } }
.cmp-bars { display: grid; gap: 14px; }
.cmp-row { display: grid; grid-template-columns: minmax(76px, 120px) minmax(0, 1fr); gap: 12px; align-items: center; }
.cmp-pair { display: grid; gap: 4px; }
.cmp-bar { display: grid; grid-template-columns: minmax(0, 1fr) 46px; gap: 12px; align-items: center; }
.cmp-bar .ibar__track { height: 10px; }
.cmp-bar--a .ibar__fill { background: var(--rc-mode-cargo); }
.cmp-bar--b .ibar__fill { background: var(--rc-mode-oilrig); }
.cmp-bar:not(.is-win) .ibar__val { color: var(--ink-3); font-weight: 700; }
.tbl--cmp td.is-win { color: var(--ink); font-weight: 700; }
.tbl--cmp td:not(.is-win) { color: var(--ink-3); }
.tbl--cmp thead th:nth-child(2) { color: var(--rc-mode-cargo); }
.tbl--cmp thead th:nth-child(3) { color: var(--rc-mode-oilrig); }
.tbl--cmp thead th.r { max-width: 120px; overflow: hidden; text-overflow: ellipsis; }

/* ---------- diff (shared with world-changes): one row per change, label left, old -> new right ---------- */
.diff { display: grid; gap: 10px; min-width: 0; }
.diff + .diff { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--line); }
.diff__head { display: flex; align-items: center; gap: 10px; min-width: 0; }
.diff__name { font-weight: 600; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
a.diff__name:hover { color: var(--accent-2); }
.diff__chips { margin-left: auto; flex-wrap: nowrap; }
.diff__fields { display: grid; gap: 8px; min-width: 0; }
.diff__rows { list-style: none; margin: 0; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); min-width: 0; }
.diff__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 6px 12px; min-height: 36px; min-width: 0; }
.diff__row + .diff__row { border-top: 1px solid var(--line); }
.diff__path { font-size: 13px; color: var(--ink-2); min-width: 0; overflow-wrap: anywhere; }
.diff__vals { display: flex; align-items: center; justify-content: flex-end; gap: 8px; min-width: 0; flex-wrap: wrap; }
.diff__v { padding: 2px 8px; border-radius: var(--radius-sm); font-family: var(--rc-font-mono); font-size: 13px; overflow-wrap: anywhere; min-width: 0; }
.diff__v--old { background: color-mix(in srgb, var(--rc-loss) 14%, transparent); color: color-mix(in srgb, var(--rc-loss) 55%, var(--rc-white)); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--rc-loss) 60%, transparent); }
.diff__v--new { background: color-mix(in srgb, var(--rc-win) 14%, transparent); color: color-mix(in srgb, var(--rc-win) 55%, var(--rc-white)); }
.diff__arrow { color: var(--ink-3); line-height: 1; font-size: 14px; }
.diff__row--removed .diff__path { color: var(--ink-3); }
.diff__more > summary { list-style: none; cursor: pointer; width: max-content; }
.diff__more > summary::-webkit-details-marker { display: none; }
.diff__more[open] > summary { margin-bottom: 8px; }
@media (max-width: 560px) {
  .diff__row { grid-template-columns: minmax(0, 1fr); gap: 4px; }
  .diff__vals { justify-content: flex-start; }
  .diff__chips .chip--quiet:not(:first-child) { display: none; }
}

/* ---------- footer ---------- */
.footer { border-top: 1px solid var(--line); padding: 36px 0 28px; color: var(--ink-3); font-size: 14px; }
.footer__inner { display: grid; gap: 18px; }
.footer__brand p { margin-top: 6px; }
.footer__claim { color: var(--ink-2); font-weight: 500; }
.footer__tree { margin-top: 10px; font-family: var(--font-cond); font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }
.footer__sep { color: var(--rc-signal-text); margin: 0 2px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer__links a { color: var(--ink-2); display: inline-block; padding: 4px 0; }
.footer__links a:hover { color: var(--accent-2); }
.footer__legal { font-size: 12px; line-height: 1.7; }
@media (max-width: 479px) { .card--pad { padding: 16px; } .main { padding-top: 22px; } }
@media print { .sitenav, .subnav, .footer, .mockbar { display: none; } }

/* expected amount with min to max muted (contract Extensions: loot expected, recycle expected/min/max) */
.amt { display: inline-grid; justify-items: end; line-height: 1.15; }
.amt b { font-weight: 700; }
.amt small { font-size: 11px; color: var(--ink-3); }
.ilink__range { margin-left: auto; padding-left: 10px; font-size: 12px; color: var(--ink-3); white-space: nowrap; }
.ilink__range + .ilink__amt { margin-left: 0; }

/* empty card body: the quiet dash centred in the free height */
.card--fill { display: flex; flex-direction: column; }
.card--fill > .fill-empty { flex: 1 1 auto; display: grid; place-items: center; min-height: 120px; color: var(--ink-3); font-size: 22px; }

/* source cell: link, variant count chip, blueprint chip in one line; the name ellipsizes first */
.src { display: flex; align-items: center; gap: 8px; min-width: 0; max-width: 100%; }
.src > .ilink { flex: 0 1 auto; min-width: 0; }
.src > .chip { flex: 0 0 auto; }
@media (max-width: 639px) { .src { flex-direction: column; align-items: flex-start; gap: 2px; } .src > .ilink { max-width: 100%; } .src > .chip { margin-left: 38px; } }

/* 390 px: the six section links wrap into two rows instead of scrolling (no hidden entries) */
@media (max-width: 519px) { .subnav__links { flex-wrap: wrap; overflow: visible; gap: 0 18px; padding-top: 4px; } .subnav__links a { padding: 9px 0; } .subnav__search { margin-top: 6px; } }

/* "Show all N" expander for long lists and tables inside cards */
.showall-wrap { display: grid; gap: 8px; min-width: 0; }
.showall { justify-self: start; appearance: none; border: 1px solid var(--line-2); background: transparent; color: var(--accent-2); border-radius: 999px; padding: 6px 14px; min-height: 36px; font-size: 13px; font-weight: 600; cursor: pointer; }
.showall:hover { border-color: var(--rc-signal-line); }
/* facts card */
.facts { display: grid; gap: 4px; }
.facts__group { min-width: 0; }
.facts__tbl { max-width: 420px; }
.facts .facts { padding-left: 0; }

/* ---------- tiles: the visual building block of item and overview pages (owner 2026-11-07) ---------- */
.tiles { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, var(--tmin, 200px)), 1fr)); align-items: stretch; }
.tiles--icons { --tmin: 150px; }
.tiles--sm { --tmin: 170px; }
.tiles--md { --tmin: 230px; }
.tiles--lg { --tmin: 320px; }
@media (max-width: 519px) { .tiles--icons, .tiles--sm { grid-template-columns: repeat(2, minmax(0, 1fr)); } .tiles--md, .tiles--lg { grid-template-columns: minmax(0, 1fr); } }
.tile { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--rc-white) 3%, transparent); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
a.tile:hover { border-color: var(--line-2); background: var(--glass-2); }
.tile__head { display: flex; align-items: center; gap: 12px; min-width: 0; }
.tile__name { font-weight: 600; line-height: 1.25; min-width: 0; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.tile__big { font-family: var(--font-cond); font-weight: 800; font-size: 30px; line-height: 1; display: flex; align-items: baseline; gap: 8px; }
.tile__big small { font-family: var(--font); font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.tile__big.is-pos { color: var(--rc-win); } .tile__big.is-neg { color: var(--rc-loss); }
.pairs { display: flex; flex-wrap: wrap; gap: 4px 16px; }
.pair { display: grid; min-width: 0; }
.pair__k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.pair__v { font-family: var(--font-cond); font-weight: 700; font-size: 16px; white-space: nowrap; }
.mbar { display: block; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--rc-white) 8%, transparent); overflow: hidden; }
.mbar__fill { display: block; height: 100%; border-radius: 3px; background: linear-gradient(90deg, var(--rc-signal), var(--rc-signal-mark)); }
/* icon tile: icon on top, name, amount */
.itile { display: grid; justify-items: center; align-content: start; gap: 6px; text-align: center; min-width: 0; padding: 14px 10px 12px; border-radius: 12px; background: color-mix(in srgb, var(--rc-white) 3%, transparent); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
a.itile:hover { border-color: var(--line-2); background: var(--glass-2); }
.itile__name { font-size: 13px; font-weight: 600; line-height: 1.25; max-width: 100%; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; }
.itile__amt { font-family: var(--font-cond); font-weight: 800; font-size: 20px; line-height: 1; }
.itile__sub { font-size: 11px; color: var(--ink-3); font-weight: 600; }
.itile--result { border-color: var(--rc-signal-line); background: color-mix(in srgb, var(--rc-signal) 7%, transparent); }
/* recipe: ingredients -> result */
.recipe { display: grid; grid-template-columns: auto auto 150px; justify-content: start; gap: 12px; align-items: center; }
.recipe__in { display: flex; flex-wrap: wrap; gap: 10px; }
.recipe__in > .itile { width: 150px; }
.recipe__arrow { display: grid; place-items: center; color: var(--ink-3); }
.recipe__arrow .ico { width: 26px; height: 26px; }
@media (max-width: 639px) { .recipe { grid-template-columns: minmax(0, 1fr); justify-items: stretch; } .recipe__in { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); } .recipe__in > .itile { width: auto; } .recipe__arrow { transform: rotate(90deg); } .recipe .itile--result { justify-self: center; width: 50%; } }
/* time to kill tile */
.ttk__icons { display: flex; flex-wrap: wrap; gap: 4px; }
.ttk__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 2px; }
.ttk { display: grid; gap: 2px; justify-items: start; padding: 8px 10px; border-radius: 10px; background: color-mix(in srgb, var(--rc-black) 30%, transparent); }
.ttk__k { font-size: 10px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ttk__v { font-family: var(--font-cond); font-size: 24px; font-weight: 800; line-height: 1.05; }
.ttk__s { font-size: 12px; color: var(--ink-3); font-weight: 600; }
.tile--src .tile__big { font-size: 28px; }
.card__head > .chips { justify-content: flex-end; }

/* ---------- overview cards (owner 2026-11-07: show something, bigger, not a bare table) ---------- */
.wgrid { --tmin: 320px; gap: 14px; }
.wcard { display: grid; gap: 14px; align-content: start; padding: 18px; transition: border-color .15s, background .15s; }
.wcard:hover { border-color: var(--line-2); background: var(--glass-2); }
.wcard__head, .icard__head { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 14px; align-items: center; }
.wcard__id { display: grid; gap: 6px; min-width: 0; }
.wcard__name { font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1.05; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wcard__bars { display: grid; gap: 4px; }
.wcard__bars .ibar { min-height: 22px; grid-template-columns: 88px minmax(0, 1fr) 40px; gap: 10px; }
.wcard__bars .ibar__label { font-size: 12px; }
.wcard__bars .ibar__track { height: 7px; }
.wcard__bars .ibar__fill { background: linear-gradient(90deg, var(--rc-signal), var(--rc-signal-mark)); }
.wcard__bars .ibar__val { font-size: 15px; }
.wcard__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 10px; border-top: 1px solid var(--line); margin-top: auto; }
.wcard__ammo { display: flex; gap: 4px; flex-wrap: wrap; }
.igrid { --tmin: 300px; gap: 12px; }
.icard { display: grid; gap: 12px; align-content: start; padding: 16px; transition: border-color .15s, background .15s; }
.icard:hover { border-color: var(--line-2); background: var(--glass-2); }
.icard__txt { display: grid; gap: 4px; min-width: 0; }
.icard__name { font-family: var(--font-cond); font-weight: 800; font-size: 19px; line-height: 1.1; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard__desc { font-size: 13px; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.icard .chips:empty { display: none; }
.qbars { display: grid; gap: 5px; }
.qbar { display: grid; grid-template-columns: 76px minmax(0, 1fr) 40px; gap: 10px; align-items: center; }
.qbar__k { font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qbar__v { text-align: right; font-family: var(--font-cond); font-weight: 700; font-size: 14px; }
.qcost { display: flex; flex-wrap: wrap; gap: 6px 14px; }
.qcost__i { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-cond); font-weight: 700; font-size: 15px; }
.tiles > .card { height: 100%; }
.tile--hero { align-content: center; }
.facts > .tiles { margin-bottom: 14px; }
.tile--hero .tile__big { white-space: nowrap; }
@media (max-width: 519px) { .tile--hero .tile__big { font-size: 24px; } }
.facts__entries { display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.facts .kv dt { white-space: normal; overflow: visible; }
.tiles + .pairs { margin-top: 14px; }
.gf-link .catcard__n .ico { width: 18px; height: 18px; }

/* six equal tiles per row on wide screens, three at tablet, two on phones: rows fill evenly (Game facts) */
.tiles--six { grid-template-columns: repeat(var(--n, 6), minmax(0, 1fr)); }
@media (max-width: 1099px) { .tiles--six { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 519px) { .tiles--six { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.gf-link { display: flex; align-items: center; gap: 14px; padding: 14px 18px; transition: border-color .15s, background .15s; }
.gf-link:hover { border-color: var(--line-2); background: var(--glass-2); }
.gf-link .plate { --pl: 44px; }
.gf-link__name { font-weight: 600; flex: 1 1 auto; }
.gf-link__go { color: var(--accent-2); }

/* ---------- Game facts (owner 2026-11-07: character within the brand) ---------- */
.gf .lede { margin-top: 10px; color: var(--ink-2); font-size: 17px; max-width: 60ch; }
.gf-plate { --pl: 40px; color: var(--ink-2); }
.gf-plate .ico { width: 52%; height: 52%; }
/* rarity scale: four coloured tiles plus a side column */
.gf-scale { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 12px; align-items: stretch; }
.gf-scale__rar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.gf-scale__side { display: grid; gap: 10px; align-content: stretch; }
.gf-rar { --rar: var(--ink-3); position: relative; display: grid; gap: 8px; align-content: start; padding: 14px 14px 16px; border-radius: 12px; overflow: hidden;
  background: linear-gradient(180deg, color-mix(in srgb, var(--rar) 14%, transparent), color-mix(in srgb, var(--rc-white) 2%, transparent) 70%);
  border: 1px solid color-mix(in srgb, var(--rar) 35%, var(--line)); transition: border-color .15s, transform .15s; }
.gf-rar:hover { border-color: color-mix(in srgb, var(--rar) 70%, transparent); }
.gf-rar--uncommon { --rar: var(--rc-win); } .gf-rar--rare { --rar: var(--rc-tier-diamond); } .gf-rar--veryrare { --rar: var(--rc-tier-elite); }
.gf-rar__top { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gf-rar__name { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--rar) 70%, var(--rc-white)); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.gf-rar__val { font-family: var(--font-cond); font-weight: 800; font-size: 32px; line-height: 1; white-space: nowrap; }
.gf-rar .chip { justify-self: start; }
.gf-rar__bar { margin-top: 2px; }
.gf-rar__bar .mbar__fill { background: var(--rar); }
.gf-side { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 12px; background: color-mix(in srgb, var(--rc-white) 3%, transparent); border: 1px solid var(--line); transition: border-color .15s; min-width: 0; }
.gf-side:hover, .gf-body:hover { border-color: var(--line-2); }
.gf-side__txt { display: grid; gap: 2px; min-width: 0; }
.gf-side__val { font-family: var(--font-cond); font-weight: 800; font-size: 22px; line-height: 1.05; white-space: nowrap; }
/* corpses and bags */
.gf-bodies { display: grid; gap: 10px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr)); }
.gf-body { display: grid; gap: 8px; align-content: start; padding: 14px; border-radius: 12px; background: color-mix(in srgb, var(--rc-white) 3%, transparent); border: 1px solid var(--line); transition: border-color .15s; }
.gf-body .plate { --pl: 40px; }
.gf-body__k { font-size: 13px; font-weight: 600; color: var(--ink-2); }
.gf-body__val { font-family: var(--font-cond); font-weight: 800; font-size: 28px; line-height: 1; white-space: nowrap; }
/* guide cards */
.gf-guide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 18px; height: 100%; transition: border-color .15s, background .15s; }
.gf-guide:hover { border-color: var(--rc-signal-line); background: color-mix(in srgb, var(--rc-signal) 6%, var(--glass)); }
.gf-guide .gf-plate { --pl: 52px; color: var(--accent-2); }
.gf-guide__txt { display: grid; gap: 3px; min-width: 0; }
.gf-guide__t { font-family: var(--font-cond); font-weight: 800; font-size: 20px; line-height: 1.1; }
.gf-guide__d { font-size: 13px; color: var(--ink-3); }
.gf-guide__go { color: var(--accent-2); }
@media (max-width: 899px) { .gf-scale { grid-template-columns: minmax(0, 1fr); } .gf-scale__side { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 599px) { .gf-scale__rar { grid-template-columns: repeat(2, minmax(0, 1fr)); } .gf-rar__val { font-size: 26px; } .gf-side { flex-direction: column; align-items: flex-start; } }
@media (prefers-reduced-motion: reduce) { .gf-rar { transition: none; } .gf-rar:hover { transform: none; } }
@media (max-width: 599px) {
  .gf-rar__top { gap: 8px; } .gf-rar__top .plate { --pl: 30px; }
  .gf-rar__name { white-space: normal; font-size: 11px; line-height: 1.2; }
  .gf-bodies { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gf-body__val { font-size: 22px; white-space: normal; }
}
@media (max-width: 599px) { .gf-rar__name { letter-spacing: .02em; overflow: visible; } .gf-side .pair__k { white-space: normal; } }
@media (max-width: 599px) { .gf-body__val { font-size: 20px; overflow-wrap: anywhere; hyphens: auto; } }
/* one-line muted explanations on Game facts tiles (owner: "bisschen erklären") */
.gf-desc { font-size: 12px; line-height: 1.35; color: var(--ink-3); }
.card__head > .gf-desc { font-size: 13px; }
.gf-examples { display: flex; gap: 4px; margin-top: 4px; }
.gf-examples a:hover .plate { border-color: var(--line-2); }
.gf-side { align-items: flex-start; }
.gf-rar { grid-template-rows: auto auto auto 1fr; }
.gf-rar__bar { align-self: end; }
@media (max-width: 519px) { .subnav__links { gap: 0 14px; font-size: 13px; } }

/* ---------- shared picker (picker.js): button + panel with search, max 10 rows, no inner scrollbar ---------- */
.picker { position: relative; min-width: 0; }
.picker__btn { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 8px 14px 8px 10px; border-radius: 14px; border: 1px solid var(--line-2); background: var(--rc-bg-3); color: var(--ink); cursor: pointer; text-align: left; transition: border-color .15s; }
.picker__btn:hover, .picker.is-open .picker__btn { border-color: var(--rc-signal-text); }
.picker__name { flex: 1 1 auto; min-width: 0; font-family: var(--font-cond); font-weight: 800; font-size: 18px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__chev { color: var(--ink-3); transition: transform .15s; }
.picker.is-open .picker__chev { transform: rotate(180deg); }
.picker__panel { position: absolute; left: 0; top: calc(100% + 6px); z-index: 60; width: max(100%, 340px); max-width: calc(100vw - 2 * var(--gutter)); padding: 8px; border-radius: var(--radius); background: var(--rc-surface-raised); border: 1px solid var(--line-2); box-shadow: var(--rc-shadow); }
.cmp-pick__b .picker__panel { left: auto; right: 0; }
.picker__field { position: relative; display: flex; align-items: center; margin-bottom: 6px; }
.picker__ico { position: absolute; left: 12px; width: 16px; height: 16px; color: var(--ink-3); pointer-events: none; }
.picker__input { width: 100%; min-height: 40px; padding: 0 12px 0 36px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--rc-bg-3); color: var(--ink); font-size: 14px; outline: none; }
.picker__input:focus { border-color: var(--rc-signal-text); box-shadow: 0 0 0 1px var(--rc-signal-mark); }
.picker__list { display: grid; gap: 1px; }
.picker__opt { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 5px 8px; border-radius: 10px; cursor: pointer; }
.picker__opt[aria-selected="true"] { background: var(--glass-2); box-shadow: inset 2px 0 0 var(--rc-signal-mark); }
.picker__optname { flex: 1 1 auto; min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.picker__opt.is-cur .picker__optname { color: var(--accent-2); }
.picker__cur { width: 16px; height: 16px; color: var(--accent-2); }
.picker__more, .picker__none { padding: 8px 10px 4px; font-size: 12px; color: var(--ink-3); }
@media (max-width: 519px) { .picker__name { font-size: 15px; } .picker__btn { gap: 8px; padding: 6px 10px 6px 6px; } .cmp-pick__b .picker__panel, .picker__panel { left: 0; right: auto; } .cmp-pick__b .picker__panel { left: auto; right: 0; } }
/* workbench chips coloured by tier, same palette as the rarity chips: 1 green, 2 blue, 3 purple, none grey */
.chip--wb { --wbc: var(--ink-3); color: color-mix(in srgb, var(--wbc) 70%, var(--rc-white)); border-color: color-mix(in srgb, var(--wbc) 45%, transparent); background: color-mix(in srgb, var(--wbc) 12%, transparent); }
.chip--wb1 { --wbc: var(--rc-win); } .chip--wb2 { --wbc: var(--rc-tier-diamond); } .chip--wb3 { --wbc: var(--rc-tier-elite); }
.chip--wb0 { color: var(--ink-3); background: transparent; border-color: var(--line); }
/* picker list scrolls inside the panel with a thin quiet scrollbar */
.picker__list { max-height: 60vh; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: var(--rc-scrollbar) transparent; padding-right: 2px; }
.picker__list::-webkit-scrollbar { width: 6px; }
.picker__list::-webkit-scrollbar-track { background: transparent; }
.picker__list::-webkit-scrollbar-thumb { background: var(--rc-scrollbar); border-radius: 3px; }
.picker__list::-webkit-scrollbar-thumb:hover { background: var(--rc-line-2); }
/* 390 px: long category names (RU, DE) wrap to two lines instead of being cut */
@media (max-width: 519px) { .catcard__name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; font-size: 14px; line-height: 1.2; } .catcard { min-height: 76px; } }
/* class filter chips on the weapons page */
.chip--btn { cursor: pointer; font: inherit; font-size: 13px; font-weight: 600; padding: 6px 14px; min-height: 34px; color: var(--ink-2); background: transparent; border-color: var(--line-2); }
.chip--btn:hover { color: var(--ink); }
.chip--btn[aria-pressed="true"] { background: var(--accent-soft); color: var(--accent-2); border-color: var(--rc-signal-line); }
.wclass { gap: 8px; }
/* subnav dropdown groups (World, Guides); the link row no longer scrolls so the menus are not clipped */
.subnav__links { overflow: visible; flex-wrap: wrap; row-gap: 0; }
.subnav__group { position: relative; display: flex; }
.subnav__gbtn { appearance: none; border: 0; background: none; color: inherit; font: inherit; font-weight: 500; padding: 14px 0; display: inline-flex; align-items: center; gap: 4px; cursor: pointer; position: relative; white-space: nowrap; }
.subnav__gbtn:hover, .subnav__gbtn.is-active, .subnav__gbtn[aria-expanded="true"] { color: var(--ink); }
.subnav__gbtn::after { content: ""; position: absolute; left: 0; right: 100%; bottom: 0; height: 2px; background: var(--rc-signal-mark); transition: right .2s ease; }
.subnav__gbtn.is-active::after { right: 0; }
.subnav__gchev { width: 14px; height: 14px; transition: transform .15s; }
.subnav__gbtn[aria-expanded="true"] .subnav__gchev { transform: rotate(180deg); }
.subnav__menu { position: absolute; top: calc(100% + 4px); left: -10px; z-index: 70; min-width: 180px; padding: 6px; display: grid; gap: 2px; border-radius: 12px; background: var(--rc-surface-raised); border: 1px solid var(--line-2); box-shadow: var(--rc-shadow); }
.subnav__links .subnav__menu a { padding: 9px 12px; border-radius: 8px; }
.subnav__links .subnav__menu a::after { display: none; }
.subnav__links .subnav__menu a:hover, .subnav__links .subnav__menu a:focus-visible { background: var(--glass-2); color: var(--ink); }
.subnav__links .subnav__menu a.is-active { color: var(--accent-2); background: var(--accent-soft); }
@media (max-width: 519px) { .subnav__gbtn { padding: 9px 0; } }
.firstbuild__body { display: grid; gap: 12px; place-items: center; }
.firstbuild__n { font-family: var(--font-cond); font-weight: 800; font-size: 44px; line-height: 1; color: var(--ink); letter-spacing: .02em; }
.cmp-head:hover { border-color: color-mix(in srgb, var(--cmp) 70%, transparent); }
.firstbuild__body { align-content: center; }
.catcard__n--txt { font-family: var(--font); font-size: 12px; font-weight: 600; line-height: 1.3; }
.gf-source { margin-top: 12px; }

/* ---------- tech tree (/wiki/techtree/) ---------- */
.tt .seg__opt { gap: 6px; }
.tt .seg__opt .plate { --pl: 20px; border: 0; background: transparent; }
.tt-card { padding: 12px; }
.tt-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-bottom: 10px; }
.tt-find { flex: 1 1 260px; max-width: 380px; min-width: 0; }
.tt-find .picker__btn { min-height: 44px; }
.tt-zbtn { width: 38px; min-height: 38px; font-size: 20px; font-weight: 700; }
/* in-game look: a lighter surface with a warm glow at the top fading to dark */
.tt-graph { position: relative; height: min(70vh, 640px); border-radius: 12px; overflow: hidden; border: 1px solid var(--line);
  background: radial-gradient(ellipse 80% 55% at 50% 0, color-mix(in srgb, var(--rc-loss) 18%, transparent), transparent 70%), linear-gradient(180deg, var(--rc-surface-raised), var(--rc-bg-2) 85%); }
.tt-svg { display: block; width: 100%; height: 100%; touch-action: none; cursor: grab; user-select: none; }
.tt-svg.is-dragging { cursor: grabbing; }
.tt-edge { fill: none; stroke: color-mix(in srgb, var(--rc-ink-3) 75%, transparent); stroke-width: 2; stroke-linejoin: miter; shape-rendering: crispEdges; }
.tt-edge.is-on { stroke: var(--rc-signal-mark); stroke-width: 3; }
.tt-node { cursor: pointer; }
.tt-node:focus { outline: none; }

.tt-tile { fill: color-mix(in srgb, var(--rc-black) 45%, var(--rc-surface-raised)); stroke: color-mix(in srgb, var(--rc-ink-3) 45%, transparent); stroke-width: 1.5; transition: fill .15s, stroke .15s; }
.tt-node:hover .tt-tile { stroke: var(--ink-3); }
.tt-cost { fill: var(--ink-2); font: 700 13px var(--font-cond); }
.tt-label { fill: var(--ink-2); font: 600 12px var(--font); }
.tt-ini { fill: var(--ink-2); font: 800 24px var(--font-cond); }
.tt-dot { fill: var(--rc-signal-mark); }
.tt-node.is-group .tt-dot { fill: var(--ink-3); }
.tt-node.is-locked { opacity: .45; }
.tt-node.is-open .tt-tile { stroke: var(--rc-signal-text); stroke-width: 2.5; filter: drop-shadow(0 0 8px color-mix(in srgb, var(--rc-signal-mark) 60%, transparent)); }
.tt-node.is-unlocked .tt-tile { fill: color-mix(in srgb, var(--rc-signal) 30%, var(--rc-surface-raised)); stroke: var(--rc-signal-mark); }
.tt-node.is-unlocked .tt-cost { fill: var(--rc-signal-text); }
.tt-node.is-route .tt-tile { fill: color-mix(in srgb, var(--rc-mode-oilrig) 22%, var(--rc-surface-raised)); stroke: var(--rc-mode-oilrig); stroke-width: 2.5; }

.tt-svg.is-far .tt-label { display: none; }
.tt-detail:empty { display: none; }
.tt-sel { display: flex; align-items: center; gap: 14px; padding: 14px 16px; }
.tt-sel__txt { display: grid; gap: 6px; min-width: 0; }
.tt-sel__name { font-family: var(--font-cond); font-weight: 800; font-size: 20px; }
.tt-sel__name:hover { color: var(--accent-2); }
.tt-tip { display: inline-flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.tt-tip:hover { color: var(--accent-2); }
.tt-st--unlocked { color: var(--rc-signal-text); } .tt-st--open { color: var(--ink); } .tt-st--route { color: var(--rc-mode-oilrig); }
.tt-curs { --tmin: 180px; }
.tt-cur.is-zero .tile__big { color: var(--ink-3); }
.tt-plan__pick { display: grid; gap: 10px; max-width: 520px; }
.tt-route { display: grid; gap: 2px; counter-reset: none; }
.tt-step { display: grid; grid-template-columns: 26px auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-height: 52px; padding: 6px 4px; border-bottom: 1px solid var(--line); }
.tt-step:last-child { border-bottom: 0; }
.tt-step__n { color: var(--ink-3); font-weight: 700; text-align: right; }
.tt-step__txt { display: grid; gap: 3px; min-width: 0; }
.tt-step__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-step__name:hover { color: var(--accent-2); }
.tt-step__cost { font-family: var(--font-cond); font-size: 18px; }
.tt-save .tile__big { color: var(--rc-win); }
@media (max-width: 519px) { .tt-graph { height: 60vh; } .tt-find { flex-basis: 100%; max-width: none; } .tt-step { grid-template-columns: 20px auto minmax(0, 1fr) auto; gap: 8px; } }
.picker__name.is-ph { color: var(--ink-3); font-family: var(--font); font-weight: 500; font-size: 15px; }
.picker__ph { --pl: 32px; }
.picker__ph .ico { width: 16px; height: 16px; }
.tt-zoom { display: inline-flex; gap: 8px; margin-left: auto; }
@media (max-width: 519px) { .tt-curs { grid-template-columns: repeat(3, minmax(0, 1fr)); } .tt-cur .pair__k { display: none; } .tt-cur .tile__big { font-size: 24px; } }
.tt-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; margin-top: -6px; }
.tt-sub:not(:has(> :not([hidden]))) { display: none; }
.tt-gm { gap: 8px; }
/* tech tree round 2: known blueprints, two facts per node, list mode for phones */
.tt-node.is-known .tt-tile { fill: color-mix(in srgb, var(--rc-win) 22%, var(--rc-surface-raised)); stroke: var(--rc-win); }
.tt-known { fill: var(--rc-win); }
.tt-st--known { color: var(--rc-win); }
.tt-facts { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; font-size: 13px; color: var(--ink-2); }
.tt-fact { display: inline-flex; align-items: baseline; gap: 6px; min-width: 0; }
a.tt-fact:hover { color: var(--accent-2); }
.tt-fact .pair__k { font-size: 10px; }
.tt-sel { flex-wrap: wrap; }
.tt-sel__txt { flex: 1 1 260px; }
.tt-knownbtn[aria-pressed="true"] { color: var(--rc-win); border-color: color-mix(in srgb, var(--rc-win) 45%, transparent); background: color-mix(in srgb, var(--rc-win) 10%, transparent); }
.chip--known .ico { width: 13px; height: 13px; color: var(--rc-win); }
.tt-plan__grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.tt-plan__grid .sub { margin-top: 0; }
.tt-viewrow { display: flex; justify-content: flex-end; margin-top: -6px; }
.tt-list { display: grid; gap: 4px; }
.tt-row { display: flex; align-items: center; gap: 6px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--rc-white) 2%, transparent); }
.tt-row.is-unlocked { border-color: var(--rc-signal-line); background: color-mix(in srgb, var(--rc-signal) 10%, transparent); }
.tt-row.is-known { border-color: color-mix(in srgb, var(--rc-win) 45%, transparent); }
.tt-row.is-route { border-color: var(--rc-mode-oilrig); }
.tt-row.is-locked .tt-row__name { color: var(--ink-3); }
.tt-row__btn { flex: 1 1 auto; min-width: 0; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-rows: auto auto; column-gap: 10px; row-gap: 2px; align-items: center; padding: 8px 10px; background: none; border: 0; color: inherit; font: inherit; text-align: left; cursor: pointer; }
.tt-row__btn .plate { grid-row: 1 / span 2; }
.tt-row__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tt-row__cost { grid-column: 2; font-size: 12px; color: var(--ink-3); }
.tt-row__btn .chip { grid-column: 3; grid-row: 1 / span 2; }
.tt-row__known { flex: 0 0 auto; width: 44px; height: 44px; margin-right: 6px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); background: transparent; color: var(--ink-3); cursor: pointer; }
.tt-row__known[aria-pressed="true"] { color: var(--rc-win); border-color: color-mix(in srgb, var(--rc-win) 45%, transparent); background: color-mix(in srgb, var(--rc-win) 10%, transparent); }
.tt-row__btn { grid-template-columns: auto minmax(0, 1fr); }
.tt-row__name { white-space: normal; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; line-height: 1.25; }
.tt-row__meta { grid-column: 2; display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; }
.tt-row__btn .tt-row__meta .chip { grid-column: auto; grid-row: auto; }
@media (max-width: 519px) { .hero .wsearch__input { font-size: 15px; padding-left: 44px; } }
@media (max-width: 519px) {
  .catcard { column-gap: 8px; padding: 10px; }
  .catcard .plate { --pl: 36px !important; }
  .catcard__name { font-size: 13px; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
}
.smelt__in { font-weight: 600; }
#smelted .stack + .stack { margin-top: 16px; }
/* item icons stay invisible until they loaded: a missing PNG never flashes as a broken image before the initials appear */
.plate img { opacity: 0; transition: opacity .15s; }
.plate img.is-ok { opacity: 1; }

/* Despawning page: rarity tiles open a dialog with the items of that rarity */
button.gf-rar { font: inherit; color: inherit; text-align: left; width: 100%; }
.gf-rar.is-click { cursor: pointer; }
.gf-rar.is-click:hover, .gf-rar.is-click:focus-visible { border-color: color-mix(in srgb, var(--rar) 80%, transparent); }
.gf-rar__count { color: var(--ink); border-color: color-mix(in srgb, var(--rar) 55%, transparent); }
.gf-dlg { width: min(720px, calc(100vw - 24px)); max-width: none; max-height: min(86vh, 900px); padding: 0; border: 1px solid var(--line-2); border-radius: var(--radius); background: var(--rc-surface-raised); color: var(--ink); box-shadow: var(--rc-shadow); overflow: hidden; }
.gf-dlg::backdrop { background: color-mix(in srgb, var(--rc-black) 70%, transparent); }
.gf-dlg__in { display: grid; grid-template-rows: auto auto minmax(0, 1fr); gap: 12px; padding: 18px; max-height: min(86vh, 900px); min-width: 0; }
.gf-dlg__head { display: flex; align-items: center; gap: 10px 12px; flex-wrap: wrap; min-width: 0; }
.gf-dlg__head h2 { font-size: 24px; color: color-mix(in srgb, var(--rar) 70%, var(--rc-white)); }
.gf-dlg__close { margin-left: auto; width: 40px; min-height: 40px; font-size: 22px; }
.gf-dlg__list { display: grid; gap: 4px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); overflow-y: auto; overflow-x: hidden; min-height: 0; padding-right: 4px; scrollbar-width: thin; scrollbar-color: var(--rc-scrollbar) transparent; }
.gf-dlg__row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 10px; min-height: 48px; padding: 6px 8px; border-radius: 10px; min-width: 0; }
.gf-dlg__row:hover, .gf-dlg__row:focus-visible { background: var(--glass-2); }
.gf-dlg__row:hover .gf-dlg__name { color: var(--accent-2); }
.gf-dlg__name { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 519px) { .gf-dlg__in { padding: 14px; } .gf-dlg__row .chip { display: none; } }

/* ---------- Items overview (/wiki/categories/): three sections that look different ---------- */
.ico--brand { stroke-linecap: butt; stroke-linejoin: miter; stroke-width: 2; }
.catplate { color: var(--ink-3); }
.catplate .ico { width: 50%; height: 50%; }
.ov-head { align-items: center; }
.ov-search { flex: 0 1 360px; min-width: 0; }
.ov-search .wsearch__input { min-height: 44px; }
@media (max-width: 759px) { .ov-search { flex-basis: 100%; } }
.ov-sec .sec-title { margin-bottom: 14px; }
/* item categories: icon cards, 6 / 4 / 3 / 2 per row, names wrap instead of truncating */
.ovcats { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .ovcats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ovcats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .ovcats { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.ovcat { display: grid; grid-template-rows: auto 1fr auto; justify-items: center; text-align: center; gap: 10px; padding: 18px 12px 14px; transition: border-color .15s, background .15s, transform .15s; }
.ovcat:hover, .ovcat:focus-visible { border-color: var(--line-2); background: var(--glass-2); }
.ovcat__name { font-family: var(--font-cond); font-weight: 800; font-size: 17px; line-height: 1.15; overflow-wrap: anywhere; hyphens: auto; align-self: center; }
.ovcat__n { justify-self: center; }
/* world and guides: wide cards, one row of 4 on desktop, each section with its own tint */
.ovwides { display: grid; gap: 12px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 600px) { .ovwides { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .ovwides { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.ovwide { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 14px; padding: 16px; min-height: 84px; transition: border-color .15s, background .15s; }
.ov-sec--world .ovwide { background: color-mix(in srgb, var(--rc-mode-oilrig) 6%, var(--glass)); border-color: color-mix(in srgb, var(--rc-mode-oilrig) 22%, var(--line)); }
.ov-sec--guides .ovwide { background: color-mix(in srgb, var(--rc-signal) 7%, var(--glass)); border-color: color-mix(in srgb, var(--rc-signal) 25%, var(--line)); }
.ov-sec--world .ovwide:hover, .ov-sec--world .ovwide:focus-visible { border-color: color-mix(in srgb, var(--rc-mode-oilrig) 60%, transparent); }
.ov-sec--guides .ovwide:hover, .ov-sec--guides .ovwide:focus-visible { border-color: var(--rc-signal-line); }
.ovwide__plate { --pl: 48px; color: var(--ink-2); }
.ovwide__plate .ico { width: 50%; height: 50%; }
.ovwide__txt { display: grid; gap: 3px; min-width: 0; }
.ovwide__name { font-family: var(--font-cond); font-weight: 800; font-size: 19px; line-height: 1.15; overflow-wrap: anywhere; }
.ovwide__line { font-size: 13px; color: var(--ink-3); }
.ovwide__go { color: var(--ink-3); }
@media (prefers-reduced-motion: reduce) { .ovcat { transition: none; } .ovcat:hover { transform: none; } }
/* a marked node shows that a click unmarks it: dashed border on hover and focus */
.tt-node.is-unlocked:hover .tt-tile, .tt-node.is-unlocked:focus-visible .tt-tile, .tt-node.is-route:hover .tt-tile, .tt-node.is-route:focus-visible .tt-tile { stroke-dasharray: 6 4; stroke: var(--ink-2); }
.tt-row.is-unlocked:hover, .tt-row.is-route:hover { border-style: dashed; }
.tt-sel__acts { display: flex; flex-wrap: wrap; gap: 8px; }
.tt-actbtn.is-undo { border-style: dashed; }
/* tech tree backdrop like the in-game tree, all fixed to the card (it does not pan): a warm red-brown glow at the top
   centre fading into the dark surface by the middle, a fine dot board that fades out with the glow, a soft vignette.
   Only brand tokens and gradients, no images, nothing animated. */
.tt-graph { isolation: isolate;
  background:
    radial-gradient(ellipse 75% 60% at 50% 0, color-mix(in srgb, var(--rc-loss) 30%, transparent), color-mix(in srgb, var(--rc-loss) 10%, transparent) 42%, transparent 70%),
    linear-gradient(180deg, color-mix(in srgb, var(--rc-white) 4%, var(--rc-surface-raised)), var(--rc-bg-2) 55%, var(--rc-bg-3)); }
.tt-graph::before, .tt-graph::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 0; }
.tt-graph::before {
  background-image: radial-gradient(circle, color-mix(in srgb, var(--rc-ink-2) 30%, transparent) 1px, transparent 1.6px);
  background-size: 22px 22px; background-position: 11px 11px;
  -webkit-mask-image: radial-gradient(ellipse 90% 75% at 50% 0, var(--rc-black) 20%, transparent 80%);
          mask-image: radial-gradient(ellipse 90% 75% at 50% 0, var(--rc-black) 20%, transparent 80%); }
.tt-graph::after { background: radial-gradient(ellipse 120% 95% at 50% 40%, transparent 60%, color-mix(in srgb, var(--rc-black) 55%, transparent) 100%); }
.tt-svg { position: relative; z-index: 1; }
.tt-edge { stroke: color-mix(in srgb, var(--rc-ink-2) 70%, transparent); }
/* category cards, horizontal (Cobra 2026-11-08): icon plate left, name over the count chip right */
.ovcat { grid-template-columns: auto minmax(0, 1fr); grid-template-rows: none; justify-items: stretch; align-items: center; text-align: left; gap: 12px; padding: 12px; }
.ovcat .catplate { --pl: 72px !important; }
.ovcat .catplate img { width: 92%; height: 92%; }
.ovcat__txt { display: grid; gap: 6px; justify-items: start; min-width: 0; }
.ovcat__name { align-self: auto; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; }
.ovcat__n { justify-self: start; }
@media (max-width: 519px) { .ovcat .catplate { --pl: 56px !important; } .ovcat { gap: 10px; padding: 10px; } .ovcat__name { font-size: 15px; } }
/* six columns leave little room beside the icon: 60 px plate, tighter padding, hyphenation before a hard break */
.ovcat__name { overflow-wrap: break-word; hyphens: auto; -webkit-hyphens: auto; }
@media (min-width: 1180px) { .ovcat .catplate { --pl: 60px !important; } .ovcat { gap: 10px; padding: 10px; } .ovcat__name { font-size: 15px; } }
/* long single words get a smaller size so no language breaks them mid-word */
.ovcat__name.is-long { font-size: 14px; }
@media (min-width: 1180px) { .ovcat__name.is-long { font-size: 13px; } }
@media (max-width: 519px) { .ovcat .catplate { --pl: 48px !important; } .ovcat__name.is-long { font-size: 13px; } }

/* tech tree selection (Cobra 2026-11-08): no dashed ring anywhere. Selected and keyboard-focused tiles get a solid gold ring
   outside with a soft glow and a lighter fill; unlocked blue and route teal stay as the inner state colours */
.tt-selring { fill: none; stroke: none; }
.tt-node.is-sel .tt-selring, .tt-node:focus-visible .tt-selring { stroke: var(--rc-tier-gold); stroke-width: 3; filter: drop-shadow(0 0 6px color-mix(in srgb, var(--rc-tier-gold) 55%, transparent)); }
.tt-node.is-sel .tt-tile, .tt-node:focus-visible .tt-tile { fill: color-mix(in srgb, var(--rc-white) 10%, var(--rc-surface-raised)); }
.tt-node.is-sel.is-unlocked .tt-tile, .tt-node.is-unlocked:focus-visible .tt-tile { fill: color-mix(in srgb, var(--rc-signal) 38%, var(--rc-surface-raised)); }
.tt-node.is-sel.is-route .tt-tile, .tt-node.is-route:focus-visible .tt-tile { fill: color-mix(in srgb, var(--rc-mode-oilrig) 30%, var(--rc-surface-raised)); }
.tt-node.is-sel.is-known .tt-tile, .tt-node.is-known:focus-visible .tt-tile { fill: color-mix(in srgb, var(--rc-win) 30%, var(--rc-surface-raised)); }
.tt-node:focus-visible .tt-tile, .tt-node.is-sel .tt-tile { stroke-width: 2; }
/* marked nodes signal "a click unmarks": a lighter solid border on hover, no dashes */
.tt-node.is-unlocked:hover .tt-tile, .tt-node.is-unlocked:focus-visible .tt-tile, .tt-node.is-route:hover .tt-tile, .tt-node.is-route:focus-visible .tt-tile { stroke-dasharray: none; stroke: var(--ink); }
.tt-row.is-unlocked:hover, .tt-row.is-route:hover { border-style: solid; border-color: var(--ink-2); }
.tt-actbtn.is-undo { border-style: solid; }
.tt-row.is-sel, .tt-row:focus-within { border-color: var(--rc-tier-gold); box-shadow: 0 0 0 1px var(--rc-tier-gold), 0 0 10px color-mix(in srgb, var(--rc-tier-gold) 35%, transparent); }
.tt-row__btn:focus-visible, .tt-row__known:focus-visible { outline: none; }
/* overview cards (Cobra 2026-11-08 round 2): one name size in every card; the text column gets the room instead:
   5 / 4 / 3 / 2 per row, 64 px plate on desktop, 48 px on phones, 14 px padding, names wrap at spaces only */
.ovcats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 600px) { .ovcats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 900px) { .ovcats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .ovcats { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.ovcat { padding: 14px; gap: 12px; }
.ovcat .catplate { --pl: 64px !important; }
.ovcat__name, .ovcat__name.is-long { font-size: 17px; overflow-wrap: normal; word-break: normal; hyphens: manual; -webkit-hyphens: manual; }
@media (min-width: 1180px) { .ovcat .catplate { --pl: 64px !important; } .ovcat { gap: 12px; padding: 14px; } .ovcat__name, .ovcat__name.is-long { font-size: 17px; } }
@media (max-width: 519px) { .ovcat .catplate { --pl: 48px !important; } .ovcat { gap: 10px; padding: 14px; } .ovcat__name, .ovcat__name.is-long { font-size: 15px; } }
/* tech tree state model: the gold ring rect exists only on the selected node; keyboard focus marks the tile itself */
.tt-node:focus-visible:not(.is-sel) .tt-tile { stroke: var(--rc-tier-gold); stroke-width: 3; stroke-dasharray: none; }
.tt-shared { gap: 6px; }
/* simulator preview: the path a click would buy, solid amber outline with a light fill; planner hover uses the same look */
.tt-node.is-preview .tt-tile, .tt-node.is-pvh .tt-tile { fill: color-mix(in srgb, var(--rc-warn) 10%, var(--rc-surface-raised)); stroke: var(--rc-warn); stroke-width: 2.5; stroke-dasharray: none; filter: none; }
.tt-node.is-preview .tt-img, .tt-node.is-preview .tt-ini { opacity: .85; }
.tt-edge.is-pv { stroke: var(--rc-warn); stroke-width: 2.25; stroke-dasharray: none; }
.tt-node.is-sel.is-preview .tt-tile { fill: color-mix(in srgb, var(--rc-warn) 16%, var(--rc-surface-raised)); }
.tt-st--preview, .tt-pv-buy { color: var(--rc-warn); border-color: color-mix(in srgb, var(--rc-warn) 45%, transparent); background: color-mix(in srgb, var(--rc-warn) 10%, transparent); }
.tt-costline { display: flex; align-items: center; gap: 8px; margin-top: 6px; font-size: 14px; }
.tt-costline b { font-family: var(--font-cond); font-size: 16px; color: var(--rc-warn); }
/* shared item card (ui.js itemCard / entityCard): plate left, name right (two lines max), amount chip on the right edge.
   Grids: 4 per row on desktop, 3 on tablets, 2 on phones; cards in a row share the height. */
.tiles--icons { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 700px) { .tiles--icons { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .tiles--icons { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.xcard { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 12px; min-width: 0; height: 100%; padding: 10px 12px 10px 10px; border-radius: 12px; background: color-mix(in srgb, var(--rc-white) 3%, transparent); border: 1px solid var(--line); transition: border-color .15s, background .15s; }
a.xcard:hover, a.xcard:focus-visible { border-color: var(--line-2); background: var(--glass-2); }
.xcard .plate img { width: 80%; height: 80%; object-fit: contain; }
.xcard__txt { display: grid; gap: 2px; min-width: 0; }
.xcard__name { font-size: 14px; font-weight: 600; line-height: 1.25; overflow: hidden; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow-wrap: normal; }
.xcard__sub { font-size: 12px; color: var(--ink-3); font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.xcard__amt { justify-self: end; white-space: nowrap; font-family: var(--font-cond); font-weight: 700; font-size: 13px; }
@media (max-width: 519px) {
  /* phones, two per row: plate and amount chip on top, the name below over the full card width */
  .xcard { grid-template-columns: auto minmax(0, 1fr); grid-template-areas: "plate amt" "txt txt"; gap: 8px; padding: 10px; align-items: center; align-content: start; }
  .xcard > .plate { grid-area: plate; --pl: 48px !important; }
  .xcard__amt { grid-area: amt; justify-self: end; align-self: start; }
  .xcard__txt { grid-area: txt; }
  .xcard__name { font-size: 13px; }
}
.obt > .sub { margin: 4px 0 -2px; }
.obt > .sub:first-child { margin-top: 0; }
.obt__mons > .chips { margin-top: 2px; }
.kv--facts dd .chip { font-family: var(--font); font-size: 13px; }
.kv--facts dd .chip--mono { font-family: var(--font-mono, ui-monospace, monospace); }
@media (min-width: 640px) { .kv--facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
/* where to buy: one row per offer */
.vrows { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.vrow { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) auto; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: color-mix(in srgb, var(--rc-white) 3%, transparent); }
.vrow__item { display: flex; align-items: center; gap: 10px; min-width: 0; }
.vrow__amt { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vrow__price { display: inline-flex; align-items: center; gap: 8px; justify-self: end; white-space: nowrap; color: inherit; text-decoration: none; }
.vrow__price b { font-family: var(--font-cond); font-size: 18px; }
.vrow__cur { font-size: 13px; font-weight: 600; color: var(--ink-2); }
a.vrow__price:hover .vrow__cur { color: var(--accent-2); }
@media (max-width: 639px) { .vrow { grid-template-columns: minmax(0, 1fr) auto; } .vrow__where { grid-column: 1 / -1; grid-row: 2; } .vrow__cur { display: none; } }
.kv--facts + * { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--line); }
/* compact picker: replaces every native select (toolbars on categories and weapons) */
.picker--compact { flex: 0 1 auto; min-width: 0; max-width: 100%; }
.picker--compact .picker__btn { min-height: 40px; gap: 8px; padding: 4px 12px 4px 6px; border-radius: 999px; }
.picker--compact .picker__name { font-family: var(--font); font-weight: 600; font-size: 14px; }
.picker--compact .picker__btn > .plate { --pl: 28px !important; border-radius: 999px; }
.picker--compact .picker__btn > .picker__name:first-child { padding-left: 8px; }
.picker--compact .picker__panel { width: max(100%, 260px); }
.picker--ammo .picker__panel { width: max(100%, 320px); }
.picker--nosearch .picker__list:focus { outline: none; }
.picker__glyph .ico { width: 50%; height: 50%; }
.picker__wb { display: inline-flex; align-items: center; flex: 1 1 auto; min-width: 0; }
.picker__grp { padding: 10px 8px 4px; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.picker__grp:first-child { padding-top: 4px; }
@media (max-width: 519px) {
  .toolbar > .picker--compact { flex: 1 1 140px; }
  .picker--compact .picker__panel { width: min(320px, calc(100vw - 24px)); }
}
.tt-srcs { margin-top: 6px; } .tt-src .plate { --pl: 18px !important; border-radius: 4px; } .tt-src .ico { width: 14px; height: 14px; }
.tt-srcmore { min-height: 26px; padding: 2px 10px; font-size: 12px; }
