/*
 * JiaVerse / 龙格 — 史前探险手册
 * Presentation only. The compiled adventure and the export canvas retain
 * their existing state, route, scoring and event contracts.
 */
:root {
  color-scheme: light;
  background: #f6f1e4;
}

body,
.app-shell {
  color: #193d2d;
  background: #f6f1e4;
}

/* Scope the printed palette to visible pages: the share card is unchanged. */
.home-screen,
.adventure-screen,
.result-screen,
.notes-screen,
.atlas-screen {
  --ink: #193d2d;
  --bone: #f6f1e4;
  --bone-deep: #e9e2ce;
  --canopy: #224c35;
  --clay: #bd4d27;
  --clay-light: #ed8957;
  --rain: #6d8d76;
  --paper-line: #193d2d36;
  --paper-muted: #626a57;
  color: var(--ink);
  background: var(--bone);
}

:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) .button {
  border-radius: 0;
  min-height: 50px;
  padding-inline: 22px;
  font-weight: 700;
}

:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) .button--primary,
:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) .button--clay {
  color: #183b29;
  background: #f58a50;
  border: 1px solid #193d2d;
  box-shadow: 4px 4px 0 #193d2d;
}

:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) .button--primary:hover,
:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) .button--clay:hover {
  background: #ffa66d;
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 #193d2d;
}

:is(.home-screen, .adventure-screen, .result-screen) .site-header {
  position: relative;
  inset: auto;
  color: var(--ink);
  background: var(--bone);
  border-bottom: 2px solid var(--ink);
  height: 80px;
  padding: 16px 0;
}

.wordmark-cn { font-size: 21px; letter-spacing: .08em; }
.wordmark-en { font-size: 8px; letter-spacing: .12em; }

:is(.home-screen, .adventure-screen, .result-screen, .atlas-screen) .header-action {
  color: var(--ink);
  background: transparent;
  border-color: var(--paper-line);
  border-radius: 0;
  min-height: 40px;
}

:is(.home-screen, .adventure-screen, .result-screen, .atlas-screen) .header-action:hover {
  background: #193d2d0d;
  border-color: var(--ink);
}

:is(.home-screen, .adventure-screen, .result-screen, .notes-screen, .atlas-screen) :is(button, a, [tabindex]):focus-visible {
  outline: 2px solid #9f3619;
  outline-offset: 4px;
}

/* Cover: a typographic field journal beside an unshaded landscape plate. */
.home-screen {
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(0, 1.08fr);
  grid-template-rows: auto 1fr auto auto;
  gap: 0 40px;
  min-height: 100svh;
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 clamp(24px, 4.5vw, 76px);
  overflow: clip;
}

.home-screen .site-header { grid-area: 1 / 1 / 2 / -1; }

.home-backdrop {
  position: relative;
  inset: auto;
  z-index: 0;
  grid-area: 2 / 2 / 4 / 3;
  align-self: stretch;
  width: 100%;
  height: 100%;
  min-height: 610px;
  max-height: 850px;
  margin-top: 34px;
  object-fit: cover;
  object-position: 65% center;
  border: 10px solid #fffdf6;
  outline: 1px solid var(--paper-line);
  box-shadow: 12px 12px 0 #dcdcc5;
  animation: none;
}

.home-shade,
.home-strata,
.home-track { display: none; }

.home-copy {
  grid-area: 2 / 1 / 3 / 2;
  position: relative;
  inset: auto;
  transform: none;
  width: auto;
  padding: 40px 0 30px;
}

.home-copy .field-code {
  color: var(--clay);
  font-size: 10px;
  letter-spacing: .16em;
  margin-bottom: 28px;
}

.home-copy h1 {
  display: block;
  width: 2.1em;
  margin-left: -.035em;
  color: var(--ink);
  font-size: clamp(78px, 8.4vw, 138px);
  letter-spacing: -.075em;
  line-height: .99;
  text-shadow: none;
  word-break: break-all;
}

.home-copy h1 span {
  display: block;
  width: max-content;
  margin: 0 0 18px .1em;
  color: var(--clay);
  font-family: inherit;
  font-size: 19px;
  line-height: 1;
  letter-spacing: .22em;
}

.home-lede {
  max-width: 470px;
  margin-top: 25px;
  font-size: clamp(21px, 2vw, 28px);
  line-height: 1.65;
  text-wrap: pretty;
}

.home-description {
  max-width: 440px;
  color: var(--paper-muted);
  margin-top: 12px;
  font-size: 13px;
  line-height: 1.9;
}

.home-actions { gap: 16px; margin-top: 24px; }
.home-actions .button { min-width: 230px; min-height: 56px; }
.home-actions .text-action { color: var(--paper-muted); text-decoration-color: var(--paper-line); font-size: 12px; }
.save-notice { color: var(--ink); background: #e8ead9; border-color: var(--clay); }

.home-field-notes {
  grid-area: 3 / 1 / 4 / 2;
  position: relative;
  inset: auto;
  align-self: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 2px solid var(--ink);
  border-bottom: 1px solid var(--ink);
}

.home-field-notes div { min-width: 0; padding: 16px 12px 15px; border-color: var(--paper-line); gap: 6px; }
.home-field-notes div:first-child { padding-left: 0; }
.home-field-notes strong { color: var(--clay); font-size: clamp(20px, 2.6vw, 32px); letter-spacing: -.06em; }
.home-field-notes span { color: var(--paper-muted); font-size: 11px; }

.home-disclaimer {
  display: flex;
  grid-area: 4 / 1 / 5 / -1;
  position: relative;
  inset: auto;
  color: var(--paper-muted);
  padding: 24px 0 26px;
  margin-top: 38px;
  font-size: 10px;
}

/* Each choice is a page of the field journal, with the scene always visible. */
.adventure-screen {
  display: grid;
  grid-template-columns: minmax(270px, .82fr) minmax(0, 1.18fr);
  grid-template-rows: auto auto 1fr auto;
  column-gap: clamp(24px, 3vw, 48px);
  height: auto;
  min-height: 100svh;
  max-width: 1600px;
  margin-inline: auto;
  padding: 0 clamp(22px, 4vw, 64px) 30px;
  overflow: visible;
}

.adventure-screen .site-header { grid-area: 1 / 1 / 2 / -1; }
.adventure-vignette { display: none; }

.adventure-backdrop {
  grid-area: 3 / 1 / 4 / 2;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: min(640px, 70svh);
  min-height: 440px;
  border: 8px solid #fffdf6;
  outline: 1px solid var(--paper-line);
  box-shadow: 9px 9px 0 #dddfc9;
  align-self: start;
  animation: none;
}

.adventure-topline {
  grid-area: 2 / 1 / 3 / -1;
  position: relative;
  inset: auto;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 24px 0;
}

.adventure-topline > div:first-child span { color: var(--clay); font-size: 24px; font-weight: 700; }
.adventure-topline > div:first-child small { color: var(--paper-muted); opacity: 1; margin-top: 3px; }
.resource-hud { background: #e6ead7; color: var(--ink); border: 1px solid var(--paper-line); backdrop-filter: none; }
.resource-item { border-color: var(--paper-line); padding: 12px 14px; }
.resource-item strong { font-size: 20px; }
.resource-item em { color: #a03c18; }
.resource-item--empty { color: #a03c18; }

.story-caption {
  grid-area: 3 / 2 / 4 / 3;
  position: relative;
  inset: auto;
  transform: none;
  width: 100%;
  max-height: none;
  padding: 0 0 16px;
  overflow: visible;
}

.story-meta { color: var(--paper-muted); border-color: var(--paper-line); padding: 0 0 13px; font-size: 10px; letter-spacing: .08em; }
.story-meta button { color: var(--clay); min-height: 32px; font-size: 11px; white-space: nowrap; }
.story-context { gap: 6px; margin-top: 14px; }
.story-context span { color: #506343; background: #e8ecd9; border: 0; font-size: 10px; padding: 6px 8px; }
.story-previous { color: #69735e !important; margin: 13px 0 0 !important; line-height: 1.7 !important; }
.story-previous strong { color: var(--ink); }
.story-caption h1 { color: var(--ink); margin-top: 22px; font-size: clamp(30px, 3.2vw, 48px); line-height: 1.25; letter-spacing: -.035em; }
.story-caption > p { color: #59624f; margin: 17px 0 20px; font-size: 15px; line-height: 1.85; }

.decision-prompt {
  display: grid;
  grid-template-columns: 1fr;
  gap: 6px;
  max-width: none;
  padding: 16px 0 18px;
  margin-bottom: 0;
  background: transparent;
  border: 0;
  border-top: 1px dashed #a9ae95;
}

.decision-prompt small { color: var(--clay); font-size: 10px; letter-spacing: .16em; }
.decision-prompt strong { font-size: 17px; line-height: 1.6; }
.decision-prompt span { grid-column: 1; color: var(--paper-muted); font-size: 11px; line-height: 1.6; }
.story-choices { grid-template-columns: 1fr; gap: 10px; }

.story-choice {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 12px;
  min-height: 92px;
  padding: 16px;
  color: var(--ink);
  background: #fffdf5;
  border: 1px solid #a3ab91;
  border-radius: 0;
  backdrop-filter: none;
  box-shadow: 3px 3px 0 #e1e4d1;
}

.story-choice:hover:not(:disabled) { color: var(--ink); background: #e8eed9; border-color: var(--ink); transform: translateX(3px); }
.story-choice--detour { border-left: 4px solid #d96532; }
.choice-index { width: 34px; height: 38px; background: #eef0e1; border: 0; color: var(--clay); font-size: 18px; font-weight: 700; }
.choice-copy { gap: 5px; }
.choice-copy strong { font-size: 15px; line-height: 1.55; }
.choice-copy > span { color: #68705d; font-size: 12px; line-height: 1.65; }
.choice-copy small { color: #766849; font-size: 10px; line-height: 1.6; }
.story-choice > svg { color: var(--clay); }
.scene-back { grid-area: 4 / 1 / 5 / 2; display: inline-flex; position: relative; inset: auto; color: var(--paper-muted); width: max-content; padding: 30px 0 0; min-height: 48px; }
.adventure-progress-shell { grid-area: 4 / 2 / 5 / 3; align-self: center; position: relative; inset: auto; width: 100%; padding-top: 20px; transform: none; }
.strata-progress span { background: #c9cfb6; height: 5px; }
.strata-progress span.is-active { background: var(--clay); height: 9px; }
.strata-progress span.is-gate { height: 13px; }
.undo-notice { color: #fff9e8; background: #244332; border: 1px solid #fff9e8; bottom: 22px; }
.undo-notice button { color: #ffc087; }
.result-undo { color: #fff9e8; background: #244332; border: 1px solid #fff9e8; padding: 12px 16px; }

/* Results become a natural-history cover and a readable paper archive. */
.result-screen > .site-header { margin: 0 clamp(22px, 4.5vw, 72px); }
.result-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  grid-template-rows: 1fr auto;
  gap: 20px clamp(32px, 5vw, 76px);
  min-height: 0;
  max-width: 1600px;
  margin: 0 auto;
  padding: 48px clamp(22px, 4.5vw, 72px) 52px;
  color: var(--ink);
  background: var(--bone);
  overflow: visible;
}

.result-hero-image {
  grid-area: 1 / 2 / 3 / 3;
  position: relative;
  inset: auto;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 470px;
  max-height: 700px;
  border: 10px solid #fffdf6;
  outline: 1px solid var(--paper-line);
  box-shadow: 12px 12px 0 #dfe0c9;
}

.result-hero-shade { display: none; }
.result-reveal { grid-area: 1 / 1 / 2 / 2; position: relative; inset: auto; width: 100%; align-self: center; padding: 10px 0; }
.result-reveal .field-code { color: var(--clay); margin-bottom: 32px; font-size: 10px; line-height: 1.8; }
.result-pretitle { color: var(--paper-muted); font-size: 13px; letter-spacing: .16em; margin-bottom: 17px; }
.result-visual-note { color: var(--paper-muted); border-color: var(--paper-line); line-height: 1.7; }
.result-reveal h1 { color: var(--ink); font-size: clamp(58px, 7.5vw, 114px); letter-spacing: -.06em; line-height: 1.1; overflow-wrap: anywhere; }
.scientific-name { color: var(--paper-muted); font-size: 11px; line-height: 1.7; margin: 15px 0 30px; }
.result-reveal h2 { color: var(--clay); font-size: clamp(25px, 2.8vw, 40px); line-height: 1.4; }
.result-reveal blockquote { color: #52624a; font-size: clamp(17px, 1.5vw, 22px); line-height: 1.9; margin-top: 18px; }
.result-ending-stamp { grid-area: 2 / 1 / 3 / 2; position: relative; inset: auto; justify-self: start; max-width: 100%; background: #f2dabe; color: var(--clay); border: 1px solid var(--clay); padding: 13px 24px; transform: rotate(-2deg); }
.result-ending-stamp strong { font-size: 25px; }
.result-body { background: var(--bone); padding-inline: clamp(22px, 4.5vw, 72px); }
.result-actions { border-top: 2px solid var(--ink); border-bottom: 1px solid var(--paper-line); padding: 24px 0; gap: 14px; }
.result-share-hint { color: var(--paper-muted); font-size: 11px; }
.result-lead-grid { gap: 60px; padding: 70px 0; }
.result-lead-copy h2 { font-size: clamp(28px, 3.4vw, 46px); }
.shadow-result { background: #e5ead6; border: 1px solid #b6c1a3; padding: 24px; }
.shadow-result > div { grid-template-columns: 92px minmax(0, 1fr); }
.shadow-result img { width: 92px; height: 100px; border: 4px solid #fffdf6; }
.axis-section, .route-section, .species-file { border-top: 2px solid var(--ink); padding-block: 60px; }
.result-body .section-label { color: var(--clay); font-size: 10px; letter-spacing: .1em; }
.axis-grid { gap: 28px 42px; background: #e8ebda; padding: 30px; border: 1px solid #bdc6ac; margin-top: 32px; }
.axis-track { background: #acb69b; height: 4px; }
.axis-track i { width: 13px; height: 13px; border-color: #e8ebda; }
.insight-grid { gap: 14px; border: 0; margin-top: 28px; }
.insight-grid article { background: #fffdf5; border: 1px solid #bec6ae; min-height: 220px; padding: 26px; }
.insight-grid h3 { margin-top: 20px; }
.cost-section { border: 1px solid #cfb092; background: #f2e2cc; }
.cost-section article { padding: 38px !important; min-height: 0; }
.cost-section article + article { border-left: 1px solid #cfb092; }
.cost-section h2 { font-size: clamp(24px, 2.5vw, 34px); }
.route-section { margin-top: 58px; }
.chapter-recap { margin-top: 32px; }
.chapter-recap li { padding: 24px 0; }
.chapter-recap > li > span { font-size: 42px; }
.companion-epilogue { background: #e4ead4; border-left: 4px solid #62784c; padding: 28px; margin-top: 36px; }
.species-file { background: #fffdf5; border: 1px solid #bec6ae; padding: 38px; margin-bottom: 52px; gap: 40px; }
.result-footer { border-top: 2px solid var(--ink); padding-top: 45px; }
.result-footer .text-action { color: var(--ink); text-decoration-color: var(--paper-line); }

/* Collection and travel notes use the same specimen-sheet rhythm. */
.notes-screen { background-image: none; }
.notes-header { border-bottom: 2px solid var(--ink); }
.notes-intro { margin-top: 56px; }
.notes-intro .section-label, .atlas-heading .section-label { color: var(--clay); }
.notes-grid { border-color: #acb89b; background: #fffdf5; }
.notes-panel { border-color: #acb89b; }
.notes-panel:nth-child(2) { background: #e5ead6; }
.notes-panel--wide { background: transparent; }
.notes-panel h2 { color: var(--ink); }
.atlas-screen .site-header { background: var(--bone); border-bottom: 2px solid var(--ink); padding-inline: max(22px, calc((100vw - 1240px) / 2)); }
.atlas-heading { padding-top: 56px; border-color: var(--ink); }
.atlas-heading h1 { font-size: clamp(48px, 7vw, 96px); }
.atlas-grid { gap: 30px; padding-top: 34px; }
.atlas-entry, .atlas-entry:nth-child(2n) { grid-template-columns: 1fr; gap: 24px; padding: 0 0 34px; border: 0; border-bottom: 1px solid var(--ink); }
.atlas-image-shell { min-height: 0; height: 330px; border: 8px solid #fffdf6; outline: 1px solid #b7c0a7; box-shadow: 7px 7px 0 #dfe3ce; }
.atlas-copy { padding: 0 6px; }
.atlas-copy h2, .atlas-locked-copy h2 { font-size: clamp(34px, 3.5vw, 50px); }
.atlas-copy h3 { color: var(--clay); }
.atlas-copy > .section-label { color: var(--clay); }
.atlas-facts { display: grid; gap: 8px; margin-top: 20px; padding-top: 14px; }
.atlas-facts p { font-size: 12px; }
.atlas-copy a { font-size: 12px; }
.atlas-footer { border-top: 2px solid var(--ink); margin-top: 24px; }

@media (min-width: 1601px) {
  .result-screen > .site-header { max-width: 1456px; margin-inline: auto; }
}

@media (max-width: 1100px) and (min-width: 721px) {
  .home-screen { column-gap: 28px; }
  .home-copy h1 { font-size: clamp(78px, 9.2vw, 112px); }
  .home-lede { font-size: 22px; }
  .home-backdrop { min-height: 640px; }
  .adventure-screen { grid-template-columns: minmax(230px, .72fr) minmax(0, 1.28fr); column-gap: 25px; }
  .adventure-backdrop { min-height: 430px; height: 58svh; }
  .resource-item { min-width: 76px; padding-inline: 9px; }
  .story-caption h1 { font-size: 33px; }
  .story-meta { flex-wrap: wrap; gap: 5px; }
  .result-reveal h1 { font-size: 72px; }
  .result-share-hint { flex-basis: 100%; margin: 4px 0 0; }
  .result-lead-grid { grid-template-columns: minmax(0, 1fr) minmax(240px, .7fr); gap: 30px; }
  .species-file { grid-template-columns: .65fr 1.35fr; padding: 28px; }
}

@media (max-width: 720px) {
  :is(.home-screen, .adventure-screen, .result-screen) .site-header { height: 68px; padding: 13px 0; }
  .wordmark-cn { font-size: 18px; }
  .wordmark-en { font-size: 7px; }
  .header-actions { gap: 6px; }
  :is(.home-screen, .adventure-screen, .result-screen, .atlas-screen) .header-action { min-height: 38px; width: 38px; }

  .home-screen {
    display: flex;
    flex-direction: column;
    gap: 0;
    min-height: 100svh;
    padding: 0 22px 24px;
  }

  .home-screen .site-header { order: 0; flex-shrink: 0; }
  .home-copy { display: contents; }
  .home-copy .field-code { order: 1; margin: 24px 0 16px; font-size: 9px; }
  .home-copy h1 { order: 2; width: 100%; font-size: clamp(56px, 15.4vw, 106px); line-height: 1.06; letter-spacing: -.07em; margin: 0 0 24px -.035em; white-space: nowrap; }
  .home-copy h1 span { margin-bottom: 10px; font-size: 14px; letter-spacing: .24em; }
  .home-backdrop { order: 3; flex-shrink: 0; min-height: 0; height: clamp(210px, 61vw, 350px); width: 100%; margin: 0 0 25px; object-position: 65% 58%; border-width: 6px; box-shadow: 7px 7px 0 #dcdcc5; }
  .home-lede { order: 4; margin: 0; font-size: 21px; line-height: 1.7; max-width: none; }
  .home-description { order: 5; margin-top: 12px; font-size: 12px; line-height: 1.9; }
  .save-notice { order: 6; margin-top: 18px; }
  .home-actions { order: 7; margin: 22px 4px 28px 0; }
  .home-actions .button { min-height: 55px; min-width: 0; }
  .home-field-notes { order: 8; display: grid; align-self: stretch; }
  .home-field-notes strong { font-size: 27px; }
  .home-field-notes div { padding-block: 15px; }
  .home-disclaimer { order: 9; display: flex; align-items: flex-start; line-height: 1.7; margin: 0; padding: 18px 0 0; font-size: 9px; }
  .home-disclaimer svg { flex-shrink: 0; margin-top: 2px; }

  .adventure-screen { display: flex; flex-direction: column; gap: 0; padding: 0 18px 86px; height: auto; min-height: 100svh; }
  .adventure-screen .site-header { order: 0; }
  .adventure-topline { order: 1; display: grid; gap: 10px; padding: 16px 0 14px; }
  .adventure-topline > div:first-child { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
  .adventure-topline > div:first-child span { font-size: 20px; }
  .adventure-topline > div:first-child small { font-size: 8px; text-align: right; }
  .resource-hud { width: 100%; }
  .resource-item { min-width: 0; padding: 8px 9px; gap: 5px; }
  .resource-item strong { font-size: 18px; }
  .resource-item span { font-size: 10px; }
  .adventure-backdrop { order: 2; min-height: 0; height: clamp(150px, 40vw, 170px); width: 100%; flex-shrink: 0; border-width: 5px; margin-bottom: 18px; box-shadow: 6px 6px 0 #dddfc9; }
  .story-caption { order: 3; width: 100%; max-height: none; padding: 0; overflow: visible; }
  .story-meta { gap: 12px; padding-bottom: 8px; font-size: 9px; letter-spacing: .04em; }
  .story-meta button { font-size: 10px; gap: 5px; }
  .story-context { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 10px; }
  .story-context span { font-size: 9px; padding: 5px 7px; }
  .story-caption h1 { font-size: clamp(29px, 8.5vw, 42px); line-height: 1.3; margin-top: 14px; }
  .story-caption > p { font-size: 14px; line-height: 1.85; margin: 12px 0 16px; }
  .story-previous { display: block; font-size: 11px !important; }
  .story-previous span { margin-right: 8px; }
  .decision-prompt { padding: 12px 0; gap: 5px; }
  .decision-prompt strong { font-size: 16px; }
  .decision-prompt span { font-size: 10px; }
  .story-choices { gap: 11px; }
  .story-choice { padding: 14px 12px; grid-template-columns: 30px minmax(0, 1fr) 16px; gap: 9px; min-height: 88px; }
  .choice-index { width: 28px; height: 34px; font-size: 16px; }
  .choice-copy strong { font-size: 14px; }
  .choice-copy > span { font-size: 11px; }
  .choice-copy small { font-size: 9px; }
  .story-choice:hover:not(:disabled) { transform: none; }
  .scene-back { order: 5; display: inline-flex; padding-top: 20px; }
  .adventure-progress-shell { order: 4; width: 100%; padding-top: 24px; }
  .undo-notice { bottom: 14px; right: 14px; left: 14px; font-size: 10px; }

  .result-screen > .site-header { margin-inline: 20px; }
  .result-hero { display: flex; flex-direction: column; gap: 0; padding: 25px 22px 32px; min-height: 0; }
  .result-hero-image { order: 0; min-height: 0; height: clamp(240px, 78vw, 410px); border-width: 7px; box-shadow: 7px 7px 0 #dfe0c9; object-position: 60% center; }
  .result-reveal { order: 1; width: 100%; padding-top: 30px; }
  .result-reveal .field-code { margin-bottom: 20px; font-size: 9px; }
  .result-pretitle { font-size: 12px; margin-bottom: 10px; }
  .result-reveal h1 { font-size: clamp(59px, 17vw, 92px); line-height: 1.1; }
  .scientific-name { margin: 12px 0 20px; font-size: 10px; }
  .result-reveal h2 { font-size: 27px; }
  .result-reveal blockquote { font-size: 17px; margin-top: 14px; line-height: 1.85; }
  .result-ending-stamp { order: 2; align-self: flex-start; margin-top: 18px; padding: 11px 20px; }
  .result-ending-stamp strong { font-size: 23px; }
  .result-body { padding-inline: 20px; }
  .result-actions { gap: 12px; padding-block: 21px; }
  .result-actions .button { flex: 1 1 140px; padding: 0 12px; min-height: 47px; font-size: 12px; }
  .result-share-hint { margin-top: 7px; font-size: 10px; line-height: 1.8; }
  .result-lead-grid { grid-template-columns: 1fr; padding: 44px 0; gap: 28px; }
  .result-lead-copy h2 { font-size: 30px; }
  .shadow-result { padding: 22px; }
  .axis-section, .route-section { padding-block: 42px; }
  .axis-section header h2, .route-section header h2 { font-size: 30px; line-height: 1.4; }
  .axis-grid { padding: 22px 18px; gap: 25px; margin-top: 25px; }
  .insight-grid { grid-template-columns: 1fr; gap: 12px; margin-top: 20px; }
  .insight-grid article { padding: 22px; min-height: 0; }
  .insight-grid h3 { margin-top: 15px; }
  .cost-section article { padding: 27px 23px !important; border: 0; }
  .cost-section article + article { border-left: 0; border-top: 1px solid #cfb092; }
  .cost-section h2 { font-size: 26px; }
  .route-section { margin-top: 42px; }
  .chapter-recap li { grid-template-columns: 42px minmax(0, 1fr); gap: 15px; }
  .chapter-recap > li > span { font-size: 35px; }
  .chapter-recap p { font-size: 13px; line-height: 1.8; }
  .companion-epilogue { padding: 22px; font-size: 22px; }
  .species-file { grid-template-columns: 1fr; padding: 27px 22px; gap: 25px; margin-bottom: 40px; }
  .species-file-heading h2 { font-size: 42px; }
  .fact-list article { grid-template-columns: 1fr; gap: 10px; padding-block: 17px; }
  .fact-list p { font-size: 13px; line-height: 1.8; }
  .species-file > a { max-width: 100%; font-size: 11px; line-height: 1.6; }
  .science-boundary { font-size: 11px; }
  .result-footer { padding-top: 32px; }
  .result-footer h2 { font-size: 27px; }

  .notes-screen { padding-inline: 20px; }
  .notes-intro { margin: 38px 0 27px; }
  .notes-intro h1 { font-size: 42px; }
  .notes-panel { padding: 24px 20px; }
  .notes-resources > div { grid-template-columns: 55px 44px minmax(0, 1fr); gap: 10px; font-size: 12px; }
  .atlas-screen .site-header { padding-inline: 20px; }
  .atlas-heading, .atlas-grid, .atlas-footer { width: calc(100% - 40px); }
  .atlas-heading { padding: 60px 0 30px; }
  .atlas-heading h1 { font-size: 58px; }
  .atlas-heading > p:last-child { font-size: 13px; }
  .atlas-grid { grid-template-columns: 1fr; gap: 25px; padding-top: 28px; }
  .atlas-image-shell { height: clamp(240px, 76vw, 420px); min-height: 0; border-width: 6px; }
  .atlas-entry, .atlas-entry:nth-child(2n) { padding-bottom: 30px; gap: 22px; }
  .atlas-copy h2, .atlas-locked-copy h2 { font-size: 40px; }
  .atlas-footer { margin-top: 30px; padding-top: 25px; }
}

@media (max-width: 360px) {
  .home-screen { padding-inline: 18px; }
  .home-copy h1 { font-size: 56px; }
  .home-lede { font-size: 19px; }
  .home-field-notes strong { font-size: 24px; }
  .adventure-screen { padding-inline: 15px; }
  .adventure-topline > div:first-child span { font-size: 18px; }
  .resource-item { padding-inline: 7px; gap: 4px; }
  .resource-item svg { width: 13px; }
  .story-meta { align-items: flex-start; gap: 8px; }
  .story-meta button { font-size: 9px; }
  .story-context span { font-size: 8px; }
  .story-caption h1 { font-size: 28px; }
  .story-choice { grid-template-columns: 28px minmax(0, 1fr) 14px; padding: 12px 10px; gap: 8px; }
  .choice-copy strong { font-size: 13px; }
  .result-hero, .result-body { padding-inline: 18px; }
  .result-reveal h1 { font-size: 56px; }
  .result-reveal h2 { font-size: 24px; }
  .atlas-heading h1 { font-size: 48px; }
}
