:root {
  color-scheme: dark;
  --bg: #05070f;
  --bg-deep: #0d0814;
  --panel: rgba(13, 16, 31, 0.78);
  --panel-solid: #111526;
  --line: rgba(255, 255, 255, 0.14);
  --text: #f7fbff;
  --muted: #b7c4d9;
  --blue: #4fa8ff;
  --blue-soft: #8dccff;
  --pink: #ff4081;
  --green: #00ff87;
  --purple: #9d00ff;
  --gold: #ffd36b;
  --danger: #ff6b6b;
  --shadow: 0 18px 60px rgba(0, 0, 0, 0.38);
  --radius: 8px;
  --max: 1180px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: "Microsoft YaHei", "PingFang SC", "Noto Sans SC", Arial, sans-serif;
  color: var(--text);
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 168, 255, 0.18), transparent 28rem),
    linear-gradient(145deg, #070b16 0%, #0d0814 58%, #070a12 100%);
  line-height: 1.72;
  letter-spacing: 0;
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -5;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(79, 168, 255, 0.1), transparent 34%, transparent 66%, rgba(157, 0, 255, 0.14)),
    radial-gradient(circle at 78% 18%, rgba(0, 255, 135, 0.1), transparent 22rem),
    radial-gradient(circle at 18% 72%, rgba(255, 64, 129, 0.1), transparent 20rem);
}

body.light-shift {
  color-scheme: light;
  --bg: #f7fbff;
  --bg-deep: #eaf4ff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-solid: #ffffff;
  --line: rgba(16, 38, 68, 0.14);
  --text: #0c1730;
  --muted: #52627c;
  background:
    radial-gradient(circle at 18% 0%, rgba(79, 168, 255, 0.2), transparent 28rem),
    linear-gradient(150deg, #f8fcff 0%, #e9f5ff 45%, #fdf7fb 100%);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  display: block;
  max-width: 100%;
  height: auto;
}

button {
  font: inherit;
}

.skip-link {
  position: fixed;
  left: 12px;
  top: -80px;
  z-index: 999;
  padding: 10px 14px;
  color: #05101f;
  background: #ffffff;
  border-radius: 6px;
  transition: top 0.2s ease;
}

.skip-link:focus {
  top: 12px;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.78);
  backdrop-filter: blur(16px);
}

.light-shift .site-header {
  background: rgba(255, 255, 255, 0.82);
}

.nav-shell {
  width: min(var(--max), calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 18px;
  align-items: center;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  font-weight: 800;
  color: var(--text);
  white-space: nowrap;
}

.brand-mark {
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 8px;
  background: url("../img/favicon.ico") center / contain no-repeat;
  box-shadow: 0 8px 22px rgba(79, 168, 255, 0.28);
}

.nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 4px;
}

.nav-links a {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 10px 11px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.2;
  transition: color 0.18s ease, background 0.18s ease;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
  background: rgba(79, 168, 255, 0.16);
}

.nav-links small {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 5px;
  border-radius: 999px;
  background: rgba(79, 168, 255, 0.13);
  color: var(--blue-soft);
  font-size: 11px;
  line-height: 1;
  white-space: nowrap;
}

.light-shift .nav-links small {
  background: rgba(79, 168, 255, 0.16);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-toggle,
.mode-toggle,
.download-btn,
.ghost-btn,
.back-link {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--text);
  background: rgba(255, 255, 255, 0.06);
  cursor: pointer;
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.mode-toggle,
.menu-toggle {
  width: 42px;
}

.mode-toggle::before {
  content: "";
  display: block;
  width: 16px;
  height: 16px;
  margin: 0 auto;
  border: 2px solid currentColor;
  border-radius: 50%;
  box-shadow: 9px -5px 0 -5px var(--pink);
}

.menu-toggle {
  display: none;
  position: relative;
}

.menu-toggle::before,
.menu-toggle::after,
.menu-toggle span {
  content: "";
  position: absolute;
  left: 11px;
  right: 11px;
  height: 2px;
  background: currentColor;
}

.menu-toggle::before {
  top: 13px;
}

.menu-toggle span {
  top: 20px;
}

.menu-toggle::after {
  top: 27px;
}

.download-btn {
  min-width: 104px;
  padding: 10px 18px;
  border-color: rgba(255, 64, 129, 0.5);
  color: #ffffff;
  background: linear-gradient(135deg, var(--pink), #d90eff 54%, var(--blue));
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.16) inset, 0 10px 28px rgba(255, 64, 129, 0.28), 0 0 34px rgba(79, 168, 255, 0.2);
  font-weight: 800;
}

.ghost-btn,
.back-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  padding: 10px 16px;
  color: var(--text);
}

.download-btn:hover,
.ghost-btn:hover,
.back-link:hover,
.mode-toggle:hover,
.menu-toggle:hover {
  transform: translateY(-2px);
  border-color: rgba(79, 168, 255, 0.65);
}

.status-strip {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  height: 8px;
  margin-top: -10px;
  color: var(--muted);
  font-size: 11px;
}

.status-track {
  height: 5px;
  overflow: hidden;
  border-radius: 5px;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.14), rgba(157, 0, 255, 0.18));
  box-shadow: 0 0 18px rgba(79, 168, 255, 0.12) inset;
}

.status-fill {
  width: 26%;
  height: 100%;
  background: linear-gradient(90deg, var(--blue), #ffffff 28%, var(--green) 58%, var(--pink), var(--purple));
  box-shadow: 0 0 18px rgba(0, 255, 135, 0.45), 0 0 24px rgba(255, 64, 129, 0.32);
  transition: width 0.4s ease;
}

.container {
  width: min(var(--max), calc(100% - 32px));
  margin: 0 auto;
}

.hero {
  --split: 50%;
  position: relative;
  min-height: calc(92vh - 72px);
  display: flex;
  align-items: center;
  overflow: hidden;
  isolation: isolate;
}

.split-visual,
.split-pane {
  position: absolute;
  inset: 0;
}

.split-visual {
  z-index: -3;
}

.split-pane {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
  will-change: clip-path;
}

.split-light {
  clip-path: polygon(0 0, var(--split) 0, var(--split) 100%, 0 100%);
  background-image:
    linear-gradient(90deg, rgba(79, 168, 255, 0.28), rgba(255, 255, 255, 0.05) 45%, transparent 100%),
    url("../img/hero-dual-form.webp");
  filter: saturate(1.12) contrast(1.03) brightness(1.08);
}

.split-dark {
  clip-path: polygon(var(--split) 0, 100% 0, 100% 100%, var(--split) 100%);
  background-image:
    radial-gradient(circle at 82% 42%, rgba(0, 255, 135, 0.2), transparent 16rem),
    linear-gradient(90deg, transparent, rgba(13, 8, 20, 0.18) 20%, rgba(13, 8, 20, 0.82) 100%),
    url("../img/hero-dual-form.webp");
  filter: saturate(1.28) contrast(1.18) brightness(0.72) hue-rotate(10deg);
}

.rift-line {
  position: absolute;
  top: 6%;
  bottom: 4%;
  left: var(--split);
  width: 3px;
  transform: translateX(-50%) rotate(7deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.92), var(--blue), var(--pink), var(--purple), transparent);
  box-shadow: 0 0 24px rgba(79, 168, 255, 0.84), 0 0 54px rgba(255, 64, 129, 0.55), 0 0 74px rgba(0, 255, 135, 0.22);
}

.rift-line::before,
.rift-line::after {
  content: "";
  position: absolute;
  left: 50%;
  width: 78px;
  height: 220px;
  border: 1px solid rgba(0, 255, 135, 0.28);
  border-left: 0;
  border-bottom: 0;
  border-radius: 50%;
  filter: blur(0.2px);
}

.rift-line::before {
  top: 18%;
  transform: translateX(-12px) rotate(19deg);
}

.rift-line::after {
  bottom: 16%;
  transform: translateX(-66px) rotate(198deg);
  border-color: rgba(255, 64, 129, 0.3);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(5, 7, 15, 0.9) 0%, rgba(5, 7, 15, 0.48) 36%, rgba(13, 8, 20, 0.68) 64%, rgba(13, 8, 20, 0.9) 100%),
    repeating-linear-gradient(100deg, transparent 0 14px, rgba(79, 168, 255, 0.04) 14px 15px, transparent 15px 28px);
}

.light-shift .hero::before {
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.9) 0%, rgba(248, 252, 255, 0.6) 40%, rgba(236, 244, 255, 0.48) 66%, rgba(253, 247, 251, 0.76) 100%),
    repeating-linear-gradient(100deg, transparent 0 14px, rgba(79, 168, 255, 0.08) 14px 15px, transparent 15px 28px);
}

.hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 32%;
  z-index: -1;
  background: linear-gradient(180deg, transparent, rgba(5, 7, 15, 0.88));
}

.light-shift .hero::after {
  background: linear-gradient(180deg, transparent, rgba(247, 251, 255, 0.92));
}

.hero-copy {
  width: min(860px, 100%);
  padding: 96px 0 72px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 18px;
  color: var(--blue-soft);
  font-size: 14px;
  font-weight: 700;
}

.eyebrow::before {
  content: "";
  width: 34px;
  height: 2px;
  background: currentColor;
  box-shadow: 0 0 12px currentColor;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 18px;
  font-size: 76px;
  line-height: 1.02;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

h2 {
  margin-bottom: 18px;
  font-size: 42px;
  line-height: 1.18;
  letter-spacing: 0;
}

h3 {
  margin-bottom: 10px;
  font-size: 20px;
  line-height: 1.35;
}

.hero-subtitle {
  max-width: 680px;
  color: #d9e9ff;
  font-size: 22px;
  line-height: 1.56;
  overflow-wrap: anywhere;
}

.light-shift .hero-subtitle {
  color: #354968;
}

.hero-actions,
.section-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
  margin-top: 28px;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 32px;
  padding: 0;
  list-style: none;
}

.hero-meta li {
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 6px;
  background: rgba(5, 7, 15, 0.42);
  color: #edf6ff;
  font-size: 13px;
}

.band {
  padding: 76px 0;
  border-top: 1px solid var(--line);
  background: rgba(5, 7, 15, 0.22);
}

.band.alt {
  background:
    linear-gradient(180deg, rgba(79, 168, 255, 0.08), transparent),
    rgba(255, 255, 255, 0.02);
}

.light-shift .band {
  background: rgba(255, 255, 255, 0.48);
}

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

.section-head p,
.lead {
  color: var(--muted);
  font-size: 17px;
}

.summary-box {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 24px;
  align-items: start;
}

.homepage-panel,
.gameplay-panel,
.guide-panel {
  position: relative;
  overflow: hidden;
}

.homepage-panel::before,
.gameplay-panel::before,
.guide-panel::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(79, 168, 255, 0.08), transparent 36%, rgba(157, 0, 255, 0.08)),
    repeating-linear-gradient(100deg, transparent 0 28px, rgba(255, 255, 255, 0.025) 28px 29px);
}

.home-section-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(380px, 1.06fr);
  gap: 28px;
  align-items: stretch;
}

.home-section-copy {
  min-height: 100%;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(79, 168, 255, 0.08), rgba(157, 0, 255, 0.08)),
    var(--panel);
  box-shadow: var(--shadow);
}

.home-section-copy h2 {
  margin-bottom: 16px;
}

.home-section-copy p {
  color: var(--muted);
}

.intro-dashboard,
.gameplay-dashboard,
.guide-dashboard {
  align-items: stretch;
}

.intel-board,
.loop-card,
.strategy-board {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(5, 7, 15, 0.7);
  box-shadow: var(--shadow);
}

.light-shift .intel-board,
.light-shift .loop-card,
.light-shift .strategy-board {
  background: rgba(255, 255, 255, 0.82);
}

.intel-board::after,
.loop-card::after,
.strategy-board::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(135deg, rgba(79, 168, 255, 0.18), transparent 34%, rgba(255, 64, 129, 0.12));
}

.light-shift .intel-board::after,
.light-shift .loop-card::after,
.light-shift .strategy-board::after {
  background: linear-gradient(135deg, rgba(79, 168, 255, 0.16), transparent 38%, rgba(255, 64, 129, 0.1));
}

.intel-visual {
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070f;
}

.intel-visual img,
.loop-card img,
.strategy-board img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.intel-facts {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  padding: 14px;
}

.loop-card {
  aspect-ratio: 16 / 9;
  display: flex;
  min-height: 348px;
}

.loop-card img {
  min-height: 100%;
  filter: saturate(1.1) brightness(0.88);
  object-position: center;
  transform: scale(1.18);
}

.loop-note {
  position: absolute;
  left: 18px;
  right: 18px;
  bottom: 18px;
  z-index: 2;
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  background: rgba(5, 7, 15, 0.72);
  backdrop-filter: blur(12px);
}

.loop-note strong,
.loop-note span {
  display: block;
}

.loop-note strong {
  color: #ffffff;
  font-size: 20px;
}

.loop-note span {
  color: var(--blue-soft);
}

.play-loop {
  position: relative;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.play-loop::before {
  content: "";
  position: absolute;
  left: 5%;
  right: 5%;
  top: 25px;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--pink), var(--purple));
  opacity: 0.58;
}

.play-loop li {
  position: relative;
  z-index: 1;
  min-height: 178px;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.play-loop span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 28px;
  margin-bottom: 18px;
  border-radius: 6px;
  color: #06101f;
  background: linear-gradient(135deg, var(--blue), var(--green));
  font-weight: 900;
  font-size: 13px;
}

.play-loop strong {
  display: block;
  margin-bottom: 8px;
  color: var(--text);
}

.play-loop p {
  margin-bottom: 0;
  color: var(--muted);
  font-size: 14px;
}

.guide-action-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.guide-action-grid a {
  min-height: 118px;
  padding: 16px;
  border: 1px solid rgba(79, 168, 255, 0.24);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.045);
  transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.guide-action-grid a:hover {
  transform: translateY(-2px);
  border-color: rgba(0, 255, 135, 0.5);
  background: rgba(0, 255, 135, 0.08);
}

.guide-action-grid strong,
.guide-action-grid span {
  display: block;
}

.guide-action-grid strong {
  margin-bottom: 8px;
  color: var(--blue-soft);
}

.guide-action-grid span {
  color: var(--muted);
  font-size: 14px;
}

.strategy-board {
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 0;
}

.strategy-main,
.strategy-thumbs figure {
  position: relative;
  margin: 0;
  overflow: hidden;
}

.strategy-main {
  min-height: 330px;
}

.strategy-main figcaption,
.strategy-thumbs figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #ffffff;
  background: rgba(5, 7, 15, 0.68);
  font-size: 13px;
}

.strategy-thumbs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px;
  border-top: 1px solid var(--line);
}

.strategy-thumbs figure {
  aspect-ratio: 16 / 9;
  background: #05070f;
}

.summary-copy,
.info-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.summary-copy {
  padding: 28px;
}

.summary-copy p:last-child,
.info-panel p:last-child,
.card p:last-child {
  margin-bottom: 0;
}

.info-panel {
  padding: 22px;
}

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

.fact-item {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.05);
}

.light-shift .fact-item {
  border-color: rgba(16, 38, 68, 0.12);
  background: rgba(255, 255, 255, 0.52);
}

.fact-label {
  display: block;
  color: var(--blue-soft);
  font-size: 12px;
}

.fact-value {
  display: block;
  margin-top: 4px;
  color: var(--text);
  font-weight: 700;
}

.card-grid,
.index-grid,
.feature-grid,
.gallery-grid,
.timeline-grid,
.qa-grid {
  display: grid;
  gap: 18px;
}

.card-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.index-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.feature-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.timeline-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.qa-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.source-grid,
.compact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.card,
.index-card,
.feature-card,
.timeline-item,
.qa-item,
.source-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.light-shift .card,
.light-shift .index-card,
.light-shift .feature-card,
.light-shift .timeline-item,
.light-shift .qa-item,
.light-shift .source-item,
.light-shift .summary-copy,
.light-shift .info-panel,
.light-shift .gallery-card,
.light-shift .faq-list details,
.light-shift .data-table {
  background: rgba(255, 255, 255, 0.86);
}

.card,
.feature-card,
.timeline-item,
.qa-item,
.source-item {
  padding: 22px;
}

.source-item strong,
.compact-item strong {
  display: block;
  color: var(--blue-soft);
  margin-bottom: 6px;
}

.source-item p,
.compact-item p {
  color: var(--muted);
  margin: 0;
}

.compact-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.light-shift .compact-item,
.light-shift .step-list li {
  background: rgba(255, 255, 255, 0.7);
}

.pill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

.pill-list li {
  padding: 8px 10px;
  border: 1px solid rgba(79, 168, 255, 0.28);
  border-radius: 6px;
  background: rgba(79, 168, 255, 0.08);
  color: var(--muted);
  font-size: 14px;
}

.index-card {
  min-height: 166px;
  padding: 18px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: transform 0.18s ease, border-color 0.18s ease;
}

.index-card:hover {
  transform: translateY(-3px);
  border-color: rgba(79, 168, 255, 0.6);
}

.feature-card {
  position: relative;
  overflow: hidden;
  transform-style: preserve-3d;
}

.feature-card::after {
  content: "";
  position: absolute;
  inset: auto -30% -48% 36%;
  height: 120px;
  transform: rotate(-12deg);
  background: linear-gradient(90deg, transparent, rgba(0, 255, 135, 0.18), rgba(255, 64, 129, 0.14), transparent);
  opacity: 0;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.feature-card:hover::after {
  opacity: 1;
  transform: rotate(-8deg) translateY(-18px);
}

.feature-card:hover {
  transform: perspective(900px) rotateY(4deg) translateY(-4px);
  border-color: rgba(0, 255, 135, 0.48);
  box-shadow: 0 18px 60px rgba(0, 0, 0, 0.38), 0 0 28px rgba(157, 0, 255, 0.18);
}

.index-card span {
  color: var(--blue-soft);
  font-size: 13px;
  font-weight: 800;
}

.index-card strong {
  display: block;
  margin: 8px 0;
  font-size: 18px;
}

.index-card p,
.feature-card p,
.card p,
.timeline-item p,
.qa-item p {
  color: var(--muted);
}

.gallery-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.gallery-card {
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.gallery-card picture {
  display: block;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #05070f;
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.28s ease;
}

.gallery-card:hover img {
  transform: scale(1.04);
}

.gallery-card figcaption {
  min-height: 72px;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.two-column {
  display: grid;
  grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
  gap: 28px;
  align-items: start;
}

.poster {
  position: sticky;
  top: 98px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #05070f;
  box-shadow: var(--shadow);
}

.poster img {
  width: 100%;
}

.step-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.step-list li {
  display: grid;
  grid-template-columns: 36px 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.04);
}

.step-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 6px;
  color: #05101f;
  background: var(--green);
  font-weight: 900;
}

.faq-list {
  display: grid;
  gap: 12px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  box-shadow: var(--shadow);
}

.faq-list summary {
  cursor: pointer;
  padding: 18px 20px;
  color: var(--text);
  font-weight: 800;
}

.faq-list details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
}

.page-hero {
  position: relative;
  min-height: 360px;
  display: flex;
  align-items: end;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  isolation: isolate;
}

.page-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background:
    linear-gradient(90deg, rgba(79, 168, 255, 0.2), transparent 34%, rgba(13, 8, 20, 0.5) 62%, rgba(157, 0, 255, 0.28)),
    linear-gradient(90deg, rgba(5, 7, 15, 0.94), rgba(5, 7, 15, 0.64)),
    var(--page-image, url("../img/hero-dual-form.webp")) center / cover no-repeat;
}

.light-shift .page-hero::before {
  background:
    linear-gradient(90deg, rgba(248, 252, 255, 0.92), rgba(248, 252, 255, 0.74) 46%, rgba(248, 252, 255, 0.56)),
    linear-gradient(90deg, rgba(79, 168, 255, 0.14), transparent 38%, rgba(255, 64, 129, 0.12)),
    var(--page-image, url("../img/hero-dual-form.webp")) center / cover no-repeat;
  filter: saturate(1.06) brightness(1.04);
}

.page-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), var(--green), var(--pink));
  box-shadow: 0 0 24px rgba(79, 168, 255, 0.6);
}

.page-hero .container {
  position: relative;
  padding: 84px 0 54px;
}

.page-hero .container::before {
  content: "";
  position: absolute;
  top: 42px;
  bottom: -54px;
  right: 17%;
  width: 2px;
  transform: rotate(8deg);
  background: linear-gradient(180deg, transparent, rgba(255, 255, 255, 0.75), var(--blue), var(--pink), transparent);
  box-shadow: 0 0 24px rgba(79, 168, 255, 0.56), 0 0 42px rgba(255, 64, 129, 0.34);
  pointer-events: none;
}

.page-hero h1 {
  max-width: 850px;
  font-size: 58px;
}

.page-lead {
  max-width: 800px;
  color: #d9e9ff;
  font-size: 18px;
}

.light-shift .page-lead {
  color: #354968;
}

.breadcrumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 18px;
  color: #c8dcff;
  font-size: 13px;
}

.light-shift .breadcrumbs {
  color: #52627c;
}

.breadcrumbs a {
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
}

.light-shift .breadcrumbs a {
  color: #0c1730;
  border-bottom-color: rgba(12, 23, 48, 0.34);
}

.content-block {
  max-width: 900px;
}

.content-block + .content-block {
  margin-top: 40px;
}

.content-block p,
.content-block li {
  color: var(--muted);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
}

.data-table th,
.data-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: top;
}

.data-table th {
  width: 28%;
  color: var(--blue-soft);
  font-weight: 800;
}

.data-table tr:last-child th,
.data-table tr:last-child td {
  border-bottom: 0;
}

.notice {
  padding: 18px;
  border-left: 4px solid var(--green);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: rgba(0, 255, 135, 0.08);
  color: var(--muted);
}

.last-updated {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer {
  padding: 46px 0;
  border-top: 1px solid var(--line);
  background: #05070f;
}

.light-shift .site-footer {
  background: #eef7ff;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 28px;
}

.friend-links {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 0;
  margin: 14px 0 0;
  list-style: none;
}

.friend-links a {
  display: inline-flex;
  padding: 8px 10px;
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--muted);
}

.footer-note {
  color: var(--muted);
  font-size: 14px;
}

@media (max-width: 1024px) {
  .nav-shell {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .nav-actions {
    justify-content: end;
  }

  .menu-toggle {
    display: inline-block;
  }

  .nav-links {
    position: fixed;
    top: 72px;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 14px 16px 22px;
    border-bottom: 1px solid var(--line);
    background: rgba(5, 7, 15, 0.96);
  }

  .light-shift .nav-links {
    background: rgba(255, 255, 255, 0.96);
  }

  .nav-links.is-open {
    display: flex;
  }

  .nav-links a {
    padding: 13px 14px;
  }

  .status-strip {
    grid-column: 1 / 3;
  }

  .summary-box,
  .home-section-grid,
  .two-column,
  .footer-grid {
    grid-template-columns: 1fr;
  }

  .play-loop {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .index-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid,
  .card-grid,
  .gallery-grid,
  .timeline-grid,
  .qa-grid,
  .source-grid,
  .compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .poster {
    position: relative;
    top: auto;
  }

  h1 {
    font-size: 58px;
  }

  h2 {
    font-size: 36px;
  }

  .page-hero h1 {
    font-size: 48px;
  }
}

@media (max-width: 680px) {
  .container,
  .nav-shell {
    width: min(100% - 22px, var(--max));
  }

  .brand span:last-child {
    max-width: 152px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .nav-actions .download-btn {
    display: none;
  }

  .nav-actions {
    position: fixed;
    top: 10px;
    right: 10px;
    z-index: 220;
    display: flex;
  }

  .mode-toggle,
  .menu-toggle {
    display: inline-block;
    background: rgba(5, 7, 15, 0.72);
  }

  .nav-shell {
    padding-right: 98px;
  }

  .status-strip {
    grid-template-columns: auto 1fr;
  }

  .status-strip span:last-child {
    display: none;
  }

  .hero {
    min-height: 86vh;
  }

  .hero::before {
    background:
      linear-gradient(180deg, rgba(5, 7, 15, 0.95), rgba(5, 7, 15, 0.58) 54%, rgba(13, 8, 20, 0.92)),
      repeating-linear-gradient(100deg, transparent 0 14px, rgba(79, 168, 255, 0.04) 14px 15px, transparent 15px 28px);
  }

  .hero {
    --split: 67%;
  }

  .split-pane {
    background-position: 52% center;
  }

  .rift-line {
    opacity: 0.74;
  }

  .hero-copy {
    padding: 76px 0 46px;
  }

  h1 {
    font-size: 36px;
    line-height: 1.12;
  }

  h2 {
    font-size: 30px;
  }

  .page-hero h1 {
    font-size: 34px;
  }

  .hero-subtitle,
  .page-lead {
    font-size: 16px;
  }

  .band {
    padding: 52px 0;
  }

  .card-grid,
  .index-grid,
  .feature-grid,
  .gallery-grid,
  .timeline-grid,
  .qa-grid,
  .source-grid,
  .compact-grid,
  .guide-action-grid,
  .strategy-thumbs,
  .play-loop,
  .fact-grid {
    grid-template-columns: 1fr;
  }

  .home-section-copy {
    padding: 22px;
  }

  .intel-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
    padding: 12px;
  }

  .intel-facts .fact-item:last-child {
    grid-column: 1 / -1;
  }

  .loop-card,
  .strategy-main {
    min-height: 210px;
  }

  .play-loop {
    gap: 8px;
  }

  .play-loop::before {
    left: 25px;
    right: auto;
    top: 22px;
    bottom: 22px;
    width: 2px;
    height: auto;
  }

  .play-loop li {
    min-height: auto;
    padding: 13px 13px 13px 66px;
  }

  .play-loop span {
    position: absolute;
    left: 13px;
    top: 15px;
    margin-bottom: 0;
  }

  .guide-action-grid a {
    min-height: auto;
    padding: 14px 16px;
  }

  .page-hero {
    min-height: 320px;
  }

  .data-table,
  .data-table tbody,
  .data-table tr,
  .data-table th,
  .data-table td {
    display: block;
    width: 100%;
  }

  .data-table th {
    padding-bottom: 4px;
    border-bottom: 0;
  }

  .data-table td {
    padding-top: 4px;
  }

  .hero-actions,
  .section-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-meta {
    flex-direction: column;
  }

  .hero-meta li {
    width: 100%;
  }

  .download-btn,
  .ghost-btn,
  .back-link {
    width: 100%;
  }
}

/* Whitehat protocol additions. Existing site selectors remain unchanged. */
.my-news-home, .my-news-page {
  --my-news-surface: var(--panel, rgba(13, 16, 31, 0.88));
  --my-news-text: var(--text, #f7fbff);
  --my-news-muted: var(--muted, #b7c4d9);
  --my-news-accent: var(--blue-soft, #8dccff);
  --my-news-line: var(--line, rgba(255, 255, 255, 0.14));
}
.my-news-home { width: 100%; padding: 26px 16px 42px; color: var(--my-news-text); }
.my-news-home .my-news-shell, .my-news-page .my-news-shell { width: min(var(--container, var(--max, 1180px)), calc(100% - 0px)); margin: 0 auto; }
.my-news-heading { display: flex; align-items: end; justify-content: space-between; gap: 18px; margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--my-news-line); }
.my-news-kicker { margin: 0 0 3px; color: var(--my-news-accent); font-size: .78rem; font-weight: 800; letter-spacing: .13em; }
.my-news-heading h2, .my-news-page h1, .my-news-page h2, .my-news-card h2, .my-news-card h3 { color: var(--my-news-text); }
.my-news-heading h2 { margin: 0; font-size: clamp(1.45rem, 2.8vw, 2rem); line-height: 1.25; }
.my-news-all-link, .my-news-card a, .my-news-back { display: inline-flex; align-items: center; width: fit-content; color: var(--my-news-text); font-weight: 700; text-decoration: none; border-bottom: 1px solid var(--my-news-accent); }
.my-news-all-link:hover, .my-news-card a:hover, .my-news-back:hover { color: var(--my-news-accent); }
.my-news-card-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 16px; }
.my-news-card { display: flex; flex-direction: column; min-width: 0; min-height: 196px; padding: 20px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-card h2, .my-news-card h3 { margin: 0; font-size: 1.08rem; line-height: 1.5; }
.my-news-card time { display: block; margin: 10px 0 0; color: var(--my-news-muted); font-size: .86rem; }
.my-news-card p { margin: 10px 0 16px; color: var(--my-news-muted); }
.my-news-card a { margin-top: auto; }
.my-news-empty { grid-column: 1 / -1; margin: 0; padding: 20px; color: var(--my-news-muted); background: var(--my-news-surface); border: 1px dashed var(--my-news-line); border-radius: var(--radius, 8px); }
.my-news-page { min-height: 100vh; padding: 44px 16px 64px; color: var(--my-news-text); background: var(--bg, var(--cream, #fff)); }
.my-news-page .my-news-topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 28px; color: var(--my-news-muted); }
.my-news-page .my-news-brand { margin: 0; color: var(--my-news-muted); font-size: .93rem; }
.my-news-page .my-news-intro { max-width: 760px; margin: 0 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-detail { max-width: 820px; padding: clamp(22px, 5vw, 44px); color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 14px 36px rgba(0,0,0,.18)); }
.my-news-page .my-news-detail h1 { margin: 0; font-size: clamp(1.8rem, 5vw, 3rem); line-height: 1.22; }
.my-news-page .my-news-detail time { display: block; margin: 16px 0 24px; color: var(--my-news-muted); }
.my-news-page .my-news-summary { margin: 0 0 20px; color: var(--my-news-muted); font-size: 1.05rem; }
.my-news-page .my-news-content { margin: 0; color: var(--my-news-text); white-space: pre-wrap; }
.my-news-page .my-news-footer { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.my-friend-link { color: inherit; }
.download-confirm-backdrop { position: fixed; inset: 0; z-index: 9999; display: grid; place-items: center; padding: 18px; background: rgba(0,0,0,.64); }
.download-confirm-panel { width: min(460px, 100%); padding: 24px; color: var(--my-news-text); background: var(--my-news-surface); border: 1px solid var(--my-news-line); border-radius: var(--radius, 8px); box-shadow: var(--shadow, 0 24px 70px rgba(0,0,0,.35)); }
.download-confirm-panel h2 { margin: 0 0 10px; color: var(--my-news-text); font-size: 1.3rem; }
.download-confirm-panel p { margin: 0; color: var(--my-news-muted); }
.download-confirm-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.download-confirm-actions button { min-height: 40px; padding: 0 16px; font: inherit; font-weight: 700; color: var(--my-news-text); background: transparent; border: 1px solid var(--my-news-line); border-radius: 6px; cursor: pointer; }
.download-confirm-actions .download-confirm-primary { color: #19120a; background: var(--my-news-accent); border-color: var(--my-news-accent); }
@media (max-width: 640px) { .my-news-home { padding-inline: 12px; } .my-news-heading, .my-news-page .my-news-topbar { align-items: flex-start; flex-direction: column; } .my-news-page { padding: 26px 12px 44px; } .my-news-card { min-height: 0; } }
