: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; }
.platform-overviews { margin-top: 22px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; gap: 22px; }
.platform-overview { min-width: 0; overflow: hidden; border: 1px solid #c3cdd5; border-top-width: 5px; border-radius: 8px; background: #f8fafb; box-shadow: 0 8px 24px rgba(31, 55, 78, .11); }
.platform-overview-pc { border-top-color: var(--pc); }
.platform-overview-shack { border-top-color: var(--shack); }
.platform-overview-head { min-height: 82px; padding: 14px 16px; display: grid; grid-template-columns: 46px minmax(0, 1fr) auto; align-items: center; gap: 12px; color: #fff; }
.platform-overview-pc .platform-overview-head { background: #176fae; }
.platform-overview-shack .platform-overview-head { background: #aa3b33; }
.platform-overview-code { width: 42px; height: 42px; display: grid; place-items: center; border: 2px solid rgba(255, 255, 255, .8); border-radius: 50%; font-family: "Arial Black", Impact, sans-serif; font-size: 12px; font-weight: 900; }
.platform-overview-head div { min-width: 0; }
.platform-overview-head p, .platform-overview-head h3 { margin: 0; letter-spacing: 0; }
.platform-overview-head p { color: rgba(255, 255, 255, .76); font-family: Consolas, monospace; font-size: 10px; font-weight: 900; }
.platform-overview-head h3 { margin-top: 3px; font-size: 21px; font-weight: 900; }
.platform-title-mobile { display: none; }
.panel-title-mobile, .mobile-player-heading { display: none; }
.platform-overview-head a { min-height: 34px; padding: 0 11px; display: inline-flex; align-items: center; gap: 5px; border: 1px solid rgba(255, 255, 255, .48); border-radius: 4px; color: #fff; background: rgba(0, 0, 0, .12); font-size: 11px; font-weight: 900; white-space: nowrap; }
.platform-overview-head a:hover, .platform-overview-head a:focus-visible { background: rgba(0, 0, 0, .24); }
.overview-meta { min-height: 38px; padding: 10px 16px; color: #596b7a; background: #eef2f5; font-family: Consolas, "Microsoft YaHei", monospace; font-size: 11px; }
.platform-overview-body { min-width: 0; }
.platform-data-block { min-width: 0; padding: 0 16px 16px; }
.platform-data-block + .platform-data-block { padding-top: 2px; }
.panel-title { min-height: 46px; margin-bottom: 8px; display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; border-bottom: 2px solid #8c9aa6; }
.platform-overview-pc .panel-title { border-bottom-color: var(--pc); }
.platform-overview-shack .panel-title { border-bottom-color: var(--shack); }
.panel-title h4 { margin: 0 0 8px; color: #2c3e50; font-size: 15px; font-weight: 900; }
.panel-title > span { margin-bottom: 8px; color: #607386; font-family: Consolas, monospace; font-size: 11px; font-weight: 700; }
.server-list { min-height: 0; display: grid; gap: 6px; }
.server-row {
  position: relative;
  min-width: 0;
  min-height: 86px;
  padding: 8px 12px 8px 8px;
  display: grid;
  grid-template-columns: 108px 10px minmax(0, 1fr) minmax(70px, auto);
  align-items: center;
  gap: 9px;
  border: 1px solid #d5dde3;
  border-radius: 5px;
  background: #fff;
  box-shadow: 0 2px 7px rgba(24, 55, 88, .06);
}
.server-row.server-active {
  border: 2px solid #27a857;
  background: #effaf3;
  box-shadow: 0 0 0 1px rgba(39, 168, 87, .12), 0 5px 15px rgba(22, 117, 59, .14);
}
.server-thumb { width: 108px; height: 68px; overflow: hidden; display: grid; place-items: center; border: 1px solid rgba(74, 144, 226, .24); border-radius: 4px; color: #d9e2e9; background: #243444; font-size: 10px; font-weight: 900; }
.server-thumb img { width: 100%; height: 100%; display: block; object-fit: cover; }
.server-active .server-thumb { border-color: #35ad62; box-shadow: 0 0 0 2px rgba(53, 173, 98, .14); }
.server-status-dot { width: 9px; height: 9px; display: block; border-radius: 50%; background: #c64038; box-shadow: 0 0 0 3px rgba(198, 64, 56, .10); }
.server-online .server-status-dot { background: #71899a; box-shadow: 0 0 0 3px rgba(113, 137, 154, .12); }
.server-active .server-status-dot {
  background: #22c55e;
  box-shadow: 0 0 0 4px rgba(34, 197, 94, .18), 0 0 12px rgba(34, 197, 94, .72);
  animation: server-live-pulse 2s ease-in-out infinite;
}
.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: 13px; line-height: 1.3; }
.server-copy span { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 11px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.server-state { min-width: 0; display: grid; justify-items: end; text-align: right; }
.server-state strong { font-family: "Arial Black", Arial, sans-serif; font-size: 15px; }
.server-state small { margin-top: 4px; overflow: hidden; color: var(--muted); font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.server-state.is-online strong { color: #526b7b; }
.server-state.is-offline strong { color: #b52f28; }
.server-active .server-state strong { color: #087b34; font-size: 17px; }
.server-live-label {
  width: max-content;
  max-width: 100%;
  margin-bottom: 5px;
  padding: 3px 6px;
  border-radius: 3px;
  color: #fff;
  background: #168b43;
  box-shadow: 0 2px 6px rgba(17, 112, 52, .22);
  font-size: 9px;
  font-weight: 900;
  line-height: 1.2;
  white-space: nowrap;
}

@keyframes server-live-pulse {
  50% { box-shadow: 0 0 0 5px rgba(34, 197, 94, .12), 0 0 15px rgba(34, 197, 94, .86); }
}

@keyframes server-hot-pulse {
  50% { box-shadow: 0 0 0 5px rgba(245, 166, 35, .14), 0 0 17px rgba(245, 166, 35, .92); }
}

.rank-table-wrap { min-height: 0; overflow: hidden; border: 1px solid #d2dbe2; border-radius: 5px; background: #fff; box-shadow: 0 3px 10px rgba(24, 55, 88, .07); }
.rank-table { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 13px; }
.rank-table th { height: 38px; padding: 0 12px; color: #fff; background: #176fae; font-size: 12px; font-weight: 900; text-align: left; }
.platform-overview-shack .rank-table th { background: #aa3b33; }
.rank-table th:nth-child(1) { width: 58px; text-align: center; }
.rank-table th:nth-child(2) { width: auto; }
.rank-table td { height: 54px; padding: 5px 12px; overflow: hidden; border-bottom: 1px solid rgba(74, 144, 226, .15); color: #2c3e50; text-overflow: ellipsis; white-space: nowrap; }
.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 b { min-width: 0; display: block; overflow: hidden; font-size: 14px; line-height: 1.3; text-overflow: ellipsis; white-space: nowrap; }
.overview-empty { min-height: 76px; padding: 18px; display: grid; place-items: center; color: var(--muted); background: #f5f6f3; font-size: 12px; text-align: center; }

.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"] .platform-overview {
  border-color: #34404b;
  border-top-color: var(--pc);
  background: #11171c;
  box-shadow: none;
}
html[data-theme-resolved="dark"] .platform-overview-shack { border-top-color: var(--shack); }
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 { color: #9ca8b5; }
html[data-theme-resolved="dark"] .overview-meta { background: #1a2229; }
html[data-theme-resolved="dark"] .panel-title h4 { color: #f4f7fa; }
html[data-theme-resolved="dark"] .panel-title { border-bottom-color: #596775; }
html[data-theme-resolved="dark"] .platform-overview-pc .panel-title { border-bottom-color: #438fc6; }
html[data-theme-resolved="dark"] .platform-overview-shack .panel-title { border-bottom-color: #c8645c; }
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: #10291b;
  border-color: #36c76d;
  box-shadow: 0 0 0 1px rgba(54, 199, 109, .18), 0 7px 20px rgba(22, 105, 56, .26);
}
html[data-theme-resolved="dark"] .server-active .server-thumb { border-color: #45d57d; }
html[data-theme-resolved="dark"] .server-state.is-online strong { color: #9badb9; }
html[data-theme-resolved="dark"] .server-active .server-state strong { color: #5ee991; }
html[data-theme-resolved="dark"] .server-live-label { color: #07150c; background: #5ee991; }
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 (min-width: 981px) {
  .server-list {
    min-height: calc(var(--shared-server-rows, 1) * 92px - 6px);
    grid-auto-rows: 86px;
    align-content: start;
  }
  .server-row--featured-top {
    grid-row: span 2;
    min-height: 0;
    padding: 14px 16px 14px 12px;
    grid-template-columns: 168px 12px minmax(0, 1fr) minmax(88px, auto);
    gap: 14px;
  }
  .server-row.server-active.server-row--featured-top {
    border-color: #e49a1c;
    border-left-width: 5px;
    background: linear-gradient(90deg, #fff4ce 0%, #fffaf0 42%, #fff 100%);
    box-shadow: 0 0 0 1px rgba(228, 154, 28, .16), 0 12px 28px rgba(190, 119, 12, .22);
  }
  .server-row--featured-top .server-thumb {
    width: 168px;
    height: 100%;
    border-color: #e49a1c;
    box-shadow: 0 0 0 2px rgba(228, 154, 28, .13), 0 6px 16px rgba(75, 48, 10, .18);
  }
  .server-row--featured-top .server-copy b {
    overflow: visible;
    white-space: normal;
    font-size: 16px;
    line-height: 1.4;
  }
  .server-row--featured-top .server-copy span { font-size: 13px; white-space: normal; }
  .server-row--featured-top .server-state strong { color: #9a5a00; font-size: 23px; }
  .server-row--featured-top .server-state small { font-size: 12px; }
  .server-row--featured-top .server-live-label { background: #d88913; }
  .server-row--featured-top .server-status-dot {
    background: #f5a623;
    box-shadow: 0 0 0 4px rgba(245, 166, 35, .20), 0 0 14px rgba(245, 166, 35, .78);
    animation-name: server-hot-pulse;
  }
  html[data-theme-resolved="dark"] .server-row.server-active.server-row--featured-top {
    border-color: #f0a21a;
    background: linear-gradient(90deg, #33270f 0%, #201d16 48%, #14191f 100%);
    box-shadow: 0 0 0 1px rgba(240, 162, 26, .20), 0 12px 30px rgba(0, 0, 0, .34);
  }
  html[data-theme-resolved="dark"] .server-row--featured-top .server-thumb { border-color: #f0a21a; }
  html[data-theme-resolved="dark"] .server-row--featured-top .server-state strong { color: #ffc45a; }
  html[data-theme-resolved="dark"] .server-row--featured-top .server-live-label { color: #251600; background: #ffc45a; }
}

@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; }
  .platform-overviews { grid-template-columns: 1fr; gap: 22px; }
  .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; }
  .pavlov-theme-toggle { min-width: 104px; min-height: 42px; padding: 0 12px; }
  .platform-overviews {
    margin-top: 16px;
    overflow: hidden;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "pc-head pc-head"
      "pc-server pc-server"
      "shack-head shack-head"
      "shack-server shack-server"
      "player-head player-head"
      "pc-rank shack-rank";
    align-items: stretch;
    column-gap: 6px;
    row-gap: 0;
    border: 1px solid #c3cdd5;
    border-radius: 5px;
    background: #fff;
    box-shadow: 0 5px 18px rgba(31, 55, 78, .10);
  }
  .platform-overview, .platform-overview-body { display: contents; }
  .platform-overview-pc .platform-overview-head { grid-area: pc-head; }
  .platform-overview-pc .server-panel { grid-area: pc-server; }
  .platform-overview-pc .rank-panel { grid-area: pc-rank; }
  .platform-overview-shack .platform-overview-head { grid-area: shack-head; }
  .platform-overview-shack .server-panel { grid-area: shack-server; }
  .platform-overview-shack .rank-panel { grid-area: shack-rank; }
  .platform-overview-head { min-height: 56px; padding: 8px 10px; grid-template-columns: 32px minmax(0, 1fr) 32px; gap: 8px; }
  .platform-overview-code { width: 30px; height: 30px; border-width: 1px; font-size: 9px; }
  .platform-overview-head p { font-size: 8px; white-space: nowrap; }
  .platform-overview-head h3 { margin-top: 2px; font-size: 16px; white-space: nowrap; }
  .platform-title-desktop { display: none; }
  .platform-title-mobile { display: inline; }
  .platform-overview-head a { width: 32px; min-height: 32px; padding: 0; justify-content: center; font-size: 0; }
  .platform-overview-head a .platform-entry-label { display: none; }
  .platform-overview-head a span[aria-hidden="true"] { font-size: 17px; }
  .overview-meta { display: none; }
  .server-panel { padding: 0 8px 8px; background: #fff; }
  .rank-panel { padding: 0 3px 8px; background: #fff; }
  .platform-overview-pc .rank-panel { padding-left: 8px; }
  .platform-overview-shack .rank-panel { padding-right: 8px; }
  .mobile-player-heading {
    grid-area: player-head;
    min-height: 42px;
    padding: 9px 10px 7px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 8px;
    border-top: 1px solid #c8d1d8;
    border-bottom: 2px solid #7b8a96;
    color: #243746;
    background: #eef2f5;
  }
  .mobile-player-heading h3 { margin: 0; font-size: 15px; }
  .mobile-player-heading span { color: #657887; font-family: Consolas, monospace; font-size: 8px; }
  .panel-title { min-height: 34px; margin-bottom: 5px; gap: 4px; }
  .panel-title h4 { margin-bottom: 5px; font-size: 13px; white-space: nowrap; }
  .panel-title-desktop { display: none; }
  .panel-title-mobile { display: inline; }
  .panel-title > span { margin-bottom: 5px; overflow: hidden; font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
  .server-list { gap: 4px; }
  .server-panel .server-list { min-height: 0; grid-template-columns: repeat(2, minmax(0, 1fr)); align-content: start; }
  .server-row { min-height: 58px; padding: 5px 6px; grid-template-columns: 7px minmax(0, 1fr); grid-template-areas: "status copy" "status state"; align-items: start; gap: 3px 5px; box-shadow: none; }
  .server-thumb { display: none; }
  .server-status-dot { grid-area: status; width: 7px; height: 7px; margin-top: 4px; }
  .server-copy { grid-area: copy; }
  .server-copy b { font-size: 11px; }
  .server-copy span { margin-top: 2px; font-size: 8px; }
  .server-state { grid-area: state; display: flex; align-items: center; justify-content: flex-start; gap: 4px; text-align: left; }
  .server-state strong { font-size: 11px; }
  .server-active .server-state strong { font-size: 12px; }
  .server-state small { margin-top: 0; font-size: 8px; }
  .server-live-label { flex: 0 0 auto; margin-bottom: 0; padding: 2px 4px; font-size: 8px; }
  .rank-table-wrap { border-radius: 3px; box-shadow: none; }
  .rank-table th { height: 32px; padding: 0 5px; font-size: 10px; }
  .rank-table th:nth-child(1) { width: 34px; }
  .rank-table td { height: 44px; padding: 3px 5px; }
  .rank-place { font-size: 14px; }
  .rank-player { gap: 6px; }
  .rank-avatar { width: 32px; height: 32px; flex-basis: 32px; border-width: 1px; border-radius: 4px; }
  .rank-player b { font-size: 11px; }
  .overview-empty { min-height: 58px; padding: 8px; }
  html[data-theme-resolved="dark"] .platform-overviews { border-color: #34404b; background: #11171c; box-shadow: none; }
  html[data-theme-resolved="dark"] .server-panel,
  html[data-theme-resolved="dark"] .rank-panel { background: #11171c; }
  html[data-theme-resolved="dark"] .mobile-player-heading { color: #f4f7fa; border-color: #485664; background: #1a2229; }
  html[data-theme-resolved="dark"] .mobile-player-heading span { color: #9ca8b5; }
  .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; }
  .portal-head h1 { font-size: 30px; }
  .head-actions, .link-grid { grid-template-columns: 1fr; }
  .platform-overview-head { grid-template-columns: 34px minmax(0, 1fr) 32px; gap: 8px; }
  .platform-overview-code { width: 32px; height: 32px; font-size: 10px; }
  .platform-overview-head h3 { font-size: 17px; }
  .platform-overview-head p { font-size: 9px; }
  .platform-overview-head a { width: 32px; min-height: 32px; padding: 0; font-size: 0; }
}

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