:root {
  --text-main: #ebf5ff;
  --text-sub: #9eb5cf;
  --line: rgba(146, 186, 232, 0.22);
  --cyan: #6fe7ff;
  --shadow-neon: 0 14px 44px rgba(0, 130, 255, 0.24);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

html,
body {
  margin: 0;
  padding: 0;
  background:
    radial-gradient(circle at 8% 12%, rgba(0, 169, 255, 0.2), transparent 30%),
    radial-gradient(circle at 88% 80%, rgba(104, 201, 37, 0.12), transparent 28%),
    linear-gradient(160deg, #040912, #070f1d 42%, #090d1b);
  color: var(--text-main);
  font-family: "Bahnschrift", "Segoe UI", "Microsoft YaHei", sans-serif;
  line-height: 1.58;
}

a {
  color: var(--cyan);
}

a:focus-visible,
button:focus-visible,
summary:focus-visible {
  outline: 2px solid #8deeff;
  outline-offset: 2px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.page-wrap {
  width: min(1420px, calc(100% - 26px));
  margin: 18px auto 32px;
}

.crumb {
  font-size: 13px;
  color: var(--text-sub);
  margin-bottom: 14px;
}

.crumb a {
  text-decoration: none;
  color: #8edcff;
}

.hero {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  background:
    linear-gradient(135deg, rgba(8, 26, 52, 0.95), rgba(10, 16, 29, 0.9) 64%, rgba(9, 37, 53, 0.82)),
    repeating-linear-gradient(
      90deg,
      rgba(79, 217, 255, 0.08) 0 1px,
      transparent 1px 22px
    );
  border-radius: 16px;
  padding: 26px 26px 22px;
  box-shadow: var(--shadow-neon);
}

.hero::after {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 340px;
  height: 340px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 123, 0, 0.34), transparent 70%);
  filter: blur(2px);
}

.hero-tag {
  display: inline-block;
  padding: 4px 11px;
  border: 1px solid rgba(79, 217, 255, 0.6);
  border-radius: 999px;
  color: #9de8ff;
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero h1 {
  margin: 10px 0 10px;
  font-size: clamp(30px, 5vw, 56px);
  line-height: 1.02;
  letter-spacing: 0.02em;
}

.hero-sub {
  margin: 0 0 1px;
  max-width: 980px;
  color: #d5e9ff;
  font-size: clamp(14px, 2.2vw, 18px);
}

.hero-meta {
  margin-top: 16px;
  display: grid;
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  gap: 10px;
}

.chip {
  border: 1px solid rgba(143, 192, 241, 0.28);
  background: rgba(10, 24, 44, 0.74);
  border-radius: 10px;
  padding: 9px 12px;
}

.chip b {
  display: block;
  font-size: 19px;
  color: #ebf7ff;
}

.chip span {
  color: var(--text-sub);
  font-size: 12px;
}

.launch-panel {
  margin-top: 12px;
  border: 1px solid rgba(146, 186, 232, 0.26);
  border-radius: 12px;
  background: rgba(8, 20, 37, 0.78);
  padding: 10px 12px;
}

.launch-title {
  font-size: 13px;
  color: #b3d9ff;
  margin-bottom: 6px;
  font-weight: 700;
}

.launch-line {
  display: flex;
  gap: 6px;
  align-items: flex-start;
  margin-bottom: 4px;
  color: #d8e9fb;
  font-size: 13px;
  line-height: 1.5;
}

.launch-line:last-child {
  margin-bottom: 0;
}

.launch-line b {
  color: #ecf8ff;
  white-space: nowrap;
}

.panel {
  margin-top: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(10, 19, 34, 0.9), rgba(9, 16, 30, 0.88));
  padding: 16px;
}

.panel h2 {
  margin: 0 0 11px;
  color: #dff3ff;
  font-size: 24px;
  line-height: 1.3;
}

.panel h3 {
  margin: 12px 0 8px;
  color: #d0e8ff;
  font-size: 18px;
}

.quick-nav {
  position: fixed;
  top: 126px;
  right: 12px;
  width: 132px;
  margin-top: 0;
  padding: 10px 9px;
  z-index: 28;
  border-color: rgba(126, 183, 243, 0.3);
  background: linear-gradient(180deg, rgba(8, 22, 41, 0.95), rgba(7, 17, 30, 0.93));
  box-shadow: 0 10px 30px rgba(2, 16, 35, 0.58);
}

.quick-nav h2 {
  margin: 0 0 8px;
  font-size: 18px;
  line-height: 1.15;
}

.anchor-list {
  display: flex;
  gap: 7px;
  flex-direction: column;
}

.anchor-link {
  display: block;
  text-decoration: none;
  color: #d8f2ff;
  border: 1px solid rgba(146, 186, 232, 0.4);
  background: linear-gradient(180deg, rgba(9, 37, 66, 0.9), rgba(8, 24, 41, 0.9));
  padding: 7px 8px;
  border-radius: 10px;
  font-size: 12px;
  text-align: center;
  line-height: 1.25;
}

.anchor-link:hover {
  border-color: rgba(111, 231, 255, 0.72);
  color: #f4fbff;
}

.anchor-link.active,
.anchor-link[aria-current="location"] {
  color: #f4fbff;
  border-color: rgba(111, 231, 255, 0.9);
  background: linear-gradient(180deg, rgba(18, 95, 146, 0.95), rgba(11, 51, 84, 0.95));
  box-shadow: 0 8px 16px rgba(0, 112, 214, 0.28);
}

.table-wrap {
  overflow: auto;
  border: 1px solid rgba(146, 186, 232, 0.2);
  border-radius: 12px;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  background: rgba(8, 16, 29, 0.88);
  min-width: 840px;
}

.data-table th,
.data-table td {
  border-bottom: 1px solid rgba(146, 186, 232, 0.17);
  border-right: 1px solid rgba(146, 186, 232, 0.13);
  padding: 9px 10px;
  text-align: left;
  vertical-align: middle;
  color: #dbeaff;
}

.data-table td {
  font-size: 14px;
  line-height: 1.45;
}

.data-table th {
  background: linear-gradient(180deg, rgba(18, 52, 86, 0.94), rgba(13, 33, 54, 0.95));
  color: #edf7ff;
  font-size: 14px;
  position: sticky;
  top: 0;
  z-index: 1;
}

.data-table tr:nth-child(even) td {
  background: rgba(12, 25, 43, 0.62);
}

.data-table tr:hover td {
  background: rgba(23, 50, 78, 0.64);
}

.table-note {
  margin: 8px 0 0;
  color: #9eb6d0;
  font-size: 13px;
}

.fps-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.fps-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.fps-tab {
  border: 1px solid rgba(146, 186, 232, 0.34);
  background: rgba(9, 24, 43, 0.88);
  color: #d4eafc;
  border-radius: 999px;
  padding: 5px 13px;
  font-size: 13px;
  line-height: 1.25;
  cursor: pointer;
}

.fps-tab:hover,
.fps-tab:focus-visible {
  border-color: rgba(111, 231, 255, 0.72);
  color: #f5fcff;
}

.fps-tab.active {
  border-color: rgba(111, 231, 255, 0.86);
  color: #ffffff;
  background: linear-gradient(180deg, rgba(9, 66, 108, 0.92), rgba(8, 41, 72, 0.92));
  box-shadow: 0 6px 18px rgba(0, 122, 225, 0.24);
}

.fps-summary {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 16px;
  color: #a8c0d9;
  font-size: 13px;
}

#fps-gain {
  color: #dff4ff;
  font-size: 14px;
}

.fps-table th:nth-child(n + 2),
.fps-table td.num {
  text-align: center;
  white-space: nowrap;
}

.fps-table .game-cell {
  min-width: 270px;
}

.game-name {
  display: block;
  color: #e9f6ff;
  font-weight: 700;
}

.game-preset {
  display: block;
  color: #9eb6d0;
  font-size: 12px;
  margin-top: 2px;
}

.fps-table td.is-main {
  color: #f2fbff;
  font-weight: 700;
  background: rgba(16, 58, 95, 0.52);
}

.data-table td.is-measured {
  font-weight: 600;
}

.data-table td.is-estimated {
  color: #b5c8dc;
}

.gain-cell {
  font-variant-numeric: tabular-nums;
}

.gain-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  padding: 2px 8px;
  border-radius: 999px;
  border: 1px solid rgba(140, 184, 228, 0.38);
  background: rgba(7, 27, 46, 0.76);
  font-size: 12px;
  line-height: 1.4;
}

.gain-badge.up {
  color: #7ef7c4;
  border-color: rgba(67, 218, 160, 0.48);
  background: rgba(15, 66, 54, 0.34);
}

.gain-badge.down {
  color: #ffb6b6;
  border-color: rgba(255, 122, 122, 0.48);
  background: rgba(94, 19, 19, 0.34);
}

.gain-badge.flat {
  color: #dceaf8;
}

.coverage-status {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  border: 1px solid rgba(140, 184, 228, 0.38);
  padding: 2px 9px;
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.coverage-status.status-high {
  color: #7ef7c4;
  border-color: rgba(67, 218, 160, 0.48);
  background: rgba(15, 66, 54, 0.34);
}

.coverage-status.status-mid {
  color: #ffd58f;
  border-color: rgba(230, 181, 96, 0.48);
  background: rgba(88, 61, 14, 0.34);
}

.coverage-status.status-low {
  color: #d6e8fb;
  border-color: rgba(125, 158, 194, 0.45);
  background: rgba(31, 47, 66, 0.34);
}

.tech-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
}

.public-note-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.tech-card {
  border: 1px solid rgba(146, 186, 232, 0.22);
  border-radius: 12px;
  background: rgba(9, 23, 40, 0.88);
  padding: 10px 12px;
}

.tech-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.tech-card p {
  margin: 0;
  color: #d2e4f8;
}

.tech-card ul {
  margin: 0;
  padding-left: 18px;
}

.tech-card li {
  margin-bottom: 6px;
  color: #d2e4f8;
}

.public-note-card {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.public-note-source {
  font-size: 12px;
  color: var(--text-sub);
}

.public-note-source a {
  color: #8edcff;
  text-decoration: none;
}

.public-note-source a:hover {
  text-decoration: underline;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(260px, 1fr));
  gap: 10px;
}

.video-card {
  border: 1px solid rgba(146, 186, 232, 0.22);
  border-radius: 12px;
  background: rgba(9, 20, 35, 0.88);
  padding: 10px;
}

.video-card h3 {
  margin: 0 0 8px;
  font-size: 16px;
}

.video-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.video-summary {
  margin: 0 0 8px;
  color: #bfd6eb;
  font-size: 13px;
}

.video-open {
  text-decoration: none;
  border: 1px solid rgba(146, 186, 232, 0.45);
  border-radius: 8px;
  padding: 4px 10px;
  font-size: 12px;
  color: #cde9ff;
  background: rgba(21, 28, 44, 0.85);
}

.video-wrap {
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid rgba(146, 186, 232, 0.25);
}

.video-wrap iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.video-status {
  margin: 8px 0 0;
  color: #9fb7cf;
  font-size: 12px;
}

.video-fallback {
  display: none;
  margin: 8px 0 0;
  font-size: 12px;
}

.video-search {
  color: #9fd4ff;
  text-decoration: none;
}

.video-card.is-video-loaded .video-status {
  display: none;
}

.video-card.is-video-loaded .video-fallback {
  display: none;
}

.video-card.is-video-failed .video-fallback {
  display: block;
}

.channel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.channel-card {
  display: block;
  text-decoration: none;
  border: 1px solid rgba(146, 186, 232, 0.3);
  border-radius: 12px;
  padding: 10px 12px;
  background: rgba(8, 28, 49, 0.84);
}

.channel-card b {
  display: block;
  color: #eff8ff;
  font-size: 16px;
}

.channel-card span {
  color: #b5d2ef;
  font-size: 13px;
}

.tips {
  margin: 8px 0 0;
  padding-left: 18px;
}

.tips li {
  margin-bottom: 6px;
  color: #d4e4f4;
}

.faq details {
  border: 1px solid rgba(143, 192, 241, 0.2);
  border-radius: 10px;
  margin-bottom: 8px;
  padding: 8px 10px;
  background: #0b182e;
}

.faq summary {
  cursor: pointer;
  font-weight: 700;
  color: #dff3ff;
}

.faq p {
  margin: 8px 0 2px;
  color: #d4e3f4;
}

.bottom-nav {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.btn {
  display: inline-block;
  text-decoration: none;
  border-radius: 11px;
  border: 1px solid rgba(90, 170, 239, 0.44);
  color: #def4ff;
  padding: 8px 13px;
  background: linear-gradient(180deg, rgba(6, 90, 146, 0.48), rgba(8, 60, 104, 0.45));
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}

.btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(0, 119, 255, 0.24);
}

.btn.orange {
  border-color: rgba(255, 154, 59, 0.5);
  background: linear-gradient(180deg, rgba(255, 154, 59, 0.38), rgba(171, 84, 0, 0.28));
}

.footnote {
  margin-top: 16px;
  color: #92aac4;
  font-size: 12px;
}

.theme-toggle {
  position: fixed;
  top: 72px;
  right: 12px;
  width: 132px;
  height: 42px;
  border-radius: 12px;
  border: 1px solid rgba(146, 186, 232, 0.5);
  background: linear-gradient(180deg, rgba(8, 39, 66, 0.95), rgba(7, 24, 43, 0.95));
  color: #eaf6ff;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(2, 16, 35, 0.5);
  z-index: 29;
}

.theme-toggle:hover {
  border-color: rgba(111, 231, 255, 0.8);
}

.back-top {
  position: fixed;
  right: 18px;
  bottom: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid rgba(146, 186, 232, 0.5);
  color: #e7f5ff;
  background: rgba(6, 43, 75, 0.88);
  box-shadow: 0 8px 18px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.2s ease, transform 0.2s ease;
  transform: translateY(10px);
  z-index: 30;
}

.back-top.show {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

body[data-theme="light"] {
  background:
    radial-gradient(circle at 8% 12%, rgba(120, 184, 255, 0.18), transparent 32%),
    radial-gradient(circle at 88% 80%, rgba(118, 194, 141, 0.14), transparent 28%),
    linear-gradient(160deg, #f2f7ff, #eaf2ff 45%, #eef5ff);
  color: #1d3550;
}

body[data-theme="light"] a {
  color: #0d5fa8;
}

body[data-theme="light"] .crumb {
  color: #5e7690;
}

body[data-theme="light"] .crumb a {
  color: #0d5fa8;
}

body[data-theme="light"] .hero {
  border-color: rgba(84, 131, 184, 0.3);
  background: linear-gradient(135deg, rgba(228, 240, 255, 0.95), rgba(241, 247, 255, 0.96) 64%, rgba(229, 240, 252, 0.95));
  box-shadow: 0 12px 30px rgba(56, 99, 145, 0.16);
}

body[data-theme="light"] .hero-tag {
  color: #0f5e9f;
  border-color: rgba(66, 146, 212, 0.62);
}

body[data-theme="light"] .hero-sub,
body[data-theme="light"] .launch-line {
  color: #33506d;
}

body[data-theme="light"] .chip {
  border-color: rgba(84, 131, 184, 0.3);
  background: rgba(255, 255, 255, 0.84);
}

body[data-theme="light"] .chip b,
body[data-theme="light"] .launch-line b,
body[data-theme="light"] .panel h2,
body[data-theme="light"] .panel h3,
body[data-theme="light"] .faq summary,
body[data-theme="light"] .game-name {
  color: #153a5f;
}

body[data-theme="light"] .chip span,
body[data-theme="light"] .launch-title,
body[data-theme="light"] .game-preset,
body[data-theme="light"] .table-note,
body[data-theme="light"] .footnote,
body[data-theme="light"] .fps-summary,
body[data-theme="light"] .video-summary,
body[data-theme="light"] .video-fallback,
body[data-theme="light"] .video-status {
  color: #5d7690;
}

body[data-theme="light"] .tech-card li,
body[data-theme="light"] .tech-card p {
  color: #2f4f6d;
}

body[data-theme="light"] .public-note-source {
  color: #446789;
}

body[data-theme="light"] .tips li,
body[data-theme="light"] .faq p {
  color: #2f4f6d;
}

body[data-theme="light"] .tips li::marker {
  color: #3d6488;
}

body[data-theme="light"] .tips li b {
  color: #153a5f;
}

body[data-theme="light"] .launch-panel,
body[data-theme="light"] .panel,
body[data-theme="light"] .quick-nav,
body[data-theme="light"] .tech-card,
body[data-theme="light"] .video-card,
body[data-theme="light"] .faq details {
  border-color: rgba(84, 131, 184, 0.28);
  background: rgba(255, 255, 255, 0.9);
}

body[data-theme="light"] .anchor-link {
  color: #1e4f7b;
  border-color: rgba(86, 140, 196, 0.45);
  background: linear-gradient(180deg, rgba(233, 242, 255, 0.96), rgba(221, 234, 249, 0.96));
}

body[data-theme="light"] .anchor-link:hover {
  color: #123e64;
  border-color: rgba(44, 135, 214, 0.65);
}

body[data-theme="light"] .anchor-link.active,
body[data-theme="light"] .anchor-link[aria-current="location"] {
  color: #ffffff;
  border-color: rgba(25, 102, 167, 0.92);
  background: linear-gradient(180deg, rgba(31, 111, 181, 0.96), rgba(22, 85, 146, 0.96));
}

body[data-theme="light"] .data-table {
  background: #ffffff;
}

body[data-theme="light"] .data-table th {
  background: linear-gradient(180deg, #dceeff, #cfe3f8);
  color: #12385e;
}

body[data-theme="light"] .data-table td {
  color: #1f3f60;
  border-bottom-color: rgba(125, 158, 194, 0.26);
  border-right-color: rgba(125, 158, 194, 0.22);
}

body[data-theme="light"] .data-table tr:nth-child(even) td {
  background: #f4f9ff;
}

body[data-theme="light"] .data-table tr:hover td {
  background: #e8f2ff;
}

body[data-theme="light"] .fps-tab {
  background: #eef5ff;
  color: #1b4e79;
  border-color: rgba(86, 140, 196, 0.45);
}

body[data-theme="light"] .fps-tab.active {
  color: #ffffff;
  border-color: rgba(25, 102, 167, 0.9);
  background: linear-gradient(180deg, rgba(31, 111, 181, 0.96), rgba(22, 85, 146, 0.96));
  box-shadow: 0 6px 16px rgba(33, 94, 154, 0.28);
}

body[data-theme="light"] #fps-gain {
  color: #1e3f5f;
}

body[data-theme="light"] .gain-badge {
  background: #edf3fb;
  color: #1f3f60;
  border-color: rgba(113, 150, 187, 0.4);
}

body[data-theme="light"] .data-table td.is-estimated {
  color: #4a6a8a;
}

body[data-theme="light"] .gain-badge.up {
  color: #0c6b43;
  border-color: rgba(41, 173, 117, 0.5);
  background: rgba(40, 172, 116, 0.13);
}

body[data-theme="light"] .gain-badge.down {
  color: #b13a3a;
  border-color: rgba(196, 78, 78, 0.46);
  background: rgba(190, 56, 56, 0.12);
}

body[data-theme="light"] .coverage-status.status-high {
  color: #0c6b43;
  border-color: rgba(41, 173, 117, 0.5);
  background: rgba(40, 172, 116, 0.13);
}

body[data-theme="light"] .coverage-status.status-mid {
  color: #7d4e06;
  border-color: rgba(197, 146, 60, 0.5);
  background: rgba(224, 174, 67, 0.18);
}

body[data-theme="light"] .coverage-status.status-low {
  color: #335a80;
  border-color: rgba(113, 150, 187, 0.42);
  background: rgba(153, 184, 217, 0.2);
}

body[data-theme="light"] .btn {
  color: #11406a;
  border-color: rgba(82, 142, 202, 0.5);
  background: linear-gradient(180deg, rgba(201, 225, 249, 0.88), rgba(181, 209, 239, 0.88));
}

body[data-theme="light"] .btn.orange {
  color: #7a3f00;
  border-color: rgba(235, 143, 56, 0.52);
  background: linear-gradient(180deg, rgba(255, 211, 171, 0.85), rgba(255, 192, 132, 0.82));
}

body[data-theme="light"] .video-open {
  color: #1b4e79;
  border-color: rgba(96, 147, 201, 0.5);
  background: rgba(235, 244, 255, 0.9);
}

body[data-theme="light"] .video-search {
  color: #1d5c92;
}

body[data-theme="light"] .back-top,
body[data-theme="light"] .theme-toggle {
  color: #18486f;
  border-color: rgba(90, 148, 207, 0.55);
  background: linear-gradient(180deg, rgba(229, 242, 255, 0.95), rgba(214, 232, 252, 0.95));
  box-shadow: 0 8px 20px rgba(70, 121, 177, 0.26);
}

body[data-theme="light"] a:focus-visible,
body[data-theme="light"] button:focus-visible,
body[data-theme="light"] summary:focus-visible {
  outline-color: #1b4f85;
}

body[data-theme="contrast"] {
  background:
    radial-gradient(circle at 12% 10%, rgba(12, 117, 162, 0.2), transparent 30%),
    radial-gradient(circle at 88% 82%, rgba(0, 181, 214, 0.12), transparent 28%),
    linear-gradient(160deg, #02040a, #040913 46%, #02050c);
  color: #edf8ff;
}

body[data-theme="contrast"] a {
  color: #6cecff;
}

body[data-theme="contrast"] .hero,
body[data-theme="contrast"] .panel,
body[data-theme="contrast"] .quick-nav,
body[data-theme="contrast"] .chip,
body[data-theme="contrast"] .launch-panel,
body[data-theme="contrast"] .tech-card,
body[data-theme="contrast"] .video-card,
body[data-theme="contrast"] .faq details,
body[data-theme="contrast"] .data-table {
  border-color: rgba(72, 128, 179, 0.34);
  background: rgba(4, 11, 20, 0.94);
}

body[data-theme="contrast"] .data-table th {
  background: linear-gradient(180deg, rgba(13, 46, 77, 0.98), rgba(10, 31, 52, 0.98));
  color: #f4fbff;
}

body[data-theme="contrast"] .data-table td {
  color: #e5f5ff;
}

body[data-theme="contrast"] .public-note-source {
  color: #8db7d9;
}

body[data-theme="contrast"] .data-table tr:nth-child(even) td {
  background: rgba(8, 18, 32, 0.95);
}

body[data-theme="contrast"] .data-table tr:hover td {
  background: rgba(16, 41, 67, 0.95);
}

body[data-theme="contrast"] .anchor-link {
  border-color: rgba(89, 150, 206, 0.45);
  background: linear-gradient(180deg, rgba(7, 27, 47, 0.96), rgba(6, 19, 35, 0.96));
}

body[data-theme="contrast"] .anchor-link.active,
body[data-theme="contrast"] .anchor-link[aria-current="location"] {
  border-color: rgba(92, 236, 255, 0.95);
  background: linear-gradient(180deg, rgba(17, 91, 128, 0.96), rgba(10, 56, 86, 0.96));
}

body[data-theme="contrast"] .fps-tab {
  border-color: rgba(89, 150, 206, 0.45);
  background: rgba(8, 24, 42, 0.95);
}

body[data-theme="contrast"] .fps-tab.active {
  border-color: rgba(96, 239, 255, 0.9);
  background: linear-gradient(180deg, rgba(20, 112, 159, 0.95), rgba(11, 66, 102, 0.95));
}

body[data-theme="contrast"] .back-top,
body[data-theme="contrast"] .theme-toggle {
  border-color: rgba(96, 239, 255, 0.55);
  background: linear-gradient(180deg, rgba(8, 33, 56, 0.95), rgba(4, 19, 33, 0.95));
}

@media (max-width: 1080px) {
  .tech-grid,
  .video-grid,
  .channel-grid {
    grid-template-columns: 1fr;
  }

  .theme-toggle {
    top: 14px;
    right: 12px;
  }

  .quick-nav {
    position: static;
    top: auto;
    right: auto;
    width: auto;
    margin-top: 14px;
    padding: 16px;
    z-index: auto;
  }

  .quick-nav h2 {
    margin-bottom: 11px;
    font-size: 24px;
    line-height: 1.3;
  }

  .anchor-list {
    gap: 8px;
    flex-direction: row;
    flex-wrap: wrap;
  }

  .anchor-link {
    border-radius: 999px;
    padding: 7px 11px;
    font-size: 13px;
    text-align: left;
  }
}

@media (max-width: 980px) {
  .panel h2 {
    font-size: 21px;
  }

  .hero-meta {
    grid-template-columns: repeat(2, minmax(130px, 1fr));
  }

  .fps-summary {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .page-wrap {
    width: calc(100% - 16px);
  }

  .hero {
    padding: 18px 14px 14px;
  }

  .hero h1 {
    margin-bottom: 8px;
  }

  .panel {
    padding: 12px;
  }

  .anchor-link {
    font-size: 12px;
    padding: 6px 9px;
  }

  .hero-meta {
    grid-template-columns: 1fr;
  }

  .data-table {
    min-width: 720px;
  }

  .theme-toggle {
    top: auto;
    right: 72px;
    bottom: 20px;
    width: auto;
    min-width: 108px;
    padding: 0 10px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
