:root {
  --page: #f5f6f4;
  --surface: #fff;
  --ink: #111d2c;
  --muted: #687481;
  --accent: #226451;
  --accent-dark: #174b3d;
  --tint: #f1f8f4;
  --border: #e2e7e8;
  --soft: #f7f9fa;
  --amber: #bb8839;
  --blue: #5a7fa7;
  --radius: 12px;
  --shadow: 0 2px 12px #102c2103;
  font-family:
    Inter, 'Baozhao SC', 'PingFang SC', 'Microsoft YaHei', 'Noto Sans CJK SC', system-ui,
    sans-serif;
  color: var(--ink);
  background: var(--page);
  font-synthesis: weight;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 14px;
  line-height: 1.55;
}
button,
input,
select {
  font: inherit;
}
button {
  cursor: pointer;
}
button,
select,
input {
  color: inherit;
}
button {
  border: 0;
  background: none;
}
button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}
a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}
button,
select,
input,
a {
  touch-action: manipulation;
}
button:focus-visible,
a:focus-visible {
  outline: 3px solid #4693796b;
  outline-offset: 3px;
}
input:focus,
select:focus {
  outline: 2px solid #4693794d;
  border-color: #7aa994;
}
svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}
button svg {
  width: 18px;
  height: 18px;
}
button:hover {
  color: var(--accent);
}
[hidden] {
  display: none !important;
}
.site-header {
  height: 68px;
  background: #ffffffed;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(14px);
}
.header-inner {
  max-width: 1536px;
  height: 100%;
  margin: auto;
  padding: 0 46px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0;
  white-space: nowrap;
}
.brand img {
  width: 47px;
  height: 51px;
  object-fit: contain;
}
.brand span {
  font-size: 26px;
  font-weight: 850;
  letter-spacing: 1px;
  color: var(--ink);
}
.main-nav {
  height: 100%;
  display: flex;
  gap: 38px;
  align-items: stretch;
}
.main-nav button {
  position: relative;
  border-bottom: 3px solid transparent;
  font-size: 16px;
  padding: 0 6px;
  white-space: nowrap;
  font-weight: 550;
}
.main-nav button.active {
  color: var(--accent-dark);
  border-bottom-color: var(--accent);
  font-weight: 700;
}
.count-badge {
  display: inline-grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  border-radius: 8px;
  background: var(--accent);
  color: #fff;
  font-size: 10px;
  margin-left: 5px;
  vertical-align: middle;
}
.game-name {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  white-space: nowrap;
}
.game-name svg {
  width: 20px;
  height: 20px;
  color: var(--accent);
}
.game-mode {
  background: #f3f5f4;
  color: #65716d;
  font-size: 12px;
  padding: 5px 10px;
  border-radius: 6px;
  margin-left: 10px;
}
main {
  max-width: 1536px;
  margin: auto;
  padding: 27px 46px 116px;
}
.hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 22px;
}
.eyebrow {
  font-size: 14px;
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
  margin-bottom: 3px;
}
h1 {
  font-size: 40px;
  line-height: 1.27;
  letter-spacing: -1px;
  margin: 0 0 4px;
  font-weight: 800;
}
h2 {
  font-size: 21px;
  line-height: 1.4;
  font-weight: 750;
  margin: 0;
}
h3 {
  font-size: 16px;
  margin: 0;
  font-weight: 700;
}
.hero p {
  font-size: 17px;
  color: var(--muted);
  margin: 0;
}
.preview-badge {
  color: #77848a;
  border: 1px solid #bac8c5;
  font-size: 12px;
  border-radius: 8px;
  padding: 5px 12px;
  white-space: nowrap;
}
.filter-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px 22px 14px;
  margin-bottom: 20px;
}
.filter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr 1.12fr 1fr auto;
  gap: 18px;
  align-items: center;
}
.filter-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
  border-right: 1px solid var(--border);
  padding-right: 19px;
}
.filter-field > span {
  font-size: 13px;
  color: #62707c;
}
.filter-field:nth-child(4) {
  border-right: 0;
  padding-right: 0;
}
select {
  appearance: none;
  border: 1px solid #dce3e8;
  border-radius: 7px;
  background: #fff
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2321333f' stroke-width='1.7' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E")
    no-repeat right 10px center;
  padding: 7px 33px 7px 12px;
  min-height: 37px;
  cursor: pointer;
  font-size: 14px;
  width: 100%;
  text-overflow: ellipsis;
}
.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  color: var(--accent);
  font-size: 13px;
  padding: 5px 0;
  white-space: nowrap;
}
.more-button {
  padding-left: 8px;
  font-weight: 650;
  align-self: end;
  margin-bottom: 2px;
}
.condition-summary {
  color: var(--muted);
  font-size: 13px;
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  flex-wrap: wrap;
}
.condition-summary .dot {
  color: #b4bfc2;
}
.condition-summary strong {
  font-weight: 550;
}
.table-panel,
.white-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.table-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px 14px;
}
.table-heading {
  display: flex;
  align-items: center;
  gap: 17px;
  flex-wrap: wrap;
}
.table-heading > span {
  font-size: 12px;
  color: var(--muted);
}
.table-tools {
  display: flex;
  gap: 12px;
  align-items: center;
}
.table-tools select {
  min-width: 138px;
  width: 138px;
}
.search-field {
  border: 1px solid #dce3e8;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 210px;
  border-radius: 7px;
  padding: 7px 11px;
  background: #fff;
  height: 37px;
  color: var(--muted);
}
.search-field input {
  width: 100%;
  border: none;
  background: transparent;
  outline: none;
  min-width: 0;
  font-size: 13px;
}
.search-field:focus-within {
  outline: 2px solid #4693794d;
  border-color: #7aa994;
}
.search-field input:focus {
  outline: 0;
}
.search-field svg {
  width: 18px;
  height: 18px;
}
.ranking-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ranking-table th {
  font-weight: 500;
  background: #f6f8fa;
  font-size: 13px;
  text-align: left;
  height: 38px;
  padding: 6px 22px;
  border-bottom: 1px solid var(--border);
  color: #334152;
}
.ranking-table th:nth-child(2) {
  width: 40%;
}
.ranking-table .rank-col {
  width: 7%;
}
.ranking-table .ammo-col {
  width: 24%;
}
.ranking-table .time-col {
  width: 17%;
}
.ranking-table .action-col {
  width: 12%;
}
.sort-button {
  padding: 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 13px;
  color: #334152;
  text-align: left;
  white-space: nowrap;
}
.sort-button svg {
  width: 13px;
  height: 13px;
  color: var(--accent);
}
.ranking-table td {
  padding: 10px 22px;
  border-bottom: 1px solid var(--border);
  height: 72px;
  vertical-align: middle;
}
.weapon-row.is-leading {
  background: #f1f8f4b0;
}
.weapon-row:hover {
  background: #f7faf8;
}
.rank-number {
  font-size: 19px;
  letter-spacing: -0.5px;
  color: #73808a;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
}
.weapon-row.is-leading .rank-number {
  color: var(--accent);
}
.weapon-cell {
  display: flex;
  align-items: center;
  gap: 17px;
  min-width: 0;
}
.weapon-picture {
  width: 115px;
  height: 48px;
  object-fit: contain;
  flex-shrink: 0;
}
.weapon-copy {
  min-width: 0;
}
.weapon-name {
  font-size: 16px;
  font-weight: 720;
  margin: 0;
  color: var(--ink);
  line-height: 1.4;
  text-align: left;
  padding: 0;
}
.weapon-sub {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-top: 2px;
  overflow-wrap: anywhere;
}
.bullet-name {
  font-size: 13px;
  overflow-wrap: anywhere;
}
.bullet-level {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #7a698b;
  font-size: 11px;
  white-space: nowrap;
}
.bullet-level::before {
  content: '';
  width: 6px;
  height: 6px;
  background: #a780cd;
  border-radius: 50%;
}
.bullet-level.level-5 {
  color: #99702b;
}
.bullet-level.level-5::before {
  background: #d4a744;
}
.bullet-level.level-6 {
  color: #ae604c;
}
.bullet-level.level-6::before {
  background: #ca7258;
}
.bullet-level.level-3 {
  color: #517fa7;
}
.bullet-level.level-3::before {
  background: #78a2c8;
}
.bullet-detail {
  display: flex;
  align-items: center;
  gap: 7px;
  margin-top: 2px;
}
.ttk-value {
  font-size: 20px;
  font-weight: 750;
  letter-spacing: -0.5px;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
  line-height: 1.3;
}
.ttk-value small {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 0;
  margin-left: 3px;
}
.weapon-row.is-leading .ttk-value {
  color: var(--accent-dark);
}
.ms-label {
  font-size: 12px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.row-actions {
  display: flex;
  align-items: center;
  gap: 17px;
}
.outline-button {
  border: 1px solid #a9c5bb;
  border-radius: 6px;
  min-width: 62px;
  padding: 5px 12px;
  color: var(--accent);
  font-size: 13px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  white-space: nowrap;
}
.outline-button:hover {
  background: #edf6f1;
  border-color: var(--accent);
}
.outline-button.selected {
  background: #e8f3ec;
  border-color: #7ba68d;
  color: #295c43;
}
.icon-button {
  width: 28px;
  height: 30px;
  padding: 4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--muted);
  border-radius: 6px;
}
.icon-button:hover {
  background: #eef4f0;
}
.icon-button.open svg {
  transform: rotate(180deg);
}
.table-footer {
  min-height: 49px;
  padding: 9px 22px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
}
.table-footer > :last-child {
  justify-self: end;
}
.table-footer > .text-button {
  color: #5c6b77;
}
.table-footer > #show-more {
  grid-column: 2;
}
.page-footnote {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 3px 0;
  font-size: 11px;
  color: #839087;
  gap: 12px;
}
.page-footnote button {
  font-size: 11px;
  color: #718477;
}
.comparison-tray {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0 46px 14px;
  z-index: 25;
  pointer-events: none;
  background: linear-gradient(
    0deg,
    var(--page) 0%,
    #f5f6f4bd 70%,
    transparent 100%
  );
}
.tray-inner {
  pointer-events: auto;
  max-width: 1444px;
  margin: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  min-height: 60px;
  background: #fffffff5;
  backdrop-filter: blur(12px);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 8px 20px;
  box-shadow: 0 2px 14px #273d2710;
}
.tray-inner > p {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
  margin: 0;
  flex: 1;
}
.info-icon {
  color: #9aa5ad;
  width: 19px;
  height: 19px;
}
.selected-tray {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  white-space: nowrap;
}
.tray-empty {
  color: #81908a;
  font-size: 12px;
}
.selection-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid var(--border);
  background: #f6f8f7;
  border-radius: 6px;
  max-width: 150px;
  padding: 4px 7px;
  font-size: 12px;
  color: #4a5e58;
}
.selection-chip > span {
  overflow: hidden;
  text-overflow: ellipsis;
}
.selection-chip button {
  display: inline-flex;
  padding: 0;
  color: #7a8c83;
}
.selection-chip svg {
  width: 13px;
  height: 13px;
}
.primary-button {
  background: var(--accent);
  color: #fff;
  border-radius: 7px;
  padding: 9px 18px;
  font-weight: 650;
  font-size: 13px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border: 1px solid var(--accent);
}
.primary-button:hover {
  background: var(--accent-dark);
  color: #fff;
}
.tray-help {
  border-left: 1px solid var(--border);
  padding-left: 20px;
  color: #63716f;
}
.expanded-row td {
  padding: 0 24px 18px 7%;
  height: auto;
  background: #f9fbfa;
}
.variant-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 14px 0 8px;
}
.variant-head strong {
  font-size: 13px;
  font-weight: 650;
}
.variant-head span {
  font-size: 11px;
  color: var(--muted);
}
.variant-list {
  display: grid;
  gap: 6px;
}
.variant-item {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr 100px auto;
  align-items: center;
  gap: 14px;
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 10px 14px;
  background: #fff;
  font-size: 12px;
}
.variant-item > strong {
  font-size: 13px;
}
.variant-item .variant-bullet {
  color: var(--muted);
}
.variant-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}
.empty-state {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}
.empty-state h2 {
  font-size: 20px;
  color: var(--ink);
  margin: 10px 0;
}
.empty-state p {
  max-width: 410px;
  margin: 8px auto 20px;
  font-size: 14px;
}
.empty-mark {
  margin: auto;
  width: 60px;
  height: 60px;
  border-radius: 15px;
  background: #eaf2ec;
  color: var(--accent);
  display: grid;
  place-items: center;
}
.empty-mark svg {
  width: 30px;
  height: 30px;
}
.loading {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: center;
  padding: 65px;
  color: var(--muted);
  font-size: 14px;
}
.spinner {
  width: 20px;
  height: 20px;
  border: 2px solid #d2e2d9;
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.panel-heading {
  padding: 19px 22px;
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}
.panel-heading p {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--muted);
}
.compare-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
}
.compare-card {
  padding: 25px;
  border-right: 1px solid var(--border);
}
.compare-card:last-child {
  border-right: 0;
}
.compare-card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.series-dot {
  display: inline-block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  margin-right: 8px;
}
.compare-card img {
  display: block;
  object-fit: contain;
  height: 112px;
  width: 100%;
  max-width: 270px;
  margin: 6px auto 12px;
}
.compare-config {
  font-size: 12px;
  color: var(--muted);
  min-height: 42px;
}
.compare-card .large-ttk {
  font-size: 34px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  margin-top: 14px;
  line-height: 1.3;
}
.large-ttk small {
  font-size: 16px;
  margin-left: 4px;
}
.compare-card .comparison-note {
  font-size: 12px;
  color: var(--accent);
  margin: 6px 0 10px;
}
.stat-lines {
  margin-top: 17px;
  display: grid;
  gap: 10px;
  font-size: 12px;
}
.stat-lines > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
}
.stat-lines dt {
  color: var(--muted);
}
.stat-lines dd {
  margin: 0;
  text-align: right;
}
.chart-panel {
  margin-top: 18px;
  padding: 22px;
}
.chart-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 14px;
}
.chart-heading span,
.chart-note {
  color: var(--muted);
  font-size: 12px;
}
.chart-legend {
  display: flex;
  align-items: center;
  gap: 19px;
  flex-wrap: wrap;
  font-size: 12px;
  margin-top: 10px;
}
.chart-container {
  width: 100%;
  overflow: hidden;
}
.ttk-chart {
  width: 100%;
  height: auto;
  max-height: 310px;
  display: block;
  stroke: none;
}
.ttk-chart text {
  font-family: inherit;
  fill: #75838a;
  font-size: 11px;
}
.chart-note {
  margin-top: 10px;
}
.mini-distance {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--muted);
}
input[type='range'] {
  accent-color: var(--accent);
  cursor: pointer;
}
.analysis-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 20px;
}
.analysis-side {
  padding: 20px;
  height: max-content;
}
.analysis-side > label {
  display: grid;
  gap: 5px;
  margin-bottom: 14px;
  color: var(--muted);
  font-size: 12px;
}
.analysis-side img.weapon-hero {
  display: block;
  object-fit: contain;
  height: 138px;
  width: 100%;
  margin: 7px auto 15px;
}
.analysis-side .stat-lines {
  margin: 10px 0 20px;
}
.analysis-side .primary-button {
  width: 100%;
  margin-top: 6px;
}
.analysis-name {
  font-size: 23px;
  font-weight: 720;
  text-align: center;
}
.analysis-type {
  font-size: 12px;
  text-align: center;
  color: var(--muted);
}
.analysis-side .hint {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 13px;
}
.analysis-content {
  min-width: 0;
}
.analysis-kpis {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  padding: 22px;
  gap: 20px;
  border-left: 3px solid var(--accent);
}
.analysis-kpis > div > span {
  display: block;
  font-size: 12px;
  color: var(--muted);
  margin-bottom: 5px;
}
.analysis-kpis strong {
  font-size: 29px;
  font-weight: 760;
  font-variant-numeric: tabular-nums;
  line-height: 1.4;
}
.analysis-kpis strong small {
  font-size: 14px;
  font-weight: 550;
}
.analysis-kpis > div:first-child strong {
  color: var(--accent-dark);
}
.analysis-kpis .tiny {
  font-size: 10px;
  color: #8b969c;
  margin-top: 2px;
}
.distribution {
  margin-top: 18px;
}
.distribution-list {
  padding: 16px 22px;
  display: grid;
  gap: 11px;
}
.distribution-row {
  display: grid;
  grid-template-columns: 42px 1fr 55px 68px;
  align-items: center;
  gap: 13px;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.distribution-track {
  background: #eef3ef;
  border-radius: 3px;
  height: 10px;
  overflow: hidden;
}
.distribution-track > span {
  display: block;
  height: 100%;
  background: #78a18e;
  border-radius: 3px;
}
.distribution-row.likely {
  color: var(--accent);
  font-weight: 650;
}
.distribution-row.likely .distribution-track > span {
  background: var(--accent);
}
.distribution-footer {
  font-size: 11px;
  color: var(--muted);
  padding: 0 22px 17px;
}
.analysis-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
}
.analysis-table th,
.analysis-table td {
  text-align: left;
  border-bottom: 1px solid var(--border);
  padding: 11px 18px;
}
.analysis-table th {
  font-weight: 550;
  color: var(--muted);
  background: #f7f9f8;
}
.analysis-table tr:last-child td {
  border-bottom: none;
}
.analysis-details {
  margin-top: 18px;
}
.analysis-details summary {
  padding: 16px 22px;
  cursor: pointer;
  color: #4c6658;
  font-size: 13px;
  font-weight: 650;
}
.library-entry {
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  padding: 20px 22px;
}
.library-entry p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
}
.library-actions {
  display: flex;
  gap: 10px;
}
.sub-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 17px;
  border-bottom: 1px solid var(--border);
}
.sub-tabs button {
  padding: 9px 13px;
  border-bottom: 2px solid transparent;
  color: var(--muted);
  font-size: 13px;
}
.sub-tabs button.active {
  color: var(--accent);
  border-color: var(--accent);
  font-weight: 700;
}
.library-search {
  margin-bottom: 15px;
  max-width: 100%;
  min-width: 0;
}
.library-list {
  max-height: 52vh;
  overflow: auto;
  border: 1px solid var(--border);
  border-radius: 8px;
}
.library-row {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.library-row:last-child {
  border-bottom: none;
}
.library-row img {
  width: 67px;
  height: 44px;
  object-fit: contain;
}
.library-row strong {
  display: block;
  font-size: 13px;
}
.library-row small {
  font-size: 11px;
  color: var(--muted);
}
.library-row .text-button {
  font-size: 12px;
}
.library-row.simple-row {
  grid-template-columns: 1fr auto;
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 17px 0;
}
.detail-grid > div {
  background: #f7f9f7;
  padding: 12px 15px;
  border-radius: 7px;
}
.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}
.detail-grid strong {
  display: block;
  font-size: 18px;
  margin-top: 4px;
}
.facts-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  margin: 14px 0;
}
.facts-table th,
.facts-table td {
  padding: 9px 11px;
  text-align: left;
  border: 1px solid var(--border);
}
.facts-table th {
  font-weight: 550;
  background: #f8faf9;
}
.facts-table td {
  overflow-wrap: anywhere;
}
.dialog-notice {
  padding: 11px 14px;
  background: #f3f7f3;
  border-radius: 7px;
  font-size: 12px;
  color: #527363;
  margin: 14px 0;
}
.small-muted {
  font-size: 12px;
  color: var(--muted);
}
.mt16 {
  margin-top: 16px;
}
.mt10 {
  margin-top: 10px;
}
dialog {
  border: 1px solid #dfe8e1;
  border-radius: 14px;
  padding: 0;
  max-width: min(760px, calc(100vw - 34px));
  width: 760px;
  max-height: 88vh;
  box-shadow: 0 24px 90px #173c2633;
  color: var(--ink);
}
dialog::backdrop {
  background: #14271d50;
  backdrop-filter: blur(3px);
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 25px;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.dialog-header h2 {
  font-size: 19px;
}
.dialog-body {
  padding: 20px 25px 25px;
  overflow: auto;
  line-height: 1.7;
}
.dialog-body p {
  margin: 9px 0;
  font-size: 13px;
}
.dialog-body h3 {
  font-size: 14px;
  margin-top: 20px;
  margin-bottom: 6px;
}
.dialog-body h3:first-child {
  margin-top: 0;
}
.dialog-body ol,
.dialog-body ul {
  padding-left: 21px;
  font-size: 13px;
}
.dialog-body li {
  margin: 5px 0;
}
.condition-presets {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 9px;
  margin: 13px 0;
}
.condition-preset {
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 8px;
  padding: 12px;
  text-align: left;
  color: var(--ink);
}
.condition-preset.selected {
  border-color: #83ac99;
  background: #eff7f2;
}
.condition-preset strong {
  display: block;
  font-size: 13px;
}
.condition-preset span {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}
.control-line {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 11px 0;
}
.control-line label {
  font-size: 13px;
}
.control-line input[type='range'] {
  width: 60%;
}
.control-line output {
  color: var(--accent);
  font-weight: 700;
  font-size: 14px;
}
.source-links {
  display: flex;
  gap: 18px;
  margin-top: 17px;
  flex-wrap: wrap;
}
.source-links a {
  font-size: 12px;
}
.source-facts {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-radius: 9px;
  margin: 16px 0;
  overflow: hidden;
}
.source-facts > div {
  padding: 13px 10px;
  text-align: center;
  border-right: 1px solid var(--border);
}
.source-facts > div:last-child {
  border-right: 0;
}
.source-facts strong {
  display: block;
  font-size: 23px;
  color: var(--accent);
}
.source-facts span {
  font-size: 11px;
  color: var(--muted);
}
#toast {
  position: fixed;
  left: 50%;
  bottom: 93px;
  transform: translate(-50%, 12px);
  opacity: 0;
  pointer-events: none;
  background: #183c30;
  color: white;
  padding: 9px 17px;
  border-radius: 7px;
  box-shadow: 0 7px 25px #193d2526;
  font-size: 13px;
  z-index: 100;
  transition:
    opacity 0.15s,
    transform 0.15s;
  max-width: 90%;
  text-align: center;
}
#toast.visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
@media (min-width: 1450px) {
  .ranking-table td {
    height: 76px;
  }
  .table-heading h2 {
    font-size: 23px;
  }
  .header-inner {
    height: 72px;
  }
  .site-header {
    height: 72px;
  }
  main {
    padding-top: 29px;
  }
  .filter-panel {
    padding-top: 19px;
    padding-bottom: 16px;
  }
  h1 {
    font-size: 42px;
  }
  .hero {
    margin-bottom: 24px;
  }
  .filter-panel {
    margin-bottom: 20px;
  }
  .table-toolbar {
    padding-top: 21px;
    padding-bottom: 17px;
  }
}
@media (max-width: 1200px) {
  .header-inner {
    padding: 0 28px;
  }
  .main-nav {
    gap: 25px;
  }
  main {
    padding-left: 28px;
    padding-right: 28px;
  }
  .comparison-tray {
    padding-left: 28px;
    padding-right: 28px;
  }
  .table-toolbar {
    align-items: flex-start;
  }
  .table-heading {
    display: block;
  }
  .table-heading > span {
    display: block;
    margin-top: 3px;
  }
  .table-tools {
    padding-top: 3px;
  }
  .weapon-picture {
    width: 88px;
  }
  .weapon-cell {
    gap: 10px;
  }
  .ranking-table td,
  .ranking-table th {
    padding-left: 16px;
    padding-right: 16px;
  }
  .rank-col {
    width: 7% !important;
  }
  .ranking-table th:nth-child(2) {
    width: 38%;
  }
  .ranking-table .ammo-col {
    width: 23%;
  }
  .ranking-table .action-col {
    width: 15%;
  }
  .row-actions {
    gap: 8px;
  }
  .tray-inner > p {
    max-width: 330px;
  }
  .filter-grid {
    gap: 13px;
  }
  .filter-field {
    padding-right: 14px;
  }
  .brand span {
    font-size: 24px;
  }
  .game-mode {
    margin-left: 2px;
    padding: 4px 8px;
  }
  .analysis-layout {
    grid-template-columns: 270px minmax(0, 1fr);
  }
  .selected-tray {
    gap: 7px;
  }
  .selection-chip {
    max-width: 110px;
  }
}
@media (max-width: 980px) {
  .game-name .game-mode {
    display: none;
  }
  .main-nav {
    gap: 16px;
  }
  .brand span {
    font-size: 22px;
  }
  .main-nav button {
    font-size: 14px;
  }
  .header-inner {
    gap: 16px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr 1.3fr 1fr;
    gap: 12px;
  }
  .more-button {
    grid-column: 4;
    grid-row: 2;
    align-self: center;
    justify-self: end;
    margin-top: -3px;
  }
  .condition-summary {
    margin-top: -25px;
    width: 76%;
    font-size: 11px;
    line-height: 1.8;
  }
  .filter-field {
    padding-right: 12px;
  }
  .filter-field:nth-child(4) {
    padding-right: 0;
  }
  .filter-panel {
    padding-bottom: 14px;
  }
  .comparison-tray p > span {
    max-width: 250px;
    font-size: 10px;
  }
  .tray-help {
    display: none;
  }
  .analysis-layout {
    grid-template-columns: 245px minmax(0, 1fr);
  }
  .table-tools .search-field {
    min-width: 160px;
    max-width: 180px;
  }
  .table-tools select {
    width: 115px;
    min-width: 115px;
  }
  .ttk-value {
    font-size: 18px;
  }
  .weapon-picture {
    width: 70px;
  }
  .ranking-table th:nth-child(2) {
    width: 36%;
  }
  .ranking-table .ammo-col {
    width: 23%;
  }
  .ranking-table .time-col {
    width: 18%;
  }
  .ranking-table .action-col {
    width: 16%;
  }
  .ranking-table td,
  .ranking-table th {
    padding-left: 12px;
    padding-right: 12px;
  }
  .outline-button {
    min-width: 54px;
    padding: 5px 8px;
  }
  .hero p {
    font-size: 15px;
  }
  h1 {
    font-size: 34px;
  }
  .library-entry {
    align-items: flex-start;
  }
  .library-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .compare-card {
    padding: 20px;
  }
}
@media (max-width: 760px) {
  .site-header {
    height: auto;
    position: sticky;
  }
  .header-inner {
    padding: 0 18px;
    height: 102px;
    display: grid;
    grid-template-columns: 1fr auto;
    gap: 0;
  }
  .brand {
    height: 56px;
    gap: 7px;
  }
  .brand img {
    width: 36px;
    height: 41px;
  }
  .brand span {
    font-size: 22px;
    letter-spacing: 0.5px;
  }
  .game-name {
    font-size: 12px;
    grid-column: 2;
    grid-row: 1;
  }
  .game-name svg {
    width: 16px;
    height: 16px;
  }
  .main-nav {
    grid-row: 2;
    grid-column: 1/-1;
    justify-content: center;
    gap: 40px;
    height: 46px;
  }
  .main-nav button {
    font-size: 14px;
    padding: 0 7px;
  }
  .hero {
    margin-bottom: 17px;
    align-items: flex-start;
  }
  .hero .eyebrow {
    font-size: 12px;
  }
  h1 {
    font-size: 29px;
    letter-spacing: -0.6px;
    margin-top: 3px;
  }
  .hero p {
    font-size: 12px;
    max-width: 260px;
  }
  .preview-badge {
    font-size: 10px;
    padding: 3px 7px;
    max-width: 105px;
    white-space: normal;
    text-align: center;
    margin-top: 4px;
  }
  main {
    padding: 20px 15px 130px;
  }
  .filter-panel {
    padding: 13px 14px;
    margin-bottom: 17px;
  }
  .filter-grid {
    grid-template-columns: 1fr 1fr;
    gap: 11px 14px;
  }
  .filter-field {
    border: none;
    padding: 0;
  }
  .filter-field > span {
    font-size: 11px;
  }
  .filter-field select {
    font-size: 12px;
    min-height: 34px;
    padding-left: 10px;
  }
  .more-button {
    grid-column: 2;
    grid-row: 3;
    justify-self: end;
    font-size: 11px;
    align-self: start;
  }
  .condition-summary {
    margin-top: -20px;
    width: 76%;
    font-size: 10px;
    gap: 4px;
    line-height: 1.9;
  }
  .condition-summary .dot {
    padding: 0 2px;
  }
  .table-toolbar {
    padding: 15px 14px 12px;
    display: block;
  }
  .table-heading h2 {
    font-size: 18px;
  }
  .table-heading > span {
    font-size: 10px;
    margin-top: 3px;
  }
  .table-tools {
    margin-top: 13px;
    gap: 9px;
    padding: 0;
  }
  .table-tools .search-field {
    flex: 1;
    min-width: 0;
    max-width: none;
    height: 34px;
  }
  .table-tools .search-field input {
    font-size: 12px;
  }
  .table-tools select {
    min-height: 34px;
    font-size: 12px;
    min-width: 106px;
    width: 106px;
  }
  .ranking-table {
    display: block;
  }
  .ranking-table thead {
    display: none;
  }
  .ranking-table tbody {
    display: block;
  }
  .ranking-table .weapon-row {
    display: grid;
    grid-template-columns: 27px minmax(0, 1fr) 91px;
    grid-template-rows: auto auto;
    position: relative;
    padding: 13px 13px 11px;
    gap: 0 7px;
    border-bottom: 1px solid var(--border);
    min-height: 104px;
  }
  .ranking-table .weapon-row td {
    border: none;
    height: auto;
    padding: 0;
  }
  .weapon-row td:first-child {
    grid-row: 1/3;
    grid-column: 1;
    padding-top: 3px;
  }
  .weapon-row td:nth-child(2) {
    grid-column: 2;
    grid-row: 1;
  }
  .weapon-row .ammo-cell {
    grid-column: 2;
    grid-row: 2;
    margin-left: 62px;
    align-self: end;
    margin-top: 3px;
  }
  .weapon-row .time-cell {
    grid-column: 3;
    grid-row: 1;
    text-align: right;
    padding-top: 1px;
  }
  .weapon-row td:nth-child(5) {
    grid-column: 3;
    grid-row: 2;
    align-self: end;
    padding-top: 5px;
  }
  .rank-number {
    font-size: 15px;
    line-height: 1.5;
  }
  .weapon-cell {
    gap: 8px;
    align-items: flex-start;
  }
  .weapon-picture {
    width: 54px;
    height: 41px;
    margin-top: 2px;
  }
  .weapon-name {
    font-size: 14px;
  }
  .weapon-sub {
    font-size: 10px;
    line-height: 1.6;
  }
  .bullet-name {
    font-size: 10px;
    line-height: 1.5;
  }
  .bullet-detail {
    display: inline;
    margin: 0;
  }
  .bullet-level {
    font-size: 9px;
    display: inline;
    margin-left: 5px;
  }
  .bullet-level::before {
    display: none;
  }
  .ttk-value {
    font-size: 18px;
    letter-spacing: -0.4px;
  }
  .ttk-value small {
    font-size: 10px;
    margin-left: 2px;
  }
  .ms-label {
    font-size: 10px;
  }
  .row-actions {
    justify-content: flex-end;
    gap: 7px;
  }
  .row-actions .outline-button {
    font-size: 11px;
    min-width: 53px;
    padding: 3px 7px;
  }
  .row-actions .icon-button {
    width: 23px;
    height: 25px;
  }
  .row-actions .icon-button svg {
    width: 16px;
    height: 16px;
  }
  .table-footer {
    padding: 8px 13px;
    grid-template-columns: 1fr auto;
    gap: 9px;
    font-size: 10px;
    min-height: 49px;
  }
  .table-footer #show-more {
    grid-column: 2;
    font-size: 11px;
  }
  .table-footer #group-mode {
    grid-column: 1/-1;
    justify-self: center;
    font-size: 10px;
    margin-top: -6px;
    padding: 0;
  }
  .page-footnote {
    font-size: 10px;
    align-items: flex-start;
    gap: 8px;
  }
  .page-footnote button {
    font-size: 10px;
    padding: 0;
  }
  .comparison-tray {
    padding: 0 10px 10px;
  }
  .tray-inner {
    flex-wrap: wrap;
    gap: 6px;
    min-height: 67px;
    padding: 9px 11px;
    justify-content: space-between;
  }
  .tray-inner > p {
    max-width: none;
    flex: 0 0 100%;
    font-size: 10px;
    gap: 5px;
    order: 2;
  }
  .tray-inner > p > span {
    max-width: none;
    font-size: 10px;
  }
  .info-icon {
    width: 13px;
    height: 13px;
  }
  .selected-tray {
    width: 100%;
    gap: 6px;
    font-size: 10px;
    min-height: 30px;
    flex-wrap: wrap;
  }
  .selection-chip {
    font-size: 10px;
    max-width: 78px;
    padding: 3px 5px;
  }
  .selection-chip svg {
    width: 11px;
    height: 11px;
  }
  .selected-tray .primary-button {
    margin-left: auto;
    font-size: 11px;
    padding: 6px 10px;
  }
  .tray-empty {
    font-size: 11px;
  }
  .expanded-row {
    display: block;
  }
  .ranking-table .expanded-row td {
    display: block;
    padding: 10px 13px 15px;
    height: auto;
  }
  .variant-head {
    margin: 0 0 8px;
  }
  .variant-head span {
    display: none;
  }
  .variant-item {
    grid-template-columns: 1fr 75px;
    gap: 3px 8px;
    padding: 10px;
    font-size: 11px;
  }
  .variant-item > strong {
    font-size: 11px;
  }
  .variant-item .variant-bullet {
    grid-column: 1;
    grid-row: 2;
    font-size: 10px;
  }
  .variant-item .variant-time {
    grid-column: 2;
    grid-row: 1;
    text-align: right;
  }
  .variant-actions {
    grid-row: 3;
    grid-column: 1/-1;
    justify-content: flex-end;
    gap: 16px;
  }
  .variant-actions .text-button {
    font-size: 10px;
    padding: 0;
  }
  .variant-actions .outline-button {
    font-size: 10px;
    min-width: 48px;
    padding: 2px 7px;
  }
  .compare-grid {
    grid-template-columns: repeat(var(--cols, 2), minmax(0, 1fr));
  }
  .compare-card {
    padding: 14px 10px;
  }
  .compare-card h2 {
    font-size: 15px;
  }
  .compare-card .icon-button {
    width: 20px;
    height: 20px;
  }
  .compare-card img {
    height: 77px;
    width: 100%;
  }
  .compare-config {
    font-size: 10px;
    line-height: 1.6;
    min-height: 46px;
  }
  .compare-card .large-ttk {
    font-size: 24px;
    margin-top: 10px;
  }
  .large-ttk small {
    font-size: 11px;
  }
  .compare-card .comparison-note {
    font-size: 10px;
    min-height: 28px;
  }
  .stat-lines {
    font-size: 10px;
    gap: 7px;
  }
  .stat-lines > div {
    gap: 7px;
  }
  .compare-card .stat-lines > div {
    display: block;
  }
  .compare-card .stat-lines dd {
    text-align: left;
    font-weight: 550;
  }
  .compare-card .text-button {
    font-size: 10px;
  }
  .panel-heading {
    padding: 15px 14px;
  }
  .panel-heading h2 {
    font-size: 17px;
  }
  .panel-heading p {
    font-size: 10px;
  }
  .panel-heading .text-button {
    font-size: 11px;
  }
  .series-dot {
    width: 7px;
    height: 7px;
    margin-right: 4px;
  }
  .chart-panel {
    padding: 15px 12px;
    margin-top: 14px;
  }
  .chart-heading {
    margin-bottom: 11px;
    gap: 8px;
    flex-wrap: wrap;
  }
  .chart-heading h3 {
    font-size: 14px;
  }
  .chart-heading span,
  .chart-note {
    font-size: 10px;
  }
  .chart-legend {
    font-size: 10px;
    gap: 11px;
  }
  .mini-distance {
    font-size: 10px;
    gap: 8px;
  }
  .mini-distance input {
    width: 100px;
  }
  .analysis-layout {
    display: block;
  }
  .analysis-side {
    padding: 16px;
    margin-bottom: 15px;
  }
  .analysis-side img.weapon-hero {
    height: 110px;
  }
  .analysis-side > label {
    font-size: 11px;
  }
  .analysis-name {
    font-size: 22px;
  }
  .analysis-side .stat-lines {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 19px;
    font-size: 12px;
  }
  .analysis-side .hint {
    font-size: 10px;
  }
  .analysis-kpis {
    gap: 10px;
    padding: 16px;
  }
  .analysis-kpis strong {
    font-size: 23px;
  }
  .analysis-kpis > div > span {
    font-size: 10px;
  }
  .analysis-kpis strong small {
    font-size: 11px;
  }
  .analysis-kpis .tiny {
    font-size: 9px;
  }
  .distribution-list {
    padding: 13px 15px;
    gap: 9px;
  }
  .distribution-row {
    grid-template-columns: 30px 1fr 43px 54px;
    font-size: 10px;
    gap: 9px;
  }
  .distribution-footer {
    font-size: 10px;
    padding: 0 15px 13px;
  }
  .analysis-details summary {
    padding: 14px 15px;
    font-size: 12px;
  }
  .analysis-table {
    font-size: 11px;
  }
  .analysis-table th,
  .analysis-table td {
    padding: 9px 10px;
  }
  .library-entry {
    display: block;
    padding: 16px;
  }
  .library-entry h3 {
    font-size: 15px;
  }
  .library-entry p {
    font-size: 11px;
  }
  .library-actions {
    margin-top: 13px;
    justify-content: flex-start;
    gap: 8px;
  }
  .library-actions .outline-button {
    font-size: 11px;
    padding: 5px 9px;
  }
  .dialog-header {
    padding: 16px 17px;
  }
  .dialog-header h2 {
    font-size: 17px;
  }
  .dialog-body {
    padding: 15px 17px 20px;
  }
  .dialog-body p,
  .dialog-body li {
    font-size: 12px;
  }
  .source-facts {
    grid-template-columns: repeat(2, 1fr);
  }
  .source-facts > div {
    border-bottom: 1px solid var(--border);
  }
  .source-facts > div:nth-child(2) {
    border-right: 0;
  }
  .condition-presets {
    grid-template-columns: 1fr;
  }
  .condition-preset strong {
    font-size: 12px;
  }
  .condition-preset span {
    font-size: 10px;
  }
  .sub-tabs {
    gap: 0;
    justify-content: space-between;
  }
  .sub-tabs button {
    font-size: 12px;
    padding: 8px 10px;
  }
  .library-row {
    grid-template-columns: 48px 1fr auto;
    gap: 8px;
    padding: 10px;
  }
  .library-row img {
    width: 47px;
    height: 35px;
  }
  .library-row strong {
    font-size: 12px;
  }
  .library-row small {
    font-size: 10px;
  }
  .library-row .text-button {
    font-size: 11px;
  }
  .detail-grid {
    gap: 10px;
  }
  .detail-grid > div {
    padding: 10px;
  }
  .detail-grid span {
    font-size: 10px;
  }
  .detail-grid strong {
    font-size: 16px;
  }
  .facts-table {
    font-size: 10px;
  }
  .facts-table td,
  .facts-table th {
    padding: 7px;
  }
  .source-links {
    gap: 12px;
  }
  .source-links a {
    font-size: 11px;
  }
  #toast {
    bottom: 111px;
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
  }
}
.preset-tag {
  border: 0;
  background: #eef5f0;
  color: #226451;
  border-radius: 4px;
  padding: 1px 6px;
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}
.preset-tag:hover {
  background: #e0ece3;
}
