:root {
  color-scheme: dark;
  --void: #041016;
  --ink: #eef8f7;
  --muted: #a9bdc1;
  --panel: #081a22;
  --panel-2: #0c2530;
  --line: rgba(111, 202, 221, .22);
  --spirit: #64d9ee;
  --spirit-strong: #1cb3dc;
  --jade: #72ad91;
  --gold: #d7b66b;
  --danger: #d96054;
  --paper: #f0ece1;
  --paper-2: #faf8f1;
  --paper-ink: #12252b;
  --paper-muted: #52666a;
  --paper-line: #ccd2cc;
  --max: 1240px;
  --reading: 760px;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Noto Sans SC", "Source Han Sans SC", "Microsoft YaHei UI", "PingFang SC", system-ui, sans-serif;
  --shadow: 0 28px 80px rgba(0, 0, 0, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body {
  margin: 0;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 85% 12%, rgba(40, 162, 197, .09), transparent 30rem),
    radial-gradient(circle at 5% 38%, rgba(92, 145, 111, .07), transparent 26rem),
    var(--void);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1rem;
  line-height: 1.72;
}
button, input, summary { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
h1, h2, h3, p { text-wrap: pretty; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid var(--spirit); outline-offset: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; left: 1rem; top: -5rem; z-index: 200; padding: .7rem 1rem; background: #fff; color: #000; }
.skip-link:focus { top: 1rem; }

.prototype-ribbon {
  min-height: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: .7rem;
  padding: .35rem 1rem;
  background: #102933;
  color: #e0eef0;
  font-size: .875rem;
}
.prototype-ribbon span { color: #9bb5ba; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 76px;
  display: grid;
  grid-template-columns: minmax(150px, 1fr) auto minmax(150px, 1fr);
  align-items: center;
  gap: 2rem;
  padding: 0 clamp(1.1rem, 4vw, 4rem);
  border-bottom: 1px solid rgba(255, 255, 255, .1);
  background: rgba(4, 16, 22, .9);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  transition: min-height .2s ease, background .2s ease;
}
.site-header.is-scrolled { min-height: 64px; background: rgba(4, 16, 22, .97); }
.brand { justify-self: start; }
.brand img { width: 142px; height: auto; object-fit: contain; object-position: left center; }
.main-nav { display: flex; align-items: stretch; gap: clamp(.9rem, 1.8vw, 1.8rem); color: #c6d8db; }
.main-nav a { position: relative; display: grid; place-items: center; min-height: 64px; font-size: .9375rem; white-space: nowrap; }
.main-nav a::after { content: ""; position: absolute; left: 50%; bottom: 9px; width: 0; height: 2px; background: var(--spirit); transition: .2s ease; }
.main-nav a:hover::after, .main-nav a.is-current::after { left: 0; width: 100%; }
.header-cta { justify-self: end; }
.menu-toggle { display: none; }

.button,
.button-secondary,
.text-link,
.filter-button,
.icon-button {
  min-height: 46px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  border: 0;
  border-radius: 4px;
  cursor: pointer;
  font-weight: 750;
}
.button { padding: .78rem 1.2rem; background: linear-gradient(135deg, #9cebf1, var(--spirit-strong)); color: #031419; box-shadow: 0 12px 34px rgba(28, 179, 220, .22); }
.button:hover { filter: brightness(1.06); transform: translateY(-1px); }
.button-secondary { padding: .76rem 1.15rem; border: 1px solid rgba(226, 244, 245, .33); background: rgba(5, 24, 31, .72); color: #eff9fa; }
.text-link { min-height: auto; justify-content: flex-start; color: var(--spirit); }
.text-link::after { content: "→"; }
.header-cta .button { min-height: 42px; padding: .62rem .95rem; font-size: .9rem; }

.shell { width: min(var(--max), calc(100% - 2.5rem)); margin-inline: auto; }
.section { padding-block: clamp(4.5rem, 8vw, 7.5rem); }
.section-tight { padding-block: clamp(3rem, 5vw, 4.6rem); }
.eyebrow { margin: 0 0 .8rem; color: var(--spirit); font-size: .875rem; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.kicker-gold { color: var(--gold); }
.section-heading { max-width: 820px; margin-bottom: 2.4rem; }
.section-heading h2,
.page-hero h1,
.article-header h1,
.cta-band h2 {
  margin: 0;
  font-family: var(--serif);
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -.035em;
}
.section-heading h2 { font-size: clamp(2.2rem, 4.4vw, 4.1rem); }
.section-heading > p:last-child { color: var(--muted); font-size: 1.0625rem; }
.split-heading { max-width: none; display: grid; grid-template-columns: 1fr .75fr; gap: 6vw; align-items: end; }
.split-heading > p { margin-bottom: .4rem; }
.status {
  display: inline-flex;
  align-items: center;
  gap: .42rem;
  min-height: 30px;
  padding: .2rem .58rem;
  border: 1px solid rgba(100, 217, 238, .3);
  color: #c8eef4;
  background: rgba(30, 112, 132, .16);
  font-size: .875rem;
  font-weight: 700;
}
.status::before { content: ""; width: 7px; height: 7px; background: var(--spirit); transform: rotate(45deg); }
.status.gold { border-color: rgba(215, 182, 107, .32); color: #f0ddb0; background: rgba(125, 96, 35, .14); }
.status.gold::before { background: var(--gold); }
.meta-row { display: flex; flex-wrap: wrap; gap: .55rem .9rem; align-items: center; color: #a7bdc1; font-size: .875rem; }

.hero { position: relative; overflow: hidden; padding-block: clamp(3.4rem, 7vw, 7rem); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .2; background-image: linear-gradient(rgba(100, 217, 238, .15) 1px, transparent 1px), linear-gradient(90deg, rgba(100, 217, 238, .15) 1px, transparent 1px); background-size: 64px 64px; mask-image: linear-gradient(90deg, #000, transparent 44%); -webkit-mask-image: linear-gradient(90deg, #000, transparent 44%); }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(320px, .82fr) minmax(520px, 1.18fr); gap: clamp(2rem, 5vw, 5.5rem); align-items: center; }
.hero-copy h1 { margin: 0; font-family: var(--serif); font-size: clamp(3.1rem, 6vw, 6.5rem); line-height: 1; letter-spacing: -.055em; }
.hero-copy .lead { max-width: 620px; color: #bfd0d3; font-size: clamp(1rem, 1.3vw, 1.18rem); }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.7rem; }
.hero-facts { display: grid; gap: .45rem; margin: 1.7rem 0 0; padding: 0; list-style: none; color: #adc0c4; }
.hero-facts li { display: flex; gap: .75rem; }
.hero-facts span { color: var(--gold); font: 800 .8125rem/2 var(--sans); }
.hero-visual { position: relative; }
.hero-visual::before { content: ""; position: absolute; inset: -18px 22px 18px -18px; z-index: -1; border: 1px solid var(--line); background: linear-gradient(135deg, rgba(100, 217, 238, .08), transparent); }
.media-frame { position: relative; overflow: hidden; border: 1px solid rgba(139, 220, 232, .28); background: #02090d; box-shadow: var(--shadow); }
.media-frame img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: contain; }
.media-caption { display: flex; justify-content: space-between; gap: 1rem; margin: .65rem 0 0; color: #9db2b7; font-size: .875rem; }
.media-caption strong { color: #d8e8e9; font-weight: 700; }
.expand-button { position: absolute; right: .75rem; top: .75rem; min-height: 42px; padding: .45rem .7rem; border: 1px solid rgba(255,255,255,.3); background: rgba(3, 14, 18, .84); color: #fff; cursor: pointer; }

.fact-strip { border-block: 1px solid var(--line); background: rgba(8, 27, 35, .74); }
.fact-strip .shell { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact-strip article { min-height: 110px; padding: 1.2rem 1.4rem; border-left: 1px solid var(--line); }
.fact-strip article:last-child { border-right: 1px solid var(--line); }
.fact-strip strong { display: block; color: #fff; font-family: var(--serif); font-size: 1.25rem; }
.fact-strip span { color: var(--muted); font-size: .875rem; }

.scale-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.scale-card { border: 1px solid var(--line); background: var(--panel); }
.scale-card img { width: 100%; aspect-ratio: 16 / 9; object-fit: contain; background: #02090d; }
.scale-card .card-body { padding: 1.3rem; }
.scale-card small { color: var(--spirit); font-size: .875rem; font-weight: 800; letter-spacing: .12em; }
.scale-card h3 { margin: .25rem 0 .5rem; font-family: var(--serif); font-size: 1.55rem; }
.scale-card p { margin: 0; color: var(--muted); }

.cause-section { border-block: 1px solid var(--line); background: linear-gradient(120deg, rgba(10, 35, 44, .9), rgba(4, 16, 22, .98)); }
.cause-layout { display: grid; grid-template-columns: .72fr 1.28fr; gap: clamp(2rem, 6vw, 6rem); align-items: center; }
.cause-layout .section-heading { margin: 0; }
.cause-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: .7rem; margin: 0; padding: 0; list-style: none; }
.cause-flow li { position: relative; min-height: 150px; padding: 1rem; border: 1px solid rgba(100, 217, 238, .23); background: rgba(4, 18, 24, .82); }
.cause-flow li:not(:last-child)::after { content: "→"; position: absolute; z-index: 2; top: 50%; right: -.65rem; color: var(--spirit); transform: translate(50%, -50%); }
.cause-flow span { color: var(--gold); font-size: .875rem; }
.cause-flow strong { display: block; margin-top: 1.2rem; line-height: 1.35; }

.paper-section { background: var(--paper); color: var(--paper-ink); }
.paper-section .eyebrow { color: #247991; }
.paper-section .section-heading > p:last-child { color: var(--paper-muted); }
.archive-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: 2.2rem; }
.archive-index { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--paper-line); background: var(--paper-line); }
.archive-index a { min-height: 132px; padding: 1.15rem; background: var(--paper-2); transition: background .18s ease; }
.archive-index a:hover { background: #e5f2f1; }
.archive-index strong { display: block; font-family: var(--serif); font-size: 1.25rem; }
.archive-index span { color: var(--paper-muted); font-size: .875rem; }
.featured-entry { padding: clamp(1.4rem, 3vw, 2.4rem); background: #102b34; color: #edf7f5; }
.featured-entry .status { margin-bottom: 1.4rem; }
.featured-entry h3 { margin: 0; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 3.25rem); }
.featured-entry p { color: #b8cbce; }

.news-grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 1.2rem; }
.dev-card { display: grid; grid-template-columns: .9fr 1.1fr; min-height: 320px; border: 1px solid var(--line); background: var(--panel); }
.dev-card img { width: 100%; height: 100%; object-fit: contain; background: #02090d; }
.dev-card > div { padding: 1.6rem; }
.dev-card h3 { margin: .7rem 0 .55rem; font-family: var(--serif); font-size: 1.7rem; }
.dev-card p { color: var(--muted); }
.mini-faq { padding: 1.2rem 1.4rem; border: 1px solid var(--line); background: var(--panel); }
.mini-faq details { border-bottom: 1px solid rgba(255,255,255,.1); padding: .8rem 0; }
.mini-faq details:last-child { border-bottom: 0; }
.mini-faq summary { cursor: pointer; font-weight: 750; }
.mini-faq p { color: var(--muted); }

.cta-band { position: relative; overflow: hidden; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; padding: clamp(2rem, 5vw, 4.5rem); border: 1px solid rgba(100, 217, 238, .32); background: linear-gradient(120deg, #0a2a35, #071820); }
.cta-band::after { content: ""; position: absolute; right: -90px; width: 280px; height: 280px; border: 1px solid rgba(100, 217, 238, .22); border-radius: 50%; box-shadow: inset 0 0 60px rgba(100, 217, 238, .05); }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(2.1rem, 4vw, 3.9rem); }
.cta-band p { max-width: 700px; color: var(--muted); }

.page-hero { padding-block: clamp(4rem, 8vw, 7rem); border-bottom: 1px solid var(--line); background: linear-gradient(120deg, rgba(9, 36, 46, .95), rgba(4, 16, 22, .95)); }
.page-hero .shell { display: grid; grid-template-columns: 1fr .7fr; gap: 6vw; align-items: end; }
.page-hero h1 { font-size: clamp(3rem, 6vw, 6rem); }
.page-hero .lead { color: #bed0d3; font-size: 1.125rem; }
.page-hero-note { padding: 1.2rem; border-left: 2px solid var(--gold); color: #b8c9cc; background: rgba(255,255,255,.035); }

.system-overview { display: grid; grid-template-columns: repeat(6, 1fr); margin: 2rem 0 0; padding: 0; list-style: none; border: 1px solid var(--line); }
.system-overview li { min-height: 118px; padding: 1rem; border-right: 1px solid var(--line); background: var(--panel); }
.system-overview li:last-child { border-right: 0; }
.system-overview span { color: var(--gold); font-size: .875rem; }
.system-overview strong { display: block; margin-top: .8rem; }
.gameplay-section { display: grid; grid-template-columns: minmax(440px, 1.12fr) minmax(320px, .88fr); gap: clamp(2rem, 5vw, 5rem); align-items: center; padding-block: clamp(3.5rem, 7vw, 6.5rem); border-bottom: 1px solid rgba(111, 202, 221, .12); }
.gameplay-section:nth-child(even) .gameplay-media { order: 2; }
.gameplay-copy h2 { margin: .65rem 0 .8rem; font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.8rem); line-height: 1.1; }
.gameplay-copy > p { color: var(--muted); }
.gameplay-copy ul { display: grid; gap: .55rem; padding-left: 1.2rem; color: #c2d3d5; }

.paper-main { background: var(--paper); color: var(--paper-ink); min-height: 60vh; }
.paper-main .eyebrow { color: #1e758c; }
.world-intro { display: grid; grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; }
.world-intro p { color: var(--paper-muted); }
.category-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; border: 1px solid var(--paper-line); background: var(--paper-line); }
.category-card { min-height: 170px; padding: 1.35rem; background: var(--paper-2); }
.category-card small { color: #2a788c; font-size: .875rem; font-weight: 800; }
.category-card h2 { margin: .35rem 0 .4rem; font-family: var(--serif); font-size: 1.45rem; }
.category-card p { margin: 0; color: var(--paper-muted); font-size: .9375rem; }
.filter-row { display: flex; flex-wrap: wrap; gap: .55rem; margin: 1.4rem 0 1.8rem; }
.filter-button { padding: .55rem .82rem; border: 1px solid #aebfbe; background: transparent; color: var(--paper-ink); }
.filter-button.is-active { border-color: #176d84; background: #176d84; color: #fff; }
.entry-list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.entry-card { display: flex; flex-direction: column; min-height: 230px; padding: 1.3rem; border: 1px solid var(--paper-line); background: rgba(255,255,255,.48); }
.entry-card .entry-type { color: #26768b; font-size: .875rem; font-weight: 800; }
.entry-card h3 { margin: .55rem 0 .45rem; font-family: var(--serif); font-size: 1.45rem; }
.entry-card p { margin: 0; color: var(--paper-muted); }
.entry-card .text-link { margin-top: auto; padding-top: 1rem; color: #176d84; }
.entry-card.is-placeholder { position: relative; border-style: dashed; background: #edf0e8; }
.entry-card.is-placeholder::after { content: "准备中"; align-self: start; justify-self: start; margin-top: auto; padding: .28rem .55rem; border: 1px solid rgba(19, 68, 75, .22); border-radius: 999px; color: #49656a; font-size: .75rem; font-weight: 800; letter-spacing: .08em; }

.breadcrumbs { display: flex; flex-wrap: wrap; gap: .45rem; padding: 1rem 0; color: #a7bdc1; font-size: .875rem; }
.breadcrumbs a { color: var(--spirit); }
.article-shell { width: min(1120px, calc(100% - 2.5rem)); margin-inline: auto; }
.article-header { padding: clamp(3.5rem, 7vw, 6rem) 0 2.5rem; }
.article-header h1 { max-width: 900px; font-size: clamp(3rem, 6vw, 5.7rem); }
.article-header .lead { max-width: 820px; color: var(--muted); font-size: 1.125rem; }
.meta-line { display: flex; flex-wrap: wrap; gap: .55rem 1.25rem; margin-top: 1.3rem; color: #9fb5b9; font-size: .875rem; }
.meta-line span { padding-left: .8rem; border-left: 2px solid rgba(100,217,238,.35); }
.article-layout { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 4.5rem; align-items: start; padding-bottom: 6rem; }
.article-body { min-width: 0; padding: clamp(1.5rem, 4vw, 3.5rem); background: var(--paper-2); color: var(--paper-ink); box-shadow: 0 20px 70px rgba(0,0,0,.2); }
.article-body h2 { margin: 2.6rem 0 .7rem; font-family: var(--serif); font-size: 2rem; }
.article-body h2:first-child { margin-top: 0; }
.article-body h3 { margin-top: 2rem; font-family: var(--serif); font-size: 1.35rem; }
.article-body p, .article-body li { color: #263c41; }
.article-body blockquote { margin: 1.7rem 0; padding: .4rem 0 .4rem 1.3rem; border-left: 3px solid #2e8196; color: #2b4d55; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1.6rem 0; font-size: .9375rem; }
.article-body th, .article-body td { padding: .75rem; border: 1px solid #c8d0cc; text-align: left; vertical-align: top; }
.article-body th { background: #dfeceb; }
.article-body a { color: #11667d; text-decoration: underline; text-underline-offset: .15em; }
.article-body .callout { padding: 1rem 1.15rem; border: 1px solid #abc2c3; border-left: 4px solid #267e94; background: #eaf3f1; }
.article-figure { margin: 0 0 2rem; }
.article-figure button { width: 100%; padding: 0; border: 0; background: transparent; cursor: zoom-in; }
.article-figure img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.article-figure figcaption { margin-top: .55rem; color: #53676c; font-size: .875rem; }
.status-inline { display: inline-block; padding: .08rem .35rem; border: 1px solid #81999d; color: #40595e; font-size: .75rem; font-weight: 750; }
.article-aside { position: sticky; top: 92px; padding: 1.2rem; border: 1px solid var(--line); background: var(--panel); }
.article-aside strong { display: block; color: var(--gold); }
.article-aside nav { display: grid; gap: .55rem; margin-top: .8rem; }
.article-aside a { color: #bfd1d4; font-size: .9375rem; }
.article-aside a:hover { color: var(--spirit); }

.log-list { display: grid; gap: 1rem; }
.log-row { display: grid; grid-template-columns: 260px 1fr auto; gap: 1.5rem; align-items: center; padding: 1rem; border: 1px solid var(--line); background: var(--panel); }
.log-row img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.log-row h2 { margin: .4rem 0; font-family: var(--serif); font-size: 1.6rem; }
.log-row p { margin: 0; color: var(--muted); }
.status-chip { display: inline-flex; min-height: 28px; align-items: center; padding: .2rem .55rem; border: 1px solid currentColor; font-size: .75rem; font-weight: 800; letter-spacing: .06em; }
.status-dev { color: var(--spirit); }
.status-target { color: var(--gold); }
.editorial-spec { margin-top: 2rem; padding: 1.4rem 1.6rem; border-left: 3px solid var(--gold); background: rgba(215,182,107,.08); }
.evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-block: 1.5rem; }
.evidence-grid figure { margin: 0; }
.evidence-grid figcaption { margin-top: .5rem; color: #53676c; font-size: .875rem; }

.faq-toolbar { display: grid; grid-template-columns: 1fr auto; gap: 1rem; align-items: center; margin-bottom: 1.5rem; }
.faq-toolbar input { width: 100%; min-height: 52px; padding: .75rem 1rem; border: 1px solid var(--paper-line); background: #fff; color: var(--paper-ink); }
.faq-toolbar span { color: var(--paper-muted); font-size: .9375rem; }
.faq-groups { display: grid; gap: 2.2rem; }
.faq-group h2 { font-family: var(--serif); font-size: 1.75rem; }
.faq-list { border-top: 1px solid var(--paper-line); }
.faq-list details { border-bottom: 1px solid var(--paper-line); padding: 1rem .25rem; }
.faq-list summary { cursor: pointer; font-weight: 750; }
.faq-list p { max-width: 860px; color: var(--paper-muted); }

.community-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.community-card { min-height: 300px; display: flex; flex-direction: column; padding: 1.5rem; border: 1px solid var(--line); background: var(--panel); }
.community-mark {
  width: 64px;
  height: 64px;
  display: grid;
  place-items: center;
}
.community-mark img { width: 56px; height: 56px; object-fit: contain; }
.community-card h2 { margin: 1.5rem 0 .5rem; font-family: var(--serif); font-size: 1.7rem; }
.community-card p { color: var(--muted); }
.community-card .button-secondary { margin-top: auto; }
.channel-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 2.4rem; border: 1px solid var(--line); background: var(--line); }
.channel-promise article { padding: 1.3rem; background: var(--panel); }
.channel-promise strong { display: block; color: var(--gold); }
.channel-promise p { color: var(--muted); }
.safe-panel { padding: clamp(1.4rem, 4vw, 2.5rem); border: 1px solid var(--line); background: linear-gradient(135deg, rgba(100,217,238,.07), rgba(215,182,107,.05)); }
.safe-panel h2 { margin: .4rem 0 1rem; font-family: var(--serif); font-size: clamp(2rem, 4vw, 3rem); }
.safe-panel li { margin-block: .55rem; color: var(--muted); }
.faq-empty { padding: 1.5rem; border: 1px dashed var(--paper-line); color: var(--paper-muted); text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

.site-footer { padding-block: 3rem; border-top: 1px solid var(--line); background: #030b0f; }
.footer-grid { display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: start; }
.site-footer img { width: 142px; height: auto; object-fit: contain; }
.site-footer p { max-width: 660px; color: #91a9ae; font-size: .875rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 1rem 1.3rem; color: #bfd0d3; font-size: .9375rem; }
.footer-cols { display: grid; gap: 1rem; justify-items: end; }
.footer-legal-line { margin-top: .8rem; }
.footer-beian a { color: #91a9ae; }
.rich-body img,
.rich-body video { max-width: 100%; height: auto; }
.rich-body iframe { max-width: 100%; }

dialog { width: min(540px, calc(100% - 2rem)); padding: 0; border: 1px solid rgba(100,217,238,.35); background: #071b23; color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.6); }
dialog::backdrop { background: rgba(1,7,10,.8); backdrop-filter: blur(5px); }
.dialog-body { padding: 2rem; }
.dialog-body h2 { margin: .3rem 0 .7rem; font-family: var(--serif); font-size: 2rem; }
.dialog-body p { color: var(--muted); }
.dialog-close { position: absolute; right: .75rem; top: .75rem; width: 44px; height: 44px; border: 1px solid rgba(255,255,255,.25); background: transparent; color: #fff; cursor: pointer; }
.lightbox { width: min(1500px, calc(100% - 2rem)); max-width: none; }
.lightbox img { width: 100%; max-height: 80vh; object-fit: contain; background: #02080b; }
.lightbox p { margin: 0; padding: .8rem 1rem; color: var(--muted); }
.not-found { min-height: 68vh; display: grid; place-items: center; text-align: center; }
.not-found img { width: 120px; margin: 0 auto 1rem; }
.not-found h1 { margin: 0; font-family: var(--serif); font-size: clamp(4rem, 12vw, 9rem); }

@media (max-width: 1080px) {
  .site-header { grid-template-columns: 150px 1fr auto; gap: 1rem; }
  .main-nav { gap: .85rem; }
  .main-nav a { font-size: .875rem; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: 800px; }
  .hero-visual { max-width: 960px; }
  .cause-layout, .archive-layout { grid-template-columns: 1fr; }
  .cause-flow { grid-template-columns: repeat(5, minmax(120px, 1fr)); overflow-x: auto; padding-bottom: .5rem; }
  .entry-list { grid-template-columns: repeat(2, 1fr); }
  .system-overview { grid-template-columns: repeat(3, 1fr); }
  .system-overview li:nth-child(3) { border-right: 0; }
  .system-overview li:nth-child(-n+3) { border-bottom: 1px solid var(--line); }
}

@media (max-width: 860px) {
  .prototype-ribbon span { display: none; }
  .site-header { min-height: 66px; grid-template-columns: 1fr auto auto; }
  .brand img { width: 124px; height: auto; }
  .menu-toggle { width: 46px; height: 46px; display: grid; place-content: center; gap: 5px; border: 1px solid rgba(255,255,255,.24); background: transparent; cursor: pointer; }
  .menu-toggle span { width: 22px; height: 2px; display: block; background: #fff; }
  .main-nav { position: absolute; left: 0; right: 0; top: 100%; display: none; padding: .8rem 1.25rem 1.25rem; background: rgba(4,16,22,.99); border-bottom: 1px solid var(--line); }
  .main-nav.is-open { display: grid; }
  .main-nav a { min-height: 48px; justify-items: start; border-bottom: 1px solid rgba(255,255,255,.08); }
  .main-nav a::after { display: none; }
  .header-cta .button { width: 68px; padding: 0 .5rem; font-size: 0; }
  .header-cta .button::before { content: "愿望单"; font-size: .8125rem; }
  .split-heading, .page-hero .shell, .news-grid, .world-intro { grid-template-columns: 1fr; gap: 1.4rem; }
  .scale-grid, .community-grid, .channel-promise { grid-template-columns: 1fr; }
  .fact-strip .shell { grid-template-columns: repeat(2, 1fr); }
  .fact-strip article:nth-child(2) { border-right: 1px solid var(--line); }
  .fact-strip article:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .dev-card { grid-template-columns: 1fr; }
  .dev-card img { aspect-ratio: 16/9; }
  .gameplay-section { grid-template-columns: 1fr; }
  .gameplay-section:nth-child(even) .gameplay-media { order: 0; }
  .article-layout { grid-template-columns: 1fr; gap: 1.5rem; }
  .article-aside { position: static; order: -1; }
  .log-row { grid-template-columns: 180px 1fr; }
  .log-row > .text-link { grid-column: 2; }
  .cta-band { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .shell, .article-shell { width: min(100% - 1.5rem, var(--max)); }
  .section { padding-block: 3.8rem; }
  .hero { padding-block: 3.4rem 4.2rem; }
  .hero-copy h1 { font-size: clamp(2.75rem, 13vw, 4.2rem); }
  .hero-actions > * { width: 100%; }
  .hero-visual::before { display: none; }
  .media-caption { display: block; }
  .fact-strip .shell { width: 100%; }
  .fact-strip article { padding: 1rem; }
  .archive-index, .category-grid, .entry-list, .evidence-grid { grid-template-columns: 1fr; }
  .system-overview { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
  .system-overview li { flex: 0 0 76vw; border-right: 1px solid var(--line); border-bottom: 0 !important; scroll-snap-align: start; }
  .log-row { grid-template-columns: 1fr; }
  .log-row > .text-link { grid-column: auto; }
  .faq-toolbar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-cols { justify-items: start; }
  .footer-links { justify-content: flex-start; }
  .article-body { padding: 1.25rem; }
  .article-body table { display: block; overflow-x: auto; }
}

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

@media print {
  .prototype-ribbon, .site-header, .site-footer, dialog, .article-aside, .button, .button-secondary { display: none !important; }
  body, .paper-main { background: #fff; color: #000; }
  .article-body { box-shadow: none; padding: 0; }
  a { text-decoration: underline; }
}
