:root {
  color-scheme: light;
  --ink: #171b19;
  --muted: #68716c;
  --line: #c8cec9;
  --surface: #f7f8f5;
  --concrete: #e6e9e5;
  --night: #0d1110;
  --steel: #202824;
  --steel-light: #303a35;
  --pc: #1675b9;
  --shack: #b73b31;
  --accent: #f1c232;
  --online: #35ad62;
}

* { box-sizing: border-box; }

html { min-width: 320px; background: var(--night); }

body {
  margin: 0;
  color: var(--ink);
  background: #171c19;
  font-family: Inter, "Segoe UI", "Microsoft YaHei", Arial, sans-serif;
  letter-spacing: 0;
}

a { color: inherit; text-decoration: none; }
button, a { -webkit-tap-highlight-color: transparent; }

.topbar {
  width: min(1400px, 100%);
  min-height: 62px;
  margin: 0 auto;
  padding: 0 30px;
  color: #fff;
  background: #1b252d;
  border-bottom: 2px solid #4a90e2;
  box-shadow: 0 5px 18px rgba(10, 17, 22, .22);
}
.topbar-inner { width: 100%; min-height: 62px; display: flex; align-items: center; justify-content: space-between; gap: 28px; }

.brand { display: flex; align-items: center; gap: 12px; min-width: 210px; }
.brand-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  border: 1px solid #77afe8;
  border-radius: 2px;
  color: #fff;
  background: #4a90e2;
  box-shadow: 3px 3px 0 #10171c;
  font-family: "Arial Black", Impact, sans-serif;
  font-size: 21px;
  font-weight: 900;
}
.brand strong, .brand small { display: block; letter-spacing: 0; }
.brand strong { font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 18px; line-height: 1; }
.brand small { margin-top: 4px; color: #b8c3cb; font-size: 10px; font-weight: 700; }
.topbar-platforms { min-width: 300px; display: flex; align-items: center; justify-content: flex-end; gap: 34px; }
.topbar-platform { min-width: 112px; padding-left: 13px; display: block; border-left: 4px solid; }
.topbar-platform b, .topbar-platform small { display: block; letter-spacing: 0; }
.topbar-platform b { font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 17px; line-height: 1; }
.topbar-platform small { margin-top: 6px; color: #9eaaa3; font-family: Consolas, monospace; font-size: 10px; font-weight: 800; }
.topbar-platform-pc { border-color: #3f9ee2; }
.topbar-platform-vr { border-color: #d9534a; }

.pavlov-theme-toggle {
  min-width: 116px;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 2px;
  color: #fff;
  background: linear-gradient(135deg, #5b6b7c 0%, #34495e 100%);
  box-shadow: 0 2px 8px rgba(52, 73, 94, .2);
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}
.pavlov-theme-toggle:hover, .pavlov-theme-toggle:focus-visible { filter: brightness(1.12); }

main {
  width: min(1400px, 100%);
  margin: 0 auto;
  overflow: hidden;
  background: var(--surface);
  box-shadow: 0 0 42px rgba(0, 0, 0, .32);
}

.portal-head {
  position: relative;
  min-height: 390px;
  overflow: hidden;
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: url('portal-hero.jpg?v=2') center 50% / cover no-repeat;
  border-bottom: 5px solid #111613;
  box-shadow: inset 0 -90px 100px rgba(0, 0, 0, .38);
}
.portal-head::before { content: ""; position: absolute; inset: 0; background: rgba(6, 10, 8, .58); }
.portal-head::after { content: ""; position: absolute; top: 28px; right: 28px; width: 118px; height: 62px; border-top: 2px solid rgba(241, 194, 50, .72); border-right: 2px solid rgba(241, 194, 50, .72); }

.portal-head-layout { position: relative; z-index: 1; width: 100%; display: grid; grid-template-columns: minmax(0, 1fr) 410px; align-items: end; }
.portal-head-inner { width: min(860px, 100%); padding: 56px 58px; }
.eyebrow { margin: 0 0 10px; color: var(--accent) !important; font-size: 12px !important; font-weight: 900; text-transform: uppercase; }
.portal-head h1 {
  margin: 0;
  font-family: "Arial Black", "Microsoft YaHei", sans-serif;
  font-size: 52px;
  line-height: 1.08;
  letter-spacing: 0;
  text-shadow: 3px 4px 0 rgba(0, 0, 0, .48);
}
.portal-head p { margin: 15px 0 0; max-width: 650px; color: #dfe6e2; font-size: 16px; font-weight: 600; line-height: 1.7; }
.head-actions { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 12px; }
.action {
  min-width: 210px;
  min-height: 56px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, .58);
  border-radius: 2px;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
  box-shadow: 5px 5px 0 rgba(0, 0, 0, .34);
  clip-path: polygon(0 0, calc(100% - 10px) 0, 100% 10px, 100% 100%, 10px 100%, 0 calc(100% - 10px));
}
.action-pc { background: var(--pc); }
.action-shack { background: var(--shack); }
.action:hover, .action:focus-visible { filter: brightness(1.13); border-color: #fff; }

.battle-hud {
  min-width: 0;
  margin: 0 46px 34px 0;
  padding: 20px 0 18px 24px;
  border-left: 2px solid rgba(241, 194, 50, .84);
  border-top: 1px solid rgba(255, 255, 255, .28);
  border-bottom: 1px solid rgba(255, 255, 255, .18);
  background: rgba(5, 10, 18, .34);
  box-shadow: 18px 20px 38px rgba(0, 0, 0, .22);
}
.hud-heading { display: flex; align-items: center; gap: 8px; color: #cfd9e3; font-size: 11px; font-weight: 800; }
.hud-heading b { color: #fff; font-family: Consolas, monospace; font-size: 12px; }
.hud-live-dot { width: 8px; height: 8px; border-radius: 50%; background: #57dc78; box-shadow: 0 0 0 4px rgba(87, 220, 120, .14), 0 0 16px rgba(87, 220, 120, .7); }
.hud-primary { position: relative; min-height: 84px; margin-top: 12px; display: flex; align-items: baseline; gap: 10px; overflow: hidden; }
.hud-primary strong { font-family: "Arial Black", Impact, sans-serif; font-size: 62px; line-height: 1; color: #fff; text-shadow: 3px 4px 0 rgba(0, 0, 0, .4); }
.hud-primary > span { color: #dbe4eb; font-size: 13px; font-weight: 800; }
.hud-reticle { position: absolute; right: 25px; top: 5px; width: 68px; height: 68px; border: 1px solid rgba(241, 194, 50, .44); border-radius: 50%; }
.hud-reticle::before, .hud-reticle::after { content: ""; position: absolute; background: rgba(241, 194, 50, .62); }
.hud-reticle::before { top: 33px; left: -10px; width: 86px; height: 1px; }
.hud-reticle::after { top: -10px; left: 33px; width: 1px; height: 86px; }
.hud-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid rgba(255, 255, 255, .20); border-bottom: 1px solid rgba(255, 255, 255, .20); }
.hud-metrics > div { min-width: 0; padding: 11px 10px 10px; border-right: 1px solid rgba(255, 255, 255, .16); }
.hud-metrics > div:first-child { padding-left: 0; }
.hud-metrics > div:last-child { border-right: 0; }
.hud-metrics span, .hud-metrics b, .hud-metrics small { display: block; letter-spacing: 0; }
.hud-metrics span { color: #86bde6; font-size: 10px; font-weight: 900; }
.hud-metrics > div:nth-child(2) span { color: #ef8c84; }
.hud-metrics b { margin-top: 4px; color: #fff; font-family: Consolas, monospace; font-size: 22px; line-height: 1; }
.hud-metrics small { margin-top: 5px; overflow: hidden; color: #aebbc6; font-size: 9px; font-weight: 700; text-overflow: ellipsis; white-space: nowrap; }
.hud-hot { padding: 12px 20px 0 0; }
.hud-hot span, .hud-hot b, .hud-hot small { display: block; letter-spacing: 0; }
.hud-hot span { color: var(--accent); font-size: 10px; font-weight: 900; }
.hud-hot b { margin-top: 5px; overflow: hidden; color: #fff; font-size: 13px; text-overflow: ellipsis; white-space: nowrap; }
.hud-hot small { margin-top: 5px; overflow: hidden; color: #b9c6d0; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }

.overview-band { padding: 38px 30px 44px; border-bottom: 1px solid #b9c0bb; background: var(--concrete); }
.overview-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.overview-controls { display: flex; align-items: stretch; gap: 10px; }
.section-kicker { margin: 0 0 6px; color: #a12e27; font-size: 11px; font-weight: 900; }
.overview-head h2 { margin: 0; padding-left: 14px; border-left: 6px solid #4a90e2; font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 30px; letter-spacing: 0; }
.overview-platform-picker { margin-top: 20px; padding: 16px 18px; display: grid; grid-template-columns: 210px minmax(0, 1fr); align-items: center; gap: 20px; border: 1px solid #bcc8d1; border-radius: 8px; background: #edf1f4; box-shadow: 0 5px 16px rgba(31, 55, 78, .10); }
.platform-picker-title { min-width: 0; padding: 2px 4px; display: flex; justify-content: center; flex-direction: column; }
.platform-picker-title span, .platform-picker-title strong { display: block; letter-spacing: 0; }
.platform-picker-title span { color: #356f9c; font-size: 10px; font-weight: 900; }
.platform-picker-title strong { margin-top: 6px; color: #263746; font-size: 15px; line-height: 1.45; }
.platform-tabs { min-width: 0; padding: 6px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 1px solid #ccd5dc; border-radius: 8px; background: #dfe5ea; }
.platform-tabs button { position: relative; min-width: 0; min-height: 70px; padding: 10px 14px; display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; align-items: center; gap: 12px; overflow: hidden; border: 1px solid #bec9d2; border-radius: 6px; color: #344655; background: #fff; font: inherit; text-align: left; cursor: pointer; box-shadow: 0 2px 5px rgba(31, 55, 78, .10); transition: transform .18s ease, color .18s ease, background .18s ease, border-color .18s ease, box-shadow .18s ease; }
.platform-tabs button::after { content: ""; position: absolute; right: 0; bottom: 0; left: 0; height: 4px; background: transparent; }
.platform-tabs button span, .platform-tabs button small, .platform-tabs button strong { display: block; letter-spacing: 0; }
.platform-tabs button:hover, .platform-tabs button:focus-visible { transform: translateY(-1px); color: #1f3444; border-color: #8fa4b4; box-shadow: 0 5px 12px rgba(31, 55, 78, .16); }
.platform-tabs button:focus-visible { outline: 3px solid rgba(74, 144, 226, .24); outline-offset: 1px; }
.platform-tabs button.active { color: #263746; box-shadow: 0 4px 11px rgba(31, 55, 78, .16); }
.platform-tabs .platform-tab-pc.active { border-color: rgba(22, 117, 185, .72); background: #f1f8fc; }
.platform-tabs .platform-tab-shack.active { border-color: rgba(183, 59, 49, .68); background: #fcf4f3; }
.platform-tabs .platform-tab-pc.active::after { background: var(--pc); }
.platform-tabs .platform-tab-shack.active::after { background: var(--shack); }
.platform-tab-code { width: 38px; height: 38px; display: grid !important; place-items: center; border: 0; border-radius: 50%; color: #fff; font-family: "Arial Black", Impact, sans-serif; font-size: 11px; font-weight: 900; text-align: center; box-shadow: 0 2px 5px rgba(31, 55, 78, .18); }
.platform-tab-pc .platform-tab-code { background: var(--pc); }
.platform-tab-shack .platform-tab-code { background: var(--shack); }
.platform-tab-copy { min-width: 0; }
.platform-tab-copy strong { font-size: 16px; font-weight: 900; line-height: 1.25; }
.platform-tab-copy small { margin-top: 5px; color: #75828d; font-size: 11px; font-weight: 700; }
.platform-tab-state { min-width: 62px; font-size: 10px; font-weight: 900; text-align: right; white-space: nowrap; }
.platform-tab-state .state-active { display: none; }
.platform-tab-state .state-idle::after { content: "  >"; }
.platform-tabs button.active .state-idle { display: none; }
.platform-tabs button.active .state-active { display: block; }
.platform-tab-pc .platform-tab-state { color: var(--pc); }
.platform-tab-shack .platform-tab-state { color: var(--shack); }
.overview-meta { min-height: 20px; margin-top: 10px; color: #596b7a; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 12px; }
.overview-grid { margin-top: 24px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1.25fr); align-items: stretch; gap: 26px; }
.server-panel, .rank-panel { min-width: 0; display: flex; flex-direction: column; }
.panel-title { min-height: 46px; margin-bottom: 12px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 2px solid #4a90e2; }
.panel-title h3 { margin: 0 0 10px; color: #2c3e50; font-size: 18px; font-weight: 900; }
.panel-title span { margin-bottom: 10px; color: #607386; font-family: Consolas, monospace; font-size: 12px; font-weight: 700; }
.server-list { min-height: 0; flex: 1; display: grid; grid-template-rows: repeat(var(--server-count, 1), minmax(104px, 1fr)); align-content: stretch; gap: 10px; }
.server-row {
  min-width: 0;
  min-height: 104px;
  padding: 10px 14px 10px 10px;
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr) minmax(82px, auto);
  align-items: center;
  gap: 15px;
  border: 1px solid rgba(74, 144, 226, .26);
  border-left: 4px solid #8b938e;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 6px 18px rgba(24, 55, 88, .10);
  transition: transform .2s ease, box-shadow .2s ease;
}
.server-row:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(24, 55, 88, .15); }
.server-row.server-online { border-left-color: var(--online); }
.server-row.server-offline { border-left-color: #ce4037; }
.server-row.server-active { border-color: rgba(53, 173, 98, .54); border-left-color: var(--online); background: #f7fcf9; box-shadow: 0 7px 20px rgba(31, 139, 75, .13); }
.server-row.server-hot { border: 2px solid #f0a21a; border-left-width: 6px; background: linear-gradient(90deg, #fff7df 0%, #fff 45%); box-shadow: 0 8px 24px rgba(218, 139, 16, .24); }
.server-thumb { position: relative; width: 132px; height: 82px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(74, 144, 226, .24); border-radius: 7px; color: #d9e2e9; background: #243444; font-size: 13px; font-weight: 900; box-shadow: 0 3px 10px rgba(24, 55, 88, .16); }
.server-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.server-player-badge { position: absolute; left: 6px; bottom: 6px; max-width: calc(100% - 12px); padding: 4px 7px; overflow: hidden; border: 1px solid rgba(255, 255, 255, .55); border-radius: 4px; color: #fff; background: rgba(20, 132, 67, .94); box-shadow: 0 2px 7px rgba(0, 0, 0, .28); font-size: 10px; font-weight: 900; line-height: 1; text-overflow: ellipsis; white-space: nowrap; }
.server-hot .server-player-badge { color: #271600; background: #ffc342; border-color: #ffe39a; }
.server-copy { min-width: 0; }
.server-copy b, .server-copy span, .server-state strong, .server-state small { display: block; }
.server-copy b { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 15px; line-height: 1.35; }
.server-copy span { margin-top: 8px; overflow: hidden; color: var(--muted); font-size: 13px; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.server-state { min-width: 0; text-align: right; }
.server-state strong { font-family: "Arial Black", Arial, sans-serif; font-size: 18px; }
.server-state small { margin-top: 6px; overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }
.server-state.is-online strong { color: #198545; }
.server-state.is-offline strong { color: #b52f28; }

.rank-table-wrap { min-height: 0; flex: 1; overflow-x: auto; border: 1px solid rgba(74, 144, 226, .28); border-radius: 8px; background: #fff; box-shadow: 0 7px 22px rgba(24, 55, 88, .10); }
.rank-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.rank-table th { height: 46px; padding: 0 12px; color: #fff; background: linear-gradient(135deg, #4a90e2 0%, #3498db 100%); font-size: 13px; font-weight: 900; text-align: left; }
.rank-table th:nth-child(1) { width: 60px; text-align: center; }
.rank-table th:nth-child(2) { width: auto; }
.rank-table th:nth-child(3) { width: 108px; }
.rank-table th:nth-child(4) { width: 82px; text-align: center; }
.rank-table td { height: 61px; padding: 6px 12px; overflow: hidden; border-bottom: 1px solid rgba(74, 144, 226, .18); color: #2c3e50; text-overflow: ellipsis; white-space: nowrap; }
.rank-table td:nth-child(4) { font-weight: 800; text-align: center; }
.rank-table tbody tr:nth-child(odd) { background: rgba(74, 144, 226, .035); }
.rank-table tbody tr:nth-child(1) { background: linear-gradient(90deg, rgba(255, 215, 0, .19), rgba(255, 248, 220, .32)); }
.rank-table tbody tr:nth-child(2) { background: linear-gradient(90deg, rgba(192, 192, 192, .17), rgba(248, 250, 252, .26)); }
.rank-table tbody tr:nth-child(3) { background: linear-gradient(90deg, rgba(205, 127, 50, .15), rgba(255, 247, 237, .24)); }
.rank-place { color: #d4ac0d !important; font-family: "Arial Black", Arial, sans-serif; font-size: 18px; text-align: center; }
.rank-player { min-width: 0; display: flex; align-items: center; gap: 11px; }
.rank-avatar { width: 44px; height: 44px; flex: 0 0 44px; overflow: hidden; display: grid; place-items: center; border: 2px solid #4a90e2; border-radius: 6px; color: #fff; background: #455f76; box-shadow: 0 2px 9px rgba(74, 144, 226, .25); font-weight: 900; }
.rank-avatar img { width: 100%; height: 100%; display: block; object-fit: cover; }
.rank-player > span:last-child { min-width: 0; }
.rank-player b, .rank-player small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.rank-player b { font-size: 14px; line-height: 1.3; }
.rank-player small { margin-top: 4px; color: var(--muted); font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11px; }
.overview-empty { min-height: 76px; padding: 18px; display: grid; place-items: center; color: var(--muted); background: #f5f6f3; font-size: 12px; text-align: center; }

@media (min-width: 981px) {
  .server-list.server-list-sparse .server-row {
    padding: 16px;
    grid-template-columns: 200px minmax(0, 1fr) minmax(82px, auto);
    gap: 16px;
  }
  .server-list.server-list-sparse .server-thumb {
    width: 200px;
    height: min(200px, calc(100% - 28px));
  }
  .server-list.server-list-sparse .server-copy b {
    white-space: normal;
    font-size: 16px;
    line-height: 1.45;
  }
  .server-list.server-list-sparse .server-copy span { font-size: 14px; white-space: normal; }
  .server-list.server-list-sparse .server-state strong { font-size: 22px; }
  .server-list.server-list-sparse .server-state small { font-size: 13px; }
}

.platform-grid {
  padding: 34px 30px 40px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px;
  background: #151a17;
  border-top: 4px solid #29322d;
}
.platform-card { min-width: 0; overflow: hidden; border: 1px solid #46514b; border-radius: 2px; color: #edf2ef; background: #202723; }
.platform-visual { position: relative; height: 230px; overflow: hidden; background: #1f2723; }
.platform-visual::after { content: ""; position: absolute; inset: 0; background: rgba(5, 8, 6, .34); box-shadow: inset 0 -105px 90px rgba(0, 0, 0, .68); }
.platform-visual img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .22s ease; }
.platform-card:hover .platform-visual img { transform: scale(1.025); }
.platform-label { position: absolute; z-index: 1; left: 22px; right: 22px; bottom: 18px; color: #fff; }
.platform-label span { padding: 3px 7px; display: inline-block; color: #111511; background: var(--accent); font-size: 10px; font-weight: 900; }
.platform-label h2 { margin: 7px 0 0; font-family: "Arial Black", "Microsoft YaHei", sans-serif; font-size: 27px; letter-spacing: 0; text-shadow: 2px 3px 0 rgba(0, 0, 0, .5); }
.platform-pc { border-top: 5px solid var(--pc); }
.platform-shack { border-top: 5px solid var(--shack); }
.platform-body { padding: 20px; }
.platform-summary { min-height: 52px; margin-bottom: 16px; }
.platform-summary b, .platform-summary span { display: block; }
.platform-summary b { font-size: 16px; }
.platform-summary span { margin-top: 6px; color: #aeb9b2; font-size: 12px; line-height: 1.6; }
.link-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.link-grid a {
  min-width: 0;
  min-height: 48px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #56625b;
  border-radius: 2px;
  color: #e2e8e4;
  background: #2a332e;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}
.link-grid a:hover, .link-grid a:focus-visible { color: #111511; border-color: var(--accent); background: var(--accent); }
.platform-pc .link-grid .primary-link { color: #fff; border-color: #318bcc; background: var(--pc); }
.platform-shack .link-grid .primary-link { color: #fff; border-color: #d2564d; background: var(--shack); }

.site-footer {
  width: min(1400px, 100%);
  margin: 0 auto;
  padding: 17px 30px 19px;
  display: grid;
  grid-template-columns: repeat(2, auto);
  grid-template-areas:
    "brand icp"
    "copyright credit";
  align-items: center;
  justify-content: center;
  column-gap: 30px;
  row-gap: 5px;
  color: #b8c2ca;
  background: #202a32;
  border-top: 2px solid #4a90e2;
  font-size: 12px;
  line-height: 1.5;
  text-align: center;
}
.site-footer p { margin: 0; }
.site-footer p:first-of-type { grid-area: copyright; }
.site-footer p:last-of-type { grid-area: credit; padding-left: 30px; border-left: 1px solid #52616d; }
.footer-icp { grid-area: icp; padding-left: 30px; color: #b8c2ca; border-left: 1px solid #52616d; transition: color .18s ease; }
.footer-icp:hover, .footer-icp:focus-visible { color: #fff; text-decoration: underline; }
.footer-brand-line { grid-area: brand; display: flex; align-items: center; justify-content: center; gap: 10px; color: #d6dde3; font-size: 13px; }
.footer-brand-line strong { color: #fff; font-size: 14px; }
.footer-brand-line > span:first-of-type, .footer-divider { color: #697681; }
.footer-credit { color: #f39c12; }

@media (min-width: 761px) {
  .topbar {
    position: absolute;
    z-index: 10;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(17, 27, 35, .72);
    border-bottom-color: rgba(113, 174, 224, .48);
    border-bottom-width: 1px;
    box-shadow: 0 8px 24px rgba(5, 10, 14, .20);
    backdrop-filter: blur(8px);
  }
  .portal-head::after { top: 88px; }
}

/* 浅色主题保留 PC 网站的白底与柔和阴影，顶栏和页脚始终使用深色游戏风格。 */
html:not([data-theme-resolved="dark"]) { color-scheme: light; background: #eef2f5; }
html:not([data-theme-resolved="dark"]) body {
  color: #2c3e50;
  background: linear-gradient(180deg, #f4f7fa 0%, #edf2f6 100%) fixed;
}
html:not([data-theme-resolved="dark"]) main { box-shadow: 0 12px 36px rgba(31, 55, 78, .12); }
html:not([data-theme-resolved="dark"]) .platform-grid {
  background: #edf2f6;
  border-top-color: #d7e0e8;
}
html:not([data-theme-resolved="dark"]) .platform-card {
  color: #2c3e50;
  background: #fff;
  border-color: #ccd8e3;
  box-shadow: 0 5px 18px rgba(31, 55, 78, .10);
}
html:not([data-theme-resolved="dark"]) .platform-summary span { color: #6f7d89; }
html:not([data-theme-resolved="dark"]) .link-grid a {
  color: #2f5878;
  background: #f7fbfe;
  border-color: #c3d8e9;
}
html:not([data-theme-resolved="dark"]) .platform-pc .link-grid .primary-link,
html:not([data-theme-resolved="dark"]) .platform-shack .link-grid .primary-link { color: #fff; }
html[data-theme-resolved="dark"] {
  color-scheme: dark;
  background: #0c0f13;
}
html[data-theme-resolved="dark"] body {
  color: #d8dee7;
  background: linear-gradient(180deg, #0c0f13 0%, #10151a 48%, #0c1014 100%) fixed;
}
html[data-theme-resolved="dark"] main { background: #10151a; }
html[data-theme-resolved="dark"] .overview-band {
  color: #d8dee7;
  background: #10151a;
  border-bottom-color: rgba(255, 255, 255, .1);
}
html[data-theme-resolved="dark"] .overview-platform-picker {
  border-color: #303b46;
  background: #151b21;
  box-shadow: none;
}
html[data-theme-resolved="dark"] .platform-picker-title span { color: #8e9aa5; }
html[data-theme-resolved="dark"] .platform-picker-title strong { color: #e3e8ed; }
html[data-theme-resolved="dark"] .platform-tabs {
  border-color: #303b46;
  background: #0c1116;
}
html[data-theme-resolved="dark"] .platform-tabs button {
  color: #d2d9df;
  border-color: #3b4854;
  background: #182027;
  box-shadow: 0 2px 7px rgba(0, 0, 0, .22);
}
html[data-theme-resolved="dark"] .platform-tabs button:hover,
html[data-theme-resolved="dark"] .platform-tabs button:focus-visible {
  color: #eef2f5;
  border-color: #647687;
  background: #202a33;
}
html[data-theme-resolved="dark"] .platform-tabs button.active {
  color: #eef2f5;
  box-shadow: 0 2px 9px rgba(0, 0, 0, .24);
}
html[data-theme-resolved="dark"] .platform-tabs .platform-tab-pc.active {
  border-color: #438fc6;
  background: #172b39;
}
html[data-theme-resolved="dark"] .platform-tabs .platform-tab-shack.active {
  border-color: #c8645c;
  background: #321f20;
}
html[data-theme-resolved="dark"] .platform-tab-copy small,
html[data-theme-resolved="dark"] .platform-tab-state { color: #9ba7b1; }
html[data-theme-resolved="dark"] .platform-tab-pc .platform-tab-state { color: #6cb4e8; }
html[data-theme-resolved="dark"] .platform-tab-shack .platform-tab-state { color: #e48179; }
html[data-theme-resolved="dark"] .overview-meta,
html[data-theme-resolved="dark"] .panel-title span,
html[data-theme-resolved="dark"] .server-copy span,
html[data-theme-resolved="dark"] .server-state small,
html[data-theme-resolved="dark"] .rank-player small { color: #9ca8b5; }
html[data-theme-resolved="dark"] .panel-title h3 { color: #f4f7fa; }
html[data-theme-resolved="dark"] .panel-title { border-bottom-color: #596775; }
html[data-theme-resolved="dark"] .server-row {
  color: #d8dee7;
  background: #14191f;
  border-color: #34404b;
  box-shadow: none;
}
html[data-theme-resolved="dark"] .server-row.server-active {
  background: #14231b;
  border-color: #2d704a;
  box-shadow: 0 7px 20px rgba(22, 105, 56, .18);
}
html[data-theme-resolved="dark"] .server-row.server-hot {
  background: linear-gradient(90deg, #2b2415 0%, #181a1d 48%);
  border-color: #d79622;
  box-shadow: 0 8px 25px rgba(224, 151, 25, .18);
}
html[data-theme-resolved="dark"] .rank-table-wrap {
  background: #14191f;
  border-color: #34404b;
}
html[data-theme-resolved="dark"] .rank-table td {
  color: #d8dee7;
  border-bottom-color: #2c3642;
}
html[data-theme-resolved="dark"] .rank-table tbody tr:nth-child(-n+3) { background: rgba(221, 177, 91, .10); }
html[data-theme-resolved="dark"] .overview-empty {
  color: #9ca8b5;
  background: #14191f;
}

@media (max-width: 980px) {
  .portal-head-layout { grid-template-columns: minmax(0, 1fr) 350px; }
  .portal-head-inner { padding-left: 34px; padding-right: 28px; }
  .battle-hud { margin-right: 28px; padding-left: 18px; }
  .hud-reticle { opacity: .42; }
  .overview-grid { grid-template-columns: 1fr; gap: 26px; }
  .server-list, .rank-table-wrap { min-height: 0; }
  .server-list { flex: none; grid-template-rows: none; grid-auto-rows: minmax(104px, auto); }
  .rank-table-wrap { flex: none; }
  .link-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 900px) {
  .portal-head-layout { display: block; }
  .portal-head-inner { padding-left: 34px; padding-right: 34px; }
  .battle-hud { display: none; }
}

@media (max-width: 760px) {
  .topbar { padding: 0 18px; }
  .topbar-inner { min-height: 68px; gap: 14px; }
  .brand-mark { width: 44px; height: 44px; font-size: 24px; box-shadow: 4px 4px 0 #10171c; }
  .brand strong { font-size: 19px; }
  .brand small { margin-top: 5px; font-size: 11px; }
  .brand { min-width: 0; }
  .topbar-platforms { min-width: 0; gap: 13px; }
  .topbar-platform { min-width: 0; padding-left: 8px; border-left-width: 3px; }
  .topbar-platform b { font-size: 13px; }
  .topbar-platform small { margin-top: 4px; font-size: 8px; }
  .portal-head { min-height: 350px; background-position: 22% center; }
  .portal-head::after { display: none; }
  .portal-head-layout { position: static; display: block; }
  .portal-head-inner { padding: 32px 18px; }
  .portal-head-inner > p:not(.eyebrow) { max-width: calc(50% - 18px); }
  .battle-hud {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    width: calc(50% - 18px);
    margin: 0;
    padding: 9px 8px 8px 10px;
    display: block;
    border-left-width: 1px;
    background: rgba(5, 10, 18, .52);
    box-shadow: 8px 10px 20px rgba(0, 0, 0, .22);
  }
  .hud-heading { gap: 5px; font-size: 8px; white-space: nowrap; }
  .hud-heading b { font-size: 9px; }
  .hud-live-dot { width: 6px; height: 6px; box-shadow: 0 0 0 3px rgba(87, 220, 120, .13), 0 0 10px rgba(87, 220, 120, .65); }
  .hud-primary { min-height: 38px; margin-top: 7px; gap: 6px; }
  .hud-primary strong { font-size: 32px; }
  .hud-primary > span { font-size: 9px; }
  .hud-reticle { top: 0; right: 4px; width: 34px; height: 34px; opacity: .45; }
  .hud-reticle::before { top: 16px; left: -6px; width: 44px; }
  .hud-reticle::after { top: -6px; left: 16px; height: 44px; }
  .hud-metrics > div { padding: 6px 3px; }
  .hud-metrics > div:first-child { padding-left: 0; }
  .hud-metrics span { font-size: 8px; }
  .hud-metrics b { margin-top: 3px; font-size: 15px; }
  .hud-metrics small { margin-top: 3px; font-size: 7px; }
  .hud-hot { padding: 7px 2px 0 0; }
  .hud-hot span { font-size: 8px; }
  .hud-hot b { margin-top: 3px; font-size: 9px; }
  .hud-hot small { max-height: 21px; margin-top: 3px; font-size: 8px; line-height: 1.3; white-space: normal; }
  .portal-head h1 { font-size: 34px; }
  .portal-head p { font-size: 14px; }
  .head-actions { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .action { min-width: 0; min-height: 56px; padding: 0 10px; text-align: center; }
  .overview-band { padding: 24px 12px 28px; }
  .overview-head { align-items: center; }
  .overview-head h2 { font-size: 26px; }
  .overview-platform-picker { margin-top: 16px; padding: 12px; grid-template-columns: 1fr; gap: 10px; }
  .platform-picker-title { padding: 0 2px; flex-direction: row; align-items: baseline; justify-content: flex-start; gap: 8px; }
  .platform-picker-title strong { margin-top: 0; font-size: 13px; }
  .platform-tabs { width: 100%; }
  .pavlov-theme-toggle { min-width: 104px; min-height: 42px; padding: 0 12px; }
  .overview-grid { grid-template-columns: 1fr; gap: 24px; }
  .platform-grid { padding: 18px 12px 24px; grid-template-columns: 1fr; gap: 16px; }
  .platform-visual { height: 190px; }
  .link-grid a { min-height: 54px; }
  .site-footer { padding: 24px 18px 26px; display: flex; flex-direction: column; gap: 8px; }
  .footer-icp, .site-footer p:last-of-type { padding-left: 0; border-left: 0; }
}

@media (max-width: 420px) {
  .topbar-platforms { gap: 8px; }
  .topbar-platform small { display: none; }
  .platform-tabs { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
  .platform-tabs button { min-height: 68px; padding: 9px 8px; grid-template-columns: 30px minmax(0, 1fr); gap: 8px; }
  .platform-tab-code { width: 28px; height: 28px; font-size: 9px; }
  .platform-tab-copy strong { font-size: 13px; line-height: 1.3; text-align: left; }
  .platform-tab-copy small { margin-top: 4px; font-size: 9px; }
  .platform-tab-state { position: absolute; top: 7px; right: 8px; min-width: 0; font-size: 8px; }
  .platform-tab-state .state-idle { display: none; }
  .platform-tab-state .state-active { font-size: 0; }
  .platform-tab-state .state-active::after { content: "当前"; font-size: 8px; }
  .portal-head h1 { font-size: 30px; }
  .head-actions, .link-grid { grid-template-columns: 1fr; }
  .server-row { min-height: 92px; padding: 8px; grid-template-columns: 82px minmax(0, 1fr) 62px; gap: 8px; }
  .server-thumb { width: 82px; height: 64px; }
  .server-copy b { font-size: 13px; }
  .server-copy span { margin-top: 5px; font-size: 11px; }
  .server-state strong { font-size: 15px; }
  .server-state small { font-size: 10px; }
  .server-player-badge { left: 4px; right: 4px; bottom: 4px; max-width: none; padding: 4px; font-size: 9px; text-align: center; }
  .rank-table th, .rank-table td { padding-left: 7px; padding-right: 7px; }
  .rank-table th:nth-child(1) { width: 44px; }
  .rank-table th:nth-child(2) { width: auto; }
  .rank-table th:nth-child(3) { width: 72px; }
  .rank-table th:nth-child(4) { width: 58px; }
  .rank-avatar { width: 40px; height: 40px; flex-basis: 40px; }
  .rank-player { gap: 8px; }
  .rank-player b { font-size: 13px; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .platform-visual img { transition: none; }
}
