@charset "UTF-8";
:root {
  color-scheme: light;
  --ink: #2f3027;
  --muted: #626052;
  --paper: #f4ecd8;
  --paper-deep: #e8dec4;
  --edge: #b8ad90;
  --red: #9f3428;
  --red-dark: #78271e;
  --olive: #454b36;
  --dark: #27271f;
  --font: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", system-ui, sans-serif;
  --mono: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: auto; }
body { margin: 0; background: var(--dark); color: var(--ink); font-family: var(--font); font-size: 16px; line-height: 1.85; }
a { color: inherit; text-underline-offset: 4px; }
button, input { font: inherit; }
button, summary, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button, input, summary { color: inherit; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 5px; }
img { max-width: 100%; object-fit: contain; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin-top: 0; }
p { margin-bottom: 18px; }
h2 { font-size: clamp(1.4rem, 2.15vw, 1.85rem); line-height: 1.45; letter-spacing: -.03em; margin-bottom: 0; }
h3 { font-size: 1.1rem; line-height: 1.6; margin: 28px 0 10px; }
strong { font-weight: 700; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; background: var(--paper); padding: 12px 24px; }
.skip-link:focus { top: 12px; }
.masthead { position: sticky; top: 0; z-index: 30; background: var(--dark); color: var(--paper); border-top: 5px solid var(--red); border-bottom: 1px solid #6b6753; box-shadow: 0 3px 12px #1114; }
.masthead-inner { max-width: 1440px; margin: auto; display: flex; align-items: center; justify-content: space-between; gap: 20px; min-height: 80px; padding: 10px 36px; }
.brand { display: flex; align-items: center; text-decoration: none; gap: 14px; flex-shrink: 0; }
.brand-number { font-family: Impact, "Arial Narrow", sans-serif; font-size: 43px; line-height: 1; letter-spacing: -3px; transform: rotate(-4deg); background: var(--red); color: #f6edd5; padding: 4px 9px 7px 7px; border: 1px solid #db9c6c; box-shadow: 3px 3px 0 #15160f; }
.brand-number span { display: inline-block; margin-left: 3px; font: 700 14px var(--font); letter-spacing: 0; }
.brand-name { font-size: 1.125rem; font-weight: 800; letter-spacing: .13em; line-height: 1.45; }
.brand-name small { display: block; color: #bab59d; font: 12px/1.5 var(--mono); letter-spacing: .08em; }
.masthead-tools { display: flex; align-items: center; gap: 25px; }
.edition { color: #bcb69f; font-size: 13px; letter-spacing: .08em; }
.home-link { font: 700 15px var(--mono); text-decoration: none; border-left: 1px solid #68624e; padding-left: 25px; }
.home-link:hover { color: #edb689; }
.menu-toggle { display: none; background: transparent; border: 1px solid #a1977c; padding: 5px 12px; }
.layout { max-width: 1440px; margin: auto; display: grid; grid-template-columns: 250px minmax(0, 1fr); padding: 0 36px 52px; align-items: start; }
.sidebar { color: #e3dbc2; padding: 33px 26px 25px 0; position: sticky; top: 85px; max-height: calc(100dvh - 85px); overflow: auto; scrollbar-width: thin; scrollbar-color: #77705a transparent; }
.archive-label { display: flex; flex-direction: column; margin: 0 10px 22px; border-bottom: 1px solid #605d4d; padding-bottom: 18px; }
.archive-label > span:first-child { font: 12px/1.7 var(--mono); color: #d29a68; letter-spacing: .12em; }
.archive-label strong { font-size: 1.25rem; letter-spacing: .08em; }
.archive-code { font-size: 12px; color: #a9a38e; margin-top: 3px; }
.chapter-nav { display: flex; flex-direction: column; gap: 3px; }
.nav-label { color: #a7a18b; font-size: 12px; margin: 20px 10px 8px; letter-spacing: .12em; }
.nav-label:first-child { margin-top: 0; }
.chapter-nav a { position: relative; display: flex; align-items: center; gap: 14px; padding: 7px 10px; font-size: 14px; text-decoration: none; border-left: 2px solid transparent; }
.chapter-nav a b { font: 13px var(--mono); color: #a9a38b; }
.chapter-nav a:hover { background: #444436; }
.chapter-nav a[aria-current="location"] { color: #f8efd5; background: #4a4936; border-left-color: #d7915e; }
.chapter-nav a[aria-current="location"] b { color: #e0a46f; }
.sidebar-note { display: flex; align-items: center; gap: 9px; border-top: 1px dashed #6a6350; margin: 27px 10px 0; padding: 20px 0 0; }
.sidebar-note p { font-size: 12px; line-height: 1.85; color: #c4bca4; margin: 0; }
.sidebar-note strong { font-weight: 500; }
.archive-version { color: #a29b86; font: 12px/1.9 var(--mono); padding: 15px 10px 0; margin: 0; }
.manual { min-width: 0; background: var(--paper); padding: 0 44px; box-shadow: 9px 12px 0 #1114; border-left: 1px solid #9a947c; border-right: 1px solid #9a947c; background-image: radial-gradient(#5e55320b .7px, transparent .7px); background-size: 5px 5px; }
.document-bar { display: flex; justify-content: space-between; gap: 15px; padding: 16px 0 12px; border-bottom: 1px solid var(--ink); color: #6d6655; font-size: 12px; letter-spacing: .06em; }
.hero { display: grid; grid-template-columns: minmax(0, 1fr) 205px; gap: 22px; padding: 36px 0 28px; }
.eyebrow { font: 12px/1.6 var(--mono); letter-spacing: .14em; color: var(--red); margin-bottom: 9px; font-weight: 700; }
.hero h1 { font-size: clamp(1.9rem, 3.2vw, 2.9rem); line-height: 1.4; letter-spacing: -.04em; margin: 10px 0 17px; }
.hero h1 span { display: block; color: var(--red); }
.hero-intro { max-width: 520px; font-size: 15px; line-height: 1.85; color: #585442; margin-bottom: 23px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 11px; }
.button { padding: 8px 16px; display: inline-block; text-decoration: none; font-size: 14px; font-weight: 700; border: 1px solid; box-shadow: 2px 3px 0 #3b322822; }
.button-primary { color: #fff5dc; background: var(--red); border-color: var(--red-dark); }
.button-primary:hover { background: var(--red-dark); }
.button-secondary { border-color: #8b7e61; background: #f8f1df; }
.button-secondary:hover { background: var(--paper-deep); }
.hero-art { position: relative; display: flex; flex-direction: column; justify-content: center; align-items: center; padding-top: 0; }
.space-window { transform: rotate(3deg); width: 200px; height: 147px; filter: drop-shadow(3px 6px 1px #3a35252b); }
.stamp { border: 3px double var(--red); color: var(--red); text-align: center; transform: rotate(-11deg); padding: 5px 16px 3px; font-size: 18px; line-height: 1.5; letter-spacing: .3em; margin-top: -18px; margin-left: -95px; background: #f4ecd8e8; }
.stamp span { display: block; font-size: 11px; letter-spacing: .25em; border-top: 1px solid; }
.hero-art p { font-size: 12px; line-height: 1.8; color: #77705c; margin: 14px 0 0; text-align: center; }
.hero-art strong { font-weight: 500; color: #5e5747; }
.quick-facts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 2px solid var(--ink); border-bottom: 1px solid var(--ink); padding: 18px 0; gap: 0; }
.quick-facts a { display: flex; flex-direction: column; align-items: center; text-decoration: none; border-right: 1px solid #c5bba2; text-align: center; padding: 0 8px; }
.quick-facts a:last-child { border: 0; }
.quick-facts strong { font: 700 29px/1.3 var(--mono); color: var(--red); }
.quick-facts strong span { font: 500 12px var(--font); margin-left: 5px; color: var(--ink); }
.quick-facts a > span { font-size: 12px; color: #6b6250; margin-top: 4px; }
.search-box { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0 18px; align-items: center; padding: 21px 0 0; }
.search-box > label { font-size: 14px; font-weight: 700; }
.search-control { display: flex; border: 1px solid #a69a7c; background: #fffaed; min-width: 0; }
.search-control input { min-width: 0; width: 100%; padding: 9px 12px; font-size: 14px; border: 0; background: transparent; border-radius: 0; }
.search-control input::placeholder { color: #7b735f; opacity: 1; }
.search-control button { border: 0; border-left: 1px solid #cec4ae; background: #eee5ce; padding: 0 12px; font-size: 13px; flex-shrink: 0; }
.search-box > p { grid-column: 2; font-size: 12px; color: var(--muted); margin: 5px 0 0; }
.search-box > ul { grid-column: 1 / -1; list-style: none; padding: 0; margin: 12px 0 0; border: 1px solid #b6a888; background: #fff9e9; max-height: 390px; overflow: auto; }
.search-result { border-bottom: 1px solid #d3c8ae; }
.search-result:last-child { border: 0; }
.search-result a { display: flex; flex-direction: column; padding: 10px 16px; font-size: 14px; text-decoration: none; }
.search-result a:hover { background: #e9dfc5; }
.search-result small { font-size: 12px; color: #6c6655; }
.scope-note { margin: 22px 0 0; font-size: 13px; color: #716954; border-left: 2px solid #baad8c; padding-left: 13px; }
.chapter { padding: 48px 0 8px; border-bottom: 1px solid #c7bda5; scroll-margin-top: 104px; }
.chapter:last-of-type { border-bottom: 0; }
.chapter-heading { display: flex; gap: 16px; align-items: center; margin-bottom: 22px; }
.chapter-number { flex-shrink: 0; font: 700 37px/1 var(--mono); color: #a99c7e; border-right: 1px solid #b6a98a; padding-right: 16px; }
.chapter-heading .eyebrow { margin: 0 0 2px; font-size: 11px; }
.chapter-tag { margin-left: auto; flex-shrink: 0; border: 1px solid #9b947c; color: #6b654f; padding: 2px 7px; font-size: 12px; transform: rotate(-2deg); }
.spoiler-tag { color: var(--red); border-color: var(--red); }
.lead { font-size: 17px; color: #494938; }
.flight-plan { list-style: none; margin: 25px 0; padding: 0; }
.flight-plan li { display: grid; grid-template-columns: 87px minmax(0, 1fr); gap: 18px; margin: 0; }
.flight-plan li > div { padding: 0 0 18px 23px; border-left: 1px solid #b7ab8d; position: relative; }
.flight-plan li > div::before { content: ""; width: 7px; height: 7px; position: absolute; left: -4px; top: 9px; background: var(--red); border: 1px solid var(--red-dark); }
.flight-plan li:last-child > div { border-color: transparent; padding-bottom: 0; }
.flight-plan h3 { margin: -3px 0 8px; }
.flight-plan p { font-size: 15px; margin: 0; }
.step-time { font: 700 14px/1.7 var(--mono); color: var(--red); text-align: right; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px; margin: 18px 0 22px; align-items: start; }
.columns h3:first-child { margin-top: 0; }
.plain-list { padding-left: 23px; margin-top: 12px; margin-bottom: 22px; }
.plain-list li { padding-left: 4px; margin: 9px 0; }
.plain-list li::marker { color: var(--red); font-weight: 700; }
.note { background: #e5dec5; border: 1px solid #c5b992; border-left: 4px solid var(--olive); margin: 24px 0; padding: 18px 22px; scroll-margin-top: 108px; }
.note > strong { font-size: 15px; }
.note p { font-size: 14px; line-height: 1.9; margin: 7px 0 0; }
.warning { background: #ead6b8; border-top: 4px solid var(--red); padding: 21px 23px 17px; }
.warning h3 { color: #802e21; font-size: 18px; margin: 10px 0 12px; }
.warning p { font-size: 14px; margin: 10px 0 0; }
.warning-label { font: 700 12px/1.5 var(--mono); color: var(--red); border-bottom: 1px solid #b88061; padding-bottom: 5px; letter-spacing: .12em; }
.table-wrap { overflow-x: auto; max-width: 100%; margin: 22px 0; scrollbar-width: thin; scrollbar-color: #afa17e #ede4ce; border: 1px solid #b8ac8b; }
table { border-collapse: collapse; width: 100%; font-size: 14px; line-height: 1.75; text-align: left; }
caption { text-align: left; font-size: 13px; color: #595442; font-weight: 700; background: #e2d8bd; padding: 11px 14px; border-bottom: 1px solid #b8ac8b; }
th { background: var(--olive); color: #f3ead1; font-size: 13px; font-weight: 500; letter-spacing: .025em; }
td, th { padding: 12px 14px; border-bottom: 1px solid #c9bea3; vertical-align: top; }
td + td, th + th { border-left: 1px solid #b8ac8b66; }
tbody tr:nth-child(even) { background: #e9dfc366; }
tbody tr:last-child td { border-bottom: 0; }
td:first-child { font-weight: 600; }
.crew-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin: 26px 0; }
.crew-card { background: #e9dfc7; border: 1px solid #ada184; box-shadow: 3px 3px 0 #3c362218; padding: 19px; scroll-margin-top: 110px; }
.crew-card-header { display: flex; gap: 17px; align-items: center; margin-bottom: 15px; }
.crew-portrait { width: 83px; height: 83px; padding: 4px; border: 1px solid #aea285; background: #d6ceb3; }
.crew-card h3 { font-size: 1.3rem; margin: 0 0 5px; }
.crew-role { font-size: 12px; color: var(--red); font-weight: 700; }
.crew-id { font: 11px var(--mono); color: #6f6957; margin-bottom: 4px; letter-spacing: .07em; }
.stat-line { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 13px; }
.stat-line span { font-size: 12px; padding: 2px 7px; border: 1px solid #bbb095; background: #f7eed8; }
.stat-line b { font-family: var(--mono); color: var(--red); margin-left: 4px; }
.crew-card p { font-size: 14px; line-height: 1.8; margin-bottom: 10px; }
.crew-meta { font-size: 12px; display: flex; flex-wrap: wrap; gap: 5px 12px; padding: 9px 0 0; border-top: 1px dashed #a79a7b; color: #66604b; }
.crew-goal { padding: 9px 0 0; }
.crew-goal strong { color: #4a503a; }
.cabin-layout { display: grid; grid-template-columns: 225px minmax(0, 1fr); gap: 26px; margin: 25px 0; align-items: start; }
.cabin-image { padding: 7px; background: #b6ab87; border: 1px solid #786f53; transform: rotate(-1deg); }
.cabin-image > img { display: block; height: auto; width: 100%; }
.cabin-caption { display: block; text-align: center; font-size: 12px; padding: 7px 2px 0; color: #323729; }
.device-list { display: flex; flex-direction: column; gap: 16px; }
.device-list article { display: flex; align-items: flex-start; gap: 12px; }
.device-list article > img { width: 40px; height: 46px; flex-shrink: 0; margin-top: 3px; }
.device-list h3 { margin: 0 0 3px; font-size: 15px; }
.device-list p { margin: 0; font-size: 13px; line-height: 1.8; }
.daily-strip { display: flex; flex-wrap: wrap; gap: 6px 17px; border-block: 1px dashed #b4a681; margin: 25px 0; padding: 14px 0; font-size: 13px; font-weight: 700; color: var(--olive); }
.hunger-scale { display: grid; grid-template-columns: repeat(4, 1fr); margin: 26px 0 10px; }
.hunger-scale > div { display: flex; flex-direction: column; align-items: center; border-top: 5px solid #76805a; background: #e0dfbf; padding: 12px 9px; text-align: center; }
.hunger-scale > div:nth-child(2) { border-color: #b09c42; background: #e7dbad; }
.hunger-scale > div:nth-child(3) { border-color: #bb7342; background: #e7cda9; }
.hunger-scale > div:nth-child(4) { border-color: var(--red); background: #dfb8a1; }
.hunger-scale b { font: 700 24px/1.5 var(--mono); }
.hunger-scale span { font-size: 12px; }
.small-note { font-size: 13px; color: #6c6452; }
.chance-grid { display: grid; grid-template-columns: repeat(5, 1fr); margin: 23px 0 10px; border: 1px solid #b5a682; background: #e7dec3; }
.chance-grid > div { display: flex; flex-direction: column; align-items: center; padding: 10px 0; border-right: 1px solid #b5a682; }
.chance-grid > div:last-child { border: 0; }
.chance-grid b { font: 700 23px var(--mono); margin: 5px 0; }
.chance-grid span { font: 14px/1.5 var(--mono); color: var(--red); }
.spoiler { margin: 16px 0 22px; border: 1px solid #b0a283; background: #f7efda; scroll-margin-top: 110px; }
.spoiler > summary { padding: 16px 42px 16px 19px; position: relative; list-style: none; cursor: pointer; display: flex; flex-direction: column; border-left: 4px solid var(--red); }
.spoiler > summary::-webkit-details-marker { display: none; }
.spoiler > summary::after { content: "+"; position: absolute; right: 18px; top: 15px; font: 24px/1.5 var(--mono); color: var(--red); }
.spoiler[open] > summary::after { content: "−"; }
.spoiler > summary > span { font-size: 16px; font-weight: 700; }
.spoiler > summary > small { font-size: 12px; color: #6e6650; margin-top: 2px; }
.spoiler > summary:hover { background: #e8dec3; }
.details-body { padding: 8px 23px 16px; border-top: 1px solid #b8ad92; font-size: 15px; }
.details-body .table-wrap { margin: 17px 0 12px; }
.details-body > p:last-child { margin-bottom: 4px; }
.resource-key { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.resource-key span { display: flex; align-items: center; gap: 5px; font-size: 13px; }
.resource-key img { mix-blend-mode: multiply; }
.item-cell { display: flex; align-items: center; gap: 9px; min-width: 107px; }
.item-cell img { width: 34px; height: 39px; flex-shrink: 0; }
.item-table { min-width: 650px; }
.item-table th:nth-child(4) { min-width: 123px; }
.item-table td { font-size: 13px; }
.item-table td:last-child { min-width: 210px; }
.item-table small { display: block; color: #756c56; font-size: 12px; }
.upgrade-step { display: flex; gap: 18px; padding: 15px 0; margin: 0 0 10px; border-top: 1px dashed #b1a283; }
.upgrade-step b { font: 700 16px/1.7 var(--mono); color: var(--red); white-space: nowrap; }
.upgrade-step span { font-size: 14px; }
.hazard-grid { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); margin: 25px 0; gap: 9px; }
.hazard-card { border: 1px solid #ada083; background: #e6dcc0; display: flex; flex-direction: column; align-items: center; text-align: center; padding: 16px 7px 12px; }
.hazard-card > img { width: 37px; height: 37px; margin-bottom: 7px; }
.hazard-card strong { font-size: 13px; }
.hazard-item { display: flex; gap: 4px; align-items: center; font-size: 13px; color: var(--red); padding-top: 8px; margin-top: 9px; border-top: 1px dashed #b8aa87; }
.hazard-item img { width: 25px; height: 28px; }
.planet-jumps { display: flex; flex-wrap: wrap; gap: 10px; margin: 22px 0; }
.planet-jumps a { background: var(--olive); color: #f8eed5; text-decoration: none; padding: 6px 16px; font-size: 14px; border: 1px solid #303426; }
.planet-jumps a:hover { background: #323b29; }
.planet-sheet { padding: 16px 0; scroll-margin-top: 106px; }
.planet-heading { display: flex; align-items: center; gap: 18px; margin: 0 0 17px; padding-bottom: 15px; border-bottom: 2px solid #676950; }
.planet-heading > img { width: 60px; height: 60px; }
.planet-heading h3 { font-size: 1.4rem; margin: 0 0 3px; }
.planet-heading p { font: 12px var(--mono); letter-spacing: .14em; margin: 0; color: #71694e; }
.planet-landing { font-size: 14px; background: #e5dec5; padding: 12px 16px; border-left: 3px solid #747652; }
.planet-table { min-width: 700px; }
.planet-table td, .planet-table th { padding: 10px 12px; font-size: 13px; }
.planet-table td:first-child { min-width: 100px; }
.planet-table td:nth-child(5) { min-width: 106px; }
.planet-table td:last-child { min-width: 160px; }
.table-scroll-note { display: none; font-size: 12px; color: var(--muted); margin-bottom: -10px; }
.planet-route { font-size: 14px; color: var(--red); font-weight: 700; }
.ending-intro { font-size: 14px; margin-top: 14px; color: #6a614b; }
.ending-grid { display: flex; flex-direction: column; gap: 10px; margin: 20px 0 8px; }
.ending-entry { border: 1px solid #c3b591; background: #f4ecd8; scroll-margin-top: 108px; }
.ending-entry > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 17px; list-style: none; cursor: pointer; }
.ending-entry > summary::-webkit-details-marker { display: none; }
.ending-entry > summary:hover { background: #e8dec3; }
.ending-summary { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.ending-summary b { font-size: 15px; }
.ending-meta { color: #6a614b; font-size: 12px; }
.ending-action { color: var(--red); font-size: 12px; white-space: nowrap; }
.ending-action::after { content: " +"; font: 18px var(--mono); }
.ending-entry[open] > summary { background: #e5dabd; border-bottom: 1px solid #c3b591; }
.ending-entry[open] .ending-action::after { content: " −"; }
.ending-guide { padding: 17px 20px 18px; font-size: 15px; }
.ending-preparation { padding: 12px 15px; background: #e7e1cb; margin: 0 0 18px; }
.ending-preparation strong, .ending-note strong { display: block; color: var(--olive); font-size: 13px; margin-bottom: 4px; }
.ending-steps { padding-left: 24px; margin: 0 0 18px; }
.ending-steps li { padding-left: 4px; margin: 12px 0; }
.ending-steps li::marker { color: var(--red); font-weight: 700; }
.ending-note { border-top: 1px dashed #baac8a; padding-top: 13px; margin: 0; font-size: 14px; color: #625a46; }
.ending-note strong { color: var(--red); }
.faq-list { margin-bottom: 25px; }
.faq-list details { border-bottom: 1px solid #c2b598; }
.faq-list summary { cursor: pointer; font-size: 15px; font-weight: 700; padding: 17px 0; }
.faq-list summary::marker { color: var(--red); }
.faq-list p { font-size: 14px; padding: 0 0 4px 18px; }
.manual-footer { padding: 34px 0; margin-top: 30px; border-top: 3px double #9c8e6a; display: grid; grid-template-columns: 1fr auto; gap: 15px; align-items: start; }
.manual-footer strong { font-size: 18px; }
.manual-footer p { font-size: 12px; color: #756c55; line-height: 1.85; margin: 6px 0 0; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px 17px; max-width: 490px; padding-top: 3px; font-size: 13px; color: var(--red); }
.footer-links a { white-space: nowrap; }
.back-top { position: fixed; bottom: 20px; right: 14px; z-index: 10; padding: 9px 10px; background: #27271feb; color: #ede3c8; border: 1px solid #bcb28d; font: 11px/1.5 var(--mono); text-decoration: none; }
.search-target { animation: highlight 1.6s ease-out; }
@keyframes highlight { from { background-color: #dec581; } to { background-color: transparent; } }
@media (min-width: 1500px) { .layout { padding-top: 20px; } .manual { border-top: 1px solid #9a947c; } }
@media (max-width: 1150px) {
  .masthead-inner { padding-inline: 24px; }
  .layout { grid-template-columns: 220px minmax(0, 1fr); padding-inline: 24px; }
  .sidebar { padding-right: 22px; }
  .manual { padding-inline: 30px; }
  .hero { grid-template-columns: minmax(0, 1fr) 155px; gap: 14px; }
  .space-window { width: 155px; height: auto; }
  .hero h1 { font-size: 2.05rem; }
  .stamp { margin-left: -40px; }
  .cabin-layout { grid-template-columns: 170px minmax(0, 1fr); gap: 20px; }
  .table-scroll-note { display: block; }
  .crew-card { padding: 15px; }
  .crew-card-header { gap: 10px; }
  .crew-portrait { width: 70px; height: 70px; }
}
@media (max-width: 900px) {
  .layout { display: block; padding: 0 18px 30px; }
  .sidebar { position: static; display: block; max-height: none; padding: 22px 10px; }
  .js-ready .sidebar { display: none; }
  .js-ready .sidebar.is-open { display: block; }
  .chapter-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 20px; }
  .nav-label { grid-column: 1 / -1; margin: 16px 10px 6px; }
  .archive-label, .sidebar-note, .archive-version { display: none; }
  .js-ready .menu-toggle { display: block; }
  .edition { display: none; }
  .home-link { border: 0; padding-left: 0; }
  .masthead-tools { gap: 18px; }
  .manual { padding-inline: 32px; }
  .hero { grid-template-columns: minmax(0, 1fr) 180px; }
  .space-window { width: 180px; }
  .hero h1 { font-size: 2.3rem; }
  .cabin-layout { grid-template-columns: 215px minmax(0, 1fr); }
}
@media (max-width: 620px) {
  .masthead-inner { min-height: 71px; padding: 9px 16px; gap: 12px; }
  .brand { gap: 9px; }
  .brand-number { font-size: 33px; padding: 5px 7px 6px 5px; }
  .brand-number span { font-size: 11px; }
  .brand-name { font-size: 14px; letter-spacing: .06em; }
  .brand-name small { font-size: 10px; letter-spacing: .02em; }
  .masthead-tools { gap: 12px; }
  .home-link { font-size: 12px; }
  .menu-toggle { font-size: 13px; padding: 5px 9px; }
  .layout { padding: 0 0 20px; }
  .manual { padding: 0 21px; border: 0; box-shadow: none; }
  .sidebar { padding: 15px 14px; }
  .chapter-nav { gap: 2px 6px; }
  .chapter-nav a { gap: 10px; padding: 8px 7px; }
  .document-bar { font-size: 10px; gap: 8px; padding-block: 12px 9px; }
  .hero { display: block; position: relative; padding: 28px 0 26px; }
  .hero-copy { position: relative; z-index: 1; }
  .hero h1 { font-size: clamp(1.8rem, 6.6vw, 2.5rem); max-width: 85%; margin-top: 9px; }
  .hero .eyebrow { font-size: 10px; letter-spacing: .13em; }
  .hero-intro { font-size: 14px; max-width: 100%; margin-top: 23px; }
  .hero-art { position: absolute; top: 50px; right: -1px; padding: 0; opacity: .35; }
  .space-window { width: 95px; }
  .stamp, .hero-art p { display: none; }
  .button { font-size: 13px; padding: 9px 13px; }
  .quick-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 17px; padding: 19px 0; }
  .quick-facts a:nth-child(2) { border: 0; }
  .quick-facts strong { font-size: 26px; }
  .quick-facts a > span { font-size: 12px; }
  .search-box { grid-template-columns: 1fr; gap: 7px; padding-top: 22px; }
  .search-box > label { font-size: 13px; }
  .search-box > p { grid-column: 1; }
  .search-control input { font-size: 16px; }
  .scope-note { font-size: 12px; margin-top: 20px; }
  .chapter { padding-top: 36px; scroll-margin-top: 90px; }
  .chapter-heading { gap: 12px; margin-bottom: 21px; }
  .chapter-number { font-size: 31px; padding-right: 12px; }
  .chapter-heading .eyebrow { font-size: 9px; letter-spacing: .12em; }
  .chapter-heading h2 { font-size: 1.28rem; }
  .chapter-tag { display: none; }
  .lead { font-size: 16px; }
  .flight-plan li { grid-template-columns: 60px minmax(0, 1fr); gap: 10px; }
  .flight-plan li > div { padding-left: 16px; padding-bottom: 22px; }
  .flight-plan h3 { font-size: 16px; }
  .flight-plan p { font-size: 14px; }
  .step-time { font-size: 12px; padding-top: 2px; }
  .note { padding: 15px 17px; }
  .columns { grid-template-columns: 1fr; gap: 19px; }
  .table-wrap { margin-block: 18px; }
  td, th { padding: 10px; }
  .crew-grid { grid-template-columns: 1fr; gap: 16px; }
  .crew-card { padding: 20px; }
  .crew-card-header { gap: 18px; }
  .crew-portrait { width: 83px; height: 83px; }
  .crew-card p { font-size: 15px; }
  .crew-meta { font-size: 13px; }
  .cabin-layout { grid-template-columns: 1fr; gap: 22px; }
  .cabin-image { width: 180px; margin: 0 auto; }
  .device-list { gap: 17px; }
  .device-list p { font-size: 14px; }
  .device-list h3 { font-size: 16px; }
  .daily-strip { flex-direction: column; gap: 7px; }
  .hunger-scale { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 5px; }
  .chance-grid span { font-size: 14px; }
  .hazard-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 7px; }
  .hazard-card { padding: 13px 5px; }
  .hazard-card strong, .hazard-item { font-size: 12px; }
  .hazard-item { flex-direction: column; }
  .details-body { padding: 7px 16px 16px; font-size: 15px; }
  .spoiler > summary { padding: 14px 34px 14px 14px; }
  .spoiler > summary > span { font-size: 15px; }
  .spoiler > summary::after { right: 11px; top: 14px; }
  .planet-jumps { gap: 8px; }
  .planet-jumps a { font-size: 13px; padding: 7px 11px; }
  .planet-heading h3 { font-size: 1.25rem; }
  .ending-entry > summary { padding: 12px; gap: 10px; }
  .ending-action { font-size: 11px; }
  .ending-guide { padding: 13px 12px 15px; font-size: 14px; }
  .ending-preparation { padding: 10px 12px; }
  .manual-footer { grid-template-columns: 1fr; gap: 12px; }
  .footer-links { justify-content: flex-start; max-width: none; }
  .back-top { right: 9px; bottom: 12px; padding: 7px; font-size: 10px; }
}
@media (max-width: 359px) {
  .home-link { display: none; }
  .manual { padding-inline: 17px; }
  .chapter-heading h2 { font-size: 1.17rem; }
  .hero h1 { max-width: 100%; }
  .hero-art { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .search-target { animation: none; }
}
@media print {
  body { background: white; font-size: 11pt; }
  .masthead, .sidebar, .search-box, .hero-actions, .back-top, .skip-link { display: none !important; }
  .layout { display: block; padding: 0; }
  .manual { padding: 0; border: 0; box-shadow: none; background: white; }
  .hero { padding-top: 20px; }
  .hero-art { display: none; }
  .chapter { break-inside: auto; padding-top: 25px; }
  .chapter-heading, h3 { break-after: avoid; }
  .crew-card, .note, .warning { break-inside: avoid; }
  .table-wrap { overflow: visible; }
  .item-table, .planet-table { min-width: 0; }
  td, th { padding: 6px; font-size: 10pt; }
  .planet-table td, .item-table td, .planet-table th, .item-table th { min-width: 0; }
  a { text-decoration: none; }
}
