@scope (.orbis-leaderboard) to (.orbis-theme) {
/* Orbis 排行榜 v5：沿用 Orbis 设计系统——色阶分层、悬停只改底色、宋体标题、靛蓝只做交互强调 */
:scope {
  color-scheme: dark;
  --bg: #09090B; --s1: #121215; --s2: #19191D; --s3: #222227; --s4: #2C2C32;
  --hover-1: #161619; --hover-2: #1E1E22;
  --fg: #F4F4F5; --fg-2: #A1A1AA; --fg-3: #71717A; --fg-4: #4E4E56;
  --blue: #8492FF; --blue-2: #A9B3FF; --blue-ink: #3B4BDB; --blue-wash: rgba(132, 146, 255, .12);
  --up: #80DDBD; --down: #FC918E;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "PingFang SC", "Microsoft YaHei", sans-serif;
  --serif: "Noto Serif SC", "Songti SC", "STSong", Georgia, serif;
  --r-sm: 8px; --r: 12px; --r-lg: 16px; --r-xl: 22px; --pill: 999px;
  --nav-h: 64px; --wrap: 1320px; --gut: clamp(18px, 3vw, 40px);
  --shadow-pop: 0 24px 64px -16px rgba(0, 0, 0, .8), 0 8px 20px -8px rgba(0, 0, 0, .6);
  --ease: cubic-bezier(.2, .8, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --accent: var(--blue); --accent-2: var(--blue-2); --accent-wash: var(--blue-wash);
  --mint: #6FDDB8; --mint-2: #A6EDD4; --mint-wash: rgba(111, 221, 184, .12);
}
:scope[data-mode="site"] { --accent: var(--mint); --accent-2: var(--mint-2); --accent-wash: var(--mint-wash); }

*, *::before, *::after { box-sizing: border-box; }
:scope { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 16px); }
:scope { margin: 0; background: var(--bg); color: var(--fg-2); font: 15px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
h1, h2, p { margin: 0; }
h1, h2 { font-family: var(--serif); font-weight: 600; color: var(--fg); letter-spacing: .01em; }
a { color: inherit; text-decoration: none; }
button, input { font: inherit; color: inherit; }
button { background: none; border: 0; padding: 0; cursor: pointer; }
svg { display: block; }
::selection { background: var(--blue-ink); color: #fff; }
:focus { outline: none; }
:focus-visible { outline: 2px solid rgba(132, 146, 255, .7); outline-offset: 2px; border-radius: 8px; }
.mono { font-family: var(--mono); letter-spacing: -.01em; }
.num { font-variant-numeric: tabular-nums; }
.sp { flex: 1; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.sr:focus { position: fixed !important; left: 12px; top: 12px; width: auto; height: auto; clip: auto; padding: 8px 12px; background: var(--s3); color: var(--fg); border-radius: 8px; z-index: 100; }
.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin: 0 auto; padding: 0 var(--gut); }

/* ---------- 按钮 ---------- */
.btn { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 18px; border-radius: var(--pill); font-weight: 500; font-size: 14px; transition: background .2s var(--ease), color .2s; white-space: nowrap; }
.btn--sm { height: 34px; padding: 0 14px; font-size: 13px; }
.btn--white { background: var(--fg); color: #0B0C16; }
.btn--white:hover { background: #fff; }

/* ---------- 导航 ---------- */
.nav { position: sticky; top: 0; z-index: 40; height: var(--nav-h); background: rgba(9, 9, 11, .82); backdrop-filter: blur(14px) saturate(1.2); }
.nav__in { height: 100%; display: flex; align-items: center; gap: 28px; }
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; color: var(--fg); font-size: 16px; letter-spacing: -.01em; }
.logo__mk { width: 26px; }
.logo__mk .orbi { width: 26px; height: auto; }
.nav__links { display: flex; gap: 4px; }
.nav__links a { padding: 6px 12px; border-radius: var(--pill); font-size: 14px; color: var(--fg-3); transition: color .2s, background .2s; }
.nav__links a:hover { color: var(--fg); background: var(--s1); }
.nav__links a[aria-current] { color: var(--fg); background: var(--s2); }
.nav__sign { font-size: 14px; color: var(--fg-2); }
.nav__sign:hover { color: var(--fg); }

/* ---------- 顶部记分牌 ---------- */
.top { padding-top: 44px; }
.top__head { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.top__head h1 { font-size: 22px; }

.tabs { position: relative; display: flex; gap: 2px; padding: 4px; background: var(--s1); border-radius: var(--pill); overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs__thumb { position: absolute; top: 4px; left: 0; height: calc(100% - 8px); width: 0; border-radius: var(--pill); background: var(--s3); transition: transform .5s var(--spring), width .5s var(--spring); pointer-events: none; }
.tab { position: relative; z-index: 1; height: 32px; padding: 0 14px; border-radius: var(--pill); font-size: 14px; color: var(--fg-3); white-space: nowrap; transition: color .25s; }
.tab:hover { color: var(--fg-2); }
.tab[aria-selected="true"] { color: var(--fg); }
.tabs__gap { flex: 0 0 1px; margin: 8px 6px; background: var(--s4); }

.board { position: relative; margin-top: 28px; touch-action: pan-y; }
.board__cv { display: block; width: 100%; height: 240px; }
.perch { position: absolute; left: 0; top: 0; width: 60px; pointer-events: none; will-change: transform; }
.perch .orbi { width: 100%; height: auto; overflow: visible; }
.perch__hit { position: absolute; inset: -6px -6px 30% -6px; pointer-events: auto; border-radius: 16px; cursor: pointer; }

/* Orbi：伞、眼、四条腿。腿各自轻轻摆，跳起时收拢 */
.orbi__leg { transform-box: fill-box; transform-origin: 50% 0; animation: sway 3.2s ease-in-out infinite; animation-delay: calc(var(--i) * -.7s); transition: transform .3s var(--ease); }
@keyframes sway { 0%, 100% { transform: rotate(-4deg); } 50% { transform: rotate(5deg); } }
.orbi__eyes { transition: transform .18s var(--ease); }
.orbi .e-happy, .orbi .e-wow, .orbi .e-sleep { display: none; }
.orbi[data-mood="happy"] .e-open, .orbi[data-mood="wow"] .e-open { display: none; }
.orbi[data-mood="happy"] .e-happy { display: block; }
.orbi[data-mood="wow"] .e-wow { display: block; }
.orbi .e-happy, .orbi .e-sleep { fill: none; stroke: #0B0C16; stroke-width: 2.4; stroke-linecap: round; }
.orbi .e-open { transform-box: fill-box; transform-origin: center; transition: transform .09s; }
.orbi.blink .e-open { transform: scaleY(.1); }
.perch.hop .orbi__leg { animation: none; transform: scaleY(.55); }

.meta { display: grid; grid-template-columns: minmax(0, 1.5fr) repeat(4, minmax(0, 1fr)); gap: 2px; margin-top: 22px; border-radius: var(--r-lg); overflow: hidden; }
.meta > div { background: var(--s1); padding: 16px 20px; min-width: 0; }
.meta__k { font-size: 12px; color: var(--fg-3); }
.meta__v { margin-top: 4px; color: var(--fg); font-size: 15px; display: flex; align-items: center; gap: 10px; min-width: 0; }
.meta__v .ic { width: 20px; height: 20px; }
.meta > div:last-child .meta__v { flex-wrap: wrap; gap: 0 10px; }
.meta > div:last-child .meta__v .t { flex: none; max-width: 100%; }
.meta__v .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.meta__v small { color: var(--fg-3); font-size: 13px; }
.lead--up { color: var(--up); }
.lead--down { color: var(--down); }

/* ---------- 模块标题 ---------- */
.sec { padding-top: 96px; }
.sh { display: flex; align-items: center; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 18px; }
.sh h2 { font-size: clamp(22px, 2.2vw, 28px); display: flex; align-items: baseline; gap: 12px; }
.sh h2 small { font: 500 13px var(--mono); color: var(--fg-3); }
.sh__hint { color: var(--fg-3); font-size: 13px; margin-left: auto; }

.search { margin-left: auto; display: flex; align-items: center; gap: 2px; height: 40px; padding: 0 8px 0 16px; width: min(340px, 100%); background: var(--s1); border-radius: var(--pill); transition: background .2s; }
.search:hover { background: var(--hover-1); }
.search:focus-within { background: var(--s2); }
.search__pre { color: var(--fg-4); font-size: 13px; }
.search input { flex: 1; min-width: 0; height: 100%; background: none; border: 0; font: 14px var(--mono); color: var(--fg); }
.search input::-webkit-search-cancel-button { display: none; }
.search__k { font: 500 11px var(--mono); color: var(--fg-3); background: var(--s3); border-radius: 6px; padding: 2px 7px; }

.chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.chip { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 13px 0 9px; border-radius: var(--pill); background: var(--s1); font-size: 13px; color: var(--fg-2); transition: background .2s, color .2s; }
.chip:hover { background: var(--hover-2); color: var(--fg); }
.chip[aria-pressed="true"] { background: var(--accent-wash); color: var(--accent-2); }
.chip--all { padding: 0 13px; }
.chip .ic { width: 16px; height: 16px; }
.ic { display: inline-grid; place-items: center; flex: none; color: var(--fg); }
.ic svg { width: 100%; height: 100%; }

/* ---------- 排名 ---------- */
.race { background: var(--s1); border-radius: var(--r-xl); padding: 6px; }
.race__head, .row { display: grid; grid-template-columns: 64px var(--history-column, 52px) minmax(0, 1.5fr) var(--reasoning-column, 88px) minmax(0, 2fr) var(--profile-column, 76px) var(--price-column, 110px) 44px; align-items: center; gap: 0 16px; padding: 0 16px; }
.race[data-mode="site"] .race__head, .race[data-mode="site"] .row { grid-template-columns: 64px var(--history-column, 52px) minmax(0, 1.5fr) minmax(0, 2fr) var(--c2-column, 96px) 112px var(--ability-column, 92px); }
.race__head { height: 40px; font-size: 12px; color: var(--fg-3); }
.race__head .c2, .race__head .c3 { text-align: right; }
.race__body { position: relative; }
.row { position: relative; height: 64px; border-radius: var(--r); cursor: pointer; transition: background .2s, opacity .35s; }
.row:hover, .row.is-hot { background: var(--hover-2); }
.row.is-focus { background: var(--s2); }
.row.is-over { opacity: .3; }
.row.is-flash { animation: flash 1.2s var(--ease); }
@keyframes flash { 0% { background: rgba(132, 146, 255, .16); } 100% { background: transparent; } }
.row--top { height: 76px; }

.rk { font: 600 15px var(--mono); color: var(--fg-3); font-variant-numeric: tabular-nums; }
.row--top .rk { font-size: 26px; color: var(--fg); letter-spacing: -.04em; }
.dl { font: 500 12px var(--mono); display: inline-flex; align-items: center; gap: 3px; color: var(--fg-4); }
.dl--up { color: var(--up); }
.dl--down { color: var(--down); }
.dl--new { color: var(--blue-2); background: var(--blue-wash); padding: 1px 7px; border-radius: var(--pill); }

.who { display: flex; align-items: center; gap: 12px; min-width: 0; }
.who .ic { width: 28px; height: 28px; padding: 5px; border-radius: 9px; background: var(--s2); }
.row--top .who .ic { width: 34px; height: 34px; padding: 6px; }
.who__t { min-width: 0; }
.who__n { color: var(--fg); font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.row--top .who__n { font-size: 16px; }
.who__p { font-size: 12px; color: var(--fg-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* 分数条：点阵轨道，亮点数量就是分数 */
.bar { display: flex; align-items: center; gap: 14px; min-width: 0; }
.bar__tr { position: relative; flex: 1; height: 8px; background: radial-gradient(circle, var(--s4) 1.6px, transparent 1.9px) 0 50% / 8px 8px repeat-x; }
.bar__fill { position: absolute; inset: 0 auto 0 0; width: 0; background: radial-gradient(circle, var(--fg-2) 1.9px, transparent 2.2px) 0 50% / 8px 8px repeat-x; transition: width .9s var(--ease); }
.row--top .bar__fill { background-image: radial-gradient(circle, var(--accent) 2px, transparent 2.3px); }
.row:hover .bar__fill, .row.is-hot .bar__fill { background-image: radial-gradient(circle, var(--fg) 2px, transparent 2.3px); }
.bar__v { min-width: 64px; text-align: right; font: 600 15px var(--mono); color: var(--fg); font-variant-numeric: tabular-nums; }
.bar__v small { font-size: 11px; color: var(--fg-3); font-weight: 500; margin-left: 2px; }
.c2, .c3 { text-align: right; font: 13px var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; white-space: nowrap; }
.c2 small, .c3 small { color: var(--fg-4); }

.add { justify-self: end; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--s2); color: var(--fg-3); transition: background .2s, color .2s, transform .35s var(--spring); }
.add:hover { background: var(--s4); color: var(--fg); }
.add[aria-pressed="true"] { background: var(--accent); color: #0B0C16; transform: rotate(45deg); }
.add svg { width: 14px; height: 14px; }
.race__empty { padding: 48px 0; text-align: center; color: var(--fg-3); }

/* ---------- 页尾 ---------- */
.foot { padding: 96px var(--gut) 56px; display: flex; flex-wrap: wrap; gap: 10px 32px; align-items: baseline; font-size: 12px; color: var(--fg-3); }
.foot__src { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.foot__src span b { color: var(--fg-2); font-weight: 500; margin-right: 6px; }
.foot__note { margin-left: auto; color: var(--fg-4); }
.has-tray .foot { padding-bottom: 300px; }

/* ---------- 对比托盘 ---------- */
.tray { position: fixed; z-index: 50; left: 50%; bottom: 16px; width: min(980px, calc(100% - 24px)); background: var(--s2); border-radius: var(--r-xl); box-shadow: var(--shadow-pop); transform: translate(-50%, calc(100% + 40px)); transition: transform .6s var(--spring); }
.tray.on { transform: translate(-50%, 0); }
.tray.shake { animation: shake .42s; }
@keyframes shake { 0%, 100% { transform: translate(-50%, 0); } 25% { transform: translate(calc(-50% - 8px), 0); } 75% { transform: translate(calc(-50% + 8px), 0); } }
.tray__head { display: flex; align-items: center; gap: 10px; padding: 14px 18px 10px; color: var(--fg); font-size: 14px; }
.tray__head .mono { color: var(--fg-3); font-size: 12px; }
.tray__btn { height: 28px; padding: 0 12px; border-radius: var(--pill); background: var(--s3); font-size: 12px; color: var(--fg-2); transition: background .2s, color .2s; }
.tray__btn:hover { background: var(--s4); color: var(--fg); }
.tray__body { display: grid; grid-template-columns: 112px repeat(3, minmax(0, 1fr)); gap: 0 14px; padding: 0 18px 16px; overflow: hidden; max-height: 320px; transition: max-height .45s var(--ease), padding .45s var(--ease); }
.tray.folded .tray__body { max-height: 0; padding-bottom: 0; }
.tray__col { min-width: 0; }
.tray__m { display: flex; align-items: center; gap: 8px; height: 40px; min-width: 0; color: var(--fg); font-size: 13px; font-weight: 500; }
.tray__m .ic { width: 20px; height: 20px; }
.tray__m .t { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; flex: 1; }
.tray__x { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: var(--fg-3); }
.tray__x:hover { background: var(--s4); color: var(--fg); }
.tray__x svg { width: 12px; height: 12px; }
.tray__slot { height: 40px; display: flex; align-items: center; color: var(--fg-4); font-size: 12px; border-radius: 10px; padding: 0 10px; background: repeating-linear-gradient(90deg, var(--s3) 0 6px, transparent 6px 12px) 0 100% / 100% 1px no-repeat; }
.tray__k { height: 34px; display: flex; align-items: center; font-size: 12px; color: var(--fg-3); white-space: nowrap; }
.tray__cell { height: 34px; display: flex; align-items: center; gap: 10px; }
.tray__cell .v { min-width: 52px; font: 500 12px var(--mono); color: var(--fg-2); font-variant-numeric: tabular-nums; }
.tray__cell.best .v { color: var(--blue-2); }
.tray__cell .bar__tr { height: 6px; background-size: 6px 6px; background-image: radial-gradient(circle, var(--s4) 1.2px, transparent 1.5px); }
.tray__cell .bar__fill { background-size: 6px 6px; background-image: radial-gradient(circle, var(--fg-3) 1.5px, transparent 1.8px); }
.tray__cell.best .bar__fill { background-image: radial-gradient(circle, var(--blue) 1.6px, transparent 1.9px); }

/* ---------- 响应式 ---------- */
@media (max-width: 1080px) {
  .race__head, .row { grid-template-columns: 52px var(--history-column, 46px) minmax(0, 1.4fr) var(--reasoning-column, 76px) minmax(0, 1.6fr) var(--profile-column, 70px) var(--price-column, 100px) 44px; }
  .race[data-mode="site"] .race__head, .race[data-mode="site"] .row { grid-template-columns: 52px var(--history-column, 46px) minmax(0, 1.4fr) minmax(0, 1.6fr) var(--c2-column, 88px) var(--ability-column, 84px); }
  .race__head .c3, .row .c3 { display: none; }
}
@media (max-width: 760px) {
  .nav__links, .nav__sign { display: none; }
  .top { padding-top: 28px; }
  .top__head { gap: 14px; }
  .tabs { width: 100%; }
  .sec { padding-top: 72px; }
  .search, .sh__hint { margin-left: 0; width: 100%; }
  .race__head { display: none; }
  .row, .row--top { grid-template-columns: 40px minmax(0, 1fr) 40px; grid-template-rows: auto auto; height: auto; padding: 12px 12px; row-gap: 10px; }
  .row .rk { grid-row: 1 / 3; align-self: start; padding-top: 4px; }
  .row--top .rk { font-size: 20px; }
  .row .dlw { position: absolute; left: 12px; top: 42px; font-size: 11px; }
  .row .dl--new { padding: 0 5px; }
  .row .who { grid-column: 2; }
  .row .add { grid-column: 3; grid-row: 1; }
  .row .bar { grid-column: 2 / 4; }
  .row .c2, .row .c3 { display: none; }
  .tray__body { grid-template-columns: 76px repeat(3, minmax(0, 1fr)); gap: 0 8px; padding: 0 12px 12px; }
  .tray__cell .bar__tr { display: none; }
  .tray__m .ic { display: none; }
  .foot__note { margin-left: 0; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; }
}

}

@scope (.orbis-leaderboard) to (.orbis-theme) { .tab { display: inline-flex; align-items: center; } .board__cv {height:var(--leaderboard-board-height,240px)} .tray__x svg {transform:rotate(45deg)} }

@scope (.orbis-leaderboard) to (.orbis-theme) {
  .race[data-history="false"] { --history-column: ; }
  .race[data-price="false"] { --price-column: ; }
  .race[data-profile="false"] { --profile-column: ; }
  .race[data-ability="false"] { --ability-column: ; }
  .race[data-board-id="site-vendors"] { --c2-column: 180px; }
}
.orbis-theme.leaderboard-navigation { min-height: 0; height: var(--nav-h); overflow: visible; position: relative; z-index: 60; }

@scope (.orbis-leaderboard) to (.orbis-theme) {
  .chips .chip[aria-current="page"] { color: #b4b4ff; background: #191a2a; }
}

@scope (.orbis-leaderboard) to (.orbis-theme) {
  .race__toggle { padding: 0 13px; flex-shrink: 0; }
  .race__toggle span { transition: transform .35s var(--spring); }
  .race__toggle[aria-expanded="true"] span { transform: rotate(180deg); }
  .race__note { margin: 14px 0 18px; font-size: 12px; color: var(--fg-3); line-height: 1.7; }
}

@scope (.orbis-leaderboard) to (.orbis-theme) {
  .race[data-reasoning="false"] { --reasoning-column: ; }
  .effort { font: 12px var(--mono); color: var(--fg-2); white-space: nowrap; }
  .effort__label { display: none; }
  @media (max-width: 760px) {
    .row .effort { grid-column: 2 / 4; }
    .row .effort__label { display: inline; color: var(--fg-3); }
  }
}

@scope (.orbis-leaderboard) to (.orbis-theme) {
  .race__footer { display: flex; flex-direction: column; align-items: center; gap: 0; padding: 0; }
  .race__footer .race__toggle { width: 100%; justify-content: center; height: 44px; gap: 10px; background: transparent; color: var(--fg-3); }
  .race__footer .race__toggle:hover { background: var(--s2); color: var(--fg); }
}

/* ===================== v2：模式 · 场景 · 子榜 ===================== */
@scope (.orbis-leaderboard) to (.orbis-theme) {
  .top__head { gap: 14px 24px; }
  .top__hint { font-size: 13px; color: var(--fg-3); transition: color .3s; }

  /* 模式切换：两段式，滑块带当前模式的强调色光晕 */
  .modes { position: relative; display: inline-flex; gap: 2px; padding: 4px; border-radius: var(--pill); background: var(--s1); box-shadow: inset 0 0 0 1px var(--s2); }
  .modes__thumb { position: absolute; top: 4px; left: 0; width: 0; height: calc(100% - 8px); border-radius: var(--pill); background: var(--s3); box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 40%, transparent), 0 8px 28px -10px var(--accent); transition: transform .55s var(--spring), width .55s var(--spring), box-shadow .5s var(--ease); pointer-events: none; }
  .mode { position: relative; z-index: 1; display: inline-flex; align-items: center; gap: 9px; height: 36px; padding: 0 18px; border-radius: var(--pill); font-size: 14px; font-weight: 500; color: var(--fg-3); white-space: nowrap; transition: color .3s; }
  .mode:hover { color: var(--fg-2); }
  .mode[aria-selected="true"] { color: var(--fg); }
  .mode__ic { position: relative; width: 7px; height: 7px; border-radius: 50%; background: var(--fg-4); transition: background .3s; }
  .mode--capability[aria-selected="true"] .mode__ic { background: var(--blue); }
  .mode--site[aria-selected="true"] .mode__ic { background: var(--mint); }
  .mode--site[aria-selected="true"] .mode__ic::after { content: ""; position: absolute; inset: -4px; border-radius: 50%; border: 1px solid var(--mint); animation: live 2.4s var(--ease) infinite; }
  @keyframes live { 0% { transform: scale(.5); opacity: .9; } 100% { transform: scale(1.6); opacity: 0; } }

  .rails { margin-top: 20px; display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
  .rails > * { animation: rise .5s var(--ease) both; }
  .rails > :nth-child(2) { animation-delay: .05s; }
  @keyframes rise { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
  .tabs__thumb { box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }

  /* 子榜：下划线轨道，与场景胶囊在视觉上分出层级 */
  .subs { position: relative; display: flex; max-width: 100%; overflow-x: auto; scrollbar-width: none; padding: 0 4px; }
  .subs::-webkit-scrollbar { display: none; }
  .subs__thumb { position: absolute; left: 0; bottom: 2px; width: 0; height: 2px; border-radius: 2px; background: var(--accent); transition: transform .5s var(--spring), width .5s var(--spring), background .3s; pointer-events: none; }
  .sub { position: relative; display: inline-flex; align-items: center; height: 38px; padding: 0 12px; font-size: 13px; color: var(--fg-3); white-space: nowrap; transition: color .25s; }
  .sub:hover { color: var(--fg-2); }
  .sub[aria-selected="true"] { color: var(--fg); }
  .sub[data-pending="true"] { color: var(--fg-4); }

  .lede { margin-top: 14px; max-width: 820px; font-size: 13.5px; line-height: 1.75; color: var(--fg-3); animation: rise .45s var(--ease) both; }
  .lede__k { margin-right: 10px; color: var(--accent-2); font-weight: 500; }
  .board { margin-top: 18px; }

  /* 元信息：第一格更宽，其余等分；指纹格内带维度名 */
  .meta { grid-template-columns: minmax(0, 1.5fr); grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
  .meta__ci { margin-left: 2px; font-size: 11px; color: var(--fg-4); }
  .tie { margin-left: 8px; padding: 1px 8px; border-radius: var(--pill); background: var(--accent-wash); color: var(--accent-2); font: 500 11px var(--sans); white-space: nowrap; }
  .meta .dl { font-size: 14px; }

  /* 能力指纹：每格高度 = 该维度百分位 */
  .fp { display: flex; align-items: flex-end; gap: 3px; height: 22px; }
  .fp__c { position: relative; flex: none; width: 7px; height: 100%; border-radius: 2px; background: var(--s3); overflow: hidden; }
  .fp__c::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 1%); border-radius: 2px; background: var(--fg-4); transition: height .7s var(--ease), background .2s; }
  .row:hover .fp__c::after, .row.is-focus .fp__c::after { background: var(--fg-3); }
  .fp__c.on::after, .row:hover .fp__c.on::after, .row.is-focus .fp__c.on::after { background: var(--accent); }
  .fp__c.na { background: repeating-linear-gradient(0deg, var(--s3) 0 2px, transparent 2px 4px); }
  .fp__c.na::after { display: none; }
  .fp--lg { height: auto; gap: 4px; margin-top: 6px; }
  .fp--lg .fp__c { flex: 1; width: auto; height: auto; display: flex; flex-direction: column; align-items: center; gap: 5px; background: none; overflow: visible; }
  .fp--lg .fp__c::after { display: none; }
  .fp--lg .fp__c i { position: relative; display: block; width: 100%; max-width: 16px; height: 24px; border-radius: 3px; background: var(--s3); overflow: hidden; }
  .fp--lg .fp__c i::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: calc(var(--p, 0) * 1%); background: var(--fg-3); transition: height .7s var(--ease), background .2s; }
  .fp--lg .fp__c.on i::after { background: var(--accent); }
  .fp--lg .fp__c.na i { background: repeating-linear-gradient(0deg, var(--s3) 0 2px, transparent 2px 4px); }
  .fp--lg .fp__c.na i::after { display: none; }
  .fp--lg .fp__c span { font-size: 10px; line-height: 1; color: var(--fg-4); white-space: nowrap; }
  .fp--lg .fp__c.on span { color: var(--accent-2); }
  .fp--lg a.fp__c[href]:hover i::after { background: var(--fg); }
  .fp--lg a.fp__c[href]:hover span { color: var(--fg-2); }

  /* 置信带：分数条上的半透明区间 */
  .bar__ci { position: absolute; top: -3px; bottom: -3px; border-radius: 4px; background: var(--accent-wash); box-shadow: inset 1px 0 0 color-mix(in srgb, var(--accent) 45%, transparent), inset -1px 0 0 color-mix(in srgb, var(--accent) 45%, transparent); opacity: 0; transition: left .9s var(--ease), width .9s var(--ease), opacity .3s; }
  .row--t1 .bar__ci, .row:hover .bar__ci, .row.is-focus .bar__ci { opacity: 1; }
  .race__ci { margin-left: 6px; color: var(--fg-4); font-size: 11px; }

  /* 第一梯队：与第 1 名无统计显著差异 */
  .row--t1::before { content: ""; position: absolute; left: 3px; top: 16px; bottom: 16px; width: 2px; border-radius: 2px; background: var(--accent); opacity: .75; }
  .tierlegend { display: flex; align-items: center; gap: 8px; margin: -2px 0 14px; font-size: 12px; color: var(--fg-3); }
  .tierlegend i { flex: none; width: 2px; height: 14px; border-radius: 2px; background: var(--accent); }
  .tierlegend b { flex: none; color: var(--fg-2); font-weight: 500; margin-right: 2px; white-space: nowrap; }

  .who__n { display: flex; align-items: baseline; gap: 8px; min-width: 0; }
  .who__name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .site-rk { flex: none; padding: 1px 7px; border-radius: var(--pill); background: var(--mint-wash); color: var(--mint-2); font: 500 11px var(--mono); animation: rise .4s var(--ease) both; }

  /* 站内列 */
  .c4 { text-align: right; font: 13px var(--mono); color: var(--fg-2); }
  .spark { display: block; width: 96px; height: 24px; margin-left: auto; overflow: visible; }
  .spark path { fill: none; stroke: var(--fg-4); stroke-width: 1.5; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; transition: stroke .2s; }
  .row--top .spark path, .row:hover .spark path, .row.is-focus .spark path { stroke: var(--accent); }
  .ab { display: inline-flex; align-items: center; gap: 8px; }
  .ab::before { content: ""; width: 30px; height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--blue) calc(var(--p, 0) * 1%), var(--s3) 0); }

  .race__body { transition: opacity .25s; }
  .race.is-loading .race__body { opacity: .55; }

  /* 实力 × 人气 */
  .quad__box { position: relative; height: 440px; border-radius: var(--r-xl); background: var(--s1); overflow: hidden; }
  .quad__box svg { display: block; width: 100%; height: 100%; }
  .quad__grid { stroke: var(--s3); stroke-width: 1; }
  .quad__mid { stroke: var(--s4); stroke-dasharray: 3 5; }
  .quad__zone { font: 500 12px var(--sans); fill: var(--fg-4); }
  .quad__zone--hot { fill: var(--mint-2); opacity: .8; }
  .quad__axis { font: 11px var(--mono); fill: var(--fg-4); }
  .quad__pt { cursor: pointer; transition: transform .7s var(--ease); }
  .quad__pt circle { fill: var(--fg-3); stroke: var(--s1); stroke-width: 2; transition: r .25s var(--spring), fill .2s; }
  .quad__pt text { font: 500 11px var(--sans); fill: var(--fg-3); paint-order: stroke; stroke: var(--s1); stroke-width: 4px; transition: fill .2s; }
  .quad__pt.on circle, .quad__pt:hover circle { fill: var(--accent); }
  .quad__pt.on text, .quad__pt:hover text { fill: var(--fg); }
  .quad__empty { position: absolute; inset: 0; display: grid; place-items: center; padding: 24px; text-align: center; font-size: 13px; color: var(--fg-3); }

  @media (max-width: 1080px) {
    .meta { grid-auto-flow: row; grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .meta > .meta__who { grid-column: 1 / -1; }
  }
  @media (max-width: 760px) {
    .modes { width: 100%; }
    .mode { flex: 1; justify-content: center; padding: 0 10px; }
    .top__hint { display: none; }
    .rails { align-items: stretch; }
    .meta { grid-template-columns: 1fr 1fr; }
    .meta > .meta__fp, .meta > .meta__src { grid-column: 1 / -1; }
    .meta__v { flex-wrap: wrap; row-gap: 2px; }
    .row .fp { grid-column: 2 / 4; height: 16px; }
    .row .c4 { display: none; }
    .race[data-mode="site"] .row { grid-template-columns: 40px minmax(0, 1fr) 40px; }
    .row--t1::before { top: 14px; bottom: auto; height: 24px; }
    .quad__box { height: 340px; }
  }
}
