/* Rust.camp Player lookup (/lookup/, docs/LOOKUP.md). Base, header and card copied from /seasons/seasons.css (same page frame);
   chips (.rcb) and avatars (.rcav) from /css/badges.css; tokens only (/css/tokens.css); icons = brand solid pack (s-*); no inline styles (CSP). */
@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 { color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scrollbar-color: var(--rc-scrollbar) var(--rc-bg); accent-color: var(--rc-signal-text); }
body { margin: 0; background: var(--rc-bg); color: var(--rc-ink); font-family: var(--rc-font-text); font-size: 16px; line-height: 1.6; -webkit-font-smoothing: antialiased; }
[hidden] { display: none !important; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--rc-font-display); font-weight: 800; margin: 0; line-height: 1.1; }
p { margin: 0; }
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--rc-signal); color: var(--rc-signal-ink); padding: 8px 12px; border-radius: 8px; z-index: 100; min-height: var(--rc-tap); display: inline-flex; align-items: center; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--rc-signal-mark); outline-offset: 2px; }
::selection { background: color-mix(in srgb, var(--rc-signal) 35%, transparent); color: var(--rc-ink); }
.rwrap { width: min(100% - 2 * var(--rc-gutter), var(--rc-wrap)); margin-inline: auto; }
.rmain { padding: 36px 0 64px; display: grid; gap: 16px; }
.rhead { margin-bottom: 12px; max-width: 760px; }
.rhead h1 { font-size: clamp(34px, 5vw, 52px); overflow-wrap: break-word; }
.lede { margin-top: 10px; color: var(--rc-ink-2); font-size: 17px; }
.rcard { padding: 22px 22px 20px; border-radius: var(--rc-radius); border: 1px solid var(--rc-line); background: var(--rc-glass); min-width: 0; }
.num { font-variant-numeric: tabular-nums; }
.mockbar { display: flex; align-items: center; justify-content: center; gap: 10px; padding: 8px 16px; font-size: 13px; color: var(--rc-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); flex: 0 0 auto; }
@media (max-width: 639px) { .rcard { padding: 18px 16px; } }

/* icons (brand solid pack, currentColor) */
.lk-ico { width: 20px; height: 20px; flex: 0 0 auto; fill: currentColor; color: var(--rc-ink-3); }
.lk-ico--16 { width: 16px; height: 16px; }

/* buttons */
.lk-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--rc-sp-2); min-height: 44px; padding: 0 18px; font: inherit; font-size: 14px; font-weight: 600; color: var(--rc-ink);
  background: var(--rc-glass-2); border: 1px solid var(--rc-line-2); border-radius: var(--rc-radius-pill); cursor: pointer; white-space: nowrap; text-decoration: none; }
.lk-btn:hover { border-color: color-mix(in srgb, var(--rc-signal) 55%, transparent); }
.lk-btn:disabled { color: var(--rc-ink-3); background: var(--rc-disabled); cursor: default; }
.lk-btn--primary { color: var(--rc-signal-ink); background: var(--rc-signal); border-color: var(--rc-signal); box-shadow: var(--rc-shadow-1); }
.lk-btn--primary:hover { background: var(--rc-signal-hover); border-color: var(--rc-signal-hover); }
.lk-btn--primary:active { background: var(--rc-signal-press); }
.lk-btn .lk-ico { color: currentColor; }
.lk-iconbtn { display: inline-grid; place-items: center; width: 36px; height: 36px; padding: 0; border: 1px solid transparent; border-radius: 10px; background: none; color: var(--rc-ink-3); cursor: pointer; flex: 0 0 auto; }
.lk-iconbtn:hover { color: var(--rc-ink); background: var(--rc-glass-2); border-color: var(--rc-line); }
.lk-iconbtn .lk-ico { color: currentColor; width: 16px; height: 16px; }
.lk-iconbtn.is-done { color: var(--rc-win); }
@media (pointer: coarse) { .lk-iconbtn { width: 44px; height: 44px; } }

/* search */
.lk-search { display: flex; gap: var(--rc-sp-3); align-items: stretch; }
.lk-search__field { position: relative; flex: 1 1 auto; min-width: 0; display: flex; }
.lk-search__ico { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.lk-search input { width: 100%; min-width: 0; min-height: 52px; padding: 0 16px 0 46px; font: inherit; font-size: 16px; color: var(--rc-ink); background: var(--rc-bg-3);
  border: 1px solid var(--rc-line-2); border-radius: var(--rc-radius-pill); }
.lk-search input::placeholder { color: var(--rc-ink-3); }
.lk-search input:focus { outline: none; border-color: var(--rc-signal-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc-signal) 30%, transparent); }
.lk-search input::-webkit-search-cancel-button { display: none; }
.lk-search .lk-btn { min-height: 52px; padding: 0 24px; font-size: 15px; }
.lk-search--sm input, .lk-search--sm .lk-btn { min-height: 44px; }
@media (max-width: 479px) { .lk-search .lk-btn { padding: 0 16px; } }

/* quiet state: one chip, centred */
.lk-state { display: flex; justify-content: center; padding: var(--rc-sp-5) 0; }

/* chips: .rcb (badges.css) + tones */
.lk-chips { display: flex; flex-wrap: wrap; gap: var(--rc-chip-gap); min-width: 0; }
.rcb.lk-dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--rc-ink-3); flex: 0 0 auto; }
.rcb.is-ok { color: var(--rc-ink); }
.rcb.is-ok.lk-dot::before { background: var(--rc-win); }
.rcb.is-bad { color: var(--rc-loss); border-color: color-mix(in srgb, var(--rc-loss) 40%, transparent); background: color-mix(in srgb, var(--rc-loss) 10%, transparent); }
.rcb.is-bad.lk-dot::before { background: var(--rc-loss); }
.rcb.is-warn { color: var(--rc-warn); border-color: color-mix(in srgb, var(--rc-warn) 40%, transparent); background: color-mix(in srgb, var(--rc-warn) 8%, transparent); }
.rcb.is-signal { color: var(--rc-signal-text); border-color: var(--rc-signal-line); background: var(--rc-signal-soft); }
.rcb.is-game { color: var(--rc-ink); border-color: color-mix(in srgb, var(--rc-win) 40%, transparent); background: color-mix(in srgb, var(--rc-win) 10%, transparent); }
.rcb.is-game.lk-dot::before { background: var(--rc-win); }
a.rcb { text-decoration: none; }
a.rcb:hover { border-color: var(--rc-signal-line); color: var(--rc-ink); }
.rcb .lk-ico { width: 14px; height: 14px; color: currentColor; margin-left: -2px; }
.rcb > span { overflow: hidden; text-overflow: ellipsis; }
.lk-chip--lg.rcb { min-height: var(--rc-chip-h-lg); padding: var(--rc-chip-pad-lg); font-size: var(--rc-chip-fs-lg); }

/* result frame */
.lk-result { display: grid; gap: 16px; min-width: 0; }
.lk-card { display: flex; flex-direction: column; min-width: 0; }
.lk-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rc-sp-3); margin-bottom: var(--rc-sp-4); min-height: 32px; }
.lk-card__t { display: flex; align-items: center; gap: 10px; font-size: 22px; min-width: 0; }
.lk-card__t > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-card__body { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.lk-empty { flex: 1 1 auto; display: grid; place-items: center; min-height: 120px; }
.lk-dash { color: var(--rc-ink-3); }

/* header card: square corners, Lock-On brackets (brand/BRAND.md 4.3 Sekundaer-Motiv) */
.lk-head { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--rc-sp-4) var(--rc-sp-5); align-items: center; padding: 26px; border-radius: 0;
  border: 1px solid var(--rc-line); background: var(--rc-bg-2); }
.lk-head::before, .lk-head::after { content: ""; position: absolute; width: 16px; height: 16px; pointer-events: none; border: 2px solid var(--rc-signal-mark); }
.lk-head::before { top: 7px; left: 7px; border-right: 0; border-bottom: 0; }
.lk-head::after { right: 7px; bottom: 7px; border-left: 0; border-top: 0; }
.lk-head .rcav { --rcav: 104px; }
.lk-head__main { display: grid; gap: var(--rc-sp-3); min-width: 0; }
.lk-head__name { font-size: clamp(28px, 4vw, 40px); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-head__name a { text-decoration: none; }
.lk-head__name a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.lk-head__chips2 { grid-column: 2; }
.lk-head__links { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: var(--rc-sp-2); padding-top: var(--rc-sp-4); border-top: 1px solid var(--rc-line); }
.lk-head__links a.rcb { min-height: 32px; padding: 6px 12px; font-size: 13px; }
@media (max-width: 639px) {
  .lk-head { grid-template-columns: auto minmax(0, 1fr); padding: 20px 16px; gap: var(--rc-sp-3) var(--rc-sp-4); align-items: start; }
  .lk-head .rcav { --rcav: 72px; }
  .lk-head__name { font-size: 26px; }
  .lk-head__main { gap: var(--rc-sp-2); }
  .lk-head__chips2 { grid-column: 1 / -1; }
}

/* fact tiles: Rust hours spans two cells -> 8 cells: 2 / 4 / 8 per row */
.lk-tiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .lk-tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lk-tile { display: grid; grid-template-rows: auto 1fr auto; gap: 6px; min-width: 0; padding: 16px; border-radius: var(--rc-radius-sm); border: 1px solid var(--rc-line); background: var(--rc-glass); }
.lk-tile__lbl { display: flex; align-items: center; gap: 8px; min-width: 0; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--rc-ink-3); white-space: nowrap; }
.lk-tile__lbl > span { overflow: hidden; text-overflow: ellipsis; }
.lk-tile__lbl .lk-ico { width: 16px; height: 16px; }
.lk-tile__v { font-family: var(--rc-font-display); font-weight: 800; font-size: 26px; line-height: 1.1; font-variant-numeric: tabular-nums; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; align-self: end; }
.lk-tile__v small { font-size: .6em; font-weight: 700; color: var(--rc-ink-2); margin-left: 3px; }
.lk-tile__sub { font-size: 13px; color: var(--rc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-height: 20px; }
.lk-tile--rust { grid-column: span 2; border-color: var(--rc-signal-line); background: color-mix(in srgb, var(--rc-signal) 9%, var(--rc-glass)); }
.lk-tile--rust .lk-tile__v { font-size: 40px; }
.lk-tile--rust .lk-tile__lbl .lk-ico { color: var(--rc-signal-text); }
@media (max-width: 639px) { .lk-tile { padding: 14px 12px; } .lk-tile__v { font-size: 22px; } .lk-tile--rust .lk-tile__v { font-size: 34px; } .lk-tile__lbl { letter-spacing: .04em; } }

/* two equal columns */
.lk-grid2 { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lk-grid2 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ID table: label | value (mono, ellipsized, click = copy) | copy button */
.lk-kv { display: grid; grid-template-columns: minmax(76px, auto) minmax(0, 1fr) auto; align-items: center; column-gap: var(--rc-sp-3); margin: 0; }
.lk-kv dt { font-size: 12px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rc-ink-3); white-space: nowrap; }
.lk-kv dd { margin: 0; min-width: 0; display: contents; }
.lk-kv__v { min-width: 0; padding: 9px 0; font-family: var(--rc-font-mono); font-size: 14px; color: var(--rc-ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; border: 0; background: none; text-align: left; }
.lk-kv__v:hover { color: var(--rc-signal-text); }
.lk-kv dt, .lk-kv__c { min-height: 52px; display: flex; align-items: center; border-bottom: 1px solid var(--rc-line); }
.lk-kv__v { display: block; width: 100%; min-height: 52px; padding: 15px 0; line-height: 22px; border-bottom: 1px solid var(--rc-line); }
.lk-kv__c { justify-content: flex-end; }
.lk-kv dt:nth-last-of-type(1), .lk-kv dd:last-of-type .lk-kv__v, .lk-kv dd:last-of-type .lk-kv__c { border-bottom: 0; }
.lk-kv__v.lk-dash { cursor: default; }

/* lists: fixed 48 px rows, name ellipsized, numbers tight */
.lk-list { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; }
.lk-row { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: var(--rc-sp-3); min-height: 52px; padding: 6px 0; border-bottom: 1px solid var(--rc-line); min-width: 0; }
.lk-row:last-child { border-bottom: 0; }
.lk-row__main { display: grid; gap: 4px; min-width: 0; }
.lk-row__name { min-width: 0; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; text-decoration: none; }
a.lk-row__name:hover { color: var(--rc-signal-text); text-decoration: underline; }
.lk-row__end { display: flex; align-items: center; gap: var(--rc-sp-2); font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--rc-ink-2); font-size: 14px; }
.lk-row__end b { color: var(--rc-ink); font-weight: 700; }
.lk-row .lk-chips { flex-wrap: wrap; }
.lk-row__rank { width: 22px; text-align: right; font-weight: 700; color: var(--rc-ink-3); font-variant-numeric: tabular-nums; font-size: 13px; }
.lk-gicon { width: 32px; height: 32px; border-radius: 6px; object-fit: cover; display: grid; place-items: center; background: var(--rc-surface-raised); border: 1px solid var(--rc-line-2);
  font-family: var(--rc-font-display); font-weight: 800; font-size: 13px; color: var(--rc-ink-2); overflow: hidden; flex: 0 0 auto; }
img.lk-gicon { border: 0; }
.lk-more { margin-top: var(--rc-sp-3); display: flex; justify-content: center; }

/* previous names: two columns when the card is wide */
.lk-names { display: grid; grid-template-columns: minmax(0, 1fr); column-gap: var(--rc-sp-6); }
.lk-card--wide .lk-names { grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); }
.lk-names .lk-row { grid-template-columns: minmax(0, 1fr) auto; }
.lk-names .lk-row:last-child { border-bottom: 1px solid var(--rc-line); }

/* BattleMetrics card + server search */
.lk-mini { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: var(--rc-sp-4); }
.lk-mini .lk-tile { padding: 12px; gap: 4px; }
.lk-mini .lk-tile__v { font-size: 20px; }
.lk-mini .lk-tile__lbl { font-size: 11px; }
.lk-bms { display: flex; flex-direction: column; gap: var(--rc-sp-4); }
.lk-bms .lk-card__head { margin-bottom: 0; }
.lk-bms__out:empty { display: none; }
.lk-srv { display: grid; gap: var(--rc-sp-4); min-width: 0; }
.lk-srv__head { display: flex; align-items: center; gap: var(--rc-sp-3); min-width: 0; }
.lk-srv__name { font-size: 20px; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
button.lk-row { width: 100%; font: inherit; color: inherit; background: none; border: 0; border-bottom: 1px solid var(--rc-line); text-align: left; cursor: pointer; padding: 6px 4px; }
button.lk-row:hover .lk-row__name { color: var(--rc-signal-text); }
.lk-cc { display: inline-grid; place-items: center; min-width: 30px; height: 20px; padding: 0 5px; border-radius: 5px; border: 1px solid var(--rc-line-2); font-size: 11px; font-weight: 700; letter-spacing: .06em; color: var(--rc-ink-2); }

/* friends check */
.lk-ftiles { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--rc-sp-5); }
@media (min-width: 640px) { .lk-ftiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lk-ftiles .lk-tile { padding: 12px; }
.lk-ftiles .lk-tile__v { font-size: 22px; }
.lk-ftiles .lk-tile__v.is-bad { color: var(--rc-loss); }
.lk-flist { display: flex; flex-direction: column; min-width: 0; }
.lk-flist__head { display: flex; align-items: center; justify-content: space-between; gap: var(--rc-sp-3); min-height: 40px; margin-bottom: var(--rc-sp-2); }
.lk-flist__t { font-size: 18px; display: flex; align-items: center; gap: 8px; min-width: 0; }
.lk-flist__t > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-filter { display: flex; flex-wrap: wrap; gap: var(--rc-chip-gap); margin-bottom: var(--rc-sp-2); }
.lk-filter button.rcb { cursor: pointer; font: inherit; font-size: var(--rc-chip-fs); font-weight: 600; min-height: 32px; padding: 6px 12px; }
.lk-filter button.rcb[aria-pressed="true"] { color: var(--rc-signal-ink); background: var(--rc-signal); border-color: var(--rc-signal); }
@media (pointer: coarse) { .lk-filter button.rcb { min-height: 40px; } }
.lk-actions { display: flex; gap: 2px; }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* phones: ID label above its value, so the full SteamID64 always fits */
@media (max-width: 519px) {
  .lk-kv { grid-template-columns: minmax(0, 1fr) auto; column-gap: 0; }
  .lk-kv dt { grid-column: 1 / -1; min-height: 0; padding-top: 10px; border-bottom: 0; font-size: 11px; }
  .lk-kv__v, .lk-kv__c { min-height: 46px; align-self: stretch; }
  .lk-kv__v { padding: 2px 8px 0 0; line-height: 42px; }
  .lk-kv__c { align-items: flex-start; }
}

/* card heads: the title keeps its full width, the button or chip wraps below it on narrow cards */
.lk-card__t { flex: 1 1 auto; }
.lk-card__t > span { white-space: normal; overflow-wrap: anywhere; }
/* phones: small tiles drop the label icon and use a smaller value, so labels and durations fit */
@media (max-width: 519px) {
  .lk-ftiles .lk-tile__lbl .lk-ico, .lk-mini .lk-tile__lbl .lk-ico { display: none; }
  .lk-ftiles .lk-tile__lbl, .lk-mini .lk-tile__lbl { letter-spacing: .02em; font-size: 11px; }
  .lk-ftiles .lk-tile__v, .lk-mini .lk-tile__v { font-size: 18px; }
}
/* empty states: the quiet chip sits in the middle of the card */
.lk-empty > .rcb { justify-self: center; }
/* tile values and labels scale with the column width (4 columns from 640 px), dates never cut */
.lk-tile__v { font-size: clamp(20px, 2.4vw, 26px); }
.lk-tile__lbl { letter-spacing: .04em; }

/* ---------- BattleMetrics: picker, hour summary, activity (2026-11-14) ---------- */
.lk-btn--sm { min-height: 36px; padding: 0 14px; font-size: 13px; }
@media (pointer: coarse) { .lk-btn--sm { min-height: 44px; } }
.lk-bmcard .lk-card__body { gap: var(--rc-sp-4); }
.lk-bmhead { display: grid; gap: var(--rc-sp-2); min-width: 0; }
.lk-sub { font-family: var(--rc-font-display); font-weight: 800; font-size: 18px; margin: var(--rc-sp-2) 0 0; line-height: 1.2; }
.lk-acthead { margin: var(--rc-sp-2) 0 0; padding-top: var(--rc-sp-4); border-top: 1px solid var(--rc-line); }
.lk-acthead .lk-sub { margin: 0; }
.lk-row__sub { font-size: 13px; color: var(--rc-ink-3); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.lk-cand { grid-template-columns: minmax(0, 1fr) auto; }
.lk-cand .lk-row__end { gap: var(--rc-sp-3); }
.lk-cand .lk-row__end b { min-width: 52px; text-align: right; }
.lk-gtiles .lk-tile__lbl > span { text-transform: none; letter-spacing: 0; font-size: 13px; }
.lk-gtiles .lk-tile--rust .lk-tile__lbl > span { text-transform: uppercase; letter-spacing: .04em; font-size: 12px; }
.lk-ptiles { display: grid; gap: 12px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.lk-ptiles .lk-tile { padding: 12px; }
@media (max-width: 519px) { .lk-ptiles .lk-tile__lbl .lk-ico { display: none; } .lk-ptiles .lk-tile__v { font-size: 20px; } }

/* daily bars: fixed 0-24 h scale like the extension, one bar per day, today right */
.lk-chart { margin: 0; min-width: 0; }
.lk-chart__body { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: var(--rc-sp-2); }
.lk-chart__y { display: flex; flex-direction: column; justify-content: space-between; height: 160px; font-size: 11px; color: var(--rc-ink-3); text-align: right; font-variant-numeric: tabular-nums; line-height: 1; transform: translateY(-1px); }
.lk-chart__plot { min-width: 0; }
.lk-chart__bars { display: flex; align-items: flex-end; gap: 2px; height: 160px; border-bottom: 1px solid var(--rc-line-2);
  background: linear-gradient(to bottom, var(--rc-line) 1px, transparent 1px) 0 0 / 100% 25%; }
.lk-bar { flex: 1 1 0; min-width: 0; height: 100%; display: flex; align-items: flex-end; }
.lk-bar:hover { background: var(--rc-glass-2); }
.lk-bar__v { display: block; width: 100%; min-height: 0; background: var(--rc-mode-cargo); border-radius: 2px 2px 0 0; }
.lk-bar__v.is-today { background: var(--rc-signal-mark); }
.lk-chart__x { display: flex; gap: 2px; height: 18px; margin-top: 4px; }
.lk-chart__x > span { flex: 1 1 0; min-width: 0; position: relative; font-size: 11px; color: var(--rc-ink-3); white-space: nowrap; }
.lk-chart__x > span:not(:empty) { overflow: visible; }
.lk-chart__x > span:not(:empty)::before { content: ""; }
.lk-chart__x > span:last-child { text-align: right; direction: rtl; }

/* weekday x hour heatmap: 6 levels like the extension, Monday first */
.lk-heatwrap { margin: 0; min-width: 0; }
.lk-heat { display: grid; grid-template-columns: auto repeat(24, minmax(0, 1fr)); gap: 2px; align-items: center; }
.lk-heat__wd { font-size: 11px; color: var(--rc-ink-3); padding-right: 6px; white-space: nowrap; }
.lk-heat__hx { font-size: 10px; color: var(--rc-ink-3); white-space: nowrap; overflow: visible; }
.lk-heat__c { display: block; aspect-ratio: 1; min-height: 8px; border-radius: 2px; background: var(--rc-glass-2); }
.lk-heat__c.lk-l1 { background: color-mix(in srgb, var(--rc-mode-cargo) 20%, var(--rc-bg)); }
.lk-heat__c.lk-l2 { background: color-mix(in srgb, var(--rc-mode-cargo) 40%, var(--rc-bg)); }
.lk-heat__c.lk-l3 { background: color-mix(in srgb, var(--rc-mode-cargo) 60%, var(--rc-bg)); }
.lk-heat__c.lk-l4 { background: color-mix(in srgb, var(--rc-mode-cargo) 80%, var(--rc-bg)); }
.lk-heat__c.lk-l5 { background: var(--rc-mode-cargo); }
@media (min-width: 900px) { .lk-heat__c { aspect-ratio: auto; height: 22px; } }
/* game hour tiles fill the row whatever the number of games (Rust stays two cells wide) */
@media (min-width: 640px) { .lk-gtiles { grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); } }
/* phones: top servers keep the name readable (last-seen date only from 520 px), the last game tile fills its row, axis labels every two weeks */
@media (max-width: 519px) {
  .lk-hide-sm { display: none !important; }
  .lk-gtiles > .lk-tile:nth-child(even):last-child { grid-column: span 2; }
}
@media (max-width: 519px) { .lk-chart__x > span.lk-hide-sm { display: block !important; visibility: hidden; } }

/* ---------- extra features (trial, 2026-11-14, docs/LOOKUP.md "Feature flags") ---------- */
.lk-input { width: 100%; min-width: 0; min-height: 44px; padding: 0 14px; font: inherit; font-size: 15px; color: var(--rc-ink); background: var(--rc-bg-3); border: 1px solid var(--rc-line-2); border-radius: var(--rc-radius-sm); }
.lk-input::placeholder { color: var(--rc-ink-3); }
.lk-input:focus { outline: none; border-color: var(--rc-signal-mark); box-shadow: 0 0 0 3px color-mix(in srgb, var(--rc-signal) 30%, transparent); }
.lk-textarea { min-height: 88px; padding: 10px 14px; resize: vertical; line-height: 1.5; }

/* header extras: views/checked chips, rep, save, headline Rust stats */
.lk-hx { grid-column: 1 / -1; display: grid; gap: var(--rc-sp-3); min-width: 0; }
.lk-hx:empty { display: none; }
.lk-hx__row { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--rc-sp-3); }
.lk-hx__acts { display: flex; flex-wrap: wrap; gap: var(--rc-sp-2); }
.lk-rep { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 12px; font: inherit; font-size: 13px; color: var(--rc-ink-2); background: var(--rc-glass); border: 1px solid var(--rc-line-2); border-radius: var(--rc-radius-pill); cursor: pointer; }
.lk-rep .lk-ico { color: currentColor; }
.lk-rep b { font-variant-numeric: tabular-nums; color: var(--rc-ink); }
.lk-rep:hover:not(:disabled) { border-color: var(--rc-signal-line); }
.lk-rep.is-on { 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); }
.lk-rep.is-on.is-down { color: var(--rc-loss); border-color: color-mix(in srgb, var(--rc-loss) 45%, transparent); background: color-mix(in srgb, var(--rc-loss) 10%, transparent); }
.lk-rep:disabled { cursor: default; opacity: .7; }
@media (pointer: coarse) { .lk-rep { min-height: 44px; } }
.lk-btn.is-saved { color: var(--rc-signal-text); border-color: var(--rc-signal-line); background: var(--rc-signal-soft); }
.lk-hstat { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0; margin: 0; padding-top: var(--rc-sp-3); border-top: 1px solid var(--rc-line); }
.lk-hstat > div { min-width: 0; padding: 0 var(--rc-sp-3); border-left: 1px solid var(--rc-line); }
.lk-hstat > div:first-child { border-left: 0; padding-left: 0; }
.lk-hstat dt { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--rc-ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lk-hstat dd { margin: 2px 0 0; font-family: var(--rc-font-display); font-weight: 800; font-size: 22px; line-height: 1.1; font-variant-numeric: tabular-nums; white-space: nowrap; }
@media (max-width: 519px) {
  .lk-hstat { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: var(--rc-sp-3); }
  .lk-hstat > div:nth-child(4) { border-left: 0; padding-left: 0; }
  .lk-hstat dd { font-size: 18px; }
}
.lk-saveed { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--rc-sp-3); align-items: center; padding: var(--rc-sp-3); border: 1px solid var(--rc-line); border-radius: var(--rc-radius-sm); background: var(--rc-glass); }
.lk-saveed__acts { display: flex; gap: var(--rc-sp-2); }
@media (max-width: 639px) { .lk-saveed { grid-template-columns: minmax(0, 1fr); } }
.lk-swatches { display: flex; gap: 4px; }
.lk-swatch { display: inline-grid; place-items: center; width: 32px; height: 32px; padding: 0; border: 1px solid transparent; border-radius: 8px; background: none; cursor: pointer; }
.lk-swatch[aria-checked="true"] { border-color: var(--rc-ink-2); background: var(--rc-glass-2); }
@media (pointer: coarse) { .lk-swatch { width: 40px; height: 40px; } }
.lk-lab { display: inline-block; flex: 0 0 auto; width: 12px; height: 12px; border-radius: 50%; background: var(--lk-lab, var(--rc-ink-3)); margin-right: 8px; vertical-align: 0; }
.lk-swatch .lk-lab { width: 16px; height: 16px; margin: 0; }
.lk-lab--0 { --lk-lab: var(--rc-mode-cargo); } .lk-lab--1 { --lk-lab: var(--rc-mode-oilrig); } .lk-lab--2 { --lk-lab: var(--rc-mode-lab); }
.lk-lab--3 { --lk-lab: var(--rc-mode-bradley); } .lk-lab--4 { --lk-lab: var(--rc-warn); } .lk-lab--5 { --lk-lab: var(--rc-loss); }

/* Saved panel */
.lk-savedrow { grid-template-columns: auto minmax(0, 1fr) auto; text-decoration: none; color: inherit; }
.lk-savedrow:hover .lk-row__name { color: var(--rc-signal-text); }
.lk-row__name .lk-lab { margin-right: 8px; }

/* Bans: four tiles + server bans */
.lk-bantiles { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 900px) { .lk-bantiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.lk-bantile .lk-tile__v { font-size: inherit; overflow: visible; }
.lk-bantile.is-bad { border-color: color-mix(in srgb, var(--rc-loss) 35%, transparent); }
.lk-bantile.is-warn { border-color: color-mix(in srgb, var(--rc-warn) 35%, transparent); }
.lk-banrow { grid-template-columns: minmax(0, 1fr) auto; }

/* Name timeline: one row per year */
.lk-tl { list-style: none; margin: 0; padding: 0; display: grid; }
.lk-tl__year { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: var(--rc-sp-3); align-items: start; padding: 10px 0; border-bottom: 1px solid var(--rc-line); }
.lk-tl__year:last-child { border-bottom: 0; }
.lk-tl__y { font-family: var(--rc-font-display); font-weight: 800; font-size: 18px; line-height: 24px; color: var(--rc-ink-2); font-variant-numeric: tabular-nums; }
.lk-tlname { max-width: 100%; }
.lk-tlname > span { overflow: hidden; text-overflow: ellipsis; }
.lk-src { font-size: 10px; font-weight: 700; letter-spacing: .06em; color: var(--rc-signal-text); }
.lk-tlfilter { margin-bottom: var(--rc-sp-2); }

/* Rust stats: four equal groups */
.lk-rsgrid { display: grid; gap: var(--rc-sp-5) var(--rc-sp-6); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lk-rsgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-rsgroup { min-width: 0; }
.lk-rsgroup .lk-sub { display: flex; align-items: center; gap: 8px; margin: 0 0 var(--rc-sp-2); }
.lk-rsgroup .lk-sub .lk-ico { color: var(--rc-ink-3); }
.lk-rslist { margin: 0; display: grid; }
.lk-rslist__row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: var(--rc-sp-3); align-items: center; min-height: 40px; border-bottom: 1px solid var(--rc-line); }
.lk-rslist__row:last-child { border-bottom: 0; }
.lk-rslist dt { color: var(--rc-ink-2); font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lk-rslist dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }

/* rust.camp stats */
.lk-rcrow { grid-template-columns: minmax(0, 1fr) auto; }

/* Community: votes 2 x 2, comments */
.lk-votes { display: grid; gap: var(--rc-sp-4); grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lk-votes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-vote { display: grid; gap: var(--rc-sp-2); align-content: start; min-width: 0; padding: var(--rc-sp-4); border: 1px solid var(--rc-line); border-radius: var(--rc-radius-sm); background: var(--rc-glass); }
.lk-vote__head { display: flex; align-items: center; justify-content: space-between; gap: var(--rc-sp-2); }
.lk-vote__head .lk-sub { margin: 0; }
.lk-vbar { position: relative; display: flex; align-items: center; gap: var(--rc-sp-2); min-height: 32px; padding: 0 10px; border-radius: 8px; background: var(--rc-bg-3); overflow: hidden; }
.lk-vbar__fill { position: absolute; left: 0; top: 0; bottom: 0; width: 0; background: color-mix(in srgb, var(--rc-mode-cargo) 35%, transparent); }
.lk-vbar__label, .lk-vbar b { position: relative; }
.lk-vbar__label { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; font-size: 14px; }
.lk-vbar b { font-variant-numeric: tabular-nums; }
.lk-vote .lk-filter { margin: 0; }
.lk-filter button.rcb:disabled { cursor: default; opacity: .6; }
.lk-cform { display: grid; gap: var(--rc-sp-2); }
.lk-cform__bar { display: flex; align-items: center; justify-content: flex-end; gap: var(--rc-sp-3); min-height: 36px; }
.lk-count { font-size: 12px; color: var(--rc-ink-3); font-variant-numeric: tabular-nums; }
.lk-cmsg { margin-right: auto; font-size: 13px; color: var(--rc-warn); }
.lk-comments { margin-top: var(--rc-sp-2); }
.lk-comment { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--rc-sp-3); align-items: start; padding: 12px 0; border-bottom: 1px solid var(--rc-line); }
.lk-comment:last-child { border-bottom: 0; }
.lk-comment__main { display: grid; gap: 4px; min-width: 0; }
.lk-comment__head { display: flex; align-items: center; gap: var(--rc-sp-2); min-width: 0; }
.lk-comment__text { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--rc-ink-2); font-size: 15px; }

/* Inventory grid */
.lk-invgrid { list-style: none; margin: var(--rc-sp-3) 0 0; padding: 0; display: grid; gap: 10px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
@media (max-width: 519px) { .lk-invgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-inv { display: grid; grid-template-rows: auto auto 1fr; gap: 6px; justify-items: center; min-width: 0; padding: 12px 10px 10px; text-align: center; border: 1px solid var(--rc-line); border-top: 3px solid var(--lk-inv-c, var(--rc-line-2)); border-radius: var(--rc-radius-sm); background: var(--rc-glass); }
.lk-inv__img { width: 64px; height: 64px; object-fit: contain; }
.lk-inv__ph { display: grid; place-items: center; border-radius: 8px; background: var(--rc-surface-raised); font-family: var(--rc-font-display); font-weight: 800; color: var(--rc-ink-2); }
.lk-inv__name { width: 100%; font-size: 13px; font-weight: 600; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; min-height: 2.6em; }
.lk-inv__meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px; align-self: end; }
/* ID table: one continuous line per row (no breaks at the column gaps) */
.lk-kv { column-gap: 0; }
.lk-kv dt { padding-right: var(--rc-sp-3); }
.lk-kv__v { padding-right: var(--rc-sp-2); }
/* a card whose only content is a status chip in its head (rust.camp stats without rounds, friends check before loading) */
.lk-card--flat .lk-card__head { margin-bottom: 0; }
.lk-card--flat .lk-card__body:empty { display: none; }
.lk-vbar { background: var(--rc-glass-2); }

/* ---------- servers + tracking (2026-11-14) ---------- */
.lk-top { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
.lk-top:not(:has(> :not([hidden]))) { display: none; }
@media (min-width: 900px) { .lk-top.is-two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.lk-savedli { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: var(--rc-sp-2); border-bottom: 1px solid var(--rc-line); }
.lk-savedli:last-child { border-bottom: 0; }
.lk-savedli .lk-savedrow { border-bottom: 0; grid-template-columns: auto minmax(0, 1fr); }
.lk-savedli__end { display: flex; align-items: center; gap: var(--rc-sp-2); }
.lk-trackbtn.is-on { color: var(--rc-signal-text); background: var(--rc-signal-soft); border-color: var(--rc-signal-line); }
.lk-feedrow, .lk-favrow { grid-template-columns: auto minmax(0, 1fr) auto; text-decoration: none; color: inherit; }
.lk-feedrow:hover .lk-row__name, .lk-favrow:hover .lk-row__name { color: var(--rc-signal-text); }
.lk-row__sub { display: flex; align-items: center; gap: var(--rc-sp-2); }
.lk-row__sub > span:last-child { overflow: hidden; text-overflow: ellipsis; }
.lk-srvico { display: inline-grid; place-items: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 10px; background: var(--rc-surface-raised); border: 1px solid var(--rc-line-2); }
.lk-srvico .lk-ico { color: var(--rc-ink-2); width: 18px; height: 18px; }
.lk-srvico--lg { width: 104px; height: 104px; border-radius: 22px; }
.lk-srvico--lg .lk-ico { width: 48px; height: 48px; color: var(--rc-signal-text); }
@media (max-width: 639px) { .lk-srvico--lg { width: 72px; height: 72px; border-radius: 16px; } .lk-srvico--lg .lk-ico { width: 32px; height: 32px; } }
.lk-spark { width: 60px; height: 20px; flex: 0 0 auto; }
.lk-spark__l { fill: none; stroke: var(--rc-mode-cargo); stroke-width: 1.5; }
@media (max-width: 419px) { .lk-favrow .lk-spark { display: none; } }

/* server page header */
.lk-srvname { white-space: normal; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; font-size: clamp(22px, 3vw, 32px); line-height: 1.15; }
.lk-srvcount { display: flex; align-items: baseline; gap: 4px; font-variant-numeric: tabular-nums; }
.lk-srvcount b { font-family: var(--rc-font-display); font-weight: 800; font-size: 34px; line-height: 1; }
.lk-srvcount > span { color: var(--rc-ink-2); font-weight: 600; margin-right: var(--rc-sp-2); }
.lk-connect { display: flex; align-items: center; gap: var(--rc-sp-2); min-width: 0; padding: 4px 4px 4px 14px; border: 1px solid var(--rc-line-2); border-radius: var(--rc-radius-sm); background: var(--rc-bg-3); }
.lk-connect__code { flex: 1 1 auto; min-width: 0; padding: 8px 0; border: 0; background: none; color: var(--rc-ink); font-family: var(--rc-font-mono); font-size: 14px; text-align: left; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; cursor: copy; }
.lk-connect__code:hover { color: var(--rc-signal-text); }
.lk-srvtiles .lk-tile__v small { margin-left: 2px; }
/* six tiles: 2 / 3 / 6 per row, the player tile highlighted but one cell wide */
.lk-srvtiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 640px) { .lk-srvtiles { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .lk-srvtiles { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.lk-srvtiles .lk-tile--rust { grid-column: auto; }
.lk-srvtiles .lk-tile--rust .lk-tile__v { font-size: clamp(22px, 2.4vw, 30px); }

/* line chart */
.lk-linechart { margin-top: var(--rc-sp-3); }
.lk-line__box { height: 160px; border-bottom: 1px solid var(--rc-line-2); background: linear-gradient(to bottom, var(--rc-line) 1px, transparent 1px) 0 0 / 100% 50%; }
.lk-line { display: block; width: 100%; height: 100%; }
.lk-line__a { fill: color-mix(in srgb, var(--rc-mode-cargo) 22%, transparent); }
.lk-line__l { fill: none; stroke: var(--rc-mode-cargo); stroke-width: 2; }
.lk-line__hit { fill: transparent; }
.lk-line__hit:hover { fill: var(--rc-glass-2); }
.lk-chart__x2 { display: flex; justify-content: space-between; margin-top: 4px; font-size: 11px; color: var(--rc-ink-3); }
.lk-wiperow { grid-template-columns: minmax(0, 1fr) auto; }
/* screen-reader tables: tables ignore height/overflow, so a long one stretched the page; as a block it stays 1 px */
table.sr-only { display: block; }
/* phones: the connect command wraps instead of hiding the address */
@media (max-width: 519px) { .lk-connect__code { white-space: normal; overflow-wrap: anywhere; font-size: 13px; } }
/* all Steam stats (expandable under the four main groups) */
.lk-rsall { margin-top: var(--rc-sp-5); padding-top: var(--rc-sp-5); border-top: 1px solid var(--rc-line); }
.lk-rsall .lk-sub .rcb { margin-left: auto; }
