:root {
  color-scheme: dark;
  --titanium-950: #101216;
  --titanium-900: #171a1f;
  --titanium-850: #1d2127;
  --titanium-800: #242930;
  --titanium-700: #343b44;
  --paper: #f3f5f7;
  --paper-soft: #c7cdd3;
  --paper-muted: #949ca6;
  --warning: #e33c48;
  --warning-dark: #b92e38;
  --signal: #55e8c7;
  --signal-soft: rgba(85, 232, 199, 0.14);
  --line: rgba(243, 245, 247, 0.16);
  --line-strong: rgba(243, 245, 247, 0.28);
  --shell: min(1180px, calc(100vw - 40px));
  --header-height: 76px;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --radius-card: 16px;
  --radius-button: 999px;
  --radius-image: 12px;
  --radius-tag: 4px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-height) + 20px);
  background: var(--titanium-950);
}

body {
  margin: 0;
  min-width: 320px;
  background: var(--titanium-900);
  color: var(--paper);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.75;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}

body.menu-open {
  overflow: hidden;
}

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

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

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

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

.skip-link {
  position: fixed;
  z-index: 1000;
  top: 12px;
  left: 12px;
  padding: 10px 16px;
  background: var(--paper);
  color: var(--titanium-950);
  transform: translateY(-150%);
  transition: transform 160ms ease;
}

.skip-link:focus {
  transform: translateY(0);
}

.reading-progress {
  position: fixed;
  z-index: 120;
  inset: 0 0 auto;
  height: 2px;
  pointer-events: none;
}

.reading-progress span {
  display: block;
  width: 0;
  height: 100%;
  background: var(--signal);
  box-shadow: 0 0 14px rgba(85, 232, 199, 0.65);
}

.site-header {
  position: fixed;
  z-index: 100;
  inset: 0 0 auto;
  height: var(--header-height);
  border-bottom: 1px solid transparent;
  transition: background-color 180ms ease, border-color 180ms ease;
}

.site-header.is-scrolled {
  background: rgba(16, 18, 22, 0.94);
  border-bottom-color: var(--line);
  backdrop-filter: blur(14px);
}

.header-inner {
  width: var(--shell);
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  flex: 0 0 auto;
}

.brand img,
.footer-brand img {
  border: 1px solid var(--line-strong);
  background: var(--titanium-850);
}

.brand span,
.footer-brand div {
  display: grid;
  line-height: 1.15;
}

.brand b,
.footer-brand strong {
  font-size: 0.92rem;
  letter-spacing: 0;
}

.brand small,
.footer-brand small {
  margin-top: 4px;
  color: var(--paper-muted);
  font-size: 0.68rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 0.86rem;
  font-weight: 600;
}

.site-nav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--paper-soft);
  white-space: nowrap;
  transition: color 160ms ease;
}

.nav-icon,
.button-icon {
  width: 1.05em;
  height: 1.05em;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.nav-icon {
  width: 14px;
  height: 14px;
  color: var(--signal);
  opacity: 0.88;
}

.site-nav a:not(.nav-cta)::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -10px;
  height: 2px;
  background: var(--signal);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 160ms ease;
}

.site-nav a:hover,
.site-nav a:focus-visible,
.site-nav a.is-active {
  color: var(--paper);
}

.site-nav a.is-active::after,
.site-nav a:hover::after {
  transform: scaleX(1);
}

.nav-cta {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  padding: 0 18px;
  background: var(--warning);
  color: #fff !important;
  border: 1px solid var(--warning);
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}

.nav-cta:hover,
.nav-cta:focus-visible {
  background: var(--warning-dark);
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
}

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid var(--line);
  background: var(--titanium-850);
  color: var(--paper);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 5px;
}

.menu-toggle span {
  width: 20px;
  height: 2px;
  background: currentColor;
  transition: transform 180ms ease, opacity 180ms ease;
}

.hero {
  position: relative;
  min-height: min(820px, calc(89svh));
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--titanium-950);
  border-bottom: 1px solid var(--line);
}

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

.hero-media img {
  object-fit: cover;
  object-position: center 34%;
}

.hero-shade {
  background: rgba(10, 12, 15, 0.58);
  box-shadow: inset 0 -260px 180px rgba(10, 12, 15, 0.72);
}

.hero-inner {
  position: relative;
  z-index: 2;
  width: var(--shell);
  margin: 0 auto;
  padding: calc(var(--header-height) + 60px) 0 132px;
}

.eyebrow,
.section-index,
.note-label {
  margin-bottom: 16px;
  color: var(--signal);
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.eyebrow span {
  display: inline-block;
  margin-right: 10px;
  padding: 3px 7px;
  background: var(--warning);
  color: #fff;
}

.hero h1 {
  max-width: 840px;
  margin-bottom: 22px;
  font-size: clamp(2.2rem, 4.8vw, 4.2rem);
  line-height: 0.94;
  font-weight: 900;
  text-wrap: balance;
}

.hero h1 em {
  display: block;
  color: transparent;
  font-style: normal;
  -webkit-text-stroke: 1px rgba(243, 245, 247, 0.88);
}

.hero-copy {
  max-width: 650px;
  margin-bottom: 30px;
  color: var(--paper-soft);
  font-size: 1.08rem;
  line-height: 1.8;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.button {
  min-height: 50px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  padding: 0 24px;
  border: 1px solid var(--line-strong);
  font-size: 0.9rem;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.button-icon {
  width: 17px;
  height: 17px;
}

.button:hover,
.button:focus-visible {
  transform: translateY(-2px);
}

.button-primary {
  background: var(--warning);
  border-color: var(--warning);
  color: #fff;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--warning-dark);
  border-color: var(--signal);
  box-shadow: 0 0 0 4px var(--signal-soft);
}

.button-quiet {
  background: rgba(16, 18, 22, 0.54);
  color: var(--paper);
  backdrop-filter: blur(8px);
}

.button-quiet:hover,
.button-quiet:focus-visible {
  border-color: var(--signal);
  color: var(--signal);
}

.floating-cta {
  position: fixed;
  z-index: 90;
  right: clamp(16px, 3vw, 42px);
  bottom: calc(18px + env(safe-area-inset-bottom));
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 18px;
  background: var(--warning);
  border: 1px solid var(--warning);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.38), 0 0 0 1px rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.88rem;
  font-weight: 800;
  transition: background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  background: var(--warning-dark);
  border-color: var(--signal);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.45), 0 0 0 4px var(--signal-soft);
  transform: translateY(-3px);
}

.hero-facts {
  position: absolute;
  z-index: 3;
  right: 0;
  bottom: 0;
  left: 0;
  width: var(--shell);
  min-height: 88px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: rgba(16, 18, 22, 0.9);
  border: 1px solid var(--line);
  border-bottom: 0;
  backdrop-filter: blur(14px);
}

.hero-facts div {
  padding: 16px 24px;
  border-right: 1px solid var(--line);
}

.hero-facts div:last-child {
  border-right: 0;
}

.hero-facts dt {
  color: var(--paper-muted);
  font-size: 0.72rem;
}

.hero-facts dd {
  margin: 1px 0 0;
  font-weight: 800;
}

.section {
  position: relative;
  padding: 112px 0;
  border-bottom: 1px solid var(--line);
}

.section-shell {
  width: var(--shell);
  margin: 0 auto;
}

.section h2 {
  max-width: 820px;
  margin-bottom: 24px;
  font-size: clamp(1.5rem, 2.7vw, 2.3rem);
  line-height: 1.17;
  text-wrap: balance;
}

.section h3 {
  margin-bottom: 8px;
  font-size: 1.08rem;
  line-height: 1.35;
}

.section p {
  color: var(--paper-soft);
}

.lead {
  color: var(--paper) !important;
  font-size: 1.13rem;
  line-height: 1.9;
}

.section-heading {
  margin-bottom: 54px;
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.7fr);
  gap: 70px;
  align-items: end;
}

.section-heading h2,
.section-heading p,
.section-heading .section-index {
  margin-bottom: 0;
}

.section-heading > p {
  padding-bottom: 6px;
}

.intro-section,
.features-section,
.faq-section {
  background-color: var(--titanium-900);
}

.systems-section,
.guide-section,
.updates-section,
.requirements-section {
  background-color: var(--titanium-950);
}

.characters-section {
  background-color: var(--titanium-850);
}

.intro-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(380px, 0.92fr);
  gap: 76px;
  align-items: center;
}

.section-copy > p:not(.section-index) {
  max-width: 720px;
}

.meta-list {
  margin: 38px 0 0;
  border-top: 1px solid var(--line-strong);
}

.meta-list div {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 22px;
  padding: 13px 0;
  border-bottom: 1px solid var(--line);
}

.meta-list dt {
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.meta-list dd {
  margin: 0;
  color: var(--paper);
  font-size: 0.92rem;
  font-weight: 650;
}

.media-frame {
  position: relative;
  margin-bottom: 0;
  background: var(--titanium-800);
  border: 1px solid var(--line-strong);
  box-shadow: var(--shadow);
}

.media-frame::before {
  content: "";
  position: absolute;
  z-index: 2;
  top: -1px;
  left: -1px;
  width: 64px;
  height: 4px;
  background: var(--warning);
}

.media-frame img {
  width: 100%;
  height: auto;
}

.media-frame figcaption {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px;
  color: var(--paper-muted);
  font-size: 0.74rem;
  line-height: 1.4;
}

.media-frame figcaption span {
  color: var(--signal);
  font-weight: 800;
}

.systems-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.86fr);
  gap: 64px;
  align-items: stretch;
}

.system-list {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}

.system-list li {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 20px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line);
}

.system-no,
.guide-steps article > span,
.feature-grid article > span,
.route-flow > li > span {
  color: var(--warning);
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.78rem;
  font-weight: 800;
}

.system-list p,
.guide-steps p,
.feature-grid p,
.route-flow p,
.character-files p {
  margin-bottom: 0;
  font-size: 0.93rem;
}

.tall-media picture,
.tall-media img {
  height: 100%;
}

.tall-media img {
  min-height: 520px;
  object-fit: cover;
  object-position: center;
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.86fr);
  gap: 54px;
  align-items: center;
}

.character-files {
  border-top: 1px solid var(--line-strong);
}

.character-files article {
  display: grid;
  grid-template-columns: 12px 1fr;
  gap: 16px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.status-dot {
  width: 8px;
  height: 8px;
  margin-top: 7px;
  background: var(--signal);
  box-shadow: 0 0 12px rgba(85, 232, 199, 0.6);
}

.supporting-cast .status-dot {
  background: var(--warning);
  box-shadow: 0 0 12px rgba(227, 60, 72, 0.55);
}

.route-flow {
  margin: 64px 0 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  list-style: none;
  border-top: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.route-flow li {
  min-height: 180px;
  padding: 24px;
  border-right: 1px solid var(--line);
}

.route-flow li:last-child {
  border-right: 0;
}

.route-flow h3 {
  margin-top: 24px;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(340px, 0.7fr);
  gap: 72px;
  align-items: start;
}

.guide-steps {
  margin-top: 40px;
  border-top: 1px solid var(--line-strong);
}

.guide-steps article {
  display: grid;
  grid-template-columns: 54px 1fr;
  gap: 18px;
  padding: 20px 0;
  border-bottom: 1px solid var(--line);
}

.guide-aside {
  position: sticky;
  top: calc(var(--header-height) + 24px);
}

.field-note {
  margin-top: 22px;
  padding: 24px;
  background: var(--titanium-850);
  border-left: 3px solid var(--signal);
}

.field-note ol {
  margin: 0;
  padding-left: 20px;
  color: var(--paper-soft);
  font-size: 0.9rem;
}

.field-note li + li {
  margin-top: 8px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line-strong);
  border-left: 1px solid var(--line-strong);
}

.feature-grid article {
  min-height: 210px;
  padding: 26px;
  background: var(--titanium-850);
  border-right: 1px solid var(--line-strong);
  border-bottom: 1px solid var(--line-strong);
}

.gallery-heading {
  margin: 72px 0 24px;
  padding-top: 28px;
  border-top: 1px solid var(--line-strong);
}

.gallery-heading .section-index {
  margin-bottom: 10px;
}

.gallery-heading h2 {
  margin-bottom: 10px;
}

.gallery-heading p:last-child {
  max-width: 620px;
  margin-bottom: 0;
}

.gallery-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.18fr) minmax(330px, 0.82fr);
  gap: 18px;
  align-items: start;
}

.gallery-main {
  min-width: 0;
  margin: 0;
  overflow: hidden;
}

.gallery-main::before {
  width: 88px;
}

.gallery-main > img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  object-position: center;
  background: var(--titanium-800);
}

.gallery-main figcaption strong {
  color: var(--paper);
  font-weight: 700;
}

.gallery-thumbs {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  align-content: start;
}

.gallery-thumb {
  position: relative;
  min-width: 0;
  display: block;
  padding: 0;
  overflow: hidden;
  background: var(--titanium-800);
  border: 1px solid var(--line-strong);
  cursor: pointer;
  isolation: isolate;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.gallery-thumb::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(10, 12, 15, 0.26);
  transition: background-color 160ms ease;
}

.gallery-thumb img {
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 220ms ease;
}

.gallery-thumb span {
  position: absolute;
  z-index: 2;
  right: 8px;
  bottom: 6px;
  color: #fff;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.68rem;
  font-weight: 800;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.8);
}

.gallery-thumb:hover,
.gallery-thumb:focus-visible {
  border-color: var(--signal);
  box-shadow: 0 0 0 3px var(--signal-soft);
  transform: translateY(-2px);
}

.gallery-thumb:hover::after,
.gallery-thumb:focus-visible::after,
.gallery-thumb.is-active::after {
  background: rgba(10, 12, 15, 0.04);
}

.gallery-thumb:hover img,
.gallery-thumb:focus-visible img {
  transform: scale(1.045);
}

.gallery-thumb.is-active {
  border-color: var(--warning);
  box-shadow: 0 0 0 3px rgba(227, 60, 72, 0.18);
}

.feature-grid h3 {
  margin-top: 28px;
}

.release-list {
  border-top: 1px solid var(--line-strong);
}

.release {
  display: grid;
  grid-template-columns: minmax(220px, 0.42fr) minmax(0, 1fr);
  gap: 64px;
  padding: 36px 0;
  border-bottom: 1px solid var(--line);
}

.release header span {
  display: inline-block;
  margin-bottom: 16px;
  padding: 3px 8px;
  border: 1px solid var(--line-strong);
  color: var(--paper-muted);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.release.current header span {
  border-color: var(--signal);
  color: var(--signal);
}

.release header h3 {
  margin-bottom: 4px;
  font-size: 1.5rem;
}

.release header p {
  margin: 0;
  font-size: 0.86rem;
}

.release ul {
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 36px;
  list-style: none;
}

.release li {
  position: relative;
  padding-left: 18px;
  color: var(--paper-soft);
  font-size: 0.92rem;
}

.release li::before {
  content: "+";
  position: absolute;
  left: 0;
  color: var(--warning);
  font-weight: 900;
}

.faq-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 38px;
  align-items: start;
}

.faq-intro {
  position: static;
}

.faq-intro p {
  max-width: 760px;
}

.text-link {
  display: inline-flex;
  gap: 20px;
  align-items: center;
  margin-top: 14px;
  padding-bottom: 4px;
  border-bottom: 1px solid var(--signal);
  color: var(--signal);
  font-size: 0.9rem;
  font-weight: 800;
}

.faq-list {
  border-top: 1px solid var(--line-strong);
}

.faq-list details {
  border-bottom: 1px solid var(--line);
}

.faq-list summary {
  position: relative;
  padding: 23px 48px 23px 0;
  cursor: pointer;
  color: var(--paper);
  font-size: 1rem;
  font-weight: 750;
  list-style: none;
}

.faq-list summary::-webkit-details-marker {
  display: none;
}

.faq-list summary::before,
.faq-list summary::after {
  content: "";
  position: absolute;
  top: 50%;
  right: 8px;
  width: 16px;
  height: 2px;
  background: var(--signal);
  transition: transform 160ms ease;
}

.faq-list summary::after {
  transform: rotate(90deg);
}

.faq-list details[open] summary::after {
  transform: rotate(0deg);
}

.faq-list details p {
  max-width: 740px;
  margin-bottom: 22px;
  padding-right: 44px;
}

.compact-heading {
  margin-bottom: 38px;
}

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

.requirements-grid article {
  padding: 34px;
  background: var(--titanium-850);
}

.requirements-grid h3 {
  margin-bottom: 24px;
  color: var(--signal);
}

.requirements-grid dl {
  margin-bottom: 0;
}

.requirements-grid dl div {
  display: grid;
  grid-template-columns: 112px 1fr;
  gap: 20px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
}

.requirements-grid dl div:last-child {
  border-bottom: 0;
}

.requirements-grid dt {
  color: var(--paper-muted);
  font-size: 0.82rem;
}

.requirements-grid dd {
  margin: 0;
  color: var(--paper);
  font-size: 0.9rem;
}

.site-footer {
  padding: 42px 0;
  background: var(--titanium-950);
}

.footer-inner {
  display: grid;
  grid-template-columns: auto 1fr minmax(280px, 0.8fr);
  gap: 54px;
  align-items: center;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.site-footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 24px;
  justify-content: center;
  color: var(--paper-soft);
  font-size: 0.82rem;
}

.site-footer nav a:hover,
.site-footer nav a:focus-visible {
  color: var(--signal);
}

.site-footer > .footer-inner > p {
  margin: 0;
  color: var(--paper-muted);
  font-size: 0.74rem;
  line-height: 1.65;
  text-align: right;
}

.error-page {
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: 32px;
  background: var(--titanium-950);
}

.error-page > div {
  width: min(680px, 100%);
  padding: 48px 0;
  border-top: 4px solid var(--warning);
  border-bottom: 1px solid var(--line-strong);
}

.error-page h1 {
  margin-bottom: 16px;
  font-size: clamp(2.2rem, 7vw, 4.4rem);
  line-height: 1.05;
}

.error-page p:not(.section-index) {
  max-width: 560px;
  margin-bottom: 28px;
  color: var(--paper-soft);
}

:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 1060px) {
  :root {
    --shell: min(100% - 32px, 980px);
  }

  .menu-toggle {
    display: flex;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(7px) rotate(45deg);
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
  }

  .menu-toggle[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-7px) rotate(-45deg);
  }

  .site-nav {
    position: absolute;
    z-index: 1;
    top: 100%;
    right: 0;
    bottom: auto;
    width: min(380px, 88vw);
    height: calc(100vh - var(--header-height));
    height: calc(100dvh - var(--header-height));
    max-height: calc(100svh - var(--header-height));
    padding: 28px 28px calc(28px + env(safe-area-inset-bottom));
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: var(--titanium-950);
    border-left: 1px solid var(--line);
    box-shadow: -18px 24px 48px rgba(0, 0, 0, 0.38);
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    transform: translateX(102%);
    visibility: hidden;
    transition: transform 190ms ease, visibility 190ms ease;
  }

  .site-nav.is-open {
    transform: translateX(0);
    visibility: visible;
  }

  body.menu-open .site-header {
    background: var(--titanium-950);
    border-bottom-color: var(--line);
  }

  .site-nav a {
    flex: 0 0 auto;
    padding: 14px 0;
    border-bottom: 1px solid var(--line);
  }

  .site-nav a::after {
    display: none;
  }

  .site-nav .nav-cta {
    margin-top: 20px;
    justify-content: center;
    border-bottom: 0;
  }

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

@media (max-width: 900px) {
  .section {
    padding: 86px 0;
  }

  .intro-grid,
  .systems-grid,
  .character-layout,
  .guide-layout,
  .faq-layout {
    grid-template-columns: 1fr;
    gap: 46px;
  }

  .section-heading {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .gallery-layout {
    grid-template-columns: 1fr;
  }

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

  .media-brand {
    max-width: 680px;
  }

  .tall-media img {
    min-height: 0;
  }

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

  .route-flow li:nth-child(2) {
    border-right: 0;
  }

  .route-flow li:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .guide-aside,
  .faq-intro {
    position: static;
  }

  .release {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .site-footer nav {
    justify-content: flex-start;
  }

  .site-footer > .footer-inner > p {
    max-width: 700px;
    text-align: left;
  }
}

@media (max-width: 640px) {
  :root {
    --shell: calc(100vw - 28px);
    --header-height: 66px;
  }

  body {
    font-size: 15px;
  }

  .site-nav {
    width: 100%;
    border-left: 0;
  }

  .brand img {
    width: 38px;
    height: 38px;
  }

  .hero {
    min-height: 88svh;
  }

  .hero-media img {
    object-position: 56% center;
  }

  .hero-shade {
    background: rgba(10, 12, 15, 0.64);
    box-shadow: inset 0 -300px 170px rgba(10, 12, 15, 0.8);
  }

  .hero-inner {
    padding: calc(var(--header-height) + 48px) 0 150px;
  }

  .hero h1 {
    font-size: clamp(1.85rem, 9.5vw, 3rem);
    line-height: 0.98;
  }

  .hero-copy {
    font-size: 0.98rem;
    line-height: 1.7;
  }

  .hero-actions .button {
    flex: 1 1 150px;
  }

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

  .hero-facts div {
    min-height: 54px;
    padding: 8px 12px;
  }

  .hero-facts div:nth-child(2) {
    border-right: 0;
  }

  .hero-facts div:nth-child(-n + 2) {
    border-bottom: 1px solid var(--line);
  }

  .hero-facts dt,
  .hero-facts dd {
    font-size: 0.74rem;
  }

  .section {
    padding: 70px 0;
  }

  .section h2 {
    font-size: clamp(1.32rem, 6.2vw, 1.85rem);
  }

  .section-heading {
    margin-bottom: 34px;
  }

  .gallery-heading {
    margin-top: 54px;
  }

  .gallery-thumbs {
    gap: 8px;
  }

  .intro-grid,
  .systems-grid,
  .character-layout,
  .guide-layout,
  .faq-layout {
    gap: 34px;
  }

  .media-frame figcaption {
    flex-direction: column;
    gap: 4px;
  }

  .system-list li,
  .guide-steps article {
    grid-template-columns: 40px 1fr;
    gap: 12px;
  }

  .route-flow,
  .feature-grid,
  .release ul,
  .requirements-grid {
    grid-template-columns: 1fr;
  }

  .route-flow li {
    min-height: 0;
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .route-flow li:last-child {
    border-bottom: 0;
  }

  .feature-grid article {
    min-height: 0;
  }

  .release {
    padding: 28px 0;
  }

  .requirements-grid article {
    padding: 24px 20px;
  }

  .requirements-grid dl div {
    grid-template-columns: 90px 1fr;
    gap: 12px;
  }

  .floating-cta {
    right: 14px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    min-height: 46px;
    padding: 0 15px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}

@media (prefers-contrast: more) {
  :root {
    --paper-soft: #eef1f4;
    --paper-muted: #d4d9de;
    --line: rgba(255, 255, 255, 0.34);
    --line-strong: rgba(255, 255, 255, 0.52);
  }
}

@media print {
  .site-header,
  .reading-progress,
  .hero-actions,
  .site-footer {
    display: none !important;
  }

  body,
  .section,
  .characters-section {
    background: #fff !important;
    color: #111 !important;
  }

  .section p,
  .section li,
  .section dd {
    color: #222 !important;
  }
}

/* Unified corner treatment: geometry only, with existing colors, spacing and layout unchanged. */
.button,
.nav-cta,
.floating-cta {
  border-radius: var(--radius-button);
}

.menu-toggle {
  border-radius: var(--radius-button);
}

.hero-facts,
.media-frame,
.route-flow,
.field-note,
.feature-grid,
.requirements-grid {
  border-radius: var(--radius-card);
  overflow: hidden;
}

.media-frame img,
.brand img,
.footer-brand img,
.gallery-thumb,
.gallery-thumb img {
  border-radius: var(--radius-image);
}

.eyebrow span,
.release header span {
  border-radius: var(--radius-tag);
}

.error-page > div {
  border-radius: var(--radius-card);
}

/* Partner links */
.friend-links {
  position: relative;
  overflow: hidden;
  padding: 54px 20px 58px;
  background: var(--warning-dark);
  border-top: 1px solid rgba(243, 245, 247, 0.16);
  text-align: center;
}

.friend-links-inner {
  width: var(--shell);
  margin: 0 auto;
}

.friend-links-kicker {
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 800;
  line-height: 1.4;
}

.friend-links h2 {
  margin: 0 0 24px;
  color: #fff;
  font-size: clamp(1.75rem, 4vw, 2.4rem);
  line-height: 1.25;
}

.friend-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px;
}

.friend-links-list a {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  padding: 10px 20px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-button);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  color: #fff;
  font-size: 0.92rem;
  font-weight: 750;
  line-height: 1.4;
  text-decoration: none;
  transition: background-color 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.friend-links-list a:hover,
.friend-links-list a:focus-visible {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--signal);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28), 0 0 20px rgba(85, 232, 199, 0.24);
  filter: brightness(1.08);
  transform: translateY(-3px) scale(1.03);
}

.friend-links-list a:focus-visible {
  outline: 2px solid var(--signal);
  outline-offset: 3px;
}

@media (max-width: 640px) {
  .friend-links {
    padding: 42px 14px 46px;
  }

  .friend-links h2 {
    margin-bottom: 20px;
  }

  .friend-links-list {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .friend-links-list a {
    width: 100%;
    min-height: 48px;
    padding: 11px 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .friend-links-list a {
    transition-duration: 0.01ms !important;
  }
}

/* Hover motion and feedback, kept within the existing component boundaries. */
.hero-facts,
.media-frame,
.route-flow li,
.field-note,
.feature-grid article,
.requirements-grid article,
.release,
.system-list li,
.character-files article,
.guide-steps article,
.faq-list details,
.gallery-thumb {
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.hero-facts:hover,
.media-frame:hover,
.route-flow li:hover,
.field-note:hover,
.feature-grid article:hover,
.requirements-grid article:hover,
.release:hover,
.system-list li:hover,
.character-files article:hover,
.guide-steps article:hover,
.faq-list details:hover,
.gallery-thumb:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3), 0 0 24px rgba(85, 232, 199, 0.2), 0 0 0 1px var(--signal-soft);
}

.button:hover,
.button:focus-visible,
.nav-cta:hover,
.nav-cta:focus-visible,
.floating-cta:hover,
.floating-cta:focus-visible,
.menu-toggle:hover,
.menu-toggle:focus-visible {
  filter: brightness(1.1);
  transform: translateY(-2px) scale(1.04);
}

.button,
.nav-cta,
.floating-cta,
.menu-toggle {
  transition: background-color 0.3s ease, border-color 0.3s ease, color 0.3s ease, box-shadow 0.3s ease, filter 0.3s ease, transform 0.3s ease;
}

.floating-cta:hover,
.floating-cta:focus-visible {
  transform: translateY(-3px) scale(1.04);
}

.media-frame {
  isolation: isolate;
}

.media-frame::after {
  content: "";
  position: absolute;
  z-index: 1;
  inset: 0;
  background: rgba(10, 12, 15, 0.24);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.media-frame:hover::after {
  opacity: 1;
}

.media-frame img,
.gallery-thumb img {
  transform-origin: center;
  transition: transform 0.3s ease;
}

.media-frame:hover img,
.gallery-thumb:hover img {
  transform: scale(1.045);
}

.media-frame figcaption {
  position: relative;
  z-index: 3;
}

.gallery-thumb::after {
  transition: background-color 0.3s ease;
}

.gallery-thumb:hover::after,
.gallery-thumb:focus-visible::after,
.gallery-thumb.is-active::after {
  background: rgba(10, 12, 15, 0.12);
}

.site-nav a:not(.nav-cta)::after {
  transition: transform 0.3s ease;
}

@media (prefers-reduced-motion: reduce) {
  .hero-facts,
  .media-frame,
  .route-flow li,
  .field-note,
  .feature-grid article,
  .requirements-grid article,
  .release,
  .system-list li,
  .character-files article,
  .guide-steps article,
  .faq-list details,
  .gallery-thumb,
  .media-frame::after,
  .media-frame img,
  .gallery-thumb img,
  .site-nav a:not(.nav-cta)::after {
    transition-duration: 0.01ms !important;
  }
}
