@charset "UTF-8";
:root {
  color-scheme: dark;
  --bg: #101211;
  --surface: #191c1a;
  --ink: #f0eee5;
  --muted: #abaea3;
  --faint: #737b73;
  --line: #343932;
  --accent: #e69a68;
  --accent-ink: #20150f;
  --sage: #c2c7a5;
  --serif: "Noto Serif SC", "Source Han Serif SC", "Songti SC", SimSun, serif;
  --sans: "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  --mono: "Cascadia Mono", Consolas, monospace;
  --motion: 550ms;
}
* { box-sizing: border-box; }
html { background: var(--bg); }
body { margin: 0; color: var(--ink); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
button, a { -webkit-tap-highlight-color: transparent; }
button { color: inherit; font: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button { border: 0; background: none; }
a { color: inherit; text-decoration: none; }
button:disabled { opacity: .25; cursor: default; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 5px; }
h1:focus, main:focus { outline: none; }
[hidden] { display: none !important; }
svg { width: 24px; height: 24px; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; }
.skip-link { position: fixed; z-index: 100; top: 10px; left: 10px; padding: 14px; background: var(--accent); color: var(--accent-ink); transform: translateY(-180%); }
.skip-link:focus { transform: translateY(0); }
.app-shell { min-height: 100svh; min-height: 100dvh; display: flex; flex-direction: column; overflow: clip; }
.site-header { height: 108px; margin: 0 4%; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 28px; flex-shrink: 0; }
.brand { display: inline-flex; align-items: center; gap: 15px; flex-shrink: 0; }
.brand-mark { width: 44px; height: 44px; color: var(--sage); stroke-width: 1.1; overflow: visible; }
.brand strong { display: block; font-size: 17px; font-weight: 600; letter-spacing: 4px; }
.brand-en { display: block; margin-top: 5px; color: var(--muted); font-family: var(--mono); font-size: 9px; letter-spacing: 3px; }
.header-center { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.live-dot { display: inline-block; width: 5px; height: 5px; border-radius: 50%; background: var(--sage); flex: 0 0 auto; }
.header-divider { color: var(--faint); padding: 0 5px; }
.header-actions { display: flex; align-items: center; gap: 18px; min-height: 44px; }
.text-button { min-height: 44px; padding: 8px 0; font-size: 12px; letter-spacing: 1px; color: var(--muted); transition: color 180ms; }
.text-button:hover { color: var(--ink); }
.text-button span { margin-left: 10px; font-size: 17px; }
.action-divider { height: 16px; width: 1px; background: var(--line); }
.icon-button { width: 44px; min-width: 44px; height: 44px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; transition: background 180ms, color 180ms; }
.icon-button:hover:not(:disabled) { color: var(--accent); background: #ffffff07; }
main { flex: 1; display: flex; width: 100%; }
.prologue { display: flex; width: 100%; padding: 30px 4% 10px; gap: 25px; }
.chapter-rail { width: 48px; padding: 9px 0 95px; display: flex; flex-direction: column; align-items: center; flex-shrink: 0; }
.rail-label { font-size: 11px; color: var(--sage); letter-spacing: 3px; writing-mode: vertical-rl; }
.rail-line { width: 1px; min-height: 25px; max-height: 60px; background: var(--line); flex: 1; margin: 20px 0 9px; }
.chapter-dots { display: flex; flex-direction: column; gap: 1px; }
.chapter-dot { display: grid; place-items: center; width: 44px; height: 36px; padding: 0; }
.chapter-dot span { width: 5px; height: 5px; border: 1px solid var(--faint); border-radius: 50%; transition: background 180ms, box-shadow 180ms; }
.chapter-dot[aria-current="step"] span { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 5px #e69a6818; }
.chapter-dot:hover span { border-color: var(--ink); }
.chapter-dot.visited span { background: var(--muted); border-color: var(--muted); }
.rail-end { writing-mode: vertical-rl; font-family: var(--mono); font-size: 9px; letter-spacing: 3px; color: var(--faint); margin-top: 32px; }
.reader { min-width: 0; flex: 1; display: flex; flex-direction: column; }
.reader-meta { display: flex; align-items: center; justify-content: space-between; margin-bottom: 15px; min-height: 18px; font-family: var(--mono); color: var(--muted); font-size: 10px; letter-spacing: 1.8px; }
.archive-tag { display: inline-flex; gap: 8px; align-items: center; font-family: var(--sans); font-size: 10px; letter-spacing: 2px; }
.archive-tag span { height: 6px; width: 6px; border: 1px solid var(--faint); transform: rotate(45deg); }
.viewport { overflow: hidden; position: relative; width: 100%; flex: 1; min-height: 470px; touch-action: pan-y pinch-zoom; }
.slides { display: flex; width: 100%; height: 100%; transition: transform var(--motion) cubic-bezier(.22,.7,.2,1); }
.slides.dragging { transition: none; cursor: grabbing; }
.slide { flex: 0 0 100%; width: 100%; min-width: 0; display: flex; flex-direction: column; position: relative; }
.comic-art { position: relative; flex: 1; min-height: 405px; overflow: hidden; border: 1px solid #555b4d; background: #242923; isolation: isolate; }
.comic-art::after { content: ""; position: absolute; z-index: 4; pointer-events: none; inset: 7px; border: 1px solid #e9eed51b; }
.comic-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 44%; user-select: none; }
.art-scrim { position: absolute; inset: 0; background: linear-gradient(180deg, #09100e2b 0%, #09100e00 25%, #0c110e14 40%, #090d0bce 100%), linear-gradient(90deg, #0c110e56, transparent 70%); }
.panel-heading { position: absolute; top: 30px; left: 35px; display: flex; align-items: center; gap: 17px; font-size: 11px; letter-spacing: 3px; z-index: 2; }
.panel-heading > span:first-child { border: 1px solid #edeed256; padding: 7px 9px; background: #1216124a; }
.panel-heading i { width: 40px; height: 1px; background: #e6e7d956; }
.art-coordinate { position: absolute; top: 34px; right: 35px; z-index: 2; font-size: 10px; letter-spacing: 2px; display: flex; gap: 10px; align-items: center; }
.coordinate-cross { font-family: var(--mono); color: var(--accent); font-size: 17px; }
.narration { position: absolute; z-index: 2; bottom: 38px; left: 4.2%; max-width: 82%; text-shadow: 0 2px 12px #090d0b50; }
.narration-rule { display: block; width: 27px; height: 2px; margin-bottom: 18px; background: var(--accent); }
.narration > p:first-of-type { font-family: var(--serif); margin: 0 0 10px; font-size: clamp(16px, 1.5vw, 23px); letter-spacing: 3px; }
.narration h1 { font-family: var(--serif); font-weight: 500; font-size: clamp(29px, 3.2vw, 52px); line-height: 1.35; letter-spacing: 4px; margin: 0 0 21px; text-wrap: balance; }
.story-copy { margin: 0; color: #e0e0d4; font-size: 13px; line-height: 1.95; letter-spacing: 1px; }
.frame-number { position: absolute; bottom: 27px; right: 33px; font-family: var(--serif); font-size: 63px; font-style: italic; line-height: 1; color: #e6e6d333; }
.caption { min-height: 45px; display: flex; align-items: center; gap: 11px; border-bottom: 1px solid var(--line); padding: 10px 1px; }
.caption-marker { display: inline-block; height: 4px; width: 4px; background: var(--accent); }
.caption p { margin: 0; font-family: var(--serif); font-size: 12px; color: var(--muted); letter-spacing: 2px; flex: 1; }
.caption-code { font-family: var(--mono); font-size: 9px; letter-spacing: 2px; color: var(--faint); }
.reader-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 20px 0 5px; min-height: 80px; }
.page-index { display: flex; align-items: center; gap: 13px; font-family: var(--mono); }
#page-current { color: var(--ink); font-size: 20px; }
#page-total { color: var(--muted); font-size: 11px; }
.index-line { width: 40px; height: 1px; background: var(--line); }
.swipe-hint { display: flex; align-items: center; gap: 12px; color: var(--muted); font-size: 11px; letter-spacing: 2px; }
.swipe-hint svg { width: 36px; height: 20px; stroke-width: 1; fill: none; }
.swipe-hint.is-final svg { display: none; }
.page-actions { display: flex; align-items: center; gap: 18px; }
.next-button { display: inline-flex; align-items: center; justify-content: space-between; gap: 30px; background: var(--accent); color: var(--accent-ink); min-height: 48px; padding: 12px 22px; font-size: 12px; letter-spacing: 2px; font-weight: 600; transition: background 180ms, transform 180ms; }
.next-button:hover { background: #f1b58a; }
.next-button:active { transform: translateY(1px); }
.next-button svg { width: 20px; height: 20px; }
.site-footer { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 0 4%; padding: 21px 0 20px; color: var(--faint); font-size: 9px; letter-spacing: 1.4px; flex-shrink: 0; }
.site-footer > span:first-child { font-family: var(--serif); }
.footer-edition { display: flex; align-items: center; gap: 10px; font-family: var(--mono); }
.footer-edition i { height: 3px; width: 3px; background: var(--sage); }
/* Original art is not yet available: show typographic storyboards without fabricated illustrations. */
.awaiting-art { background: #20271f; }
.story-plan .awaiting-art { background: #17252b; }
.story-search .awaiting-art { background: #141e28; }
.story-mars .awaiting-art { background: #3b2922; }
.story-arrival .awaiting-art { background: #413024; }
.intertitle { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: flex-end; justify-content: flex-start; padding: 8% 6%; opacity: .65; }
.intertitle > span { font-size: 10px; letter-spacing: 6px; color: var(--muted); }
.intertitle strong { font-family: var(--serif); font-size: clamp(36px, 6vw, 95px); font-weight: 400; letter-spacing: 12px; color: #d8d9bf; margin-top: 16px; }
.intertitle em { font-style: normal; font-family: var(--mono); letter-spacing: 5px; font-size: 11px; color: var(--muted); margin-top: 15px; }
.awaiting-art .art-scrim { background: linear-gradient(0deg, #090d0bc4, transparent 90%); }
/* Route selection */
.choice-slide { padding: 4px 0 0; justify-content: center; }
.choice-intro { text-align: center; margin-bottom: 27px; }
.eyebrow { color: var(--accent); font-size: 10px; letter-spacing: 3px; font-weight: 400; }
.choice-intro h1 { font-family: var(--serif); font-weight: 400; font-size: clamp(28px, 2.6vw, 40px); letter-spacing: 4px; margin: 14px 0; line-height: 1.4; }
.choice-intro h1 span { color: var(--sage); }
.choice-intro p { font-size: 12px; line-height: 1.9; color: var(--muted); letter-spacing: 1px; margin: 0; }
.route-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; width: min(100%, 1000px); margin: 0 auto; }
.route-card { position: relative; overflow: hidden; text-align: left; border: 1px solid var(--line); padding: 25px 30px; min-height: 285px; display: flex; flex-direction: column; justify-content: space-between; isolation: isolate; background: #1c272a; transition: border-color 200ms; }
.mars-card { border-color: #a16d47; background: #3a2b23; }
.route-image { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: 50% 35%; transition: transform 650ms; }
.route-card::after { position: absolute; content: ""; z-index: -1; inset: 0; background: linear-gradient(0deg, #0b100eeb, #0b100e10), linear-gradient(90deg, #0b100e40, transparent); }
.route-card:hover { border-color: var(--sage); }
.route-card:hover .route-image { transform: scale(1.035); }
.mars-card:hover { border-color: var(--accent); }
.route-top { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-family: var(--mono); font-size: 10px; letter-spacing: 2px; color: #d5d7c7; }
.route-badge { font-family: var(--sans); font-size: 9px; letter-spacing: 1px; padding: 5px 7px; border: 1px solid #a7ac9b66; color: #c3c7b9; }
.route-badge.available { border-color: #d39c6e7a; color: #eac49d; display: inline-flex; align-items: center; gap: 6px; }
.route-badge .live-dot { background: var(--accent); width: 4px; height: 4px; }
.route-copy { margin-top: 35px; }
.route-en { color: #d2ceba; font-family: var(--mono); font-size: 9px; letter-spacing: 2.5px; }
.route-copy h2 { font-family: var(--serif); font-weight: 400; font-size: 29px; letter-spacing: 3px; margin: 10px 0 12px; }
.route-copy p { font-size: 11px; color: #d4d4c9; letter-spacing: 1px; margin: 0 0 20px; line-height: 1.8; }
.route-action { display: flex; align-items: center; justify-content: space-between; gap: 10px; font-size: 11px; letter-spacing: 2px; color: var(--sage); padding-top: 17px; border-top: 1px solid #bac0ae3d; }
.mars-card .route-action { color: #ffc395; }
.route-action svg { height: 19px; width: 19px; }
.choice-footnote { text-align: center; font-size: 10px; letter-spacing: 2px; color: var(--muted); margin: 22px 0 5px; }
/* Selected Mars mission */
.mission { min-height: 650px; width: 100%; position: relative; padding: 65px 9% 65px 11%; isolation: isolate; background: #29271e; }
.mission-art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; }
.mission::after { content: ""; inset: 0; position: absolute; z-index: -1; background: linear-gradient(90deg, #101610f2, #10161096 55%, #10161018); }
.mission-content { max-width: 640px; }
.mission-content > .eyebrow { display: flex; align-items: center; gap: 10px; }
.mission-code { font-family: var(--mono); font-size: 10px; letter-spacing: 3px; display: block; color: var(--muted); margin-top: 38px; }
.mission h1 { font-size: clamp(35px, 4vw, 57px); line-height: 1.5; letter-spacing: 5px; font-family: var(--serif); font-weight: 400; margin: 20px 0; }
.mission-description { font-size: 13px; color: #d2d4c5; line-height: 2.1; letter-spacing: 1px; }
.mission-objective { display: flex; gap: 22px; margin-top: 35px; border-top: 1px solid #b5b49a4d; padding-top: 25px; }
.objective-number { font-family: var(--mono); font-size: 19px; color: var(--accent); padding-top: 3px; }
.mission-objective h2 { font-size: 18px; font-weight: 400; letter-spacing: 2px; margin: 11px 0; }
.mission-objective p { font-size: 12px; line-height: 2; letter-spacing: 1px; color: var(--muted); margin: 0; }
.mission-actions { display: flex; align-items: center; gap: 30px; margin-top: 30px; }
.mission-coordinate { position: absolute; right: 4%; bottom: 35px; font-family: var(--mono); font-size: 10px; line-height: 1.9; letter-spacing: 2px; color: #d6c5ac; }
/* Dialog and feedback */
dialog { padding: 36px; color: var(--ink); background: #1c221d; border: 1px solid #6f7962; max-width: min(520px, calc(100vw - 40px)); }
dialog::backdrop { background: #080c09bd; backdrop-filter: blur(5px); }
dialog h2 { font-family: var(--serif); font-weight: 400; letter-spacing: 2px; font-size: 25px; line-height: 1.5; margin: 20px 0; }
dialog p { color: var(--muted); font-size: 13px; line-height: 2; }
.dialog-actions { display: flex; justify-content: space-between; gap: 20px; margin-top: 30px; }
.dialog-actions .next-button { font-size: 11px; gap: 10px; }
.toast { position: fixed; bottom: 35px; left: 50%; transform: translate(-50%, 15px); padding: 15px 22px; border: 1px solid #66705b; color: var(--ink); font-size: 12px; background: #20271df5; max-width: min(90vw, 550px); opacity: 0; pointer-events: none; z-index: 30; transition: opacity 200ms, transform 200ms; line-height: 1.8; }
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (min-width: 1500px) {
  .app-shell { max-width: 1920px; margin: 0 auto; }
  .site-header { height: 120px; }
  .prologue { padding-top: 40px; }
  .viewport { min-height: 570px; }
  .comic-art { min-height: 515px; }
  .narration { bottom: 48px; }
  .story-copy { font-size: 15px; }
  .route-card { min-height: 350px; }
}
@media (max-width: 1050px) {
  .site-header { height: 90px; }
  .header-center { display: none; }
  .prologue { gap: 12px; padding-top: 25px; }
  .chapter-rail { width: 32px; }
  .swipe-hint { font-size: 10px; letter-spacing: 1px; gap: 6px; }
  .panel-heading { top: 25px; left: 25px; }
  .art-coordinate { top: 30px; right: 25px; font-size: 9px; }
  .narration h1 { font-size: 34px; }
  .route-card { padding: 22px; }
  .route-copy h2 { font-size: 26px; }
  .route-copy p { letter-spacing: 0; }
}
@media (max-width: 700px) {
  .site-header { margin: 0 22px; padding-top: env(safe-area-inset-top, 0px); height: calc(88px + env(safe-area-inset-top, 0px)); gap: 10px; }
  .brand { gap: 10px; }
  .brand-mark { width: 32px; height: 32px; }
  .brand strong { font-size: 13px; letter-spacing: 2px; }
  .brand-en { font-size: 8px; letter-spacing: 1.5px; }
  .header-actions { gap: 6px; }
  .action-divider { display: none; }
  .header-actions .text-button { font-size: 10px; letter-spacing: 0; }
  .header-actions .text-button span { margin-left: 3px; }
  .header-actions .icon-button { width: 36px; min-width: 36px; padding: 8px; }
  .prologue { display: block; padding: 20px 22px 5px; }
  .chapter-rail { display: none; }
  .reader-meta { font-size: 8px; letter-spacing: 1px; margin-bottom: 12px; }
  .archive-tag { font-size: 8px; letter-spacing: 1px; }
  .viewport { height: auto; min-height: 530px; flex: none; }
  .story-slide { min-height: 530px; }
  .comic-art { min-height: 475px; flex: 1; }
  .comic-art img { object-position: 61% center; }
  .art-scrim { background: linear-gradient(0deg, #090d0bf2, #090d0b4d 53%, #090d0b05 80%), linear-gradient(180deg, #090d0b70, transparent 24%); }
  .panel-heading { top: 22px; left: 21px; gap: 10px; font-size: 9px; letter-spacing: 2px; }
  .panel-heading > span:first-child { padding: 6px; }
  .panel-heading i { width: 20px; }
  .art-coordinate { top: 78px; left: 22px; right: auto; font-size: 8px; letter-spacing: 1px; gap: 7px; }
  .narration { left: 22px; bottom: 32px; max-width: calc(100% - 44px); }
  .narration-rule { margin-bottom: 17px; }
  .narration > p:first-of-type { font-size: 16px; letter-spacing: 2px; margin-bottom: 10px; }
  .narration h1 { font-size: clamp(27px, 7vw, 36px); line-height: 1.5; letter-spacing: 2px; margin-bottom: 17px; }
  .story-copy { font-size: 12px; line-height: 2; letter-spacing: .5px; }
  .story-copy br { display: none; }
  .frame-number { font-size: 45px; right: 20px; bottom: 22px; opacity: .5; }
  .caption { gap: 8px; min-height: 55px; }
  .caption p { font-size: 10px; line-height: 1.8; letter-spacing: 1px; }
  .caption-code { font-size: 8px; letter-spacing: 0; white-space: nowrap; }
  .intertitle { padding: 150px 22px 0; }
  .intertitle > span { font-size: 8px; letter-spacing: 4px; }
  .intertitle strong { font-size: 39px; letter-spacing: 5px; margin-top: 13px; }
  .intertitle em { font-size: 8px; letter-spacing: 1.3px; margin-top: 10px; }
  .reader-footer { flex-wrap: wrap; gap: 13px; padding-top: 16px; }
  .page-index { gap: 9px; }
  #page-current { font-size: 19px; }
  #page-total { font-size: 10px; }
  .index-line { width: 25px; }
  .page-actions { gap: 8px; margin-left: auto; }
  .next-button { padding: 12px 17px; min-height: 46px; font-size: 11px; gap: 22px; }
  .swipe-hint { order: 3; flex-basis: 100%; justify-content: center; font-size: 9px; padding: 2px 0 4px; }
  .swipe-hint svg { width: 25px; }
  .site-footer { margin: 0 22px; padding: 20px 0 calc(20px + env(safe-area-inset-bottom, 0px)); font-size: 8px; letter-spacing: 0; gap: 10px; }
  .site-footer > span:first-child { display: none; }
  .footer-edition { font-size: 7px; gap: 7px; }
  .choice-slide { min-height: 530px; padding-top: 8px; justify-content: flex-start; }
  .choice-intro { margin-bottom: 22px; }
  .choice-intro .eyebrow { font-size: 8px; letter-spacing: 2px; }
  .choice-intro h1 { font-size: 26px; letter-spacing: 2px; margin: 12px 0; }
  .choice-intro p { font-size: 10px; letter-spacing: 0; }
  .route-cards { grid-template-columns: 1fr; gap: 12px; }
  .route-card { min-height: 200px; padding: 20px 22px; }
  .route-copy { margin-top: 15px; }
  .route-copy h2 { font-size: 24px; margin: 7px 0; }
  .route-copy p { font-size: 10px; margin-bottom: 12px; }
  .route-en { display: none; }
  .route-top { font-size: 9px; }
  .route-badge { font-size: 8px; padding: 4px 6px; }
  .route-action { padding-top: 11px; font-size: 10px; }
  .choice-footnote { font-size: 9px; line-height: 1.8; letter-spacing: 1px; margin-top: 17px; }
  .mission { padding: 45px 25px; min-height: 730px; }
  .mission-content > .eyebrow { font-size: 9px; }
  .mission-code { margin-top: 38px; font-size: 9px; }
  .mission h1 { font-size: 34px; letter-spacing: 3px; line-height: 1.5; }
  .mission-description { font-size: 12px; }
  .desktop-break { display: none; }
  .mission-objective { gap: 16px; }
  .mission-objective p { font-size: 11px; }
  .mission-actions { gap: 20px; }
  .mission-coordinate { position: static; display: block; margin-top: 40px; font-size: 8px; }
  dialog { padding: 27px; }
  dialog h2 { font-size: 21px; letter-spacing: 1px; }
  dialog p { font-size: 12px; }
  .dialog-actions { gap: 15px; }
  .dialog-actions .next-button { font-size: 10px; padding: 12px; }
}
@media (max-width: 370px) {
  .site-header { margin: 0 16px; }
  .header-actions .icon-button { display: none; }
  .prologue { padding-left: 16px; padding-right: 16px; }
  .site-footer { margin: 0 16px; }
  .narration h1 { font-size: 25px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
}
