:root {
  --color-bg: #09070b;
  --color-bg-2: #121018;
  --color-bg-3: #1b1620;
  --color-surface: rgba(22, 18, 26, 0.84);
  --color-surface-solid: #17131c;
  --color-paper: #d8c9a5;
  --color-paper-dark: #9f8e6b;
  --color-gold: #d6bc7e;
  --color-red: #972b37;
  --color-red-bright: #c94856;
  --color-purple: #5e3f72;
  --color-blue-cold: #7f9fbd;
  --color-text: #f2eee6;
  --color-muted: #b8ac9c;
  --color-subtle: #756a65;
  --color-line: rgba(214, 188, 126, 0.18);
  --shadow-panel: 0 22px 60px rgba(0, 0, 0, 0.34), inset 0 1px 0 rgba(255, 255, 255, 0.04);
  --font-serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", "SimSun", serif;
  --font-sans: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", sans-serif;
}

* {
  box-sizing: border-box;
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  transition-duration: 180ms;
  transition-timing-function: ease-out;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-serif);
  font-size: 16px;
  line-height: 1.8;
  letter-spacing: 0;
  color: var(--color-text);
  background:
    radial-gradient(circle at 20% 4%, rgba(94, 63, 114, 0.22), transparent 30%),
    radial-gradient(circle at 84% 28%, rgba(127, 159, 189, 0.1), transparent 24%),
    linear-gradient(180deg, #09070b 0%, #100d14 38%, #09070b 100%);
  overflow-x: hidden;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: 0.06;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, transparent, #000 18%, #000 80%, transparent);
}

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

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

button {
  font: inherit;
}

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

ul {
  margin: 14px 0 0;
  padding-left: 20px;
}

li + li {
  margin-top: 6px;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 999;
  padding: 8px 12px;
  color: #100c10;
  background: var(--color-gold);
  border-radius: 4px;
  transform: translateY(-160%);
}

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

.section-inner {
  width: min(1120px, calc(100% - 48px));
  margin: 0 auto;
}

section {
  position: relative;
  padding: 92px 0;
}

.section-band {
  background:
    linear-gradient(180deg, rgba(255, 247, 225, 0.025), rgba(255, 247, 225, 0.01)),
    rgba(12, 10, 15, 0.52);
  border-top: 1px solid rgba(214, 188, 126, 0.08);
  border-bottom: 1px solid rgba(214, 188, 126, 0.08);
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 64px;
  background: rgba(10, 8, 12, 0.76);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(214, 188, 126, 0.16);
}

.header-inner {
  width: min(1180px, calc(100% - 40px));
  height: 100%;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 22px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-width: max-content;
}

.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
  overflow: hidden;
  flex: 0 0 44px;
  background: #0d0a11;
  border: 1px solid rgba(255, 236, 184, 0.36);
  border-radius: 5px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.32);
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.brand-text {
  font-size: 20px;
  font-weight: 800;
  color: var(--color-text);
}

.nav-links {
  flex: 1;
  display: flex;
  justify-content: center;
  gap: 22px;
}

.nav-links a {
  position: relative;
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  font-size: 14px;
  color: var(--color-muted);
}

.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -8px;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, var(--color-gold), transparent);
  transform: scaleX(0.35);
  transform-origin: center;
}

.nav-links a:hover,
.nav-links a.is-active {
  color: var(--color-text);
  text-shadow: 0 0 18px rgba(214, 188, 126, 0.28);
}

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

.header-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 16px;
  color: var(--color-text);
  background: rgba(151, 43, 55, 0.46);
  border: 1px solid rgba(201, 72, 86, 0.42);
  border-radius: 5px;
}

.header-cta:hover {
  transform: translateY(-1px);
  background: rgba(151, 43, 55, 0.7);
  box-shadow: 0 0 24px rgba(151, 43, 55, 0.22);
}

.menu-toggle {
  display: none;
  position: relative;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  color: var(--color-text);
  background: rgba(255, 247, 225, 0.045);
  border: 1px solid rgba(214, 188, 126, 0.24);
  border-radius: 5px;
}

.menu-toggle span {
  position: absolute;
  left: 50%;
  top: 50%;
  display: block;
  width: 18px;
  height: 1px;
  margin: 0;
  background: currentColor;
  transform-origin: center;
}

.menu-toggle span:nth-child(1) {
  transform: translate(-50%, -7px);
}

.menu-toggle span:nth-child(2) {
  transform: translate(-50%, -50%);
}

.menu-toggle span:nth-child(3) {
  transform: translate(-50%, 6px);
}

.menu-toggle[aria-expanded="true"] span:nth-child(1) {
  transform: translate(-50%, -50%) rotate(45deg);
}

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

.menu-toggle[aria-expanded="true"] span:nth-child(3) {
  transform: translate(-50%, -50%) rotate(-45deg);
}

.hero {
  min-height: auto;
  overflow: hidden;
  padding: 0;
  display: flex;
  align-items: stretch;
  border-bottom: 1px solid rgba(214, 188, 126, 0.12);
}

.hero-bg {
  position: absolute;
  inset: 0;
  background-image: url("img/cover.webp");
  background-position: center;
  background-size: cover;
  transform: scale(1.02);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(circle at 70% 36%, rgba(77, 58, 92, 0.18), transparent 34%),
    linear-gradient(90deg, rgba(8, 7, 10, 0.92), rgba(8, 7, 10, 0.42) 58%, rgba(8, 7, 10, 0.86)),
    linear-gradient(180deg, rgba(8, 7, 10, 0.16), rgba(8, 7, 10, 0.94));
}

.grain {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.32) 0.6px, transparent 0.6px);
  background-size: 4px 4px;
}

.snow {
  position: absolute;
  inset: 0;
  z-index: 2;
  pointer-events: none;
  opacity: 0.28;
  background-image:
    radial-gradient(circle, rgba(255,255,255,0.88) 1px, transparent 1.4px),
    radial-gradient(circle, rgba(127,159,189,0.8) 1px, transparent 1.2px);
  background-size: 92px 92px, 138px 138px;
  animation: snow-drift 26s linear infinite;
}

.hero-inner {
  position: relative;
  z-index: 3;
  min-height: auto;
  display: flex;
  align-items: flex-start;
  padding: clamp(72px, 10vh, 118px) 0 clamp(42px, 7vh, 74px);
}

.hero-content {
  max-width: 680px;
}

.eyebrow,
.section-kicker {
  margin-bottom: 12px;
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
  color: var(--color-gold);
}

.hero-title {
  font-size: clamp(40px, 6.2vw, 72px);
  line-height: 1.02;
  font-weight: 800;
  letter-spacing: 0;
  color: var(--color-text);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.72);
}

.hero-subtitle {
  max-width: 620px;
  margin-top: 26px;
  font-size: clamp(17px, 2vw, 22px);
  line-height: 1.72;
  color: var(--color-paper);
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.62);
}

.hero-actions {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 34px;
}

.btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 22px;
  border-radius: 6px;
  font-family: var(--font-sans);
  font-weight: 700;
  line-height: 1.2;
}

.btn::before {
  content: "";
  position: absolute;
  inset: -45% auto -45% -70%;
  width: 56%;
  transform: skewX(-18deg);
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.38), transparent);
  opacity: 0;
  pointer-events: none;
}

.btn:hover::before {
  left: 120%;
  opacity: 1;
  transition: left 560ms ease, opacity 220ms ease;
}

.btn-primary {
  color: #100c10;
  background: linear-gradient(135deg, #f0d99b, #b99249);
  border: 1px solid rgba(255, 236, 184, 0.42);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.36);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.46), 0 0 24px rgba(214, 188, 126, 0.2);
}

.btn-secondary {
  color: var(--color-text);
  background: rgba(255, 247, 225, 0.045);
  border: 1px solid rgba(214, 188, 126, 0.28);
}

.btn-secondary:hover {
  transform: translateY(-2px);
  border-color: rgba(214, 188, 126, 0.48);
  background: rgba(214, 188, 126, 0.08);
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.3);
}

.hero-tags,
.inline-tags,
.mood-tags,
.save-slots {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.hero-tags {
  margin-top: 30px;
}

.tag,
.inline-tags span,
.mood-tags span,
.save-slots span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
  border: 1px solid rgba(214, 188, 126, 0.34);
  background: rgba(214, 188, 126, 0.08);
}

.tag-danger {
  color: #ffd7dc;
  border-color: rgba(201, 72, 86, 0.42);
  background: rgba(151, 43, 55, 0.14);
}

.section-heading {
  max-width: 820px;
  margin-bottom: 38px;
}

.section-title {
  font-size: clamp(26px, 3.1vw, 42px);
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: 0;
}

.section-heading p:not(.section-kicker) {
  margin-top: 18px;
  color: var(--color-muted);
}

.rich-text {
  max-width: 780px;
}

.rich-text p {
  margin: 0 0 1em;
  color: var(--color-paper);
}

.intro-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) 360px;
  gap: 40px;
  align-items: start;
}

.inline-tags {
  margin-top: 24px;
}

.panel {
  background:
    linear-gradient(180deg, rgba(255, 247, 225, 0.035), rgba(255, 247, 225, 0.015)),
    var(--color-surface);
  border: 1px solid var(--color-line);
  border-radius: 6px;
  box-shadow: var(--shadow-panel);
}

.panel:hover,
.feature-card:hover,
.timeline-item:hover {
  border-color: rgba(214, 188, 126, 0.42);
  transform: translateY(-4px);
  box-shadow:
    0 28px 72px rgba(0, 0, 0, 0.46),
    0 0 0 1px rgba(214, 188, 126, 0.05),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.info-panel {
  position: relative;
  padding: 24px;
}

.panel-label {
  margin-bottom: 18px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
  text-transform: uppercase;
}

.info-list {
  display: grid;
  gap: 14px;
}

.info-list div {
  padding-bottom: 14px;
  border-bottom: 1px solid rgba(214, 188, 126, 0.12);
}

.info-list div:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.info-list dt {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-paper-dark);
}

.info-list dd {
  margin-top: 3px;
  color: var(--color-text);
}

.story-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 36px;
  align-items: center;
}

.media-frame,
.character-art,
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  border: 1px solid rgba(214, 188, 126, 0.18);
  background: #0d0a11;
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34);
}

.media-frame {
  aspect-ratio: 16 / 9;
}

.media-frame img,
.character-art img,
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.media-frame:hover,
.character-art:hover,
.gallery-item:hover {
  border-color: rgba(214, 188, 126, 0.42);
  transform: translateY(-3px);
  box-shadow: 0 30px 72px rgba(0, 0, 0, 0.46), 0 0 30px rgba(94, 63, 114, 0.16);
}

.media-frame:hover img,
.character-art:hover img,
.gallery-item:hover img {
  transform: scale(1.035);
  filter: saturate(1.08) contrast(1.04);
}

.story-copy h3,
.character-panel h3,
.guide-panel h3,
.spoiler-box h3,
.timeline-item h3 {
  font-size: 24px;
  line-height: 1.25;
  letter-spacing: 0;
}

.story-copy p,
.route-copy p,
.spoiler-box p,
.updates-copy p {
  margin-top: 14px;
  color: var(--color-paper);
}

.mood-tags,
.save-slots {
  margin-top: 24px;
}

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-card {
  position: relative;
  min-height: 190px;
  padding: 22px;
  border: 1px solid rgba(214, 188, 126, 0.18);
  border-radius: 6px;
  background:
    linear-gradient(135deg, rgba(214, 188, 126, 0.07), transparent 38%),
    rgba(16, 13, 19, 0.82);
  box-shadow: var(--shadow-panel);
}

.feature-card::after {
  content: "";
  position: absolute;
  left: 22px;
  right: 22px;
  top: 0;
  height: 1px;
  opacity: 0;
  background: linear-gradient(90deg, transparent, rgba(214, 188, 126, 0.7), transparent);
}

.feature-card:hover::after {
  opacity: 1;
}

.feature-no {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
}

.feature-card h3 {
  margin-top: 28px;
  font-size: 23px;
  line-height: 1.25;
}

.feature-card p {
  margin-top: 10px;
  color: var(--color-muted);
}

.feature-status {
  position: absolute;
  left: 22px;
  bottom: 20px;
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-blue-cold);
}

.character-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(420px, 1.1fr);
  gap: 38px;
  align-items: center;
}

.character-art {
  aspect-ratio: 637 / 358;
}

.character-art img {
  object-position: center;
}

.character-file {
  padding: 26px;
}

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

.tab {
  min-height: 36px;
  padding: 0 14px;
  color: var(--color-muted);
  background: rgba(255, 247, 225, 0.035);
  border: 1px solid rgba(214, 188, 126, 0.16);
  border-radius: 5px;
  cursor: pointer;
}

.tab:hover,
.tab.is-active {
  color: var(--color-text);
  border-color: rgba(214, 188, 126, 0.48);
  background: rgba(214, 188, 126, 0.12);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.22);
}

.character-panel {
  padding-top: 24px;
}

.character-panel p:not(.file-no),
.character-panel li {
  color: var(--color-paper);
}

.file-no {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-red-bright);
}

.route-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(420px, 1.05fr);
  gap: 42px;
  align-items: center;
}

.route-map {
  position: relative;
  display: grid;
  gap: 16px;
}

.route-map::before {
  content: "";
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 20px;
  width: 1px;
  background: linear-gradient(var(--color-gold), var(--color-red), var(--color-gold));
  opacity: 0.52;
}

.route-node {
  position: relative;
  padding: 14px 16px 14px 52px;
  border: 1px solid rgba(214, 188, 126, 0.24);
  border-radius: 6px;
  background: rgba(21, 17, 24, 0.82);
  box-shadow: var(--shadow-panel);
}

.route-node:hover {
  border-color: rgba(214, 188, 126, 0.46);
  transform: translateX(4px);
  background: rgba(27, 22, 32, 0.9);
}

.route-node::before {
  content: "";
  position: absolute;
  left: 14px;
  top: 22px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: var(--color-bg);
  border: 2px solid var(--color-gold);
}

.route-node.is-active {
  border-color: var(--color-red);
  box-shadow: 0 0 24px rgba(151, 43, 55, 0.28), var(--shadow-panel);
}

.route-node.is-active::before {
  border-color: var(--color-red-bright);
  box-shadow: 0 0 18px rgba(201, 72, 86, 0.56);
}

.route-node span {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
}

.route-node strong {
  display: block;
  margin-top: 2px;
  font-size: 19px;
}

.route-node p {
  margin-top: 4px;
  color: var(--color-muted);
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px;
  align-items: start;
}

.guide-tabs {
  grid-column: 1 / -1;
  overflow-x: auto;
  padding-bottom: 4px;
}

.guide-content {
  padding: 24px;
  min-height: 330px;
}

.guide-content,
.faq-list {
  font-family: var(--font-sans);
}

.guide-list {
  display: grid;
  gap: 14px;
  margin-top: 18px;
}

.guide-item {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-left: 3px solid var(--color-gold);
  background: rgba(255, 247, 225, 0.045);
}

.guide-item:hover {
  border-left-color: var(--color-red-bright);
  background: rgba(255, 247, 225, 0.07);
  transform: translateX(3px);
}

.guide-item strong {
  color: var(--color-text);
}

.guide-item span {
  color: var(--color-muted);
}

.spoiler-box {
  padding: 20px;
  border: 1px solid rgba(151, 43, 55, 0.42);
  border-radius: 6px;
  background: rgba(151, 43, 55, 0.1);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 14px;
}

.gallery-item {
  aspect-ratio: 16 / 9;
}

.gallery-item:first-child {
  grid-row: span 2;
}

.gallery-item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 58%, rgba(8, 7, 10, 0.78));
  pointer-events: none;
}

.gallery-item figcaption {
  position: absolute;
  left: 14px;
  bottom: 10px;
  z-index: 1;
  font-family: var(--font-sans);
  font-size: 13px;
  color: var(--color-paper);
}

.gallery-item:hover figcaption {
  color: var(--color-text);
  transform: translateY(-2px);
  text-shadow: 0 0 18px rgba(214, 188, 126, 0.24);
}

.updates-layout {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 42px;
  align-items: start;
}

.timeline {
  position: relative;
  display: grid;
  gap: 20px;
}

.timeline-item {
  position: relative;
  padding: 18px 20px 18px 28px;
  border: 1px solid rgba(214, 188, 126, 0.18);
  border-radius: 6px;
  background: rgba(16, 13, 19, 0.82);
  box-shadow: var(--shadow-panel);
}

.timeline-item::before {
  content: "";
  position: absolute;
  left: -7px;
  top: 26px;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: var(--color-red);
  box-shadow: 0 0 18px rgba(151, 43, 55, 0.44);
}

.timeline-item time {
  font-family: var(--font-sans);
  font-size: 12px;
  color: var(--color-gold);
}

.timeline-item p {
  margin-top: 8px;
  color: var(--color-muted);
}

.faq-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  gap: 42px;
  align-items: start;
}

.faq-heading p:not(.section-kicker) {
  margin-top: 16px;
  color: var(--color-muted);
}

.faq-list {
  border-top: 1px solid rgba(214, 188, 126, 0.18);
}

.faq-item {
  border-bottom: 1px solid rgba(214, 188, 126, 0.18);
}

.faq-question {
  width: 100%;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0;
  color: var(--color-text);
  text-align: left;
  background: transparent;
  border: 0;
  cursor: pointer;
}

.faq-question:hover {
  color: var(--color-gold);
}

.faq-item:hover {
  background: rgba(255, 247, 225, 0.025);
}

.faq-question span {
  font-weight: 700;
}

.faq-question i {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.faq-question i::before,
.faq-question i::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 14px;
  height: 1px;
  background: var(--color-gold);
  transform: translate(-50%, -50%);
}

.faq-question i::after {
  transform: translate(-50%, -50%) rotate(90deg);
}

.faq-question[aria-expanded="true"] i::after {
  opacity: 0;
}

.faq-answer {
  padding: 0 0 20px;
  color: var(--color-muted);
}

.download-strip {
  padding: 58px 0;
  background:
    linear-gradient(90deg, rgba(151, 43, 55, 0.18), rgba(94, 63, 114, 0.12)),
    rgba(14, 11, 17, 0.9);
  border-top: 1px solid rgba(214, 188, 126, 0.16);
}

.download-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
}

.download-inner h2 {
  font-size: clamp(24px, 2.5vw, 34px);
  line-height: 1.2;
}

.download-inner p:not(.section-kicker) {
  margin-top: 10px;
  color: var(--color-paper);
}

.site-footer {
  padding: 42px 0;
  color: var(--color-muted);
  background: #070609;
  border-top: 1px solid rgba(214, 188, 126, 0.12);
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  gap: 28px;
}

.footer-inner strong {
  color: var(--color-text);
}

.footer-inner p {
  max-width: 560px;
  margin-top: 8px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-content: flex-start;
  justify-content: flex-end;
  font-family: var(--font-sans);
  font-size: 14px;
}

.footer-inner a:hover {
  color: var(--color-gold);
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
}

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

@keyframes snow-drift {
  from {
    background-position: 0 0, 0 0;
  }
  to {
    background-position: 92px 184px, -138px 276px;
  }
}

@media (max-width: 980px) {
  .nav-links {
    gap: 14px;
  }

  .intro-layout,
  .story-layout,
  .character-layout,
  .route-layout,
  .updates-layout,
  .faq-layout {
    grid-template-columns: 1fr;
  }

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

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

@media (max-width: 768px) {
  section {
    padding: 64px 0;
  }

  .header-inner {
    width: min(100% - 28px, 1180px);
  }

  .header-cta {
    display: none;
  }

  .menu-toggle {
    display: inline-flex;
    margin-left: auto;
  }

  .nav-links {
    position: fixed;
    left: 14px;
    right: 14px;
    top: 72px;
    display: grid;
    gap: 0;
    padding: 8px;
    opacity: 0;
    pointer-events: none;
    transform: translateY(-8px);
    background: rgba(13, 10, 16, 0.96);
    border: 1px solid rgba(214, 188, 126, 0.18);
    border-radius: 6px;
    box-shadow: 0 22px 48px rgba(0, 0, 0, 0.48);
  }

  .nav-links.is-open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(0);
  }

  .nav-links a {
    padding: 12px 10px;
    border-bottom: 1px solid rgba(214, 188, 126, 0.08);
  }

  .nav-links a:last-child {
    border-bottom: 0;
  }

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

  .hero {
    min-height: auto;
  }

  .hero-inner {
    min-height: auto;
    padding: 68px 0 44px;
  }

  .hero::before {
    background:
      linear-gradient(90deg, rgba(8, 7, 10, 0.88), rgba(8, 7, 10, 0.56)),
      linear-gradient(180deg, rgba(8, 7, 10, 0.1), rgba(8, 7, 10, 0.94));
  }

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

  .gallery-item:first-child {
    grid-row: auto;
  }

  .download-inner,
  .footer-inner {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .section-inner {
    width: min(100% - 32px, 1120px);
  }

  body {
    font-size: 15px;
  }

  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .btn-primary,
  .btn-secondary {
    width: 100%;
    justify-content: center;
  }

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

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

  .character-file,
  .guide-content {
    padding: 20px;
  }

  .tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    padding-bottom: 6px;
  }

  .tab {
    flex: 0 0 auto;
  }

  .route-node {
    padding-right: 14px;
  }
}

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