:root {
  --ink: #111016;
  --ink-soft: #1c1a22;
  --paper: #eee4ce;
  --paper-dim: #c9bea7;
  --gold: #d2a63a;
  --gold-bright: #f0cc6a;
  --red: #a62d33;
  --red-dark: #671f27;
  --blue: #263b70;
  --line: rgba(238, 228, 206, 0.2);
  --content: min(1180px, calc(100vw - 48px));
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--paper);
  background: var(--ink);
  font-family: "Noto Sans SC", "Microsoft YaHei", sans-serif;
  letter-spacing: 0;
}

body::selection {
  color: var(--ink);
  background: var(--gold-bright);
}

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

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

.site-header {
  position: fixed;
  z-index: 50;
  top: 0;
  left: 0;
  width: 100%;
  min-height: 78px;
  padding: 14px max(24px, calc((100vw - 1180px) / 2));
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 32px;
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(17, 16, 22, 0.96);
  border-color: var(--line);
}

.brand {
  justify-self: start;
  display: inline-flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-mark {
  color: var(--gold-bright);
  font-family: STKaiti, KaiTi, serif;
  font-size: 22px;
  font-weight: 800;
}

.brand-sub {
  margin-top: 5px;
  color: var(--paper-dim);
  font-size: 10px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 34px;
  font-size: 14px;
}

.nav-links a {
  position: relative;
  padding: 10px 0;
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 4px;
  width: 100%;
  height: 2px;
  background: var(--gold);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 160ms ease;
}

.nav-links a:hover::after,
.nav-links a:focus-visible::after {
  transform: scaleX(1);
  transform-origin: left;
}

.steam-status {
  justify-self: end;
  padding: 10px 14px;
  border: 1px solid rgba(240, 204, 106, 0.45);
  color: var(--gold-bright);
  font-size: 12px;
}

.steam-status:hover,
.steam-status:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
}

.hero {
  position: relative;
  min-height: min(820px, 88svh);
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background: #17141a;
}

.hero-bg,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero-bg {
  object-fit: cover;
  object-position: center 42%;
  filter: saturate(0.7) contrast(1.08) brightness(0.58);
  transform: scale(1.02);
}

.hero-shade {
  background: rgba(17, 16, 22, 0.42);
}

.hero-character {
  position: absolute;
  bottom: -7%;
  width: auto;
  height: 112%;
  max-width: none;
  filter: drop-shadow(0 30px 28px rgba(0, 0, 0, 0.52));
  pointer-events: none;
}

.hero-bian {
  right: 3%;
  z-index: 3;
}

.hero-gu {
  right: -13%;
  z-index: 2;
  width: auto;
  height: 88%;
  opacity: 0.74;
  filter: saturate(0.72) brightness(0.72) drop-shadow(0 24px 20px rgba(0, 0, 0, 0.5));
}

.hero-thread {
  position: absolute;
  z-index: 4;
  top: 0;
  width: 1px;
  height: 45%;
  background: rgba(240, 204, 106, 0.62);
  transform-origin: top;
}

.thread-a {
  right: 20%;
  transform: rotate(8deg);
}

.thread-b {
  right: 35%;
  height: 30%;
  transform: rotate(-5deg);
}

.hero-copy {
  position: relative;
  z-index: 5;
  width: var(--content);
  margin: 0 auto;
  padding-top: clamp(170px, 23vh, 230px);
}

.eyebrow,
.section-index {
  margin: 0 0 22px;
  color: var(--gold-bright);
  font-size: 13px;
  font-weight: 700;
}

.hero h1 {
  max-width: 650px;
  margin: 0;
  color: #f4d778;
  font-family: STKaiti, KaiTi, serif;
  font-size: clamp(72px, 8vw, 126px);
  line-height: 0.9;
  text-shadow: 0 7px 0 rgba(83, 42, 16, 0.7), 0 18px 36px rgba(0, 0, 0, 0.58);
}

.hero-subtitle {
  margin: 28px 0 0;
  color: var(--paper);
  font-family: STKaiti, KaiTi, serif;
  font-size: clamp(21px, 2vw, 30px);
}

.hero-lead {
  max-width: 610px;
  margin: 32px 0 0;
  color: #f2ead9;
  font-size: clamp(16px, 1.35vw, 20px);
  line-height: 1.9;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.8);
}

.hero-actions {
  display: flex;
  align-items: center;
  gap: 24px;
  margin-top: 34px;
}

.primary-action {
  min-width: 140px;
  padding: 14px 22px;
  color: var(--ink);
  background: var(--gold-bright);
  border: 1px solid var(--gold-bright);
  text-align: center;
  font-weight: 800;
  transition: color 160ms ease, background-color 160ms ease;
}

.primary-action:hover,
.primary-action:focus-visible {
  color: var(--gold-bright);
  background: transparent;
}

.release-note {
  color: var(--paper-dim);
  font-size: 12px;
}

.hero-case-tag {
  position: absolute;
  z-index: 6;
  right: max(24px, calc((100vw - 1180px) / 2));
  bottom: 28px;
  display: flex;
  align-items: baseline;
  gap: 12px;
  color: var(--paper-dim);
  font-size: 12px;
}

.hero-case-tag strong {
  color: var(--paper);
  font-family: STKaiti, KaiTi, serif;
  font-size: 20px;
}

.case-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  min-height: 86px;
  color: #241a16;
  background: var(--paper);
}

.case-strip span {
  display: grid;
  place-items: center;
  padding: 20px;
  border-right: 1px solid rgba(17, 16, 22, 0.2);
  font-size: 14px;
  font-weight: 800;
}

.story-section,
.gameplay-heading,
.cast-section {
  width: var(--content);
  margin: 0 auto;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  gap: clamp(60px, 10vw, 150px);
  padding: 150px 0;
}

.section-heading h2,
.gameplay-heading h2,
.cast-heading h2,
.closing-copy h2 {
  margin: 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: clamp(42px, 5vw, 72px);
  font-weight: 800;
  line-height: 1.2;
}

.story-copy {
  padding-top: 42px;
  color: var(--paper-dim);
  font-size: 16px;
  line-height: 2;
}

.story-copy p {
  margin: 0 0 22px;
}

.story-copy blockquote {
  margin: 42px 0 0;
  padding: 20px 0 20px 24px;
  border-left: 3px solid var(--red);
  color: var(--paper);
  font-family: STKaiti, KaiTi, serif;
  font-size: 24px;
}

.gameplay-section {
  padding: 132px 0 150px;
  background: var(--paper);
  color: #1a1717;
}

.gameplay-heading .section-index {
  color: var(--red);
}

.gameplay-heading > p:last-child {
  margin: 22px 0 50px;
  color: #665e55;
  font-size: 14px;
}

.gameplay-grid {
  width: var(--content);
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
}

.game-shot {
  min-width: 0;
  border-top: 4px solid var(--red);
  background: #16141a;
  color: var(--paper);
  overflow: hidden;
}

.shot-wide {
  grid-column: 1 / -1;
}

.shot-art {
  position: relative;
  aspect-ratio: 16 / 8.7;
  overflow: hidden;
  background: #171722;
}

.shot-art > img:first-child {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.shot-dialog {
  position: absolute;
  left: 2.5%;
  right: 2.5%;
  bottom: 3.5%;
  min-height: 25%;
  padding: 24px 28px 18px;
  border: 2px solid #8aa7ff;
  background: rgba(20, 34, 84, 0.92);
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.08);
}

.shot-dialog .speaker {
  position: absolute;
  top: -18px;
  left: 20px;
  min-width: 90px;
  padding: 5px 16px;
  background: #394b85;
  font-size: 13px;
  font-weight: 800;
}

.shot-dialog p {
  margin: 8px 0 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: clamp(17px, 2vw, 27px);
}

.shot-caption {
  min-height: 94px;
  padding: 20px 24px;
  display: grid;
  grid-template-columns: 70px 1fr;
  align-items: start;
  gap: 18px;
}

.shot-caption span {
  color: var(--gold-bright);
  font-size: 12px;
  font-weight: 800;
}

.shot-caption strong {
  font-size: 15px;
  line-height: 1.65;
}

.portrait-shot {
  aspect-ratio: 16 / 10;
}

.shot-character {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  object-fit: contain !important;
}

.scene-label {
  position: absolute;
  left: 14px;
  top: 14px;
  padding: 8px 12px;
  background: rgba(17, 16, 22, 0.86);
  color: var(--paper);
  font-size: 12px;
}

.evidence-shot {
  background: #171a2b;
}

.evidence-board {
  min-height: 0;
  aspect-ratio: 16 / 10;
  padding: 28px;
  background: #202a55;
}

.record-title {
  margin: 0 0 26px;
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(238, 228, 206, 0.26);
  color: var(--gold-bright);
  font-family: STKaiti, KaiTi, serif;
  font-size: 25px;
  font-weight: 800;
}

.evidence-icons {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.evidence-icons span {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border: 1px solid rgba(238, 228, 206, 0.28);
  background: #13182f;
}

.evidence-icons img {
  width: 82%;
  height: 82%;
  object-fit: contain;
}

.evidence-detail {
  margin-top: 24px;
  padding-left: 16px;
  border-left: 3px solid var(--gold);
}

.evidence-detail strong {
  color: var(--gold-bright);
}

.evidence-detail p {
  margin: 8px 0 0;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.7;
}

.cast-section {
  padding: 145px 0 160px;
}

.cast-heading {
  display: grid;
  grid-template-columns: 0.65fr 1.35fr;
  align-items: end;
  gap: 40px;
  margin-bottom: 66px;
}

.cast-heading .section-index {
  align-self: start;
}

.cast-list {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.cast-member {
  min-width: 0;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--line);
}

.cast-art {
  position: relative;
  aspect-ratio: 3 / 4;
  overflow: hidden;
}

.cast-art::after {
  content: "";
  position: absolute;
  inset: 0;
  border: 1px solid rgba(238, 228, 206, 0.14);
}

.cast-art img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.26) translateY(8%);
  transition: transform 260ms ease;
}

.cast-member:hover .cast-art img {
  transform: scale(1.31) translateY(6%);
}

.cast-red { background: var(--red-dark); }
.cast-gold { background: #8b6b27; }
.cast-ink { background: var(--blue); }
.cast-paper { background: #8d8376; }

.cast-role {
  min-height: 18px;
  margin: 22px 0 7px;
  color: var(--gold-bright);
  font-size: 11px;
  font-weight: 800;
}

.cast-member h3 {
  margin: 0;
  font-family: STKaiti, KaiTi, serif;
  font-size: 30px;
}

.cast-member > p:last-child {
  margin: 13px 0 0;
  color: var(--paper-dim);
  font-size: 13px;
  line-height: 1.7;
}

.closing-section {
  position: relative;
  min-height: 620px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-top: 1px solid var(--line);
}

.closing-bg,
.closing-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.closing-bg {
  object-fit: cover;
  filter: saturate(0.62) brightness(0.4) contrast(1.1);
}

.closing-shade {
  background: rgba(17, 16, 22, 0.38);
}

.closing-copy {
  position: relative;
  z-index: 2;
  width: var(--content);
  text-align: center;
}

.closing-copy p:not(.eyebrow) {
  margin: 24px 0 30px;
  color: var(--paper-dim);
}

.closing-status {
  display: inline-block;
  padding: 14px 24px;
  border: 1px solid var(--gold-bright);
  color: var(--gold-bright);
  font-weight: 800;
}

.closing-status:hover,
.closing-status:focus-visible {
  color: var(--ink);
  background: var(--gold-bright);
}

footer {
  width: var(--content);
  min-height: 110px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  align-items: center;
  color: #8f877a;
  font-size: 11px;
}

footer p:nth-child(2) { text-align: center; }
footer p:last-child { text-align: right; }

footer a {
  color: var(--paper-dim);
  text-decoration: underline;
  text-decoration-color: rgba(238, 228, 206, 0.35);
  text-underline-offset: 4px;
}

footer a:hover,
footer a:focus-visible {
  color: var(--gold-bright);
}

.game-site-disclaimer {
  width: var(--content);
  margin: -24px auto 26px;
  color: #706b62;
  font-size: 10px;
  line-height: 1.7;
  text-align: center;
}

.reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 500ms ease, transform 500ms ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 900px) {
  :root {
    --content: min(100% - 36px, 720px);
  }

  .site-header {
    min-height: 66px;
    padding: 10px 18px;
    grid-template-columns: 1fr auto;
  }

  .nav-links {
    display: none;
  }

  .brand-mark { font-size: 19px; }
  .steam-status { font-size: 10px; padding: 8px 10px; }

  .hero {
    min-height: 780px;
  }

  .hero-copy {
    padding-top: 145px;
  }

  .hero h1 {
    font-size: clamp(62px, 15vw, 90px);
  }

  .hero-lead {
    max-width: 540px;
  }

  .hero-bian {
    right: -12%;
    bottom: -7%;
    width: auto;
    height: 103%;
    opacity: 0.72;
  }

  .hero-gu {
    display: none;
  }

  .hero-case-tag {
    display: none;
  }

  .case-strip {
    grid-template-columns: repeat(2, 1fr);
  }

  .case-strip span {
    min-height: 64px;
    border-bottom: 1px solid rgba(17, 16, 22, 0.2);
  }

  .story-section {
    grid-template-columns: 1fr;
    gap: 0;
    padding: 100px 0;
  }

  .story-copy {
    padding-top: 30px;
  }

  .gameplay-section,
  .cast-section {
    padding-top: 100px;
    padding-bottom: 110px;
  }

  .gameplay-grid {
    grid-template-columns: 1fr;
  }

  .shot-wide {
    grid-column: auto;
  }

  .cast-heading {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .cast-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 42px 16px;
  }
}

@media (max-width: 560px) {
  :root {
    --content: calc(100% - 28px);
  }

  .brand-sub,
  .release-note {
    display: none;
  }

  .steam-status {
    max-width: 116px;
    text-align: center;
    line-height: 1.25;
  }

  .hero {
    min-height: 735px;
  }

  .hero-copy {
    padding-top: 132px;
  }

  .hero h1 {
    font-size: clamp(58px, 19vw, 76px);
  }

  .hero-subtitle {
    margin-top: 20px;
    font-size: 20px;
  }

  .hero-lead {
    margin-top: 24px;
    font-size: 15px;
    line-height: 1.75;
  }

  .hero-lead br {
    display: none;
  }

  .hero-actions {
    margin-top: 28px;
  }

  .hero-bian {
    right: -36%;
    bottom: -7%;
    width: auto;
    height: 82%;
    opacity: 0.58;
  }

  .hero-thread {
    display: none;
  }

  .section-heading h2,
  .gameplay-heading h2,
  .cast-heading h2,
  .closing-copy h2 {
    font-size: 39px;
  }

  .story-section,
  .gameplay-section,
  .cast-section {
    padding-top: 82px;
    padding-bottom: 88px;
  }

  .gameplay-heading > p:last-child {
    margin-bottom: 34px;
  }

  .shot-dialog {
    padding: 17px 16px 12px;
  }

  .shot-dialog p {
    font-size: 15px;
  }

  .shot-caption {
    grid-template-columns: 50px 1fr;
    padding: 17px 16px;
  }

  .evidence-board {
    padding: 18px;
  }

  .record-title {
    margin-bottom: 14px;
    font-size: 20px;
  }

  .evidence-icons {
    gap: 7px;
  }

  .evidence-detail {
    margin-top: 15px;
  }

  .cast-list {
    grid-template-columns: 1fr 1fr;
    gap: 38px 12px;
  }

  .cast-role {
    margin-top: 15px;
  }

  .cast-member h3 {
    font-size: 25px;
  }

  .cast-member > p:last-child {
    font-size: 12px;
  }

  .closing-section {
    min-height: 520px;
  }

  footer {
    min-height: 140px;
    grid-template-columns: 1fr;
    align-content: center;
    gap: 8px;
  }

  footer p {
    margin: 0;
    text-align: center !important;
  }

  .game-site-disclaimer {
    margin-top: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
  .reveal {
    opacity: 1;
    transform: none;
  }
}
