:root {
  --ink: #173d40;
  --paper: #faf3df;
  --teal: #236d6b;
  --gold: #e6ac4b;
  --line: #d8d7c4;
  /* Pinned rem baseline: rem sizes below resolve against the browser default (usually 16px). */
  font:
    100%/1.5 "Trebuchet MS",
    system-ui,
    sans-serif;
  color: var(--ink);
  background: #c9ded9;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-size: 1rem;
}
button,
input {
  font: inherit;
}
button,
a,
label {
  touch-action: manipulation;
}
button {
  cursor: pointer;
  color: inherit;
}
button:disabled {
  cursor: wait;
  opacity: 0.6;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
summary:focus-visible,
#world:focus-visible {
  outline: 3px solid #bf7922;
  outline-offset: 4px;
}
button {
  border: 0;
}
button svg,
svg {
  width: 23px;
  height: 23px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}
button svg {
  vertical-align: middle;
  flex-shrink: 0;
}
.icon-library {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}
[hidden] {
  display: none !important;
}
#game {
  position: relative;
  height: 100svh;
  min-height: 620px;
  overflow: hidden;
}
#world {
  position: absolute;
  inset: 0;
  outline-offset: -5px;
}
#world canvas {
  width: 100%;
  height: 100%;
  display: block;
  touch-action: none;
}
.vignette {
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, #f4eddcd4, transparent 60%),
    linear-gradient(0deg, #163e3b26, transparent 25%);
}
body.started .vignette {
  background: linear-gradient(
    180deg,
    #edf0dfb0,
    transparent 28%,
    transparent 76%,
    #173d4033
  );
}
.topbar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  padding: 27px 3.3vw;
  display: flex;
  align-items: center;
  gap: 24px;
  z-index: 3;
}
.wordmark {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 0.75rem;
  letter-spacing: 0.18em;
  line-height: 1.7;
}
.wordmark strong {
  font-size: 1.125rem;
  letter-spacing: 0.13em;
}
.brand-mark {
  font:
    3.25rem/1 Georgia,
    serif;
  transform: rotate(-25deg);
}
.topbar nav {
  display: flex;
  gap: 10px;
  margin-left: auto;
}
.tool,
.camera-tools button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 11px 17px;
  border: 1px solid #ffffffba;
  background: #fbf5e9e8;
  border-radius: 16px;
  box-shadow: 0 4px 14px #2645430a;
}
.tool:hover,
.camera-tools button:hover {
  background: #fffaf0;
  transform: translateY(-1px);
}
.tool b {
  background: #e6bd66;
  color: #254448;
  min-width: 24px;
  border-radius: 50%;
  font-size: 0.8125rem;
}
.icon-only {
  width: 50px;
  padding: 11px;
}
.location {
  display: flex;
  flex-direction: column;
  font-size: 0.75rem;
  line-height: 1.6;
  border-left: 1px solid #173d4033;
  padding-left: 22px;
}
.location span {
  text-transform: uppercase;
  letter-spacing: 0.1em;
}
.location strong {
  font-size: 0.875rem;
}
.welcome {
  position: absolute;
  left: 7%;
  top: 23%;
  max-width: 490px;
  z-index: 2;
}
.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: bold;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.welcome h1 {
  font:
    clamp(2.8125rem, 5.4vw, 5rem) / 1.04 Georgia,
    serif;
  font-weight: 400;
  letter-spacing: -0.035em;
  margin: 21px 0;
}
.welcome h1 em {
  color: #826137;
  font-style: italic;
}
.welcome p {
  font-size: 1.1875rem;
  line-height: 1.6;
  margin: 25px 0;
}
.primary,
.secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  min-height: 50px;
  padding: 13px 22px;
  border-radius: 14px;
  text-decoration: none;
}
.primary {
  background: var(--teal);
  color: #fff9e8;
  box-shadow: 0 5px 0 #164e4d;
  transition: background 0.15s;
}
.primary:hover {
  background: #165857;
}
.primary span {
  font-size: 1.375rem;
}
.secondary {
  background: #eee5cf;
  border: 1px solid #d4cbae;
  color: #284c48;
}
.secondary:hover {
  background: #e3d8bd;
}
.welcome .primary {
  min-width: 230px;
  margin: 5px 0 19px;
}
.welcome-sound {
  display: block;
  font-size: 0.875rem;
  width: max-content;
  cursor: pointer;
}
.welcome-sound input {
  accent-color: var(--teal);
  width: 18px;
  height: 18px;
  vertical-align: middle;
  margin-right: 7px;
}
.welcome-footnote {
  display: block;
  font-size: 0.75rem;
  margin-top: 30px;
  color: #42615b;
}
.visit-heading {
  position: absolute;
  left: 4%;
  top: 126px;
  pointer-events: none;
}
.visit-heading h1 {
  font:
    clamp(2rem, 3.1vw, 2.9375rem) / 1.1 Georgia,
    serif;
  margin: 12px 0;
}
.visit-heading p {
  margin: 0;
  font-size: 0.9375rem;
}
.scale-note {
  display: inline-block;
  margin-top: 13px;
  background: var(--paper);
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.75rem;
}
.field-note {
  position: absolute;
  bottom: 105px;
  left: 3.5%;
  width: 370px;
  display: flex;
  gap: 13px;
  background: #fff9e9f5;
  border: 1px solid #fffdf8;
  border-radius: 22px;
  padding: 20px;
  box-shadow: 0 12px 36px #163d3521;
}
.note-mark {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  flex: 0 0 40px;
  background: #e7eace;
  display: grid;
  place-items: center;
}
.note-mark svg {
  width: 22px;
}
.field-note .eyebrow {
  font-size: 0.75rem;
  letter-spacing: 0.14em;
  color: #5c7168;
}
.field-note p {
  font-size: 1rem;
  line-height: 1.45;
  margin: 7px 0;
}
.text-action {
  background: transparent;
  font-weight: bold;
  color: #276c63;
  padding: 8px 0;
  text-align: left;
  min-height: 44px;
}
.text-action:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}
.station-nav {
  position: absolute;
  bottom: 37px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  background: #fbf5e9e8;
  border: 1px solid #fffffff0;
  box-shadow: 0 7px 22px #10393916;
  border-radius: 18px;
  padding: 6px;
  gap: 4px;
  white-space: nowrap;
}
.station-nav button {
  background: transparent;
  font-size: 0.8125rem;
  padding: 12px 17px;
  border-radius: 12px;
  min-height: 45px;
}
.station-nav button.active {
  color: #fff9e8;
  background: var(--teal);
}
.station-nav button:hover {
  background: #e0e5cf;
}
.station-nav button.active:hover {
  background: var(--teal);
}
.camera-tools {
  position: absolute;
  bottom: 112px;
  right: 3.5%;
  display: flex;
  gap: 8px;
}
.camera-tools button {
  width: 46px;
  padding: 6px;
  font-size: 1.375rem;
}
.bottom-status {
  position: absolute;
  bottom: 12px;
  left: 3.5%;
  right: 3.5%;
  display: flex;
  justify-content: space-between;
  font-size: 0.75rem;
  color: #274c46;
  pointer-events: none;
}
.world-labels {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.world-label {
  position: absolute;
  transform: translate(-50%, -100%);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  background: #fff9e8e8;
  border: 1px solid #fff;
  border-radius: 14px;
  padding: 7px 12px;
  box-shadow: 0 4px 18px #12392a22;
  white-space: nowrap;
}
.world-label:after {
  content: "";
  position: absolute;
  bottom: -6px;
  left: 48%;
  border: 6px solid transparent;
  border-top-color: #fff9e8;
  border-bottom: 0;
}
.load-status {
  position: absolute;
  inset: auto 0 45% 0;
  text-align: center;
  font-size: 1rem;
  pointer-events: none;
  color: var(--ink);
}
#toast {
  position: absolute;
  top: 110px;
  left: 50%;
  transform: translateX(-50%);
  background: #fff5cc;
  box-shadow: 0 6px 28px #214a3930;
  padding: 12px 24px;
  border-radius: 30px;
  text-align: center;
  z-index: 7;
  font-size: 0.875rem;
}
.fallback {
  position: absolute;
  top: 34%;
  left: 5%;
  right: 5%;
  background: var(--paper);
  padding: 15px 22px;
  max-width: 440px;
  border-radius: 14px;
  font-size: 0.875rem;
}
.fallback-scene {
  background-size: cover;
  background-position: center;
}
.fallback-scene:after {
  content: "";
  position: absolute;
  inset: 0;
  background: #ffffff30;
}
.noscript {
  position: fixed;
  inset: 40% 10% auto;
  padding: 30px;
  background: var(--paper);
  z-index: 20;
}
dialog {
  color: var(--ink);
  border: 1px solid #fffdf4;
  background: var(--paper);
  border-radius: 26px;
  padding: 0;
  box-shadow: 0 24px 90px #10333355;
  max-height: 90svh;
  width: calc(100% - 50px);
  max-width: 1050px;
  overscroll-behavior: contain;
}
dialog::backdrop {
  background: #103e3d66;
  backdrop-filter: blur(5px);
}
dialog h2 {
  font:
    2.375rem/1.12 Georgia,
    serif;
  margin: 9px 0 16px;
}
.close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 44px;
  height: 44px;
  z-index: 4;
  border-radius: 50%;
  font-size: 1.8125rem;
  background: #fbf6e8ed;
  box-shadow: 0 2px 8px #173d4010;
}
.close:hover {
  background: #e9dec6;
}
.dialog-top {
  padding: 37px 40px 19px;
}
.dialog-top p {
  margin: 8px 0;
  color: #516963;
}
.encounter-dialog {
  max-width: 940px;
}
.encounter-dialog[open] {
  display: grid;
  grid-template-columns: 0.92fr 1.08fr;
}
.encounter-art {
  position: relative;
  background: #e6e5d2;
  min-height: 430px;
  padding: 25px;
  display: flex;
  align-items: center;
  overflow: hidden;
}
.encounter-art img {
  width: 100%;
  height: 100%;
  max-height: 430px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.image-chip {
  position: absolute;
  bottom: 25px;
  left: 25px;
  background: #fff8e7dc;
  padding: 7px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
}
.encounter-body {
  padding: 38px 34px 24px;
}
.encounter-body .eyebrow {
  color: #9c762f;
}
.encounter-body h2 {
  font-size: clamp(1.9rem, 3vw, 2.6rem);
}
.hear {
  display: flex;
  gap: 9px;
  align-items: center;
  background: transparent;
  padding: 6px 0;
  color: #5f726a;
  font-size: 0.8125rem;
  min-height: 42px;
}
.hear svg {
  width: 18px;
}
.question {
  font-size: 1.1875rem;
  line-height: 1.45;
  margin: 20px 0 14px;
}
.choices {
  display: grid;
  gap: 8px;
}
.choices button {
  border: 1px solid #d6d5bd;
  text-align: left;
  padding: 11px 14px;
  background: #fffaf0;
  border-radius: 12px;
  min-height: 47px;
  font-size: 0.9375rem;
}
.choices button:hover {
  border-color: #477e6f;
  background: #edf0de;
}
.choices button.correct {
  background: #dce9d1;
  border-color: #719867;
}
.choices button.retry {
  background: #f6e4c5;
}
.feedback {
  min-height: 28px;
  font-size: 0.875rem;
  color: #447059;
  line-height: 1.4;
  margin: 14px 0;
}
.encounter-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.encounter-actions .primary,
.encounter-actions .secondary {
  font-size: 0.8125rem;
  padding: 11px 16px;
  min-height: 45px;
}
.encounter-body > .text-action {
  margin-top: 10px;
  font-size: 0.8125rem;
}
.scrapbook-dialog {
  max-width: 1000px;
}
.book-layout {
  display: grid;
  grid-template-columns: 210px 1fr;
  padding: 0 30px 30px;
  gap: 28px;
}
#bookTabs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#bookTabs button {
  background: #eee6d3;
  display: flex;
  gap: 10px;
  align-items: center;
  border-radius: 14px;
  padding: 12px;
  text-align: left;
  min-height: 75px;
  font-size: 0.8125rem;
  border: 1px solid transparent;
}
#bookTabs button.active {
  background: #e0e9d5;
  border-color: #73907c;
}
#bookTabs img {
  width: 53px;
  height: 50px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
#bookTabs small {
  display: block;
  color: #5c736a;
  font-size: 0.75rem;
}
#bookPage {
  background: #fffaf0;
  border: 1px solid #e2dac4;
  border-radius: 18px;
  padding: 26px;
}
#bookPage h3 {
  font:
    2rem Georgia,
    serif;
  margin: 4px 0 9px;
}
.page-head {
  display: flex;
  gap: 20px;
  align-items: center;
}
.page-head img {
  width: 43%;
  height: 170px;
  object-fit: contain;
  mix-blend-mode: multiply;
}
.page-head .tag {
  font-size: 0.75rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #7c6c48;
}
.page-head p {
  font-size: 0.8125rem;
  margin: 5px 0;
}
.stamps {
  display: flex;
  gap: 8px;
  margin: 16px 0;
  flex-wrap: wrap;
}
.stamp {
  font-size: 0.75rem;
  color: #5b695c;
  border: 1px dashed #bbbea6;
  padding: 7px 10px;
  border-radius: 9px;
}
.stamp.earned {
  border-style: solid;
  background: #e5ecd7;
  color: #366e58;
}
.facts {
  list-style: none;
  padding: 0;
  margin: 15px 0;
}
.facts li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  margin: 12px 0;
}
.facts li:before {
  content: "✦";
  color: #bd8b34;
  flex-shrink: 0;
}
.page-when {
  border-top: 1px solid #e1dccb;
  margin-top: 18px;
  padding-top: 15px;
  font-size: 0.75rem;
}
.book-empty {
  padding: 40px 10px;
  text-align: center;
}
.book-empty p {
  max-width: 380px;
  margin: 15px auto 25px;
}
details {
  font-size: 0.8125rem;
  line-height: 1.6;
  margin-top: 18px;
}
summary {
  cursor: pointer;
  font-weight: bold;
  padding: 7px 0;
}
details a {
  color: var(--teal);
}
.destination-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 17px;
  padding: 0 30px 25px;
}
.destination-card {
  background: #fffaf0;
  border: 1px solid #dedbc5;
  border-radius: 19px;
  text-align: left;
  padding: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.destination-card img {
  width: 100%;
  height: 170px;
  object-fit: cover;
}
.destination-card div {
  padding: 20px;
  flex: 1;
}
.destination-card h3 {
  font:
    1.5625rem/1.1 Georgia,
    serif;
  margin: 9px 0;
}
.destination-card p {
  font-size: 0.75rem;
  margin: 6px 0;
  color: #566f64;
}
.destination-card .tag {
  font-size: 0.75rem;
  letter-spacing: 0.11em;
  text-transform: uppercase;
}
.destination-card .go {
  display: block;
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--teal);
  font-weight: bold;
}
.destination-card:hover {
  border-color: var(--teal);
  box-shadow: 0 4px 18px #173d401a;
}
.journey-line {
  display: flex;
  justify-content: space-around;
  margin: 5px 40px 28px;
  border-top: 2px solid #b8c6ad;
  padding-top: 12px;
  font-size: 0.75rem;
  color: #637261;
}
.quiet {
  text-align: center;
  font-size: 0.75rem;
  margin: 0 20px 25px;
  color: #627165;
}
.settings-dialog {
  max-width: 600px;
  padding: 0 34px 32px;
}
.settings-dialog .dialog-top {
  padding: 34px 0 20px;
}
.settings-dialog h2 {
  font-size: clamp(1.8rem, 2.8vw, 2.4rem);
}
.setting {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding: 17px 0;
  border-bottom: 1px solid #dcd8c4;
  cursor: pointer;
}
.setting small {
  display: block;
  font-size: 0.75rem;
  color: #5d7265;
  margin-top: 4px;
}
.setting input {
  width: 23px;
  height: 23px;
  accent-color: var(--teal);
  flex: 0 0 23px;
}
.settings-dialog hr {
  border: 0;
}
.settings-dialog > p {
  font-size: 0.8125rem;
}
.save-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.save-tools .secondary {
  font-size: 0.75rem;
  padding: 10px 15px;
}
.file-button {
  cursor: pointer;
}
.file-button input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.file-button:focus-within {
  outline: 3px solid #bf7922;
}
.large-text {
  font-size: 1.25rem;
}
.large-text .field-note p,
.large-text .facts li {
  font-size: 1.1875rem;
}
.large-text .choices button {
  font-size: 1.125rem;
}
.large-text .question {
  font-size: 1.375rem;
}
.large-text .field-note {
  width: 410px;
}
.large-text .encounter-body {
  padding-left: 24px;
  padding-right: 24px;
}
@media (max-width: 1000px) {
  .location {
    display: none !important;
  }
  .field-note {
    width: 310px;
    bottom: 105px;
    padding: 16px;
  }
  .welcome {
    left: 6%;
    top: 25%;
    max-width: 350px;
  }
  .welcome h1 {
    font-size: 3.6875rem;
  }
  .visit-heading {
    top: 116px;
  }
  .topbar {
    padding: 22px 4%;
  }
  .station-nav button {
    font-size: 0.75rem;
    padding: 12px;
  }
  .encounter-body {
    padding: 30px 25px 20px;
  }
  .encounter-body h2 {
    font-size: 1.9375rem;
  }
  .book-layout {
    grid-template-columns: 165px 1fr;
    gap: 15px;
  }
  .page-head {
    gap: 10px;
  }
  .page-head img {
    width: 40%;
  }
  .destination-card img {
    height: 140px;
  }
}
@media (max-width: 700px) {
  #game {
    min-height: 650px;
  }
  .wordmark strong {
    font-size: 0.8125rem;
  }
  .wordmark {
    font-size: 0.75rem;
    gap: 5px;
  }
  .brand-mark {
    font-size: 2.375rem;
  }
  .topbar {
    gap: 8px;
    padding: 17px 4%;
  }
  .topbar nav {
    gap: 6px;
  }
  .tool {
    padding: 10px;
    min-height: 46px;
    border-radius: 12px;
  }
  .tool span {
    display: none;
  }
  .tool b {
    min-width: 20px;
  }
  .icon-only {
    width: 42px;
  }
  .welcome {
    top: 22%;
    left: 7%;
    max-width: 290px;
  }
  .welcome h1 {
    font-size: 3.1875rem;
  }
  .welcome p {
    font-size: 1.0625rem;
  }
  .welcome-footnote {
    max-width: 230px;
  }
  .visit-heading {
    top: 100px;
    left: 5%;
  }
  .visit-heading h1 {
    font-size: 1.875rem;
    max-width: 250px;
  }
  .visit-heading p {
    font-size: 0.75rem;
  }
  .field-note {
    left: 4%;
    right: 4%;
    bottom: 110px;
    width: auto !important;
    padding: 14px;
    max-width: none;
  }
  .field-note p {
    font-size: 0.9375rem;
  }
  .field-note .text-action {
    min-height: 36px;
    font-size: 0.875rem;
  }
  .note-mark {
    width: 32px;
    height: 32px;
    flex-basis: 32px;
  }
  .station-nav {
    bottom: 38px;
    max-width: 94%;
    padding: 5px;
    gap: 0;
  }
  .station-nav button {
    font-size: 0.75rem;
    padding: 11px 9px;
  }
  .camera-tools {
    bottom: auto;
    right: 4%;
    top: 240px;
    flex-direction: column;
    gap: 7px;
  }
  .camera-tools button {
    width: 41px;
    min-height: 41px;
  }
  .bottom-status {
    font-size: 0.75rem;
  }
  #controlsHint {
    display: none;
  }
  dialog {
    width: calc(100% - 24px);
    max-height: 94svh;
    border-radius: 20px;
  }
  .encounter-dialog[open] {
    display: block;
  }
  .encounter-art {
    min-height: 0;
    height: 190px;
    padding: 12px;
  }
  .encounter-art img {
    height: 170px;
  }
  .image-chip {
    left: 16px;
    bottom: 10px;
    font-size: 0.75rem;
  }
  .encounter-body {
    padding: 20px;
  }
  .encounter-body h2 {
    font-size: 1.875rem;
    margin-bottom: 5px;
  }
  .question {
    font-size: 1.0625rem;
    margin: 12px 0;
  }
  .feedback {
    min-height: 20px;
  }
  .choices {
    gap: 6px;
  }
  .choices button {
    font-size: 0.875rem;
    min-height: 44px;
    padding: 9px 13px;
  }
  .dialog-top {
    padding: 30px 23px 18px;
  }
  .dialog-top h2 {
    font-size: 1.875rem;
  }
  .dialog-top p {
    font-size: 0.8125rem;
  }
  .book-layout {
    display: flex;
    flex-direction: column;
    padding: 0 18px 20px;
  }
  #bookTabs {
    flex-direction: row;
    overflow: auto;
    padding-bottom: 6px;
  }
  #bookTabs button {
    min-width: 135px;
    min-height: 60px;
    font-size: 0.75rem;
    padding: 8px;
  }
  #bookTabs img {
    width: 35px;
    height: 35px;
  }
  #bookPage {
    padding: 20px;
  }
  .page-head h3 {
    font-size: 1.625rem;
  }
  .page-head img {
    height: 130px;
  }
  .facts li {
    font-size: 0.9375rem;
  }
  .destination-cards {
    display: flex;
    flex-direction: column;
    padding: 0 20px 15px;
  }
  .destination-card {
    display: grid;
    grid-template-columns: 38% 1fr;
  }
  .destination-card img {
    height: 100%;
    min-height: 175px;
  }
  .destination-card div {
    padding: 18px;
  }
  .destination-card h3 {
    font-size: 1.4375rem;
  }
  .destination-card .go {
    margin-top: 10px;
  }
  .journey-line {
    font-size: 0.75rem;
    margin-left: 22px;
    margin-right: 22px;
  }
  .settings-dialog {
    padding: 0 22px 25px;
  }
  .settings-dialog h2 {
    font-size: 1.875rem;
  }
  .world-label {
    font-size: 0.75rem;
  }
  .large-text .visit-heading {
    top: 105px;
  }
  .large-text .field-note p {
    font-size: 1.0625rem;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    transition: none !important;
  }
}
.reduced-motion * {
  transition: none !important;
}
.station-nav button[aria-current="true"] {
  background: var(--teal);
  color: #fff9e8;
}
#bookTabs button[aria-current="true"] {
  background: #e0e9d5;
  border-color: #73907c;
}
#bookPage > img {
  display: block;
  width: 100%;
  height: 190px;
  object-fit: contain;
  mix-blend-mode: multiply;
  margin-bottom: 18px;
}
.book-copy .eyebrow {
  font-size: 0.75rem;
}
.book-meta {
  font-size: 0.8125rem;
}
.stamps > span {
  font-size: 0.75rem;
  border: 1px dashed #bbbea6;
  padding: 7px 10px;
  border-radius: 9px;
}
.stamps > span.earned {
  border-style: solid;
  background: #e5ecd7;
  color: #366e58;
}
.book-copy ul {
  padding-left: 20px;
}
.book-copy li {
  font-size: 0.9375rem;
  margin: 10px 0;
}
.destination-copy {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 20px;
}
.destination-copy > strong {
  font:
    1.5625rem/1.1 Georgia,
    serif;
}
.destination-copy > span:not(.eyebrow),
.destination-copy > small {
  font-size: 0.75rem;
}
.destination-copy > b {
  font-size: 0.875rem;
  color: var(--teal);
  margin-top: 8px;
}
.empty-book {
  padding: 30px 0;
}
.gentle * {
  transition: none !important;
}
.large-text .book-copy li {
  font-size: 1.1875rem;
}
@media (max-width: 700px) {
  .destination-copy {
    padding: 16px;
  }
  .destination-copy > strong {
    font-size: 1.375rem;
  }
  #bookPage > img {
    height: 160px;
  }
}
/* Exploration HUD and keyboard-accessible route map. */
.trail-map {
  position: fixed;
  right: 3.4%;
  top: 116px;
  z-index: 4;
  width: 180px;
  padding: 13px;
  background: #fff8e8ef;
  border: 1px solid #fffcf2;
  border-radius: 20px;
  box-shadow: 0 6px 25px #173d4015;
  color: var(--ink);
}
.trail-map .eyebrow {
  font-size: 0.75rem;
}
.trail-map svg {
  display: block;
  width: 154px;
  height: 132px;
  stroke: none;
  fill: none;
  margin: 5px auto;
}
.trail-map > span:last-child {
  font-size: 0.75rem;
}
#miniMap line,
#bigMap line {
  stroke: #adad87;
  stroke-width: 1.7;
  stroke-linecap: round;
}
#miniMap circle,
#bigMap circle {
  fill: #497e72;
  stroke: #fff5db;
  stroke-width: 0.7;
}
#miniMap [data-trail],
#bigMap [data-trail] {
  fill: #d7a33d;
}
#miniMap .collected,
#bigMap .collected {
  fill: #6b9b60;
}
#miniMap .map-player,
#bigMap .map-player {
  fill: #fcf6d2;
  stroke: #17484a;
  stroke-width: 1.2;
}
#bigMap text {
  font:
    0.75rem "Trebuchet MS",
    sans-serif;
  fill: #284f49;
  stroke: none;
}
.nearby-action {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  bottom: 106px;
  z-index: 4;
  padding: 12px 19px;
  max-width: 350px;
  min-height: 44px;
  border: 1px solid #fffdf4;
  background: #faf1d3ef;
  border-radius: 15px;
  font-size: 0.8125rem;
  box-shadow: 0 4px 18px #123b3b18;
}
.return-view {
  position: fixed;
  top: 105px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 8;
  background: #236d6b;
  color: #fff7db;
  padding: 13px 23px;
  border-radius: 18px;
  box-shadow: 0 4px 20px #123b3b30;
}
.return-view small {
  display: block;
  font-size: 0.75rem;
  color: #d2e1c9;
  margin-top: 3px;
}
.trail-dialog {
  max-width: 860px;
}
.trail-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  align-items: center;
  gap: 20px;
  padding: 0 35px 30px;
}
#bigMap {
  width: 100%;
  height: auto;
  aspect-ratio: 76/68;
  background: #e8e8ce;
  border-radius: 24px;
  stroke: none;
  fill: none;
}
#trailStops {
  display: grid;
  gap: 8px;
}
#trailStops button {
  padding: 12px 14px;
  min-height: 44px;
  text-align: left;
  border: 1px solid #d6d5bd;
  background: #fffaf0;
  border-radius: 12px;
  font-size: 0.875rem;
}
#trailStops button:hover {
  background: #e0e9cf;
}
.trail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.trail-badges span {
  font-size: 0.75rem;
  background: #e9e8ce;
  border-radius: 9px;
  padding: 5px 9px;
}
.station-nav {
  z-index: 5;
}
.world-label {
  font-size: 0.75rem;
  pointer-events: none;
}
@media (max-width: 1000px) {
  .trail-map {
    width: 144px;
    right: 3%;
    padding: 10px;
  }
  .trail-map svg {
    width: 122px;
    height: 104px;
  }
  .nearby-action {
    bottom: 105px;
    left: auto;
    right: 3%;
    transform: none;
    max-width: 240px;
  }
  .camera-tools {
    bottom: 163px;
  }
}
@media (max-width: 700px) {
  .trail-map {
    top: 94px;
    width: 96px;
    padding: 8px;
    right: 12px;
    border-radius: 13px;
  }
  .trail-map svg {
    width: 78px;
    height: 72px;
  }
  .trail-map > span:last-child {
    font-size: 0.75rem;
  }
  .trail-map .eyebrow {
    font-size: 0.75rem;
  }
  .field-note {
    bottom: 151px;
    padding: 11px;
  }
  .field-note p {
    font-size: 0.8125rem;
  }
  .field-note .text-action {
    font-size: 0.75rem;
    min-height: 32px;
  }
  .nearby-action {
    bottom: 105px;
    left: 50%;
    right: auto;
    transform: translateX(-50%);
    max-width: 90%;
    white-space: nowrap;
    font-size: 0.75rem;
    padding: 10px 15px;
  }
  .return-view {
    top: 211px;
    max-width: 65%;
    font-size: 0.75rem;
    padding: 10px 15px;
  }
  .camera-tools {
    top: 238px;
    bottom: auto;
  }
  .trail-layout {
    grid-template-columns: 1fr;
    padding: 0 20px 20px;
    gap: 15px;
  }
  #bigMap {
    max-height: 240px;
  }
  #trailStops {
    grid-template-columns: 1fr 1fr;
  }
  #trailStops button {
    font-size: 0.75rem;
    padding: 10px;
  }
  .visit-heading h1 {
    max-width: 235px;
    font-size: 1.6875rem;
  }
  .scale-note {
    max-width: 240px;
    font-size: 0.75rem;
  }
  .large-text .field-note p {
    font-size: 0.9375rem;
  }
}
