:root {
  color-scheme: dark;
  --bg: #0d1b2a;
  --bg-deep: #07111d;
  --panel: #122238;
  --panel-strong: #1b263b;
  --line: rgba(224, 225, 221, 0.16);
  --text: #f5f7fb;
  --muted: #b5bfcc;
  --soft: #8d99ae;
  --silver: #e0e1dd;
  --accent: #ff007f;
  --accent-deep: #e0115f;
  --signal: #39ff14;
  --warning: #ff5722;
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.96), rgba(7, 17, 29, 0.98)),
    repeating-linear-gradient(90deg, rgba(224, 225, 221, 0.03) 0 1px, transparent 1px 96px);
  color: var(--text);
  font-family: "Microsoft YaHei", "PingFang TC", "Noto Sans TC", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.72;
  letter-spacing: 0;
  text-rendering: optimizeLegibility;
}

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

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

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

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

.skip-link {
  position: fixed;
  top: 12px;
  left: 12px;
  z-index: 200;
  transform: translateY(-150%);
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  padding: 10px 14px;
  font-weight: 700;
}

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.icon-sprite {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.icon {
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  fill: none;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  border-bottom: 1px solid rgba(224, 225, 221, 0.12);
  background: rgba(7, 17, 29, 0.84);
  backdrop-filter: blur(16px);
}

.nav-shell {
  width: min(1180px, calc(100% - 32px));
  min-height: 72px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  font-weight: 800;
  color: var(--silver);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  border: 1px solid rgba(224, 225, 221, 0.18);
}

.brand span {
  white-space: nowrap;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
}

.nav-links a {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 8px 12px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  transition: color 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.nav-links a:not(.nav-cta):hover,
.nav-links a:not(.nav-cta):focus-visible,
.nav-links a:not(.nav-cta).is-active {
  color: #fff;
  border-color: rgba(255, 0, 127, 0.72);
  box-shadow: inset 0 0 0 1px rgba(255, 0, 127, 0.14), 0 0 18px rgba(255, 0, 127, 0.16);
  outline: none;
}

.nav-links .nav-cta {
  margin-left: 6px;
  border-color: transparent;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 30px rgba(255, 0, 127, 0.28);
}

.nav-links .nav-cta:hover,
.nav-links .nav-cta:focus-visible {
  background: var(--accent-deep);
  border-color: transparent;
  box-shadow: 0 14px 34px rgba(255, 0, 127, 0.34);
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(224, 225, 221, 0.18);
  border-radius: 6px;
  background: rgba(224, 225, 221, 0.06);
  color: var(--text);
  padding: 10px;
}

.nav-toggle span:not(.sr-only) {
  display: block;
  width: 100%;
  height: 2px;
  margin: 5px 0;
  background: var(--silver);
  transform-origin: center;
  transition: opacity 160ms ease, transform 160ms ease;
}

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

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

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

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

.hero {
  position: relative;
  min-height: 84svh;
  display: flex;
  align-items: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(224, 225, 221, 0.12);
}

.hero-media,
.hero-media img,
.hero-overlay {
  position: absolute;
  inset: 0;
}

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

.hero-overlay {
  background:
    linear-gradient(90deg, rgba(7, 17, 29, 0.94) 0%, rgba(13, 27, 42, 0.78) 42%, rgba(13, 27, 42, 0.34) 100%),
    linear-gradient(180deg, rgba(7, 17, 29, 0.12), rgba(7, 17, 29, 0.72));
}

.hero-inner {
  position: relative;
  z-index: 1;
  padding: 92px 0 76px;
}

.hero-copy {
  width: min(720px, 100%);
}

.eyebrow,
.section-kicker {
  color: var(--signal);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.4;
  text-transform: uppercase;
}

.hero h1 {
  margin-top: 14px;
  color: #fff;
  font-size: 72px;
  line-height: 1.05;
  letter-spacing: 0;
  text-shadow: 0 18px 44px rgba(0, 0, 0, 0.5);
}

.hero-lead {
  max-width: 650px;
  margin-top: 22px;
  color: #e8edf5;
  font-size: 20px;
  line-height: 1.8;
}

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

.button {
  position: relative;
  min-height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  border: 1px solid transparent;
  border-radius: 6px;
  padding: 12px 20px;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.button::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 0%, rgba(255, 255, 255, 0.22) 46%, transparent 58%);
  transform: translateX(-140%);
  transition: transform 420ms var(--ease-out);
  pointer-events: none;
}

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

.button:hover::after,
.button:focus-visible::after {
  transform: translateX(140%);
}

.button-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 14px 36px rgba(255, 0, 127, 0.26);
}

.button .icon {
  width: 19px;
  height: 19px;
  flex-basis: 19px;
}

.button-primary:hover,
.button-primary:focus-visible {
  background: var(--accent-deep);
  box-shadow: 0 18px 44px rgba(255, 0, 127, 0.36);
}

.button-secondary {
  border-color: rgba(224, 225, 221, 0.28);
  background: rgba(224, 225, 221, 0.08);
  color: var(--silver);
}

.button-secondary:hover,
.button-secondary:focus-visible {
  border-color: rgba(57, 255, 20, 0.52);
  background: rgba(224, 225, 221, 0.12);
  color: #fff;
  box-shadow: 0 14px 34px rgba(57, 255, 20, 0.12);
}

.hero-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 34px;
}

.hero-facts div {
  min-height: 88px;
  border: 1px solid rgba(224, 225, 221, 0.14);
  border-radius: 8px;
  background: rgba(18, 34, 56, 0.72);
  padding: 14px;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-facts div:hover {
  transform: translateY(-4px);
  border-color: rgba(57, 255, 20, 0.38);
  background: rgba(18, 34, 56, 0.88);
  box-shadow: 0 16px 36px rgba(0, 0, 0, 0.28);
}

.hero-facts dt {
  color: var(--soft);
  font-size: 13px;
}

.hero-facts dd {
  margin: 4px 0 0;
  color: var(--text);
  font-weight: 800;
}

.hero-keywords {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 26px;
  max-width: 900px;
}

.hero-keywords span {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  border: 1px solid rgba(224, 225, 221, 0.18);
  border-radius: 6px;
  background: rgba(7, 17, 29, 0.56);
  color: var(--silver);
  padding: 8px 12px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.25;
  box-shadow: inset 0 0 0 1px rgba(255, 0, 127, 0.04);
  transition: transform 180ms var(--ease-out), border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.hero-keywords span:hover {
  transform: translateY(-3px);
  border-color: rgba(255, 0, 127, 0.72);
  background: rgba(255, 0, 127, 0.12);
  color: #fff;
  box-shadow: 0 12px 28px rgba(255, 0, 127, 0.18);
}

.section {
  padding: 92px 0;
}

.section-muted {
  background: rgba(27, 38, 59, 0.56);
  border-top: 1px solid rgba(224, 225, 221, 0.1);
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
}

.section-heading {
  max-width: 820px;
  margin-right: auto;
  margin-bottom: 36px;
  margin-left: auto;
  text-align: center;
}

.section-copy > .section-kicker,
.section-copy > h2,
.guide-layout > div > .section-kicker,
.guide-layout > div > h2,
.cta-inner > div > .section-kicker,
.cta-inner > div > h2 {
  text-align: center;
}

.section-heading h2,
.section-copy h2,
.guide-layout h2,
.faq-copy h2,
.cta-inner h2 {
  margin-top: 8px;
  color: #fff;
  font-size: 38px;
  line-height: 1.22;
  letter-spacing: 0;
}

.section-heading p:last-child,
.section-copy p,
.guide-intro,
.faq-copy p,
.cta-inner p {
  margin-top: 16px;
  color: var(--muted);
}

.split-layout,
.feature-layout,
.guide-layout,
.feature-mosaic,
.faq-layout,
.cta-inner {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, 0.95fr);
  gap: 36px;
  align-items: center;
}

.section-copy {
  max-width: 720px;
}

.info-panel {
  border: 1px solid rgba(224, 225, 221, 0.14);
  border-radius: 8px;
  background: rgba(18, 34, 56, 0.82);
  box-shadow: var(--shadow);
  padding: 22px;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, box-shadow 200ms ease;
}

.info-panel:hover {
  transform: translateY(-5px);
  border-color: rgba(57, 255, 20, 0.34);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.44), 0 0 30px rgba(57, 255, 20, 0.08);
}

.info-panel img {
  width: 140px;
  height: 140px;
  object-fit: cover;
  border-radius: 8px;
  border: 1px solid rgba(224, 225, 221, 0.16);
}

.info-panel dl {
  margin-top: 0;
  display: grid;
  gap: 12px;
}

.info-panel dl div {
  display: grid;
  grid-template-columns: 92px 1fr;
  gap: 12px;
  align-items: baseline;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(224, 225, 221, 0.1);
}

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

.info-panel dt {
  color: var(--soft);
  font-size: 14px;
}

.info-panel dd {
  margin: 0;
  color: var(--silver);
  font-weight: 800;
}

.media-frame {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(224, 225, 221, 0.14);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
  transition: transform 220ms var(--ease-out), border-color 220ms ease, box-shadow 220ms ease;
}

.media-frame img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  transition: transform 420ms var(--ease-out), filter 220ms ease;
}

.media-frame figcaption {
  border-top: 1px solid rgba(224, 225, 221, 0.1);
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  transition: color 180ms ease, background-color 180ms ease;
}

.media-frame:hover {
  transform: translateY(-5px);
  border-color: rgba(255, 0, 127, 0.42);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.46), 0 0 36px rgba(255, 0, 127, 0.12);
}

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

.media-frame:hover figcaption {
  color: var(--silver);
  background: rgba(224, 225, 221, 0.04);
}

.system-grid,
.highlight-grid,
.character-grid,
.guide-list {
  display: grid;
  gap: 16px;
}

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

.system-card,
.highlight-grid article,
.character-card,
.guide-list article {
  position: relative;
  min-height: 100%;
  border: 1px solid rgba(224, 225, 221, 0.12);
  border-radius: 8px;
  background: rgba(13, 27, 42, 0.72);
  padding: 20px;
  overflow: hidden;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.system-card::before,
.highlight-grid article::before,
.character-card::before,
.guide-list article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--signal));
  opacity: 0;
  transform: scaleX(0.35);
  transform-origin: left;
  transition: opacity 200ms ease, transform 240ms var(--ease-out);
  pointer-events: none;
}

.system-card:hover,
.highlight-grid article:hover,
.character-card:hover,
.guide-list article:hover {
  transform: translateY(-6px);
  border-color: rgba(255, 0, 127, 0.4);
  background: rgba(18, 34, 56, 0.9);
  box-shadow: 0 24px 54px rgba(0, 0, 0, 0.34), 0 0 28px rgba(255, 0, 127, 0.1);
}

.system-card:hover::before,
.highlight-grid article:hover::before,
.character-card:hover::before,
.guide-list article:hover::before {
  opacity: 1;
  transform: scaleX(1);
}

.card-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 36px;
  height: 28px;
  border-radius: 6px;
  background: rgba(255, 0, 127, 0.16);
  color: #ff8ec6;
  font-weight: 900;
  font-size: 13px;
  transition: background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.system-card:hover .card-index {
  background: rgba(255, 0, 127, 0.26);
  color: #fff;
  box-shadow: 0 0 22px rgba(255, 0, 127, 0.18);
}

.system-card h3,
.highlight-grid h3,
.character-card h3,
.guide-list h3 {
  margin-top: 12px;
  color: #fff;
  font-size: 19px;
  line-height: 1.35;
}

.highlight-grid h3,
.character-card h3,
.guide-list h3 {
  margin-top: 0;
}

.system-card p,
.highlight-grid p,
.character-card p,
.guide-list p {
  margin-top: 8px;
  color: var(--muted);
}

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

.route-flow {
  margin-top: 22px;
  display: grid;
  gap: 12px;
  padding-left: 24px;
  color: var(--muted);
}

.route-flow strong {
  color: var(--silver);
}

.route-flow li {
  border-radius: 6px;
  padding: 8px 10px;
  transition: background-color 180ms ease, color 180ms ease, transform 180ms var(--ease-out);
}

.route-flow li:hover {
  transform: translateX(4px);
  background: rgba(224, 225, 221, 0.05);
}

.guide-layout {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.guide-list {
  margin-top: 24px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.guide-media img {
  object-position: center top;
}

.feature-mosaic {
  grid-template-columns: minmax(320px, 0.88fr) minmax(0, 1.12fr);
}

.gallery-section {
  background:
    linear-gradient(180deg, rgba(13, 27, 42, 0.86), rgba(27, 38, 59, 0.54)),
    repeating-linear-gradient(0deg, rgba(224, 225, 221, 0.025) 0 1px, transparent 1px 84px);
}

.gallery {
  border: 1px solid rgba(224, 225, 221, 0.14);
  border-radius: 8px;
  background: rgba(7, 17, 29, 0.7);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: border-color 220ms ease, box-shadow 220ms ease, transform 220ms var(--ease-out);
}

.gallery:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 0, 127, 0.34);
  box-shadow: 0 30px 82px rgba(0, 0, 0, 0.46), 0 0 34px rgba(255, 0, 127, 0.1);
}

.gallery-viewport {
  overflow: hidden;
}

.gallery-track {
  display: flex;
  transition: transform 280ms ease;
  will-change: transform;
}

.gallery-slide {
  flex: 0 0 100%;
  min-width: 100%;
}

.gallery-slide img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  background: var(--bg-deep);
  transition: transform 420ms var(--ease-out), filter 220ms ease;
}

.gallery:hover .gallery-slide img {
  filter: saturate(1.06) contrast(1.03);
}

.gallery-slide:nth-child(3) img,
.gallery-slide:nth-child(7) img {
  object-position: center top;
}

.gallery-slide figcaption {
  min-height: 52px;
  display: flex;
  align-items: center;
  border-top: 1px solid rgba(224, 225, 221, 0.1);
  padding: 12px 16px;
  color: var(--muted);
}

.gallery-controls {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  border-top: 1px solid rgba(224, 225, 221, 0.1);
  padding: 14px;
}

.gallery-controls button {
  width: 42px;
  height: 42px;
  border: 1px solid rgba(224, 225, 221, 0.18);
  border-radius: 6px;
  background: rgba(224, 225, 221, 0.06);
  color: var(--silver);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  transition: transform 180ms var(--ease-out), border-color 180ms ease, color 180ms ease, background-color 180ms ease, box-shadow 180ms ease;
}

.gallery-controls button .icon {
  width: 22px;
  height: 22px;
  margin: 0 auto;
}

.gallery-controls button:hover,
.gallery-controls button:focus-visible {
  border-color: rgba(255, 0, 127, 0.72);
  background: rgba(255, 0, 127, 0.14);
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(255, 0, 127, 0.16);
  outline: none;
}

.gallery-controls span {
  min-width: 58px;
  text-align: center;
  color: var(--muted);
  font-weight: 800;
}

.timeline {
  position: relative;
  display: grid;
  gap: 16px;
  padding-left: 0;
  list-style: none;
}

.timeline li {
  position: relative;
  border: 1px solid rgba(224, 225, 221, 0.12);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(13, 27, 42, 0.74);
  padding: 18px 20px;
  transition: transform 200ms var(--ease-out), border-color 200ms ease, background-color 200ms ease, box-shadow 200ms ease;
}

.timeline li:hover {
  transform: translateX(6px);
  border-color: rgba(255, 0, 127, 0.28);
  border-left-color: var(--signal);
  background: rgba(18, 34, 56, 0.9);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.28), 0 0 24px rgba(57, 255, 20, 0.08);
}

.timeline time {
  display: block;
  color: #ff8ec6;
  font-weight: 900;
  margin-bottom: 6px;
}

.timeline p {
  color: var(--muted);
}

.faq-layout {
  align-items: start;
  grid-template-columns: minmax(280px, 0.78fr) minmax(0, 1.22fr);
}

.faq-copy {
  position: sticky;
  top: 96px;
}

.faq-button {
  margin-top: 24px;
}

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

.faq-list details {
  border: 1px solid rgba(224, 225, 221, 0.12);
  border-radius: 8px;
  background: rgba(18, 34, 56, 0.78);
  overflow: hidden;
  transition: border-color 180ms ease, background-color 180ms ease, box-shadow 180ms ease, transform 180ms var(--ease-out);
}

.faq-list details:hover,
.faq-list details[open] {
  border-color: rgba(255, 0, 127, 0.32);
  background: rgba(18, 34, 56, 0.94);
  box-shadow: 0 16px 38px rgba(0, 0, 0, 0.28);
}

.faq-list summary {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  color: var(--silver);
  cursor: pointer;
  font-weight: 900;
  transition: color 180ms ease, background-color 180ms ease;
}

.faq-list summary:hover,
.faq-list details[open] summary {
  color: #fff;
  background: rgba(224, 225, 221, 0.04);
}

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

.faq-list summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  background: rgba(255, 0, 127, 0.14);
  color: #ff8ec6;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, color 180ms ease;
}

.faq-list details[open] summary::after {
  content: "-";
  transform: rotate(180deg);
  background: rgba(57, 255, 20, 0.14);
  color: var(--signal);
}

.faq-list details p {
  border-top: 1px solid rgba(224, 225, 221, 0.1);
  padding: 16px 18px 18px;
  color: var(--muted);
}

.cta-band {
  padding: 72px 0;
  background:
    linear-gradient(120deg, rgba(255, 0, 127, 0.1), transparent 34%),
    linear-gradient(180deg, #101d2d, #0d1b2a);
  border-top: 1px solid rgba(224, 225, 221, 0.12);
}

.cta-inner {
  grid-template-columns: minmax(0, 1fr) auto;
}

.friend-links-band {
  padding: 56px 0 66px;
  background:
    linear-gradient(135deg, rgba(16, 71, 49, 0.96), rgba(27, 98, 69, 0.94)),
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent 48%);
  border-top: 1px solid rgba(224, 225, 221, 0.08);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
}

.friend-links-inner {
  text-align: center;
}

.friend-links-inner .section-kicker,
.friend-links-inner h2 {
  text-align: center;
}

.friend-links-inner h2 {
  margin-top: 10px;
  color: #fff;
  font-size: 40px;
  line-height: 1.18;
  letter-spacing: 0;
}

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

.friend-links-list a {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.95);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1.2;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.03);
  backdrop-filter: blur(6px);
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease, color 180ms ease;
}

.friend-links-list a:hover,
.friend-links-list a:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.16);
  outline: none;
}

.site-footer {
  padding: 34px 0;
  background: var(--bg-deep);
  border-top: 1px solid rgba(224, 225, 221, 0.12);
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--soft);
  font-size: 14px;
}

.footer-inner nav {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.footer-inner a:hover,
.footer-inner a:focus-visible {
  color: var(--silver);
  outline: none;
}

@media (max-width: 980px) {
  .nav-toggle {
    display: inline-block;
  }

  .nav-links {
    position: absolute;
    top: 72px;
    left: 16px;
    right: 16px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 4px;
    border: 1px solid rgba(224, 225, 221, 0.14);
    border-radius: 8px;
    background: rgba(7, 17, 29, 0.98);
    padding: 10px;
    box-shadow: var(--shadow);
  }

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

  .nav-links a {
    justify-content: center;
  }

  .nav-links .nav-cta {
    margin-left: 0;
  }

  .hero {
    min-height: 78svh;
  }

  .hero h1 {
    font-size: 50px;
  }

  .hero-lead {
    font-size: 18px;
  }

  .split-layout,
  .feature-layout,
  .guide-layout,
  .feature-mosaic,
  .faq-layout,
  .cta-inner {
    grid-template-columns: 1fr;
  }

  .faq-copy {
    position: static;
  }

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

  .friend-links-inner h2 {
    font-size: 32px;
  }
}

@media (max-width: 720px) {
  body {
    font-size: 15px;
  }

  .nav-shell,
  .section-inner {
    width: min(100% - 24px, 1180px);
  }

  .brand span {
    max-width: 190px;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .hero-inner {
    padding: 74px 0 46px;
  }

  .hero h1 {
    font-size: 40px;
  }

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

  .hero-actions,
  .button {
    width: 100%;
  }

  .hero-facts,
  .system-grid,
  .highlight-grid,
  .character-grid,
  .guide-list {
    grid-template-columns: 1fr;
  }

  .hero-facts div {
    min-height: 72px;
  }

  .hero-keywords {
    margin-top: 20px;
  }

  .hero-keywords span {
    width: 100%;
    justify-content: center;
  }

  .friend-links-band {
    padding: 48px 0 56px;
  }

  .friend-links-inner h2 {
    font-size: 28px;
  }

  .friend-links-list {
    gap: 10px;
  }

  .friend-links-list a {
    width: 100%;
    justify-content: center;
  }

  .section {
    padding: 68px 0;
  }

  .section-heading h2,
  .section-copy h2,
  .guide-layout h2,
  .faq-copy h2,
  .cta-inner h2 {
    font-size: 30px;
  }

  .info-panel dl div {
    grid-template-columns: 1fr;
    gap: 2px;
  }

  .gallery-slide figcaption {
    min-height: 70px;
  }
}

@media (max-width: 420px) {
  .hero h1 {
    font-size: 34px;
  }

  .section-heading h2,
  .section-copy h2,
  .guide-layout h2,
  .faq-copy h2,
  .cta-inner h2 {
    font-size: 26px;
  }

  .nav-shell {
    min-height: 64px;
  }

  .nav-links {
    top: 64px;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
  }
}
