:root {
  color-scheme: dark;
  --page: #101923;
  --panel: #131f2c;
  --line: #2c3c4d;
  --ink: #e9eef1;
  --muted: #a4b3bf;
  --accent: #9acbe3;
  font-family: "PingFang SC", "Microsoft YaHei", system-ui, sans-serif;
  background: var(--page);
  color: var(--ink);
}

* { box-sizing: border-box; }

body { margin: 0; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--accent); }
a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }

.site-width {
  width: min(1160px, calc(100% - 72px));
  margin-inline: auto;
}

.skip-link {
  position: fixed;
  inset: 12px auto auto 12px;
  z-index: 3;
  padding: 10px 16px;
  transform: translateY(-150%);
  background: var(--panel);
}

.skip-link:focus { transform: none; }

.site-header { border-bottom: 1px solid var(--line); }

.header-inner,
.site-header nav,
.brand {
  display: flex;
  align-items: center;
}

.header-inner {
  min-height: 62px;
  justify-content: space-between;
  gap: 18px;
}

.brand {
  gap: 11px;
  font-size: 14px;
  font-weight: 600;
  letter-spacing: .12em;
  white-space: nowrap;
}

.brand-mark {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 1px solid var(--accent);
  transform: rotate(45deg);
}

.site-header nav {
  gap: clamp(14px, 3vw, 36px);
  color: var(--muted);
  font-size: 13px;
}

.site-header nav a { padding-block: 10px; }

.hero {
  display: grid;
  align-items: end;
  min-height: 212px;
  position: relative;
  isolation: isolate;
}

.hero::before {
  position: absolute;
  inset: 0 0 0 30%;
  z-index: -1;
  content: "";
  background:
    linear-gradient(90deg, var(--page), transparent 65%),
    linear-gradient(0deg, var(--page), #10192325 85%),
    url("/assets/apartment.png") 58% 48% / cover no-repeat;
  opacity: .42;
}

.hero-content { padding: 32px 0 23px; }

.eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .12em;
}

.eyebrow span { margin-inline: 4px; color: var(--muted); }

h1 {
  margin: 10px 0 9px;
  font-family: "Songti SC", SimSun, "Noto Serif SC", serif;
  font-size: clamp(48px, 7.1vw, 91px);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: .065em;
}

.chapter { margin: 0; color: var(--muted); font-size: 14px; letter-spacing: .15em; }
.chapter span { margin-inline: 2px; }
section { scroll-margin-top: 22px; }

.player {
  overflow: hidden;
  border: 1px solid #435568;
  border-radius: 8px;
  background: #070b10;
  box-shadow: 0 18px 55px #080e1680;
}

.game-frame {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  background: #000;
}

.game-launch {
  display: grid;
  place-items: center;
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 0;
  color: #fff;
  background: linear-gradient(#10192355, #101923aa), url("/assets/apartment.png") center / cover;
  font: inherit;
  cursor: pointer;
}

.game-launch span {
  border: 1px solid #95b4cf;
  border-radius: 6px;
  padding: 12px 20px;
  background: #101923ef;
}

.game-launch:focus-visible span { outline: 2px solid #fff; outline-offset: 4px; }
.game-launch:hover span { background: #263d51; }
.game-launch[hidden], .game-frame[hidden] { display: none; }

.playtime-note {
  margin: 10px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.controls-section { margin-top: 32px; }

.controls-layout, .media-layout {
  display: grid;
  gap: clamp(24px, 4vw, 56px);
}

.controls-layout { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.controls-layout h3 { margin: 0 0 4px; color: var(--accent); font-size: 14px; font-weight: 600; }
.controls-list { margin: 0; font-size: 14px; line-height: 1.6; }

.controls-list > div {
  display: grid;
  grid-template-columns: 112px minmax(0, 1fr);
  align-items: start;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line);
}

.controls-list dt { display: flex; flex-wrap: wrap; gap: 4px; }
.controls-list dd { margin: 0; color: var(--muted); }
.controls-list ul { margin: 0; padding-inline-start: 1.2em; }

.controls-list kbd {
  padding: 1px 7px;
  border: 1px solid var(--line);
  border-radius: 4px;
  background: var(--panel);
  font: inherit;
  font-size: 12px;
}

.media-layout, .editorial-section { margin-top: 52px; }
.media-layout { grid-template-columns: 1.55fr 1fr; }
.content-section { min-width: 0; border-top: 1px solid var(--line); }
.section-header { padding: 17px 0 16px; }
.section-header h2 { margin: 6px 0 0; font-size: 23px; font-weight: 600; }
.video-list { display: grid; gap: 18px; }

.video-empty,
.video-entry video {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #0a131d;
}

.video-empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 13px;
  color: var(--muted);
  font-size: 13px;
}

.video-empty svg { color: var(--accent); }
.video-entry { margin: 0; }
.video-entry video { display: block; }
.video-entry figcaption { margin-top: 8px; color: var(--muted); font-size: 14px; }

.document-list { display: grid; gap: 8px; padding: 0; margin: 0; list-style: none; }
.document-empty, .document-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 57px;
  padding: 12px 16px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--panel);
  font-size: 14px;
}

.document-empty { color: var(--muted); }
.document-link span:last-child { flex: none; color: var(--accent); font-size: 12px; }
.document-link:hover { border-color: var(--accent); }

.editorial-copy {
  min-height: 58px;
  padding-bottom: 8px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.85;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  border-top: 1px solid var(--line);
  padding: 21px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

@media (max-width: 700px) {
  .site-width { width: calc(100% - 32px); }
  .header-inner { align-items: flex-start; flex-direction: column; gap: 4px; padding-top: 14px; }
  .site-header nav { flex-wrap: wrap; }
  .hero { min-height: 154px; }
  .hero-content { padding-top: 22px; }
  .hero::before { left: 12%; }
  .controls-layout, .media-layout { grid-template-columns: 1fr; }
  .media-layout, .editorial-section { margin-top: 38px; }
}
