:root {
  color-scheme:light;
  --ink:#203e30;
  --muted:#4f6256;
  --paper:#f6f7ef;
  --line:#c4cebc;
  --green:#294e38;
  --focus:#a45c05;
  font-family:system-ui,sans-serif;
  color:var(--ink);
  background:#bacbb5
}
* {
  box-sizing:border-box
}
html,body {
  width:100%;
  height:100%
}
[hidden] {
  display:none!important
}
body {
  margin:0;
  overflow:hidden
}
button,a,input {
  touch-action:manipulation
}
button {
  font:inherit;
  cursor:pointer;
  color:inherit;
  min-height:44px;
  border:1px solid var(--line);
  background:var(--paper);
  padding:10px 17px;
  border-radius:5px
}
button:hover {
  background:#e7edde
}
button:disabled {
  opacity:.6;
  cursor:default
}
.primary {
  background:var(--green);
  color:#fff;
  border-color:var(--green)
}
.primary:hover {
  background:#173824
}
a {
  color:inherit;
  text-underline-offset:4px
}
:focus-visible {
  outline:3px solid var(--focus);
  outline-offset:4px
}
#scene {
  position:fixed;
  inset:0;
  background:linear-gradient(#b2ced4 0%,#e2e5cf 45%,#8b9d6a 46%,#6d8256 100%)
}
#scene canvas {
  width:100%;
  height:100%;
  display:block;
  outline-offset:-5px;
  touch-action:none
}
#park-ui {
  position:fixed;
  inset:0;
  pointer-events:none
}
#park-ui button,#park-ui a {
  pointer-events:auto
}
.topbar {
  position:absolute;
  top:0;
  left:0;
  right:0;
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:start;
  padding:30px 40px;
  background:linear-gradient(#f6f7efd9,#f6f7ef00)
}
.wordmark {
  font:normal 30px Georgia,serif;
  text-decoration:none;
  text-shadow:0 1px 10px #fff
}
.wordmark span {
  display:block;
  font:11px system-ui;
  letter-spacing:.14em;
  text-transform:uppercase;
  margin-top:7px
}
.nav-actions {
  display:flex;
  gap:8px
}
.nav-actions button {
  box-shadow:0 3px 15px #17382412
}
.eyebrow {
  text-transform:uppercase;
  letter-spacing:.14em;
  font-size:11px;
  font-weight:700;
  line-height:1.5
}
.welcome {
  position:absolute;
  left:40px;
  top:50%;
  transform:translateY(-40%);
  width:min(430px,calc(100vw - 50px));
  background:#f6f7eff2;
  padding:29px 34px 24px;
  border-radius:8px;
  box-shadow:0 10px 60px #18392420
}
.welcome h1 {
  font:normal clamp(44px,5vw,68px)/.98 Georgia,serif;
  letter-spacing:-.025em;
  margin:18px 0 23px
}
.welcome>p {
  line-height:1.65
}
.welcome>p:not(.eyebrow) {
  font-size:15px
}
.welcome .primary {
  margin:6px 0;
  min-width:170px
}
.welcome .welcome-note {
  font-size:12px;
  color:var(--muted);
  margin-bottom:0
}
#intro-footer {
  position:absolute;
  bottom:25px;
  left:40px;
  right:40px;
  display:flex;
  justify-content:space-between;
  gap:20px;
  font-size:12px;
  background:#f6f7efd9;
  border-radius:5px;
  padding:12px 16px
}
#crosshair {
  position:absolute;
  top:50%;
  left:50%;
  width:7px;
  height:7px;
  background:#fff;
  border:1px solid #294e38;
  border-radius:50%;
  transform:translate(-50%,-50%);
  box-shadow:0 0 0 3px #294e3822
}
.encounter-prompt {
  position:absolute;
  bottom:30px;
  left:50%;
  transform:translateX(-50%);
  text-align:center;
  min-width:300px;
  max-width:calc(100vw - 36px)
}
.encounter-prompt p {
  background:#f6f7eff0;
  padding:8px 14px;
  border-radius:5px;
  margin:0 0 8px;
  font-size:13px
}
.encounter-prompt button {
  width:100%;
  box-shadow:0 8px 30px #143a2929
}
.encounter-prompt button:disabled {
  background:#f6f7eff2;
  color:#304d3b;
  border-color:#c4cebc;
  opacity:1
}
kbd {
  font:11px ui-monospace,monospace;
  border:1px solid currentColor;
  opacity:.85;
  padding:2px 4px;
  border-radius:3px
}
.encounter-prompt kbd {
  margin-left:15px
}
.map-card {
  position:absolute;
  left:28px;
  bottom:28px;
  width:170px;
  padding:12px;
  background:#f6f7eff0;
  border-radius:6px
}
.map-card svg {
  display:block;
  width:100%;
  height:100px
}
.map-card text {
  font:10px system-ui;
  fill:var(--ink)
}
.map-key {
  display:flex;
  gap:6px;
  align-items:center;
  font-size:10px
}
.map-key i {
  width:7px;
  height:7px;
  border-radius:50%;
  background:#d9a647
}
.walk-help {
  position:absolute;
  right:28px;
  bottom:28px;
  background:#f6f7eff0;
  padding:12px 16px;
  border-radius:6px;
  font-size:11px
}
.walk-help p {
  line-height:1.9;
  margin:0 0 8px
}
.walk-help button {
  padding:5px 10px;
  font-size:11px;
  min-height:36px
}
#touch-controls {
  display:none
}
.input-status {
  position:absolute;
  top:110px;
  left:50%;
  transform:translateX(-50%);
  background:var(--paper);
  border:1px solid var(--line);
  border-radius:5px;
  padding:12px;
  max-width:80vw;
  font-size:13px
}
dialog {
  border:1px solid var(--line);
  border-radius:9px;
  color:var(--ink);
  background:var(--paper);
  box-shadow:0 20px 80px #10251d66
}
dialog::backdrop {
  background:#152c216b;
  backdrop-filter:blur(5px)
}
#guide {
  width:min(620px,calc(100vw - 28px));
  max-height:calc(100dvh - 28px);
  padding:25px 30px;
  overflow:auto
}
.guide-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:15px
}
.guide-top button {
  border:0;
  background:transparent
}
.guide-top p {
  margin:0
}
#guide h2 {
  font:normal 38px Georgia,serif;
  margin:22px 0 14px
}
#guide p {
  line-height:1.6
}
#guide>p {
  font-size:14px
}
.guide-entry {
  display:flex;
  gap:20px;
  border-block:1px solid var(--line);
  padding:22px 0;
  margin:25px 0 16px
}
.entry-number {
  font:normal 38px Georgia,serif;
  color:#73846b
}
.guide-entry .eyebrow {
  margin:0
}
.guide-entry h3 {
  font:normal 27px Georgia,serif;
  margin:10px 0
}
.guide-entry p {
  font-size:14px
}
.guide-entry .entry-meta,.guide-note {
  font-size:12px!important;
  color:var(--muted)
}
.discovery {
  font-size:12px!important;
  font-weight:650
}
#encounter {
  width:min(1180px,calc(100vw - 36px));
  height:min(920px,calc(100dvh - 36px));
  max-height:none;
  max-width:none;
  padding:0;
  overflow:hidden
}
#encounter[open] {
  display:flex;
  flex-direction:column
}
.encounter-top {
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:20px;
  padding:16px 22px;
  border-bottom:1px solid var(--line);
  flex:none
}
.encounter-top .eyebrow {
  margin:0 0 5px
}
.encounter-top h2 {
  font:normal 27px Georgia,serif;
  margin:0
}
.encounter-top button {
  white-space:nowrap
}
.encounter-footer {
  display:flex;
  justify-content:space-between;
  gap:20px;
  padding:12px 22px;
  border-top:1px solid var(--line);
  font-size:12px;
  flex:none
}
#frame-slot {
  flex:1;
  min-height:0
}
#frame-slot iframe {
  width:100%;
  height:100%;
  display:block;
  border:0;
  background:var(--paper)
}
.loading,.load-error {
  padding:35px 25px;
  font-size:15px
}
.load-error h3 {
  font:normal 26px Georgia,serif
}
.loading {
  flex:none
}
.load-error {
  flex:1
}
.load-error~#frame-slot:empty {
  display:none
}
.sr-only {
  position:absolute;
  width:1px;
  height:1px;
  margin:-1px;
  overflow:hidden;
  clip:rect(0,0,0,0);
  white-space:nowrap
}
.fallback #scene {
  filter:saturate(.6)
}
@media(max-width:1000px) {
  .walk-help {
    display:none
  }
  .map-card {
    width:140px
  }
  .encounter-prompt {
    min-width:270px
  }
}
@media(pointer:coarse),(max-width:700px) {
  .topbar {
    padding:20px
  }
  .wordmark {
    font-size:23px;
    white-space:nowrap
  }
  .topbar {
    gap:12px
  }
  .wordmark span {
    font-size:9px
  }
  .nav-actions {
    gap:5px
  }
  .nav-actions button {
    font-size:11px;
    padding:8px 9px;
    white-space:nowrap
  }
  .welcome {
    left:20px;
    padding:23px 25px;
    top:48%;
    transform:translateY(-35%);
    max-height:calc(100dvh - 160px);
    overflow:auto
  }
  .welcome h1 {
    font-size:47px
  }
  .welcome>p:not(.eyebrow) {
    font-size:14px
  }
  #intro-footer {
    left:20px;
    right:20px;
    bottom:16px;
    flex-direction:column;
    gap:6px;
    font-size:11px
  }
  .map-card {
    display:none
  }
  #touch-controls {
    position:absolute;
    bottom:20px;
    left:20px;
    display:grid;
    grid-template-columns:repeat(3,45px);
    gap:5px;
    pointer-events:auto
  }
  #touch-controls button {
    padding:6px;
    font-size:22px;
    background:#f6f7eff2;
    user-select:none;
    touch-action:none
  }
  #touch-controls [data-move=forward] {
    grid-column:2
  }
  #touch-controls [data-move=left] {
    grid-column:1;
    grid-row:2
  }
  #touch-controls [data-move=back] {
    grid-column:2;
    grid-row:2
  }
  #touch-controls [data-move=right] {
    grid-column:3;
    grid-row:2
  }
  #touch-controls [data-move=turnLeft] {
    grid-column:1;
    grid-row:1
  }
  #touch-controls [data-move=turnRight] {
    grid-column:3;
    grid-row:1
  }
  .encounter-prompt {
    bottom:140px;
    left:20px;
    right:20px;
    transform:none;
    min-width:0;
    max-width:none;
    text-align:left
  }
  .encounter-prompt p {
    font-size:12px
  }
  .encounter-prompt button {
    font-size:13px
  }
  #guide {
    padding:20px
  }
  .guide-entry {
    gap:14px
  }
  .entry-number {
    font-size:30px
  }
  #encounter {
    width:100vw;
    height:100dvh;
    border-radius:0;
    border:0;
    margin:0
  }
  .encounter-top {
    padding:12px 16px;
    gap:10px
  }
  .encounter-top h2 {
    font-size:22px
  }
  .encounter-top button {
    font-size:12px;
    padding:8px 10px
  }
  .encounter-footer {
    font-size:10px;
    padding:10px 16px;
    gap:12px
  }
  .encounter-footer span {
    max-width:140px
  }
}
@media(max-height:550px) {
  .welcome {
    top:90px;
    transform:none;
    max-height:calc(100dvh - 145px);
    width:400px
  }
  .welcome h1 {
    font-size:38px
  }
  .welcome-note {
    display:none
  }
  #intro-footer {
    display:none
  }
  .encounter-prompt {
    bottom:15px;
    left:auto;
    right:20px;
    width:300px
  }
  .topbar {
    padding:16px 20px
  }
}
@media(prefers-reduced-motion:reduce) {
  * {
    scroll-behavior:auto!important;
    animation:none!important;
    transition:none!important
  }
}
/* Destination cues stay available on narrow screens where the map is hidden. */
.route-card {position:absolute;left:28px;top:115px;width:210px;padding:12px 14px;background:#f6f7eff2;border-radius:6px}
.route-card p {margin:0 0 7px;font-size:13px}
.route-card .eyebrow {font-size:10px}
.route-card #route-destination {font-weight:650}
.route-card .route-note {font-size:10px;color:var(--muted)}
.route-card button {font-size:12px;padding:7px 11px;margin-top:3px}
.map-card {width:185px}
.map-card svg {height:145px}
.map-stop circle {fill:#f6f7ef;stroke:#8c9d83;stroke-width:1}
.map-stop text {font-size:8px;font-weight:700}
.map-stop.opened circle {fill:#e0e9d8}
.map-stop.target circle {stroke:#8c5005;stroke-width:2.5}
.guide-actions {display:flex;flex-wrap:wrap;gap:8px}
.guide-progress {font-weight:650}
@media(pointer:coarse),(max-width:700px) {
  .route-card {top:95px;left:20px;width:calc(100vw - 40px);padding:10px 12px;display:grid;grid-template-columns:1fr auto;column-gap:12px;align-items:center}
  .route-card p {font-size:12px;margin-bottom:4px}
  .route-card .eyebrow {grid-column:1;font-size:9px}
  .route-card button {grid-column:2;grid-row:1/5;font-size:11px;margin:0}
  .route-card .route-note {font-size:9px;margin:0}
}
@media(max-height:550px) {
  .route-card {top:83px;left:20px;width:210px;display:block}
  .route-card p {font-size:11px}
  .map-card {display:none}
}
