:root {
  --paper: #100e0c;
  --card: #1b1612;
  --surface: #241d17;
  --surface-hover: #30251a;
  --ink: #efe2cb;
  --muted: #beb09a;
  --line: #49382a;
  --soft-line: #35291e;
  --gold: #cda46e;
  --gold-bright: #e0bb82;
  --red: #852e24;
  --red-hover: #a44233;
  --sage: #a6bf9f;
  --deep: #211710;
  --radius: 10px;
  --radius-small: 9px;
  --shadow: 0 18px 36px #0006;
  --serif: "Songti SC", "Noto Serif CJK SC", "STSong", SimSun, serif;
  --brush: "STXingkai", "华文行楷", "Kaiti SC", KaiTi, serif;
  --latin-serif: Georgia, "Times New Roman", serif;
  --sans: "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", sans-serif;
  --mono: ui-monospace, "Cascadia Mono", Consolas, monospace;
}
* { box-sizing: border-box; }
html { color-scheme: dark; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: var(--paper); color: var(--ink); font-family: var(--sans); font-size: 15px; line-height: 1.65; }
main { flex: 1; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--gold-bright); outline-offset: 4px; }
#content:focus { outline: none; }
img { display: block; max-width: 100%; }
svg { flex: 0 0 auto; }
figure, ul, ol, p { margin: 0; }
h1, h2, h3 { margin: 0; line-height: 1.19; }
h1, h2 { font-family: var(--serif); }
.shell { width: min(1280px, calc(100% - 96px)); margin-inline: auto; }
.skip-link { position: fixed; z-index: 20; top: 8px; left: 12px; padding: 8px 15px; color: #fff; background: var(--deep); transform: translateY(-155%); border-radius: 6px; }
.skip-link:focus { transform: none; }
.site-header { position: relative; z-index: 2; border-bottom: 1px solid #89624163; background: linear-gradient(180deg, #1b130e, #110c09); }
.header-inner { position: relative; min-height: 74px; display: grid; grid-template-columns: minmax(0,1fr) auto minmax(0,1fr); align-items: center; gap: 18px; }
.brand { position: relative; isolation: isolate; display: inline-flex; align-items: center; justify-self: start; gap: 10px; padding: 6px 17px 6px 9px; white-space: nowrap; }
.brand::before { position: absolute; z-index: -1; inset: 0; content: ""; clip-path: polygon(9px 0, calc(100% - 9px) 0, 100% 9px, 100% calc(100% - 9px), calc(100% - 9px) 100%, 9px 100%, 0 calc(100% - 9px), 0 9px); background: linear-gradient(112deg, #332417, #21160f 84%); box-shadow: inset 0 0 0 1px #b2895880; }
.brand img { width: 46px; height: 46px; }
.brand strong { display: block; font: 700 18px/1.12 var(--serif); letter-spacing: .07em; color: #e3c38d; }
.brand-dot { color: var(--gold); margin-inline: 2px; }
.brand small { display: block; margin-top: 5px; color: #b69a72; font: 600 8px/1.1 var(--latin-serif); letter-spacing: .12em; }
.nav { display: flex; align-items: stretch; justify-content: center; height: 100%; }
.nav a { display: flex; flex-direction: column; justify-content: center; align-items: center; gap: 6px; position: relative; min-width: clamp(86px, 9.6vw, 135px); padding: 7px 9px; border-inline-start: 1px solid #d3a76b16; font: 700 15px/1.13 var(--serif); white-space: nowrap; color: #ceb693; transition: color .18s ease, background .18s ease; }
.nav a:last-child { border-inline-end: 1px solid #d3a76b16; }
.nav small { color: #bd986e; font: 600 9px/1 var(--latin-serif); text-transform: uppercase; letter-spacing: .11em; }
.nav a::after { position: absolute; bottom: 0; left: 8%; right: 8%; content: ""; height: 2px; background: linear-gradient(90deg, transparent, #d1a368, transparent); transform: scaleX(0); transition: transform .2s ease; }
.nav a:hover, .nav a[aria-current="page"] { color: #f1d19a; background: linear-gradient(0deg, #6d492520, transparent 65%); }
.nav a[aria-current="page"]::after, .nav a:hover::after { transform: scaleX(1); }
.journal { position: absolute; isolation: isolate; top: 0; right: 0; display: grid; justify-items: center; align-content: start; gap: 5px; width: 76px; padding: 9px 8px 17px; color: #f3d59f; white-space: nowrap; filter: drop-shadow(0 5px 7px #0007); }
.journal::before { position: absolute; z-index: -1; inset: 0; content: ""; clip-path: polygon(0 0,100% 0,100% 94%,56% 100%,0 94%); background: url("../assets/illustrations/gold-grain.svg"), linear-gradient(158deg, #823124, #652219 66%, #531a13); box-shadow: inset 0 0 0 1px #c8955e70, inset 5px 0 0 #3a140e45, inset -5px 0 0 #3a140e45; }
.journal:hover::before { background-color: #7e3022; background-blend-mode: normal, screen; }
.journal-mark { width: 35px; height: 35px; }
.journal-label { display: grid; justify-items: center; gap: 2px; padding-left: .12em; font: 700 14px/1.13 var(--serif); letter-spacing: .12em; }
.journal-count { color: #e6bd84; font: 600 9px/1.2 var(--latin-serif); letter-spacing: .07em; }
.site-footer { border-top: 1px solid var(--line); }
.footer-inner { min-height: 71px; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 12px; }
.footer-separator { margin-inline: 4px; color: var(--gold); }
.text-button { padding: 8px 0; border: 0; background: transparent; color: var(--muted); }
.text-button:hover { color: var(--gold); text-decoration: underline; }

.home { padding-bottom: 55px; }
.hero { position: relative; display: grid; isolation: isolate; background: #0c0a08; overflow: hidden; }
.hero-figure::after { content: ""; position: absolute; z-index: 1; inset: 0; background: linear-gradient(90deg, #0b0908bd, #100d0966 35%, transparent 61%), linear-gradient(0deg, var(--paper), #100e0c00 24%); pointer-events: none; }
.hero-content { display: flex; align-items: center; min-height: clamp(580px, 70vh, 695px); }
.hero-copy { display: flex; flex-direction: column; align-items: flex-start; padding: 55px 0 82px; }
.location { display: inline-flex; gap: 7px; align-items: center; color: var(--gold-bright); font-size: 13px; letter-spacing: .15em; }
.location svg { margin-left: -3px; }
.hero-title { margin: 13px 0 23px -4px; color: #e1bc80; font: 700 clamp(58px, 6.1vw, 92px)/1 var(--brush); letter-spacing: -.055em; white-space: nowrap; }
.hero-title-ink { display: block; width: max-content; background: url("../assets/illustrations/gold-grain.svg") 0 0 / 98px 98px, linear-gradient(154deg, #f1daac, #d9b679 64%, #b4874d); background-clip: text; color: transparent; }
.hero-title-place { font-size: clamp(113px, 10.8vw, 164px); line-height: .98; }
.hero-title-story { display: flex; align-items: center; gap: .15em; margin-top: 5px; }
.hero-title-divider { align-self: center; margin-inline: .12em; color: #d1855f; font: 700 .49em/1 var(--serif); }
.hero-tagline { color: #e6cfa4; font: 700 clamp(16px, 1.45vw, 21px)/1.65 var(--serif); margin-bottom: 8px; }
.hero-description { color: #d1bd9e; max-width: 350px; font: 15px/1.8 var(--serif); }
.hero .actions { margin-top: 26px; }
.hero-figure { position: absolute; inset: 0; z-index: -2; animation: image-in .72s ease-out both; }
.hero-figure img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 70% 29%; }
.dialog-image figcaption, .archive-card figcaption { position: absolute; right: 13px; bottom: 12px; padding: 3px 9px; border-radius: 3px; background: #130e0bdc; color: #efe0c5; font-size: 10px; line-height: 1.5; letter-spacing: .05em; }
.actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.button { display: inline-flex; justify-content: center; align-items: center; gap: 10px; min-height: 43px; padding: 9px 15px; border-radius: 8px; border: 1px solid transparent; cursor: pointer; font-size: 14px; font-weight: 700; white-space: nowrap; transition: color .18s ease, background .18s ease, border-color .18s ease, transform .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:active { transform: translateY(1px); }
.primary { color: #ffe8c3; background: linear-gradient(var(--red), #74251d); border-color: #c1805b88; }
.primary:hover { background: var(--red-hover); border-color: #edb47c; }
.secondary { color: var(--gold-bright); background: #211710d9; border-color: #795c41; }
.secondary:hover { background: var(--surface-hover); border-color: var(--gold); }
.hero .button { min-height: 48px; padding-inline: 19px; border-radius: 5px; font-family: var(--serif); }
.inline-link { display: inline-flex; align-items: center; justify-content: flex-start; gap: 7px; padding: 2px 0; margin: 0; border: 0; background: none; color: var(--gold-bright); font-size: 14px; font-weight: 700; text-align: left; }
.inline-link:hover { color: #f7deb1; text-decoration: underline; text-underline-offset: 3px; }
.home-chapters { position: relative; margin-top: -8px; }
.home-chapters .section-heading { padding-top: 13px; border-top: 1px solid var(--line); }
.home-chapters h2 { color: #e6ca9d; }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 15px; }
.section-heading h2 { font-size: 29px; }
.kicker { color: var(--gold-bright); margin-bottom: 7px; font: 600 11px/1.4 var(--mono); letter-spacing: .16em; }
.chapter-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 17px; }
.chapter-tile { display: block; overflow: hidden; border: 1px solid var(--line); border-radius: 6px; background: var(--card); transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.chapter-tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #926c48; }
.tile-image { height: clamp(105px, 10.5vw, 158px); position: relative; overflow: hidden; background: var(--deep); }
.tile-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.chapter-tile.river img { object-position: 78% 55%; }
.chapter-tile:hover img { transform: scale(1.045); }
.tile-number { position: absolute; top: 10px; left: 10px; min-width: 31px; height: 29px; display: grid; place-items: center; background: #21150ee8; color: var(--gold-bright); border: 1px solid #bd936555; border-radius: 3px; font: 700 12px var(--mono); }
.tile-body { display: flex; align-items: center; justify-content: space-between; padding: 13px 15px 15px; }
.tile-body small { display: block; color: var(--muted); font-size: 12px; }
.tile-body strong { display: block; margin-top: 4px; font: 700 22px/1.2 var(--serif); }
.tile-arrow { display: grid; place-items: center; width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%; background: var(--surface); color: var(--gold-bright); }

.inner-page { padding-block: 33px 56px; }
.page-enter { animation: page-in .28s ease-out both; }
.page-lead { margin-bottom: 24px; }
.page-lead h1 { font-size: clamp(37px, 4.05vw, 59px); line-height: 1.12; letter-spacing: .025em; margin-bottom: 9px; }
.lead { color: var(--muted); font-size: 15px; line-height: 1.7; }
.map-layout { display: grid; grid-template-columns: minmax(0, 1fr) 304px; gap: 19px; align-items: start; }
.map-frame, .progress-panel, .archive-card, .task-card, .observation, .completion-record { border: 1px solid var(--line); border-radius: var(--radius); background: var(--card); box-shadow: 0 8px 24px #0003; }
.map-frame { overflow: hidden; }
.map-art { position: relative; background: #2d251a; }
.map-art > img { width: 100%; aspect-ratio: 1000 / 576; object-fit: fill; }
.map-caption { position: absolute; top: 14px; left: 15px; padding: 5px 10px; border: 1px solid #7b6044; border-radius: 5px; color: var(--gold-bright); background: #1d160eea; font-size: 11px; }
.map-compass { position: absolute; right: 15px; top: 15px; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; border: 1px solid #816448; background: #1d160eea; color: var(--gold-bright); }
.map-node { --node: #903a2b; position: absolute; z-index: 2; left: var(--x); top: var(--y); display: flex; align-items: center; min-width: 44px; padding: 0; border: 0; background: transparent; color: var(--ink); transform: translate(-23px, -50%); text-align: left; transition: transform .2s ease; }
.map-node.river { --node: #48594d; }
.map-node.guild { --node: #5d4c36; }
.map-node.paper { --node: #755432; }
.map-node.done { --node: #3f614b; }
.map-node:hover, .map-node:focus-visible { transform: translate(-23px, -50%) scale(1.08); z-index: 5; border-radius: 9px; }
.map-pin { flex: 0 0 auto; display: grid; place-items: center; height: 45px; width: 45px; border: 2px solid #d9b07e; border-radius: 50%; background: var(--node); color: #fff9ea; box-shadow: 0 3px 8px #362c2266; position: relative; z-index: 2; }
.map-pin-number { display: none; }
.map-label { display: grid; min-width: 86px; padding: 4px 9px 5px 12px; margin-left: -7px; border: 1px solid #7c5f42; border-radius: 0 7px 7px 0; background: #1b140ef2; backdrop-filter: blur(5px); box-shadow: 0 3px 7px #372b2022; white-space: nowrap; line-height: 1.3; }
.map-label strong { font-size: 13px; }
.map-label small { color: var(--muted); font-size: 10px; }
.map-node.done .map-label small { color: var(--sage); }
.map-legend { display: flex; gap: 14px; flex-wrap: wrap; align-items: center; min-height: 47px; padding: 8px 14px; font-size: 12px; color: var(--muted); }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-legend i { display: inline-block; border-radius: 50%; width: 8px; height: 8px; background: var(--gold); }
.map-legend span:nth-child(2) i { background: var(--sage); }
.legend-note { margin-left: auto; }
.progress-panel { padding: 20px 17px; }
.panel-heading { display: flex; align-items: center; gap: 8px; color: var(--gold-bright); }
.panel-heading h2 { font-size: 20px; }
.progress-reading { display: flex; align-items: baseline; justify-content: space-between; margin-top: 10px; gap: 4px; }
.progress-reading strong, .complete-score { color: var(--gold); font: 600 42px/1.1 var(--mono); letter-spacing: -.06em; }
.progress-reading strong small, .complete-score small { font-size: 21px; margin-left: 2px; letter-spacing: 0; }
.progress-reading span { color: var(--muted); font-size: 12px; }
.meter { height: 7px; background: #33271b; border-radius: 50px; overflow: hidden; margin: 8px 0 19px; }
.meter div { width: var(--progress); height: 100%; background: #c09760; border-radius: inherit; animation: fill-meter .42s ease both; }
.seal-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 7px; margin-bottom: 17px; text-align: center; }
.seal-strip small { display: block; margin-top: 4px; color: var(--muted); font-size: 11px; }
.medallion { --seal: #d9a775; display: inline-grid; place-items: center; flex: 0 0 auto; border-radius: 50%; width: 42px; height: 42px; border: 1px dashed #6b5340; color: #b5a389; background: var(--surface); }
.medallion.river { --seal: #adcaac; }
.medallion.guild { --seal: #d5c89a; }
.medallion.paper { --seal: #eac184; }
.medallion.earned { color: var(--seal); border: 1px double var(--seal); box-shadow: inset 0 0 0 3px #241a13; background: #32251a; animation: stamp-in .38s ease-out both; }
.panel-chapters { border-block: 1px solid var(--soft-line); }
.panel-chapter { display: grid; align-items: center; grid-template-columns: 24px 1fr auto; gap: 6px; margin: 0; padding: 8px 0; border: 0; border-bottom: 1px solid var(--soft-line); width: 100%; min-height: 42px; color: var(--ink); background: transparent; text-align: left; font-size: 13px; }
.panel-chapter:last-child { border-bottom: 0; }
.panel-chapter:hover { color: var(--gold); }
.mono { font: 12px var(--mono); color: var(--muted); }
.panel-status { display: flex; align-items: center; gap: 4px; color: var(--muted); font-size: 11px; }
.status-done { color: var(--sage); }
.panel-hint { margin-top: 14px; display: flex; gap: 6px; align-items: start; color: var(--muted); font-size: 12px; }
.panel-hint svg { margin-top: 2px; }
.progress-panel > .button { width: 100%; margin-top: 12px; }
.archive-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.archive-card { position: relative; overflow: hidden; }
.archive-card:not(.locked) button.inline-link::after { position: absolute; inset: 0; content: ""; }
.archive-card:not(.locked):hover { border-color: #946c47; }
.archive-card figure, .about-image, .dialog-image { position: relative; overflow: hidden; background: var(--deep); }
.archive-card figure > img { width: 100%; height: clamp(134px, 16vw, 215px); object-fit: cover; }
.archive-card.locked figure > img { opacity: .68; filter: saturate(.54); }
.archive-card figure > span { position: absolute; top: 11px; left: 11px; display: inline-flex; align-items: center; gap: 4px; border-radius: 4px; background: #1e150ff2; color: var(--gold-bright); padding: 3px 8px; font-size: 11px; }
.archive-copy { padding: 16px 17px 18px; }
.archive-copy h2 { font-size: 25px; margin-bottom: 8px; }
.archive-copy p:not(.kicker) { min-height: 48px; color: var(--muted); font-size: 13px; }
.archive-copy .inline-link { margin-top: 8px; }
.about-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 25px; align-items: start; }
.about-image { overflow: hidden; border-radius: var(--radius); }
.about-copy { padding: 9px 10px; }
.about-copy h2 { font-size: 25px; margin-bottom: 8px; }
.about-copy p { color: var(--muted); margin-bottom: 18px; }
.references { margin-top: 18px; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); }
.references h3 { font-size: 12px; margin-bottom: 7px; }
.references ul { list-style: none; padding: 0; }
.references li { font-size: 12px; line-height: 1.5; margin-block: 6px; }
.references a { text-decoration: underline; text-underline-offset: 2px; }
.references a svg { vertical-align: -.18em; }

.back-link { margin-bottom: 15px; }
.mission-layout { display: grid; grid-template-columns: minmax(0, 1.13fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.paper-mission { display: block; }
.paper-mission .observation { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); margin-bottom: 18px; }
.paper-mission .scene { min-height: 190px; max-height: 225px; }
.observation { overflow: hidden; }
.scene { position: relative; display: flex; background: #17110e; height: clamp(220px, 27vw, 365px); isolation: isolate; }
.scene img { width: 100%; object-fit: cover; object-position: center; }
.scene-guild img { width: 50%; }
.scene-guild img + img { border-left: 1px solid #765338; }
.hotspot { display: inline-flex; align-items: center; gap: 5px; position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); min-height: 38px; padding: 5px 8px; border: 1px solid #bc925e; border-radius: 7px; background: #271b10f0; color: #fff9ef; box-shadow: 0 3px 12px #30292080; white-space: nowrap; font-size: 12px; transition: background .2s ease; }
.hotspot:hover { background: #6f3a29; z-index: 2; }
.hotspot.seen { background: #31503c; }
.observation-body, .task-card { padding: 20px; }
.compact { align-items: center; margin-bottom: 7px; }
.compact h2, .task-title h2 { font-size: 23px; }
.compact > span { font-size: 12px; color: var(--muted); white-space: nowrap; }
.observation-body > p, .task-help { color: var(--muted); font-size: 13px; }
.clue-list { display: grid; gap: 6px; margin-top: 12px; }
.clue-item { display: grid; grid-template-columns: 23px minmax(0, 1fr) auto; align-items: center; gap: 7px; text-align: left; padding: 8px 10px; min-height: 38px; border: 1px solid var(--line); border-radius: 7px; background: var(--surface); color: var(--ink); font-size: 13px; }
.clue-item:hover { border-color: #946c47; color: var(--gold); }
.clue-item.seen > svg:first-child { color: var(--sage); }
.task-title { display: flex; align-items: center; gap: 8px; margin-bottom: 7px; }
.task-title svg { color: var(--gold); }
.task-help { margin-bottom: 14px; }
.task-lock { border: 1px dashed #634a31; border-radius: 9px; padding: 19px 12px; display: flex; justify-content: center; align-items: center; gap: 7px; color: var(--muted); background: #19140f; font-size: 13px; text-align: center; }
.mission-done { display: flex; gap: 12px; align-items: center; margin-bottom: 16px; padding: 10px 14px; border: 1px solid #536a4c; border-radius: 11px; background: #23291e; }
.mission-done strong { color: var(--sage); }
.mission-done p { color: var(--muted); font-size: 12px; }
.mission-done .inline-link { margin-left: auto; font-size: 13px; }
.completion-lead { display: grid; grid-template-columns: 1.3fr 1fr; align-items: center; gap: 28px; padding: clamp(24px, 4vw, 50px); color: #f8f3e7; background: linear-gradient(140deg, #4d2a1b, #251711 57%, #342019); border-radius: var(--radius); margin-bottom: 24px; }
.completion-lead .kicker { color: #edbd98; }
.completion-lead h1 { font-size: clamp(33px, 4.35vw, 64px); }
.completion-lead p:not(.kicker) { color: #e4e6d8; margin-block: 11px 20px; }
.light { background: #e0bb82; color: #2a1b10; }
.light:hover { background: #f1d49e; }
.outline-light { border-color: #947555; color: #f8f3e7; }
.outline-light:hover { background: #ffffff15; }
.completion-stamps { text-align: center; padding: 15px; background: #f6ebcf0d; border: 1px solid #f6ebcf40; border-radius: 13px; }
.complete-score { margin-block: 6px 16px; color: #efcfad; font-size: 55px; }
.complete-score span { display: block; margin-top: 4px; color: #e8e5d6; font: 13px var(--sans); letter-spacing: 0; }
.completion-stamps .seal-strip { margin-bottom: 0; }
.completion-stamps .seal-strip small { color: #f1ead9; }
.completion-grid { display: grid; grid-template-columns: minmax(0, 1fr) 286px; align-items: start; gap: 18px; }
.completion-record { padding: 18px; }
.completion-record h2 { font-size: 22px; }
.record-list { display: grid; grid-template-columns: 1fr 1fr; gap: 3px 7px; list-style: none; padding: 0; margin-block: 8px 14px; }
.record-list a, .record-list button { min-height: 28px; display: flex; align-items: center; gap: 3px; color: var(--gold-bright); font-size: 12px; }
.record-list a:hover { text-decoration: underline; }
dialog { width: min(560px, calc(100% - 28px)); max-height: calc(100dvh - 36px); color: var(--ink); padding: 0; border: 1px solid #775a3e; border-radius: 14px; background: var(--card); box-shadow: 0 18px 70px #2026195e; }
dialog[open] { animation: page-in .18s ease-out both; }
dialog::backdrop { background: #0a0705b8; backdrop-filter: blur(3px); }
.dialog-close { position: absolute; z-index: 2; top: 9px; right: 9px; display: grid; place-items: center; width: 40px; height: 40px; border: 1px solid #aa7e54; border-radius: 50%; background: #25180ffd; color: var(--gold-bright); }
.dialog-close:hover { background: var(--surface-hover); border-color: var(--gold); }
.dialog-image { height: clamp(120px, 32vh, 250px); }
.dialog-image img { width: 100%; height: 100%; object-fit: cover; }
.dialog-copy { padding: 19px 24px 25px; }
.dialog-copy h2 { font-size: 30px; margin-bottom: 8px; }
.dialog-copy p:not(.kicker) { font-size: 14px; line-height: 1.72; color: var(--muted); }
.dialog-copy .button, .dialog-copy .actions { margin-top: 14px; }
.dialog-copy .actions .button { margin-top: 0; }
.toast { opacity: 0; visibility: hidden; pointer-events: none; position: fixed; z-index: 8; right: 22px; bottom: 22px; transform: translateY(8px); padding: 11px 15px; max-width: min(370px, calc(100vw - 28px)); color: #fffaf0; border: 1px solid #946943; background: #362218; border-radius: 8px; box-shadow: var(--shadow); transition: opacity .2s ease, transform .2s ease, visibility .2s ease; font-size: 13px; }
.toast.visible { opacity: 1; visibility: visible; transform: none; }
@keyframes image-in { from { opacity: .3; } to { opacity: 1; } }
@keyframes page-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes fill-meter { from { width: 0; } to { width: var(--progress); } }
@keyframes stamp-in { from { opacity: .45; transform: scale(.83); } to { opacity: 1; transform: none; } }

@media (max-width: 1120px) {
  .shell { width: calc(100% - 56px); }
  .brand { gap: 6px; padding-inline: 8px 12px; }
  .brand img { width: 42px; height: 42px; }
  .brand strong { font-size: 17px; }
  .hero-content { min-height: 580px; }
  .map-layout { grid-template-columns: minmax(0, 1fr) 265px; gap: 12px; }
  .progress-panel { padding: 16px 12px; }
  .map-node.paper .map-label { order: -1; margin-left: 0; margin-right: -7px; padding-inline: 9px 12px; border-radius: 7px 0 0 7px; }
  .map-node.paper { transform: translate(calc(-100% + 23px), -50%); }
  .map-node.paper:hover, .map-node.paper:focus-visible { transform: translate(calc(-100% + 23px), -50%) scale(1.08); }
}
@media (max-width: 860px) {
  .shell { width: calc(100% - 36px); }
  .header-inner { grid-template-columns: auto minmax(0,1fr) 60px; gap: 10px; }
  .nav a { flex: 1; min-width: 0; padding-inline: 7px; font-size: 14px; }
  .journal { width: 60px; }
  .hero-content { min-height: 530px; }
  .hero-title { font-size: clamp(52px, 7.9vw, 66px); }
  .map-layout, .completion-grid { grid-template-columns: 1fr; }
  .progress-panel { padding: 16px; }
  .progress-panel .seal-strip { max-width: 360px; }
  .panel-chapters { display: grid; grid-template-columns: 1fr 1fr; gap: 0 15px; }
  .panel-chapter:nth-last-child(2) { border-bottom: 0; }
  .mission-layout { grid-template-columns: 1fr; }
  .scene { height: min(55vw, 370px); }
  .about-grid { gap: 11px; }
  .completion-record { max-width: 540px; }
}
@media (max-width: 610px) {
  .shell { width: calc(100% - 26px); }
  .header-inner { grid-template-columns: minmax(0,1fr) auto; min-height: auto; padding-top: 6px; gap: 4px 8px; }
  .brand { padding: 4px 8px 4px 5px; }
  .brand img { width: 34px; height: 34px; }
  .brand strong { font-size: 17px; }
  .brand small { font-size: 7px; letter-spacing: .07em; }
  .nav { grid-row: 2; grid-column: 1 / -1; min-height: 45px; }
  .nav a { gap: 4px; font-size: 13px; padding-inline: 4px; }
  .nav small { font-size: 8px; letter-spacing: .075em; }
  .journal { position: relative; grid-column: 2; grid-row: 1; display: flex; align-items: center; gap: 5px; min-height: 38px; width: auto; padding: 5px 7px; filter: none; }
  .journal::before { clip-path: none; border-radius: 3px; }
  .journal-mark { width: 24px; height: 24px; }
  .journal-label { display: flex; align-items: center; gap: 1px; font-size: 11px; }
  .journal-count { font-size: 9px; }
  .home { padding-bottom: 29px; }
  .hero-content { min-height: clamp(485px, 69vh, 580px); }
  .hero-copy { padding: 58px 9px 96px; }
  .hero-title { margin-block: 13px 18px; font-size: clamp(41px, 11.5vw, 63px); }
  .hero-title-place { font-size: clamp(85px, 22vw, 112px); }
  .hero-tagline { margin-bottom: 5px; }
  .hero-description { font-size: 13px; }
  .hero .actions { margin-top: 14px; }
  .button { min-height: 41px; font-size: 13px; }
  .hero-figure::after { background: linear-gradient(90deg, #100e0ccf, #100e0c38 88%), linear-gradient(0deg, var(--paper), transparent 36%); }
  .hero-figure img { object-position: 74% center; }
  .home-chapters { margin-top: 0; }
  .section-heading h2 { font-size: 24px; }
  .chapter-grid, .archive-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .tile-body { padding: 9px; }
  .tile-body strong { font-size: 19px; }
  .tile-arrow { width: 24px; height: 24px; }
  .tile-arrow svg { width: 15px; }
  .inner-page { padding-block: 21px 30px; }
  .page-lead { margin-bottom: 16px; }
  .lead { font-size: 13px; }
  .map-layout { gap: 11px; }
  .map-caption { top: 6px; left: 6px; font-size: 9px; padding: 3px 6px; }
  .map-compass { right: 6px; top: 6px; width: 29px; height: 29px; }
  .map-compass svg { width: 19px; }
  .map-node, .map-node.paper, .map-node:hover, .map-node:focus-visible, .map-node.paper:hover, .map-node.paper:focus-visible { display: grid; place-items: center; min-width: 44px; min-height: 44px; transform: translate(-50%, -50%); }
  .map-label { display: none; }
  .map-pin { width: 34px; height: 34px; }
  .map-pin svg { display: none; }
  .map-node.done .map-pin svg { display: inline; width: 15px; }
  .map-pin-number { display: inline; font: 700 12px var(--mono); }
  .map-node.done .map-pin-number { display: none; }
  .map-legend { padding: 7px 8px; font-size: 10px; gap: 8px; min-height: 36px; }
  .legend-note { margin-left: 0; }
  .archive-card figure > img { height: 107px; }
  .archive-card figcaption { bottom: 4px; right: 4px; font-size: 8px; padding: 2px 4px; }
  .archive-copy { padding: 9px; }
  .archive-copy h2 { font-size: 20px; }
  .archive-copy .inline-link { font-size: 11px; gap: 2px; }
  .archive-copy p:not(.kicker) { font-size: 11px; min-height: 45px; }
  .archive-card figure > span { top: 5px; left: 5px; }
  .about-grid, .paper-mission .observation, .completion-lead { grid-template-columns: 1fr; }
  .paper-mission .scene { min-height: 145px; max-height: 216px; }
  .task-card, .observation-body { padding: 13px; }
  .hotspot { min-height: 35px; font-size: 10px; }
  .hotspot svg { width: 13px; }
  .completion-lead { padding: 19px; gap: 12px; }
  .completion-stamps { padding: 7px; }
  .complete-score { font-size: 38px; margin-block: 4px 9px; }
  .toast { right: 11px; bottom: 12px; }
}
@media (max-width: 355px) {
  .journal-count { display: none; }
  .panel-chapters { grid-template-columns: 1fr; }
  .panel-chapter:nth-last-child(2) { border-bottom: 1px solid var(--soft-line); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}
