:root,
[data-bs-theme="dark"] {
  --bs-body-bg: #13171f;
  --bs-body-color: #e5eaf2;
  --bs-secondary-color: #a1a2a5;
  --bs-tertiary-bg: #1f232a;
  --bs-border-color: #34373e;
  --bs-primary: #01aaff;
  --bs-primary-rgb: 1, 170, 255;
  --bs-link-color: #1fb4ff;
  --bs-link-hover-color: #67ccff;
  --bb-surface: #191d25;
  --bb-header: #171a22;
  --bb-input: #1c2028;
  --bb-accent: #01aaff;
  --bb-accent-rgb: 1,170,255;
  --bb-accent-hover: #2ab8ff;
  --bb-accent-active: #0196e0;
  --bb-on-accent: #090d12;
  --bb-warning: #edc57c;
  --bb-danger: #ef9d9d;
  --bb-muted: #a1a2a5;
  --bb-line: #34373e;
  --bb-cyan: #01aaff;
  --chart-text: #c9cacc;
  --chart-grid: #34373e;
}

* { letter-spacing: 0; }
[hidden] { display: none !important; }
html { min-width: 320px; }
body {
  min-width: 320px;
  font-family: "Segoe UI", "Microsoft YaHei", system-ui, sans-serif;
  font-size: .875rem;
}
a { text-decoration: none; }
a:hover { text-decoration: underline; }
button, input, select { font: inherit; }
button, a, input { touch-action: manipulation; }
:focus-visible { outline-offset: 3px; }
.bb-page { max-width: 1560px; padding-inline: 32px; margin-inline: auto; }
main.bb-page { padding-top: 24px; min-height: calc(100dvh - 150px); }
.muted { color: var(--bb-muted); font-size: .78rem; }
.bb-center { text-align: center; }
.bb-heading--5 { font-size: 1.12rem; font-weight: 600; margin: 0 0 8px; }
.bb-heading--6 { font-size: .9rem; font-weight: 600; margin: 0 0 16px; }
.bb-section-gap { margin-top: 24px; }
.bb-section-title { margin-bottom: 24px; }
.bb-heading-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 16px; }
.bb-heading-row h2 { margin-bottom: 0; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px; flex: 0 0 36px; padding: 0; border-radius: 5px; }
.icon-button-sm { width: 28px; height: 28px; flex-basis: 28px; }
.bi { flex-shrink: 0; line-height: 1; }
.btn-outline-secondary { --bs-btn-color: var(--bs-body-color); --bs-btn-border-color: var(--bb-line); --bs-btn-hover-color: #fff; --bs-btn-hover-bg: rgba(var(--bb-accent-rgb),.08); --bs-btn-hover-border-color: var(--bb-accent); --bs-btn-active-color: var(--bb-accent); --bs-btn-active-bg: rgba(var(--bb-accent-rgb),.14); --bs-btn-active-border-color: var(--bb-accent); --bs-btn-disabled-color: var(--bb-muted); --bs-btn-disabled-border-color: var(--bb-line); }
.btn-primary { --bs-btn-color: var(--bb-on-accent); --bs-btn-bg: var(--bb-accent); --bs-btn-border-color: var(--bb-accent); --bs-btn-hover-color: var(--bb-on-accent); --bs-btn-hover-bg: var(--bb-accent-hover); --bs-btn-hover-border-color: var(--bb-accent-hover); --bs-btn-active-color: var(--bb-on-accent); --bs-btn-active-bg: var(--bb-accent-active); --bs-btn-active-border-color: var(--bb-accent-active); }
.btn-link { --bs-btn-color: var(--bs-link-color); --bs-btn-hover-color: #fff; padding: 0; font-size: inherit; text-decoration: none; }
.form-control { background: var(--bb-input); border-color: var(--bb-line); color: var(--bs-body-color); }
.form-control::placeholder { color: var(--bb-muted); }
.form-control:focus { background: var(--bb-input); color: #fff; border-color: var(--bb-accent); box-shadow: 0 0 0 3px rgba(var(--bb-accent-rgb),.1); }
.input-group { align-items: stretch; }
.input-group > .icon-button { height: 38px; }
.nav-pills { --bs-nav-pills-link-active-bg: var(--bb-accent); --bs-nav-pills-link-active-color: var(--bb-on-accent); }
.nav { --bs-nav-link-color: var(--bb-muted); --bs-nav-link-hover-color: var(--bs-body-color); gap: 5px; }
.nav-link { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .8rem; font-weight: 500; padding: 9px 15px; border-radius: 5px; }
.nav-pills .nav-link:not(.active):hover { background: #ffffff08; }
.nav-link:focus-visible { box-shadow: 0 0 0 3px rgba(var(--bb-accent-rgb),.2); }
.mode-tabs { display: grid; grid-template-columns: repeat(auto-fit,minmax(min(220px,100%),1fr)); gap: 0; border: 1px solid var(--bb-line); }
.mode-tabs .nav-link {
  position: relative; display: grid; grid-template-columns: 24px minmax(0,1fr) 16px; gap: 12px;
  min-width: 0; min-height: 76px; padding: 18px 22px; text-align: left; border: 0;
  border-left: 3px solid transparent; border-radius: 0; background: var(--bb-surface);
  box-shadow: inset -1px 0 var(--bb-line); color: var(--bb-muted);
}
.server-tab-index { color: var(--server-accent); font-size: .72rem; font-variant-numeric: tabular-nums; }
.server-tab-name { min-width: 0; font-size: .95rem; font-weight: 600; line-height: 1.5; overflow-wrap: anywhere; }
.mode-tabs .nav-link > .bi { color: var(--server-accent); visibility: hidden; }
.mode-tabs .nav-link:not(.active):hover { color: var(--bs-body-color); background: rgba(var(--bb-accent-rgb),.05); }
.mode-tabs .nav-link.active { color: var(--bs-body-color); background: rgba(var(--bb-accent-rgb),.09); border-left-color: var(--bb-accent); }
.mode-tabs .nav-link.active > .bi { visibility: visible; }
.mode-tabs .nav-link:focus-visible { outline: 2px solid var(--bb-accent); outline-offset: -4px; z-index: 1; }

.blackbox-header { padding: 0; border-bottom: 1px solid var(--bb-line); background: var(--bb-header); }
.blackbox-header > .bb-page { min-height: 80px; gap: 16px; flex-wrap: nowrap; }
.blackbox-wordmark { display: flex; align-items: center; gap: 14px; min-width: 0; color: inherit; }
.blackbox-wordmark:hover { color: inherit; text-decoration: none; }
.blackbox-mark { flex: 0 0 48px; width: 48px; height: 48px; border: 0; background: none; box-shadow: none; }
.blackbox-mark img { width: 48px; height: 48px; object-fit: contain; border: 0; background: transparent; box-shadow: none; }
.blackbox-wordmark-copy { display: grid; gap: 3px; min-width: 0; }
.blackbox-wordmark-copy strong { font-size: 1.08rem; font-weight: 650; overflow-wrap: anywhere; }
.blackbox-header-nav { flex-shrink: 0; }
.blackbox-toolbar { margin-bottom: 24px; padding-bottom: 16px; border-bottom: 1px solid var(--bb-line); }
.blackbox-hero-heading { margin-bottom: 20px; }
.blackbox-hero-heading .bb-heading-row { margin: 0; align-items: end; }
.public-title { margin: 0 0 7px; font-size: 1.85rem; font-weight: 650; line-height: 1.2; }
.public-refresh { display: flex; align-items: center; gap: 12px; }
.blackbox-control-strip { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.search-form { flex-shrink: 0; width: min(300px, 100%); }
.ranking-showcase { display: grid; grid-template-columns: minmax(0, 1fr) minmax(370px, .88fr); gap: 40px; margin-bottom: 28px; padding: 24px 0 28px; border-block: 1px solid var(--bb-line); }
.ranking-summary, .ranking-podium-panel { min-width: 0; }
.ranking-summary-heading, .ranking-podium-heading { display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.ranking-summary-heading h2, .ranking-podium-heading h2 { margin: 0; font-size: .85rem; font-weight: 600; }
.scope-chip { color: var(--bb-muted); font-size: .72rem; max-width: 55%; overflow-wrap: anywhere; }
.ranking-metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 22px; gap: 20px; }
.ranking-metric { min-width: 0; }
.metric-label { display: block; color: var(--bb-muted); font-size: .73rem; }
.ranking-metric strong { display: block; font-size: 1.55rem; font-weight: 550; margin: 9px 0 3px; line-height: 1.15; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ranking-metric:nth-child(2) strong { color: var(--bb-accent); }
.ranking-metric:nth-child(3) strong { color: var(--bb-warning); }
.ranking-metric small { display: block; color: var(--bb-muted); font-size: .7rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-heading > i { color: var(--bb-warning); }
.ranking-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; padding: 0; margin: 20px 0 0; list-style: none; }
.ranking-podium-entry { min-width: 0; --rank-color: #bdcdc4; }
.ranking-podium-1 { --rank-color: #edc57c; }
.ranking-podium-3 { --rank-color: #d7a987; }
.ranking-podium-surface { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 10px 8px; border-bottom: 2px solid var(--rank-color); padding-bottom: 12px; min-height: 84px; }
.ranking-podium-rank { color: var(--rank-color); font-size: .8rem; font-weight: 650; }
.ranking-podium-identity { display: flex; gap: 8px; align-items: flex-start; min-width: 0; }
.ranking-podium-avatar { width: 29px !important; height: 29px !important; }
.ranking-podium-copy { min-width: 0; }
.ranking-podium-name { display: block; color: var(--bs-body-color); font-size: .8rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ranking-podium-copy .uid { font-size: .62rem; }
.ranking-podium-values { grid-column: 2; display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.ranking-podium-values strong { font-size: .98rem; color: var(--rank-color); font-weight: 600; }
.ranking-podium-values span { color: var(--bb-muted); font-size: .65rem; }
.network-workspace { display: grid; grid-template-columns: minmax(0, 1fr) 410px; gap: 32px; align-items: start; }
.ranking-main, .feed-panel, .profile-grid > *, .statistics-groups > *, .utility-grid > * { min-width: 0; }
.table-scroll { max-width: 100%; overflow: auto; }
.blackbox-table-wrap { border-block: 1px solid var(--bb-line); }
.table, .bb-table {
  --bs-table-bg: transparent;
  --bs-table-color: var(--bs-body-color);
  --bs-table-border-color: var(--bb-line);
  --bs-table-hover-bg: rgba(var(--bb-accent-rgb),.04);
  --bs-table-hover-color: #fff;
  width: 100%; margin: 0; border-collapse: collapse; font-size: .82rem; font-variant-numeric: tabular-nums;
}
.table th, .table td, .bb-table th, .bb-table td { padding: 14px 12px; border-bottom: 1px solid var(--bb-line); text-align: right; vertical-align: middle; }
.table thead th, .bb-table thead th { background: var(--bb-surface); color: var(--bb-muted); font-size: .73rem; font-weight: 500; white-space: nowrap; }
.bb-table tbody tr:hover { background: rgba(var(--bb-accent-rgb),.04); }
.rank-table { table-layout: fixed; min-width: 760px; }
.rank-table th:first-child, .rank-table td:first-child { width: 52px; text-align: center; white-space: nowrap; }
.rank-table th:nth-child(2), .rank-table td:nth-child(2) { width: 23%; text-align: left; }
.rank-table th:nth-child(3), .rank-table td:nth-child(3) { width: 13%; }
.rank-table th:nth-child(4), .rank-table td:nth-child(4) { width: 19%; }
.rank-table th:nth-child(5), .rank-table td:nth-child(5) { width: 19%; }
.rank-table th:nth-child(6), .rank-table td:nth-child(6) { width: 10%; }
.rank-table th:last-child, .rank-table td:last-child { width: 70px; text-align: center; }
.rank-table tbody td:first-child { color: var(--bb-muted); font-size: .9rem; }
.rank-table tbody tr:nth-child(-n+3) td:first-child { color: var(--bb-warning); font-weight: 600; }
.rank-table tbody td { height: 70px; }
.score-cell { color: var(--bb-warning) !important; font-weight: 600; }
.player-entry { display: flex; align-items: center; gap: 10px; min-width: 0; }
.player-entry-info { min-width: 0; }
.player-link { display: block; color: var(--bs-body-color); font-weight: 550; overflow-wrap: anywhere; }
.uid { display: block; color: var(--bb-muted); font: 11px/1.7 Consolas, monospace; overflow-wrap: anywhere; }
.player-avatar { position: relative; display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; width: 36px; height: 36px; border-radius: 5px; overflow: hidden; background: var(--bs-tertiary-bg); color: var(--bb-muted); }
.player-avatar > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; }
.player-avatar.loaded > img { opacity: 1; }
.player-avatar > .bi { font-size: 20px; }
.status-badge { display: inline-flex; align-items: center; gap: 6px; color: var(--bb-muted); font-size: .72rem; white-space: nowrap; }
.status-badge::before { content: ""; width: 5px; height: 5px; flex: 0 0 5px; border-radius: 50%; background: #737d89; }
.status-online { color: #91e3b6; }
.status-online::before { background: #71d9a6; }
.status-unknown { color: var(--bb-warning); }
.status-unknown::before { background: var(--bb-warning); }
.pager { display: flex; align-items: center; justify-content: center; gap: 18px; margin: 20px 0; color: var(--bb-muted); font-size: .8rem; }
.blackbox-feed-panel { padding-left: 28px; border-left: 1px solid var(--bb-line); }
.feed-heading { display: grid; grid-template-columns: 36px minmax(0, 1fr) 36px; align-items: center; gap: 8px; margin-bottom: 8px; }
.feed-heading h2 { grid-column: 2; margin: 0; text-align: center; }
.feed-heading button { grid-column: 3; }
.feed-title { font-size: 1.125rem; font-weight: 600; }
.feed-meta { min-height: 8px; color: var(--bb-muted); font-size: .72rem; }
.live-feed { max-height: 680px; overflow-y: auto; scrollbar-gutter: stable both-edges; overflow-anchor: none; scrollbar-width: thin; padding-inline: 18px; }
.feed-item { padding: 18px 4px; border-bottom: 1px solid var(--bb-line); }
.feed-item-meta { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 4px 12px; color: var(--bb-muted); font-size: .8125rem; line-height: 1.6; }
.feed-item-meta > span { min-width: 0; overflow-wrap: anywhere; }
.feed-item-meta > time { margin-left: auto; white-space: nowrap; font-variant-numeric: tabular-nums; }
.feed-kill { display: grid; grid-template-columns: minmax(0, 1fr) 132px minmax(0, 1fr); gap: 6px; align-items: center; min-height: 80px; margin: 6px 0; }
.feed-killer, .feed-victim { min-width: 0; font-size: .9375rem; font-weight: 500; line-height: 1.6; overflow-wrap: anywhere; }
.feed-killer { text-align: right; color: var(--bs-link-color); }
.feed-victim { text-align: left; color: #efaaaa; }
.feed-weapon { display: flex; flex-direction: column; align-items: center; justify-content: center; min-width: 0; gap: 4px; }
.feed-weapon > img { width: 132px; height: 54px; object-fit: contain; }
.feed-weapon > .bi { font-size: 26px; }
.feed-weapon-tags { max-width: 132px; text-align: center; color: var(--bb-warning); font-size: .8125rem; line-height: 1.6; overflow-wrap: anywhere; }
.feed-detail, .knife-result { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; }
.feed-detail .feed-tag { font-size: .8125rem; }
.feed-tag { padding: 2px 6px; background: #ffffff08; border-radius: 3px; color: var(--bb-muted); font-size: .65rem; }
.feed-tag-warning { color: var(--bb-warning); }
.feed-status-tag { color: var(--bb-danger); font-size: .8125rem; }
.feed-item.new-record { animation: feed-arrive .3s ease-out; }
@keyframes feed-arrive { from { opacity: .25; transform: translateY(-6px); } to { opacity: 1; transform: translateY(0); } }
.empty { padding: 40px 12px !important; text-align: center !important; color: var(--bb-muted); }

.profile-navigation { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.profile-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.profile-person { display: flex; align-items: center; gap: 16px; min-width: 0; }
.profile-person > .player-identity { min-width: 0; }
.profile-avatar > .player-avatar { width: 68px; height: 68px; }
.profile-avatar .bi { font-size: 32px; }
.profile-title { font-size: 1.7rem; font-weight: 650; line-height: 1.2; margin: 0 0 6px; overflow-wrap: anywhere; }
.identity-line { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
#player-uid { font-family: Consolas, monospace; overflow-wrap: anywhere; }
.presence-line { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 18px; font-size: .8rem; }
.profile-rule { margin-top: 24px; padding-top: 24px; border-top: 1px solid var(--bb-line); }
.profile-meta { display: grid; grid-template-columns: repeat(4, auto minmax(0, 1fr)); gap: 8px 20px; margin-bottom: 24px; font-size: .8rem; }
.profile-meta dt { color: var(--bb-muted); font-weight: 400; }
.profile-meta dd { margin: 0; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.blackbox-pivotbar { flex-wrap: nowrap; margin: 24px 0; gap: 0; overflow-x: auto; overflow-y: hidden; scrollbar-width: thin; --bs-nav-tabs-border-color: var(--bb-line); --bs-nav-tabs-link-active-bg: var(--bb-surface); --bs-nav-tabs-link-active-color: var(--bb-accent); --bs-nav-tabs-link-active-border-color: var(--bb-line) var(--bb-line) var(--bb-surface); }
.blackbox-pivotbar .nav-link { flex-shrink: 0; border-radius: 5px 5px 0 0; white-space: nowrap; padding: 12px 15px; }
.profile-grid { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 36px; }
.statistics-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.statistics-groups h3 { color: var(--bs-body-color); }
.fact-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; margin: 0; font-size: .8rem; }
.fact-grid dt, .fact-grid dd { min-width: 0; padding: 10px 0; margin: 0; border-bottom: 1px solid var(--bb-line); overflow-wrap: anywhere; }
.fact-grid dt { font-weight: 400; padding-right: 16px; color: var(--bb-muted); }
.fact-grid dd { text-align: right; color: var(--bs-body-color); font-weight: 500; font-variant-numeric: tabular-nums; }
.body-section { border-left: 1px solid var(--bb-line); padding-left: 28px; }
.body-distribution { display: grid; grid-template-columns: 100px minmax(0, 1fr); gap: 20px; padding-top: 12px; }
.body-distribution canvas { display: block; width: 100px; height: auto; aspect-ratio: 288 / 557; }
.body-row { margin-bottom: 12px; }
.body-row-heading { display: flex; justify-content: space-between; gap: 8px; font-size: .7rem; }
.body-row-heading span:last-child { color: var(--bb-muted); }
.body-bar { height: 4px; margin-top: 5px; background: var(--bb-line); border-radius: 2px; overflow: hidden; }
.body-bar > span { display: block; height: 100%; background: var(--bb-accent); }
.analytics-surface, .chart-surface { position: relative; height: 300px; width: 100%; min-width: 0; }
.analytics-surface canvas, .chart-surface canvas { display: block; width: 100%; height: 100%; }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--bb-muted); pointer-events: none; font-size: .8rem; }
.profile-chart { max-width: 700px; margin-inline: auto; }
.weapons-table { min-width: 700px; }
.weapons-table th:first-child, .weapons-table td:first-child { text-align: left; width: 27%; }
.weapon-cell { display: flex; align-items: center; gap: 16px; }
.weapon-cell img { width: 90px; height: 48px; object-fit: contain; flex: none; }
.weapon-cell > .bi { width: 90px; text-align: center; font-size: 24px; }
.section-heading, .utility-heading { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; }
.section-heading h2, .utility-heading h3 { margin: 0; }
.section-weapon { width: 80px; height: 45px; object-fit: contain; }
.utility-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.daily-table { min-width: 720px; }
.daily-table th:first-child, .daily-table td:first-child { text-align: left; }
#performance-maps { font-size: .8rem; }
.streak-section { max-width: 1000px; margin-inline: auto; }
.streak-table { min-width: 360px; }
.streak-table th, .streak-table td { text-align: center; }
.streak-chart { height: 760px; }
#view-recent { max-width: 900px; margin-inline: auto; }
#view-recent .live-feed { max-height: 640px; }
#view-knife { max-width: 1150px; margin-inline: auto; }
.knife-rank-panel .bb-heading--6 { display: flex; align-items: center; gap: 10px; }
.knife-rank-panel .section-weapon { width: 60px; height: 36px; }
.knife-rank-table { min-width: 360px; }
.knife-rank-table th:first-child, .knife-rank-table td:first-child { width: 64px; text-align: center; }
.knife-rank-table th:nth-child(2), .knife-rank-table td:nth-child(2) { text-align: left; }
.knife-podium { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: end; gap: 16px; max-width: 750px; padding: 0; margin: 32px auto; list-style: none; }
.knife-podium-entry { grid-row: 1; min-width: 0; text-align: center; --podium-color: #c4d1c9; --podium-height: 80px; }
.knife-podium-entry[data-rank="1"] { grid-column: 2; --podium-color: #edc57c; --podium-height: 112px; }
.knife-podium-entry[data-rank="2"] { grid-column: 1; }
.knife-podium-entry[data-rank="3"] { grid-column: 3; --podium-color: #d7a987; --podium-height: 60px; }
.knife-podium-person { display: grid; justify-items: center; align-content: end; gap: 8px; min-height: 148px; padding: 0 4px 16px; }
.knife-podium-person > .bi { font-size: 26px; color: var(--podium-color); }
.knife-podium-person .player-link { display: -webkit-box; overflow: hidden; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 2; }
.knife-podium-counts { display: grid; gap: 2px; color: var(--bb-muted); font-size: .75rem; }
.knife-podium-counts strong { font-size: 1.1rem; font-weight: 600; color: var(--bs-body-color); }
.knife-podium-base { display: grid; place-items: center; height: var(--podium-height); border-top: 3px solid var(--podium-color); background: var(--bb-surface); color: var(--podium-color); font-size: 2rem; }
.knife-podium-entry.is-empty { opacity: .5; }
.knife-table { min-width: 880px; }
.knife-table th, .knife-table td { text-align: left; }
.knife-table td:first-child, .knife-table td:nth-child(5) { white-space: nowrap; }
.knife-table td:nth-child(2) { min-width: 150px; }
.knife-result { justify-content: flex-start; }
.knife-hit-distribution .analytics-surface { max-width: 480px; margin-inline: auto; }
dialog { width: min(740px, calc(100% - 24px)); max-height: 90dvh; overflow-y: auto; padding: 0; color: var(--bs-body-color); background: var(--bb-surface); border: 1px solid var(--bb-line); border-radius: 8px; box-shadow: 0 24px 80px #0008; }
dialog::backdrop { background: #000b; }
.dialog-heading { position: sticky; top: 0; z-index: 1; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--bb-line); background: var(--bb-surface); }
.dialog-heading > div { min-width: 0; }
.dialog-body { padding: 24px; }
.weapon-visual { display: flex; align-items: center; justify-content: center; height: 120px; margin-bottom: 20px; }
.weapon-visual img { width: 360px; max-width: 100%; height: 100px; object-fit: contain; }
.weapon-visual > .bi { font-size: 48px; }
.microcopy { color: var(--bb-muted); font-size: .75rem; line-height: 1.8; }
.public-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-top: 20px; padding-bottom: 20px; margin-top: 28px; border-top: 1px solid var(--bb-line); color: var(--bb-muted); }
.copyright, .powered, .footer-meta { font-size: .68rem; }
.footer-meta { display: flex; justify-content: flex-end; align-items: center; gap: 8px; flex-wrap: wrap; margin-left: auto; }
.footer-meta > .powered { white-space: nowrap; }
.footer-meta > span:not(:empty) + .powered::before { content: "|"; margin-right: 8px; }

@media (min-width: 1600px) {
  .network-workspace { grid-template-columns: minmax(0, 1fr) 440px; }
  .feed-kill { grid-template-columns: minmax(0, 1fr) 144px minmax(0, 1fr); }
  .feed-weapon > img { width: 144px; height: 58px; }
  .feed-weapon-tags { max-width: 144px; }
}
@media (max-width: 1249px) {
  .network-workspace { grid-template-columns: minmax(0, 1fr) 365px; gap: 24px; }
  .blackbox-feed-panel { padding-left: 18px; }
  .feed-kill { grid-template-columns: minmax(0, 1fr) 118px minmax(0, 1fr); }
  .feed-weapon > img { width: 118px; }
  .ranking-showcase { gap: 24px; grid-template-columns: minmax(0, 1fr) minmax(340px, 1fr); }
  .ranking-metrics { gap: 12px; }
  .profile-meta { grid-template-columns: repeat(2, auto minmax(0, 1fr)); }
  .profile-grid { grid-template-columns: minmax(0, 1fr) 300px; gap: 24px; }
  .statistics-groups { gap: 24px; }
}
@media (max-width: 1099px) {
  .network-workspace { grid-template-columns: 1fr; }
  .blackbox-feed-panel { padding: 24px 0 0; border-left: 0; border-top: 1px solid var(--bb-line); }
  #combat-feed { max-width: 780px; margin-inline: auto; max-height: 560px; }
  .profile-grid { grid-template-columns: 1fr; }
  .body-section { padding: 24px 0 0; border: 0; border-top: 1px solid var(--bb-line); max-width: 520px; }
  .utility-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .bb-page { padding-inline: 16px; }
  .blackbox-header > .bb-page { min-height: 72px; gap: 10px; }
  .blackbox-wordmark { gap: 10px; }
  .blackbox-wordmark-copy strong { font-size: .95rem; }
  .blackbox-header .button-label { display: none; }
  .blackbox-header-nav a { width: 36px; height: 36px; justify-content: center; padding: 0; }
  .blackbox-mark, .blackbox-mark img { width: 40px; height: 40px; flex-basis: 40px; }
  main.bb-page { padding-top: 18px; }
  .blackbox-toolbar { margin-bottom: 22px; }
  .blackbox-control-strip { flex-direction: column; align-items: stretch; gap: 14px; }
  .search-form { width: 100%; }
  .range-tabs { flex-wrap: nowrap; overflow: auto; scrollbar-width: thin; }
  .range-tabs .nav-link { flex-shrink: 0; padding: 9px 10px; font-size: .74rem; }
  .ranking-showcase { grid-template-columns: 1fr; gap: 24px; }
  .ranking-podium-panel { padding-top: 20px; border-top: 1px solid var(--bb-line); }
  .ranking-metrics { gap: 10px; }
  .ranking-metric strong { font-size: 1.18rem; }
  .metric-label { font-size: .65rem; }
  .ranking-podium { gap: 12px; }
  .ranking-podium-surface { grid-template-columns: 12px minmax(0, 1fr); gap: 8px 5px; }
  .ranking-podium-identity { flex-direction: column; gap: 5px; }
  .ranking-podium-values { display: grid; gap: 0; }
  .public-title { font-size: 1.6rem; }
  .profile-meta { grid-template-columns: auto minmax(0, 1fr); gap: 10px 16px; }
  .profile-heading { align-items: flex-start; gap: 12px; }
  .profile-title { font-size: 1.4rem; }
  .profile-avatar > .player-avatar { width: 56px; height: 56px; }
  .statistics-groups, .utility-grid { grid-template-columns: 1fr; }
  .fact-grid, .bb-heading--6 { font-size: .78rem; }
  .body-distribution { gap: 16px; }
  .knife-podium { gap: 8px; }
  .knife-podium-counts { font-size: .68rem; }
  .knife-podium-person .player-link { font-size: .8rem; }
  .dialog-heading, .dialog-body { padding: 16px; }
  .footer-meta { justify-content: flex-start; margin-left: 0; }
}
@media (max-width: 359px) {
  .ranking-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
  .feed-kill { grid-template-columns: minmax(0, 1fr) 104px minmax(0, 1fr); }
  .feed-weapon > img { width: 104px; height: 48px; }
}
@media (prefers-reduced-motion: reduce) {
  .feed-item.new-record { animation: none; }
}
