:root {
  color-scheme: dark;
  --black: #000;
  --panel: #111;
  --line: #303030;
  --ink: #fafafa;
  --muted: #b1b1b1;
  --red: #f00;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--black); color: var(--ink); font-family: Inter, "PingFang SC", "Microsoft YaHei", system-ui, sans-serif; }
a { color: inherit; text-underline-offset: 4px; }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .48; }
[hidden] { display: none !important; }
.sr-only, .skip:not(:focus) { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip:focus { position: absolute; z-index: 5; top: 8px; left: 12px; padding: 8px; background: white; color: black; }
.wg-family-nav { min-height: 64px; }
.nav-links { display: flex; align-items: center; gap: clamp(12px,3vw,32px); white-space: nowrap; }
.shell { width: min(100% - clamp(32px, 8vw, 112px), 1220px); margin: 0 auto; }
.hero {
  display: grid;
  grid-template-columns: minmax(0,1fr) minmax(290px,.7fr);
  align-items: end;
  gap: clamp(26px,5vw,95px);
  border-bottom: 1px solid var(--line);
  padding: clamp(44px,7vw,104px) 0 clamp(36px,5vw,66px);
}
.hero h1 {
  margin: 0;
  font-size: clamp(58px,9.4vw,137px);
  font-weight: 850;
  line-height: 1.03;
  letter-spacing: -.06em;
}
.hero h1 span { color: var(--red); }
html[lang="en"] .hero h1 { font-size: clamp(40px,6.4vw,91px); }
html[lang="en"] .hero h1 span { display: block; }
.hero-copy p { max-width: 30rem; margin: 24px 0 17px; color: #c2c2c2; font-size: clamp(14px, 1.6vw, 18px); line-height: 1.7; }
.price-link { display: inline-block; min-height: 34px; font-size: 13px; color: #c2c2c2; }
.price-link:hover { color: var(--ink); }
.lead {
  position: relative;
  padding: clamp(18px,3.2vw,40px);
  overflow: hidden;
  border: 1px solid var(--line);
  border-top: 3px solid var(--red);
  background: radial-gradient(ellipse at 98% 100%,#230000 0%,transparent 61%), var(--panel);
}
.lead::after {
  content: "";
  position: absolute;
  inset: 30% 0 0 40%;
  pointer-events: none;
  background: repeating-linear-gradient(132deg, transparent 0 18px, #ff000016 18px 19px);
  mask-image: linear-gradient(135deg,transparent 12%,black);
}
.lead > * { position: relative; z-index: 1; }
.lead-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lead h2 { margin: 0; font-size: 14px; font-weight: 680; }
.lead time { color: var(--muted); font: 12px/1.4 "IBM Plex Mono", Consolas, monospace; white-space: nowrap; }
.lead-score {
  display: block;
  margin: 20px 0 4px;
  font: 780 clamp(58px,8vw,116px)/1 Inter, Arial, sans-serif;
  letter-spacing: -.075em;
  font-variant-numeric: tabular-nums;
}
.lead-model { font-size: clamp(19px,2.8vw,32px); line-height: 1.2; font-weight: 730; }
.lead-mode { margin: 6px 0 14px; font-size: 12px; color: var(--muted); }
.lead a { color: #d0d0d0; font-size: 12px; overflow-wrap: anywhere; }
.board { scroll-margin-top: 18px; padding-top: 28px; }
.board-controls { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.board-switch { display: flex; border: 1px solid var(--line); }
.board-switch button {
  padding: 0 clamp(10px,2vw,20px);
  min-height: 44px;
  background: transparent;
  color: #c2c2c2;
  border: 0;
  border-right: 1px solid var(--line);
  font-size: 14px;
  font-weight: 670;
  white-space: nowrap;
}
.board-switch button:last-child { border-right: 0; }
.board-switch button:hover { background: #181818; color: white; }
.board-switch button[aria-pressed="true"] { background: var(--red); color: black; }
.filters { display: flex; flex-wrap: wrap; min-width: 0; gap: 8px; }
.filters input, .filters select {
  min-height: 44px;
  border: 1px solid #393939;
  border-radius: 0;
  background: var(--panel);
  color: var(--ink);
  font-size: 13px;
  padding: 8px 11px;
}
.filters input { width: min(46vw, 230px); }
.filters input::placeholder { color: #989898; }
.filters select { max-width: 100%; }
.board-meta { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 5px 18px; padding: 14px 0; color: var(--muted); font-size: 12px; line-height: 1.5; }
.board-meta p { margin: 0; }
.rank-table { width: 100%; border-collapse: collapse; table-layout: fixed; }
.rank-table th, .rank-table td { text-align: left; border-bottom: 1px solid var(--line); padding: 13px 13px; }
.rank-table th { color: #aaa; font-size: 12px; font-weight: 600; background: #111; border-top: 1px solid var(--line); }
.rank-col { width: 70px; }
.config-col { width: 23%; }
.score-col { width: 126px; }
.pick-col { width: 66px; }
.rank-table th.pick-col, .rank-table td:last-child, .rank-table th.score-col, .rank-table td.score { text-align: right; }
.rank-table tbody tr:hover, .rank-table tbody tr.is-picked { background: #111; }
.rank-table th button { margin: -8px -6px; min-height: 36px; border: 0; padding: 0 6px; background: transparent; color: inherit; font-size: inherit; }
.rank { font: 14px/1.4 "IBM Plex Mono", Consolas, monospace; color: #aaa; }
.rank.first { color: var(--red); font-weight: 800; }
.model-name { display: block; font-size: 16px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.model-lab, .mode-cell, .mode-mobile { color: var(--muted); font-size: 12px; line-height: 1.5; overflow-wrap: anywhere; }
.model-lab { display: block; margin-top: 3px; }
.mode-mobile { display: none; }
.score { font: 700 21px/1 "IBM Plex Mono", Consolas, monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.pick {
  border: 1px solid #525252;
  background: transparent;
  color: #ddd;
  min-height: 34px;
  min-width: 38px;
  padding: 2px 6px;
  font-size: 19px;
}
.pick[aria-pressed="true"] { background: var(--red); color: #000; border-color: var(--red); }
.pick:hover:not(:disabled) { border-color: var(--red); }
.empty { padding: 30px 16px; border-bottom: 1px solid var(--line); color: var(--muted); }
.methods { padding: 44px 0 36px; max-width: 750px; scroll-margin-top: 24px; }
.methods h2 { font-size: 24px; margin: 0; }
.methods p, .methods ul { font-size: 13px; line-height: 1.75; color: var(--muted); }
.methods ul { padding-left: 18px; }
.methods li { margin: 8px 0; }
.methods a { color: #ddd; }
.footer { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 22px; padding: 20px 0 80px; font-size: 12px; color: var(--muted); }
.primary, .secondary { min-height: 42px; padding: 0 13px; font-size: 13px; font-weight: 700; }
.primary { border: 1px solid var(--red); background: var(--red); color: #000; }
.secondary { border: 1px solid #595959; background: #101010; color: #f5f5f5; }
.secondary:hover { border-color: #ddd; }
.compare-dock {
  position: fixed; left: 50%; bottom: max(14px,env(safe-area-inset-bottom)); z-index: 3;
  transform: translateX(-50%); width: max-content; max-width: calc(100% - 22px);
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 8px;
  padding: 7px; background: #101010; color: #f4f4f4; border: 1px solid #535353;
  box-shadow: 0 8px 30px #000a; font-size: 13px;
}
.compare-dock span { margin: 0 3px; }
dialog { width: min(680px,100% - 28px); max-height: 82vh; background: #121212; color: var(--ink); border: 1px solid #4a4a4a; padding: clamp(13px,3vw,24px); overflow: auto; }
dialog::backdrop { background: #000b; }
.dialog-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.dialog-head h2 { margin: 0; font-size: 22px; }
.dialog-note { color: var(--muted); font-size: 13px; line-height: 1.6; }
.compare-matrix { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.compare-matrix > * > tr > * { text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); padding: 10px 7px; overflow-wrap: anywhere; }
.compare-matrix tbody th { color: #c9c9c9; font-weight: 650; }
.compare-matrix strong { font-size: 17px; display: block; }
.compare-matrix small { color: var(--muted); display: block; margin-top: 3px; }
@media (max-width: 760px) {
  .hero { grid-template-columns: minmax(0,1fr); }
  .hero h1 { font-size: clamp(51px,12vw,88px); }
  .lead { padding: 16px 20px; }
  .lead-score { margin-top: 10px; }
  .rank-col { width: 43px; }
  .config-col, .mode-cell { display: none; }
  .mode-mobile { display: block; }
  .score-col { width: 71px; }
  .pick-col { width: 49px; }
  .rank-table th, .rank-table td { padding-left: 7px; padding-right: 7px; }
  .model-name { font-size: 14px; }
  .score { font-size: 17px; }
}
@media (max-width: 540px) {
  html[lang="en"] .hero h1 { font-size: clamp(35px,10.4vw,62px); }
  .wg-family-nav { padding-inline-end: 54px; }
  .nav-links .wg-language-switch { position: absolute; right: 12px; top: 14px; }
  .nav-links { white-space: normal; gap: 6px 10px; justify-content: flex-end; flex-wrap: wrap; }
  .nav-links a { min-height: 32px; }
  .board-switch { max-width: 100%; }
  .board-switch button { white-space: normal; min-width: 0; padding-inline: 8px; font-size: 12px; }
}
@media (max-width: 390px) {
  .nav-links a { font-size: 12px; }
  .wg-family-nav { gap: 7px; padding-inline: 12px 54px; }
  .filters { width: 100%; }
  .filters input { width: 100%; }
  .filters .search { flex: 1 1 130px; min-width: 0; }
  .filters select { width: 90px; }
  .rank-col { width: 38px; }
}
